added takeSamples method
added takeSamples method

takeSamples method takes a specified number of samples from the RDD and
outputs it in an array.

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