Hbase.py 355 KB

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