Hbase.py 326 KB

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