Hbase.py 325 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286
  1. #
  2. # Autogenerated by Thrift Compiler (0.9.0)
  3. #
  4. # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5. #
  6. # options string: py
  7. #
  8. from thrift.Thrift import TType, TMessageType, TException, TApplicationException
  9. from ttypes import *
  10. from thrift.Thrift import TProcessor
  11. from thrift.transport import TTransport
  12. from thrift.protocol import TBinaryProtocol, TProtocol
  13. try:
  14. from thrift.protocol import fastbinary
  15. except:
  16. fastbinary = None
  17. class Iface:
  18. def enableTable(self, tableName):
  19. """
  20. Brings a table on-line (enables it)
  21. Parameters:
  22. - tableName: name of the table
  23. """
  24. pass
  25. def disableTable(self, tableName):
  26. """
  27. Disables a table (takes it off-line) If it is being served, the master
  28. will tell the servers to stop serving it.
  29. Parameters:
  30. - tableName: name of the table
  31. """
  32. pass
  33. def isTableEnabled(self, tableName):
  34. """
  35. @return true if table is on-line
  36. Parameters:
  37. - tableName: name of the table to check
  38. """
  39. pass
  40. def compact(self, tableNameOrRegionName):
  41. """
  42. Parameters:
  43. - tableNameOrRegionName
  44. """
  45. pass
  46. def majorCompact(self, tableNameOrRegionName):
  47. """
  48. Parameters:
  49. - tableNameOrRegionName
  50. """
  51. pass
  52. def getTableNames(self, ):
  53. """
  54. List all the userspace tables.
  55. @return returns a list of names
  56. """
  57. pass
  58. def getColumnDescriptors(self, tableName):
  59. """
  60. List all the column families assoicated with a table.
  61. @return list of column family descriptors
  62. Parameters:
  63. - tableName: table name
  64. """
  65. pass
  66. def getTableRegions(self, tableName):
  67. """
  68. List the regions associated with a table.
  69. @return list of region descriptors
  70. Parameters:
  71. - tableName: table name
  72. """
  73. pass
  74. def createTable(self, tableName, columnFamilies):
  75. """
  76. Create a table with the specified column families. The name
  77. field for each ColumnDescriptor must be set and must end in a
  78. colon (:). All other fields are optional and will get default
  79. values if not explicitly specified.
  80. @throws IllegalArgument if an input parameter is invalid
  81. @throws AlreadyExists if the table name already exists
  82. Parameters:
  83. - tableName: name of table to create
  84. - columnFamilies: list of column family descriptors
  85. """
  86. pass
  87. def deleteTable(self, tableName):
  88. """
  89. Deletes a table
  90. @throws IOError if table doesn't exist on server or there was some other
  91. problem
  92. Parameters:
  93. - tableName: name of table to delete
  94. """
  95. pass
  96. def get(self, tableName, row, column, attributes):
  97. """
  98. Get a single TCell for the specified table, row, and column at the
  99. latest timestamp. Returns an empty list if no such value exists.
  100. @return value for specified row/column
  101. Parameters:
  102. - tableName: name of table
  103. - row: row key
  104. - column: column name
  105. - attributes: Get attributes
  106. """
  107. pass
  108. def getVer(self, tableName, row, column, numVersions, attributes):
  109. """
  110. Get the specified number of versions for the specified table,
  111. row, and column.
  112. @return list of cells for specified row/column
  113. Parameters:
  114. - tableName: name of table
  115. - row: row key
  116. - column: column name
  117. - numVersions: number of versions to retrieve
  118. - attributes: Get attributes
  119. """
  120. pass
  121. def getVerTs(self, tableName, row, column, timestamp, numVersions, attributes):
  122. """
  123. Get the specified number of versions for the specified table,
  124. row, and column. Only versions less than or equal to the specified
  125. timestamp will be returned.
  126. @return list of cells for specified row/column
  127. Parameters:
  128. - tableName: name of table
  129. - row: row key
  130. - column: column name
  131. - timestamp: timestamp
  132. - numVersions: number of versions to retrieve
  133. - attributes: Get attributes
  134. """
  135. pass
  136. def getRow(self, tableName, row, attributes):
  137. """
  138. Get all the data for the specified table and row at the latest
  139. timestamp. Returns an empty list if the row does not exist.
  140. @return TRowResult containing the row and map of columns to TCells
  141. Parameters:
  142. - tableName: name of table
  143. - row: row key
  144. - attributes: Get attributes
  145. """
  146. pass
  147. def getRowWithColumns(self, tableName, row, columns, attributes):
  148. """
  149. Get the specified columns for the specified table and row at the latest
  150. timestamp. Returns an empty list if the row does not exist.
  151. @return TRowResult containing the row and map of columns to TCells
  152. Parameters:
  153. - tableName: name of table
  154. - row: row key
  155. - columns: List of columns to return, null for all columns
  156. - attributes: Get attributes
  157. """
  158. pass
  159. def getRowTs(self, tableName, row, timestamp, attributes):
  160. """
  161. Get all the data for the specified table and row at the specified
  162. timestamp. Returns an empty list if the row does not exist.
  163. @return TRowResult containing the row and map of columns to TCells
  164. Parameters:
  165. - tableName: name of the table
  166. - row: row key
  167. - timestamp: timestamp
  168. - attributes: Get attributes
  169. """
  170. pass
  171. def getRowWithColumnsTs(self, tableName, row, columns, timestamp, attributes):
  172. """
  173. Get the specified columns for the specified table and row at the specified
  174. timestamp. Returns an empty list if the row does not exist.
  175. @return TRowResult containing the row and map of columns to TCells
  176. Parameters:
  177. - tableName: name of table
  178. - row: row key
  179. - columns: List of columns to return, null for all columns
  180. - timestamp
  181. - attributes: Get attributes
  182. """
  183. pass
  184. def getRows(self, tableName, rows, attributes):
  185. """
  186. Get all the data for the specified table and rows at the latest
  187. timestamp. Returns an empty list if no rows exist.
  188. @return TRowResult containing the rows and map of columns to TCells
  189. Parameters:
  190. - tableName: name of table
  191. - rows: row keys
  192. - attributes: Get attributes
  193. """
  194. pass
  195. def getRowsWithColumns(self, tableName, rows, columns, attributes):
  196. """
  197. Get the specified columns for the specified table and rows at the latest
  198. timestamp. Returns an empty list if no rows exist.
  199. @return TRowResult containing the rows and map of columns to TCells
  200. Parameters:
  201. - tableName: name of table
  202. - rows: row keys
  203. - columns: List of columns to return, null for all columns
  204. - attributes: Get attributes
  205. """
  206. pass
  207. def getRowsTs(self, tableName, rows, timestamp, attributes):
  208. """
  209. Get all the data for the specified table and rows at the specified
  210. timestamp. Returns an empty list if no rows exist.
  211. @return TRowResult containing the rows and map of columns to TCells
  212. Parameters:
  213. - tableName: name of the table
  214. - rows: row keys
  215. - timestamp: timestamp
  216. - attributes: Get attributes
  217. """
  218. pass
  219. def getRowsWithColumnsTs(self, tableName, rows, columns, timestamp, attributes):
  220. """
  221. Get the specified columns for the specified table and rows at the specified
  222. timestamp. Returns an empty list if no rows exist.
  223. @return TRowResult containing the rows and map of columns to TCells
  224. Parameters:
  225. - tableName: name of table
  226. - rows: row keys
  227. - columns: List of columns to return, null for all columns
  228. - timestamp
  229. - attributes: Get attributes
  230. """
  231. pass
  232. def mutateRow(self, tableName, row, mutations, attributes):
  233. """
  234. Apply a series of mutations (updates/deletes) to a row in a
  235. single transaction. If an exception is thrown, then the
  236. transaction is aborted. Default current timestamp is used, and
  237. all entries will have an identical timestamp.
  238. Parameters:
  239. - tableName: name of table
  240. - row: row key
  241. - mutations: list of mutation commands
  242. - attributes: Mutation attributes
  243. """
  244. pass
  245. def mutateRowTs(self, tableName, row, mutations, timestamp, attributes):
  246. """
  247. Apply a series of mutations (updates/deletes) to a row in a
  248. single transaction. If an exception is thrown, then the
  249. transaction is aborted. The specified timestamp is used, and
  250. all entries will have an identical timestamp.
  251. Parameters:
  252. - tableName: name of table
  253. - row: row key
  254. - mutations: list of mutation commands
  255. - timestamp: timestamp
  256. - attributes: Mutation attributes
  257. """
  258. pass
  259. def mutateRows(self, tableName, rowBatches, attributes):
  260. """
  261. Apply a series of batches (each a series of mutations on a single row)
  262. in a single transaction. If an exception is thrown, then the
  263. transaction is aborted. Default current timestamp is used, and
  264. all entries will have an identical timestamp.
  265. Parameters:
  266. - tableName: name of table
  267. - rowBatches: list of row batches
  268. - attributes: Mutation attributes
  269. """
  270. pass
  271. def mutateRowsTs(self, tableName, rowBatches, timestamp, attributes):
  272. """
  273. Apply a series of batches (each a series of mutations on a single row)
  274. in a single transaction. If an exception is thrown, then the
  275. transaction is aborted. The specified timestamp is used, and
  276. all entries will have an identical timestamp.
  277. Parameters:
  278. - tableName: name of table
  279. - rowBatches: list of row batches
  280. - timestamp: timestamp
  281. - attributes: Mutation attributes
  282. """
  283. pass
  284. def atomicIncrement(self, tableName, row, column, value):
  285. """
  286. Atomically increment the column value specified. Returns the next value post increment.
  287. Parameters:
  288. - tableName: name of table
  289. - row: row to increment
  290. - column: name of column
  291. - value: amount to increment by
  292. """
  293. pass
  294. def deleteAll(self, tableName, row, column, attributes):
  295. """
  296. Delete all cells that match the passed row and column.
  297. Parameters:
  298. - tableName: name of table
  299. - row: Row to update
  300. - column: name of column whose value is to be deleted
  301. - attributes: Delete attributes
  302. """
  303. pass
  304. def deleteAllTs(self, tableName, row, column, timestamp, attributes):
  305. """
  306. Delete all cells that match the passed row and column and whose
  307. timestamp is equal-to or older than the passed timestamp.
  308. Parameters:
  309. - tableName: name of table
  310. - row: Row to update
  311. - column: name of column whose value is to be deleted
  312. - timestamp: timestamp
  313. - attributes: Delete attributes
  314. """
  315. pass
  316. def deleteAllRow(self, tableName, row, attributes):
  317. """
  318. Completely delete the row's cells.
  319. Parameters:
  320. - tableName: name of table
  321. - row: key of the row to be completely deleted.
  322. - attributes: Delete attributes
  323. """
  324. pass
  325. def increment(self, increment):
  326. """
  327. Increment a cell by the ammount.
  328. Increments can be applied async if hbase.regionserver.thrift.coalesceIncrement is set to true.
  329. False is the default. Turn to true if you need the extra performance and can accept some
  330. data loss if a thrift server dies with increments still in the queue.
  331. Parameters:
  332. - increment: The single increment to apply
  333. """
  334. pass
  335. def incrementRows(self, increments):
  336. """
  337. Parameters:
  338. - increments: The list of increments
  339. """
  340. pass
  341. def deleteAllRowTs(self, tableName, row, timestamp, attributes):
  342. """
  343. Completely delete the row's cells marked with a timestamp
  344. equal-to or older than the passed timestamp.
  345. Parameters:
  346. - tableName: name of table
  347. - row: key of the row to be completely deleted.
  348. - timestamp: timestamp
  349. - attributes: Delete attributes
  350. """
  351. pass
  352. def scannerOpenWithScan(self, tableName, scan, attributes):
  353. """
  354. Get a scanner on the current table, using the Scan instance
  355. for the scan parameters.
  356. Parameters:
  357. - tableName: name of table
  358. - scan: Scan instance
  359. - attributes: Scan attributes
  360. """
  361. pass
  362. def scannerOpen(self, tableName, startRow, columns, attributes):
  363. """
  364. Get a scanner on the current table starting at the specified row and
  365. ending at the last row in the table. Return the specified columns.
  366. @return scanner id to be used with other scanner procedures
  367. Parameters:
  368. - tableName: name of table
  369. - startRow: Starting row in table to scan.
  370. Send "" (empty string) to start at the first row.
  371. - columns: columns to scan. If column name is a column family, all
  372. columns of the specified column family are returned. It's also possible
  373. to pass a regex in the column qualifier.
  374. - attributes: Scan attributes
  375. """
  376. pass
  377. def scannerOpenWithStop(self, tableName, startRow, stopRow, columns, attributes):
  378. """
  379. Get a scanner on the current table starting and stopping at the
  380. specified rows. ending at the last row in the table. Return the
  381. specified columns.
  382. @return scanner id to be used with other scanner procedures
  383. Parameters:
  384. - tableName: name of table
  385. - startRow: Starting row in table to scan.
  386. Send "" (empty string) to start at the first row.
  387. - stopRow: row to stop scanning on. This row is *not* included in the
  388. scanner's results
  389. - columns: columns to scan. If column name is a column family, all
  390. columns of the specified column family are returned. It's also possible
  391. to pass a regex in the column qualifier.
  392. - attributes: Scan attributes
  393. """
  394. pass
  395. def scannerOpenWithPrefix(self, tableName, startAndPrefix, columns, attributes):
  396. """
  397. Open a scanner for a given prefix. That is all rows will have the specified
  398. prefix. No other rows will be returned.
  399. @return scanner id to use with other scanner calls
  400. Parameters:
  401. - tableName: name of table
  402. - startAndPrefix: the prefix (and thus start row) of the keys you want
  403. - columns: the columns you want returned
  404. - attributes: Scan attributes
  405. """
  406. pass
  407. def scannerOpenTs(self, tableName, startRow, columns, timestamp, attributes):
  408. """
  409. Get a scanner on the current table starting at the specified row and
  410. ending at the last row in the table. Return the specified columns.
  411. Only values with the specified timestamp are returned.
  412. @return scanner id to be used with other scanner procedures
  413. Parameters:
  414. - tableName: name of table
  415. - startRow: Starting row in table to scan.
  416. Send "" (empty string) to start at the first row.
  417. - columns: columns to scan. If column name is a column family, all
  418. columns of the specified column family are returned. It's also possible
  419. to pass a regex in the column qualifier.
  420. - timestamp: timestamp
  421. - attributes: Scan attributes
  422. """
  423. pass
  424. def scannerOpenWithStopTs(self, tableName, startRow, stopRow, columns, timestamp, attributes):
  425. """
  426. Get a scanner on the current table starting and stopping at the
  427. specified rows. ending at the last row in the table. Return the
  428. specified columns. Only values with the specified timestamp are
  429. returned.
  430. @return scanner id to be used with other scanner procedures
  431. Parameters:
  432. - tableName: name of table
  433. - startRow: Starting row in table to scan.
  434. Send "" (empty string) to start at the first row.
  435. - stopRow: row to stop scanning on. This row is *not* included in the
  436. scanner's results
  437. - columns: columns to scan. If column name is a column family, all
  438. columns of the specified column family are returned. It's also possible
  439. to pass a regex in the column qualifier.
  440. - timestamp: timestamp
  441. - attributes: Scan attributes
  442. """
  443. pass
  444. def scannerGet(self, id):
  445. """
  446. Returns the scanner's current row value and advances to the next
  447. row in the table. When there are no more rows in the table, or a key
  448. greater-than-or-equal-to the scanner's specified stopRow is reached,
  449. an empty list is returned.
  450. @return a TRowResult containing the current row and a map of the columns to TCells.
  451. @throws IllegalArgument if ScannerID is invalid
  452. @throws NotFound when the scanner reaches the end
  453. Parameters:
  454. - id: id of a scanner returned by scannerOpen
  455. """
  456. pass
  457. def scannerGetList(self, id, nbRows):
  458. """
  459. Returns, starting at the scanner's current row value nbRows worth of
  460. rows and advances to the next row in the table. When there are no more
  461. rows in the table, or a key greater-than-or-equal-to the scanner's
  462. specified stopRow is reached, an empty list is returned.
  463. @return a TRowResult containing the current row and a map of the columns to TCells.
  464. @throws IllegalArgument if ScannerID is invalid
  465. @throws NotFound when the scanner reaches the end
  466. Parameters:
  467. - id: id of a scanner returned by scannerOpen
  468. - nbRows: number of results to return
  469. """
  470. pass
  471. def scannerClose(self, id):
  472. """
  473. Closes the server-state associated with an open scanner.
  474. @throws IllegalArgument if ScannerID is invalid
  475. Parameters:
  476. - id: id of a scanner returned by scannerOpen
  477. """
  478. pass
  479. def getRowOrBefore(self, tableName, row, family):
  480. """
  481. Get the row just before the specified one.
  482. @return value for specified row/column
  483. Parameters:
  484. - tableName: name of table
  485. - row: row key
  486. - family: column name
  487. """
  488. pass
  489. def getRegionInfo(self, row):
  490. """
  491. Get the regininfo for the specified row. It scans
  492. the metatable to find region's start and end keys.
  493. @return value for specified row/column
  494. Parameters:
  495. - row: row key
  496. """
  497. pass
  498. class Client(Iface):
  499. def __init__(self, iprot, oprot=None):
  500. self._iprot = self._oprot = iprot
  501. if oprot is not None:
  502. self._oprot = oprot
  503. self._seqid = 0
  504. def enableTable(self, tableName):
  505. """
  506. Brings a table on-line (enables it)
  507. Parameters:
  508. - tableName: name of the table
  509. """
  510. self.send_enableTable(tableName)
  511. self.recv_enableTable()
  512. def send_enableTable(self, tableName):
  513. self._oprot.writeMessageBegin('enableTable', TMessageType.CALL, self._seqid)
  514. args = enableTable_args()
  515. args.tableName = tableName
  516. args.write(self._oprot)
  517. self._oprot.writeMessageEnd()
  518. self._oprot.trans.flush()
  519. def recv_enableTable(self, ):
  520. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  521. if mtype == TMessageType.EXCEPTION:
  522. x = TApplicationException()
  523. x.read(self._iprot)
  524. self._iprot.readMessageEnd()
  525. raise x
  526. result = enableTable_result()
  527. result.read(self._iprot)
  528. self._iprot.readMessageEnd()
  529. if result.io is not None:
  530. raise result.io
  531. return
  532. def disableTable(self, tableName):
  533. """
  534. Disables a table (takes it off-line) If it is being served, the master
  535. will tell the servers to stop serving it.
  536. Parameters:
  537. - tableName: name of the table
  538. """
  539. self.send_disableTable(tableName)
  540. self.recv_disableTable()
  541. def send_disableTable(self, tableName):
  542. self._oprot.writeMessageBegin('disableTable', TMessageType.CALL, self._seqid)
  543. args = disableTable_args()
  544. args.tableName = tableName
  545. args.write(self._oprot)
  546. self._oprot.writeMessageEnd()
  547. self._oprot.trans.flush()
  548. def recv_disableTable(self, ):
  549. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  550. if mtype == TMessageType.EXCEPTION:
  551. x = TApplicationException()
  552. x.read(self._iprot)
  553. self._iprot.readMessageEnd()
  554. raise x
  555. result = disableTable_result()
  556. result.read(self._iprot)
  557. self._iprot.readMessageEnd()
  558. if result.io is not None:
  559. raise result.io
  560. return
  561. def isTableEnabled(self, tableName):
  562. """
  563. @return true if table is on-line
  564. Parameters:
  565. - tableName: name of the table to check
  566. """
  567. self.send_isTableEnabled(tableName)
  568. return self.recv_isTableEnabled()
  569. def send_isTableEnabled(self, tableName):
  570. self._oprot.writeMessageBegin('isTableEnabled', TMessageType.CALL, self._seqid)
  571. args = isTableEnabled_args()
  572. args.tableName = tableName
  573. args.write(self._oprot)
  574. self._oprot.writeMessageEnd()
  575. self._oprot.trans.flush()
  576. def recv_isTableEnabled(self, ):
  577. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  578. if mtype == TMessageType.EXCEPTION:
  579. x = TApplicationException()
  580. x.read(self._iprot)
  581. self._iprot.readMessageEnd()
  582. raise x
  583. result = isTableEnabled_result()
  584. result.read(self._iprot)
  585. self._iprot.readMessageEnd()
  586. if result.success is not None:
  587. return result.success
  588. if result.io is not None:
  589. raise result.io
  590. raise TApplicationException(TApplicationException.MISSING_RESULT, "isTableEnabled failed: unknown result");
  591. def compact(self, tableNameOrRegionName):
  592. """
  593. Parameters:
  594. - tableNameOrRegionName
  595. """
  596. self.send_compact(tableNameOrRegionName)
  597. self.recv_compact()
  598. def send_compact(self, tableNameOrRegionName):
  599. self._oprot.writeMessageBegin('compact', TMessageType.CALL, self._seqid)
  600. args = compact_args()
  601. args.tableNameOrRegionName = tableNameOrRegionName
  602. args.write(self._oprot)
  603. self._oprot.writeMessageEnd()
  604. self._oprot.trans.flush()
  605. def recv_compact(self, ):
  606. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  607. if mtype == TMessageType.EXCEPTION:
  608. x = TApplicationException()
  609. x.read(self._iprot)
  610. self._iprot.readMessageEnd()
  611. raise x
  612. result = compact_result()
  613. result.read(self._iprot)
  614. self._iprot.readMessageEnd()
  615. if result.io is not None:
  616. raise result.io
  617. return
  618. def majorCompact(self, tableNameOrRegionName):
  619. """
  620. Parameters:
  621. - tableNameOrRegionName
  622. """
  623. self.send_majorCompact(tableNameOrRegionName)
  624. self.recv_majorCompact()
  625. def send_majorCompact(self, tableNameOrRegionName):
  626. self._oprot.writeMessageBegin('majorCompact', TMessageType.CALL, self._seqid)
  627. args = majorCompact_args()
  628. args.tableNameOrRegionName = tableNameOrRegionName
  629. args.write(self._oprot)
  630. self._oprot.writeMessageEnd()
  631. self._oprot.trans.flush()
  632. def recv_majorCompact(self, ):
  633. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  634. if mtype == TMessageType.EXCEPTION:
  635. x = TApplicationException()
  636. x.read(self._iprot)
  637. self._iprot.readMessageEnd()
  638. raise x
  639. result = majorCompact_result()
  640. result.read(self._iprot)
  641. self._iprot.readMessageEnd()
  642. if result.io is not None:
  643. raise result.io
  644. return
  645. def getTableNames(self, ):
  646. """
  647. List all the userspace tables.
  648. @return returns a list of names
  649. """
  650. self.send_getTableNames()
  651. return self.recv_getTableNames()
  652. def send_getTableNames(self, ):
  653. self._oprot.writeMessageBegin('getTableNames', TMessageType.CALL, self._seqid)
  654. args = getTableNames_args()
  655. args.write(self._oprot)
  656. self._oprot.writeMessageEnd()
  657. self._oprot.trans.flush()
  658. def recv_getTableNames(self, ):
  659. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  660. if mtype == TMessageType.EXCEPTION:
  661. x = TApplicationException()
  662. x.read(self._iprot)
  663. self._iprot.readMessageEnd()
  664. raise x
  665. result = getTableNames_result()
  666. result.read(self._iprot)
  667. self._iprot.readMessageEnd()
  668. if result.success is not None:
  669. return result.success
  670. if result.io is not None:
  671. raise result.io
  672. raise TApplicationException(TApplicationException.MISSING_RESULT, "getTableNames failed: unknown result");
  673. def getColumnDescriptors(self, tableName):
  674. """
  675. List all the column families assoicated with a table.
  676. @return list of column family descriptors
  677. Parameters:
  678. - tableName: table name
  679. """
  680. self.send_getColumnDescriptors(tableName)
  681. return self.recv_getColumnDescriptors()
  682. def send_getColumnDescriptors(self, tableName):
  683. self._oprot.writeMessageBegin('getColumnDescriptors', TMessageType.CALL, self._seqid)
  684. args = getColumnDescriptors_args()
  685. args.tableName = tableName
  686. args.write(self._oprot)
  687. self._oprot.writeMessageEnd()
  688. self._oprot.trans.flush()
  689. def recv_getColumnDescriptors(self, ):
  690. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  691. if mtype == TMessageType.EXCEPTION:
  692. x = TApplicationException()
  693. x.read(self._iprot)
  694. self._iprot.readMessageEnd()
  695. raise x
  696. result = getColumnDescriptors_result()
  697. result.read(self._iprot)
  698. self._iprot.readMessageEnd()
  699. if result.success is not None:
  700. return result.success
  701. if result.io is not None:
  702. raise result.io
  703. raise TApplicationException(TApplicationException.MISSING_RESULT, "getColumnDescriptors failed: unknown result");
  704. def getTableRegions(self, tableName):
  705. """
  706. List the regions associated with a table.
  707. @return list of region descriptors
  708. Parameters:
  709. - tableName: table name
  710. """
  711. self.send_getTableRegions(tableName)
  712. return self.recv_getTableRegions()
  713. def send_getTableRegions(self, tableName):
  714. self._oprot.writeMessageBegin('getTableRegions', TMessageType.CALL, self._seqid)
  715. args = getTableRegions_args()
  716. args.tableName = tableName
  717. args.write(self._oprot)
  718. self._oprot.writeMessageEnd()
  719. self._oprot.trans.flush()
  720. def recv_getTableRegions(self, ):
  721. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  722. if mtype == TMessageType.EXCEPTION:
  723. x = TApplicationException()
  724. x.read(self._iprot)
  725. self._iprot.readMessageEnd()
  726. raise x
  727. result = getTableRegions_result()
  728. result.read(self._iprot)
  729. self._iprot.readMessageEnd()
  730. if result.success is not None:
  731. return result.success
  732. if result.io is not None:
  733. raise result.io
  734. raise TApplicationException(TApplicationException.MISSING_RESULT, "getTableRegions failed: unknown result");
  735. def createTable(self, tableName, columnFamilies):
  736. """
  737. Create a table with the specified column families. The name
  738. field for each ColumnDescriptor must be set and must end in a
  739. colon (:). All other fields are optional and will get default
  740. values if not explicitly specified.
  741. @throws IllegalArgument if an input parameter is invalid
  742. @throws AlreadyExists if the table name already exists
  743. Parameters:
  744. - tableName: name of table to create
  745. - columnFamilies: list of column family descriptors
  746. """
  747. self.send_createTable(tableName, columnFamilies)
  748. self.recv_createTable()
  749. def send_createTable(self, tableName, columnFamilies):
  750. self._oprot.writeMessageBegin('createTable', TMessageType.CALL, self._seqid)
  751. args = createTable_args()
  752. args.tableName = tableName
  753. args.columnFamilies = columnFamilies
  754. args.write(self._oprot)
  755. self._oprot.writeMessageEnd()
  756. self._oprot.trans.flush()
  757. def recv_createTable(self, ):
  758. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  759. if mtype == TMessageType.EXCEPTION:
  760. x = TApplicationException()
  761. x.read(self._iprot)
  762. self._iprot.readMessageEnd()
  763. raise x
  764. result = createTable_result()
  765. result.read(self._iprot)
  766. self._iprot.readMessageEnd()
  767. if result.io is not None:
  768. raise result.io
  769. if result.ia is not None:
  770. raise result.ia
  771. if result.exist is not None:
  772. raise result.exist
  773. return
  774. def deleteTable(self, tableName):
  775. """
  776. Deletes a table
  777. @throws IOError if table doesn't exist on server or there was some other
  778. problem
  779. Parameters:
  780. - tableName: name of table to delete
  781. """
  782. self.send_deleteTable(tableName)
  783. self.recv_deleteTable()
  784. def send_deleteTable(self, tableName):
  785. self._oprot.writeMessageBegin('deleteTable', TMessageType.CALL, self._seqid)
  786. args = deleteTable_args()
  787. args.tableName = tableName
  788. args.write(self._oprot)
  789. self._oprot.writeMessageEnd()
  790. self._oprot.trans.flush()
  791. def recv_deleteTable(self, ):
  792. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  793. if mtype == TMessageType.EXCEPTION:
  794. x = TApplicationException()
  795. x.read(self._iprot)
  796. self._iprot.readMessageEnd()
  797. raise x
  798. result = deleteTable_result()
  799. result.read(self._iprot)
  800. self._iprot.readMessageEnd()
  801. if result.io is not None:
  802. raise result.io
  803. return
  804. def get(self, tableName, row, column, attributes):
  805. """
  806. Get a single TCell for the specified table, row, and column at the
  807. latest timestamp. Returns an empty list if no such value exists.
  808. @return value for specified row/column
  809. Parameters:
  810. - tableName: name of table
  811. - row: row key
  812. - column: column name
  813. - attributes: Get attributes
  814. """
  815. self.send_get(tableName, row, column, attributes)
  816. return self.recv_get()
  817. def send_get(self, tableName, row, column, attributes):
  818. self._oprot.writeMessageBegin('get', TMessageType.CALL, self._seqid)
  819. args = get_args()
  820. args.tableName = tableName
  821. args.row = row
  822. args.column = column
  823. args.attributes = attributes
  824. args.write(self._oprot)
  825. self._oprot.writeMessageEnd()
  826. self._oprot.trans.flush()
  827. def recv_get(self, ):
  828. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  829. if mtype == TMessageType.EXCEPTION:
  830. x = TApplicationException()
  831. x.read(self._iprot)
  832. self._iprot.readMessageEnd()
  833. raise x
  834. result = get_result()
  835. result.read(self._iprot)
  836. self._iprot.readMessageEnd()
  837. if result.success is not None:
  838. return result.success
  839. if result.io is not None:
  840. raise result.io
  841. raise TApplicationException(TApplicationException.MISSING_RESULT, "get failed: unknown result");
  842. def getVer(self, tableName, row, column, numVersions, attributes):
  843. """
  844. Get the specified number of versions for the specified table,
  845. row, and column.
  846. @return list of cells for specified row/column
  847. Parameters:
  848. - tableName: name of table
  849. - row: row key
  850. - column: column name
  851. - numVersions: number of versions to retrieve
  852. - attributes: Get attributes
  853. """
  854. self.send_getVer(tableName, row, column, numVersions, attributes)
  855. return self.recv_getVer()
  856. def send_getVer(self, tableName, row, column, numVersions, attributes):
  857. self._oprot.writeMessageBegin('getVer', TMessageType.CALL, self._seqid)
  858. args = getVer_args()
  859. args.tableName = tableName
  860. args.row = row
  861. args.column = column
  862. args.numVersions = numVersions
  863. args.attributes = attributes
  864. args.write(self._oprot)
  865. self._oprot.writeMessageEnd()
  866. self._oprot.trans.flush()
  867. def recv_getVer(self, ):
  868. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  869. if mtype == TMessageType.EXCEPTION:
  870. x = TApplicationException()
  871. x.read(self._iprot)
  872. self._iprot.readMessageEnd()
  873. raise x
  874. result = getVer_result()
  875. result.read(self._iprot)
  876. self._iprot.readMessageEnd()
  877. if result.success is not None:
  878. return result.success
  879. if result.io is not None:
  880. raise result.io
  881. raise TApplicationException(TApplicationException.MISSING_RESULT, "getVer failed: unknown result");
  882. def getVerTs(self, tableName, row, column, timestamp, numVersions, attributes):
  883. """
  884. Get the specified number of versions for the specified table,
  885. row, and column. Only versions less than or equal to the specified
  886. timestamp will be returned.
  887. @return list of cells for specified row/column
  888. Parameters:
  889. - tableName: name of table
  890. - row: row key
  891. - column: column name
  892. - timestamp: timestamp
  893. - numVersions: number of versions to retrieve
  894. - attributes: Get attributes
  895. """
  896. self.send_getVerTs(tableName, row, column, timestamp, numVersions, attributes)
  897. return self.recv_getVerTs()
  898. def send_getVerTs(self, tableName, row, column, timestamp, numVersions, attributes):
  899. self._oprot.writeMessageBegin('getVerTs', TMessageType.CALL, self._seqid)
  900. args = getVerTs_args()
  901. args.tableName = tableName
  902. args.row = row
  903. args.column = column
  904. args.timestamp = timestamp
  905. args.numVersions = numVersions
  906. args.attributes = attributes
  907. args.write(self._oprot)
  908. self._oprot.writeMessageEnd()
  909. self._oprot.trans.flush()
  910. def recv_getVerTs(self, ):
  911. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  912. if mtype == TMessageType.EXCEPTION:
  913. x = TApplicationException()
  914. x.read(self._iprot)
  915. self._iprot.readMessageEnd()
  916. raise x
  917. result = getVerTs_result()
  918. result.read(self._iprot)
  919. self._iprot.readMessageEnd()
  920. if result.success is not None:
  921. return result.success
  922. if result.io is not None:
  923. raise result.io
  924. raise TApplicationException(TApplicationException.MISSING_RESULT, "getVerTs failed: unknown result");
  925. def getRow(self, tableName, row, attributes):
  926. """
  927. Get all the data for the specified table and row at the latest
  928. timestamp. Returns an empty list if the row does not exist.
  929. @return TRowResult containing the row and map of columns to TCells
  930. Parameters:
  931. - tableName: name of table
  932. - row: row key
  933. - attributes: Get attributes
  934. """
  935. self.send_getRow(tableName, row, attributes)
  936. return self.recv_getRow()
  937. def send_getRow(self, tableName, row, attributes):
  938. self._oprot.writeMessageBegin('getRow', TMessageType.CALL, self._seqid)
  939. args = getRow_args()
  940. args.tableName = tableName
  941. args.row = row
  942. args.attributes = attributes
  943. args.write(self._oprot)
  944. self._oprot.writeMessageEnd()
  945. self._oprot.trans.flush()
  946. def recv_getRow(self, ):
  947. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  948. if mtype == TMessageType.EXCEPTION:
  949. x = TApplicationException()
  950. x.read(self._iprot)
  951. self._iprot.readMessageEnd()
  952. raise x
  953. result = getRow_result()
  954. result.read(self._iprot)
  955. self._iprot.readMessageEnd()
  956. if result.success is not None:
  957. return result.success
  958. if result.io is not None:
  959. raise result.io
  960. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRow failed: unknown result");
  961. def getRowWithColumns(self, tableName, row, columns, attributes):
  962. """
  963. Get the specified columns for the specified table and row at the latest
  964. timestamp. Returns an empty list if the row does not exist.
  965. @return TRowResult containing the row and map of columns to TCells
  966. Parameters:
  967. - tableName: name of table
  968. - row: row key
  969. - columns: List of columns to return, null for all columns
  970. - attributes: Get attributes
  971. """
  972. self.send_getRowWithColumns(tableName, row, columns, attributes)
  973. return self.recv_getRowWithColumns()
  974. def send_getRowWithColumns(self, tableName, row, columns, attributes):
  975. self._oprot.writeMessageBegin('getRowWithColumns', TMessageType.CALL, self._seqid)
  976. args = getRowWithColumns_args()
  977. args.tableName = tableName
  978. args.row = row
  979. args.columns = columns
  980. args.attributes = attributes
  981. args.write(self._oprot)
  982. self._oprot.writeMessageEnd()
  983. self._oprot.trans.flush()
  984. def recv_getRowWithColumns(self, ):
  985. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  986. if mtype == TMessageType.EXCEPTION:
  987. x = TApplicationException()
  988. x.read(self._iprot)
  989. self._iprot.readMessageEnd()
  990. raise x
  991. result = getRowWithColumns_result()
  992. result.read(self._iprot)
  993. self._iprot.readMessageEnd()
  994. if result.success is not None:
  995. return result.success
  996. if result.io is not None:
  997. raise result.io
  998. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowWithColumns failed: unknown result");
  999. def getRowTs(self, tableName, row, timestamp, attributes):
  1000. """
  1001. Get all the data for the specified table and row at the specified
  1002. timestamp. Returns an empty list if the row does not exist.
  1003. @return TRowResult containing the row and map of columns to TCells
  1004. Parameters:
  1005. - tableName: name of the table
  1006. - row: row key
  1007. - timestamp: timestamp
  1008. - attributes: Get attributes
  1009. """
  1010. self.send_getRowTs(tableName, row, timestamp, attributes)
  1011. return self.recv_getRowTs()
  1012. def send_getRowTs(self, tableName, row, timestamp, attributes):
  1013. self._oprot.writeMessageBegin('getRowTs', TMessageType.CALL, self._seqid)
  1014. args = getRowTs_args()
  1015. args.tableName = tableName
  1016. args.row = row
  1017. args.timestamp = timestamp
  1018. args.attributes = attributes
  1019. args.write(self._oprot)
  1020. self._oprot.writeMessageEnd()
  1021. self._oprot.trans.flush()
  1022. def recv_getRowTs(self, ):
  1023. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1024. if mtype == TMessageType.EXCEPTION:
  1025. x = TApplicationException()
  1026. x.read(self._iprot)
  1027. self._iprot.readMessageEnd()
  1028. raise x
  1029. result = getRowTs_result()
  1030. result.read(self._iprot)
  1031. self._iprot.readMessageEnd()
  1032. if result.success is not None:
  1033. return result.success
  1034. if result.io is not None:
  1035. raise result.io
  1036. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowTs failed: unknown result");
  1037. def getRowWithColumnsTs(self, tableName, row, columns, timestamp, attributes):
  1038. """
  1039. Get the specified columns for the specified table and row at the specified
  1040. timestamp. Returns an empty list if the row does not exist.
  1041. @return TRowResult containing the row and map of columns to TCells
  1042. Parameters:
  1043. - tableName: name of table
  1044. - row: row key
  1045. - columns: List of columns to return, null for all columns
  1046. - timestamp
  1047. - attributes: Get attributes
  1048. """
  1049. self.send_getRowWithColumnsTs(tableName, row, columns, timestamp, attributes)
  1050. return self.recv_getRowWithColumnsTs()
  1051. def send_getRowWithColumnsTs(self, tableName, row, columns, timestamp, attributes):
  1052. self._oprot.writeMessageBegin('getRowWithColumnsTs', TMessageType.CALL, self._seqid)
  1053. args = getRowWithColumnsTs_args()
  1054. args.tableName = tableName
  1055. args.row = row
  1056. args.columns = columns
  1057. args.timestamp = timestamp
  1058. args.attributes = attributes
  1059. args.write(self._oprot)
  1060. self._oprot.writeMessageEnd()
  1061. self._oprot.trans.flush()
  1062. def recv_getRowWithColumnsTs(self, ):
  1063. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1064. if mtype == TMessageType.EXCEPTION:
  1065. x = TApplicationException()
  1066. x.read(self._iprot)
  1067. self._iprot.readMessageEnd()
  1068. raise x
  1069. result = getRowWithColumnsTs_result()
  1070. result.read(self._iprot)
  1071. self._iprot.readMessageEnd()
  1072. if result.success is not None:
  1073. return result.success
  1074. if result.io is not None:
  1075. raise result.io
  1076. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowWithColumnsTs failed: unknown result");
  1077. def getRows(self, tableName, rows, attributes):
  1078. """
  1079. Get all the data for the specified table and rows at the latest
  1080. timestamp. Returns an empty list if no rows exist.
  1081. @return TRowResult containing the rows and map of columns to TCells
  1082. Parameters:
  1083. - tableName: name of table
  1084. - rows: row keys
  1085. - attributes: Get attributes
  1086. """
  1087. self.send_getRows(tableName, rows, attributes)
  1088. return self.recv_getRows()
  1089. def send_getRows(self, tableName, rows, attributes):
  1090. self._oprot.writeMessageBegin('getRows', TMessageType.CALL, self._seqid)
  1091. args = getRows_args()
  1092. args.tableName = tableName
  1093. args.rows = rows
  1094. args.attributes = attributes
  1095. args.write(self._oprot)
  1096. self._oprot.writeMessageEnd()
  1097. self._oprot.trans.flush()
  1098. def recv_getRows(self, ):
  1099. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1100. if mtype == TMessageType.EXCEPTION:
  1101. x = TApplicationException()
  1102. x.read(self._iprot)
  1103. self._iprot.readMessageEnd()
  1104. raise x
  1105. result = getRows_result()
  1106. result.read(self._iprot)
  1107. self._iprot.readMessageEnd()
  1108. if result.success is not None:
  1109. return result.success
  1110. if result.io is not None:
  1111. raise result.io
  1112. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRows failed: unknown result");
  1113. def getRowsWithColumns(self, tableName, rows, columns, attributes):
  1114. """
  1115. Get the specified columns for the specified table and rows at the latest
  1116. timestamp. Returns an empty list if no rows exist.
  1117. @return TRowResult containing the rows and map of columns to TCells
  1118. Parameters:
  1119. - tableName: name of table
  1120. - rows: row keys
  1121. - columns: List of columns to return, null for all columns
  1122. - attributes: Get attributes
  1123. """
  1124. self.send_getRowsWithColumns(tableName, rows, columns, attributes)
  1125. return self.recv_getRowsWithColumns()
  1126. def send_getRowsWithColumns(self, tableName, rows, columns, attributes):
  1127. self._oprot.writeMessageBegin('getRowsWithColumns', TMessageType.CALL, self._seqid)
  1128. args = getRowsWithColumns_args()
  1129. args.tableName = tableName
  1130. args.rows = rows
  1131. args.columns = columns
  1132. args.attributes = attributes
  1133. args.write(self._oprot)
  1134. self._oprot.writeMessageEnd()
  1135. self._oprot.trans.flush()
  1136. def recv_getRowsWithColumns(self, ):
  1137. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1138. if mtype == TMessageType.EXCEPTION:
  1139. x = TApplicationException()
  1140. x.read(self._iprot)
  1141. self._iprot.readMessageEnd()
  1142. raise x
  1143. result = getRowsWithColumns_result()
  1144. result.read(self._iprot)
  1145. self._iprot.readMessageEnd()
  1146. if result.success is not None:
  1147. return result.success
  1148. if result.io is not None:
  1149. raise result.io
  1150. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowsWithColumns failed: unknown result");
  1151. def getRowsTs(self, tableName, rows, timestamp, attributes):
  1152. """
  1153. Get all the data for the specified table and rows at the specified
  1154. timestamp. Returns an empty list if no rows exist.
  1155. @return TRowResult containing the rows and map of columns to TCells
  1156. Parameters:
  1157. - tableName: name of the table
  1158. - rows: row keys
  1159. - timestamp: timestamp
  1160. - attributes: Get attributes
  1161. """
  1162. self.send_getRowsTs(tableName, rows, timestamp, attributes)
  1163. return self.recv_getRowsTs()
  1164. def send_getRowsTs(self, tableName, rows, timestamp, attributes):
  1165. self._oprot.writeMessageBegin('getRowsTs', TMessageType.CALL, self._seqid)
  1166. args = getRowsTs_args()
  1167. args.tableName = tableName
  1168. args.rows = rows
  1169. args.timestamp = timestamp
  1170. args.attributes = attributes
  1171. args.write(self._oprot)
  1172. self._oprot.writeMessageEnd()
  1173. self._oprot.trans.flush()
  1174. def recv_getRowsTs(self, ):
  1175. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1176. if mtype == TMessageType.EXCEPTION:
  1177. x = TApplicationException()
  1178. x.read(self._iprot)
  1179. self._iprot.readMessageEnd()
  1180. raise x
  1181. result = getRowsTs_result()
  1182. result.read(self._iprot)
  1183. self._iprot.readMessageEnd()
  1184. if result.success is not None:
  1185. return result.success
  1186. if result.io is not None:
  1187. raise result.io
  1188. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowsTs failed: unknown result");
  1189. def getRowsWithColumnsTs(self, tableName, rows, columns, timestamp, attributes):
  1190. """
  1191. Get the specified columns for the specified table and rows at the specified
  1192. timestamp. Returns an empty list if no rows exist.
  1193. @return TRowResult containing the rows and map of columns to TCells
  1194. Parameters:
  1195. - tableName: name of table
  1196. - rows: row keys
  1197. - columns: List of columns to return, null for all columns
  1198. - timestamp
  1199. - attributes: Get attributes
  1200. """
  1201. self.send_getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes)
  1202. return self.recv_getRowsWithColumnsTs()
  1203. def send_getRowsWithColumnsTs(self, tableName, rows, columns, timestamp, attributes):
  1204. self._oprot.writeMessageBegin('getRowsWithColumnsTs', TMessageType.CALL, self._seqid)
  1205. args = getRowsWithColumnsTs_args()
  1206. args.tableName = tableName
  1207. args.rows = rows
  1208. args.columns = columns
  1209. args.timestamp = timestamp
  1210. args.attributes = attributes
  1211. args.write(self._oprot)
  1212. self._oprot.writeMessageEnd()
  1213. self._oprot.trans.flush()
  1214. def recv_getRowsWithColumnsTs(self, ):
  1215. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1216. if mtype == TMessageType.EXCEPTION:
  1217. x = TApplicationException()
  1218. x.read(self._iprot)
  1219. self._iprot.readMessageEnd()
  1220. raise x
  1221. result = getRowsWithColumnsTs_result()
  1222. result.read(self._iprot)
  1223. self._iprot.readMessageEnd()
  1224. if result.success is not None:
  1225. return result.success
  1226. if result.io is not None:
  1227. raise result.io
  1228. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowsWithColumnsTs failed: unknown result");
  1229. def mutateRow(self, tableName, row, mutations, attributes):
  1230. """
  1231. Apply a series of mutations (updates/deletes) to a row in a
  1232. single transaction. If an exception is thrown, then the
  1233. transaction is aborted. Default current timestamp is used, and
  1234. all entries will have an identical timestamp.
  1235. Parameters:
  1236. - tableName: name of table
  1237. - row: row key
  1238. - mutations: list of mutation commands
  1239. - attributes: Mutation attributes
  1240. """
  1241. self.send_mutateRow(tableName, row, mutations, attributes)
  1242. self.recv_mutateRow()
  1243. def send_mutateRow(self, tableName, row, mutations, attributes):
  1244. self._oprot.writeMessageBegin('mutateRow', TMessageType.CALL, self._seqid)
  1245. args = mutateRow_args()
  1246. args.tableName = tableName
  1247. args.row = row
  1248. args.mutations = mutations
  1249. args.attributes = attributes
  1250. args.write(self._oprot)
  1251. self._oprot.writeMessageEnd()
  1252. self._oprot.trans.flush()
  1253. def recv_mutateRow(self, ):
  1254. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1255. if mtype == TMessageType.EXCEPTION:
  1256. x = TApplicationException()
  1257. x.read(self._iprot)
  1258. self._iprot.readMessageEnd()
  1259. raise x
  1260. result = mutateRow_result()
  1261. result.read(self._iprot)
  1262. self._iprot.readMessageEnd()
  1263. if result.io is not None:
  1264. raise result.io
  1265. if result.ia is not None:
  1266. raise result.ia
  1267. return
  1268. def mutateRowTs(self, tableName, row, mutations, timestamp, attributes):
  1269. """
  1270. Apply a series of mutations (updates/deletes) to a row in a
  1271. single transaction. If an exception is thrown, then the
  1272. transaction is aborted. The specified timestamp is used, and
  1273. all entries will have an identical timestamp.
  1274. Parameters:
  1275. - tableName: name of table
  1276. - row: row key
  1277. - mutations: list of mutation commands
  1278. - timestamp: timestamp
  1279. - attributes: Mutation attributes
  1280. """
  1281. self.send_mutateRowTs(tableName, row, mutations, timestamp, attributes)
  1282. self.recv_mutateRowTs()
  1283. def send_mutateRowTs(self, tableName, row, mutations, timestamp, attributes):
  1284. self._oprot.writeMessageBegin('mutateRowTs', TMessageType.CALL, self._seqid)
  1285. args = mutateRowTs_args()
  1286. args.tableName = tableName
  1287. args.row = row
  1288. args.mutations = mutations
  1289. args.timestamp = timestamp
  1290. args.attributes = attributes
  1291. args.write(self._oprot)
  1292. self._oprot.writeMessageEnd()
  1293. self._oprot.trans.flush()
  1294. def recv_mutateRowTs(self, ):
  1295. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1296. if mtype == TMessageType.EXCEPTION:
  1297. x = TApplicationException()
  1298. x.read(self._iprot)
  1299. self._iprot.readMessageEnd()
  1300. raise x
  1301. result = mutateRowTs_result()
  1302. result.read(self._iprot)
  1303. self._iprot.readMessageEnd()
  1304. if result.io is not None:
  1305. raise result.io
  1306. if result.ia is not None:
  1307. raise result.ia
  1308. return
  1309. def mutateRows(self, tableName, rowBatches, attributes):
  1310. """
  1311. Apply a series of batches (each a series of mutations on a single row)
  1312. in a single transaction. If an exception is thrown, then the
  1313. transaction is aborted. Default current timestamp is used, and
  1314. all entries will have an identical timestamp.
  1315. Parameters:
  1316. - tableName: name of table
  1317. - rowBatches: list of row batches
  1318. - attributes: Mutation attributes
  1319. """
  1320. self.send_mutateRows(tableName, rowBatches, attributes)
  1321. self.recv_mutateRows()
  1322. def send_mutateRows(self, tableName, rowBatches, attributes):
  1323. self._oprot.writeMessageBegin('mutateRows', TMessageType.CALL, self._seqid)
  1324. args = mutateRows_args()
  1325. args.tableName = tableName
  1326. args.rowBatches = rowBatches
  1327. args.attributes = attributes
  1328. args.write(self._oprot)
  1329. self._oprot.writeMessageEnd()
  1330. self._oprot.trans.flush()
  1331. def recv_mutateRows(self, ):
  1332. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1333. if mtype == TMessageType.EXCEPTION:
  1334. x = TApplicationException()
  1335. x.read(self._iprot)
  1336. self._iprot.readMessageEnd()
  1337. raise x
  1338. result = mutateRows_result()
  1339. result.read(self._iprot)
  1340. self._iprot.readMessageEnd()
  1341. if result.io is not None:
  1342. raise result.io
  1343. if result.ia is not None:
  1344. raise result.ia
  1345. return
  1346. def mutateRowsTs(self, tableName, rowBatches, timestamp, attributes):
  1347. """
  1348. Apply a series of batches (each a series of mutations on a single row)
  1349. in a single transaction. If an exception is thrown, then the
  1350. transaction is aborted. The specified timestamp is used, and
  1351. all entries will have an identical timestamp.
  1352. Parameters:
  1353. - tableName: name of table
  1354. - rowBatches: list of row batches
  1355. - timestamp: timestamp
  1356. - attributes: Mutation attributes
  1357. """
  1358. self.send_mutateRowsTs(tableName, rowBatches, timestamp, attributes)
  1359. self.recv_mutateRowsTs()
  1360. def send_mutateRowsTs(self, tableName, rowBatches, timestamp, attributes):
  1361. self._oprot.writeMessageBegin('mutateRowsTs', TMessageType.CALL, self._seqid)
  1362. args = mutateRowsTs_args()
  1363. args.tableName = tableName
  1364. args.rowBatches = rowBatches
  1365. args.timestamp = timestamp
  1366. args.attributes = attributes
  1367. args.write(self._oprot)
  1368. self._oprot.writeMessageEnd()
  1369. self._oprot.trans.flush()
  1370. def recv_mutateRowsTs(self, ):
  1371. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1372. if mtype == TMessageType.EXCEPTION:
  1373. x = TApplicationException()
  1374. x.read(self._iprot)
  1375. self._iprot.readMessageEnd()
  1376. raise x
  1377. result = mutateRowsTs_result()
  1378. result.read(self._iprot)
  1379. self._iprot.readMessageEnd()
  1380. if result.io is not None:
  1381. raise result.io
  1382. if result.ia is not None:
  1383. raise result.ia
  1384. return
  1385. def atomicIncrement(self, tableName, row, column, value):
  1386. """
  1387. Atomically increment the column value specified. Returns the next value post increment.
  1388. Parameters:
  1389. - tableName: name of table
  1390. - row: row to increment
  1391. - column: name of column
  1392. - value: amount to increment by
  1393. """
  1394. self.send_atomicIncrement(tableName, row, column, value)
  1395. return self.recv_atomicIncrement()
  1396. def send_atomicIncrement(self, tableName, row, column, value):
  1397. self._oprot.writeMessageBegin('atomicIncrement', TMessageType.CALL, self._seqid)
  1398. args = atomicIncrement_args()
  1399. args.tableName = tableName
  1400. args.row = row
  1401. args.column = column
  1402. args.value = value
  1403. args.write(self._oprot)
  1404. self._oprot.writeMessageEnd()
  1405. self._oprot.trans.flush()
  1406. def recv_atomicIncrement(self, ):
  1407. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1408. if mtype == TMessageType.EXCEPTION:
  1409. x = TApplicationException()
  1410. x.read(self._iprot)
  1411. self._iprot.readMessageEnd()
  1412. raise x
  1413. result = atomicIncrement_result()
  1414. result.read(self._iprot)
  1415. self._iprot.readMessageEnd()
  1416. if result.success is not None:
  1417. return result.success
  1418. if result.io is not None:
  1419. raise result.io
  1420. if result.ia is not None:
  1421. raise result.ia
  1422. raise TApplicationException(TApplicationException.MISSING_RESULT, "atomicIncrement failed: unknown result");
  1423. def deleteAll(self, tableName, row, column, attributes):
  1424. """
  1425. Delete all cells that match the passed row and column.
  1426. Parameters:
  1427. - tableName: name of table
  1428. - row: Row to update
  1429. - column: name of column whose value is to be deleted
  1430. - attributes: Delete attributes
  1431. """
  1432. self.send_deleteAll(tableName, row, column, attributes)
  1433. self.recv_deleteAll()
  1434. def send_deleteAll(self, tableName, row, column, attributes):
  1435. self._oprot.writeMessageBegin('deleteAll', TMessageType.CALL, self._seqid)
  1436. args = deleteAll_args()
  1437. args.tableName = tableName
  1438. args.row = row
  1439. args.column = column
  1440. args.attributes = attributes
  1441. args.write(self._oprot)
  1442. self._oprot.writeMessageEnd()
  1443. self._oprot.trans.flush()
  1444. def recv_deleteAll(self, ):
  1445. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1446. if mtype == TMessageType.EXCEPTION:
  1447. x = TApplicationException()
  1448. x.read(self._iprot)
  1449. self._iprot.readMessageEnd()
  1450. raise x
  1451. result = deleteAll_result()
  1452. result.read(self._iprot)
  1453. self._iprot.readMessageEnd()
  1454. if result.io is not None:
  1455. raise result.io
  1456. return
  1457. def deleteAllTs(self, tableName, row, column, timestamp, attributes):
  1458. """
  1459. Delete all cells that match the passed row and column and whose
  1460. timestamp is equal-to or older than the passed timestamp.
  1461. Parameters:
  1462. - tableName: name of table
  1463. - row: Row to update
  1464. - column: name of column whose value is to be deleted
  1465. - timestamp: timestamp
  1466. - attributes: Delete attributes
  1467. """
  1468. self.send_deleteAllTs(tableName, row, column, timestamp, attributes)
  1469. self.recv_deleteAllTs()
  1470. def send_deleteAllTs(self, tableName, row, column, timestamp, attributes):
  1471. self._oprot.writeMessageBegin('deleteAllTs', TMessageType.CALL, self._seqid)
  1472. args = deleteAllTs_args()
  1473. args.tableName = tableName
  1474. args.row = row
  1475. args.column = column
  1476. args.timestamp = timestamp
  1477. args.attributes = attributes
  1478. args.write(self._oprot)
  1479. self._oprot.writeMessageEnd()
  1480. self._oprot.trans.flush()
  1481. def recv_deleteAllTs(self, ):
  1482. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1483. if mtype == TMessageType.EXCEPTION:
  1484. x = TApplicationException()
  1485. x.read(self._iprot)
  1486. self._iprot.readMessageEnd()
  1487. raise x
  1488. result = deleteAllTs_result()
  1489. result.read(self._iprot)
  1490. self._iprot.readMessageEnd()
  1491. if result.io is not None:
  1492. raise result.io
  1493. return
  1494. def deleteAllRow(self, tableName, row, attributes):
  1495. """
  1496. Completely delete the row's cells.
  1497. Parameters:
  1498. - tableName: name of table
  1499. - row: key of the row to be completely deleted.
  1500. - attributes: Delete attributes
  1501. """
  1502. self.send_deleteAllRow(tableName, row, attributes)
  1503. self.recv_deleteAllRow()
  1504. def send_deleteAllRow(self, tableName, row, attributes):
  1505. self._oprot.writeMessageBegin('deleteAllRow', TMessageType.CALL, self._seqid)
  1506. args = deleteAllRow_args()
  1507. args.tableName = tableName
  1508. args.row = row
  1509. args.attributes = attributes
  1510. args.write(self._oprot)
  1511. self._oprot.writeMessageEnd()
  1512. self._oprot.trans.flush()
  1513. def recv_deleteAllRow(self, ):
  1514. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1515. if mtype == TMessageType.EXCEPTION:
  1516. x = TApplicationException()
  1517. x.read(self._iprot)
  1518. self._iprot.readMessageEnd()
  1519. raise x
  1520. result = deleteAllRow_result()
  1521. result.read(self._iprot)
  1522. self._iprot.readMessageEnd()
  1523. if result.io is not None:
  1524. raise result.io
  1525. return
  1526. def increment(self, increment):
  1527. """
  1528. Increment a cell by the ammount.
  1529. Increments can be applied async if hbase.regionserver.thrift.coalesceIncrement is set to true.
  1530. False is the default. Turn to true if you need the extra performance and can accept some
  1531. data loss if a thrift server dies with increments still in the queue.
  1532. Parameters:
  1533. - increment: The single increment to apply
  1534. """
  1535. self.send_increment(increment)
  1536. self.recv_increment()
  1537. def send_increment(self, increment):
  1538. self._oprot.writeMessageBegin('increment', TMessageType.CALL, self._seqid)
  1539. args = increment_args()
  1540. args.increment = increment
  1541. args.write(self._oprot)
  1542. self._oprot.writeMessageEnd()
  1543. self._oprot.trans.flush()
  1544. def recv_increment(self, ):
  1545. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1546. if mtype == TMessageType.EXCEPTION:
  1547. x = TApplicationException()
  1548. x.read(self._iprot)
  1549. self._iprot.readMessageEnd()
  1550. raise x
  1551. result = increment_result()
  1552. result.read(self._iprot)
  1553. self._iprot.readMessageEnd()
  1554. if result.io is not None:
  1555. raise result.io
  1556. return
  1557. def incrementRows(self, increments):
  1558. """
  1559. Parameters:
  1560. - increments: The list of increments
  1561. """
  1562. self.send_incrementRows(increments)
  1563. self.recv_incrementRows()
  1564. def send_incrementRows(self, increments):
  1565. self._oprot.writeMessageBegin('incrementRows', TMessageType.CALL, self._seqid)
  1566. args = incrementRows_args()
  1567. args.increments = increments
  1568. args.write(self._oprot)
  1569. self._oprot.writeMessageEnd()
  1570. self._oprot.trans.flush()
  1571. def recv_incrementRows(self, ):
  1572. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1573. if mtype == TMessageType.EXCEPTION:
  1574. x = TApplicationException()
  1575. x.read(self._iprot)
  1576. self._iprot.readMessageEnd()
  1577. raise x
  1578. result = incrementRows_result()
  1579. result.read(self._iprot)
  1580. self._iprot.readMessageEnd()
  1581. if result.io is not None:
  1582. raise result.io
  1583. return
  1584. def deleteAllRowTs(self, tableName, row, timestamp, attributes):
  1585. """
  1586. Completely delete the row's cells marked with a timestamp
  1587. equal-to or older than the passed timestamp.
  1588. Parameters:
  1589. - tableName: name of table
  1590. - row: key of the row to be completely deleted.
  1591. - timestamp: timestamp
  1592. - attributes: Delete attributes
  1593. """
  1594. self.send_deleteAllRowTs(tableName, row, timestamp, attributes)
  1595. self.recv_deleteAllRowTs()
  1596. def send_deleteAllRowTs(self, tableName, row, timestamp, attributes):
  1597. self._oprot.writeMessageBegin('deleteAllRowTs', TMessageType.CALL, self._seqid)
  1598. args = deleteAllRowTs_args()
  1599. args.tableName = tableName
  1600. args.row = row
  1601. args.timestamp = timestamp
  1602. args.attributes = attributes
  1603. args.write(self._oprot)
  1604. self._oprot.writeMessageEnd()
  1605. self._oprot.trans.flush()
  1606. def recv_deleteAllRowTs(self, ):
  1607. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1608. if mtype == TMessageType.EXCEPTION:
  1609. x = TApplicationException()
  1610. x.read(self._iprot)
  1611. self._iprot.readMessageEnd()
  1612. raise x
  1613. result = deleteAllRowTs_result()
  1614. result.read(self._iprot)
  1615. self._iprot.readMessageEnd()
  1616. if result.io is not None:
  1617. raise result.io
  1618. return
  1619. def scannerOpenWithScan(self, tableName, scan, attributes):
  1620. """
  1621. Get a scanner on the current table, using the Scan instance
  1622. for the scan parameters.
  1623. Parameters:
  1624. - tableName: name of table
  1625. - scan: Scan instance
  1626. - attributes: Scan attributes
  1627. """
  1628. self.send_scannerOpenWithScan(tableName, scan, attributes)
  1629. return self.recv_scannerOpenWithScan()
  1630. def send_scannerOpenWithScan(self, tableName, scan, attributes):
  1631. self._oprot.writeMessageBegin('scannerOpenWithScan', TMessageType.CALL, self._seqid)
  1632. args = scannerOpenWithScan_args()
  1633. args.tableName = tableName
  1634. args.scan = scan
  1635. args.attributes = attributes
  1636. args.write(self._oprot)
  1637. self._oprot.writeMessageEnd()
  1638. self._oprot.trans.flush()
  1639. def recv_scannerOpenWithScan(self, ):
  1640. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1641. if mtype == TMessageType.EXCEPTION:
  1642. x = TApplicationException()
  1643. x.read(self._iprot)
  1644. self._iprot.readMessageEnd()
  1645. raise x
  1646. result = scannerOpenWithScan_result()
  1647. result.read(self._iprot)
  1648. self._iprot.readMessageEnd()
  1649. if result.success is not None:
  1650. return result.success
  1651. if result.io is not None:
  1652. raise result.io
  1653. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithScan failed: unknown result");
  1654. def scannerOpen(self, tableName, startRow, columns, attributes):
  1655. """
  1656. Get a scanner on the current table starting at the specified row and
  1657. ending at the last row in the table. Return the specified columns.
  1658. @return scanner id to be used with other scanner procedures
  1659. Parameters:
  1660. - tableName: name of table
  1661. - startRow: Starting row in table to scan.
  1662. Send "" (empty string) to start at the first row.
  1663. - columns: columns to scan. If column name is a column family, all
  1664. columns of the specified column family are returned. It's also possible
  1665. to pass a regex in the column qualifier.
  1666. - attributes: Scan attributes
  1667. """
  1668. self.send_scannerOpen(tableName, startRow, columns, attributes)
  1669. return self.recv_scannerOpen()
  1670. def send_scannerOpen(self, tableName, startRow, columns, attributes):
  1671. self._oprot.writeMessageBegin('scannerOpen', TMessageType.CALL, self._seqid)
  1672. args = scannerOpen_args()
  1673. args.tableName = tableName
  1674. args.startRow = startRow
  1675. args.columns = columns
  1676. args.attributes = attributes
  1677. args.write(self._oprot)
  1678. self._oprot.writeMessageEnd()
  1679. self._oprot.trans.flush()
  1680. def recv_scannerOpen(self, ):
  1681. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1682. if mtype == TMessageType.EXCEPTION:
  1683. x = TApplicationException()
  1684. x.read(self._iprot)
  1685. self._iprot.readMessageEnd()
  1686. raise x
  1687. result = scannerOpen_result()
  1688. result.read(self._iprot)
  1689. self._iprot.readMessageEnd()
  1690. if result.success is not None:
  1691. return result.success
  1692. if result.io is not None:
  1693. raise result.io
  1694. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpen failed: unknown result");
  1695. def scannerOpenWithStop(self, tableName, startRow, stopRow, columns, attributes):
  1696. """
  1697. Get a scanner on the current table starting and stopping at the
  1698. specified rows. ending at the last row in the table. Return the
  1699. specified columns.
  1700. @return scanner id to be used with other scanner procedures
  1701. Parameters:
  1702. - tableName: name of table
  1703. - startRow: Starting row in table to scan.
  1704. Send "" (empty string) to start at the first row.
  1705. - stopRow: row to stop scanning on. This row is *not* included in the
  1706. scanner's results
  1707. - columns: columns to scan. If column name is a column family, all
  1708. columns of the specified column family are returned. It's also possible
  1709. to pass a regex in the column qualifier.
  1710. - attributes: Scan attributes
  1711. """
  1712. self.send_scannerOpenWithStop(tableName, startRow, stopRow, columns, attributes)
  1713. return self.recv_scannerOpenWithStop()
  1714. def send_scannerOpenWithStop(self, tableName, startRow, stopRow, columns, attributes):
  1715. self._oprot.writeMessageBegin('scannerOpenWithStop', TMessageType.CALL, self._seqid)
  1716. args = scannerOpenWithStop_args()
  1717. args.tableName = tableName
  1718. args.startRow = startRow
  1719. args.stopRow = stopRow
  1720. args.columns = columns
  1721. args.attributes = attributes
  1722. args.write(self._oprot)
  1723. self._oprot.writeMessageEnd()
  1724. self._oprot.trans.flush()
  1725. def recv_scannerOpenWithStop(self, ):
  1726. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1727. if mtype == TMessageType.EXCEPTION:
  1728. x = TApplicationException()
  1729. x.read(self._iprot)
  1730. self._iprot.readMessageEnd()
  1731. raise x
  1732. result = scannerOpenWithStop_result()
  1733. result.read(self._iprot)
  1734. self._iprot.readMessageEnd()
  1735. if result.success is not None:
  1736. return result.success
  1737. if result.io is not None:
  1738. raise result.io
  1739. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithStop failed: unknown result");
  1740. def scannerOpenWithPrefix(self, tableName, startAndPrefix, columns, attributes):
  1741. """
  1742. Open a scanner for a given prefix. That is all rows will have the specified
  1743. prefix. No other rows will be returned.
  1744. @return scanner id to use with other scanner calls
  1745. Parameters:
  1746. - tableName: name of table
  1747. - startAndPrefix: the prefix (and thus start row) of the keys you want
  1748. - columns: the columns you want returned
  1749. - attributes: Scan attributes
  1750. """
  1751. self.send_scannerOpenWithPrefix(tableName, startAndPrefix, columns, attributes)
  1752. return self.recv_scannerOpenWithPrefix()
  1753. def send_scannerOpenWithPrefix(self, tableName, startAndPrefix, columns, attributes):
  1754. self._oprot.writeMessageBegin('scannerOpenWithPrefix', TMessageType.CALL, self._seqid)
  1755. args = scannerOpenWithPrefix_args()
  1756. args.tableName = tableName
  1757. args.startAndPrefix = startAndPrefix
  1758. args.columns = columns
  1759. args.attributes = attributes
  1760. args.write(self._oprot)
  1761. self._oprot.writeMessageEnd()
  1762. self._oprot.trans.flush()
  1763. def recv_scannerOpenWithPrefix(self, ):
  1764. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1765. if mtype == TMessageType.EXCEPTION:
  1766. x = TApplicationException()
  1767. x.read(self._iprot)
  1768. self._iprot.readMessageEnd()
  1769. raise x
  1770. result = scannerOpenWithPrefix_result()
  1771. result.read(self._iprot)
  1772. self._iprot.readMessageEnd()
  1773. if result.success is not None:
  1774. return result.success
  1775. if result.io is not None:
  1776. raise result.io
  1777. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithPrefix failed: unknown result");
  1778. def scannerOpenTs(self, tableName, startRow, columns, timestamp, attributes):
  1779. """
  1780. Get a scanner on the current table starting at the specified row and
  1781. ending at the last row in the table. Return the specified columns.
  1782. Only values with the specified timestamp are returned.
  1783. @return scanner id to be used with other scanner procedures
  1784. Parameters:
  1785. - tableName: name of table
  1786. - startRow: Starting row in table to scan.
  1787. Send "" (empty string) to start at the first row.
  1788. - columns: columns to scan. If column name is a column family, all
  1789. columns of the specified column family are returned. It's also possible
  1790. to pass a regex in the column qualifier.
  1791. - timestamp: timestamp
  1792. - attributes: Scan attributes
  1793. """
  1794. self.send_scannerOpenTs(tableName, startRow, columns, timestamp, attributes)
  1795. return self.recv_scannerOpenTs()
  1796. def send_scannerOpenTs(self, tableName, startRow, columns, timestamp, attributes):
  1797. self._oprot.writeMessageBegin('scannerOpenTs', TMessageType.CALL, self._seqid)
  1798. args = scannerOpenTs_args()
  1799. args.tableName = tableName
  1800. args.startRow = startRow
  1801. args.columns = columns
  1802. args.timestamp = timestamp
  1803. args.attributes = attributes
  1804. args.write(self._oprot)
  1805. self._oprot.writeMessageEnd()
  1806. self._oprot.trans.flush()
  1807. def recv_scannerOpenTs(self, ):
  1808. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1809. if mtype == TMessageType.EXCEPTION:
  1810. x = TApplicationException()
  1811. x.read(self._iprot)
  1812. self._iprot.readMessageEnd()
  1813. raise x
  1814. result = scannerOpenTs_result()
  1815. result.read(self._iprot)
  1816. self._iprot.readMessageEnd()
  1817. if result.success is not None:
  1818. return result.success
  1819. if result.io is not None:
  1820. raise result.io
  1821. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenTs failed: unknown result");
  1822. def scannerOpenWithStopTs(self, tableName, startRow, stopRow, columns, timestamp, attributes):
  1823. """
  1824. Get a scanner on the current table starting and stopping at the
  1825. specified rows. ending at the last row in the table. Return the
  1826. specified columns. Only values with the specified timestamp are
  1827. returned.
  1828. @return scanner id to be used with other scanner procedures
  1829. Parameters:
  1830. - tableName: name of table
  1831. - startRow: Starting row in table to scan.
  1832. Send "" (empty string) to start at the first row.
  1833. - stopRow: row to stop scanning on. This row is *not* included in the
  1834. scanner's results
  1835. - columns: columns to scan. If column name is a column family, all
  1836. columns of the specified column family are returned. It's also possible
  1837. to pass a regex in the column qualifier.
  1838. - timestamp: timestamp
  1839. - attributes: Scan attributes
  1840. """
  1841. self.send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes)
  1842. return self.recv_scannerOpenWithStopTs()
  1843. def send_scannerOpenWithStopTs(self, tableName, startRow, stopRow, columns, timestamp, attributes):
  1844. self._oprot.writeMessageBegin('scannerOpenWithStopTs', TMessageType.CALL, self._seqid)
  1845. args = scannerOpenWithStopTs_args()
  1846. args.tableName = tableName
  1847. args.startRow = startRow
  1848. args.stopRow = stopRow
  1849. args.columns = columns
  1850. args.timestamp = timestamp
  1851. args.attributes = attributes
  1852. args.write(self._oprot)
  1853. self._oprot.writeMessageEnd()
  1854. self._oprot.trans.flush()
  1855. def recv_scannerOpenWithStopTs(self, ):
  1856. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1857. if mtype == TMessageType.EXCEPTION:
  1858. x = TApplicationException()
  1859. x.read(self._iprot)
  1860. self._iprot.readMessageEnd()
  1861. raise x
  1862. result = scannerOpenWithStopTs_result()
  1863. result.read(self._iprot)
  1864. self._iprot.readMessageEnd()
  1865. if result.success is not None:
  1866. return result.success
  1867. if result.io is not None:
  1868. raise result.io
  1869. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithStopTs failed: unknown result");
  1870. def scannerGet(self, id):
  1871. """
  1872. Returns the scanner's current row value and advances to the next
  1873. row in the table. When there are no more rows in the table, or a key
  1874. greater-than-or-equal-to the scanner's specified stopRow is reached,
  1875. an empty list is returned.
  1876. @return a TRowResult containing the current row and a map of the columns to TCells.
  1877. @throws IllegalArgument if ScannerID is invalid
  1878. @throws NotFound when the scanner reaches the end
  1879. Parameters:
  1880. - id: id of a scanner returned by scannerOpen
  1881. """
  1882. self.send_scannerGet(id)
  1883. return self.recv_scannerGet()
  1884. def send_scannerGet(self, id):
  1885. self._oprot.writeMessageBegin('scannerGet', TMessageType.CALL, self._seqid)
  1886. args = scannerGet_args()
  1887. args.id = id
  1888. args.write(self._oprot)
  1889. self._oprot.writeMessageEnd()
  1890. self._oprot.trans.flush()
  1891. def recv_scannerGet(self, ):
  1892. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1893. if mtype == TMessageType.EXCEPTION:
  1894. x = TApplicationException()
  1895. x.read(self._iprot)
  1896. self._iprot.readMessageEnd()
  1897. raise x
  1898. result = scannerGet_result()
  1899. result.read(self._iprot)
  1900. self._iprot.readMessageEnd()
  1901. if result.success is not None:
  1902. return result.success
  1903. if result.io is not None:
  1904. raise result.io
  1905. if result.ia is not None:
  1906. raise result.ia
  1907. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerGet failed: unknown result");
  1908. def scannerGetList(self, id, nbRows):
  1909. """
  1910. Returns, starting at the scanner's current row value nbRows worth of
  1911. rows and advances to the next row in the table. When there are no more
  1912. rows in the table, or a key greater-than-or-equal-to the scanner's
  1913. specified stopRow is reached, an empty list is returned.
  1914. @return a TRowResult containing the current row and a map of the columns to TCells.
  1915. @throws IllegalArgument if ScannerID is invalid
  1916. @throws NotFound when the scanner reaches the end
  1917. Parameters:
  1918. - id: id of a scanner returned by scannerOpen
  1919. - nbRows: number of results to return
  1920. """
  1921. self.send_scannerGetList(id, nbRows)
  1922. return self.recv_scannerGetList()
  1923. def send_scannerGetList(self, id, nbRows):
  1924. self._oprot.writeMessageBegin('scannerGetList', TMessageType.CALL, self._seqid)
  1925. args = scannerGetList_args()
  1926. args.id = id
  1927. args.nbRows = nbRows
  1928. args.write(self._oprot)
  1929. self._oprot.writeMessageEnd()
  1930. self._oprot.trans.flush()
  1931. def recv_scannerGetList(self, ):
  1932. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1933. if mtype == TMessageType.EXCEPTION:
  1934. x = TApplicationException()
  1935. x.read(self._iprot)
  1936. self._iprot.readMessageEnd()
  1937. raise x
  1938. result = scannerGetList_result()
  1939. result.read(self._iprot)
  1940. self._iprot.readMessageEnd()
  1941. if result.success is not None:
  1942. return result.success
  1943. if result.io is not None:
  1944. raise result.io
  1945. if result.ia is not None:
  1946. raise result.ia
  1947. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerGetList failed: unknown result");
  1948. def scannerClose(self, id):
  1949. """
  1950. Closes the server-state associated with an open scanner.
  1951. @throws IllegalArgument if ScannerID is invalid
  1952. Parameters:
  1953. - id: id of a scanner returned by scannerOpen
  1954. """
  1955. self.send_scannerClose(id)
  1956. self.recv_scannerClose()
  1957. def send_scannerClose(self, id):
  1958. self._oprot.writeMessageBegin('scannerClose', TMessageType.CALL, self._seqid)
  1959. args = scannerClose_args()
  1960. args.id = id
  1961. args.write(self._oprot)
  1962. self._oprot.writeMessageEnd()
  1963. self._oprot.trans.flush()
  1964. def recv_scannerClose(self, ):
  1965. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1966. if mtype == TMessageType.EXCEPTION:
  1967. x = TApplicationException()
  1968. x.read(self._iprot)
  1969. self._iprot.readMessageEnd()
  1970. raise x
  1971. result = scannerClose_result()
  1972. result.read(self._iprot)
  1973. self._iprot.readMessageEnd()
  1974. if result.io is not None:
  1975. raise result.io
  1976. if result.ia is not None:
  1977. raise result.ia
  1978. return
  1979. def getRowOrBefore(self, tableName, row, family):
  1980. """
  1981. Get the row just before the specified one.
  1982. @return value for specified row/column
  1983. Parameters:
  1984. - tableName: name of table
  1985. - row: row key
  1986. - family: column name
  1987. """
  1988. self.send_getRowOrBefore(tableName, row, family)
  1989. return self.recv_getRowOrBefore()
  1990. def send_getRowOrBefore(self, tableName, row, family):
  1991. self._oprot.writeMessageBegin('getRowOrBefore', TMessageType.CALL, self._seqid)
  1992. args = getRowOrBefore_args()
  1993. args.tableName = tableName
  1994. args.row = row
  1995. args.family = family
  1996. args.write(self._oprot)
  1997. self._oprot.writeMessageEnd()
  1998. self._oprot.trans.flush()
  1999. def recv_getRowOrBefore(self, ):
  2000. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2001. if mtype == TMessageType.EXCEPTION:
  2002. x = TApplicationException()
  2003. x.read(self._iprot)
  2004. self._iprot.readMessageEnd()
  2005. raise x
  2006. result = getRowOrBefore_result()
  2007. result.read(self._iprot)
  2008. self._iprot.readMessageEnd()
  2009. if result.success is not None:
  2010. return result.success
  2011. if result.io is not None:
  2012. raise result.io
  2013. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowOrBefore failed: unknown result");
  2014. def getRegionInfo(self, row):
  2015. """
  2016. Get the regininfo for the specified row. It scans
  2017. the metatable to find region's start and end keys.
  2018. @return value for specified row/column
  2019. Parameters:
  2020. - row: row key
  2021. """
  2022. self.send_getRegionInfo(row)
  2023. return self.recv_getRegionInfo()
  2024. def send_getRegionInfo(self, row):
  2025. self._oprot.writeMessageBegin('getRegionInfo', TMessageType.CALL, self._seqid)
  2026. args = getRegionInfo_args()
  2027. args.row = row
  2028. args.write(self._oprot)
  2029. self._oprot.writeMessageEnd()
  2030. self._oprot.trans.flush()
  2031. def recv_getRegionInfo(self, ):
  2032. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2033. if mtype == TMessageType.EXCEPTION:
  2034. x = TApplicationException()
  2035. x.read(self._iprot)
  2036. self._iprot.readMessageEnd()
  2037. raise x
  2038. result = getRegionInfo_result()
  2039. result.read(self._iprot)
  2040. self._iprot.readMessageEnd()
  2041. if result.success is not None:
  2042. return result.success
  2043. if result.io is not None:
  2044. raise result.io
  2045. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRegionInfo failed: unknown result");
  2046. class Processor(Iface, TProcessor):
  2047. def __init__(self, handler):
  2048. self._handler = handler
  2049. self._processMap = {}
  2050. self._processMap["enableTable"] = Processor.process_enableTable
  2051. self._processMap["disableTable"] = Processor.process_disableTable
  2052. self._processMap["isTableEnabled"] = Processor.process_isTableEnabled
  2053. self._processMap["compact"] = Processor.process_compact
  2054. self._processMap["majorCompact"] = Processor.process_majorCompact
  2055. self._processMap["getTableNames"] = Processor.process_getTableNames
  2056. self._processMap["getColumnDescriptors"] = Processor.process_getColumnDescriptors
  2057. self._processMap["getTableRegions"] = Processor.process_getTableRegions
  2058. self._processMap["createTable"] = Processor.process_createTable
  2059. self._processMap["deleteTable"] = Processor.process_deleteTable
  2060. self._processMap["get"] = Processor.process_get
  2061. self._processMap["getVer"] = Processor.process_getVer
  2062. self._processMap["getVerTs"] = Processor.process_getVerTs
  2063. self._processMap["getRow"] = Processor.process_getRow
  2064. self._processMap["getRowWithColumns"] = Processor.process_getRowWithColumns
  2065. self._processMap["getRowTs"] = Processor.process_getRowTs
  2066. self._processMap["getRowWithColumnsTs"] = Processor.process_getRowWithColumnsTs
  2067. self._processMap["getRows"] = Processor.process_getRows
  2068. self._processMap["getRowsWithColumns"] = Processor.process_getRowsWithColumns
  2069. self._processMap["getRowsTs"] = Processor.process_getRowsTs
  2070. self._processMap["getRowsWithColumnsTs"] = Processor.process_getRowsWithColumnsTs
  2071. self._processMap["mutateRow"] = Processor.process_mutateRow
  2072. self._processMap["mutateRowTs"] = Processor.process_mutateRowTs
  2073. self._processMap["mutateRows"] = Processor.process_mutateRows
  2074. self._processMap["mutateRowsTs"] = Processor.process_mutateRowsTs
  2075. self._processMap["atomicIncrement"] = Processor.process_atomicIncrement
  2076. self._processMap["deleteAll"] = Processor.process_deleteAll
  2077. self._processMap["deleteAllTs"] = Processor.process_deleteAllTs
  2078. self._processMap["deleteAllRow"] = Processor.process_deleteAllRow
  2079. self._processMap["increment"] = Processor.process_increment
  2080. self._processMap["incrementRows"] = Processor.process_incrementRows
  2081. self._processMap["deleteAllRowTs"] = Processor.process_deleteAllRowTs
  2082. self._processMap["scannerOpenWithScan"] = Processor.process_scannerOpenWithScan
  2083. self._processMap["scannerOpen"] = Processor.process_scannerOpen
  2084. self._processMap["scannerOpenWithStop"] = Processor.process_scannerOpenWithStop
  2085. self._processMap["scannerOpenWithPrefix"] = Processor.process_scannerOpenWithPrefix
  2086. self._processMap["scannerOpenTs"] = Processor.process_scannerOpenTs
  2087. self._processMap["scannerOpenWithStopTs"] = Processor.process_scannerOpenWithStopTs
  2088. self._processMap["scannerGet"] = Processor.process_scannerGet
  2089. self._processMap["scannerGetList"] = Processor.process_scannerGetList
  2090. self._processMap["scannerClose"] = Processor.process_scannerClose
  2091. self._processMap["getRowOrBefore"] = Processor.process_getRowOrBefore
  2092. self._processMap["getRegionInfo"] = Processor.process_getRegionInfo
  2093. def process(self, iprot, oprot):
  2094. (name, type, seqid) = iprot.readMessageBegin()
  2095. if name not in self._processMap:
  2096. iprot.skip(TType.STRUCT)
  2097. iprot.readMessageEnd()
  2098. x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
  2099. oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
  2100. x.write(oprot)
  2101. oprot.writeMessageEnd()
  2102. oprot.trans.flush()
  2103. return
  2104. else:
  2105. self._processMap[name](self, seqid, iprot, oprot)
  2106. return True
  2107. def process_enableTable(self, seqid, iprot, oprot):
  2108. args = enableTable_args()
  2109. args.read(iprot)
  2110. iprot.readMessageEnd()
  2111. result = enableTable_result()
  2112. try:
  2113. self._handler.enableTable(args.tableName)
  2114. except IOError as io:
  2115. result.io = io
  2116. oprot.writeMessageBegin("enableTable", TMessageType.REPLY, seqid)
  2117. result.write(oprot)
  2118. oprot.writeMessageEnd()
  2119. oprot.trans.flush()
  2120. def process_disableTable(self, seqid, iprot, oprot):
  2121. args = disableTable_args()
  2122. args.read(iprot)
  2123. iprot.readMessageEnd()
  2124. result = disableTable_result()
  2125. try:
  2126. self._handler.disableTable(args.tableName)
  2127. except IOError as io:
  2128. result.io = io
  2129. oprot.writeMessageBegin("disableTable", TMessageType.REPLY, seqid)
  2130. result.write(oprot)
  2131. oprot.writeMessageEnd()
  2132. oprot.trans.flush()
  2133. def process_isTableEnabled(self, seqid, iprot, oprot):
  2134. args = isTableEnabled_args()
  2135. args.read(iprot)
  2136. iprot.readMessageEnd()
  2137. result = isTableEnabled_result()
  2138. try:
  2139. result.success = self._handler.isTableEnabled(args.tableName)
  2140. except IOError as io:
  2141. result.io = io
  2142. oprot.writeMessageBegin("isTableEnabled", TMessageType.REPLY, seqid)
  2143. result.write(oprot)
  2144. oprot.writeMessageEnd()
  2145. oprot.trans.flush()
  2146. def process_compact(self, seqid, iprot, oprot):
  2147. args = compact_args()
  2148. args.read(iprot)
  2149. iprot.readMessageEnd()
  2150. result = compact_result()
  2151. try:
  2152. self._handler.compact(args.tableNameOrRegionName)
  2153. except IOError as io:
  2154. result.io = io
  2155. oprot.writeMessageBegin("compact", TMessageType.REPLY, seqid)
  2156. result.write(oprot)
  2157. oprot.writeMessageEnd()
  2158. oprot.trans.flush()
  2159. def process_majorCompact(self, seqid, iprot, oprot):
  2160. args = majorCompact_args()
  2161. args.read(iprot)
  2162. iprot.readMessageEnd()
  2163. result = majorCompact_result()
  2164. try:
  2165. self._handler.majorCompact(args.tableNameOrRegionName)
  2166. except IOError as io:
  2167. result.io = io
  2168. oprot.writeMessageBegin("majorCompact", TMessageType.REPLY, seqid)
  2169. result.write(oprot)
  2170. oprot.writeMessageEnd()
  2171. oprot.trans.flush()
  2172. def process_getTableNames(self, seqid, iprot, oprot):
  2173. args = getTableNames_args()
  2174. args.read(iprot)
  2175. iprot.readMessageEnd()
  2176. result = getTableNames_result()
  2177. try:
  2178. result.success = self._handler.getTableNames()
  2179. except IOError as io:
  2180. result.io = io
  2181. oprot.writeMessageBegin("getTableNames", TMessageType.REPLY, seqid)
  2182. result.write(oprot)
  2183. oprot.writeMessageEnd()
  2184. oprot.trans.flush()
  2185. def process_getColumnDescriptors(self, seqid, iprot, oprot):
  2186. args = getColumnDescriptors_args()
  2187. args.read(iprot)
  2188. iprot.readMessageEnd()
  2189. result = getColumnDescriptors_result()
  2190. try:
  2191. result.success = self._handler.getColumnDescriptors(args.tableName)
  2192. except IOError as io:
  2193. result.io = io
  2194. oprot.writeMessageBegin("getColumnDescriptors", TMessageType.REPLY, seqid)
  2195. result.write(oprot)
  2196. oprot.writeMessageEnd()
  2197. oprot.trans.flush()
  2198. def process_getTableRegions(self, seqid, iprot, oprot):
  2199. args = getTableRegions_args()
  2200. args.read(iprot)
  2201. iprot.readMessageEnd()
  2202. result = getTableRegions_result()
  2203. try:
  2204. result.success = self._handler.getTableRegions(args.tableName)
  2205. except IOError as io:
  2206. result.io = io
  2207. oprot.writeMessageBegin("getTableRegions", TMessageType.REPLY, seqid)
  2208. result.write(oprot)
  2209. oprot.writeMessageEnd()
  2210. oprot.trans.flush()
  2211. def process_createTable(self, seqid, iprot, oprot):
  2212. args = createTable_args()
  2213. args.read(iprot)
  2214. iprot.readMessageEnd()
  2215. result = createTable_result()
  2216. try:
  2217. self._handler.createTable(args.tableName, args.columnFamilies)
  2218. except IOError as io:
  2219. result.io = io
  2220. except IllegalArgument as ia:
  2221. result.ia = ia
  2222. except AlreadyExists as exist:
  2223. result.exist = exist
  2224. oprot.writeMessageBegin("createTable", TMessageType.REPLY, seqid)
  2225. result.write(oprot)
  2226. oprot.writeMessageEnd()
  2227. oprot.trans.flush()
  2228. def process_deleteTable(self, seqid, iprot, oprot):
  2229. args = deleteTable_args()
  2230. args.read(iprot)
  2231. iprot.readMessageEnd()
  2232. result = deleteTable_result()
  2233. try:
  2234. self._handler.deleteTable(args.tableName)
  2235. except IOError as io:
  2236. result.io = io
  2237. oprot.writeMessageBegin("deleteTable", TMessageType.REPLY, seqid)
  2238. result.write(oprot)
  2239. oprot.writeMessageEnd()
  2240. oprot.trans.flush()
  2241. def process_get(self, seqid, iprot, oprot):
  2242. args = get_args()
  2243. args.read(iprot)
  2244. iprot.readMessageEnd()
  2245. result = get_result()
  2246. try:
  2247. result.success = self._handler.get(args.tableName, args.row, args.column, args.attributes)
  2248. except IOError as io:
  2249. result.io = io
  2250. oprot.writeMessageBegin("get", TMessageType.REPLY, seqid)
  2251. result.write(oprot)
  2252. oprot.writeMessageEnd()
  2253. oprot.trans.flush()
  2254. def process_getVer(self, seqid, iprot, oprot):
  2255. args = getVer_args()
  2256. args.read(iprot)
  2257. iprot.readMessageEnd()
  2258. result = getVer_result()
  2259. try:
  2260. result.success = self._handler.getVer(args.tableName, args.row, args.column, args.numVersions, args.attributes)
  2261. except IOError as io:
  2262. result.io = io
  2263. oprot.writeMessageBegin("getVer", TMessageType.REPLY, seqid)
  2264. result.write(oprot)
  2265. oprot.writeMessageEnd()
  2266. oprot.trans.flush()
  2267. def process_getVerTs(self, seqid, iprot, oprot):
  2268. args = getVerTs_args()
  2269. args.read(iprot)
  2270. iprot.readMessageEnd()
  2271. result = getVerTs_result()
  2272. try:
  2273. result.success = self._handler.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions, args.attributes)
  2274. except IOError as io:
  2275. result.io = io
  2276. oprot.writeMessageBegin("getVerTs", TMessageType.REPLY, seqid)
  2277. result.write(oprot)
  2278. oprot.writeMessageEnd()
  2279. oprot.trans.flush()
  2280. def process_getRow(self, seqid, iprot, oprot):
  2281. args = getRow_args()
  2282. args.read(iprot)
  2283. iprot.readMessageEnd()
  2284. result = getRow_result()
  2285. try:
  2286. result.success = self._handler.getRow(args.tableName, args.row, args.attributes)
  2287. except IOError as io:
  2288. result.io = io
  2289. oprot.writeMessageBegin("getRow", TMessageType.REPLY, seqid)
  2290. result.write(oprot)
  2291. oprot.writeMessageEnd()
  2292. oprot.trans.flush()
  2293. def process_getRowWithColumns(self, seqid, iprot, oprot):
  2294. args = getRowWithColumns_args()
  2295. args.read(iprot)
  2296. iprot.readMessageEnd()
  2297. result = getRowWithColumns_result()
  2298. try:
  2299. result.success = self._handler.getRowWithColumns(args.tableName, args.row, args.columns, args.attributes)
  2300. except IOError as io:
  2301. result.io = io
  2302. oprot.writeMessageBegin("getRowWithColumns", TMessageType.REPLY, seqid)
  2303. result.write(oprot)
  2304. oprot.writeMessageEnd()
  2305. oprot.trans.flush()
  2306. def process_getRowTs(self, seqid, iprot, oprot):
  2307. args = getRowTs_args()
  2308. args.read(iprot)
  2309. iprot.readMessageEnd()
  2310. result = getRowTs_result()
  2311. try:
  2312. result.success = self._handler.getRowTs(args.tableName, args.row, args.timestamp, args.attributes)
  2313. except IOError as io:
  2314. result.io = io
  2315. oprot.writeMessageBegin("getRowTs", TMessageType.REPLY, seqid)
  2316. result.write(oprot)
  2317. oprot.writeMessageEnd()
  2318. oprot.trans.flush()
  2319. def process_getRowWithColumnsTs(self, seqid, iprot, oprot):
  2320. args = getRowWithColumnsTs_args()
  2321. args.read(iprot)
  2322. iprot.readMessageEnd()
  2323. result = getRowWithColumnsTs_result()
  2324. try:
  2325. result.success = self._handler.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp, args.attributes)
  2326. except IOError as io:
  2327. result.io = io
  2328. oprot.writeMessageBegin("getRowWithColumnsTs", TMessageType.REPLY, seqid)
  2329. result.write(oprot)
  2330. oprot.writeMessageEnd()
  2331. oprot.trans.flush()
  2332. def process_getRows(self, seqid, iprot, oprot):
  2333. args = getRows_args()
  2334. args.read(iprot)
  2335. iprot.readMessageEnd()
  2336. result = getRows_result()
  2337. try:
  2338. result.success = self._handler.getRows(args.tableName, args.rows, args.attributes)
  2339. except IOError as io:
  2340. result.io = io
  2341. oprot.writeMessageBegin("getRows", TMessageType.REPLY, seqid)
  2342. result.write(oprot)
  2343. oprot.writeMessageEnd()
  2344. oprot.trans.flush()
  2345. def process_getRowsWithColumns(self, seqid, iprot, oprot):
  2346. args = getRowsWithColumns_args()
  2347. args.read(iprot)
  2348. iprot.readMessageEnd()
  2349. result = getRowsWithColumns_result()
  2350. try:
  2351. result.success = self._handler.getRowsWithColumns(args.tableName, args.rows, args.columns, args.attributes)
  2352. except IOError as io:
  2353. result.io = io
  2354. oprot.writeMessageBegin("getRowsWithColumns", TMessageType.REPLY, seqid)
  2355. result.write(oprot)
  2356. oprot.writeMessageEnd()
  2357. oprot.trans.flush()
  2358. def process_getRowsTs(self, seqid, iprot, oprot):
  2359. args = getRowsTs_args()
  2360. args.read(iprot)
  2361. iprot.readMessageEnd()
  2362. result = getRowsTs_result()
  2363. try:
  2364. result.success = self._handler.getRowsTs(args.tableName, args.rows, args.timestamp, args.attributes)
  2365. except IOError as io:
  2366. result.io = io
  2367. oprot.writeMessageBegin("getRowsTs", TMessageType.REPLY, seqid)
  2368. result.write(oprot)
  2369. oprot.writeMessageEnd()
  2370. oprot.trans.flush()
  2371. def process_getRowsWithColumnsTs(self, seqid, iprot, oprot):
  2372. args = getRowsWithColumnsTs_args()
  2373. args.read(iprot)
  2374. iprot.readMessageEnd()
  2375. result = getRowsWithColumnsTs_result()
  2376. try:
  2377. result.success = self._handler.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp, args.attributes)
  2378. except IOError as io:
  2379. result.io = io
  2380. oprot.writeMessageBegin("getRowsWithColumnsTs", TMessageType.REPLY, seqid)
  2381. result.write(oprot)
  2382. oprot.writeMessageEnd()
  2383. oprot.trans.flush()
  2384. def process_mutateRow(self, seqid, iprot, oprot):
  2385. args = mutateRow_args()
  2386. args.read(iprot)
  2387. iprot.readMessageEnd()
  2388. result = mutateRow_result()
  2389. try:
  2390. self._handler.mutateRow(args.tableName, args.row, args.mutations, args.attributes)
  2391. except IOError as io:
  2392. result.io = io
  2393. except IllegalArgument as ia:
  2394. result.ia = ia
  2395. oprot.writeMessageBegin("mutateRow", TMessageType.REPLY, seqid)
  2396. result.write(oprot)
  2397. oprot.writeMessageEnd()
  2398. oprot.trans.flush()
  2399. def process_mutateRowTs(self, seqid, iprot, oprot):
  2400. args = mutateRowTs_args()
  2401. args.read(iprot)
  2402. iprot.readMessageEnd()
  2403. result = mutateRowTs_result()
  2404. try:
  2405. self._handler.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp, args.attributes)
  2406. except IOError as io:
  2407. result.io = io
  2408. except IllegalArgument as ia:
  2409. result.ia = ia
  2410. oprot.writeMessageBegin("mutateRowTs", TMessageType.REPLY, seqid)
  2411. result.write(oprot)
  2412. oprot.writeMessageEnd()
  2413. oprot.trans.flush()
  2414. def process_mutateRows(self, seqid, iprot, oprot):
  2415. args = mutateRows_args()
  2416. args.read(iprot)
  2417. iprot.readMessageEnd()
  2418. result = mutateRows_result()
  2419. try:
  2420. self._handler.mutateRows(args.tableName, args.rowBatches, args.attributes)
  2421. except IOError as io:
  2422. result.io = io
  2423. except IllegalArgument as ia:
  2424. result.ia = ia
  2425. oprot.writeMessageBegin("mutateRows", TMessageType.REPLY, seqid)
  2426. result.write(oprot)
  2427. oprot.writeMessageEnd()
  2428. oprot.trans.flush()
  2429. def process_mutateRowsTs(self, seqid, iprot, oprot):
  2430. args = mutateRowsTs_args()
  2431. args.read(iprot)
  2432. iprot.readMessageEnd()
  2433. result = mutateRowsTs_result()
  2434. try:
  2435. self._handler.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp, args.attributes)
  2436. except IOError as io:
  2437. result.io = io
  2438. except IllegalArgument as ia:
  2439. result.ia = ia
  2440. oprot.writeMessageBegin("mutateRowsTs", TMessageType.REPLY, seqid)
  2441. result.write(oprot)
  2442. oprot.writeMessageEnd()
  2443. oprot.trans.flush()
  2444. def process_atomicIncrement(self, seqid, iprot, oprot):
  2445. args = atomicIncrement_args()
  2446. args.read(iprot)
  2447. iprot.readMessageEnd()
  2448. result = atomicIncrement_result()
  2449. try:
  2450. result.success = self._handler.atomicIncrement(args.tableName, args.row, args.column, args.value)
  2451. except IOError as io:
  2452. result.io = io
  2453. except IllegalArgument as ia:
  2454. result.ia = ia
  2455. oprot.writeMessageBegin("atomicIncrement", TMessageType.REPLY, seqid)
  2456. result.write(oprot)
  2457. oprot.writeMessageEnd()
  2458. oprot.trans.flush()
  2459. def process_deleteAll(self, seqid, iprot, oprot):
  2460. args = deleteAll_args()
  2461. args.read(iprot)
  2462. iprot.readMessageEnd()
  2463. result = deleteAll_result()
  2464. try:
  2465. self._handler.deleteAll(args.tableName, args.row, args.column, args.attributes)
  2466. except IOError as io:
  2467. result.io = io
  2468. oprot.writeMessageBegin("deleteAll", TMessageType.REPLY, seqid)
  2469. result.write(oprot)
  2470. oprot.writeMessageEnd()
  2471. oprot.trans.flush()
  2472. def process_deleteAllTs(self, seqid, iprot, oprot):
  2473. args = deleteAllTs_args()
  2474. args.read(iprot)
  2475. iprot.readMessageEnd()
  2476. result = deleteAllTs_result()
  2477. try:
  2478. self._handler.deleteAllTs(args.tableName, args.row, args.column, args.timestamp, args.attributes)
  2479. except IOError as io:
  2480. result.io = io
  2481. oprot.writeMessageBegin("deleteAllTs", TMessageType.REPLY, seqid)
  2482. result.write(oprot)
  2483. oprot.writeMessageEnd()
  2484. oprot.trans.flush()
  2485. def process_deleteAllRow(self, seqid, iprot, oprot):
  2486. args = deleteAllRow_args()
  2487. args.read(iprot)
  2488. iprot.readMessageEnd()
  2489. result = deleteAllRow_result()
  2490. try:
  2491. self._handler.deleteAllRow(args.tableName, args.row, args.attributes)
  2492. except IOError as io:
  2493. result.io = io
  2494. oprot.writeMessageBegin("deleteAllRow", TMessageType.REPLY, seqid)
  2495. result.write(oprot)
  2496. oprot.writeMessageEnd()
  2497. oprot.trans.flush()
  2498. def process_increment(self, seqid, iprot, oprot):
  2499. args = increment_args()
  2500. args.read(iprot)
  2501. iprot.readMessageEnd()
  2502. result = increment_result()
  2503. try:
  2504. self._handler.increment(args.increment)
  2505. except IOError as io:
  2506. result.io = io
  2507. oprot.writeMessageBegin("increment", TMessageType.REPLY, seqid)
  2508. result.write(oprot)
  2509. oprot.writeMessageEnd()
  2510. oprot.trans.flush()
  2511. def process_incrementRows(self, seqid, iprot, oprot):
  2512. args = incrementRows_args()
  2513. args.read(iprot)
  2514. iprot.readMessageEnd()
  2515. result = incrementRows_result()
  2516. try:
  2517. self._handler.incrementRows(args.increments)
  2518. except IOError as io:
  2519. result.io = io
  2520. oprot.writeMessageBegin("incrementRows", TMessageType.REPLY, seqid)
  2521. result.write(oprot)
  2522. oprot.writeMessageEnd()
  2523. oprot.trans.flush()
  2524. def process_deleteAllRowTs(self, seqid, iprot, oprot):
  2525. args = deleteAllRowTs_args()
  2526. args.read(iprot)
  2527. iprot.readMessageEnd()
  2528. result = deleteAllRowTs_result()
  2529. try:
  2530. self._handler.deleteAllRowTs(args.tableName, args.row, args.timestamp, args.attributes)
  2531. except IOError as io:
  2532. result.io = io
  2533. oprot.writeMessageBegin("deleteAllRowTs", TMessageType.REPLY, seqid)
  2534. result.write(oprot)
  2535. oprot.writeMessageEnd()
  2536. oprot.trans.flush()
  2537. def process_scannerOpenWithScan(self, seqid, iprot, oprot):
  2538. args = scannerOpenWithScan_args()
  2539. args.read(iprot)
  2540. iprot.readMessageEnd()
  2541. result = scannerOpenWithScan_result()
  2542. try:
  2543. result.success = self._handler.scannerOpenWithScan(args.tableName, args.scan, args.attributes)
  2544. except IOError as io:
  2545. result.io = io
  2546. oprot.writeMessageBegin("scannerOpenWithScan", TMessageType.REPLY, seqid)
  2547. result.write(oprot)
  2548. oprot.writeMessageEnd()
  2549. oprot.trans.flush()
  2550. def process_scannerOpen(self, seqid, iprot, oprot):
  2551. args = scannerOpen_args()
  2552. args.read(iprot)
  2553. iprot.readMessageEnd()
  2554. result = scannerOpen_result()
  2555. try:
  2556. result.success = self._handler.scannerOpen(args.tableName, args.startRow, args.columns, args.attributes)
  2557. except IOError as io:
  2558. result.io = io
  2559. oprot.writeMessageBegin("scannerOpen", TMessageType.REPLY, seqid)
  2560. result.write(oprot)
  2561. oprot.writeMessageEnd()
  2562. oprot.trans.flush()
  2563. def process_scannerOpenWithStop(self, seqid, iprot, oprot):
  2564. args = scannerOpenWithStop_args()
  2565. args.read(iprot)
  2566. iprot.readMessageEnd()
  2567. result = scannerOpenWithStop_result()
  2568. try:
  2569. result.success = self._handler.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns, args.attributes)
  2570. except IOError as io:
  2571. result.io = io
  2572. oprot.writeMessageBegin("scannerOpenWithStop", TMessageType.REPLY, seqid)
  2573. result.write(oprot)
  2574. oprot.writeMessageEnd()
  2575. oprot.trans.flush()
  2576. def process_scannerOpenWithPrefix(self, seqid, iprot, oprot):
  2577. args = scannerOpenWithPrefix_args()
  2578. args.read(iprot)
  2579. iprot.readMessageEnd()
  2580. result = scannerOpenWithPrefix_result()
  2581. try:
  2582. result.success = self._handler.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns, args.attributes)
  2583. except IOError as io:
  2584. result.io = io
  2585. oprot.writeMessageBegin("scannerOpenWithPrefix", TMessageType.REPLY, seqid)
  2586. result.write(oprot)
  2587. oprot.writeMessageEnd()
  2588. oprot.trans.flush()
  2589. def process_scannerOpenTs(self, seqid, iprot, oprot):
  2590. args = scannerOpenTs_args()
  2591. args.read(iprot)
  2592. iprot.readMessageEnd()
  2593. result = scannerOpenTs_result()
  2594. try:
  2595. result.success = self._handler.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp, args.attributes)
  2596. except IOError as io:
  2597. result.io = io
  2598. oprot.writeMessageBegin("scannerOpenTs", TMessageType.REPLY, seqid)
  2599. result.write(oprot)
  2600. oprot.writeMessageEnd()
  2601. oprot.trans.flush()
  2602. def process_scannerOpenWithStopTs(self, seqid, iprot, oprot):
  2603. args = scannerOpenWithStopTs_args()
  2604. args.read(iprot)
  2605. iprot.readMessageEnd()
  2606. result = scannerOpenWithStopTs_result()
  2607. try:
  2608. result.success = self._handler.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp, args.attributes)
  2609. except IOError as io:
  2610. result.io = io
  2611. oprot.writeMessageBegin("scannerOpenWithStopTs", TMessageType.REPLY, seqid)
  2612. result.write(oprot)
  2613. oprot.writeMessageEnd()
  2614. oprot.trans.flush()
  2615. def process_scannerGet(self, seqid, iprot, oprot):
  2616. args = scannerGet_args()
  2617. args.read(iprot)
  2618. iprot.readMessageEnd()
  2619. result = scannerGet_result()
  2620. try:
  2621. result.success = self._handler.scannerGet(args.id)
  2622. except IOError as io:
  2623. result.io = io
  2624. except IllegalArgument as ia:
  2625. result.ia = ia
  2626. oprot.writeMessageBegin("scannerGet", TMessageType.REPLY, seqid)
  2627. result.write(oprot)
  2628. oprot.writeMessageEnd()
  2629. oprot.trans.flush()
  2630. def process_scannerGetList(self, seqid, iprot, oprot):
  2631. args = scannerGetList_args()
  2632. args.read(iprot)
  2633. iprot.readMessageEnd()
  2634. result = scannerGetList_result()
  2635. try:
  2636. result.success = self._handler.scannerGetList(args.id, args.nbRows)
  2637. except IOError as io:
  2638. result.io = io
  2639. except IllegalArgument as ia:
  2640. result.ia = ia
  2641. oprot.writeMessageBegin("scannerGetList", TMessageType.REPLY, seqid)
  2642. result.write(oprot)
  2643. oprot.writeMessageEnd()
  2644. oprot.trans.flush()
  2645. def process_scannerClose(self, seqid, iprot, oprot):
  2646. args = scannerClose_args()
  2647. args.read(iprot)
  2648. iprot.readMessageEnd()
  2649. result = scannerClose_result()
  2650. try:
  2651. self._handler.scannerClose(args.id)
  2652. except IOError as io:
  2653. result.io = io
  2654. except IllegalArgument as ia:
  2655. result.ia = ia
  2656. oprot.writeMessageBegin("scannerClose", TMessageType.REPLY, seqid)
  2657. result.write(oprot)
  2658. oprot.writeMessageEnd()
  2659. oprot.trans.flush()
  2660. def process_getRowOrBefore(self, seqid, iprot, oprot):
  2661. args = getRowOrBefore_args()
  2662. args.read(iprot)
  2663. iprot.readMessageEnd()
  2664. result = getRowOrBefore_result()
  2665. try:
  2666. result.success = self._handler.getRowOrBefore(args.tableName, args.row, args.family)
  2667. except IOError as io:
  2668. result.io = io
  2669. oprot.writeMessageBegin("getRowOrBefore", TMessageType.REPLY, seqid)
  2670. result.write(oprot)
  2671. oprot.writeMessageEnd()
  2672. oprot.trans.flush()
  2673. def process_getRegionInfo(self, seqid, iprot, oprot):
  2674. args = getRegionInfo_args()
  2675. args.read(iprot)
  2676. iprot.readMessageEnd()
  2677. result = getRegionInfo_result()
  2678. try:
  2679. result.success = self._handler.getRegionInfo(args.row)
  2680. except IOError as io:
  2681. result.io = io
  2682. oprot.writeMessageBegin("getRegionInfo", TMessageType.REPLY, seqid)
  2683. result.write(oprot)
  2684. oprot.writeMessageEnd()
  2685. oprot.trans.flush()
  2686. # HELPER FUNCTIONS AND STRUCTURES
  2687. class enableTable_args:
  2688. """
  2689. Attributes:
  2690. - tableName: name of the table
  2691. """
  2692. thrift_spec = (
  2693. None, # 0
  2694. (1, TType.STRING, 'tableName', None, None, ), # 1
  2695. )
  2696. def __init__(self, tableName=None,):
  2697. self.tableName = tableName
  2698. def read(self, iprot):
  2699. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2700. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2701. return
  2702. iprot.readStructBegin()
  2703. while True:
  2704. (fname, ftype, fid) = iprot.readFieldBegin()
  2705. if ftype == TType.STOP:
  2706. break
  2707. if fid == 1:
  2708. if ftype == TType.STRING:
  2709. self.tableName = iprot.readString();
  2710. else:
  2711. iprot.skip(ftype)
  2712. else:
  2713. iprot.skip(ftype)
  2714. iprot.readFieldEnd()
  2715. iprot.readStructEnd()
  2716. def write(self, oprot):
  2717. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2718. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2719. return
  2720. oprot.writeStructBegin('enableTable_args')
  2721. if self.tableName is not None:
  2722. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  2723. oprot.writeString(self.tableName)
  2724. oprot.writeFieldEnd()
  2725. oprot.writeFieldStop()
  2726. oprot.writeStructEnd()
  2727. def validate(self):
  2728. return
  2729. def __repr__(self):
  2730. L = ['%s=%r' % (key, value)
  2731. for key, value in self.__dict__.iteritems()]
  2732. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2733. def __eq__(self, other):
  2734. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2735. def __ne__(self, other):
  2736. return not (self == other)
  2737. class enableTable_result:
  2738. """
  2739. Attributes:
  2740. - io
  2741. """
  2742. thrift_spec = (
  2743. None, # 0
  2744. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  2745. )
  2746. def __init__(self, io=None,):
  2747. self.io = io
  2748. def read(self, iprot):
  2749. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2750. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2751. return
  2752. iprot.readStructBegin()
  2753. while True:
  2754. (fname, ftype, fid) = iprot.readFieldBegin()
  2755. if ftype == TType.STOP:
  2756. break
  2757. if fid == 1:
  2758. if ftype == TType.STRUCT:
  2759. self.io = IOError()
  2760. self.io.read(iprot)
  2761. else:
  2762. iprot.skip(ftype)
  2763. else:
  2764. iprot.skip(ftype)
  2765. iprot.readFieldEnd()
  2766. iprot.readStructEnd()
  2767. def write(self, oprot):
  2768. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2769. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2770. return
  2771. oprot.writeStructBegin('enableTable_result')
  2772. if self.io is not None:
  2773. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  2774. self.io.write(oprot)
  2775. oprot.writeFieldEnd()
  2776. oprot.writeFieldStop()
  2777. oprot.writeStructEnd()
  2778. def validate(self):
  2779. return
  2780. def __repr__(self):
  2781. L = ['%s=%r' % (key, value)
  2782. for key, value in self.__dict__.iteritems()]
  2783. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2784. def __eq__(self, other):
  2785. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2786. def __ne__(self, other):
  2787. return not (self == other)
  2788. class disableTable_args:
  2789. """
  2790. Attributes:
  2791. - tableName: name of the table
  2792. """
  2793. thrift_spec = (
  2794. None, # 0
  2795. (1, TType.STRING, 'tableName', None, None, ), # 1
  2796. )
  2797. def __init__(self, tableName=None,):
  2798. self.tableName = tableName
  2799. def read(self, iprot):
  2800. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2801. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2802. return
  2803. iprot.readStructBegin()
  2804. while True:
  2805. (fname, ftype, fid) = iprot.readFieldBegin()
  2806. if ftype == TType.STOP:
  2807. break
  2808. if fid == 1:
  2809. if ftype == TType.STRING:
  2810. self.tableName = iprot.readString();
  2811. else:
  2812. iprot.skip(ftype)
  2813. else:
  2814. iprot.skip(ftype)
  2815. iprot.readFieldEnd()
  2816. iprot.readStructEnd()
  2817. def write(self, oprot):
  2818. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2819. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2820. return
  2821. oprot.writeStructBegin('disableTable_args')
  2822. if self.tableName is not None:
  2823. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  2824. oprot.writeString(self.tableName)
  2825. oprot.writeFieldEnd()
  2826. oprot.writeFieldStop()
  2827. oprot.writeStructEnd()
  2828. def validate(self):
  2829. return
  2830. def __repr__(self):
  2831. L = ['%s=%r' % (key, value)
  2832. for key, value in self.__dict__.iteritems()]
  2833. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2834. def __eq__(self, other):
  2835. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2836. def __ne__(self, other):
  2837. return not (self == other)
  2838. class disableTable_result:
  2839. """
  2840. Attributes:
  2841. - io
  2842. """
  2843. thrift_spec = (
  2844. None, # 0
  2845. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  2846. )
  2847. def __init__(self, io=None,):
  2848. self.io = io
  2849. def read(self, iprot):
  2850. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2851. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2852. return
  2853. iprot.readStructBegin()
  2854. while True:
  2855. (fname, ftype, fid) = iprot.readFieldBegin()
  2856. if ftype == TType.STOP:
  2857. break
  2858. if fid == 1:
  2859. if ftype == TType.STRUCT:
  2860. self.io = IOError()
  2861. self.io.read(iprot)
  2862. else:
  2863. iprot.skip(ftype)
  2864. else:
  2865. iprot.skip(ftype)
  2866. iprot.readFieldEnd()
  2867. iprot.readStructEnd()
  2868. def write(self, oprot):
  2869. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2870. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2871. return
  2872. oprot.writeStructBegin('disableTable_result')
  2873. if self.io is not None:
  2874. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  2875. self.io.write(oprot)
  2876. oprot.writeFieldEnd()
  2877. oprot.writeFieldStop()
  2878. oprot.writeStructEnd()
  2879. def validate(self):
  2880. return
  2881. def __repr__(self):
  2882. L = ['%s=%r' % (key, value)
  2883. for key, value in self.__dict__.iteritems()]
  2884. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2885. def __eq__(self, other):
  2886. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2887. def __ne__(self, other):
  2888. return not (self == other)
  2889. class isTableEnabled_args:
  2890. """
  2891. Attributes:
  2892. - tableName: name of the table to check
  2893. """
  2894. thrift_spec = (
  2895. None, # 0
  2896. (1, TType.STRING, 'tableName', None, None, ), # 1
  2897. )
  2898. def __init__(self, tableName=None,):
  2899. self.tableName = tableName
  2900. def read(self, iprot):
  2901. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2902. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2903. return
  2904. iprot.readStructBegin()
  2905. while True:
  2906. (fname, ftype, fid) = iprot.readFieldBegin()
  2907. if ftype == TType.STOP:
  2908. break
  2909. if fid == 1:
  2910. if ftype == TType.STRING:
  2911. self.tableName = iprot.readString();
  2912. else:
  2913. iprot.skip(ftype)
  2914. else:
  2915. iprot.skip(ftype)
  2916. iprot.readFieldEnd()
  2917. iprot.readStructEnd()
  2918. def write(self, oprot):
  2919. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2920. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2921. return
  2922. oprot.writeStructBegin('isTableEnabled_args')
  2923. if self.tableName is not None:
  2924. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  2925. oprot.writeString(self.tableName)
  2926. oprot.writeFieldEnd()
  2927. oprot.writeFieldStop()
  2928. oprot.writeStructEnd()
  2929. def validate(self):
  2930. return
  2931. def __repr__(self):
  2932. L = ['%s=%r' % (key, value)
  2933. for key, value in self.__dict__.iteritems()]
  2934. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2935. def __eq__(self, other):
  2936. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2937. def __ne__(self, other):
  2938. return not (self == other)
  2939. class isTableEnabled_result:
  2940. """
  2941. Attributes:
  2942. - success
  2943. - io
  2944. """
  2945. thrift_spec = (
  2946. (0, TType.BOOL, 'success', None, None, ), # 0
  2947. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  2948. )
  2949. def __init__(self, success=None, io=None,):
  2950. self.success = success
  2951. self.io = io
  2952. def read(self, iprot):
  2953. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2954. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2955. return
  2956. iprot.readStructBegin()
  2957. while True:
  2958. (fname, ftype, fid) = iprot.readFieldBegin()
  2959. if ftype == TType.STOP:
  2960. break
  2961. if fid == 0:
  2962. if ftype == TType.BOOL:
  2963. self.success = iprot.readBool();
  2964. else:
  2965. iprot.skip(ftype)
  2966. elif fid == 1:
  2967. if ftype == TType.STRUCT:
  2968. self.io = IOError()
  2969. self.io.read(iprot)
  2970. else:
  2971. iprot.skip(ftype)
  2972. else:
  2973. iprot.skip(ftype)
  2974. iprot.readFieldEnd()
  2975. iprot.readStructEnd()
  2976. def write(self, oprot):
  2977. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2978. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2979. return
  2980. oprot.writeStructBegin('isTableEnabled_result')
  2981. if self.success is not None:
  2982. oprot.writeFieldBegin('success', TType.BOOL, 0)
  2983. oprot.writeBool(self.success)
  2984. oprot.writeFieldEnd()
  2985. if self.io is not None:
  2986. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  2987. self.io.write(oprot)
  2988. oprot.writeFieldEnd()
  2989. oprot.writeFieldStop()
  2990. oprot.writeStructEnd()
  2991. def validate(self):
  2992. return
  2993. def __repr__(self):
  2994. L = ['%s=%r' % (key, value)
  2995. for key, value in self.__dict__.iteritems()]
  2996. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2997. def __eq__(self, other):
  2998. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2999. def __ne__(self, other):
  3000. return not (self == other)
  3001. class compact_args:
  3002. """
  3003. Attributes:
  3004. - tableNameOrRegionName
  3005. """
  3006. thrift_spec = (
  3007. None, # 0
  3008. (1, TType.STRING, 'tableNameOrRegionName', None, None, ), # 1
  3009. )
  3010. def __init__(self, tableNameOrRegionName=None,):
  3011. self.tableNameOrRegionName = tableNameOrRegionName
  3012. def read(self, iprot):
  3013. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3014. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3015. return
  3016. iprot.readStructBegin()
  3017. while True:
  3018. (fname, ftype, fid) = iprot.readFieldBegin()
  3019. if ftype == TType.STOP:
  3020. break
  3021. if fid == 1:
  3022. if ftype == TType.STRING:
  3023. self.tableNameOrRegionName = iprot.readString();
  3024. else:
  3025. iprot.skip(ftype)
  3026. else:
  3027. iprot.skip(ftype)
  3028. iprot.readFieldEnd()
  3029. iprot.readStructEnd()
  3030. def write(self, oprot):
  3031. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3032. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3033. return
  3034. oprot.writeStructBegin('compact_args')
  3035. if self.tableNameOrRegionName is not None:
  3036. oprot.writeFieldBegin('tableNameOrRegionName', TType.STRING, 1)
  3037. oprot.writeString(self.tableNameOrRegionName)
  3038. oprot.writeFieldEnd()
  3039. oprot.writeFieldStop()
  3040. oprot.writeStructEnd()
  3041. def validate(self):
  3042. return
  3043. def __repr__(self):
  3044. L = ['%s=%r' % (key, value)
  3045. for key, value in self.__dict__.iteritems()]
  3046. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3047. def __eq__(self, other):
  3048. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3049. def __ne__(self, other):
  3050. return not (self == other)
  3051. class compact_result:
  3052. """
  3053. Attributes:
  3054. - io
  3055. """
  3056. thrift_spec = (
  3057. None, # 0
  3058. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3059. )
  3060. def __init__(self, io=None,):
  3061. self.io = io
  3062. def read(self, iprot):
  3063. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3064. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3065. return
  3066. iprot.readStructBegin()
  3067. while True:
  3068. (fname, ftype, fid) = iprot.readFieldBegin()
  3069. if ftype == TType.STOP:
  3070. break
  3071. if fid == 1:
  3072. if ftype == TType.STRUCT:
  3073. self.io = IOError()
  3074. self.io.read(iprot)
  3075. else:
  3076. iprot.skip(ftype)
  3077. else:
  3078. iprot.skip(ftype)
  3079. iprot.readFieldEnd()
  3080. iprot.readStructEnd()
  3081. def write(self, oprot):
  3082. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3083. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3084. return
  3085. oprot.writeStructBegin('compact_result')
  3086. if self.io is not None:
  3087. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3088. self.io.write(oprot)
  3089. oprot.writeFieldEnd()
  3090. oprot.writeFieldStop()
  3091. oprot.writeStructEnd()
  3092. def validate(self):
  3093. return
  3094. def __repr__(self):
  3095. L = ['%s=%r' % (key, value)
  3096. for key, value in self.__dict__.iteritems()]
  3097. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3098. def __eq__(self, other):
  3099. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3100. def __ne__(self, other):
  3101. return not (self == other)
  3102. class majorCompact_args:
  3103. """
  3104. Attributes:
  3105. - tableNameOrRegionName
  3106. """
  3107. thrift_spec = (
  3108. None, # 0
  3109. (1, TType.STRING, 'tableNameOrRegionName', None, None, ), # 1
  3110. )
  3111. def __init__(self, tableNameOrRegionName=None,):
  3112. self.tableNameOrRegionName = tableNameOrRegionName
  3113. def read(self, iprot):
  3114. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3115. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3116. return
  3117. iprot.readStructBegin()
  3118. while True:
  3119. (fname, ftype, fid) = iprot.readFieldBegin()
  3120. if ftype == TType.STOP:
  3121. break
  3122. if fid == 1:
  3123. if ftype == TType.STRING:
  3124. self.tableNameOrRegionName = iprot.readString();
  3125. else:
  3126. iprot.skip(ftype)
  3127. else:
  3128. iprot.skip(ftype)
  3129. iprot.readFieldEnd()
  3130. iprot.readStructEnd()
  3131. def write(self, oprot):
  3132. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3133. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3134. return
  3135. oprot.writeStructBegin('majorCompact_args')
  3136. if self.tableNameOrRegionName is not None:
  3137. oprot.writeFieldBegin('tableNameOrRegionName', TType.STRING, 1)
  3138. oprot.writeString(self.tableNameOrRegionName)
  3139. oprot.writeFieldEnd()
  3140. oprot.writeFieldStop()
  3141. oprot.writeStructEnd()
  3142. def validate(self):
  3143. return
  3144. def __repr__(self):
  3145. L = ['%s=%r' % (key, value)
  3146. for key, value in self.__dict__.iteritems()]
  3147. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3148. def __eq__(self, other):
  3149. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3150. def __ne__(self, other):
  3151. return not (self == other)
  3152. class majorCompact_result:
  3153. """
  3154. Attributes:
  3155. - io
  3156. """
  3157. thrift_spec = (
  3158. None, # 0
  3159. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3160. )
  3161. def __init__(self, io=None,):
  3162. self.io = io
  3163. def read(self, iprot):
  3164. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3165. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3166. return
  3167. iprot.readStructBegin()
  3168. while True:
  3169. (fname, ftype, fid) = iprot.readFieldBegin()
  3170. if ftype == TType.STOP:
  3171. break
  3172. if fid == 1:
  3173. if ftype == TType.STRUCT:
  3174. self.io = IOError()
  3175. self.io.read(iprot)
  3176. else:
  3177. iprot.skip(ftype)
  3178. else:
  3179. iprot.skip(ftype)
  3180. iprot.readFieldEnd()
  3181. iprot.readStructEnd()
  3182. def write(self, oprot):
  3183. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3184. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3185. return
  3186. oprot.writeStructBegin('majorCompact_result')
  3187. if self.io is not None:
  3188. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3189. self.io.write(oprot)
  3190. oprot.writeFieldEnd()
  3191. oprot.writeFieldStop()
  3192. oprot.writeStructEnd()
  3193. def validate(self):
  3194. return
  3195. def __repr__(self):
  3196. L = ['%s=%r' % (key, value)
  3197. for key, value in self.__dict__.iteritems()]
  3198. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3199. def __eq__(self, other):
  3200. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3201. def __ne__(self, other):
  3202. return not (self == other)
  3203. class getTableNames_args:
  3204. thrift_spec = (
  3205. )
  3206. def read(self, iprot):
  3207. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3208. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3209. return
  3210. iprot.readStructBegin()
  3211. while True:
  3212. (fname, ftype, fid) = iprot.readFieldBegin()
  3213. if ftype == TType.STOP:
  3214. break
  3215. else:
  3216. iprot.skip(ftype)
  3217. iprot.readFieldEnd()
  3218. iprot.readStructEnd()
  3219. def write(self, oprot):
  3220. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3221. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3222. return
  3223. oprot.writeStructBegin('getTableNames_args')
  3224. oprot.writeFieldStop()
  3225. oprot.writeStructEnd()
  3226. def validate(self):
  3227. return
  3228. def __repr__(self):
  3229. L = ['%s=%r' % (key, value)
  3230. for key, value in self.__dict__.iteritems()]
  3231. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3232. def __eq__(self, other):
  3233. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3234. def __ne__(self, other):
  3235. return not (self == other)
  3236. class getTableNames_result:
  3237. """
  3238. Attributes:
  3239. - success
  3240. - io
  3241. """
  3242. thrift_spec = (
  3243. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  3244. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3245. )
  3246. def __init__(self, success=None, io=None,):
  3247. self.success = success
  3248. self.io = io
  3249. def read(self, iprot):
  3250. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3251. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3252. return
  3253. iprot.readStructBegin()
  3254. while True:
  3255. (fname, ftype, fid) = iprot.readFieldBegin()
  3256. if ftype == TType.STOP:
  3257. break
  3258. if fid == 0:
  3259. if ftype == TType.LIST:
  3260. self.success = []
  3261. (_etype26, _size23) = iprot.readListBegin()
  3262. for _i27 in xrange(_size23):
  3263. _elem28 = iprot.readString();
  3264. self.success.append(_elem28)
  3265. iprot.readListEnd()
  3266. else:
  3267. iprot.skip(ftype)
  3268. elif fid == 1:
  3269. if ftype == TType.STRUCT:
  3270. self.io = IOError()
  3271. self.io.read(iprot)
  3272. else:
  3273. iprot.skip(ftype)
  3274. else:
  3275. iprot.skip(ftype)
  3276. iprot.readFieldEnd()
  3277. iprot.readStructEnd()
  3278. def write(self, oprot):
  3279. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3280. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3281. return
  3282. oprot.writeStructBegin('getTableNames_result')
  3283. if self.success is not None:
  3284. oprot.writeFieldBegin('success', TType.LIST, 0)
  3285. oprot.writeListBegin(TType.STRING, len(self.success))
  3286. for iter29 in self.success:
  3287. oprot.writeString(iter29)
  3288. oprot.writeListEnd()
  3289. oprot.writeFieldEnd()
  3290. if self.io is not None:
  3291. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3292. self.io.write(oprot)
  3293. oprot.writeFieldEnd()
  3294. oprot.writeFieldStop()
  3295. oprot.writeStructEnd()
  3296. def validate(self):
  3297. return
  3298. def __repr__(self):
  3299. L = ['%s=%r' % (key, value)
  3300. for key, value in self.__dict__.iteritems()]
  3301. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3302. def __eq__(self, other):
  3303. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3304. def __ne__(self, other):
  3305. return not (self == other)
  3306. class getColumnDescriptors_args:
  3307. """
  3308. Attributes:
  3309. - tableName: table name
  3310. """
  3311. thrift_spec = (
  3312. None, # 0
  3313. (1, TType.STRING, 'tableName', None, None, ), # 1
  3314. )
  3315. def __init__(self, tableName=None,):
  3316. self.tableName = tableName
  3317. def read(self, iprot):
  3318. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3319. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3320. return
  3321. iprot.readStructBegin()
  3322. while True:
  3323. (fname, ftype, fid) = iprot.readFieldBegin()
  3324. if ftype == TType.STOP:
  3325. break
  3326. if fid == 1:
  3327. if ftype == TType.STRING:
  3328. self.tableName = iprot.readString();
  3329. else:
  3330. iprot.skip(ftype)
  3331. else:
  3332. iprot.skip(ftype)
  3333. iprot.readFieldEnd()
  3334. iprot.readStructEnd()
  3335. def write(self, oprot):
  3336. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3337. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3338. return
  3339. oprot.writeStructBegin('getColumnDescriptors_args')
  3340. if self.tableName is not None:
  3341. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  3342. oprot.writeString(self.tableName)
  3343. oprot.writeFieldEnd()
  3344. oprot.writeFieldStop()
  3345. oprot.writeStructEnd()
  3346. def validate(self):
  3347. return
  3348. def __repr__(self):
  3349. L = ['%s=%r' % (key, value)
  3350. for key, value in self.__dict__.iteritems()]
  3351. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3352. def __eq__(self, other):
  3353. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3354. def __ne__(self, other):
  3355. return not (self == other)
  3356. class getColumnDescriptors_result:
  3357. """
  3358. Attributes:
  3359. - success
  3360. - io
  3361. """
  3362. thrift_spec = (
  3363. (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(ColumnDescriptor, ColumnDescriptor.thrift_spec)), None, ), # 0
  3364. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3365. )
  3366. def __init__(self, success=None, io=None,):
  3367. self.success = success
  3368. self.io = io
  3369. def read(self, iprot):
  3370. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3371. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3372. return
  3373. iprot.readStructBegin()
  3374. while True:
  3375. (fname, ftype, fid) = iprot.readFieldBegin()
  3376. if ftype == TType.STOP:
  3377. break
  3378. if fid == 0:
  3379. if ftype == TType.MAP:
  3380. self.success = {}
  3381. (_ktype31, _vtype32, _size30 ) = iprot.readMapBegin()
  3382. for _i34 in xrange(_size30):
  3383. _key35 = iprot.readString();
  3384. _val36 = ColumnDescriptor()
  3385. _val36.read(iprot)
  3386. self.success[_key35] = _val36
  3387. iprot.readMapEnd()
  3388. else:
  3389. iprot.skip(ftype)
  3390. elif fid == 1:
  3391. if ftype == TType.STRUCT:
  3392. self.io = IOError()
  3393. self.io.read(iprot)
  3394. else:
  3395. iprot.skip(ftype)
  3396. else:
  3397. iprot.skip(ftype)
  3398. iprot.readFieldEnd()
  3399. iprot.readStructEnd()
  3400. def write(self, oprot):
  3401. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3402. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3403. return
  3404. oprot.writeStructBegin('getColumnDescriptors_result')
  3405. if self.success is not None:
  3406. oprot.writeFieldBegin('success', TType.MAP, 0)
  3407. oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
  3408. for kiter37,viter38 in self.success.items():
  3409. oprot.writeString(kiter37)
  3410. viter38.write(oprot)
  3411. oprot.writeMapEnd()
  3412. oprot.writeFieldEnd()
  3413. if self.io is not None:
  3414. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3415. self.io.write(oprot)
  3416. oprot.writeFieldEnd()
  3417. oprot.writeFieldStop()
  3418. oprot.writeStructEnd()
  3419. def validate(self):
  3420. return
  3421. def __repr__(self):
  3422. L = ['%s=%r' % (key, value)
  3423. for key, value in self.__dict__.iteritems()]
  3424. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3425. def __eq__(self, other):
  3426. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3427. def __ne__(self, other):
  3428. return not (self == other)
  3429. class getTableRegions_args:
  3430. """
  3431. Attributes:
  3432. - tableName: table name
  3433. """
  3434. thrift_spec = (
  3435. None, # 0
  3436. (1, TType.STRING, 'tableName', None, None, ), # 1
  3437. )
  3438. def __init__(self, tableName=None,):
  3439. self.tableName = tableName
  3440. def read(self, iprot):
  3441. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3442. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3443. return
  3444. iprot.readStructBegin()
  3445. while True:
  3446. (fname, ftype, fid) = iprot.readFieldBegin()
  3447. if ftype == TType.STOP:
  3448. break
  3449. if fid == 1:
  3450. if ftype == TType.STRING:
  3451. self.tableName = iprot.readString();
  3452. else:
  3453. iprot.skip(ftype)
  3454. else:
  3455. iprot.skip(ftype)
  3456. iprot.readFieldEnd()
  3457. iprot.readStructEnd()
  3458. def write(self, oprot):
  3459. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3460. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3461. return
  3462. oprot.writeStructBegin('getTableRegions_args')
  3463. if self.tableName is not None:
  3464. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  3465. oprot.writeString(self.tableName)
  3466. oprot.writeFieldEnd()
  3467. oprot.writeFieldStop()
  3468. oprot.writeStructEnd()
  3469. def validate(self):
  3470. return
  3471. def __repr__(self):
  3472. L = ['%s=%r' % (key, value)
  3473. for key, value in self.__dict__.iteritems()]
  3474. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3475. def __eq__(self, other):
  3476. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3477. def __ne__(self, other):
  3478. return not (self == other)
  3479. class getTableRegions_result:
  3480. """
  3481. Attributes:
  3482. - success
  3483. - io
  3484. """
  3485. thrift_spec = (
  3486. (0, TType.LIST, 'success', (TType.STRUCT,(TRegionInfo, TRegionInfo.thrift_spec)), None, ), # 0
  3487. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3488. )
  3489. def __init__(self, success=None, io=None,):
  3490. self.success = success
  3491. self.io = io
  3492. def read(self, iprot):
  3493. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3494. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3495. return
  3496. iprot.readStructBegin()
  3497. while True:
  3498. (fname, ftype, fid) = iprot.readFieldBegin()
  3499. if ftype == TType.STOP:
  3500. break
  3501. if fid == 0:
  3502. if ftype == TType.LIST:
  3503. self.success = []
  3504. (_etype42, _size39) = iprot.readListBegin()
  3505. for _i43 in xrange(_size39):
  3506. _elem44 = TRegionInfo()
  3507. _elem44.read(iprot)
  3508. self.success.append(_elem44)
  3509. iprot.readListEnd()
  3510. else:
  3511. iprot.skip(ftype)
  3512. elif fid == 1:
  3513. if ftype == TType.STRUCT:
  3514. self.io = IOError()
  3515. self.io.read(iprot)
  3516. else:
  3517. iprot.skip(ftype)
  3518. else:
  3519. iprot.skip(ftype)
  3520. iprot.readFieldEnd()
  3521. iprot.readStructEnd()
  3522. def write(self, oprot):
  3523. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3524. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3525. return
  3526. oprot.writeStructBegin('getTableRegions_result')
  3527. if self.success is not None:
  3528. oprot.writeFieldBegin('success', TType.LIST, 0)
  3529. oprot.writeListBegin(TType.STRUCT, len(self.success))
  3530. for iter45 in self.success:
  3531. iter45.write(oprot)
  3532. oprot.writeListEnd()
  3533. oprot.writeFieldEnd()
  3534. if self.io is not None:
  3535. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3536. self.io.write(oprot)
  3537. oprot.writeFieldEnd()
  3538. oprot.writeFieldStop()
  3539. oprot.writeStructEnd()
  3540. def validate(self):
  3541. return
  3542. def __repr__(self):
  3543. L = ['%s=%r' % (key, value)
  3544. for key, value in self.__dict__.iteritems()]
  3545. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3546. def __eq__(self, other):
  3547. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3548. def __ne__(self, other):
  3549. return not (self == other)
  3550. class createTable_args:
  3551. """
  3552. Attributes:
  3553. - tableName: name of table to create
  3554. - columnFamilies: list of column family descriptors
  3555. """
  3556. thrift_spec = (
  3557. None, # 0
  3558. (1, TType.STRING, 'tableName', None, None, ), # 1
  3559. (2, TType.LIST, 'columnFamilies', (TType.STRUCT,(ColumnDescriptor, ColumnDescriptor.thrift_spec)), None, ), # 2
  3560. )
  3561. def __init__(self, tableName=None, columnFamilies=None,):
  3562. self.tableName = tableName
  3563. self.columnFamilies = columnFamilies
  3564. def read(self, iprot):
  3565. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3566. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3567. return
  3568. iprot.readStructBegin()
  3569. while True:
  3570. (fname, ftype, fid) = iprot.readFieldBegin()
  3571. if ftype == TType.STOP:
  3572. break
  3573. if fid == 1:
  3574. if ftype == TType.STRING:
  3575. self.tableName = iprot.readString();
  3576. else:
  3577. iprot.skip(ftype)
  3578. elif fid == 2:
  3579. if ftype == TType.LIST:
  3580. self.columnFamilies = []
  3581. (_etype49, _size46) = iprot.readListBegin()
  3582. for _i50 in xrange(_size46):
  3583. _elem51 = ColumnDescriptor()
  3584. _elem51.read(iprot)
  3585. self.columnFamilies.append(_elem51)
  3586. iprot.readListEnd()
  3587. else:
  3588. iprot.skip(ftype)
  3589. else:
  3590. iprot.skip(ftype)
  3591. iprot.readFieldEnd()
  3592. iprot.readStructEnd()
  3593. def write(self, oprot):
  3594. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3595. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3596. return
  3597. oprot.writeStructBegin('createTable_args')
  3598. if self.tableName is not None:
  3599. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  3600. oprot.writeString(self.tableName)
  3601. oprot.writeFieldEnd()
  3602. if self.columnFamilies is not None:
  3603. oprot.writeFieldBegin('columnFamilies', TType.LIST, 2)
  3604. oprot.writeListBegin(TType.STRUCT, len(self.columnFamilies))
  3605. for iter52 in self.columnFamilies:
  3606. iter52.write(oprot)
  3607. oprot.writeListEnd()
  3608. oprot.writeFieldEnd()
  3609. oprot.writeFieldStop()
  3610. oprot.writeStructEnd()
  3611. def validate(self):
  3612. return
  3613. def __repr__(self):
  3614. L = ['%s=%r' % (key, value)
  3615. for key, value in self.__dict__.iteritems()]
  3616. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3617. def __eq__(self, other):
  3618. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3619. def __ne__(self, other):
  3620. return not (self == other)
  3621. class createTable_result:
  3622. """
  3623. Attributes:
  3624. - io
  3625. - ia
  3626. - exist
  3627. """
  3628. thrift_spec = (
  3629. None, # 0
  3630. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3631. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  3632. (3, TType.STRUCT, 'exist', (AlreadyExists, AlreadyExists.thrift_spec), None, ), # 3
  3633. )
  3634. def __init__(self, io=None, ia=None, exist=None,):
  3635. self.io = io
  3636. self.ia = ia
  3637. self.exist = exist
  3638. def read(self, iprot):
  3639. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3640. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3641. return
  3642. iprot.readStructBegin()
  3643. while True:
  3644. (fname, ftype, fid) = iprot.readFieldBegin()
  3645. if ftype == TType.STOP:
  3646. break
  3647. if fid == 1:
  3648. if ftype == TType.STRUCT:
  3649. self.io = IOError()
  3650. self.io.read(iprot)
  3651. else:
  3652. iprot.skip(ftype)
  3653. elif fid == 2:
  3654. if ftype == TType.STRUCT:
  3655. self.ia = IllegalArgument()
  3656. self.ia.read(iprot)
  3657. else:
  3658. iprot.skip(ftype)
  3659. elif fid == 3:
  3660. if ftype == TType.STRUCT:
  3661. self.exist = AlreadyExists()
  3662. self.exist.read(iprot)
  3663. else:
  3664. iprot.skip(ftype)
  3665. else:
  3666. iprot.skip(ftype)
  3667. iprot.readFieldEnd()
  3668. iprot.readStructEnd()
  3669. def write(self, oprot):
  3670. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3671. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3672. return
  3673. oprot.writeStructBegin('createTable_result')
  3674. if self.io is not None:
  3675. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3676. self.io.write(oprot)
  3677. oprot.writeFieldEnd()
  3678. if self.ia is not None:
  3679. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  3680. self.ia.write(oprot)
  3681. oprot.writeFieldEnd()
  3682. if self.exist is not None:
  3683. oprot.writeFieldBegin('exist', TType.STRUCT, 3)
  3684. self.exist.write(oprot)
  3685. oprot.writeFieldEnd()
  3686. oprot.writeFieldStop()
  3687. oprot.writeStructEnd()
  3688. def validate(self):
  3689. return
  3690. def __repr__(self):
  3691. L = ['%s=%r' % (key, value)
  3692. for key, value in self.__dict__.iteritems()]
  3693. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3694. def __eq__(self, other):
  3695. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3696. def __ne__(self, other):
  3697. return not (self == other)
  3698. class deleteTable_args:
  3699. """
  3700. Attributes:
  3701. - tableName: name of table to delete
  3702. """
  3703. thrift_spec = (
  3704. None, # 0
  3705. (1, TType.STRING, 'tableName', None, None, ), # 1
  3706. )
  3707. def __init__(self, tableName=None,):
  3708. self.tableName = tableName
  3709. def read(self, iprot):
  3710. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3711. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3712. return
  3713. iprot.readStructBegin()
  3714. while True:
  3715. (fname, ftype, fid) = iprot.readFieldBegin()
  3716. if ftype == TType.STOP:
  3717. break
  3718. if fid == 1:
  3719. if ftype == TType.STRING:
  3720. self.tableName = iprot.readString();
  3721. else:
  3722. iprot.skip(ftype)
  3723. else:
  3724. iprot.skip(ftype)
  3725. iprot.readFieldEnd()
  3726. iprot.readStructEnd()
  3727. def write(self, oprot):
  3728. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3729. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3730. return
  3731. oprot.writeStructBegin('deleteTable_args')
  3732. if self.tableName is not None:
  3733. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  3734. oprot.writeString(self.tableName)
  3735. oprot.writeFieldEnd()
  3736. oprot.writeFieldStop()
  3737. oprot.writeStructEnd()
  3738. def validate(self):
  3739. return
  3740. def __repr__(self):
  3741. L = ['%s=%r' % (key, value)
  3742. for key, value in self.__dict__.iteritems()]
  3743. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3744. def __eq__(self, other):
  3745. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3746. def __ne__(self, other):
  3747. return not (self == other)
  3748. class deleteTable_result:
  3749. """
  3750. Attributes:
  3751. - io
  3752. """
  3753. thrift_spec = (
  3754. None, # 0
  3755. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3756. )
  3757. def __init__(self, io=None,):
  3758. self.io = io
  3759. def read(self, iprot):
  3760. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3761. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3762. return
  3763. iprot.readStructBegin()
  3764. while True:
  3765. (fname, ftype, fid) = iprot.readFieldBegin()
  3766. if ftype == TType.STOP:
  3767. break
  3768. if fid == 1:
  3769. if ftype == TType.STRUCT:
  3770. self.io = IOError()
  3771. self.io.read(iprot)
  3772. else:
  3773. iprot.skip(ftype)
  3774. else:
  3775. iprot.skip(ftype)
  3776. iprot.readFieldEnd()
  3777. iprot.readStructEnd()
  3778. def write(self, oprot):
  3779. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3780. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3781. return
  3782. oprot.writeStructBegin('deleteTable_result')
  3783. if self.io is not None:
  3784. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3785. self.io.write(oprot)
  3786. oprot.writeFieldEnd()
  3787. oprot.writeFieldStop()
  3788. oprot.writeStructEnd()
  3789. def validate(self):
  3790. return
  3791. def __repr__(self):
  3792. L = ['%s=%r' % (key, value)
  3793. for key, value in self.__dict__.iteritems()]
  3794. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3795. def __eq__(self, other):
  3796. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3797. def __ne__(self, other):
  3798. return not (self == other)
  3799. class get_args:
  3800. """
  3801. Attributes:
  3802. - tableName: name of table
  3803. - row: row key
  3804. - column: column name
  3805. - attributes: Get attributes
  3806. """
  3807. thrift_spec = (
  3808. None, # 0
  3809. (1, TType.STRING, 'tableName', None, None, ), # 1
  3810. (2, TType.STRING, 'row', None, None, ), # 2
  3811. (3, TType.STRING, 'column', None, None, ), # 3
  3812. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  3813. )
  3814. def __init__(self, tableName=None, row=None, column=None, attributes=None,):
  3815. self.tableName = tableName
  3816. self.row = row
  3817. self.column = column
  3818. self.attributes = attributes
  3819. def read(self, iprot):
  3820. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3821. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3822. return
  3823. iprot.readStructBegin()
  3824. while True:
  3825. (fname, ftype, fid) = iprot.readFieldBegin()
  3826. if ftype == TType.STOP:
  3827. break
  3828. if fid == 1:
  3829. if ftype == TType.STRING:
  3830. self.tableName = iprot.readString();
  3831. else:
  3832. iprot.skip(ftype)
  3833. elif fid == 2:
  3834. if ftype == TType.STRING:
  3835. self.row = iprot.readString();
  3836. else:
  3837. iprot.skip(ftype)
  3838. elif fid == 3:
  3839. if ftype == TType.STRING:
  3840. self.column = iprot.readString();
  3841. else:
  3842. iprot.skip(ftype)
  3843. elif fid == 4:
  3844. if ftype == TType.MAP:
  3845. self.attributes = {}
  3846. (_ktype54, _vtype55, _size53 ) = iprot.readMapBegin()
  3847. for _i57 in xrange(_size53):
  3848. _key58 = iprot.readString();
  3849. _val59 = iprot.readString();
  3850. self.attributes[_key58] = _val59
  3851. iprot.readMapEnd()
  3852. else:
  3853. iprot.skip(ftype)
  3854. else:
  3855. iprot.skip(ftype)
  3856. iprot.readFieldEnd()
  3857. iprot.readStructEnd()
  3858. def write(self, oprot):
  3859. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3860. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3861. return
  3862. oprot.writeStructBegin('get_args')
  3863. if self.tableName is not None:
  3864. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  3865. oprot.writeString(self.tableName)
  3866. oprot.writeFieldEnd()
  3867. if self.row is not None:
  3868. oprot.writeFieldBegin('row', TType.STRING, 2)
  3869. oprot.writeString(self.row)
  3870. oprot.writeFieldEnd()
  3871. if self.column is not None:
  3872. oprot.writeFieldBegin('column', TType.STRING, 3)
  3873. oprot.writeString(self.column)
  3874. oprot.writeFieldEnd()
  3875. if self.attributes is not None:
  3876. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  3877. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  3878. for kiter60,viter61 in self.attributes.items():
  3879. oprot.writeString(kiter60)
  3880. oprot.writeString(viter61)
  3881. oprot.writeMapEnd()
  3882. oprot.writeFieldEnd()
  3883. oprot.writeFieldStop()
  3884. oprot.writeStructEnd()
  3885. def validate(self):
  3886. return
  3887. def __repr__(self):
  3888. L = ['%s=%r' % (key, value)
  3889. for key, value in self.__dict__.iteritems()]
  3890. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3891. def __eq__(self, other):
  3892. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3893. def __ne__(self, other):
  3894. return not (self == other)
  3895. class get_result:
  3896. """
  3897. Attributes:
  3898. - success
  3899. - io
  3900. """
  3901. thrift_spec = (
  3902. (0, TType.LIST, 'success', (TType.STRUCT,(TCell, TCell.thrift_spec)), None, ), # 0
  3903. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3904. )
  3905. def __init__(self, success=None, io=None,):
  3906. self.success = success
  3907. self.io = io
  3908. def read(self, iprot):
  3909. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3910. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3911. return
  3912. iprot.readStructBegin()
  3913. while True:
  3914. (fname, ftype, fid) = iprot.readFieldBegin()
  3915. if ftype == TType.STOP:
  3916. break
  3917. if fid == 0:
  3918. if ftype == TType.LIST:
  3919. self.success = []
  3920. (_etype65, _size62) = iprot.readListBegin()
  3921. for _i66 in xrange(_size62):
  3922. _elem67 = TCell()
  3923. _elem67.read(iprot)
  3924. self.success.append(_elem67)
  3925. iprot.readListEnd()
  3926. else:
  3927. iprot.skip(ftype)
  3928. elif fid == 1:
  3929. if ftype == TType.STRUCT:
  3930. self.io = IOError()
  3931. self.io.read(iprot)
  3932. else:
  3933. iprot.skip(ftype)
  3934. else:
  3935. iprot.skip(ftype)
  3936. iprot.readFieldEnd()
  3937. iprot.readStructEnd()
  3938. def write(self, oprot):
  3939. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3940. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3941. return
  3942. oprot.writeStructBegin('get_result')
  3943. if self.success is not None:
  3944. oprot.writeFieldBegin('success', TType.LIST, 0)
  3945. oprot.writeListBegin(TType.STRUCT, len(self.success))
  3946. for iter68 in self.success:
  3947. iter68.write(oprot)
  3948. oprot.writeListEnd()
  3949. oprot.writeFieldEnd()
  3950. if self.io is not None:
  3951. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3952. self.io.write(oprot)
  3953. oprot.writeFieldEnd()
  3954. oprot.writeFieldStop()
  3955. oprot.writeStructEnd()
  3956. def validate(self):
  3957. return
  3958. def __repr__(self):
  3959. L = ['%s=%r' % (key, value)
  3960. for key, value in self.__dict__.iteritems()]
  3961. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3962. def __eq__(self, other):
  3963. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3964. def __ne__(self, other):
  3965. return not (self == other)
  3966. class getVer_args:
  3967. """
  3968. Attributes:
  3969. - tableName: name of table
  3970. - row: row key
  3971. - column: column name
  3972. - numVersions: number of versions to retrieve
  3973. - attributes: Get attributes
  3974. """
  3975. thrift_spec = (
  3976. None, # 0
  3977. (1, TType.STRING, 'tableName', None, None, ), # 1
  3978. (2, TType.STRING, 'row', None, None, ), # 2
  3979. (3, TType.STRING, 'column', None, None, ), # 3
  3980. (4, TType.I32, 'numVersions', None, None, ), # 4
  3981. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  3982. )
  3983. def __init__(self, tableName=None, row=None, column=None, numVersions=None, attributes=None,):
  3984. self.tableName = tableName
  3985. self.row = row
  3986. self.column = column
  3987. self.numVersions = numVersions
  3988. self.attributes = attributes
  3989. def read(self, iprot):
  3990. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3991. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3992. return
  3993. iprot.readStructBegin()
  3994. while True:
  3995. (fname, ftype, fid) = iprot.readFieldBegin()
  3996. if ftype == TType.STOP:
  3997. break
  3998. if fid == 1:
  3999. if ftype == TType.STRING:
  4000. self.tableName = iprot.readString();
  4001. else:
  4002. iprot.skip(ftype)
  4003. elif fid == 2:
  4004. if ftype == TType.STRING:
  4005. self.row = iprot.readString();
  4006. else:
  4007. iprot.skip(ftype)
  4008. elif fid == 3:
  4009. if ftype == TType.STRING:
  4010. self.column = iprot.readString();
  4011. else:
  4012. iprot.skip(ftype)
  4013. elif fid == 4:
  4014. if ftype == TType.I32:
  4015. self.numVersions = iprot.readI32();
  4016. else:
  4017. iprot.skip(ftype)
  4018. elif fid == 5:
  4019. if ftype == TType.MAP:
  4020. self.attributes = {}
  4021. (_ktype70, _vtype71, _size69 ) = iprot.readMapBegin()
  4022. for _i73 in xrange(_size69):
  4023. _key74 = iprot.readString();
  4024. _val75 = iprot.readString();
  4025. self.attributes[_key74] = _val75
  4026. iprot.readMapEnd()
  4027. else:
  4028. iprot.skip(ftype)
  4029. else:
  4030. iprot.skip(ftype)
  4031. iprot.readFieldEnd()
  4032. iprot.readStructEnd()
  4033. def write(self, oprot):
  4034. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4035. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4036. return
  4037. oprot.writeStructBegin('getVer_args')
  4038. if self.tableName is not None:
  4039. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  4040. oprot.writeString(self.tableName)
  4041. oprot.writeFieldEnd()
  4042. if self.row is not None:
  4043. oprot.writeFieldBegin('row', TType.STRING, 2)
  4044. oprot.writeString(self.row)
  4045. oprot.writeFieldEnd()
  4046. if self.column is not None:
  4047. oprot.writeFieldBegin('column', TType.STRING, 3)
  4048. oprot.writeString(self.column)
  4049. oprot.writeFieldEnd()
  4050. if self.numVersions is not None:
  4051. oprot.writeFieldBegin('numVersions', TType.I32, 4)
  4052. oprot.writeI32(self.numVersions)
  4053. oprot.writeFieldEnd()
  4054. if self.attributes is not None:
  4055. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  4056. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  4057. for kiter76,viter77 in self.attributes.items():
  4058. oprot.writeString(kiter76)
  4059. oprot.writeString(viter77)
  4060. oprot.writeMapEnd()
  4061. oprot.writeFieldEnd()
  4062. oprot.writeFieldStop()
  4063. oprot.writeStructEnd()
  4064. def validate(self):
  4065. return
  4066. def __repr__(self):
  4067. L = ['%s=%r' % (key, value)
  4068. for key, value in self.__dict__.iteritems()]
  4069. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4070. def __eq__(self, other):
  4071. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4072. def __ne__(self, other):
  4073. return not (self == other)
  4074. class getVer_result:
  4075. """
  4076. Attributes:
  4077. - success
  4078. - io
  4079. """
  4080. thrift_spec = (
  4081. (0, TType.LIST, 'success', (TType.STRUCT,(TCell, TCell.thrift_spec)), None, ), # 0
  4082. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  4083. )
  4084. def __init__(self, success=None, io=None,):
  4085. self.success = success
  4086. self.io = io
  4087. def read(self, iprot):
  4088. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4089. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4090. return
  4091. iprot.readStructBegin()
  4092. while True:
  4093. (fname, ftype, fid) = iprot.readFieldBegin()
  4094. if ftype == TType.STOP:
  4095. break
  4096. if fid == 0:
  4097. if ftype == TType.LIST:
  4098. self.success = []
  4099. (_etype81, _size78) = iprot.readListBegin()
  4100. for _i82 in xrange(_size78):
  4101. _elem83 = TCell()
  4102. _elem83.read(iprot)
  4103. self.success.append(_elem83)
  4104. iprot.readListEnd()
  4105. else:
  4106. iprot.skip(ftype)
  4107. elif fid == 1:
  4108. if ftype == TType.STRUCT:
  4109. self.io = IOError()
  4110. self.io.read(iprot)
  4111. else:
  4112. iprot.skip(ftype)
  4113. else:
  4114. iprot.skip(ftype)
  4115. iprot.readFieldEnd()
  4116. iprot.readStructEnd()
  4117. def write(self, oprot):
  4118. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4119. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4120. return
  4121. oprot.writeStructBegin('getVer_result')
  4122. if self.success is not None:
  4123. oprot.writeFieldBegin('success', TType.LIST, 0)
  4124. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4125. for iter84 in self.success:
  4126. iter84.write(oprot)
  4127. oprot.writeListEnd()
  4128. oprot.writeFieldEnd()
  4129. if self.io is not None:
  4130. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  4131. self.io.write(oprot)
  4132. oprot.writeFieldEnd()
  4133. oprot.writeFieldStop()
  4134. oprot.writeStructEnd()
  4135. def validate(self):
  4136. return
  4137. def __repr__(self):
  4138. L = ['%s=%r' % (key, value)
  4139. for key, value in self.__dict__.iteritems()]
  4140. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4141. def __eq__(self, other):
  4142. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4143. def __ne__(self, other):
  4144. return not (self == other)
  4145. class getVerTs_args:
  4146. """
  4147. Attributes:
  4148. - tableName: name of table
  4149. - row: row key
  4150. - column: column name
  4151. - timestamp: timestamp
  4152. - numVersions: number of versions to retrieve
  4153. - attributes: Get attributes
  4154. """
  4155. thrift_spec = (
  4156. None, # 0
  4157. (1, TType.STRING, 'tableName', None, None, ), # 1
  4158. (2, TType.STRING, 'row', None, None, ), # 2
  4159. (3, TType.STRING, 'column', None, None, ), # 3
  4160. (4, TType.I64, 'timestamp', None, None, ), # 4
  4161. (5, TType.I32, 'numVersions', None, None, ), # 5
  4162. (6, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 6
  4163. )
  4164. def __init__(self, tableName=None, row=None, column=None, timestamp=None, numVersions=None, attributes=None,):
  4165. self.tableName = tableName
  4166. self.row = row
  4167. self.column = column
  4168. self.timestamp = timestamp
  4169. self.numVersions = numVersions
  4170. self.attributes = attributes
  4171. def read(self, iprot):
  4172. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4173. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4174. return
  4175. iprot.readStructBegin()
  4176. while True:
  4177. (fname, ftype, fid) = iprot.readFieldBegin()
  4178. if ftype == TType.STOP:
  4179. break
  4180. if fid == 1:
  4181. if ftype == TType.STRING:
  4182. self.tableName = iprot.readString();
  4183. else:
  4184. iprot.skip(ftype)
  4185. elif fid == 2:
  4186. if ftype == TType.STRING:
  4187. self.row = iprot.readString();
  4188. else:
  4189. iprot.skip(ftype)
  4190. elif fid == 3:
  4191. if ftype == TType.STRING:
  4192. self.column = iprot.readString();
  4193. else:
  4194. iprot.skip(ftype)
  4195. elif fid == 4:
  4196. if ftype == TType.I64:
  4197. self.timestamp = iprot.readI64();
  4198. else:
  4199. iprot.skip(ftype)
  4200. elif fid == 5:
  4201. if ftype == TType.I32:
  4202. self.numVersions = iprot.readI32();
  4203. else:
  4204. iprot.skip(ftype)
  4205. elif fid == 6:
  4206. if ftype == TType.MAP:
  4207. self.attributes = {}
  4208. (_ktype86, _vtype87, _size85 ) = iprot.readMapBegin()
  4209. for _i89 in xrange(_size85):
  4210. _key90 = iprot.readString();
  4211. _val91 = iprot.readString();
  4212. self.attributes[_key90] = _val91
  4213. iprot.readMapEnd()
  4214. else:
  4215. iprot.skip(ftype)
  4216. else:
  4217. iprot.skip(ftype)
  4218. iprot.readFieldEnd()
  4219. iprot.readStructEnd()
  4220. def write(self, oprot):
  4221. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4222. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4223. return
  4224. oprot.writeStructBegin('getVerTs_args')
  4225. if self.tableName is not None:
  4226. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  4227. oprot.writeString(self.tableName)
  4228. oprot.writeFieldEnd()
  4229. if self.row is not None:
  4230. oprot.writeFieldBegin('row', TType.STRING, 2)
  4231. oprot.writeString(self.row)
  4232. oprot.writeFieldEnd()
  4233. if self.column is not None:
  4234. oprot.writeFieldBegin('column', TType.STRING, 3)
  4235. oprot.writeString(self.column)
  4236. oprot.writeFieldEnd()
  4237. if self.timestamp is not None:
  4238. oprot.writeFieldBegin('timestamp', TType.I64, 4)
  4239. oprot.writeI64(self.timestamp)
  4240. oprot.writeFieldEnd()
  4241. if self.numVersions is not None:
  4242. oprot.writeFieldBegin('numVersions', TType.I32, 5)
  4243. oprot.writeI32(self.numVersions)
  4244. oprot.writeFieldEnd()
  4245. if self.attributes is not None:
  4246. oprot.writeFieldBegin('attributes', TType.MAP, 6)
  4247. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  4248. for kiter92,viter93 in self.attributes.items():
  4249. oprot.writeString(kiter92)
  4250. oprot.writeString(viter93)
  4251. oprot.writeMapEnd()
  4252. oprot.writeFieldEnd()
  4253. oprot.writeFieldStop()
  4254. oprot.writeStructEnd()
  4255. def validate(self):
  4256. return
  4257. def __repr__(self):
  4258. L = ['%s=%r' % (key, value)
  4259. for key, value in self.__dict__.iteritems()]
  4260. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4261. def __eq__(self, other):
  4262. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4263. def __ne__(self, other):
  4264. return not (self == other)
  4265. class getVerTs_result:
  4266. """
  4267. Attributes:
  4268. - success
  4269. - io
  4270. """
  4271. thrift_spec = (
  4272. (0, TType.LIST, 'success', (TType.STRUCT,(TCell, TCell.thrift_spec)), None, ), # 0
  4273. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  4274. )
  4275. def __init__(self, success=None, io=None,):
  4276. self.success = success
  4277. self.io = io
  4278. def read(self, iprot):
  4279. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4280. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4281. return
  4282. iprot.readStructBegin()
  4283. while True:
  4284. (fname, ftype, fid) = iprot.readFieldBegin()
  4285. if ftype == TType.STOP:
  4286. break
  4287. if fid == 0:
  4288. if ftype == TType.LIST:
  4289. self.success = []
  4290. (_etype97, _size94) = iprot.readListBegin()
  4291. for _i98 in xrange(_size94):
  4292. _elem99 = TCell()
  4293. _elem99.read(iprot)
  4294. self.success.append(_elem99)
  4295. iprot.readListEnd()
  4296. else:
  4297. iprot.skip(ftype)
  4298. elif fid == 1:
  4299. if ftype == TType.STRUCT:
  4300. self.io = IOError()
  4301. self.io.read(iprot)
  4302. else:
  4303. iprot.skip(ftype)
  4304. else:
  4305. iprot.skip(ftype)
  4306. iprot.readFieldEnd()
  4307. iprot.readStructEnd()
  4308. def write(self, oprot):
  4309. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4310. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4311. return
  4312. oprot.writeStructBegin('getVerTs_result')
  4313. if self.success is not None:
  4314. oprot.writeFieldBegin('success', TType.LIST, 0)
  4315. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4316. for iter100 in self.success:
  4317. iter100.write(oprot)
  4318. oprot.writeListEnd()
  4319. oprot.writeFieldEnd()
  4320. if self.io is not None:
  4321. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  4322. self.io.write(oprot)
  4323. oprot.writeFieldEnd()
  4324. oprot.writeFieldStop()
  4325. oprot.writeStructEnd()
  4326. def validate(self):
  4327. return
  4328. def __repr__(self):
  4329. L = ['%s=%r' % (key, value)
  4330. for key, value in self.__dict__.iteritems()]
  4331. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4332. def __eq__(self, other):
  4333. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4334. def __ne__(self, other):
  4335. return not (self == other)
  4336. class getRow_args:
  4337. """
  4338. Attributes:
  4339. - tableName: name of table
  4340. - row: row key
  4341. - attributes: Get attributes
  4342. """
  4343. thrift_spec = (
  4344. None, # 0
  4345. (1, TType.STRING, 'tableName', None, None, ), # 1
  4346. (2, TType.STRING, 'row', None, None, ), # 2
  4347. (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
  4348. )
  4349. def __init__(self, tableName=None, row=None, attributes=None,):
  4350. self.tableName = tableName
  4351. self.row = row
  4352. self.attributes = attributes
  4353. def read(self, iprot):
  4354. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4355. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4356. return
  4357. iprot.readStructBegin()
  4358. while True:
  4359. (fname, ftype, fid) = iprot.readFieldBegin()
  4360. if ftype == TType.STOP:
  4361. break
  4362. if fid == 1:
  4363. if ftype == TType.STRING:
  4364. self.tableName = iprot.readString();
  4365. else:
  4366. iprot.skip(ftype)
  4367. elif fid == 2:
  4368. if ftype == TType.STRING:
  4369. self.row = iprot.readString();
  4370. else:
  4371. iprot.skip(ftype)
  4372. elif fid == 3:
  4373. if ftype == TType.MAP:
  4374. self.attributes = {}
  4375. (_ktype102, _vtype103, _size101 ) = iprot.readMapBegin()
  4376. for _i105 in xrange(_size101):
  4377. _key106 = iprot.readString();
  4378. _val107 = iprot.readString();
  4379. self.attributes[_key106] = _val107
  4380. iprot.readMapEnd()
  4381. else:
  4382. iprot.skip(ftype)
  4383. else:
  4384. iprot.skip(ftype)
  4385. iprot.readFieldEnd()
  4386. iprot.readStructEnd()
  4387. def write(self, oprot):
  4388. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4389. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4390. return
  4391. oprot.writeStructBegin('getRow_args')
  4392. if self.tableName is not None:
  4393. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  4394. oprot.writeString(self.tableName)
  4395. oprot.writeFieldEnd()
  4396. if self.row is not None:
  4397. oprot.writeFieldBegin('row', TType.STRING, 2)
  4398. oprot.writeString(self.row)
  4399. oprot.writeFieldEnd()
  4400. if self.attributes is not None:
  4401. oprot.writeFieldBegin('attributes', TType.MAP, 3)
  4402. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  4403. for kiter108,viter109 in self.attributes.items():
  4404. oprot.writeString(kiter108)
  4405. oprot.writeString(viter109)
  4406. oprot.writeMapEnd()
  4407. oprot.writeFieldEnd()
  4408. oprot.writeFieldStop()
  4409. oprot.writeStructEnd()
  4410. def validate(self):
  4411. return
  4412. def __repr__(self):
  4413. L = ['%s=%r' % (key, value)
  4414. for key, value in self.__dict__.iteritems()]
  4415. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4416. def __eq__(self, other):
  4417. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4418. def __ne__(self, other):
  4419. return not (self == other)
  4420. class getRow_result:
  4421. """
  4422. Attributes:
  4423. - success
  4424. - io
  4425. """
  4426. thrift_spec = (
  4427. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  4428. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  4429. )
  4430. def __init__(self, success=None, io=None,):
  4431. self.success = success
  4432. self.io = io
  4433. def read(self, iprot):
  4434. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4435. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4436. return
  4437. iprot.readStructBegin()
  4438. while True:
  4439. (fname, ftype, fid) = iprot.readFieldBegin()
  4440. if ftype == TType.STOP:
  4441. break
  4442. if fid == 0:
  4443. if ftype == TType.LIST:
  4444. self.success = []
  4445. (_etype113, _size110) = iprot.readListBegin()
  4446. for _i114 in xrange(_size110):
  4447. _elem115 = TRowResult()
  4448. _elem115.read(iprot)
  4449. self.success.append(_elem115)
  4450. iprot.readListEnd()
  4451. else:
  4452. iprot.skip(ftype)
  4453. elif fid == 1:
  4454. if ftype == TType.STRUCT:
  4455. self.io = IOError()
  4456. self.io.read(iprot)
  4457. else:
  4458. iprot.skip(ftype)
  4459. else:
  4460. iprot.skip(ftype)
  4461. iprot.readFieldEnd()
  4462. iprot.readStructEnd()
  4463. def write(self, oprot):
  4464. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4465. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4466. return
  4467. oprot.writeStructBegin('getRow_result')
  4468. if self.success is not None:
  4469. oprot.writeFieldBegin('success', TType.LIST, 0)
  4470. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4471. for iter116 in self.success:
  4472. iter116.write(oprot)
  4473. oprot.writeListEnd()
  4474. oprot.writeFieldEnd()
  4475. if self.io is not None:
  4476. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  4477. self.io.write(oprot)
  4478. oprot.writeFieldEnd()
  4479. oprot.writeFieldStop()
  4480. oprot.writeStructEnd()
  4481. def validate(self):
  4482. return
  4483. def __repr__(self):
  4484. L = ['%s=%r' % (key, value)
  4485. for key, value in self.__dict__.iteritems()]
  4486. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4487. def __eq__(self, other):
  4488. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4489. def __ne__(self, other):
  4490. return not (self == other)
  4491. class getRowWithColumns_args:
  4492. """
  4493. Attributes:
  4494. - tableName: name of table
  4495. - row: row key
  4496. - columns: List of columns to return, null for all columns
  4497. - attributes: Get attributes
  4498. """
  4499. thrift_spec = (
  4500. None, # 0
  4501. (1, TType.STRING, 'tableName', None, None, ), # 1
  4502. (2, TType.STRING, 'row', None, None, ), # 2
  4503. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  4504. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  4505. )
  4506. def __init__(self, tableName=None, row=None, columns=None, attributes=None,):
  4507. self.tableName = tableName
  4508. self.row = row
  4509. self.columns = columns
  4510. self.attributes = attributes
  4511. def read(self, iprot):
  4512. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4513. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4514. return
  4515. iprot.readStructBegin()
  4516. while True:
  4517. (fname, ftype, fid) = iprot.readFieldBegin()
  4518. if ftype == TType.STOP:
  4519. break
  4520. if fid == 1:
  4521. if ftype == TType.STRING:
  4522. self.tableName = iprot.readString();
  4523. else:
  4524. iprot.skip(ftype)
  4525. elif fid == 2:
  4526. if ftype == TType.STRING:
  4527. self.row = iprot.readString();
  4528. else:
  4529. iprot.skip(ftype)
  4530. elif fid == 3:
  4531. if ftype == TType.LIST:
  4532. self.columns = []
  4533. (_etype120, _size117) = iprot.readListBegin()
  4534. for _i121 in xrange(_size117):
  4535. _elem122 = iprot.readString();
  4536. self.columns.append(_elem122)
  4537. iprot.readListEnd()
  4538. else:
  4539. iprot.skip(ftype)
  4540. elif fid == 4:
  4541. if ftype == TType.MAP:
  4542. self.attributes = {}
  4543. (_ktype124, _vtype125, _size123 ) = iprot.readMapBegin()
  4544. for _i127 in xrange(_size123):
  4545. _key128 = iprot.readString();
  4546. _val129 = iprot.readString();
  4547. self.attributes[_key128] = _val129
  4548. iprot.readMapEnd()
  4549. else:
  4550. iprot.skip(ftype)
  4551. else:
  4552. iprot.skip(ftype)
  4553. iprot.readFieldEnd()
  4554. iprot.readStructEnd()
  4555. def write(self, oprot):
  4556. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4557. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4558. return
  4559. oprot.writeStructBegin('getRowWithColumns_args')
  4560. if self.tableName is not None:
  4561. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  4562. oprot.writeString(self.tableName)
  4563. oprot.writeFieldEnd()
  4564. if self.row is not None:
  4565. oprot.writeFieldBegin('row', TType.STRING, 2)
  4566. oprot.writeString(self.row)
  4567. oprot.writeFieldEnd()
  4568. if self.columns is not None:
  4569. oprot.writeFieldBegin('columns', TType.LIST, 3)
  4570. oprot.writeListBegin(TType.STRING, len(self.columns))
  4571. for iter130 in self.columns:
  4572. oprot.writeString(iter130)
  4573. oprot.writeListEnd()
  4574. oprot.writeFieldEnd()
  4575. if self.attributes is not None:
  4576. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  4577. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  4578. for kiter131,viter132 in self.attributes.items():
  4579. oprot.writeString(kiter131)
  4580. oprot.writeString(viter132)
  4581. oprot.writeMapEnd()
  4582. oprot.writeFieldEnd()
  4583. oprot.writeFieldStop()
  4584. oprot.writeStructEnd()
  4585. def validate(self):
  4586. return
  4587. def __repr__(self):
  4588. L = ['%s=%r' % (key, value)
  4589. for key, value in self.__dict__.iteritems()]
  4590. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4591. def __eq__(self, other):
  4592. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4593. def __ne__(self, other):
  4594. return not (self == other)
  4595. class getRowWithColumns_result:
  4596. """
  4597. Attributes:
  4598. - success
  4599. - io
  4600. """
  4601. thrift_spec = (
  4602. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  4603. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  4604. )
  4605. def __init__(self, success=None, io=None,):
  4606. self.success = success
  4607. self.io = io
  4608. def read(self, iprot):
  4609. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4610. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4611. return
  4612. iprot.readStructBegin()
  4613. while True:
  4614. (fname, ftype, fid) = iprot.readFieldBegin()
  4615. if ftype == TType.STOP:
  4616. break
  4617. if fid == 0:
  4618. if ftype == TType.LIST:
  4619. self.success = []
  4620. (_etype136, _size133) = iprot.readListBegin()
  4621. for _i137 in xrange(_size133):
  4622. _elem138 = TRowResult()
  4623. _elem138.read(iprot)
  4624. self.success.append(_elem138)
  4625. iprot.readListEnd()
  4626. else:
  4627. iprot.skip(ftype)
  4628. elif fid == 1:
  4629. if ftype == TType.STRUCT:
  4630. self.io = IOError()
  4631. self.io.read(iprot)
  4632. else:
  4633. iprot.skip(ftype)
  4634. else:
  4635. iprot.skip(ftype)
  4636. iprot.readFieldEnd()
  4637. iprot.readStructEnd()
  4638. def write(self, oprot):
  4639. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4640. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4641. return
  4642. oprot.writeStructBegin('getRowWithColumns_result')
  4643. if self.success is not None:
  4644. oprot.writeFieldBegin('success', TType.LIST, 0)
  4645. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4646. for iter139 in self.success:
  4647. iter139.write(oprot)
  4648. oprot.writeListEnd()
  4649. oprot.writeFieldEnd()
  4650. if self.io is not None:
  4651. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  4652. self.io.write(oprot)
  4653. oprot.writeFieldEnd()
  4654. oprot.writeFieldStop()
  4655. oprot.writeStructEnd()
  4656. def validate(self):
  4657. return
  4658. def __repr__(self):
  4659. L = ['%s=%r' % (key, value)
  4660. for key, value in self.__dict__.iteritems()]
  4661. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4662. def __eq__(self, other):
  4663. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4664. def __ne__(self, other):
  4665. return not (self == other)
  4666. class getRowTs_args:
  4667. """
  4668. Attributes:
  4669. - tableName: name of the table
  4670. - row: row key
  4671. - timestamp: timestamp
  4672. - attributes: Get attributes
  4673. """
  4674. thrift_spec = (
  4675. None, # 0
  4676. (1, TType.STRING, 'tableName', None, None, ), # 1
  4677. (2, TType.STRING, 'row', None, None, ), # 2
  4678. (3, TType.I64, 'timestamp', None, None, ), # 3
  4679. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  4680. )
  4681. def __init__(self, tableName=None, row=None, timestamp=None, attributes=None,):
  4682. self.tableName = tableName
  4683. self.row = row
  4684. self.timestamp = timestamp
  4685. self.attributes = attributes
  4686. def read(self, iprot):
  4687. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4688. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4689. return
  4690. iprot.readStructBegin()
  4691. while True:
  4692. (fname, ftype, fid) = iprot.readFieldBegin()
  4693. if ftype == TType.STOP:
  4694. break
  4695. if fid == 1:
  4696. if ftype == TType.STRING:
  4697. self.tableName = iprot.readString();
  4698. else:
  4699. iprot.skip(ftype)
  4700. elif fid == 2:
  4701. if ftype == TType.STRING:
  4702. self.row = iprot.readString();
  4703. else:
  4704. iprot.skip(ftype)
  4705. elif fid == 3:
  4706. if ftype == TType.I64:
  4707. self.timestamp = iprot.readI64();
  4708. else:
  4709. iprot.skip(ftype)
  4710. elif fid == 4:
  4711. if ftype == TType.MAP:
  4712. self.attributes = {}
  4713. (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin()
  4714. for _i144 in xrange(_size140):
  4715. _key145 = iprot.readString();
  4716. _val146 = iprot.readString();
  4717. self.attributes[_key145] = _val146
  4718. iprot.readMapEnd()
  4719. else:
  4720. iprot.skip(ftype)
  4721. else:
  4722. iprot.skip(ftype)
  4723. iprot.readFieldEnd()
  4724. iprot.readStructEnd()
  4725. def write(self, oprot):
  4726. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4727. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4728. return
  4729. oprot.writeStructBegin('getRowTs_args')
  4730. if self.tableName is not None:
  4731. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  4732. oprot.writeString(self.tableName)
  4733. oprot.writeFieldEnd()
  4734. if self.row is not None:
  4735. oprot.writeFieldBegin('row', TType.STRING, 2)
  4736. oprot.writeString(self.row)
  4737. oprot.writeFieldEnd()
  4738. if self.timestamp is not None:
  4739. oprot.writeFieldBegin('timestamp', TType.I64, 3)
  4740. oprot.writeI64(self.timestamp)
  4741. oprot.writeFieldEnd()
  4742. if self.attributes is not None:
  4743. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  4744. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  4745. for kiter147,viter148 in self.attributes.items():
  4746. oprot.writeString(kiter147)
  4747. oprot.writeString(viter148)
  4748. oprot.writeMapEnd()
  4749. oprot.writeFieldEnd()
  4750. oprot.writeFieldStop()
  4751. oprot.writeStructEnd()
  4752. def validate(self):
  4753. return
  4754. def __repr__(self):
  4755. L = ['%s=%r' % (key, value)
  4756. for key, value in self.__dict__.iteritems()]
  4757. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4758. def __eq__(self, other):
  4759. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4760. def __ne__(self, other):
  4761. return not (self == other)
  4762. class getRowTs_result:
  4763. """
  4764. Attributes:
  4765. - success
  4766. - io
  4767. """
  4768. thrift_spec = (
  4769. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  4770. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  4771. )
  4772. def __init__(self, success=None, io=None,):
  4773. self.success = success
  4774. self.io = io
  4775. def read(self, iprot):
  4776. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4777. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4778. return
  4779. iprot.readStructBegin()
  4780. while True:
  4781. (fname, ftype, fid) = iprot.readFieldBegin()
  4782. if ftype == TType.STOP:
  4783. break
  4784. if fid == 0:
  4785. if ftype == TType.LIST:
  4786. self.success = []
  4787. (_etype152, _size149) = iprot.readListBegin()
  4788. for _i153 in xrange(_size149):
  4789. _elem154 = TRowResult()
  4790. _elem154.read(iprot)
  4791. self.success.append(_elem154)
  4792. iprot.readListEnd()
  4793. else:
  4794. iprot.skip(ftype)
  4795. elif fid == 1:
  4796. if ftype == TType.STRUCT:
  4797. self.io = IOError()
  4798. self.io.read(iprot)
  4799. else:
  4800. iprot.skip(ftype)
  4801. else:
  4802. iprot.skip(ftype)
  4803. iprot.readFieldEnd()
  4804. iprot.readStructEnd()
  4805. def write(self, oprot):
  4806. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4807. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4808. return
  4809. oprot.writeStructBegin('getRowTs_result')
  4810. if self.success is not None:
  4811. oprot.writeFieldBegin('success', TType.LIST, 0)
  4812. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4813. for iter155 in self.success:
  4814. iter155.write(oprot)
  4815. oprot.writeListEnd()
  4816. oprot.writeFieldEnd()
  4817. if self.io is not None:
  4818. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  4819. self.io.write(oprot)
  4820. oprot.writeFieldEnd()
  4821. oprot.writeFieldStop()
  4822. oprot.writeStructEnd()
  4823. def validate(self):
  4824. return
  4825. def __repr__(self):
  4826. L = ['%s=%r' % (key, value)
  4827. for key, value in self.__dict__.iteritems()]
  4828. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4829. def __eq__(self, other):
  4830. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4831. def __ne__(self, other):
  4832. return not (self == other)
  4833. class getRowWithColumnsTs_args:
  4834. """
  4835. Attributes:
  4836. - tableName: name of table
  4837. - row: row key
  4838. - columns: List of columns to return, null for all columns
  4839. - timestamp
  4840. - attributes: Get attributes
  4841. """
  4842. thrift_spec = (
  4843. None, # 0
  4844. (1, TType.STRING, 'tableName', None, None, ), # 1
  4845. (2, TType.STRING, 'row', None, None, ), # 2
  4846. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  4847. (4, TType.I64, 'timestamp', None, None, ), # 4
  4848. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  4849. )
  4850. def __init__(self, tableName=None, row=None, columns=None, timestamp=None, attributes=None,):
  4851. self.tableName = tableName
  4852. self.row = row
  4853. self.columns = columns
  4854. self.timestamp = timestamp
  4855. self.attributes = attributes
  4856. def read(self, iprot):
  4857. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4858. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4859. return
  4860. iprot.readStructBegin()
  4861. while True:
  4862. (fname, ftype, fid) = iprot.readFieldBegin()
  4863. if ftype == TType.STOP:
  4864. break
  4865. if fid == 1:
  4866. if ftype == TType.STRING:
  4867. self.tableName = iprot.readString();
  4868. else:
  4869. iprot.skip(ftype)
  4870. elif fid == 2:
  4871. if ftype == TType.STRING:
  4872. self.row = iprot.readString();
  4873. else:
  4874. iprot.skip(ftype)
  4875. elif fid == 3:
  4876. if ftype == TType.LIST:
  4877. self.columns = []
  4878. (_etype159, _size156) = iprot.readListBegin()
  4879. for _i160 in xrange(_size156):
  4880. _elem161 = iprot.readString();
  4881. self.columns.append(_elem161)
  4882. iprot.readListEnd()
  4883. else:
  4884. iprot.skip(ftype)
  4885. elif fid == 4:
  4886. if ftype == TType.I64:
  4887. self.timestamp = iprot.readI64();
  4888. else:
  4889. iprot.skip(ftype)
  4890. elif fid == 5:
  4891. if ftype == TType.MAP:
  4892. self.attributes = {}
  4893. (_ktype163, _vtype164, _size162 ) = iprot.readMapBegin()
  4894. for _i166 in xrange(_size162):
  4895. _key167 = iprot.readString();
  4896. _val168 = iprot.readString();
  4897. self.attributes[_key167] = _val168
  4898. iprot.readMapEnd()
  4899. else:
  4900. iprot.skip(ftype)
  4901. else:
  4902. iprot.skip(ftype)
  4903. iprot.readFieldEnd()
  4904. iprot.readStructEnd()
  4905. def write(self, oprot):
  4906. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4907. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4908. return
  4909. oprot.writeStructBegin('getRowWithColumnsTs_args')
  4910. if self.tableName is not None:
  4911. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  4912. oprot.writeString(self.tableName)
  4913. oprot.writeFieldEnd()
  4914. if self.row is not None:
  4915. oprot.writeFieldBegin('row', TType.STRING, 2)
  4916. oprot.writeString(self.row)
  4917. oprot.writeFieldEnd()
  4918. if self.columns is not None:
  4919. oprot.writeFieldBegin('columns', TType.LIST, 3)
  4920. oprot.writeListBegin(TType.STRING, len(self.columns))
  4921. for iter169 in self.columns:
  4922. oprot.writeString(iter169)
  4923. oprot.writeListEnd()
  4924. oprot.writeFieldEnd()
  4925. if self.timestamp is not None:
  4926. oprot.writeFieldBegin('timestamp', TType.I64, 4)
  4927. oprot.writeI64(self.timestamp)
  4928. oprot.writeFieldEnd()
  4929. if self.attributes is not None:
  4930. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  4931. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  4932. for kiter170,viter171 in self.attributes.items():
  4933. oprot.writeString(kiter170)
  4934. oprot.writeString(viter171)
  4935. oprot.writeMapEnd()
  4936. oprot.writeFieldEnd()
  4937. oprot.writeFieldStop()
  4938. oprot.writeStructEnd()
  4939. def validate(self):
  4940. return
  4941. def __repr__(self):
  4942. L = ['%s=%r' % (key, value)
  4943. for key, value in self.__dict__.iteritems()]
  4944. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4945. def __eq__(self, other):
  4946. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4947. def __ne__(self, other):
  4948. return not (self == other)
  4949. class getRowWithColumnsTs_result:
  4950. """
  4951. Attributes:
  4952. - success
  4953. - io
  4954. """
  4955. thrift_spec = (
  4956. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  4957. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  4958. )
  4959. def __init__(self, success=None, io=None,):
  4960. self.success = success
  4961. self.io = io
  4962. def read(self, iprot):
  4963. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4964. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4965. return
  4966. iprot.readStructBegin()
  4967. while True:
  4968. (fname, ftype, fid) = iprot.readFieldBegin()
  4969. if ftype == TType.STOP:
  4970. break
  4971. if fid == 0:
  4972. if ftype == TType.LIST:
  4973. self.success = []
  4974. (_etype175, _size172) = iprot.readListBegin()
  4975. for _i176 in xrange(_size172):
  4976. _elem177 = TRowResult()
  4977. _elem177.read(iprot)
  4978. self.success.append(_elem177)
  4979. iprot.readListEnd()
  4980. else:
  4981. iprot.skip(ftype)
  4982. elif fid == 1:
  4983. if ftype == TType.STRUCT:
  4984. self.io = IOError()
  4985. self.io.read(iprot)
  4986. else:
  4987. iprot.skip(ftype)
  4988. else:
  4989. iprot.skip(ftype)
  4990. iprot.readFieldEnd()
  4991. iprot.readStructEnd()
  4992. def write(self, oprot):
  4993. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4994. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4995. return
  4996. oprot.writeStructBegin('getRowWithColumnsTs_result')
  4997. if self.success is not None:
  4998. oprot.writeFieldBegin('success', TType.LIST, 0)
  4999. oprot.writeListBegin(TType.STRUCT, len(self.success))
  5000. for iter178 in self.success:
  5001. iter178.write(oprot)
  5002. oprot.writeListEnd()
  5003. oprot.writeFieldEnd()
  5004. if self.io is not None:
  5005. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  5006. self.io.write(oprot)
  5007. oprot.writeFieldEnd()
  5008. oprot.writeFieldStop()
  5009. oprot.writeStructEnd()
  5010. def validate(self):
  5011. return
  5012. def __repr__(self):
  5013. L = ['%s=%r' % (key, value)
  5014. for key, value in self.__dict__.iteritems()]
  5015. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5016. def __eq__(self, other):
  5017. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5018. def __ne__(self, other):
  5019. return not (self == other)
  5020. class getRows_args:
  5021. """
  5022. Attributes:
  5023. - tableName: name of table
  5024. - rows: row keys
  5025. - attributes: Get attributes
  5026. """
  5027. thrift_spec = (
  5028. None, # 0
  5029. (1, TType.STRING, 'tableName', None, None, ), # 1
  5030. (2, TType.LIST, 'rows', (TType.STRING,None), None, ), # 2
  5031. (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
  5032. )
  5033. def __init__(self, tableName=None, rows=None, attributes=None,):
  5034. self.tableName = tableName
  5035. self.rows = rows
  5036. self.attributes = attributes
  5037. def read(self, iprot):
  5038. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5039. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5040. return
  5041. iprot.readStructBegin()
  5042. while True:
  5043. (fname, ftype, fid) = iprot.readFieldBegin()
  5044. if ftype == TType.STOP:
  5045. break
  5046. if fid == 1:
  5047. if ftype == TType.STRING:
  5048. self.tableName = iprot.readString();
  5049. else:
  5050. iprot.skip(ftype)
  5051. elif fid == 2:
  5052. if ftype == TType.LIST:
  5053. self.rows = []
  5054. (_etype182, _size179) = iprot.readListBegin()
  5055. for _i183 in xrange(_size179):
  5056. _elem184 = iprot.readString();
  5057. self.rows.append(_elem184)
  5058. iprot.readListEnd()
  5059. else:
  5060. iprot.skip(ftype)
  5061. elif fid == 3:
  5062. if ftype == TType.MAP:
  5063. self.attributes = {}
  5064. (_ktype186, _vtype187, _size185 ) = iprot.readMapBegin()
  5065. for _i189 in xrange(_size185):
  5066. _key190 = iprot.readString();
  5067. _val191 = iprot.readString();
  5068. self.attributes[_key190] = _val191
  5069. iprot.readMapEnd()
  5070. else:
  5071. iprot.skip(ftype)
  5072. else:
  5073. iprot.skip(ftype)
  5074. iprot.readFieldEnd()
  5075. iprot.readStructEnd()
  5076. def write(self, oprot):
  5077. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5078. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5079. return
  5080. oprot.writeStructBegin('getRows_args')
  5081. if self.tableName is not None:
  5082. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  5083. oprot.writeString(self.tableName)
  5084. oprot.writeFieldEnd()
  5085. if self.rows is not None:
  5086. oprot.writeFieldBegin('rows', TType.LIST, 2)
  5087. oprot.writeListBegin(TType.STRING, len(self.rows))
  5088. for iter192 in self.rows:
  5089. oprot.writeString(iter192)
  5090. oprot.writeListEnd()
  5091. oprot.writeFieldEnd()
  5092. if self.attributes is not None:
  5093. oprot.writeFieldBegin('attributes', TType.MAP, 3)
  5094. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  5095. for kiter193,viter194 in self.attributes.items():
  5096. oprot.writeString(kiter193)
  5097. oprot.writeString(viter194)
  5098. oprot.writeMapEnd()
  5099. oprot.writeFieldEnd()
  5100. oprot.writeFieldStop()
  5101. oprot.writeStructEnd()
  5102. def validate(self):
  5103. return
  5104. def __repr__(self):
  5105. L = ['%s=%r' % (key, value)
  5106. for key, value in self.__dict__.iteritems()]
  5107. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5108. def __eq__(self, other):
  5109. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5110. def __ne__(self, other):
  5111. return not (self == other)
  5112. class getRows_result:
  5113. """
  5114. Attributes:
  5115. - success
  5116. - io
  5117. """
  5118. thrift_spec = (
  5119. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  5120. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  5121. )
  5122. def __init__(self, success=None, io=None,):
  5123. self.success = success
  5124. self.io = io
  5125. def read(self, iprot):
  5126. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5127. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5128. return
  5129. iprot.readStructBegin()
  5130. while True:
  5131. (fname, ftype, fid) = iprot.readFieldBegin()
  5132. if ftype == TType.STOP:
  5133. break
  5134. if fid == 0:
  5135. if ftype == TType.LIST:
  5136. self.success = []
  5137. (_etype198, _size195) = iprot.readListBegin()
  5138. for _i199 in xrange(_size195):
  5139. _elem200 = TRowResult()
  5140. _elem200.read(iprot)
  5141. self.success.append(_elem200)
  5142. iprot.readListEnd()
  5143. else:
  5144. iprot.skip(ftype)
  5145. elif fid == 1:
  5146. if ftype == TType.STRUCT:
  5147. self.io = IOError()
  5148. self.io.read(iprot)
  5149. else:
  5150. iprot.skip(ftype)
  5151. else:
  5152. iprot.skip(ftype)
  5153. iprot.readFieldEnd()
  5154. iprot.readStructEnd()
  5155. def write(self, oprot):
  5156. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5157. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5158. return
  5159. oprot.writeStructBegin('getRows_result')
  5160. if self.success is not None:
  5161. oprot.writeFieldBegin('success', TType.LIST, 0)
  5162. oprot.writeListBegin(TType.STRUCT, len(self.success))
  5163. for iter201 in self.success:
  5164. iter201.write(oprot)
  5165. oprot.writeListEnd()
  5166. oprot.writeFieldEnd()
  5167. if self.io is not None:
  5168. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  5169. self.io.write(oprot)
  5170. oprot.writeFieldEnd()
  5171. oprot.writeFieldStop()
  5172. oprot.writeStructEnd()
  5173. def validate(self):
  5174. return
  5175. def __repr__(self):
  5176. L = ['%s=%r' % (key, value)
  5177. for key, value in self.__dict__.iteritems()]
  5178. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5179. def __eq__(self, other):
  5180. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5181. def __ne__(self, other):
  5182. return not (self == other)
  5183. class getRowsWithColumns_args:
  5184. """
  5185. Attributes:
  5186. - tableName: name of table
  5187. - rows: row keys
  5188. - columns: List of columns to return, null for all columns
  5189. - attributes: Get attributes
  5190. """
  5191. thrift_spec = (
  5192. None, # 0
  5193. (1, TType.STRING, 'tableName', None, None, ), # 1
  5194. (2, TType.LIST, 'rows', (TType.STRING,None), None, ), # 2
  5195. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  5196. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  5197. )
  5198. def __init__(self, tableName=None, rows=None, columns=None, attributes=None,):
  5199. self.tableName = tableName
  5200. self.rows = rows
  5201. self.columns = columns
  5202. self.attributes = attributes
  5203. def read(self, iprot):
  5204. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5205. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5206. return
  5207. iprot.readStructBegin()
  5208. while True:
  5209. (fname, ftype, fid) = iprot.readFieldBegin()
  5210. if ftype == TType.STOP:
  5211. break
  5212. if fid == 1:
  5213. if ftype == TType.STRING:
  5214. self.tableName = iprot.readString();
  5215. else:
  5216. iprot.skip(ftype)
  5217. elif fid == 2:
  5218. if ftype == TType.LIST:
  5219. self.rows = []
  5220. (_etype205, _size202) = iprot.readListBegin()
  5221. for _i206 in xrange(_size202):
  5222. _elem207 = iprot.readString();
  5223. self.rows.append(_elem207)
  5224. iprot.readListEnd()
  5225. else:
  5226. iprot.skip(ftype)
  5227. elif fid == 3:
  5228. if ftype == TType.LIST:
  5229. self.columns = []
  5230. (_etype211, _size208) = iprot.readListBegin()
  5231. for _i212 in xrange(_size208):
  5232. _elem213 = iprot.readString();
  5233. self.columns.append(_elem213)
  5234. iprot.readListEnd()
  5235. else:
  5236. iprot.skip(ftype)
  5237. elif fid == 4:
  5238. if ftype == TType.MAP:
  5239. self.attributes = {}
  5240. (_ktype215, _vtype216, _size214 ) = iprot.readMapBegin()
  5241. for _i218 in xrange(_size214):
  5242. _key219 = iprot.readString();
  5243. _val220 = iprot.readString();
  5244. self.attributes[_key219] = _val220
  5245. iprot.readMapEnd()
  5246. else:
  5247. iprot.skip(ftype)
  5248. else:
  5249. iprot.skip(ftype)
  5250. iprot.readFieldEnd()
  5251. iprot.readStructEnd()
  5252. def write(self, oprot):
  5253. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5254. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5255. return
  5256. oprot.writeStructBegin('getRowsWithColumns_args')
  5257. if self.tableName is not None:
  5258. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  5259. oprot.writeString(self.tableName)
  5260. oprot.writeFieldEnd()
  5261. if self.rows is not None:
  5262. oprot.writeFieldBegin('rows', TType.LIST, 2)
  5263. oprot.writeListBegin(TType.STRING, len(self.rows))
  5264. for iter221 in self.rows:
  5265. oprot.writeString(iter221)
  5266. oprot.writeListEnd()
  5267. oprot.writeFieldEnd()
  5268. if self.columns is not None:
  5269. oprot.writeFieldBegin('columns', TType.LIST, 3)
  5270. oprot.writeListBegin(TType.STRING, len(self.columns))
  5271. for iter222 in self.columns:
  5272. oprot.writeString(iter222)
  5273. oprot.writeListEnd()
  5274. oprot.writeFieldEnd()
  5275. if self.attributes is not None:
  5276. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  5277. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  5278. for kiter223,viter224 in self.attributes.items():
  5279. oprot.writeString(kiter223)
  5280. oprot.writeString(viter224)
  5281. oprot.writeMapEnd()
  5282. oprot.writeFieldEnd()
  5283. oprot.writeFieldStop()
  5284. oprot.writeStructEnd()
  5285. def validate(self):
  5286. return
  5287. def __repr__(self):
  5288. L = ['%s=%r' % (key, value)
  5289. for key, value in self.__dict__.iteritems()]
  5290. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5291. def __eq__(self, other):
  5292. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5293. def __ne__(self, other):
  5294. return not (self == other)
  5295. class getRowsWithColumns_result:
  5296. """
  5297. Attributes:
  5298. - success
  5299. - io
  5300. """
  5301. thrift_spec = (
  5302. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  5303. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  5304. )
  5305. def __init__(self, success=None, io=None,):
  5306. self.success = success
  5307. self.io = io
  5308. def read(self, iprot):
  5309. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5310. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5311. return
  5312. iprot.readStructBegin()
  5313. while True:
  5314. (fname, ftype, fid) = iprot.readFieldBegin()
  5315. if ftype == TType.STOP:
  5316. break
  5317. if fid == 0:
  5318. if ftype == TType.LIST:
  5319. self.success = []
  5320. (_etype228, _size225) = iprot.readListBegin()
  5321. for _i229 in xrange(_size225):
  5322. _elem230 = TRowResult()
  5323. _elem230.read(iprot)
  5324. self.success.append(_elem230)
  5325. iprot.readListEnd()
  5326. else:
  5327. iprot.skip(ftype)
  5328. elif fid == 1:
  5329. if ftype == TType.STRUCT:
  5330. self.io = IOError()
  5331. self.io.read(iprot)
  5332. else:
  5333. iprot.skip(ftype)
  5334. else:
  5335. iprot.skip(ftype)
  5336. iprot.readFieldEnd()
  5337. iprot.readStructEnd()
  5338. def write(self, oprot):
  5339. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5340. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5341. return
  5342. oprot.writeStructBegin('getRowsWithColumns_result')
  5343. if self.success is not None:
  5344. oprot.writeFieldBegin('success', TType.LIST, 0)
  5345. oprot.writeListBegin(TType.STRUCT, len(self.success))
  5346. for iter231 in self.success:
  5347. iter231.write(oprot)
  5348. oprot.writeListEnd()
  5349. oprot.writeFieldEnd()
  5350. if self.io is not None:
  5351. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  5352. self.io.write(oprot)
  5353. oprot.writeFieldEnd()
  5354. oprot.writeFieldStop()
  5355. oprot.writeStructEnd()
  5356. def validate(self):
  5357. return
  5358. def __repr__(self):
  5359. L = ['%s=%r' % (key, value)
  5360. for key, value in self.__dict__.iteritems()]
  5361. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5362. def __eq__(self, other):
  5363. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5364. def __ne__(self, other):
  5365. return not (self == other)
  5366. class getRowsTs_args:
  5367. """
  5368. Attributes:
  5369. - tableName: name of the table
  5370. - rows: row keys
  5371. - timestamp: timestamp
  5372. - attributes: Get attributes
  5373. """
  5374. thrift_spec = (
  5375. None, # 0
  5376. (1, TType.STRING, 'tableName', None, None, ), # 1
  5377. (2, TType.LIST, 'rows', (TType.STRING,None), None, ), # 2
  5378. (3, TType.I64, 'timestamp', None, None, ), # 3
  5379. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  5380. )
  5381. def __init__(self, tableName=None, rows=None, timestamp=None, attributes=None,):
  5382. self.tableName = tableName
  5383. self.rows = rows
  5384. self.timestamp = timestamp
  5385. self.attributes = attributes
  5386. def read(self, iprot):
  5387. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5388. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5389. return
  5390. iprot.readStructBegin()
  5391. while True:
  5392. (fname, ftype, fid) = iprot.readFieldBegin()
  5393. if ftype == TType.STOP:
  5394. break
  5395. if fid == 1:
  5396. if ftype == TType.STRING:
  5397. self.tableName = iprot.readString();
  5398. else:
  5399. iprot.skip(ftype)
  5400. elif fid == 2:
  5401. if ftype == TType.LIST:
  5402. self.rows = []
  5403. (_etype235, _size232) = iprot.readListBegin()
  5404. for _i236 in xrange(_size232):
  5405. _elem237 = iprot.readString();
  5406. self.rows.append(_elem237)
  5407. iprot.readListEnd()
  5408. else:
  5409. iprot.skip(ftype)
  5410. elif fid == 3:
  5411. if ftype == TType.I64:
  5412. self.timestamp = iprot.readI64();
  5413. else:
  5414. iprot.skip(ftype)
  5415. elif fid == 4:
  5416. if ftype == TType.MAP:
  5417. self.attributes = {}
  5418. (_ktype239, _vtype240, _size238 ) = iprot.readMapBegin()
  5419. for _i242 in xrange(_size238):
  5420. _key243 = iprot.readString();
  5421. _val244 = iprot.readString();
  5422. self.attributes[_key243] = _val244
  5423. iprot.readMapEnd()
  5424. else:
  5425. iprot.skip(ftype)
  5426. else:
  5427. iprot.skip(ftype)
  5428. iprot.readFieldEnd()
  5429. iprot.readStructEnd()
  5430. def write(self, oprot):
  5431. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5432. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5433. return
  5434. oprot.writeStructBegin('getRowsTs_args')
  5435. if self.tableName is not None:
  5436. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  5437. oprot.writeString(self.tableName)
  5438. oprot.writeFieldEnd()
  5439. if self.rows is not None:
  5440. oprot.writeFieldBegin('rows', TType.LIST, 2)
  5441. oprot.writeListBegin(TType.STRING, len(self.rows))
  5442. for iter245 in self.rows:
  5443. oprot.writeString(iter245)
  5444. oprot.writeListEnd()
  5445. oprot.writeFieldEnd()
  5446. if self.timestamp is not None:
  5447. oprot.writeFieldBegin('timestamp', TType.I64, 3)
  5448. oprot.writeI64(self.timestamp)
  5449. oprot.writeFieldEnd()
  5450. if self.attributes is not None:
  5451. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  5452. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  5453. for kiter246,viter247 in self.attributes.items():
  5454. oprot.writeString(kiter246)
  5455. oprot.writeString(viter247)
  5456. oprot.writeMapEnd()
  5457. oprot.writeFieldEnd()
  5458. oprot.writeFieldStop()
  5459. oprot.writeStructEnd()
  5460. def validate(self):
  5461. return
  5462. def __repr__(self):
  5463. L = ['%s=%r' % (key, value)
  5464. for key, value in self.__dict__.iteritems()]
  5465. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5466. def __eq__(self, other):
  5467. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5468. def __ne__(self, other):
  5469. return not (self == other)
  5470. class getRowsTs_result:
  5471. """
  5472. Attributes:
  5473. - success
  5474. - io
  5475. """
  5476. thrift_spec = (
  5477. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  5478. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  5479. )
  5480. def __init__(self, success=None, io=None,):
  5481. self.success = success
  5482. self.io = io
  5483. def read(self, iprot):
  5484. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5485. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5486. return
  5487. iprot.readStructBegin()
  5488. while True:
  5489. (fname, ftype, fid) = iprot.readFieldBegin()
  5490. if ftype == TType.STOP:
  5491. break
  5492. if fid == 0:
  5493. if ftype == TType.LIST:
  5494. self.success = []
  5495. (_etype251, _size248) = iprot.readListBegin()
  5496. for _i252 in xrange(_size248):
  5497. _elem253 = TRowResult()
  5498. _elem253.read(iprot)
  5499. self.success.append(_elem253)
  5500. iprot.readListEnd()
  5501. else:
  5502. iprot.skip(ftype)
  5503. elif fid == 1:
  5504. if ftype == TType.STRUCT:
  5505. self.io = IOError()
  5506. self.io.read(iprot)
  5507. else:
  5508. iprot.skip(ftype)
  5509. else:
  5510. iprot.skip(ftype)
  5511. iprot.readFieldEnd()
  5512. iprot.readStructEnd()
  5513. def write(self, oprot):
  5514. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5515. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5516. return
  5517. oprot.writeStructBegin('getRowsTs_result')
  5518. if self.success is not None:
  5519. oprot.writeFieldBegin('success', TType.LIST, 0)
  5520. oprot.writeListBegin(TType.STRUCT, len(self.success))
  5521. for iter254 in self.success:
  5522. iter254.write(oprot)
  5523. oprot.writeListEnd()
  5524. oprot.writeFieldEnd()
  5525. if self.io is not None:
  5526. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  5527. self.io.write(oprot)
  5528. oprot.writeFieldEnd()
  5529. oprot.writeFieldStop()
  5530. oprot.writeStructEnd()
  5531. def validate(self):
  5532. return
  5533. def __repr__(self):
  5534. L = ['%s=%r' % (key, value)
  5535. for key, value in self.__dict__.iteritems()]
  5536. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5537. def __eq__(self, other):
  5538. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5539. def __ne__(self, other):
  5540. return not (self == other)
  5541. class getRowsWithColumnsTs_args:
  5542. """
  5543. Attributes:
  5544. - tableName: name of table
  5545. - rows: row keys
  5546. - columns: List of columns to return, null for all columns
  5547. - timestamp
  5548. - attributes: Get attributes
  5549. """
  5550. thrift_spec = (
  5551. None, # 0
  5552. (1, TType.STRING, 'tableName', None, None, ), # 1
  5553. (2, TType.LIST, 'rows', (TType.STRING,None), None, ), # 2
  5554. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  5555. (4, TType.I64, 'timestamp', None, None, ), # 4
  5556. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  5557. )
  5558. def __init__(self, tableName=None, rows=None, columns=None, timestamp=None, attributes=None,):
  5559. self.tableName = tableName
  5560. self.rows = rows
  5561. self.columns = columns
  5562. self.timestamp = timestamp
  5563. self.attributes = attributes
  5564. def read(self, iprot):
  5565. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5566. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5567. return
  5568. iprot.readStructBegin()
  5569. while True:
  5570. (fname, ftype, fid) = iprot.readFieldBegin()
  5571. if ftype == TType.STOP:
  5572. break
  5573. if fid == 1:
  5574. if ftype == TType.STRING:
  5575. self.tableName = iprot.readString();
  5576. else:
  5577. iprot.skip(ftype)
  5578. elif fid == 2:
  5579. if ftype == TType.LIST:
  5580. self.rows = []
  5581. (_etype258, _size255) = iprot.readListBegin()
  5582. for _i259 in xrange(_size255):
  5583. _elem260 = iprot.readString();
  5584. self.rows.append(_elem260)
  5585. iprot.readListEnd()
  5586. else:
  5587. iprot.skip(ftype)
  5588. elif fid == 3:
  5589. if ftype == TType.LIST:
  5590. self.columns = []
  5591. (_etype264, _size261) = iprot.readListBegin()
  5592. for _i265 in xrange(_size261):
  5593. _elem266 = iprot.readString();
  5594. self.columns.append(_elem266)
  5595. iprot.readListEnd()
  5596. else:
  5597. iprot.skip(ftype)
  5598. elif fid == 4:
  5599. if ftype == TType.I64:
  5600. self.timestamp = iprot.readI64();
  5601. else:
  5602. iprot.skip(ftype)
  5603. elif fid == 5:
  5604. if ftype == TType.MAP:
  5605. self.attributes = {}
  5606. (_ktype268, _vtype269, _size267 ) = iprot.readMapBegin()
  5607. for _i271 in xrange(_size267):
  5608. _key272 = iprot.readString();
  5609. _val273 = iprot.readString();
  5610. self.attributes[_key272] = _val273
  5611. iprot.readMapEnd()
  5612. else:
  5613. iprot.skip(ftype)
  5614. else:
  5615. iprot.skip(ftype)
  5616. iprot.readFieldEnd()
  5617. iprot.readStructEnd()
  5618. def write(self, oprot):
  5619. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5620. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5621. return
  5622. oprot.writeStructBegin('getRowsWithColumnsTs_args')
  5623. if self.tableName is not None:
  5624. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  5625. oprot.writeString(self.tableName)
  5626. oprot.writeFieldEnd()
  5627. if self.rows is not None:
  5628. oprot.writeFieldBegin('rows', TType.LIST, 2)
  5629. oprot.writeListBegin(TType.STRING, len(self.rows))
  5630. for iter274 in self.rows:
  5631. oprot.writeString(iter274)
  5632. oprot.writeListEnd()
  5633. oprot.writeFieldEnd()
  5634. if self.columns is not None:
  5635. oprot.writeFieldBegin('columns', TType.LIST, 3)
  5636. oprot.writeListBegin(TType.STRING, len(self.columns))
  5637. for iter275 in self.columns:
  5638. oprot.writeString(iter275)
  5639. oprot.writeListEnd()
  5640. oprot.writeFieldEnd()
  5641. if self.timestamp is not None:
  5642. oprot.writeFieldBegin('timestamp', TType.I64, 4)
  5643. oprot.writeI64(self.timestamp)
  5644. oprot.writeFieldEnd()
  5645. if self.attributes is not None:
  5646. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  5647. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  5648. for kiter276,viter277 in self.attributes.items():
  5649. oprot.writeString(kiter276)
  5650. oprot.writeString(viter277)
  5651. oprot.writeMapEnd()
  5652. oprot.writeFieldEnd()
  5653. oprot.writeFieldStop()
  5654. oprot.writeStructEnd()
  5655. def validate(self):
  5656. return
  5657. def __repr__(self):
  5658. L = ['%s=%r' % (key, value)
  5659. for key, value in self.__dict__.iteritems()]
  5660. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5661. def __eq__(self, other):
  5662. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5663. def __ne__(self, other):
  5664. return not (self == other)
  5665. class getRowsWithColumnsTs_result:
  5666. """
  5667. Attributes:
  5668. - success
  5669. - io
  5670. """
  5671. thrift_spec = (
  5672. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  5673. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  5674. )
  5675. def __init__(self, success=None, io=None,):
  5676. self.success = success
  5677. self.io = io
  5678. def read(self, iprot):
  5679. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5680. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5681. return
  5682. iprot.readStructBegin()
  5683. while True:
  5684. (fname, ftype, fid) = iprot.readFieldBegin()
  5685. if ftype == TType.STOP:
  5686. break
  5687. if fid == 0:
  5688. if ftype == TType.LIST:
  5689. self.success = []
  5690. (_etype281, _size278) = iprot.readListBegin()
  5691. for _i282 in xrange(_size278):
  5692. _elem283 = TRowResult()
  5693. _elem283.read(iprot)
  5694. self.success.append(_elem283)
  5695. iprot.readListEnd()
  5696. else:
  5697. iprot.skip(ftype)
  5698. elif fid == 1:
  5699. if ftype == TType.STRUCT:
  5700. self.io = IOError()
  5701. self.io.read(iprot)
  5702. else:
  5703. iprot.skip(ftype)
  5704. else:
  5705. iprot.skip(ftype)
  5706. iprot.readFieldEnd()
  5707. iprot.readStructEnd()
  5708. def write(self, oprot):
  5709. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5710. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5711. return
  5712. oprot.writeStructBegin('getRowsWithColumnsTs_result')
  5713. if self.success is not None:
  5714. oprot.writeFieldBegin('success', TType.LIST, 0)
  5715. oprot.writeListBegin(TType.STRUCT, len(self.success))
  5716. for iter284 in self.success:
  5717. iter284.write(oprot)
  5718. oprot.writeListEnd()
  5719. oprot.writeFieldEnd()
  5720. if self.io is not None:
  5721. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  5722. self.io.write(oprot)
  5723. oprot.writeFieldEnd()
  5724. oprot.writeFieldStop()
  5725. oprot.writeStructEnd()
  5726. def validate(self):
  5727. return
  5728. def __repr__(self):
  5729. L = ['%s=%r' % (key, value)
  5730. for key, value in self.__dict__.iteritems()]
  5731. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5732. def __eq__(self, other):
  5733. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5734. def __ne__(self, other):
  5735. return not (self == other)
  5736. class mutateRow_args:
  5737. """
  5738. Attributes:
  5739. - tableName: name of table
  5740. - row: row key
  5741. - mutations: list of mutation commands
  5742. - attributes: Mutation attributes
  5743. """
  5744. thrift_spec = (
  5745. None, # 0
  5746. (1, TType.STRING, 'tableName', None, None, ), # 1
  5747. (2, TType.STRING, 'row', None, None, ), # 2
  5748. (3, TType.LIST, 'mutations', (TType.STRUCT,(Mutation, Mutation.thrift_spec)), None, ), # 3
  5749. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  5750. )
  5751. def __init__(self, tableName=None, row=None, mutations=None, attributes=None,):
  5752. self.tableName = tableName
  5753. self.row = row
  5754. self.mutations = mutations
  5755. self.attributes = attributes
  5756. def read(self, iprot):
  5757. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5758. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5759. return
  5760. iprot.readStructBegin()
  5761. while True:
  5762. (fname, ftype, fid) = iprot.readFieldBegin()
  5763. if ftype == TType.STOP:
  5764. break
  5765. if fid == 1:
  5766. if ftype == TType.STRING:
  5767. self.tableName = iprot.readString();
  5768. else:
  5769. iprot.skip(ftype)
  5770. elif fid == 2:
  5771. if ftype == TType.STRING:
  5772. self.row = iprot.readString();
  5773. else:
  5774. iprot.skip(ftype)
  5775. elif fid == 3:
  5776. if ftype == TType.LIST:
  5777. self.mutations = []
  5778. (_etype288, _size285) = iprot.readListBegin()
  5779. for _i289 in xrange(_size285):
  5780. _elem290 = Mutation()
  5781. _elem290.read(iprot)
  5782. self.mutations.append(_elem290)
  5783. iprot.readListEnd()
  5784. else:
  5785. iprot.skip(ftype)
  5786. elif fid == 4:
  5787. if ftype == TType.MAP:
  5788. self.attributes = {}
  5789. (_ktype292, _vtype293, _size291 ) = iprot.readMapBegin()
  5790. for _i295 in xrange(_size291):
  5791. _key296 = iprot.readString();
  5792. _val297 = iprot.readString();
  5793. self.attributes[_key296] = _val297
  5794. iprot.readMapEnd()
  5795. else:
  5796. iprot.skip(ftype)
  5797. else:
  5798. iprot.skip(ftype)
  5799. iprot.readFieldEnd()
  5800. iprot.readStructEnd()
  5801. def write(self, oprot):
  5802. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5803. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5804. return
  5805. oprot.writeStructBegin('mutateRow_args')
  5806. if self.tableName is not None:
  5807. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  5808. oprot.writeString(self.tableName)
  5809. oprot.writeFieldEnd()
  5810. if self.row is not None:
  5811. oprot.writeFieldBegin('row', TType.STRING, 2)
  5812. oprot.writeString(self.row)
  5813. oprot.writeFieldEnd()
  5814. if self.mutations is not None:
  5815. oprot.writeFieldBegin('mutations', TType.LIST, 3)
  5816. oprot.writeListBegin(TType.STRUCT, len(self.mutations))
  5817. for iter298 in self.mutations:
  5818. iter298.write(oprot)
  5819. oprot.writeListEnd()
  5820. oprot.writeFieldEnd()
  5821. if self.attributes is not None:
  5822. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  5823. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  5824. for kiter299,viter300 in self.attributes.items():
  5825. oprot.writeString(kiter299)
  5826. oprot.writeString(viter300)
  5827. oprot.writeMapEnd()
  5828. oprot.writeFieldEnd()
  5829. oprot.writeFieldStop()
  5830. oprot.writeStructEnd()
  5831. def validate(self):
  5832. return
  5833. def __repr__(self):
  5834. L = ['%s=%r' % (key, value)
  5835. for key, value in self.__dict__.iteritems()]
  5836. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5837. def __eq__(self, other):
  5838. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5839. def __ne__(self, other):
  5840. return not (self == other)
  5841. class mutateRow_result:
  5842. """
  5843. Attributes:
  5844. - io
  5845. - ia
  5846. """
  5847. thrift_spec = (
  5848. None, # 0
  5849. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  5850. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  5851. )
  5852. def __init__(self, io=None, ia=None,):
  5853. self.io = io
  5854. self.ia = ia
  5855. def read(self, iprot):
  5856. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5857. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5858. return
  5859. iprot.readStructBegin()
  5860. while True:
  5861. (fname, ftype, fid) = iprot.readFieldBegin()
  5862. if ftype == TType.STOP:
  5863. break
  5864. if fid == 1:
  5865. if ftype == TType.STRUCT:
  5866. self.io = IOError()
  5867. self.io.read(iprot)
  5868. else:
  5869. iprot.skip(ftype)
  5870. elif fid == 2:
  5871. if ftype == TType.STRUCT:
  5872. self.ia = IllegalArgument()
  5873. self.ia.read(iprot)
  5874. else:
  5875. iprot.skip(ftype)
  5876. else:
  5877. iprot.skip(ftype)
  5878. iprot.readFieldEnd()
  5879. iprot.readStructEnd()
  5880. def write(self, oprot):
  5881. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5882. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5883. return
  5884. oprot.writeStructBegin('mutateRow_result')
  5885. if self.io is not None:
  5886. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  5887. self.io.write(oprot)
  5888. oprot.writeFieldEnd()
  5889. if self.ia is not None:
  5890. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  5891. self.ia.write(oprot)
  5892. oprot.writeFieldEnd()
  5893. oprot.writeFieldStop()
  5894. oprot.writeStructEnd()
  5895. def validate(self):
  5896. return
  5897. def __repr__(self):
  5898. L = ['%s=%r' % (key, value)
  5899. for key, value in self.__dict__.iteritems()]
  5900. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5901. def __eq__(self, other):
  5902. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5903. def __ne__(self, other):
  5904. return not (self == other)
  5905. class mutateRowTs_args:
  5906. """
  5907. Attributes:
  5908. - tableName: name of table
  5909. - row: row key
  5910. - mutations: list of mutation commands
  5911. - timestamp: timestamp
  5912. - attributes: Mutation attributes
  5913. """
  5914. thrift_spec = (
  5915. None, # 0
  5916. (1, TType.STRING, 'tableName', None, None, ), # 1
  5917. (2, TType.STRING, 'row', None, None, ), # 2
  5918. (3, TType.LIST, 'mutations', (TType.STRUCT,(Mutation, Mutation.thrift_spec)), None, ), # 3
  5919. (4, TType.I64, 'timestamp', None, None, ), # 4
  5920. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  5921. )
  5922. def __init__(self, tableName=None, row=None, mutations=None, timestamp=None, attributes=None,):
  5923. self.tableName = tableName
  5924. self.row = row
  5925. self.mutations = mutations
  5926. self.timestamp = timestamp
  5927. self.attributes = attributes
  5928. def read(self, iprot):
  5929. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5930. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5931. return
  5932. iprot.readStructBegin()
  5933. while True:
  5934. (fname, ftype, fid) = iprot.readFieldBegin()
  5935. if ftype == TType.STOP:
  5936. break
  5937. if fid == 1:
  5938. if ftype == TType.STRING:
  5939. self.tableName = iprot.readString();
  5940. else:
  5941. iprot.skip(ftype)
  5942. elif fid == 2:
  5943. if ftype == TType.STRING:
  5944. self.row = iprot.readString();
  5945. else:
  5946. iprot.skip(ftype)
  5947. elif fid == 3:
  5948. if ftype == TType.LIST:
  5949. self.mutations = []
  5950. (_etype304, _size301) = iprot.readListBegin()
  5951. for _i305 in xrange(_size301):
  5952. _elem306 = Mutation()
  5953. _elem306.read(iprot)
  5954. self.mutations.append(_elem306)
  5955. iprot.readListEnd()
  5956. else:
  5957. iprot.skip(ftype)
  5958. elif fid == 4:
  5959. if ftype == TType.I64:
  5960. self.timestamp = iprot.readI64();
  5961. else:
  5962. iprot.skip(ftype)
  5963. elif fid == 5:
  5964. if ftype == TType.MAP:
  5965. self.attributes = {}
  5966. (_ktype308, _vtype309, _size307 ) = iprot.readMapBegin()
  5967. for _i311 in xrange(_size307):
  5968. _key312 = iprot.readString();
  5969. _val313 = iprot.readString();
  5970. self.attributes[_key312] = _val313
  5971. iprot.readMapEnd()
  5972. else:
  5973. iprot.skip(ftype)
  5974. else:
  5975. iprot.skip(ftype)
  5976. iprot.readFieldEnd()
  5977. iprot.readStructEnd()
  5978. def write(self, oprot):
  5979. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5980. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5981. return
  5982. oprot.writeStructBegin('mutateRowTs_args')
  5983. if self.tableName is not None:
  5984. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  5985. oprot.writeString(self.tableName)
  5986. oprot.writeFieldEnd()
  5987. if self.row is not None:
  5988. oprot.writeFieldBegin('row', TType.STRING, 2)
  5989. oprot.writeString(self.row)
  5990. oprot.writeFieldEnd()
  5991. if self.mutations is not None:
  5992. oprot.writeFieldBegin('mutations', TType.LIST, 3)
  5993. oprot.writeListBegin(TType.STRUCT, len(self.mutations))
  5994. for iter314 in self.mutations:
  5995. iter314.write(oprot)
  5996. oprot.writeListEnd()
  5997. oprot.writeFieldEnd()
  5998. if self.timestamp is not None:
  5999. oprot.writeFieldBegin('timestamp', TType.I64, 4)
  6000. oprot.writeI64(self.timestamp)
  6001. oprot.writeFieldEnd()
  6002. if self.attributes is not None:
  6003. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  6004. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  6005. for kiter315,viter316 in self.attributes.items():
  6006. oprot.writeString(kiter315)
  6007. oprot.writeString(viter316)
  6008. oprot.writeMapEnd()
  6009. oprot.writeFieldEnd()
  6010. oprot.writeFieldStop()
  6011. oprot.writeStructEnd()
  6012. def validate(self):
  6013. return
  6014. def __repr__(self):
  6015. L = ['%s=%r' % (key, value)
  6016. for key, value in self.__dict__.iteritems()]
  6017. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6018. def __eq__(self, other):
  6019. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6020. def __ne__(self, other):
  6021. return not (self == other)
  6022. class mutateRowTs_result:
  6023. """
  6024. Attributes:
  6025. - io
  6026. - ia
  6027. """
  6028. thrift_spec = (
  6029. None, # 0
  6030. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  6031. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  6032. )
  6033. def __init__(self, io=None, ia=None,):
  6034. self.io = io
  6035. self.ia = ia
  6036. def read(self, iprot):
  6037. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6038. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6039. return
  6040. iprot.readStructBegin()
  6041. while True:
  6042. (fname, ftype, fid) = iprot.readFieldBegin()
  6043. if ftype == TType.STOP:
  6044. break
  6045. if fid == 1:
  6046. if ftype == TType.STRUCT:
  6047. self.io = IOError()
  6048. self.io.read(iprot)
  6049. else:
  6050. iprot.skip(ftype)
  6051. elif fid == 2:
  6052. if ftype == TType.STRUCT:
  6053. self.ia = IllegalArgument()
  6054. self.ia.read(iprot)
  6055. else:
  6056. iprot.skip(ftype)
  6057. else:
  6058. iprot.skip(ftype)
  6059. iprot.readFieldEnd()
  6060. iprot.readStructEnd()
  6061. def write(self, oprot):
  6062. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6063. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6064. return
  6065. oprot.writeStructBegin('mutateRowTs_result')
  6066. if self.io is not None:
  6067. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  6068. self.io.write(oprot)
  6069. oprot.writeFieldEnd()
  6070. if self.ia is not None:
  6071. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  6072. self.ia.write(oprot)
  6073. oprot.writeFieldEnd()
  6074. oprot.writeFieldStop()
  6075. oprot.writeStructEnd()
  6076. def validate(self):
  6077. return
  6078. def __repr__(self):
  6079. L = ['%s=%r' % (key, value)
  6080. for key, value in self.__dict__.iteritems()]
  6081. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6082. def __eq__(self, other):
  6083. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6084. def __ne__(self, other):
  6085. return not (self == other)
  6086. class mutateRows_args:
  6087. """
  6088. Attributes:
  6089. - tableName: name of table
  6090. - rowBatches: list of row batches
  6091. - attributes: Mutation attributes
  6092. """
  6093. thrift_spec = (
  6094. None, # 0
  6095. (1, TType.STRING, 'tableName', None, None, ), # 1
  6096. (2, TType.LIST, 'rowBatches', (TType.STRUCT,(BatchMutation, BatchMutation.thrift_spec)), None, ), # 2
  6097. (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
  6098. )
  6099. def __init__(self, tableName=None, rowBatches=None, attributes=None,):
  6100. self.tableName = tableName
  6101. self.rowBatches = rowBatches
  6102. self.attributes = attributes
  6103. def read(self, iprot):
  6104. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6105. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6106. return
  6107. iprot.readStructBegin()
  6108. while True:
  6109. (fname, ftype, fid) = iprot.readFieldBegin()
  6110. if ftype == TType.STOP:
  6111. break
  6112. if fid == 1:
  6113. if ftype == TType.STRING:
  6114. self.tableName = iprot.readString();
  6115. else:
  6116. iprot.skip(ftype)
  6117. elif fid == 2:
  6118. if ftype == TType.LIST:
  6119. self.rowBatches = []
  6120. (_etype320, _size317) = iprot.readListBegin()
  6121. for _i321 in xrange(_size317):
  6122. _elem322 = BatchMutation()
  6123. _elem322.read(iprot)
  6124. self.rowBatches.append(_elem322)
  6125. iprot.readListEnd()
  6126. else:
  6127. iprot.skip(ftype)
  6128. elif fid == 3:
  6129. if ftype == TType.MAP:
  6130. self.attributes = {}
  6131. (_ktype324, _vtype325, _size323 ) = iprot.readMapBegin()
  6132. for _i327 in xrange(_size323):
  6133. _key328 = iprot.readString();
  6134. _val329 = iprot.readString();
  6135. self.attributes[_key328] = _val329
  6136. iprot.readMapEnd()
  6137. else:
  6138. iprot.skip(ftype)
  6139. else:
  6140. iprot.skip(ftype)
  6141. iprot.readFieldEnd()
  6142. iprot.readStructEnd()
  6143. def write(self, oprot):
  6144. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6145. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6146. return
  6147. oprot.writeStructBegin('mutateRows_args')
  6148. if self.tableName is not None:
  6149. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  6150. oprot.writeString(self.tableName)
  6151. oprot.writeFieldEnd()
  6152. if self.rowBatches is not None:
  6153. oprot.writeFieldBegin('rowBatches', TType.LIST, 2)
  6154. oprot.writeListBegin(TType.STRUCT, len(self.rowBatches))
  6155. for iter330 in self.rowBatches:
  6156. iter330.write(oprot)
  6157. oprot.writeListEnd()
  6158. oprot.writeFieldEnd()
  6159. if self.attributes is not None:
  6160. oprot.writeFieldBegin('attributes', TType.MAP, 3)
  6161. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  6162. for kiter331,viter332 in self.attributes.items():
  6163. oprot.writeString(kiter331)
  6164. oprot.writeString(viter332)
  6165. oprot.writeMapEnd()
  6166. oprot.writeFieldEnd()
  6167. oprot.writeFieldStop()
  6168. oprot.writeStructEnd()
  6169. def validate(self):
  6170. return
  6171. def __repr__(self):
  6172. L = ['%s=%r' % (key, value)
  6173. for key, value in self.__dict__.iteritems()]
  6174. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6175. def __eq__(self, other):
  6176. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6177. def __ne__(self, other):
  6178. return not (self == other)
  6179. class mutateRows_result:
  6180. """
  6181. Attributes:
  6182. - io
  6183. - ia
  6184. """
  6185. thrift_spec = (
  6186. None, # 0
  6187. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  6188. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  6189. )
  6190. def __init__(self, io=None, ia=None,):
  6191. self.io = io
  6192. self.ia = ia
  6193. def read(self, iprot):
  6194. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6195. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6196. return
  6197. iprot.readStructBegin()
  6198. while True:
  6199. (fname, ftype, fid) = iprot.readFieldBegin()
  6200. if ftype == TType.STOP:
  6201. break
  6202. if fid == 1:
  6203. if ftype == TType.STRUCT:
  6204. self.io = IOError()
  6205. self.io.read(iprot)
  6206. else:
  6207. iprot.skip(ftype)
  6208. elif fid == 2:
  6209. if ftype == TType.STRUCT:
  6210. self.ia = IllegalArgument()
  6211. self.ia.read(iprot)
  6212. else:
  6213. iprot.skip(ftype)
  6214. else:
  6215. iprot.skip(ftype)
  6216. iprot.readFieldEnd()
  6217. iprot.readStructEnd()
  6218. def write(self, oprot):
  6219. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6220. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6221. return
  6222. oprot.writeStructBegin('mutateRows_result')
  6223. if self.io is not None:
  6224. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  6225. self.io.write(oprot)
  6226. oprot.writeFieldEnd()
  6227. if self.ia is not None:
  6228. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  6229. self.ia.write(oprot)
  6230. oprot.writeFieldEnd()
  6231. oprot.writeFieldStop()
  6232. oprot.writeStructEnd()
  6233. def validate(self):
  6234. return
  6235. def __repr__(self):
  6236. L = ['%s=%r' % (key, value)
  6237. for key, value in self.__dict__.iteritems()]
  6238. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6239. def __eq__(self, other):
  6240. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6241. def __ne__(self, other):
  6242. return not (self == other)
  6243. class mutateRowsTs_args:
  6244. """
  6245. Attributes:
  6246. - tableName: name of table
  6247. - rowBatches: list of row batches
  6248. - timestamp: timestamp
  6249. - attributes: Mutation attributes
  6250. """
  6251. thrift_spec = (
  6252. None, # 0
  6253. (1, TType.STRING, 'tableName', None, None, ), # 1
  6254. (2, TType.LIST, 'rowBatches', (TType.STRUCT,(BatchMutation, BatchMutation.thrift_spec)), None, ), # 2
  6255. (3, TType.I64, 'timestamp', None, None, ), # 3
  6256. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  6257. )
  6258. def __init__(self, tableName=None, rowBatches=None, timestamp=None, attributes=None,):
  6259. self.tableName = tableName
  6260. self.rowBatches = rowBatches
  6261. self.timestamp = timestamp
  6262. self.attributes = attributes
  6263. def read(self, iprot):
  6264. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6265. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6266. return
  6267. iprot.readStructBegin()
  6268. while True:
  6269. (fname, ftype, fid) = iprot.readFieldBegin()
  6270. if ftype == TType.STOP:
  6271. break
  6272. if fid == 1:
  6273. if ftype == TType.STRING:
  6274. self.tableName = iprot.readString();
  6275. else:
  6276. iprot.skip(ftype)
  6277. elif fid == 2:
  6278. if ftype == TType.LIST:
  6279. self.rowBatches = []
  6280. (_etype336, _size333) = iprot.readListBegin()
  6281. for _i337 in xrange(_size333):
  6282. _elem338 = BatchMutation()
  6283. _elem338.read(iprot)
  6284. self.rowBatches.append(_elem338)
  6285. iprot.readListEnd()
  6286. else:
  6287. iprot.skip(ftype)
  6288. elif fid == 3:
  6289. if ftype == TType.I64:
  6290. self.timestamp = iprot.readI64();
  6291. else:
  6292. iprot.skip(ftype)
  6293. elif fid == 4:
  6294. if ftype == TType.MAP:
  6295. self.attributes = {}
  6296. (_ktype340, _vtype341, _size339 ) = iprot.readMapBegin()
  6297. for _i343 in xrange(_size339):
  6298. _key344 = iprot.readString();
  6299. _val345 = iprot.readString();
  6300. self.attributes[_key344] = _val345
  6301. iprot.readMapEnd()
  6302. else:
  6303. iprot.skip(ftype)
  6304. else:
  6305. iprot.skip(ftype)
  6306. iprot.readFieldEnd()
  6307. iprot.readStructEnd()
  6308. def write(self, oprot):
  6309. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6310. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6311. return
  6312. oprot.writeStructBegin('mutateRowsTs_args')
  6313. if self.tableName is not None:
  6314. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  6315. oprot.writeString(self.tableName)
  6316. oprot.writeFieldEnd()
  6317. if self.rowBatches is not None:
  6318. oprot.writeFieldBegin('rowBatches', TType.LIST, 2)
  6319. oprot.writeListBegin(TType.STRUCT, len(self.rowBatches))
  6320. for iter346 in self.rowBatches:
  6321. iter346.write(oprot)
  6322. oprot.writeListEnd()
  6323. oprot.writeFieldEnd()
  6324. if self.timestamp is not None:
  6325. oprot.writeFieldBegin('timestamp', TType.I64, 3)
  6326. oprot.writeI64(self.timestamp)
  6327. oprot.writeFieldEnd()
  6328. if self.attributes is not None:
  6329. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  6330. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  6331. for kiter347,viter348 in self.attributes.items():
  6332. oprot.writeString(kiter347)
  6333. oprot.writeString(viter348)
  6334. oprot.writeMapEnd()
  6335. oprot.writeFieldEnd()
  6336. oprot.writeFieldStop()
  6337. oprot.writeStructEnd()
  6338. def validate(self):
  6339. return
  6340. def __repr__(self):
  6341. L = ['%s=%r' % (key, value)
  6342. for key, value in self.__dict__.iteritems()]
  6343. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6344. def __eq__(self, other):
  6345. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6346. def __ne__(self, other):
  6347. return not (self == other)
  6348. class mutateRowsTs_result:
  6349. """
  6350. Attributes:
  6351. - io
  6352. - ia
  6353. """
  6354. thrift_spec = (
  6355. None, # 0
  6356. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  6357. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  6358. )
  6359. def __init__(self, io=None, ia=None,):
  6360. self.io = io
  6361. self.ia = ia
  6362. def read(self, iprot):
  6363. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6364. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6365. return
  6366. iprot.readStructBegin()
  6367. while True:
  6368. (fname, ftype, fid) = iprot.readFieldBegin()
  6369. if ftype == TType.STOP:
  6370. break
  6371. if fid == 1:
  6372. if ftype == TType.STRUCT:
  6373. self.io = IOError()
  6374. self.io.read(iprot)
  6375. else:
  6376. iprot.skip(ftype)
  6377. elif fid == 2:
  6378. if ftype == TType.STRUCT:
  6379. self.ia = IllegalArgument()
  6380. self.ia.read(iprot)
  6381. else:
  6382. iprot.skip(ftype)
  6383. else:
  6384. iprot.skip(ftype)
  6385. iprot.readFieldEnd()
  6386. iprot.readStructEnd()
  6387. def write(self, oprot):
  6388. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6389. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6390. return
  6391. oprot.writeStructBegin('mutateRowsTs_result')
  6392. if self.io is not None:
  6393. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  6394. self.io.write(oprot)
  6395. oprot.writeFieldEnd()
  6396. if self.ia is not None:
  6397. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  6398. self.ia.write(oprot)
  6399. oprot.writeFieldEnd()
  6400. oprot.writeFieldStop()
  6401. oprot.writeStructEnd()
  6402. def validate(self):
  6403. return
  6404. def __repr__(self):
  6405. L = ['%s=%r' % (key, value)
  6406. for key, value in self.__dict__.iteritems()]
  6407. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6408. def __eq__(self, other):
  6409. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6410. def __ne__(self, other):
  6411. return not (self == other)
  6412. class atomicIncrement_args:
  6413. """
  6414. Attributes:
  6415. - tableName: name of table
  6416. - row: row to increment
  6417. - column: name of column
  6418. - value: amount to increment by
  6419. """
  6420. thrift_spec = (
  6421. None, # 0
  6422. (1, TType.STRING, 'tableName', None, None, ), # 1
  6423. (2, TType.STRING, 'row', None, None, ), # 2
  6424. (3, TType.STRING, 'column', None, None, ), # 3
  6425. (4, TType.I64, 'value', None, None, ), # 4
  6426. )
  6427. def __init__(self, tableName=None, row=None, column=None, value=None,):
  6428. self.tableName = tableName
  6429. self.row = row
  6430. self.column = column
  6431. self.value = value
  6432. def read(self, iprot):
  6433. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6434. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6435. return
  6436. iprot.readStructBegin()
  6437. while True:
  6438. (fname, ftype, fid) = iprot.readFieldBegin()
  6439. if ftype == TType.STOP:
  6440. break
  6441. if fid == 1:
  6442. if ftype == TType.STRING:
  6443. self.tableName = iprot.readString();
  6444. else:
  6445. iprot.skip(ftype)
  6446. elif fid == 2:
  6447. if ftype == TType.STRING:
  6448. self.row = iprot.readString();
  6449. else:
  6450. iprot.skip(ftype)
  6451. elif fid == 3:
  6452. if ftype == TType.STRING:
  6453. self.column = iprot.readString();
  6454. else:
  6455. iprot.skip(ftype)
  6456. elif fid == 4:
  6457. if ftype == TType.I64:
  6458. self.value = iprot.readI64();
  6459. else:
  6460. iprot.skip(ftype)
  6461. else:
  6462. iprot.skip(ftype)
  6463. iprot.readFieldEnd()
  6464. iprot.readStructEnd()
  6465. def write(self, oprot):
  6466. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6467. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6468. return
  6469. oprot.writeStructBegin('atomicIncrement_args')
  6470. if self.tableName is not None:
  6471. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  6472. oprot.writeString(self.tableName)
  6473. oprot.writeFieldEnd()
  6474. if self.row is not None:
  6475. oprot.writeFieldBegin('row', TType.STRING, 2)
  6476. oprot.writeString(self.row)
  6477. oprot.writeFieldEnd()
  6478. if self.column is not None:
  6479. oprot.writeFieldBegin('column', TType.STRING, 3)
  6480. oprot.writeString(self.column)
  6481. oprot.writeFieldEnd()
  6482. if self.value is not None:
  6483. oprot.writeFieldBegin('value', TType.I64, 4)
  6484. oprot.writeI64(self.value)
  6485. oprot.writeFieldEnd()
  6486. oprot.writeFieldStop()
  6487. oprot.writeStructEnd()
  6488. def validate(self):
  6489. return
  6490. def __repr__(self):
  6491. L = ['%s=%r' % (key, value)
  6492. for key, value in self.__dict__.iteritems()]
  6493. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6494. def __eq__(self, other):
  6495. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6496. def __ne__(self, other):
  6497. return not (self == other)
  6498. class atomicIncrement_result:
  6499. """
  6500. Attributes:
  6501. - success
  6502. - io
  6503. - ia
  6504. """
  6505. thrift_spec = (
  6506. (0, TType.I64, 'success', None, None, ), # 0
  6507. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  6508. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  6509. )
  6510. def __init__(self, success=None, io=None, ia=None,):
  6511. self.success = success
  6512. self.io = io
  6513. self.ia = ia
  6514. def read(self, iprot):
  6515. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6516. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6517. return
  6518. iprot.readStructBegin()
  6519. while True:
  6520. (fname, ftype, fid) = iprot.readFieldBegin()
  6521. if ftype == TType.STOP:
  6522. break
  6523. if fid == 0:
  6524. if ftype == TType.I64:
  6525. self.success = iprot.readI64();
  6526. else:
  6527. iprot.skip(ftype)
  6528. elif fid == 1:
  6529. if ftype == TType.STRUCT:
  6530. self.io = IOError()
  6531. self.io.read(iprot)
  6532. else:
  6533. iprot.skip(ftype)
  6534. elif fid == 2:
  6535. if ftype == TType.STRUCT:
  6536. self.ia = IllegalArgument()
  6537. self.ia.read(iprot)
  6538. else:
  6539. iprot.skip(ftype)
  6540. else:
  6541. iprot.skip(ftype)
  6542. iprot.readFieldEnd()
  6543. iprot.readStructEnd()
  6544. def write(self, oprot):
  6545. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6546. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6547. return
  6548. oprot.writeStructBegin('atomicIncrement_result')
  6549. if self.success is not None:
  6550. oprot.writeFieldBegin('success', TType.I64, 0)
  6551. oprot.writeI64(self.success)
  6552. oprot.writeFieldEnd()
  6553. if self.io is not None:
  6554. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  6555. self.io.write(oprot)
  6556. oprot.writeFieldEnd()
  6557. if self.ia is not None:
  6558. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  6559. self.ia.write(oprot)
  6560. oprot.writeFieldEnd()
  6561. oprot.writeFieldStop()
  6562. oprot.writeStructEnd()
  6563. def validate(self):
  6564. return
  6565. def __repr__(self):
  6566. L = ['%s=%r' % (key, value)
  6567. for key, value in self.__dict__.iteritems()]
  6568. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6569. def __eq__(self, other):
  6570. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6571. def __ne__(self, other):
  6572. return not (self == other)
  6573. class deleteAll_args:
  6574. """
  6575. Attributes:
  6576. - tableName: name of table
  6577. - row: Row to update
  6578. - column: name of column whose value is to be deleted
  6579. - attributes: Delete attributes
  6580. """
  6581. thrift_spec = (
  6582. None, # 0
  6583. (1, TType.STRING, 'tableName', None, None, ), # 1
  6584. (2, TType.STRING, 'row', None, None, ), # 2
  6585. (3, TType.STRING, 'column', None, None, ), # 3
  6586. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  6587. )
  6588. def __init__(self, tableName=None, row=None, column=None, attributes=None,):
  6589. self.tableName = tableName
  6590. self.row = row
  6591. self.column = column
  6592. self.attributes = attributes
  6593. def read(self, iprot):
  6594. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6595. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6596. return
  6597. iprot.readStructBegin()
  6598. while True:
  6599. (fname, ftype, fid) = iprot.readFieldBegin()
  6600. if ftype == TType.STOP:
  6601. break
  6602. if fid == 1:
  6603. if ftype == TType.STRING:
  6604. self.tableName = iprot.readString();
  6605. else:
  6606. iprot.skip(ftype)
  6607. elif fid == 2:
  6608. if ftype == TType.STRING:
  6609. self.row = iprot.readString();
  6610. else:
  6611. iprot.skip(ftype)
  6612. elif fid == 3:
  6613. if ftype == TType.STRING:
  6614. self.column = iprot.readString();
  6615. else:
  6616. iprot.skip(ftype)
  6617. elif fid == 4:
  6618. if ftype == TType.MAP:
  6619. self.attributes = {}
  6620. (_ktype350, _vtype351, _size349 ) = iprot.readMapBegin()
  6621. for _i353 in xrange(_size349):
  6622. _key354 = iprot.readString();
  6623. _val355 = iprot.readString();
  6624. self.attributes[_key354] = _val355
  6625. iprot.readMapEnd()
  6626. else:
  6627. iprot.skip(ftype)
  6628. else:
  6629. iprot.skip(ftype)
  6630. iprot.readFieldEnd()
  6631. iprot.readStructEnd()
  6632. def write(self, oprot):
  6633. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6634. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6635. return
  6636. oprot.writeStructBegin('deleteAll_args')
  6637. if self.tableName is not None:
  6638. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  6639. oprot.writeString(self.tableName)
  6640. oprot.writeFieldEnd()
  6641. if self.row is not None:
  6642. oprot.writeFieldBegin('row', TType.STRING, 2)
  6643. oprot.writeString(self.row)
  6644. oprot.writeFieldEnd()
  6645. if self.column is not None:
  6646. oprot.writeFieldBegin('column', TType.STRING, 3)
  6647. oprot.writeString(self.column)
  6648. oprot.writeFieldEnd()
  6649. if self.attributes is not None:
  6650. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  6651. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  6652. for kiter356,viter357 in self.attributes.items():
  6653. oprot.writeString(kiter356)
  6654. oprot.writeString(viter357)
  6655. oprot.writeMapEnd()
  6656. oprot.writeFieldEnd()
  6657. oprot.writeFieldStop()
  6658. oprot.writeStructEnd()
  6659. def validate(self):
  6660. return
  6661. def __repr__(self):
  6662. L = ['%s=%r' % (key, value)
  6663. for key, value in self.__dict__.iteritems()]
  6664. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6665. def __eq__(self, other):
  6666. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6667. def __ne__(self, other):
  6668. return not (self == other)
  6669. class deleteAll_result:
  6670. """
  6671. Attributes:
  6672. - io
  6673. """
  6674. thrift_spec = (
  6675. None, # 0
  6676. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  6677. )
  6678. def __init__(self, io=None,):
  6679. self.io = io
  6680. def read(self, iprot):
  6681. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6682. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6683. return
  6684. iprot.readStructBegin()
  6685. while True:
  6686. (fname, ftype, fid) = iprot.readFieldBegin()
  6687. if ftype == TType.STOP:
  6688. break
  6689. if fid == 1:
  6690. if ftype == TType.STRUCT:
  6691. self.io = IOError()
  6692. self.io.read(iprot)
  6693. else:
  6694. iprot.skip(ftype)
  6695. else:
  6696. iprot.skip(ftype)
  6697. iprot.readFieldEnd()
  6698. iprot.readStructEnd()
  6699. def write(self, oprot):
  6700. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6701. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6702. return
  6703. oprot.writeStructBegin('deleteAll_result')
  6704. if self.io is not None:
  6705. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  6706. self.io.write(oprot)
  6707. oprot.writeFieldEnd()
  6708. oprot.writeFieldStop()
  6709. oprot.writeStructEnd()
  6710. def validate(self):
  6711. return
  6712. def __repr__(self):
  6713. L = ['%s=%r' % (key, value)
  6714. for key, value in self.__dict__.iteritems()]
  6715. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6716. def __eq__(self, other):
  6717. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6718. def __ne__(self, other):
  6719. return not (self == other)
  6720. class deleteAllTs_args:
  6721. """
  6722. Attributes:
  6723. - tableName: name of table
  6724. - row: Row to update
  6725. - column: name of column whose value is to be deleted
  6726. - timestamp: timestamp
  6727. - attributes: Delete attributes
  6728. """
  6729. thrift_spec = (
  6730. None, # 0
  6731. (1, TType.STRING, 'tableName', None, None, ), # 1
  6732. (2, TType.STRING, 'row', None, None, ), # 2
  6733. (3, TType.STRING, 'column', None, None, ), # 3
  6734. (4, TType.I64, 'timestamp', None, None, ), # 4
  6735. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  6736. )
  6737. def __init__(self, tableName=None, row=None, column=None, timestamp=None, attributes=None,):
  6738. self.tableName = tableName
  6739. self.row = row
  6740. self.column = column
  6741. self.timestamp = timestamp
  6742. self.attributes = attributes
  6743. def read(self, iprot):
  6744. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6745. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6746. return
  6747. iprot.readStructBegin()
  6748. while True:
  6749. (fname, ftype, fid) = iprot.readFieldBegin()
  6750. if ftype == TType.STOP:
  6751. break
  6752. if fid == 1:
  6753. if ftype == TType.STRING:
  6754. self.tableName = iprot.readString();
  6755. else:
  6756. iprot.skip(ftype)
  6757. elif fid == 2:
  6758. if ftype == TType.STRING:
  6759. self.row = iprot.readString();
  6760. else:
  6761. iprot.skip(ftype)
  6762. elif fid == 3:
  6763. if ftype == TType.STRING:
  6764. self.column = iprot.readString();
  6765. else:
  6766. iprot.skip(ftype)
  6767. elif fid == 4:
  6768. if ftype == TType.I64:
  6769. self.timestamp = iprot.readI64();
  6770. else:
  6771. iprot.skip(ftype)
  6772. elif fid == 5:
  6773. if ftype == TType.MAP:
  6774. self.attributes = {}
  6775. (_ktype359, _vtype360, _size358 ) = iprot.readMapBegin()
  6776. for _i362 in xrange(_size358):
  6777. _key363 = iprot.readString();
  6778. _val364 = iprot.readString();
  6779. self.attributes[_key363] = _val364
  6780. iprot.readMapEnd()
  6781. else:
  6782. iprot.skip(ftype)
  6783. else:
  6784. iprot.skip(ftype)
  6785. iprot.readFieldEnd()
  6786. iprot.readStructEnd()
  6787. def write(self, oprot):
  6788. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6789. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6790. return
  6791. oprot.writeStructBegin('deleteAllTs_args')
  6792. if self.tableName is not None:
  6793. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  6794. oprot.writeString(self.tableName)
  6795. oprot.writeFieldEnd()
  6796. if self.row is not None:
  6797. oprot.writeFieldBegin('row', TType.STRING, 2)
  6798. oprot.writeString(self.row)
  6799. oprot.writeFieldEnd()
  6800. if self.column is not None:
  6801. oprot.writeFieldBegin('column', TType.STRING, 3)
  6802. oprot.writeString(self.column)
  6803. oprot.writeFieldEnd()
  6804. if self.timestamp is not None:
  6805. oprot.writeFieldBegin('timestamp', TType.I64, 4)
  6806. oprot.writeI64(self.timestamp)
  6807. oprot.writeFieldEnd()
  6808. if self.attributes is not None:
  6809. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  6810. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  6811. for kiter365,viter366 in self.attributes.items():
  6812. oprot.writeString(kiter365)
  6813. oprot.writeString(viter366)
  6814. oprot.writeMapEnd()
  6815. oprot.writeFieldEnd()
  6816. oprot.writeFieldStop()
  6817. oprot.writeStructEnd()
  6818. def validate(self):
  6819. return
  6820. def __repr__(self):
  6821. L = ['%s=%r' % (key, value)
  6822. for key, value in self.__dict__.iteritems()]
  6823. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6824. def __eq__(self, other):
  6825. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6826. def __ne__(self, other):
  6827. return not (self == other)
  6828. class deleteAllTs_result:
  6829. """
  6830. Attributes:
  6831. - io
  6832. """
  6833. thrift_spec = (
  6834. None, # 0
  6835. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  6836. )
  6837. def __init__(self, io=None,):
  6838. self.io = io
  6839. def read(self, iprot):
  6840. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6841. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6842. return
  6843. iprot.readStructBegin()
  6844. while True:
  6845. (fname, ftype, fid) = iprot.readFieldBegin()
  6846. if ftype == TType.STOP:
  6847. break
  6848. if fid == 1:
  6849. if ftype == TType.STRUCT:
  6850. self.io = IOError()
  6851. self.io.read(iprot)
  6852. else:
  6853. iprot.skip(ftype)
  6854. else:
  6855. iprot.skip(ftype)
  6856. iprot.readFieldEnd()
  6857. iprot.readStructEnd()
  6858. def write(self, oprot):
  6859. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6860. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6861. return
  6862. oprot.writeStructBegin('deleteAllTs_result')
  6863. if self.io is not None:
  6864. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  6865. self.io.write(oprot)
  6866. oprot.writeFieldEnd()
  6867. oprot.writeFieldStop()
  6868. oprot.writeStructEnd()
  6869. def validate(self):
  6870. return
  6871. def __repr__(self):
  6872. L = ['%s=%r' % (key, value)
  6873. for key, value in self.__dict__.iteritems()]
  6874. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6875. def __eq__(self, other):
  6876. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6877. def __ne__(self, other):
  6878. return not (self == other)
  6879. class deleteAllRow_args:
  6880. """
  6881. Attributes:
  6882. - tableName: name of table
  6883. - row: key of the row to be completely deleted.
  6884. - attributes: Delete attributes
  6885. """
  6886. thrift_spec = (
  6887. None, # 0
  6888. (1, TType.STRING, 'tableName', None, None, ), # 1
  6889. (2, TType.STRING, 'row', None, None, ), # 2
  6890. (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
  6891. )
  6892. def __init__(self, tableName=None, row=None, attributes=None,):
  6893. self.tableName = tableName
  6894. self.row = row
  6895. self.attributes = attributes
  6896. def read(self, iprot):
  6897. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6898. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6899. return
  6900. iprot.readStructBegin()
  6901. while True:
  6902. (fname, ftype, fid) = iprot.readFieldBegin()
  6903. if ftype == TType.STOP:
  6904. break
  6905. if fid == 1:
  6906. if ftype == TType.STRING:
  6907. self.tableName = iprot.readString();
  6908. else:
  6909. iprot.skip(ftype)
  6910. elif fid == 2:
  6911. if ftype == TType.STRING:
  6912. self.row = iprot.readString();
  6913. else:
  6914. iprot.skip(ftype)
  6915. elif fid == 3:
  6916. if ftype == TType.MAP:
  6917. self.attributes = {}
  6918. (_ktype368, _vtype369, _size367 ) = iprot.readMapBegin()
  6919. for _i371 in xrange(_size367):
  6920. _key372 = iprot.readString();
  6921. _val373 = iprot.readString();
  6922. self.attributes[_key372] = _val373
  6923. iprot.readMapEnd()
  6924. else:
  6925. iprot.skip(ftype)
  6926. else:
  6927. iprot.skip(ftype)
  6928. iprot.readFieldEnd()
  6929. iprot.readStructEnd()
  6930. def write(self, oprot):
  6931. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6932. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6933. return
  6934. oprot.writeStructBegin('deleteAllRow_args')
  6935. if self.tableName is not None:
  6936. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  6937. oprot.writeString(self.tableName)
  6938. oprot.writeFieldEnd()
  6939. if self.row is not None:
  6940. oprot.writeFieldBegin('row', TType.STRING, 2)
  6941. oprot.writeString(self.row)
  6942. oprot.writeFieldEnd()
  6943. if self.attributes is not None:
  6944. oprot.writeFieldBegin('attributes', TType.MAP, 3)
  6945. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  6946. for kiter374,viter375 in self.attributes.items():
  6947. oprot.writeString(kiter374)
  6948. oprot.writeString(viter375)
  6949. oprot.writeMapEnd()
  6950. oprot.writeFieldEnd()
  6951. oprot.writeFieldStop()
  6952. oprot.writeStructEnd()
  6953. def validate(self):
  6954. return
  6955. def __repr__(self):
  6956. L = ['%s=%r' % (key, value)
  6957. for key, value in self.__dict__.iteritems()]
  6958. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6959. def __eq__(self, other):
  6960. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6961. def __ne__(self, other):
  6962. return not (self == other)
  6963. class deleteAllRow_result:
  6964. """
  6965. Attributes:
  6966. - io
  6967. """
  6968. thrift_spec = (
  6969. None, # 0
  6970. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  6971. )
  6972. def __init__(self, io=None,):
  6973. self.io = io
  6974. def read(self, iprot):
  6975. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6976. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6977. return
  6978. iprot.readStructBegin()
  6979. while True:
  6980. (fname, ftype, fid) = iprot.readFieldBegin()
  6981. if ftype == TType.STOP:
  6982. break
  6983. if fid == 1:
  6984. if ftype == TType.STRUCT:
  6985. self.io = IOError()
  6986. self.io.read(iprot)
  6987. else:
  6988. iprot.skip(ftype)
  6989. else:
  6990. iprot.skip(ftype)
  6991. iprot.readFieldEnd()
  6992. iprot.readStructEnd()
  6993. def write(self, oprot):
  6994. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6995. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6996. return
  6997. oprot.writeStructBegin('deleteAllRow_result')
  6998. if self.io is not None:
  6999. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7000. self.io.write(oprot)
  7001. oprot.writeFieldEnd()
  7002. oprot.writeFieldStop()
  7003. oprot.writeStructEnd()
  7004. def validate(self):
  7005. return
  7006. def __repr__(self):
  7007. L = ['%s=%r' % (key, value)
  7008. for key, value in self.__dict__.iteritems()]
  7009. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7010. def __eq__(self, other):
  7011. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7012. def __ne__(self, other):
  7013. return not (self == other)
  7014. class increment_args:
  7015. """
  7016. Attributes:
  7017. - increment: The single increment to apply
  7018. """
  7019. thrift_spec = (
  7020. None, # 0
  7021. (1, TType.STRUCT, 'increment', (TIncrement, TIncrement.thrift_spec), None, ), # 1
  7022. )
  7023. def __init__(self, increment=None,):
  7024. self.increment = increment
  7025. def read(self, iprot):
  7026. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7027. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7028. return
  7029. iprot.readStructBegin()
  7030. while True:
  7031. (fname, ftype, fid) = iprot.readFieldBegin()
  7032. if ftype == TType.STOP:
  7033. break
  7034. if fid == 1:
  7035. if ftype == TType.STRUCT:
  7036. self.increment = TIncrement()
  7037. self.increment.read(iprot)
  7038. else:
  7039. iprot.skip(ftype)
  7040. else:
  7041. iprot.skip(ftype)
  7042. iprot.readFieldEnd()
  7043. iprot.readStructEnd()
  7044. def write(self, oprot):
  7045. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7046. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7047. return
  7048. oprot.writeStructBegin('increment_args')
  7049. if self.increment is not None:
  7050. oprot.writeFieldBegin('increment', TType.STRUCT, 1)
  7051. self.increment.write(oprot)
  7052. oprot.writeFieldEnd()
  7053. oprot.writeFieldStop()
  7054. oprot.writeStructEnd()
  7055. def validate(self):
  7056. return
  7057. def __repr__(self):
  7058. L = ['%s=%r' % (key, value)
  7059. for key, value in self.__dict__.iteritems()]
  7060. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7061. def __eq__(self, other):
  7062. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7063. def __ne__(self, other):
  7064. return not (self == other)
  7065. class increment_result:
  7066. """
  7067. Attributes:
  7068. - io
  7069. """
  7070. thrift_spec = (
  7071. None, # 0
  7072. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7073. )
  7074. def __init__(self, io=None,):
  7075. self.io = io
  7076. def read(self, iprot):
  7077. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7078. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7079. return
  7080. iprot.readStructBegin()
  7081. while True:
  7082. (fname, ftype, fid) = iprot.readFieldBegin()
  7083. if ftype == TType.STOP:
  7084. break
  7085. if fid == 1:
  7086. if ftype == TType.STRUCT:
  7087. self.io = IOError()
  7088. self.io.read(iprot)
  7089. else:
  7090. iprot.skip(ftype)
  7091. else:
  7092. iprot.skip(ftype)
  7093. iprot.readFieldEnd()
  7094. iprot.readStructEnd()
  7095. def write(self, oprot):
  7096. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7097. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7098. return
  7099. oprot.writeStructBegin('increment_result')
  7100. if self.io is not None:
  7101. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7102. self.io.write(oprot)
  7103. oprot.writeFieldEnd()
  7104. oprot.writeFieldStop()
  7105. oprot.writeStructEnd()
  7106. def validate(self):
  7107. return
  7108. def __repr__(self):
  7109. L = ['%s=%r' % (key, value)
  7110. for key, value in self.__dict__.iteritems()]
  7111. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7112. def __eq__(self, other):
  7113. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7114. def __ne__(self, other):
  7115. return not (self == other)
  7116. class incrementRows_args:
  7117. """
  7118. Attributes:
  7119. - increments: The list of increments
  7120. """
  7121. thrift_spec = (
  7122. None, # 0
  7123. (1, TType.LIST, 'increments', (TType.STRUCT,(TIncrement, TIncrement.thrift_spec)), None, ), # 1
  7124. )
  7125. def __init__(self, increments=None,):
  7126. self.increments = increments
  7127. def read(self, iprot):
  7128. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7129. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7130. return
  7131. iprot.readStructBegin()
  7132. while True:
  7133. (fname, ftype, fid) = iprot.readFieldBegin()
  7134. if ftype == TType.STOP:
  7135. break
  7136. if fid == 1:
  7137. if ftype == TType.LIST:
  7138. self.increments = []
  7139. (_etype379, _size376) = iprot.readListBegin()
  7140. for _i380 in xrange(_size376):
  7141. _elem381 = TIncrement()
  7142. _elem381.read(iprot)
  7143. self.increments.append(_elem381)
  7144. iprot.readListEnd()
  7145. else:
  7146. iprot.skip(ftype)
  7147. else:
  7148. iprot.skip(ftype)
  7149. iprot.readFieldEnd()
  7150. iprot.readStructEnd()
  7151. def write(self, oprot):
  7152. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7153. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7154. return
  7155. oprot.writeStructBegin('incrementRows_args')
  7156. if self.increments is not None:
  7157. oprot.writeFieldBegin('increments', TType.LIST, 1)
  7158. oprot.writeListBegin(TType.STRUCT, len(self.increments))
  7159. for iter382 in self.increments:
  7160. iter382.write(oprot)
  7161. oprot.writeListEnd()
  7162. oprot.writeFieldEnd()
  7163. oprot.writeFieldStop()
  7164. oprot.writeStructEnd()
  7165. def validate(self):
  7166. return
  7167. def __repr__(self):
  7168. L = ['%s=%r' % (key, value)
  7169. for key, value in self.__dict__.iteritems()]
  7170. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7171. def __eq__(self, other):
  7172. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7173. def __ne__(self, other):
  7174. return not (self == other)
  7175. class incrementRows_result:
  7176. """
  7177. Attributes:
  7178. - io
  7179. """
  7180. thrift_spec = (
  7181. None, # 0
  7182. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7183. )
  7184. def __init__(self, io=None,):
  7185. self.io = io
  7186. def read(self, iprot):
  7187. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7188. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7189. return
  7190. iprot.readStructBegin()
  7191. while True:
  7192. (fname, ftype, fid) = iprot.readFieldBegin()
  7193. if ftype == TType.STOP:
  7194. break
  7195. if fid == 1:
  7196. if ftype == TType.STRUCT:
  7197. self.io = IOError()
  7198. self.io.read(iprot)
  7199. else:
  7200. iprot.skip(ftype)
  7201. else:
  7202. iprot.skip(ftype)
  7203. iprot.readFieldEnd()
  7204. iprot.readStructEnd()
  7205. def write(self, oprot):
  7206. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7207. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7208. return
  7209. oprot.writeStructBegin('incrementRows_result')
  7210. if self.io is not None:
  7211. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7212. self.io.write(oprot)
  7213. oprot.writeFieldEnd()
  7214. oprot.writeFieldStop()
  7215. oprot.writeStructEnd()
  7216. def validate(self):
  7217. return
  7218. def __repr__(self):
  7219. L = ['%s=%r' % (key, value)
  7220. for key, value in self.__dict__.iteritems()]
  7221. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7222. def __eq__(self, other):
  7223. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7224. def __ne__(self, other):
  7225. return not (self == other)
  7226. class deleteAllRowTs_args:
  7227. """
  7228. Attributes:
  7229. - tableName: name of table
  7230. - row: key of the row to be completely deleted.
  7231. - timestamp: timestamp
  7232. - attributes: Delete attributes
  7233. """
  7234. thrift_spec = (
  7235. None, # 0
  7236. (1, TType.STRING, 'tableName', None, None, ), # 1
  7237. (2, TType.STRING, 'row', None, None, ), # 2
  7238. (3, TType.I64, 'timestamp', None, None, ), # 3
  7239. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  7240. )
  7241. def __init__(self, tableName=None, row=None, timestamp=None, attributes=None,):
  7242. self.tableName = tableName
  7243. self.row = row
  7244. self.timestamp = timestamp
  7245. self.attributes = attributes
  7246. def read(self, iprot):
  7247. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7248. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7249. return
  7250. iprot.readStructBegin()
  7251. while True:
  7252. (fname, ftype, fid) = iprot.readFieldBegin()
  7253. if ftype == TType.STOP:
  7254. break
  7255. if fid == 1:
  7256. if ftype == TType.STRING:
  7257. self.tableName = iprot.readString();
  7258. else:
  7259. iprot.skip(ftype)
  7260. elif fid == 2:
  7261. if ftype == TType.STRING:
  7262. self.row = iprot.readString();
  7263. else:
  7264. iprot.skip(ftype)
  7265. elif fid == 3:
  7266. if ftype == TType.I64:
  7267. self.timestamp = iprot.readI64();
  7268. else:
  7269. iprot.skip(ftype)
  7270. elif fid == 4:
  7271. if ftype == TType.MAP:
  7272. self.attributes = {}
  7273. (_ktype384, _vtype385, _size383 ) = iprot.readMapBegin()
  7274. for _i387 in xrange(_size383):
  7275. _key388 = iprot.readString();
  7276. _val389 = iprot.readString();
  7277. self.attributes[_key388] = _val389
  7278. iprot.readMapEnd()
  7279. else:
  7280. iprot.skip(ftype)
  7281. else:
  7282. iprot.skip(ftype)
  7283. iprot.readFieldEnd()
  7284. iprot.readStructEnd()
  7285. def write(self, oprot):
  7286. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7287. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7288. return
  7289. oprot.writeStructBegin('deleteAllRowTs_args')
  7290. if self.tableName is not None:
  7291. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  7292. oprot.writeString(self.tableName)
  7293. oprot.writeFieldEnd()
  7294. if self.row is not None:
  7295. oprot.writeFieldBegin('row', TType.STRING, 2)
  7296. oprot.writeString(self.row)
  7297. oprot.writeFieldEnd()
  7298. if self.timestamp is not None:
  7299. oprot.writeFieldBegin('timestamp', TType.I64, 3)
  7300. oprot.writeI64(self.timestamp)
  7301. oprot.writeFieldEnd()
  7302. if self.attributes is not None:
  7303. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  7304. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  7305. for kiter390,viter391 in self.attributes.items():
  7306. oprot.writeString(kiter390)
  7307. oprot.writeString(viter391)
  7308. oprot.writeMapEnd()
  7309. oprot.writeFieldEnd()
  7310. oprot.writeFieldStop()
  7311. oprot.writeStructEnd()
  7312. def validate(self):
  7313. return
  7314. def __repr__(self):
  7315. L = ['%s=%r' % (key, value)
  7316. for key, value in self.__dict__.iteritems()]
  7317. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7318. def __eq__(self, other):
  7319. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7320. def __ne__(self, other):
  7321. return not (self == other)
  7322. class deleteAllRowTs_result:
  7323. """
  7324. Attributes:
  7325. - io
  7326. """
  7327. thrift_spec = (
  7328. None, # 0
  7329. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7330. )
  7331. def __init__(self, io=None,):
  7332. self.io = io
  7333. def read(self, iprot):
  7334. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7335. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7336. return
  7337. iprot.readStructBegin()
  7338. while True:
  7339. (fname, ftype, fid) = iprot.readFieldBegin()
  7340. if ftype == TType.STOP:
  7341. break
  7342. if fid == 1:
  7343. if ftype == TType.STRUCT:
  7344. self.io = IOError()
  7345. self.io.read(iprot)
  7346. else:
  7347. iprot.skip(ftype)
  7348. else:
  7349. iprot.skip(ftype)
  7350. iprot.readFieldEnd()
  7351. iprot.readStructEnd()
  7352. def write(self, oprot):
  7353. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7354. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7355. return
  7356. oprot.writeStructBegin('deleteAllRowTs_result')
  7357. if self.io is not None:
  7358. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7359. self.io.write(oprot)
  7360. oprot.writeFieldEnd()
  7361. oprot.writeFieldStop()
  7362. oprot.writeStructEnd()
  7363. def validate(self):
  7364. return
  7365. def __repr__(self):
  7366. L = ['%s=%r' % (key, value)
  7367. for key, value in self.__dict__.iteritems()]
  7368. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7369. def __eq__(self, other):
  7370. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7371. def __ne__(self, other):
  7372. return not (self == other)
  7373. class scannerOpenWithScan_args:
  7374. """
  7375. Attributes:
  7376. - tableName: name of table
  7377. - scan: Scan instance
  7378. - attributes: Scan attributes
  7379. """
  7380. thrift_spec = (
  7381. None, # 0
  7382. (1, TType.STRING, 'tableName', None, None, ), # 1
  7383. (2, TType.STRUCT, 'scan', (TScan, TScan.thrift_spec), None, ), # 2
  7384. (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
  7385. )
  7386. def __init__(self, tableName=None, scan=None, attributes=None,):
  7387. self.tableName = tableName
  7388. self.scan = scan
  7389. self.attributes = attributes
  7390. def read(self, iprot):
  7391. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7392. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7393. return
  7394. iprot.readStructBegin()
  7395. while True:
  7396. (fname, ftype, fid) = iprot.readFieldBegin()
  7397. if ftype == TType.STOP:
  7398. break
  7399. if fid == 1:
  7400. if ftype == TType.STRING:
  7401. self.tableName = iprot.readString();
  7402. else:
  7403. iprot.skip(ftype)
  7404. elif fid == 2:
  7405. if ftype == TType.STRUCT:
  7406. self.scan = TScan()
  7407. self.scan.read(iprot)
  7408. else:
  7409. iprot.skip(ftype)
  7410. elif fid == 3:
  7411. if ftype == TType.MAP:
  7412. self.attributes = {}
  7413. (_ktype393, _vtype394, _size392 ) = iprot.readMapBegin()
  7414. for _i396 in xrange(_size392):
  7415. _key397 = iprot.readString();
  7416. _val398 = iprot.readString();
  7417. self.attributes[_key397] = _val398
  7418. iprot.readMapEnd()
  7419. else:
  7420. iprot.skip(ftype)
  7421. else:
  7422. iprot.skip(ftype)
  7423. iprot.readFieldEnd()
  7424. iprot.readStructEnd()
  7425. def write(self, oprot):
  7426. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7427. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7428. return
  7429. oprot.writeStructBegin('scannerOpenWithScan_args')
  7430. if self.tableName is not None:
  7431. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  7432. oprot.writeString(self.tableName)
  7433. oprot.writeFieldEnd()
  7434. if self.scan is not None:
  7435. oprot.writeFieldBegin('scan', TType.STRUCT, 2)
  7436. self.scan.write(oprot)
  7437. oprot.writeFieldEnd()
  7438. if self.attributes is not None:
  7439. oprot.writeFieldBegin('attributes', TType.MAP, 3)
  7440. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  7441. for kiter399,viter400 in self.attributes.items():
  7442. oprot.writeString(kiter399)
  7443. oprot.writeString(viter400)
  7444. oprot.writeMapEnd()
  7445. oprot.writeFieldEnd()
  7446. oprot.writeFieldStop()
  7447. oprot.writeStructEnd()
  7448. def validate(self):
  7449. return
  7450. def __repr__(self):
  7451. L = ['%s=%r' % (key, value)
  7452. for key, value in self.__dict__.iteritems()]
  7453. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7454. def __eq__(self, other):
  7455. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7456. def __ne__(self, other):
  7457. return not (self == other)
  7458. class scannerOpenWithScan_result:
  7459. """
  7460. Attributes:
  7461. - success
  7462. - io
  7463. """
  7464. thrift_spec = (
  7465. (0, TType.I32, 'success', None, None, ), # 0
  7466. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7467. )
  7468. def __init__(self, success=None, io=None,):
  7469. self.success = success
  7470. self.io = io
  7471. def read(self, iprot):
  7472. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7473. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7474. return
  7475. iprot.readStructBegin()
  7476. while True:
  7477. (fname, ftype, fid) = iprot.readFieldBegin()
  7478. if ftype == TType.STOP:
  7479. break
  7480. if fid == 0:
  7481. if ftype == TType.I32:
  7482. self.success = iprot.readI32();
  7483. else:
  7484. iprot.skip(ftype)
  7485. elif fid == 1:
  7486. if ftype == TType.STRUCT:
  7487. self.io = IOError()
  7488. self.io.read(iprot)
  7489. else:
  7490. iprot.skip(ftype)
  7491. else:
  7492. iprot.skip(ftype)
  7493. iprot.readFieldEnd()
  7494. iprot.readStructEnd()
  7495. def write(self, oprot):
  7496. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7497. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7498. return
  7499. oprot.writeStructBegin('scannerOpenWithScan_result')
  7500. if self.success is not None:
  7501. oprot.writeFieldBegin('success', TType.I32, 0)
  7502. oprot.writeI32(self.success)
  7503. oprot.writeFieldEnd()
  7504. if self.io is not None:
  7505. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7506. self.io.write(oprot)
  7507. oprot.writeFieldEnd()
  7508. oprot.writeFieldStop()
  7509. oprot.writeStructEnd()
  7510. def validate(self):
  7511. return
  7512. def __repr__(self):
  7513. L = ['%s=%r' % (key, value)
  7514. for key, value in self.__dict__.iteritems()]
  7515. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7516. def __eq__(self, other):
  7517. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7518. def __ne__(self, other):
  7519. return not (self == other)
  7520. class scannerOpen_args:
  7521. """
  7522. Attributes:
  7523. - tableName: name of table
  7524. - startRow: Starting row in table to scan.
  7525. Send "" (empty string) to start at the first row.
  7526. - columns: columns to scan. If column name is a column family, all
  7527. columns of the specified column family are returned. It's also possible
  7528. to pass a regex in the column qualifier.
  7529. - attributes: Scan attributes
  7530. """
  7531. thrift_spec = (
  7532. None, # 0
  7533. (1, TType.STRING, 'tableName', None, None, ), # 1
  7534. (2, TType.STRING, 'startRow', None, None, ), # 2
  7535. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  7536. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  7537. )
  7538. def __init__(self, tableName=None, startRow=None, columns=None, attributes=None,):
  7539. self.tableName = tableName
  7540. self.startRow = startRow
  7541. self.columns = columns
  7542. self.attributes = attributes
  7543. def read(self, iprot):
  7544. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7545. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7546. return
  7547. iprot.readStructBegin()
  7548. while True:
  7549. (fname, ftype, fid) = iprot.readFieldBegin()
  7550. if ftype == TType.STOP:
  7551. break
  7552. if fid == 1:
  7553. if ftype == TType.STRING:
  7554. self.tableName = iprot.readString();
  7555. else:
  7556. iprot.skip(ftype)
  7557. elif fid == 2:
  7558. if ftype == TType.STRING:
  7559. self.startRow = iprot.readString();
  7560. else:
  7561. iprot.skip(ftype)
  7562. elif fid == 3:
  7563. if ftype == TType.LIST:
  7564. self.columns = []
  7565. (_etype404, _size401) = iprot.readListBegin()
  7566. for _i405 in xrange(_size401):
  7567. _elem406 = iprot.readString();
  7568. self.columns.append(_elem406)
  7569. iprot.readListEnd()
  7570. else:
  7571. iprot.skip(ftype)
  7572. elif fid == 4:
  7573. if ftype == TType.MAP:
  7574. self.attributes = {}
  7575. (_ktype408, _vtype409, _size407 ) = iprot.readMapBegin()
  7576. for _i411 in xrange(_size407):
  7577. _key412 = iprot.readString();
  7578. _val413 = iprot.readString();
  7579. self.attributes[_key412] = _val413
  7580. iprot.readMapEnd()
  7581. else:
  7582. iprot.skip(ftype)
  7583. else:
  7584. iprot.skip(ftype)
  7585. iprot.readFieldEnd()
  7586. iprot.readStructEnd()
  7587. def write(self, oprot):
  7588. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7589. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7590. return
  7591. oprot.writeStructBegin('scannerOpen_args')
  7592. if self.tableName is not None:
  7593. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  7594. oprot.writeString(self.tableName)
  7595. oprot.writeFieldEnd()
  7596. if self.startRow is not None:
  7597. oprot.writeFieldBegin('startRow', TType.STRING, 2)
  7598. oprot.writeString(self.startRow)
  7599. oprot.writeFieldEnd()
  7600. if self.columns is not None:
  7601. oprot.writeFieldBegin('columns', TType.LIST, 3)
  7602. oprot.writeListBegin(TType.STRING, len(self.columns))
  7603. for iter414 in self.columns:
  7604. oprot.writeString(iter414)
  7605. oprot.writeListEnd()
  7606. oprot.writeFieldEnd()
  7607. if self.attributes is not None:
  7608. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  7609. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  7610. for kiter415,viter416 in self.attributes.items():
  7611. oprot.writeString(kiter415)
  7612. oprot.writeString(viter416)
  7613. oprot.writeMapEnd()
  7614. oprot.writeFieldEnd()
  7615. oprot.writeFieldStop()
  7616. oprot.writeStructEnd()
  7617. def validate(self):
  7618. return
  7619. def __repr__(self):
  7620. L = ['%s=%r' % (key, value)
  7621. for key, value in self.__dict__.iteritems()]
  7622. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7623. def __eq__(self, other):
  7624. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7625. def __ne__(self, other):
  7626. return not (self == other)
  7627. class scannerOpen_result:
  7628. """
  7629. Attributes:
  7630. - success
  7631. - io
  7632. """
  7633. thrift_spec = (
  7634. (0, TType.I32, 'success', None, None, ), # 0
  7635. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7636. )
  7637. def __init__(self, success=None, io=None,):
  7638. self.success = success
  7639. self.io = io
  7640. def read(self, iprot):
  7641. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7642. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7643. return
  7644. iprot.readStructBegin()
  7645. while True:
  7646. (fname, ftype, fid) = iprot.readFieldBegin()
  7647. if ftype == TType.STOP:
  7648. break
  7649. if fid == 0:
  7650. if ftype == TType.I32:
  7651. self.success = iprot.readI32();
  7652. else:
  7653. iprot.skip(ftype)
  7654. elif fid == 1:
  7655. if ftype == TType.STRUCT:
  7656. self.io = IOError()
  7657. self.io.read(iprot)
  7658. else:
  7659. iprot.skip(ftype)
  7660. else:
  7661. iprot.skip(ftype)
  7662. iprot.readFieldEnd()
  7663. iprot.readStructEnd()
  7664. def write(self, oprot):
  7665. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7666. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7667. return
  7668. oprot.writeStructBegin('scannerOpen_result')
  7669. if self.success is not None:
  7670. oprot.writeFieldBegin('success', TType.I32, 0)
  7671. oprot.writeI32(self.success)
  7672. oprot.writeFieldEnd()
  7673. if self.io is not None:
  7674. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7675. self.io.write(oprot)
  7676. oprot.writeFieldEnd()
  7677. oprot.writeFieldStop()
  7678. oprot.writeStructEnd()
  7679. def validate(self):
  7680. return
  7681. def __repr__(self):
  7682. L = ['%s=%r' % (key, value)
  7683. for key, value in self.__dict__.iteritems()]
  7684. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7685. def __eq__(self, other):
  7686. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7687. def __ne__(self, other):
  7688. return not (self == other)
  7689. class scannerOpenWithStop_args:
  7690. """
  7691. Attributes:
  7692. - tableName: name of table
  7693. - startRow: Starting row in table to scan.
  7694. Send "" (empty string) to start at the first row.
  7695. - stopRow: row to stop scanning on. This row is *not* included in the
  7696. scanner's results
  7697. - columns: columns to scan. If column name is a column family, all
  7698. columns of the specified column family are returned. It's also possible
  7699. to pass a regex in the column qualifier.
  7700. - attributes: Scan attributes
  7701. """
  7702. thrift_spec = (
  7703. None, # 0
  7704. (1, TType.STRING, 'tableName', None, None, ), # 1
  7705. (2, TType.STRING, 'startRow', None, None, ), # 2
  7706. (3, TType.STRING, 'stopRow', None, None, ), # 3
  7707. (4, TType.LIST, 'columns', (TType.STRING,None), None, ), # 4
  7708. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  7709. )
  7710. def __init__(self, tableName=None, startRow=None, stopRow=None, columns=None, attributes=None,):
  7711. self.tableName = tableName
  7712. self.startRow = startRow
  7713. self.stopRow = stopRow
  7714. self.columns = columns
  7715. self.attributes = attributes
  7716. def read(self, iprot):
  7717. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7718. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7719. return
  7720. iprot.readStructBegin()
  7721. while True:
  7722. (fname, ftype, fid) = iprot.readFieldBegin()
  7723. if ftype == TType.STOP:
  7724. break
  7725. if fid == 1:
  7726. if ftype == TType.STRING:
  7727. self.tableName = iprot.readString();
  7728. else:
  7729. iprot.skip(ftype)
  7730. elif fid == 2:
  7731. if ftype == TType.STRING:
  7732. self.startRow = iprot.readString();
  7733. else:
  7734. iprot.skip(ftype)
  7735. elif fid == 3:
  7736. if ftype == TType.STRING:
  7737. self.stopRow = iprot.readString();
  7738. else:
  7739. iprot.skip(ftype)
  7740. elif fid == 4:
  7741. if ftype == TType.LIST:
  7742. self.columns = []
  7743. (_etype420, _size417) = iprot.readListBegin()
  7744. for _i421 in xrange(_size417):
  7745. _elem422 = iprot.readString();
  7746. self.columns.append(_elem422)
  7747. iprot.readListEnd()
  7748. else:
  7749. iprot.skip(ftype)
  7750. elif fid == 5:
  7751. if ftype == TType.MAP:
  7752. self.attributes = {}
  7753. (_ktype424, _vtype425, _size423 ) = iprot.readMapBegin()
  7754. for _i427 in xrange(_size423):
  7755. _key428 = iprot.readString();
  7756. _val429 = iprot.readString();
  7757. self.attributes[_key428] = _val429
  7758. iprot.readMapEnd()
  7759. else:
  7760. iprot.skip(ftype)
  7761. else:
  7762. iprot.skip(ftype)
  7763. iprot.readFieldEnd()
  7764. iprot.readStructEnd()
  7765. def write(self, oprot):
  7766. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7767. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7768. return
  7769. oprot.writeStructBegin('scannerOpenWithStop_args')
  7770. if self.tableName is not None:
  7771. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  7772. oprot.writeString(self.tableName)
  7773. oprot.writeFieldEnd()
  7774. if self.startRow is not None:
  7775. oprot.writeFieldBegin('startRow', TType.STRING, 2)
  7776. oprot.writeString(self.startRow)
  7777. oprot.writeFieldEnd()
  7778. if self.stopRow is not None:
  7779. oprot.writeFieldBegin('stopRow', TType.STRING, 3)
  7780. oprot.writeString(self.stopRow)
  7781. oprot.writeFieldEnd()
  7782. if self.columns is not None:
  7783. oprot.writeFieldBegin('columns', TType.LIST, 4)
  7784. oprot.writeListBegin(TType.STRING, len(self.columns))
  7785. for iter430 in self.columns:
  7786. oprot.writeString(iter430)
  7787. oprot.writeListEnd()
  7788. oprot.writeFieldEnd()
  7789. if self.attributes is not None:
  7790. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  7791. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  7792. for kiter431,viter432 in self.attributes.items():
  7793. oprot.writeString(kiter431)
  7794. oprot.writeString(viter432)
  7795. oprot.writeMapEnd()
  7796. oprot.writeFieldEnd()
  7797. oprot.writeFieldStop()
  7798. oprot.writeStructEnd()
  7799. def validate(self):
  7800. return
  7801. def __repr__(self):
  7802. L = ['%s=%r' % (key, value)
  7803. for key, value in self.__dict__.iteritems()]
  7804. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7805. def __eq__(self, other):
  7806. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7807. def __ne__(self, other):
  7808. return not (self == other)
  7809. class scannerOpenWithStop_result:
  7810. """
  7811. Attributes:
  7812. - success
  7813. - io
  7814. """
  7815. thrift_spec = (
  7816. (0, TType.I32, 'success', None, None, ), # 0
  7817. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7818. )
  7819. def __init__(self, success=None, io=None,):
  7820. self.success = success
  7821. self.io = io
  7822. def read(self, iprot):
  7823. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7824. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7825. return
  7826. iprot.readStructBegin()
  7827. while True:
  7828. (fname, ftype, fid) = iprot.readFieldBegin()
  7829. if ftype == TType.STOP:
  7830. break
  7831. if fid == 0:
  7832. if ftype == TType.I32:
  7833. self.success = iprot.readI32();
  7834. else:
  7835. iprot.skip(ftype)
  7836. elif fid == 1:
  7837. if ftype == TType.STRUCT:
  7838. self.io = IOError()
  7839. self.io.read(iprot)
  7840. else:
  7841. iprot.skip(ftype)
  7842. else:
  7843. iprot.skip(ftype)
  7844. iprot.readFieldEnd()
  7845. iprot.readStructEnd()
  7846. def write(self, oprot):
  7847. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7848. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7849. return
  7850. oprot.writeStructBegin('scannerOpenWithStop_result')
  7851. if self.success is not None:
  7852. oprot.writeFieldBegin('success', TType.I32, 0)
  7853. oprot.writeI32(self.success)
  7854. oprot.writeFieldEnd()
  7855. if self.io is not None:
  7856. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7857. self.io.write(oprot)
  7858. oprot.writeFieldEnd()
  7859. oprot.writeFieldStop()
  7860. oprot.writeStructEnd()
  7861. def validate(self):
  7862. return
  7863. def __repr__(self):
  7864. L = ['%s=%r' % (key, value)
  7865. for key, value in self.__dict__.iteritems()]
  7866. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7867. def __eq__(self, other):
  7868. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7869. def __ne__(self, other):
  7870. return not (self == other)
  7871. class scannerOpenWithPrefix_args:
  7872. """
  7873. Attributes:
  7874. - tableName: name of table
  7875. - startAndPrefix: the prefix (and thus start row) of the keys you want
  7876. - columns: the columns you want returned
  7877. - attributes: Scan attributes
  7878. """
  7879. thrift_spec = (
  7880. None, # 0
  7881. (1, TType.STRING, 'tableName', None, None, ), # 1
  7882. (2, TType.STRING, 'startAndPrefix', None, None, ), # 2
  7883. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  7884. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  7885. )
  7886. def __init__(self, tableName=None, startAndPrefix=None, columns=None, attributes=None,):
  7887. self.tableName = tableName
  7888. self.startAndPrefix = startAndPrefix
  7889. self.columns = columns
  7890. self.attributes = attributes
  7891. def read(self, iprot):
  7892. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7893. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7894. return
  7895. iprot.readStructBegin()
  7896. while True:
  7897. (fname, ftype, fid) = iprot.readFieldBegin()
  7898. if ftype == TType.STOP:
  7899. break
  7900. if fid == 1:
  7901. if ftype == TType.STRING:
  7902. self.tableName = iprot.readString();
  7903. else:
  7904. iprot.skip(ftype)
  7905. elif fid == 2:
  7906. if ftype == TType.STRING:
  7907. self.startAndPrefix = iprot.readString();
  7908. else:
  7909. iprot.skip(ftype)
  7910. elif fid == 3:
  7911. if ftype == TType.LIST:
  7912. self.columns = []
  7913. (_etype436, _size433) = iprot.readListBegin()
  7914. for _i437 in xrange(_size433):
  7915. _elem438 = iprot.readString();
  7916. self.columns.append(_elem438)
  7917. iprot.readListEnd()
  7918. else:
  7919. iprot.skip(ftype)
  7920. elif fid == 4:
  7921. if ftype == TType.MAP:
  7922. self.attributes = {}
  7923. (_ktype440, _vtype441, _size439 ) = iprot.readMapBegin()
  7924. for _i443 in xrange(_size439):
  7925. _key444 = iprot.readString();
  7926. _val445 = iprot.readString();
  7927. self.attributes[_key444] = _val445
  7928. iprot.readMapEnd()
  7929. else:
  7930. iprot.skip(ftype)
  7931. else:
  7932. iprot.skip(ftype)
  7933. iprot.readFieldEnd()
  7934. iprot.readStructEnd()
  7935. def write(self, oprot):
  7936. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7937. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7938. return
  7939. oprot.writeStructBegin('scannerOpenWithPrefix_args')
  7940. if self.tableName is not None:
  7941. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  7942. oprot.writeString(self.tableName)
  7943. oprot.writeFieldEnd()
  7944. if self.startAndPrefix is not None:
  7945. oprot.writeFieldBegin('startAndPrefix', TType.STRING, 2)
  7946. oprot.writeString(self.startAndPrefix)
  7947. oprot.writeFieldEnd()
  7948. if self.columns is not None:
  7949. oprot.writeFieldBegin('columns', TType.LIST, 3)
  7950. oprot.writeListBegin(TType.STRING, len(self.columns))
  7951. for iter446 in self.columns:
  7952. oprot.writeString(iter446)
  7953. oprot.writeListEnd()
  7954. oprot.writeFieldEnd()
  7955. if self.attributes is not None:
  7956. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  7957. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  7958. for kiter447,viter448 in self.attributes.items():
  7959. oprot.writeString(kiter447)
  7960. oprot.writeString(viter448)
  7961. oprot.writeMapEnd()
  7962. oprot.writeFieldEnd()
  7963. oprot.writeFieldStop()
  7964. oprot.writeStructEnd()
  7965. def validate(self):
  7966. return
  7967. def __repr__(self):
  7968. L = ['%s=%r' % (key, value)
  7969. for key, value in self.__dict__.iteritems()]
  7970. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7971. def __eq__(self, other):
  7972. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7973. def __ne__(self, other):
  7974. return not (self == other)
  7975. class scannerOpenWithPrefix_result:
  7976. """
  7977. Attributes:
  7978. - success
  7979. - io
  7980. """
  7981. thrift_spec = (
  7982. (0, TType.I32, 'success', None, None, ), # 0
  7983. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7984. )
  7985. def __init__(self, success=None, io=None,):
  7986. self.success = success
  7987. self.io = io
  7988. def read(self, iprot):
  7989. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7990. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7991. return
  7992. iprot.readStructBegin()
  7993. while True:
  7994. (fname, ftype, fid) = iprot.readFieldBegin()
  7995. if ftype == TType.STOP:
  7996. break
  7997. if fid == 0:
  7998. if ftype == TType.I32:
  7999. self.success = iprot.readI32();
  8000. else:
  8001. iprot.skip(ftype)
  8002. elif fid == 1:
  8003. if ftype == TType.STRUCT:
  8004. self.io = IOError()
  8005. self.io.read(iprot)
  8006. else:
  8007. iprot.skip(ftype)
  8008. else:
  8009. iprot.skip(ftype)
  8010. iprot.readFieldEnd()
  8011. iprot.readStructEnd()
  8012. def write(self, oprot):
  8013. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8014. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8015. return
  8016. oprot.writeStructBegin('scannerOpenWithPrefix_result')
  8017. if self.success is not None:
  8018. oprot.writeFieldBegin('success', TType.I32, 0)
  8019. oprot.writeI32(self.success)
  8020. oprot.writeFieldEnd()
  8021. if self.io is not None:
  8022. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8023. self.io.write(oprot)
  8024. oprot.writeFieldEnd()
  8025. oprot.writeFieldStop()
  8026. oprot.writeStructEnd()
  8027. def validate(self):
  8028. return
  8029. def __repr__(self):
  8030. L = ['%s=%r' % (key, value)
  8031. for key, value in self.__dict__.iteritems()]
  8032. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8033. def __eq__(self, other):
  8034. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8035. def __ne__(self, other):
  8036. return not (self == other)
  8037. class scannerOpenTs_args:
  8038. """
  8039. Attributes:
  8040. - tableName: name of table
  8041. - startRow: Starting row in table to scan.
  8042. Send "" (empty string) to start at the first row.
  8043. - columns: columns to scan. If column name is a column family, all
  8044. columns of the specified column family are returned. It's also possible
  8045. to pass a regex in the column qualifier.
  8046. - timestamp: timestamp
  8047. - attributes: Scan attributes
  8048. """
  8049. thrift_spec = (
  8050. None, # 0
  8051. (1, TType.STRING, 'tableName', None, None, ), # 1
  8052. (2, TType.STRING, 'startRow', None, None, ), # 2
  8053. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  8054. (4, TType.I64, 'timestamp', None, None, ), # 4
  8055. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  8056. )
  8057. def __init__(self, tableName=None, startRow=None, columns=None, timestamp=None, attributes=None,):
  8058. self.tableName = tableName
  8059. self.startRow = startRow
  8060. self.columns = columns
  8061. self.timestamp = timestamp
  8062. self.attributes = attributes
  8063. def read(self, iprot):
  8064. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8065. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8066. return
  8067. iprot.readStructBegin()
  8068. while True:
  8069. (fname, ftype, fid) = iprot.readFieldBegin()
  8070. if ftype == TType.STOP:
  8071. break
  8072. if fid == 1:
  8073. if ftype == TType.STRING:
  8074. self.tableName = iprot.readString();
  8075. else:
  8076. iprot.skip(ftype)
  8077. elif fid == 2:
  8078. if ftype == TType.STRING:
  8079. self.startRow = iprot.readString();
  8080. else:
  8081. iprot.skip(ftype)
  8082. elif fid == 3:
  8083. if ftype == TType.LIST:
  8084. self.columns = []
  8085. (_etype452, _size449) = iprot.readListBegin()
  8086. for _i453 in xrange(_size449):
  8087. _elem454 = iprot.readString();
  8088. self.columns.append(_elem454)
  8089. iprot.readListEnd()
  8090. else:
  8091. iprot.skip(ftype)
  8092. elif fid == 4:
  8093. if ftype == TType.I64:
  8094. self.timestamp = iprot.readI64();
  8095. else:
  8096. iprot.skip(ftype)
  8097. elif fid == 5:
  8098. if ftype == TType.MAP:
  8099. self.attributes = {}
  8100. (_ktype456, _vtype457, _size455 ) = iprot.readMapBegin()
  8101. for _i459 in xrange(_size455):
  8102. _key460 = iprot.readString();
  8103. _val461 = iprot.readString();
  8104. self.attributes[_key460] = _val461
  8105. iprot.readMapEnd()
  8106. else:
  8107. iprot.skip(ftype)
  8108. else:
  8109. iprot.skip(ftype)
  8110. iprot.readFieldEnd()
  8111. iprot.readStructEnd()
  8112. def write(self, oprot):
  8113. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8114. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8115. return
  8116. oprot.writeStructBegin('scannerOpenTs_args')
  8117. if self.tableName is not None:
  8118. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  8119. oprot.writeString(self.tableName)
  8120. oprot.writeFieldEnd()
  8121. if self.startRow is not None:
  8122. oprot.writeFieldBegin('startRow', TType.STRING, 2)
  8123. oprot.writeString(self.startRow)
  8124. oprot.writeFieldEnd()
  8125. if self.columns is not None:
  8126. oprot.writeFieldBegin('columns', TType.LIST, 3)
  8127. oprot.writeListBegin(TType.STRING, len(self.columns))
  8128. for iter462 in self.columns:
  8129. oprot.writeString(iter462)
  8130. oprot.writeListEnd()
  8131. oprot.writeFieldEnd()
  8132. if self.timestamp is not None:
  8133. oprot.writeFieldBegin('timestamp', TType.I64, 4)
  8134. oprot.writeI64(self.timestamp)
  8135. oprot.writeFieldEnd()
  8136. if self.attributes is not None:
  8137. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  8138. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  8139. for kiter463,viter464 in self.attributes.items():
  8140. oprot.writeString(kiter463)
  8141. oprot.writeString(viter464)
  8142. oprot.writeMapEnd()
  8143. oprot.writeFieldEnd()
  8144. oprot.writeFieldStop()
  8145. oprot.writeStructEnd()
  8146. def validate(self):
  8147. return
  8148. def __repr__(self):
  8149. L = ['%s=%r' % (key, value)
  8150. for key, value in self.__dict__.iteritems()]
  8151. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8152. def __eq__(self, other):
  8153. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8154. def __ne__(self, other):
  8155. return not (self == other)
  8156. class scannerOpenTs_result:
  8157. """
  8158. Attributes:
  8159. - success
  8160. - io
  8161. """
  8162. thrift_spec = (
  8163. (0, TType.I32, 'success', None, None, ), # 0
  8164. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  8165. )
  8166. def __init__(self, success=None, io=None,):
  8167. self.success = success
  8168. self.io = io
  8169. def read(self, iprot):
  8170. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8171. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8172. return
  8173. iprot.readStructBegin()
  8174. while True:
  8175. (fname, ftype, fid) = iprot.readFieldBegin()
  8176. if ftype == TType.STOP:
  8177. break
  8178. if fid == 0:
  8179. if ftype == TType.I32:
  8180. self.success = iprot.readI32();
  8181. else:
  8182. iprot.skip(ftype)
  8183. elif fid == 1:
  8184. if ftype == TType.STRUCT:
  8185. self.io = IOError()
  8186. self.io.read(iprot)
  8187. else:
  8188. iprot.skip(ftype)
  8189. else:
  8190. iprot.skip(ftype)
  8191. iprot.readFieldEnd()
  8192. iprot.readStructEnd()
  8193. def write(self, oprot):
  8194. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8195. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8196. return
  8197. oprot.writeStructBegin('scannerOpenTs_result')
  8198. if self.success is not None:
  8199. oprot.writeFieldBegin('success', TType.I32, 0)
  8200. oprot.writeI32(self.success)
  8201. oprot.writeFieldEnd()
  8202. if self.io is not None:
  8203. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8204. self.io.write(oprot)
  8205. oprot.writeFieldEnd()
  8206. oprot.writeFieldStop()
  8207. oprot.writeStructEnd()
  8208. def validate(self):
  8209. return
  8210. def __repr__(self):
  8211. L = ['%s=%r' % (key, value)
  8212. for key, value in self.__dict__.iteritems()]
  8213. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8214. def __eq__(self, other):
  8215. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8216. def __ne__(self, other):
  8217. return not (self == other)
  8218. class scannerOpenWithStopTs_args:
  8219. """
  8220. Attributes:
  8221. - tableName: name of table
  8222. - startRow: Starting row in table to scan.
  8223. Send "" (empty string) to start at the first row.
  8224. - stopRow: row to stop scanning on. This row is *not* included in the
  8225. scanner's results
  8226. - columns: columns to scan. If column name is a column family, all
  8227. columns of the specified column family are returned. It's also possible
  8228. to pass a regex in the column qualifier.
  8229. - timestamp: timestamp
  8230. - attributes: Scan attributes
  8231. """
  8232. thrift_spec = (
  8233. None, # 0
  8234. (1, TType.STRING, 'tableName', None, None, ), # 1
  8235. (2, TType.STRING, 'startRow', None, None, ), # 2
  8236. (3, TType.STRING, 'stopRow', None, None, ), # 3
  8237. (4, TType.LIST, 'columns', (TType.STRING,None), None, ), # 4
  8238. (5, TType.I64, 'timestamp', None, None, ), # 5
  8239. (6, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 6
  8240. )
  8241. def __init__(self, tableName=None, startRow=None, stopRow=None, columns=None, timestamp=None, attributes=None,):
  8242. self.tableName = tableName
  8243. self.startRow = startRow
  8244. self.stopRow = stopRow
  8245. self.columns = columns
  8246. self.timestamp = timestamp
  8247. self.attributes = attributes
  8248. def read(self, iprot):
  8249. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8250. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8251. return
  8252. iprot.readStructBegin()
  8253. while True:
  8254. (fname, ftype, fid) = iprot.readFieldBegin()
  8255. if ftype == TType.STOP:
  8256. break
  8257. if fid == 1:
  8258. if ftype == TType.STRING:
  8259. self.tableName = iprot.readString();
  8260. else:
  8261. iprot.skip(ftype)
  8262. elif fid == 2:
  8263. if ftype == TType.STRING:
  8264. self.startRow = iprot.readString();
  8265. else:
  8266. iprot.skip(ftype)
  8267. elif fid == 3:
  8268. if ftype == TType.STRING:
  8269. self.stopRow = iprot.readString();
  8270. else:
  8271. iprot.skip(ftype)
  8272. elif fid == 4:
  8273. if ftype == TType.LIST:
  8274. self.columns = []
  8275. (_etype468, _size465) = iprot.readListBegin()
  8276. for _i469 in xrange(_size465):
  8277. _elem470 = iprot.readString();
  8278. self.columns.append(_elem470)
  8279. iprot.readListEnd()
  8280. else:
  8281. iprot.skip(ftype)
  8282. elif fid == 5:
  8283. if ftype == TType.I64:
  8284. self.timestamp = iprot.readI64();
  8285. else:
  8286. iprot.skip(ftype)
  8287. elif fid == 6:
  8288. if ftype == TType.MAP:
  8289. self.attributes = {}
  8290. (_ktype472, _vtype473, _size471 ) = iprot.readMapBegin()
  8291. for _i475 in xrange(_size471):
  8292. _key476 = iprot.readString();
  8293. _val477 = iprot.readString();
  8294. self.attributes[_key476] = _val477
  8295. iprot.readMapEnd()
  8296. else:
  8297. iprot.skip(ftype)
  8298. else:
  8299. iprot.skip(ftype)
  8300. iprot.readFieldEnd()
  8301. iprot.readStructEnd()
  8302. def write(self, oprot):
  8303. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8304. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8305. return
  8306. oprot.writeStructBegin('scannerOpenWithStopTs_args')
  8307. if self.tableName is not None:
  8308. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  8309. oprot.writeString(self.tableName)
  8310. oprot.writeFieldEnd()
  8311. if self.startRow is not None:
  8312. oprot.writeFieldBegin('startRow', TType.STRING, 2)
  8313. oprot.writeString(self.startRow)
  8314. oprot.writeFieldEnd()
  8315. if self.stopRow is not None:
  8316. oprot.writeFieldBegin('stopRow', TType.STRING, 3)
  8317. oprot.writeString(self.stopRow)
  8318. oprot.writeFieldEnd()
  8319. if self.columns is not None:
  8320. oprot.writeFieldBegin('columns', TType.LIST, 4)
  8321. oprot.writeListBegin(TType.STRING, len(self.columns))
  8322. for iter478 in self.columns:
  8323. oprot.writeString(iter478)
  8324. oprot.writeListEnd()
  8325. oprot.writeFieldEnd()
  8326. if self.timestamp is not None:
  8327. oprot.writeFieldBegin('timestamp', TType.I64, 5)
  8328. oprot.writeI64(self.timestamp)
  8329. oprot.writeFieldEnd()
  8330. if self.attributes is not None:
  8331. oprot.writeFieldBegin('attributes', TType.MAP, 6)
  8332. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  8333. for kiter479,viter480 in self.attributes.items():
  8334. oprot.writeString(kiter479)
  8335. oprot.writeString(viter480)
  8336. oprot.writeMapEnd()
  8337. oprot.writeFieldEnd()
  8338. oprot.writeFieldStop()
  8339. oprot.writeStructEnd()
  8340. def validate(self):
  8341. return
  8342. def __repr__(self):
  8343. L = ['%s=%r' % (key, value)
  8344. for key, value in self.__dict__.iteritems()]
  8345. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8346. def __eq__(self, other):
  8347. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8348. def __ne__(self, other):
  8349. return not (self == other)
  8350. class scannerOpenWithStopTs_result:
  8351. """
  8352. Attributes:
  8353. - success
  8354. - io
  8355. """
  8356. thrift_spec = (
  8357. (0, TType.I32, 'success', None, None, ), # 0
  8358. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  8359. )
  8360. def __init__(self, success=None, io=None,):
  8361. self.success = success
  8362. self.io = io
  8363. def read(self, iprot):
  8364. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8365. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8366. return
  8367. iprot.readStructBegin()
  8368. while True:
  8369. (fname, ftype, fid) = iprot.readFieldBegin()
  8370. if ftype == TType.STOP:
  8371. break
  8372. if fid == 0:
  8373. if ftype == TType.I32:
  8374. self.success = iprot.readI32();
  8375. else:
  8376. iprot.skip(ftype)
  8377. elif fid == 1:
  8378. if ftype == TType.STRUCT:
  8379. self.io = IOError()
  8380. self.io.read(iprot)
  8381. else:
  8382. iprot.skip(ftype)
  8383. else:
  8384. iprot.skip(ftype)
  8385. iprot.readFieldEnd()
  8386. iprot.readStructEnd()
  8387. def write(self, oprot):
  8388. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8389. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8390. return
  8391. oprot.writeStructBegin('scannerOpenWithStopTs_result')
  8392. if self.success is not None:
  8393. oprot.writeFieldBegin('success', TType.I32, 0)
  8394. oprot.writeI32(self.success)
  8395. oprot.writeFieldEnd()
  8396. if self.io is not None:
  8397. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8398. self.io.write(oprot)
  8399. oprot.writeFieldEnd()
  8400. oprot.writeFieldStop()
  8401. oprot.writeStructEnd()
  8402. def validate(self):
  8403. return
  8404. def __repr__(self):
  8405. L = ['%s=%r' % (key, value)
  8406. for key, value in self.__dict__.iteritems()]
  8407. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8408. def __eq__(self, other):
  8409. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8410. def __ne__(self, other):
  8411. return not (self == other)
  8412. class scannerGet_args:
  8413. """
  8414. Attributes:
  8415. - id: id of a scanner returned by scannerOpen
  8416. """
  8417. thrift_spec = (
  8418. None, # 0
  8419. (1, TType.I32, 'id', None, None, ), # 1
  8420. )
  8421. def __init__(self, id=None,):
  8422. self.id = id
  8423. def read(self, iprot):
  8424. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8425. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8426. return
  8427. iprot.readStructBegin()
  8428. while True:
  8429. (fname, ftype, fid) = iprot.readFieldBegin()
  8430. if ftype == TType.STOP:
  8431. break
  8432. if fid == 1:
  8433. if ftype == TType.I32:
  8434. self.id = iprot.readI32();
  8435. else:
  8436. iprot.skip(ftype)
  8437. else:
  8438. iprot.skip(ftype)
  8439. iprot.readFieldEnd()
  8440. iprot.readStructEnd()
  8441. def write(self, oprot):
  8442. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8443. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8444. return
  8445. oprot.writeStructBegin('scannerGet_args')
  8446. if self.id is not None:
  8447. oprot.writeFieldBegin('id', TType.I32, 1)
  8448. oprot.writeI32(self.id)
  8449. oprot.writeFieldEnd()
  8450. oprot.writeFieldStop()
  8451. oprot.writeStructEnd()
  8452. def validate(self):
  8453. return
  8454. def __repr__(self):
  8455. L = ['%s=%r' % (key, value)
  8456. for key, value in self.__dict__.iteritems()]
  8457. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8458. def __eq__(self, other):
  8459. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8460. def __ne__(self, other):
  8461. return not (self == other)
  8462. class scannerGet_result:
  8463. """
  8464. Attributes:
  8465. - success
  8466. - io
  8467. - ia
  8468. """
  8469. thrift_spec = (
  8470. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  8471. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  8472. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  8473. )
  8474. def __init__(self, success=None, io=None, ia=None,):
  8475. self.success = success
  8476. self.io = io
  8477. self.ia = ia
  8478. def read(self, iprot):
  8479. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8480. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8481. return
  8482. iprot.readStructBegin()
  8483. while True:
  8484. (fname, ftype, fid) = iprot.readFieldBegin()
  8485. if ftype == TType.STOP:
  8486. break
  8487. if fid == 0:
  8488. if ftype == TType.LIST:
  8489. self.success = []
  8490. (_etype484, _size481) = iprot.readListBegin()
  8491. for _i485 in xrange(_size481):
  8492. _elem486 = TRowResult()
  8493. _elem486.read(iprot)
  8494. self.success.append(_elem486)
  8495. iprot.readListEnd()
  8496. else:
  8497. iprot.skip(ftype)
  8498. elif fid == 1:
  8499. if ftype == TType.STRUCT:
  8500. self.io = IOError()
  8501. self.io.read(iprot)
  8502. else:
  8503. iprot.skip(ftype)
  8504. elif fid == 2:
  8505. if ftype == TType.STRUCT:
  8506. self.ia = IllegalArgument()
  8507. self.ia.read(iprot)
  8508. else:
  8509. iprot.skip(ftype)
  8510. else:
  8511. iprot.skip(ftype)
  8512. iprot.readFieldEnd()
  8513. iprot.readStructEnd()
  8514. def write(self, oprot):
  8515. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8516. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8517. return
  8518. oprot.writeStructBegin('scannerGet_result')
  8519. if self.success is not None:
  8520. oprot.writeFieldBegin('success', TType.LIST, 0)
  8521. oprot.writeListBegin(TType.STRUCT, len(self.success))
  8522. for iter487 in self.success:
  8523. iter487.write(oprot)
  8524. oprot.writeListEnd()
  8525. oprot.writeFieldEnd()
  8526. if self.io is not None:
  8527. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8528. self.io.write(oprot)
  8529. oprot.writeFieldEnd()
  8530. if self.ia is not None:
  8531. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  8532. self.ia.write(oprot)
  8533. oprot.writeFieldEnd()
  8534. oprot.writeFieldStop()
  8535. oprot.writeStructEnd()
  8536. def validate(self):
  8537. return
  8538. def __repr__(self):
  8539. L = ['%s=%r' % (key, value)
  8540. for key, value in self.__dict__.iteritems()]
  8541. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8542. def __eq__(self, other):
  8543. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8544. def __ne__(self, other):
  8545. return not (self == other)
  8546. class scannerGetList_args:
  8547. """
  8548. Attributes:
  8549. - id: id of a scanner returned by scannerOpen
  8550. - nbRows: number of results to return
  8551. """
  8552. thrift_spec = (
  8553. None, # 0
  8554. (1, TType.I32, 'id', None, None, ), # 1
  8555. (2, TType.I32, 'nbRows', None, None, ), # 2
  8556. )
  8557. def __init__(self, id=None, nbRows=None,):
  8558. self.id = id
  8559. self.nbRows = nbRows
  8560. def read(self, iprot):
  8561. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8562. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8563. return
  8564. iprot.readStructBegin()
  8565. while True:
  8566. (fname, ftype, fid) = iprot.readFieldBegin()
  8567. if ftype == TType.STOP:
  8568. break
  8569. if fid == 1:
  8570. if ftype == TType.I32:
  8571. self.id = iprot.readI32();
  8572. else:
  8573. iprot.skip(ftype)
  8574. elif fid == 2:
  8575. if ftype == TType.I32:
  8576. self.nbRows = iprot.readI32();
  8577. else:
  8578. iprot.skip(ftype)
  8579. else:
  8580. iprot.skip(ftype)
  8581. iprot.readFieldEnd()
  8582. iprot.readStructEnd()
  8583. def write(self, oprot):
  8584. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8585. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8586. return
  8587. oprot.writeStructBegin('scannerGetList_args')
  8588. if self.id is not None:
  8589. oprot.writeFieldBegin('id', TType.I32, 1)
  8590. oprot.writeI32(self.id)
  8591. oprot.writeFieldEnd()
  8592. if self.nbRows is not None:
  8593. oprot.writeFieldBegin('nbRows', TType.I32, 2)
  8594. oprot.writeI32(self.nbRows)
  8595. oprot.writeFieldEnd()
  8596. oprot.writeFieldStop()
  8597. oprot.writeStructEnd()
  8598. def validate(self):
  8599. return
  8600. def __repr__(self):
  8601. L = ['%s=%r' % (key, value)
  8602. for key, value in self.__dict__.iteritems()]
  8603. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8604. def __eq__(self, other):
  8605. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8606. def __ne__(self, other):
  8607. return not (self == other)
  8608. class scannerGetList_result:
  8609. """
  8610. Attributes:
  8611. - success
  8612. - io
  8613. - ia
  8614. """
  8615. thrift_spec = (
  8616. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  8617. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  8618. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  8619. )
  8620. def __init__(self, success=None, io=None, ia=None,):
  8621. self.success = success
  8622. self.io = io
  8623. self.ia = ia
  8624. def read(self, iprot):
  8625. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8626. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8627. return
  8628. iprot.readStructBegin()
  8629. while True:
  8630. (fname, ftype, fid) = iprot.readFieldBegin()
  8631. if ftype == TType.STOP:
  8632. break
  8633. if fid == 0:
  8634. if ftype == TType.LIST:
  8635. self.success = []
  8636. (_etype491, _size488) = iprot.readListBegin()
  8637. for _i492 in xrange(_size488):
  8638. _elem493 = TRowResult()
  8639. _elem493.read(iprot)
  8640. self.success.append(_elem493)
  8641. iprot.readListEnd()
  8642. else:
  8643. iprot.skip(ftype)
  8644. elif fid == 1:
  8645. if ftype == TType.STRUCT:
  8646. self.io = IOError()
  8647. self.io.read(iprot)
  8648. else:
  8649. iprot.skip(ftype)
  8650. elif fid == 2:
  8651. if ftype == TType.STRUCT:
  8652. self.ia = IllegalArgument()
  8653. self.ia.read(iprot)
  8654. else:
  8655. iprot.skip(ftype)
  8656. else:
  8657. iprot.skip(ftype)
  8658. iprot.readFieldEnd()
  8659. iprot.readStructEnd()
  8660. def write(self, oprot):
  8661. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8662. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8663. return
  8664. oprot.writeStructBegin('scannerGetList_result')
  8665. if self.success is not None:
  8666. oprot.writeFieldBegin('success', TType.LIST, 0)
  8667. oprot.writeListBegin(TType.STRUCT, len(self.success))
  8668. for iter494 in self.success:
  8669. iter494.write(oprot)
  8670. oprot.writeListEnd()
  8671. oprot.writeFieldEnd()
  8672. if self.io is not None:
  8673. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8674. self.io.write(oprot)
  8675. oprot.writeFieldEnd()
  8676. if self.ia is not None:
  8677. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  8678. self.ia.write(oprot)
  8679. oprot.writeFieldEnd()
  8680. oprot.writeFieldStop()
  8681. oprot.writeStructEnd()
  8682. def validate(self):
  8683. return
  8684. def __repr__(self):
  8685. L = ['%s=%r' % (key, value)
  8686. for key, value in self.__dict__.iteritems()]
  8687. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8688. def __eq__(self, other):
  8689. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8690. def __ne__(self, other):
  8691. return not (self == other)
  8692. class scannerClose_args:
  8693. """
  8694. Attributes:
  8695. - id: id of a scanner returned by scannerOpen
  8696. """
  8697. thrift_spec = (
  8698. None, # 0
  8699. (1, TType.I32, 'id', None, None, ), # 1
  8700. )
  8701. def __init__(self, id=None,):
  8702. self.id = id
  8703. def read(self, iprot):
  8704. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8705. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8706. return
  8707. iprot.readStructBegin()
  8708. while True:
  8709. (fname, ftype, fid) = iprot.readFieldBegin()
  8710. if ftype == TType.STOP:
  8711. break
  8712. if fid == 1:
  8713. if ftype == TType.I32:
  8714. self.id = iprot.readI32();
  8715. else:
  8716. iprot.skip(ftype)
  8717. else:
  8718. iprot.skip(ftype)
  8719. iprot.readFieldEnd()
  8720. iprot.readStructEnd()
  8721. def write(self, oprot):
  8722. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8723. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8724. return
  8725. oprot.writeStructBegin('scannerClose_args')
  8726. if self.id is not None:
  8727. oprot.writeFieldBegin('id', TType.I32, 1)
  8728. oprot.writeI32(self.id)
  8729. oprot.writeFieldEnd()
  8730. oprot.writeFieldStop()
  8731. oprot.writeStructEnd()
  8732. def validate(self):
  8733. return
  8734. def __repr__(self):
  8735. L = ['%s=%r' % (key, value)
  8736. for key, value in self.__dict__.iteritems()]
  8737. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8738. def __eq__(self, other):
  8739. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8740. def __ne__(self, other):
  8741. return not (self == other)
  8742. class scannerClose_result:
  8743. """
  8744. Attributes:
  8745. - io
  8746. - ia
  8747. """
  8748. thrift_spec = (
  8749. None, # 0
  8750. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  8751. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  8752. )
  8753. def __init__(self, io=None, ia=None,):
  8754. self.io = io
  8755. self.ia = ia
  8756. def read(self, iprot):
  8757. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8758. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8759. return
  8760. iprot.readStructBegin()
  8761. while True:
  8762. (fname, ftype, fid) = iprot.readFieldBegin()
  8763. if ftype == TType.STOP:
  8764. break
  8765. if fid == 1:
  8766. if ftype == TType.STRUCT:
  8767. self.io = IOError()
  8768. self.io.read(iprot)
  8769. else:
  8770. iprot.skip(ftype)
  8771. elif fid == 2:
  8772. if ftype == TType.STRUCT:
  8773. self.ia = IllegalArgument()
  8774. self.ia.read(iprot)
  8775. else:
  8776. iprot.skip(ftype)
  8777. else:
  8778. iprot.skip(ftype)
  8779. iprot.readFieldEnd()
  8780. iprot.readStructEnd()
  8781. def write(self, oprot):
  8782. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8783. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8784. return
  8785. oprot.writeStructBegin('scannerClose_result')
  8786. if self.io is not None:
  8787. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8788. self.io.write(oprot)
  8789. oprot.writeFieldEnd()
  8790. if self.ia is not None:
  8791. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  8792. self.ia.write(oprot)
  8793. oprot.writeFieldEnd()
  8794. oprot.writeFieldStop()
  8795. oprot.writeStructEnd()
  8796. def validate(self):
  8797. return
  8798. def __repr__(self):
  8799. L = ['%s=%r' % (key, value)
  8800. for key, value in self.__dict__.iteritems()]
  8801. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8802. def __eq__(self, other):
  8803. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8804. def __ne__(self, other):
  8805. return not (self == other)
  8806. class getRowOrBefore_args:
  8807. """
  8808. Attributes:
  8809. - tableName: name of table
  8810. - row: row key
  8811. - family: column name
  8812. """
  8813. thrift_spec = (
  8814. None, # 0
  8815. (1, TType.STRING, 'tableName', None, None, ), # 1
  8816. (2, TType.STRING, 'row', None, None, ), # 2
  8817. (3, TType.STRING, 'family', None, None, ), # 3
  8818. )
  8819. def __init__(self, tableName=None, row=None, family=None,):
  8820. self.tableName = tableName
  8821. self.row = row
  8822. self.family = family
  8823. def read(self, iprot):
  8824. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8825. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8826. return
  8827. iprot.readStructBegin()
  8828. while True:
  8829. (fname, ftype, fid) = iprot.readFieldBegin()
  8830. if ftype == TType.STOP:
  8831. break
  8832. if fid == 1:
  8833. if ftype == TType.STRING:
  8834. self.tableName = iprot.readString();
  8835. else:
  8836. iprot.skip(ftype)
  8837. elif fid == 2:
  8838. if ftype == TType.STRING:
  8839. self.row = iprot.readString();
  8840. else:
  8841. iprot.skip(ftype)
  8842. elif fid == 3:
  8843. if ftype == TType.STRING:
  8844. self.family = iprot.readString();
  8845. else:
  8846. iprot.skip(ftype)
  8847. else:
  8848. iprot.skip(ftype)
  8849. iprot.readFieldEnd()
  8850. iprot.readStructEnd()
  8851. def write(self, oprot):
  8852. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8853. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8854. return
  8855. oprot.writeStructBegin('getRowOrBefore_args')
  8856. if self.tableName is not None:
  8857. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  8858. oprot.writeString(self.tableName)
  8859. oprot.writeFieldEnd()
  8860. if self.row is not None:
  8861. oprot.writeFieldBegin('row', TType.STRING, 2)
  8862. oprot.writeString(self.row)
  8863. oprot.writeFieldEnd()
  8864. if self.family is not None:
  8865. oprot.writeFieldBegin('family', TType.STRING, 3)
  8866. oprot.writeString(self.family)
  8867. oprot.writeFieldEnd()
  8868. oprot.writeFieldStop()
  8869. oprot.writeStructEnd()
  8870. def validate(self):
  8871. return
  8872. def __repr__(self):
  8873. L = ['%s=%r' % (key, value)
  8874. for key, value in self.__dict__.iteritems()]
  8875. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8876. def __eq__(self, other):
  8877. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8878. def __ne__(self, other):
  8879. return not (self == other)
  8880. class getRowOrBefore_result:
  8881. """
  8882. Attributes:
  8883. - success
  8884. - io
  8885. """
  8886. thrift_spec = (
  8887. (0, TType.LIST, 'success', (TType.STRUCT,(TCell, TCell.thrift_spec)), None, ), # 0
  8888. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  8889. )
  8890. def __init__(self, success=None, io=None,):
  8891. self.success = success
  8892. self.io = io
  8893. def read(self, iprot):
  8894. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8895. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8896. return
  8897. iprot.readStructBegin()
  8898. while True:
  8899. (fname, ftype, fid) = iprot.readFieldBegin()
  8900. if ftype == TType.STOP:
  8901. break
  8902. if fid == 0:
  8903. if ftype == TType.LIST:
  8904. self.success = []
  8905. (_etype498, _size495) = iprot.readListBegin()
  8906. for _i499 in xrange(_size495):
  8907. _elem500 = TCell()
  8908. _elem500.read(iprot)
  8909. self.success.append(_elem500)
  8910. iprot.readListEnd()
  8911. else:
  8912. iprot.skip(ftype)
  8913. elif fid == 1:
  8914. if ftype == TType.STRUCT:
  8915. self.io = IOError()
  8916. self.io.read(iprot)
  8917. else:
  8918. iprot.skip(ftype)
  8919. else:
  8920. iprot.skip(ftype)
  8921. iprot.readFieldEnd()
  8922. iprot.readStructEnd()
  8923. def write(self, oprot):
  8924. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8925. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8926. return
  8927. oprot.writeStructBegin('getRowOrBefore_result')
  8928. if self.success is not None:
  8929. oprot.writeFieldBegin('success', TType.LIST, 0)
  8930. oprot.writeListBegin(TType.STRUCT, len(self.success))
  8931. for iter501 in self.success:
  8932. iter501.write(oprot)
  8933. oprot.writeListEnd()
  8934. oprot.writeFieldEnd()
  8935. if self.io is not None:
  8936. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8937. self.io.write(oprot)
  8938. oprot.writeFieldEnd()
  8939. oprot.writeFieldStop()
  8940. oprot.writeStructEnd()
  8941. def validate(self):
  8942. return
  8943. def __repr__(self):
  8944. L = ['%s=%r' % (key, value)
  8945. for key, value in self.__dict__.iteritems()]
  8946. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8947. def __eq__(self, other):
  8948. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8949. def __ne__(self, other):
  8950. return not (self == other)
  8951. class getRegionInfo_args:
  8952. """
  8953. Attributes:
  8954. - row: row key
  8955. """
  8956. thrift_spec = (
  8957. None, # 0
  8958. (1, TType.STRING, 'row', None, None, ), # 1
  8959. )
  8960. def __init__(self, row=None,):
  8961. self.row = row
  8962. def read(self, iprot):
  8963. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8964. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8965. return
  8966. iprot.readStructBegin()
  8967. while True:
  8968. (fname, ftype, fid) = iprot.readFieldBegin()
  8969. if ftype == TType.STOP:
  8970. break
  8971. if fid == 1:
  8972. if ftype == TType.STRING:
  8973. self.row = iprot.readString();
  8974. else:
  8975. iprot.skip(ftype)
  8976. else:
  8977. iprot.skip(ftype)
  8978. iprot.readFieldEnd()
  8979. iprot.readStructEnd()
  8980. def write(self, oprot):
  8981. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8982. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8983. return
  8984. oprot.writeStructBegin('getRegionInfo_args')
  8985. if self.row is not None:
  8986. oprot.writeFieldBegin('row', TType.STRING, 1)
  8987. oprot.writeString(self.row)
  8988. oprot.writeFieldEnd()
  8989. oprot.writeFieldStop()
  8990. oprot.writeStructEnd()
  8991. def validate(self):
  8992. return
  8993. def __repr__(self):
  8994. L = ['%s=%r' % (key, value)
  8995. for key, value in self.__dict__.iteritems()]
  8996. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8997. def __eq__(self, other):
  8998. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8999. def __ne__(self, other):
  9000. return not (self == other)
  9001. class getRegionInfo_result:
  9002. """
  9003. Attributes:
  9004. - success
  9005. - io
  9006. """
  9007. thrift_spec = (
  9008. (0, TType.STRUCT, 'success', (TRegionInfo, TRegionInfo.thrift_spec), None, ), # 0
  9009. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  9010. )
  9011. def __init__(self, success=None, io=None,):
  9012. self.success = success
  9013. self.io = io
  9014. def read(self, iprot):
  9015. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9016. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9017. return
  9018. iprot.readStructBegin()
  9019. while True:
  9020. (fname, ftype, fid) = iprot.readFieldBegin()
  9021. if ftype == TType.STOP:
  9022. break
  9023. if fid == 0:
  9024. if ftype == TType.STRUCT:
  9025. self.success = TRegionInfo()
  9026. self.success.read(iprot)
  9027. else:
  9028. iprot.skip(ftype)
  9029. elif fid == 1:
  9030. if ftype == TType.STRUCT:
  9031. self.io = IOError()
  9032. self.io.read(iprot)
  9033. else:
  9034. iprot.skip(ftype)
  9035. else:
  9036. iprot.skip(ftype)
  9037. iprot.readFieldEnd()
  9038. iprot.readStructEnd()
  9039. def write(self, oprot):
  9040. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9041. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9042. return
  9043. oprot.writeStructBegin('getRegionInfo_result')
  9044. if self.success is not None:
  9045. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  9046. self.success.write(oprot)
  9047. oprot.writeFieldEnd()
  9048. if self.io is not None:
  9049. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  9050. self.io.write(oprot)
  9051. oprot.writeFieldEnd()
  9052. oprot.writeFieldStop()
  9053. oprot.writeStructEnd()
  9054. def validate(self):
  9055. return
  9056. def __repr__(self):
  9057. L = ['%s=%r' % (key, value)
  9058. for key, value in self.__dict__.iteritems()]
  9059. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9060. def __eq__(self, other):
  9061. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9062. def __ne__(self, other):
  9063. return not (self == other)