[SPARK-7512] [SPARKR] Fix RDD's show method to use getJRDD
[SPARK-7512] [SPARKR] Fix RDD's show method to use getJRDD

Since the RDD object might be a Pipelined RDD we should use `getJRDD` to get the right handle to the Java object.

Fixes the bug reported at
http://stackoverflow.com/questions/30057702/sparkr-filterrdd-and-flatmap-not-working

cc concretevitamin

Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu>

Closes #6035 from shivaram/sparkr-show-bug and squashes the following commits:

d70145c [Shivaram Venkataraman] Fix RDD's show method to use getJRDD Fixes the bug reported at http://stackoverflow.com/questions/30057702/sparkr-filterrdd-and-flatmap-not-working

HyukjinKwon/spark,chuckchen/spark,jrshust/spark,ddna1021/spark,rekhajoshm/spark,minixalpha/spark,gengliangwang/spark,sachintyagi22/spark,xflin/spark,markhamstra/spark,facaiy/spark,kevinyu98/spark,zuotingbing/spark,andrewor14/spark,yanboliang/spark,brad-kaiser/spark,bravo-zhang/spark,icexelloss/spark,srowen/spark,facaiy/spark,panfengfeng/spark,shaneknapp/spark,sahilTakiar/spark,debugger87/spark,rezasafi/spark,skonto/spark,mahak/spark,lxsmnv/spark,wangmiao1981/spark,aokolnychyi/spark,xuanyuanking/spark,narahari92/spark,ioana-delaney/spark,huang1900/spark,guoxiaolongzte/spark,map222/spark,jianran/spark,jianran/spark,minixalpha/spark,loneknightpy/spark,aray/spark,dhruve/spark,aray/spark,cin/spark,dbtsai/spark,alunarbeach/spark,poffuomo/spark,pronix/spark,saturday-shi/spark,WeichenXu123/spark,shubhamchopra/spark,guoxiaolongzte/spark,facaiy/spark,sachintyagi22/spark,kimoonkim/spark,zhouyejoe/spark,WindCanDie/spark,yanboliang/spark,shubhamchopra/spark,ron8hu/spark,nlalevee/spark,mike0sv/spark,WindCanDie/spark,markhamstra/spark,taroplus/spark,stanzhai/spark,JoshRosen/spark,zuotingbing/spark,jlopezmalla/spark,MLnick/spark,map222/spark,akopich/spark,ajaysaini725/spark,nchammas/spark,tengpeng/spark,ron8hu/spark,milliman/spark,eyalfa/spark,pgandhi999/spark,1haodian/spark,apache-spark-on-k8s/spark,haowu80s/spark,jianran/spark,mzl9039/spark,skonto/spark,mdespriee/spark,hvanhovell/spark,srowen/spark,hhbyyh/spark,lxsmnv/spark,ibm-research-ireland/sparkoscope,yanboliang/spark,jkbradley/spark,janewangfb/spark,stanzhai/spark,liyichao/spark,taroplus/spark,techaddict/spark,apache-spark-on-k8s/spark,sureshthalamati/spark,big-pegasus/spark,aosagie/spark,chuckchen/spark,ioana-delaney/spark,map222/spark,debugger87/spark,UndeadBaneGitHub/spark,szhem/spark,mzl9039/spark,joseph-torres/spark,ueshin/apache-spark,BryanCutler/spark,andrewor14/spark,setjet/spark,jlopezmalla/spark,maropu/spark,jianran/spark,aokolnychyi/spark,pronix/spark,brad-kaiser/spark,tengpeng/spark,ueshin/apache-spark,aokolnychyi/spark,hhbyyh/spark,shaneknapp/spark,setjet/spark,milliman/spark,SnappyDataInc/spark,facaiy/spark,HyukjinKwon/spark,hvanhovell/spark,metamx/spark,shaneknapp/spark,gioenn/xSpark,eyalfa/spark,patrick-nicholson/spark,byakuinss/spark,UndeadBaneGitHub/spark,aosagie/spark,panfengfeng/spark,xflin/spark,ibm-research-ireland/sparkoscope,dongjoon-hyun/spark,narahari92/spark,dongjoon-hyun/spark,brad-kaiser/spark,janewangfb/spark,facaiy/spark,aosagie/spark,WindCanDie/spark,jkbradley/spark,MLnick/spark,WeichenXu123/spark,saltstar/spark,facaiy/spark,aokolnychyi/spark,ahnqirage/spark,huang1900/spark,kimoonkim/spark,mzl9039/spark,lvdongr/spark,adrian-ionescu/apache-spark,Panos-Bletsos/spark-cost-model-optimizer,rezasafi/spark,kevinyu98/spark,nlalevee/spark,big-pegasus/spark,panfengfeng/spark,ibm-research-ireland/sparkoscope,michalsenkyr/spark,michalsenkyr/spark,loneknightpy/spark,poffuomo/spark,JerryLead/spark,dongjoon-hyun/spark,adrian-ionescu/apache-spark,rikima/spark,highfei2011/spark,darionyaphet/spark,dbtsai/spark,srowen/spark,huang1900/spark,guoxiaolongzte/spark,LantaoJin/spark,kimoonkim/spark,sureshthalamati/spark,witgo/spark,publicRoman/spark,huang1900/spark,icexelloss/spark,aray/spark,rezasafi/spark,ConeyLiu/spark,ajaysaini725/spark,mahak/spark,esi-mineset/spark,hvanhovell/spark,jkbradley/spark,JerryLead/spark,huang1900/spark,wzhfy/spark,eyalfa/spark,apache/spark,mike0sv/spark,gengliangwang/spark,tejasapatil/spark,xuanyuanking/spark,cin/spark,poffuomo/spark,hvanhovell/spark,rezasafi/spark,highfei2011/spark,witgo/spark,ConeyLiu/spark,xflin/spark,ptkool/spark,dbtsai/spark,poffuomo/spark,HyukjinKwon/spark,ibm-research-ireland/sparkoscope,chuckchen/spark,aosagie/spark,map222/spark,LantaoJin/spark,Aegeaner/spark,vinodkc/spark,BryanCutler/spark,xuanyuanking/spark,jianran/spark,kissmetrics/spark,taroplus/spark,apache/spark,stanzhai/spark,goldmedal/spark,big-pegasus/spark,shubhamchopra/spark,gioenn/xSpark,bOOm-X/spark,BryanCutler/spark,zzcclp/spark,saturday-shi/spark,sureshthalamati/spark,mzl9039/spark,nchammas/spark,hhbyyh/spark,brad-kaiser/spark,akopich/spark,ioana-delaney/spark,bOOm-X/spark,lvdongr/spark,shaneknapp/spark,aosagie/spark,darionyaphet/spark,apache-spark-on-k8s/spark,someorz/spark,lvdongr/spark,cloud-fan/spark,nlalevee/spark,milliman/spark,kiszk/spark,kimoonkim/spark,SHASHANKB/spark,wzhfy/spark,zhouyejoe/spark,sachintyagi22/spark,patrick-nicholson/spark,ron8hu/spark,nilsgrabbert/spark,JerryLead/spark,mzl9039/spark,jrshust/spark,apache-spark-on-k8s/spark,aokolnychyi/spark,WeichenXu123/spark,holdenk/spark,ioana-delaney/spark,yanboliang/spark,zhouyejoe/spark,Panos-Bletsos/spark-cost-model-optimizer,shaneknapp/spark,adrian-ionescu/apache-spark,maropu/spark,someorz/spark,WindCanDie/spark,aosagie/spark,jianran/spark,xuanyuanking/spark,joseph-torres/spark,mdespriee/spark,ajaysaini725/spark,szhem/spark,yanboliang/spark,zhouyejoe/spark,actuaryzhang/spark,guoxiaolongzte/spark,cloud-fan/spark,icexelloss/spark,HyukjinKwon/spark,jrshust/spark,tengpeng/spark,bOOm-X/spark,loneknightpy/spark,ibm-research-ireland/sparkoscope,wzhfy/spark,setjet/spark,xflin/spark,apache/spark,jiangxb1987/spark,loneknightpy/spark,rednaxelafx/apache-spark,spark-test/spark,liutang123/spark,mzl9039/spark,apache-spark-on-k8s/spark,vinodkc/spark,szhem/spark,aray/spark,setjet/spark,rikima/spark,mdespriee/spark,kiszk/spark,pronix/spark,srowen/spark,caneGuy/spark,cloud-fan/spark,zuotingbing/spark,bravo-zhang/spark,byakuinss/spark,sachintyagi22/spark,esi-mineset/spark,saturday-shi/spark,patrick-nicholson/spark,spark-test/spark,patrick-nicholson/spark,rednaxelafx/apache-spark,wangmiao1981/spark,rekhajoshm/spark,haowu80s/spark,ajaysaini725/spark,minixalpha/spark,vinodkc/spark,wangmiao1981/spark,sureshthalamati/spark,esi-mineset/spark,lvdongr/spark,michalsenkyr/spark,liyichao/spark,ueshin/apache-spark,mdespriee/spark,byakuinss/spark,andrewor14/spark,szhem/spark,alunarbeach/spark,MLnick/spark,mike0sv/spark,aray/spark,skonto/spark,aray/spark,maropu/spark,jiangxb1987/spark,brad-kaiser/spark,SnappyDataInc/spark,kevinyu98/spark,highfei2011/spark,zzcclp/spark,cloud-fan/spark,debugger87/spark,andrewor14/spark,xflin/spark,lxsmnv/spark,wangyum/spark,jkbradley/spark,hvanhovell/spark,gengliangwang/spark,bravo-zhang/spark,Panos-Bletsos/spark-cost-model-optimizer,janewangfb/spark,cloud-fan/spark,brad-kaiser/spark,nlalevee/spark,dongjoon-hyun/spark,someorz/spark,jiangxb1987/spark,rezasafi/spark,byakuinss/spark,Aegeaner/spark,ConeyLiu/spark,mike0sv/spark,tejasapatil/spark,brad-kaiser/spark,alunarbeach/spark,kevinyu98/spark,witgo/spark,pgandhi999/spark,bravo-zhang/spark,kevinyu98/spark,wangmiao1981/spark,icexelloss/spark,bravo-zhang/spark,Aegeaner/spark,ericvandenbergfb/spark,bOOm-X/spark,gengliangwang/spark,holdenk/spark,shuangshuangwang/spark,cloud-fan/spark,someorz/spark,someorz/spark,rednaxelafx/apache-spark,dongjoon-hyun/spark,publicRoman/spark,lvdongr/spark,mike0sv/spark,jkbradley/spark,michalsenkyr/spark,pgandhi999/spark,ioana-delaney/spark,1haodian/spark,bdrillard/spark,maropu/spark,zzcclp/spark,hhbyyh/spark,milliman/spark,spark-test/spark,SHASHANKB/spark,tejasapatil/spark,janewangfb/spark,liutang123/spark,zzcclp/spark,map222/spark,jiangxb1987/spark,akopich/spark,haowu80s/spark,markhamstra/spark,shaneknapp/spark,akopich/spark,MLnick/spark,jiangxb1987/spark,ioana-delaney/spark,rekhajoshm/spark,ericvandenbergfb/spark,minixalpha/spark,zero323/spark,stanzhai/spark,zzcclp/spark,joseph-torres/spark,map222/spark,yanboliang/spark,dbtsai/spark,liyichao/spark,JoshRosen/spark,taroplus/spark,ibm-research-ireland/sparkoscope,dhruve/spark,kissmetrics/spark,bdrillard/spark,darionyaphet/spark,rednaxelafx/apache-spark,liutang123/spark,1haodian/spark,eyalfa/spark,aokolnychyi/spark,esi-mineset/spark,spark-test/spark,map222/spark,jianran/spark,witgo/spark,1haodian/spark,nchammas/spark,sahilTakiar/spark,LantaoJin/spark,loneknightpy/spark,setjet/spark,panfengfeng/spark,joseph-torres/spark,SHASHANKB/spark,UndeadBaneGitHub/spark,spark-test/spark,BryanCutler/spark,szhem/spark,holdenk/spark,JoshRosen/spark,andrewor14/spark,apache-spark-on-k8s/spark,ddna1021/spark,ptkool/spark,rekhajoshm/spark,adrian-ionescu/apache-spark,szhem/spark,debugger87/spark,zuotingbing/spark,kiszk/spark,ahnqirage/spark,srowen/spark,nilsgrabbert/spark,UndeadBaneGitHub/spark,SnappyDataInc/spark,nilsgrabbert/spark,WindCanDie/spark,dhruve/spark,michalsenkyr/spark,esi-mineset/spark,janewangfb/spark,shaneknapp/spark,zhouyejoe/spark,ahnqirage/spark,Panos-Bletsos/spark-cost-model-optimizer,witgo/spark,darionyaphet/spark,joseph-torres/spark,maropu/spark,1haodian/spark,metamx/spark,gengliangwang/spark,narahari92/spark,skonto/spark,mzl9039/spark,markhamstra/spark,saltstar/spark,kissmetrics/spark,rikima/spark,zhouyejoe/spark,highfei2011/spark,shubhamchopra/spark,vinodkc/spark,eyalfa/spark,gioenn/xSpark,LantaoJin/spark,huang1900/spark,mike0sv/spark,ConeyLiu/spark,metamx/spark,nchammas/spark,mahak/spark,ajaysaini725/spark,hhbyyh/spark,caneGuy/spark,chuckchen/spark,ericvandenbergfb/spark,alunarbeach/spark,maropu/spark,kissmetrics/spark,liyichao/spark,rekhajoshm/spark,LantaoJin/spark,loneknightpy/spark,ConeyLiu/spark,jrshust/spark,goldmedal/spark,tejasapatil/spark,adrian-ionescu/apache-spark,SHASHANKB/spark,pgandhi999/spark,debugger87/spark,ptkool/spark,UndeadBaneGitHub/spark,goldmedal/spark,panfengfeng/spark,ahnqirage/spark,ericvandenbergfb/spark,goldmedal/spark,caneGuy/spark,kiszk/spark,setjet/spark,ueshin/apache-spark,eyalfa/spark,gioenn/xSpark,vinodkc/spark,ibm-research-ireland/sparkoscope,HyukjinKwon/spark,bOOm-X/spark,actuaryzhang/spark,jlopezmalla/spark,lxsmnv/spark,zero323/spark,goldmedal/spark,actuaryzhang/spark,cin/spark,sahilTakiar/spark,poffuomo/spark,Aegeaner/spark,chuckchen/spark,sureshthalamati/spark,BryanCutler/spark,sachintyagi22/spark,rezasafi/spark,narahari92/spark,actuaryzhang/spark,nilsgrabbert/spark,byakuinss/spark,andrewor14/spark,jiangxb1987/spark,zero323/spark,pgandhi999/spark,akopich/spark,bdrillard/spark,highfei2011/spark,rikima/spark,shuangshuangwang/spark,guoxiaolongzte/spark,markhamstra/spark,actuaryzhang/spark,nilsgrabbert/spark,ericvandenbergfb/spark,vinodkc/spark,techaddict/spark,taroplus/spark,skonto/spark,mdespriee/spark,wangmiao1981/spark,holdenk/spark,tengpeng/spark,SnappyDataInc/spark,gioenn/xSpark,milliman/spark,1haodian/spark,dongjoon-hyun/spark,Panos-Bletsos/spark-cost-model-optimizer,jlopezmalla/spark,bravo-zhang/spark,ddna1021/spark,spark-test/spark,holdenk/spark,xuanyuanking/spark,SnappyDataInc/spark,ddna1021/spark,saltstar/spark,nlalevee/spark,Panos-Bletsos/spark-cost-model-optimizer,holdenk/spark,lvdongr/spark,SHASHANKB/spark,zero323/spark,saturday-shi/spark,witgo/spark,rednaxelafx/apache-spark,ron8hu/spark,tejasapatil/spark,shubhamchopra/spark,ahnqirage/spark,haowu80s/spark,ron8hu/spark,jlopezmalla/spark,apache-spark-on-k8s/spark,ConeyLiu/spark,andrewor14/spark,joseph-torres/spark,xflin/spark,wangmiao1981/spark,cin/spark,wzhfy/spark,liutang123/spark,skonto/spark,techaddict/spark,kiszk/spark,stanzhai/spark,darionyaphet/spark,mahak/spark,byakuinss/spark,wangyum/spark,sahilTakiar/spark,SHASHANKB/spark,techaddict/spark,mahak/spark,ddna1021/spark,shuangshuangwang/spark,holdenk/spark,actuaryzhang/spark,sachintyagi22/spark,JoshRosen/spark,srowen/spark,byakuinss/spark,adrian-ionescu/apache-spark,Aegeaner/spark,lvdongr/spark,michalsenkyr/spark,liyichao/spark,bravo-zhang/spark,JoshRosen/spark,BryanCutler/spark,icexelloss/spark,techaddict/spark,cin/spark,ahnqirage/spark,publicRoman/spark,Aegeaner/spark,zero323/spark,aosagie/spark,icexelloss/spark,saltstar/spark,tejasapatil/spark,apache/spark,panfengfeng/spark,nchammas/spark,HyukjinKwon/spark,ddna1021/spark,patrick-nicholson/spark,chuckchen/spark,wangmiao1981/spark,huang1900/spark,haowu80s/spark,kimoonkim/spark,guoxiaolongzte/spark,wangyum/spark,jrshust/spark,MLnick/spark,MLnick/spark,ConeyLiu/spark,WeichenXu123/spark,jlopezmalla/spark,wzhfy/spark,gioenn/xSpark,caneGuy/spark,techaddict/spark,darionyaphet/spark,SnappyDataInc/spark,zuotingbing/spark,janewangfb/spark,gengliangwang/spark,akopich/spark,spark-test/spark,highfei2011/spark,ericvandenbergfb/spark,apache/spark,janewangfb/spark,rekhajoshm/spark,gengliangwang/spark,SHASHANKB/spark,big-pegasus/spark,xuanyuanking/spark,minixalpha/spark,tengpeng/spark,dhruve/spark,kimoonkim/spark,WindCanDie/spark,loneknightpy/spark,sachintyagi22/spark,ddna1021/spark,lxsmnv/spark,szhem/spark,JerryLead/spark,darionyaphet/spark,wangyum/spark,dbtsai/spark,markhamstra/spark,mahak/spark,srowen/spark,ajaysaini725/spark,stanzhai/spark,patrick-nicholson/spark,nilsgrabbert/spark,HyukjinKwon/spark,dbtsai/spark,stanzhai/spark,tengpeng/spark,caneGuy/spark,cin/spark,WeichenXu123/spark,publicRoman/spark,cin/spark,milliman/spark,bdrillard/spark,rezasafi/spark,JerryLead/spark,michalsenkyr/spark,bdrillard/spark,akopich/spark,wzhfy/spark,UndeadBaneGitHub/spark,pronix/spark,pronix/spark,publicRoman/spark,pgandhi999/spark,saltstar/spark,kevinyu98/spark,haowu80s/spark,ron8hu/spark,xflin/spark,bdrillard/spark,mike0sv/spark,caneGuy/spark,facaiy/spark,BryanCutler/spark,sureshthalamati/spark,liutang123/spark,aokolnychyi/spark,dhruve/spark,bdrillard/spark,goldmedal/spark,rekhajoshm/spark,minixalpha/spark,nlalevee/spark,ptkool/spark,zuotingbing/spark,jrshust/spark,jiangxb1987/spark,1haodian/spark,mdespriee/spark,aray/spark,sureshthalamati/spark,icexelloss/spark,WindCanDie/spark,WeichenXu123/spark,zero323/spark,zuotingbing/spark,dongjoon-hyun/spark,metamx/spark,wangyum/spark,metamx/spark,shuangshuangwang/spark,guoxiaolongzte/spark,wzhfy/spark,narahari92/spark,Panos-Bletsos/spark-cost-model-optimizer,liyichao/spark,hvanhovell/spark,apache/spark,pronix/spark,techaddict/spark,dhruve/spark,debugger87/spark,yanboliang/spark,patrick-nicholson/spark,debugger87/spark,matthewfranglen/spark,panfengfeng/spark,metamx/spark,cloud-fan/spark,adrian-ionescu/apache-spark,witgo/spark,narahari92/spark,ajaysaini725/spark,zhouyejoe/spark,kissmetrics/spark,esi-mineset/spark,jrshust/spark,JerryLead/spark,milliman/spark,taroplus/spark,shuangshuangwang/spark,bOOm-X/spark,JerryLead/spark,JoshRosen/spark,UndeadBaneGitHub/spark,saturday-shi/spark,highfei2011/spark,actuaryzhang/spark,mahak/spark,metamx/spark,wangyum/spark,big-pegasus/spark,xuanyuanking/spark,maropu/spark,zzcclp/spark,wangyum/spark,taroplus/spark,shubhamchopra/spark,dhruve/spark,zzcclp/spark,kiszk/spark,dbtsai/spark,bOOm-X/spark,apache/spark,kimoonkim/spark,publicRoman/spark,WeichenXu123/spark,saltstar/spark,jlopezmalla/spark,LantaoJin/spark,skonto/spark,ueshin/apache-spark,eyalfa/spark,nilsgrabbert/spark,ueshin/apache-spark,JoshRosen/spark,liyichao/spark,vinodkc/spark,markhamstra/spark,kiszk/spark,shuangshuangwang/spark,sahilTakiar/spark,goldmedal/spark,Aegeaner/spark,liutang123/spark,shuangshuangwang/spark,ptkool/spark,jkbradley/spark,caneGuy/spark,poffuomo/spark,rikima/spark,jkbradley/spark,hvanhovell/spark,mdespriee/spark,poffuomo/spark,kevinyu98/spark,sahilTakiar/spark,ioana-delaney/spark,saltstar/spark,zero323/spark,LantaoJin/spark,saturday-shi/spark,lxsmnv/spark,narahari92/spark,someorz/spark,shubhamchopra/spark,someorz/spark,kissmetrics/spark,pgandhi999/spark,joseph-torres/spark,rednaxelafx/apache-spark,ron8hu/spark,setjet/spark,rikima/spark,sahilTakiar/spark,nlalevee/spark,MLnick/spark,hhbyyh/spark,alunarbeach/spark,minixalpha/spark,ptkool/spark,nchammas/spark,rikima/spark,tengpeng/spark,alunarbeach/spark,tejasapatil/spark,gioenn/xSpark,saturday-shi/spark,SnappyDataInc/spark,alunarbeach/spark,kissmetrics/spark,ptkool/spark,big-pegasus/spark,rednaxelafx/apache-spark,liutang123/spark,big-pegasus/spark,nchammas/spark,ahnqirage/spark,ericvandenbergfb/spark,hhbyyh/spark,chuckchen/spark,lxsmnv/spark,publicRoman/spark,ueshin/apache-spark,esi-mineset/spark