Hbase.py 355 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319
  1. #
  2. # Autogenerated by Thrift Compiler (0.9.3)
  3. #
  4. # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5. #
  6. # Warning: module edited below.
  7. #
  8. # options string: py:new_style
  9. #
  10. from thrift.Thrift import TType, TMessageType, TException, TApplicationException
  11. import logging
  12. from ttypes import *
  13. from thrift.Thrift import TProcessor
  14. from thrift.transport import TTransport
  15. from thrift.protocol import TBinaryProtocol, TProtocol
  16. try:
  17. from thrift.protocol import fastbinary
  18. except:
  19. fastbinary = None
  20. from django.utils.functional import wraps
  21. ### Do as / Impersonation support.
  22. ### This should be put back if rerenerating the Thrift.
  23. ### As well as all the @do_as in Client.
  24. import logging
  25. from django.utils.encoding import smart_str
  26. from hbase.hbase_site import is_impersonation_enabled
  27. LOG = logging.getLogger(__name__)
  28. def do_as(func):
  29. def decorate(*args, **kwargs):
  30. self = args[0]
  31. username = kwargs.pop('doas')
  32. try:
  33. if is_impersonation_enabled():
  34. if hasattr(self._oprot.trans, 'TFramedTransport'):
  35. trans_client = self._oprot.trans._TFramedTransport__trans
  36. else:
  37. trans_client = self._oprot.trans._TBufferedTransport__trans
  38. trans_client.setCustomHeaders({'doAs': username})
  39. except AttributeError, e:
  40. LOG.error('Could not set doAs parameter: %s' % smart_str(e))
  41. return func(*args, **kwargs)
  42. return wraps(func)(decorate)
  43. ###
  44. class Iface(object):
  45. def enableTable(self, tableName):
  46. """
  47. Brings a table on-line (enables it)
  48. Parameters:
  49. - tableName: name of the table
  50. """
  51. pass
  52. def disableTable(self, tableName):
  53. """
  54. Disables a table (takes it off-line) If it is being served, the master
  55. will tell the servers to stop serving it.
  56. Parameters:
  57. - tableName: name of the table
  58. """
  59. pass
  60. def isTableEnabled(self, tableName):
  61. """
  62. @return true if table is on-line
  63. Parameters:
  64. - tableName: name of the table to check
  65. """
  66. pass
  67. def compact(self, tableNameOrRegionName):
  68. """
  69. Parameters:
  70. - tableNameOrRegionName
  71. """
  72. pass
  73. def majorCompact(self, tableNameOrRegionName):
  74. """
  75. Parameters:
  76. - tableNameOrRegionName
  77. """
  78. pass
  79. def getTableNames(self):
  80. """
  81. List all the userspace tables.
  82. @return returns a list of names
  83. """
  84. pass
  85. def getColumnDescriptors(self, tableName):
  86. """
  87. List all the column families assoicated with a table.
  88. @return list of column family descriptors
  89. Parameters:
  90. - tableName: table name
  91. """
  92. pass
  93. def getTableRegions(self, tableName):
  94. """
  95. List the regions associated with a table.
  96. @return list of region descriptors
  97. Parameters:
  98. - tableName: table name
  99. """
  100. pass
  101. def createTable(self, tableName, columnFamilies):
  102. """
  103. Create a table with the specified column families. The name
  104. field for each ColumnDescriptor must be set and must end in a
  105. colon (:). All other fields are optional and will get default
  106. values if not explicitly specified.
  107. @throws IllegalArgument if an input parameter is invalid
  108. @throws AlreadyExists if the table name already exists
  109. Parameters:
  110. - tableName: name of table to create
  111. - columnFamilies: list of column family descriptors
  112. """
  113. pass
  114. def deleteTable(self, tableName):
  115. """
  116. Deletes a table
  117. @throws IOError if table doesn't exist on server or there was some other
  118. problem
  119. Parameters:
  120. - tableName: name of table to delete
  121. """
  122. pass
  123. def get(self, tableName, row, column, attributes):
  124. """
  125. Get a single TCell for the specified table, row, and column at the
  126. latest timestamp. Returns an empty list if no such value exists.
  127. @return value for specified row/column
  128. Parameters:
  129. - tableName: name of table
  130. - row: row key
  131. - column: column name
  132. - attributes: Get attributes
  133. """
  134. pass
  135. def getVer(self, tableName, row, column, numVersions, attributes):
  136. """
  137. Get the specified number of versions for the specified table,
  138. row, and column.
  139. @return list of cells for specified row/column
  140. Parameters:
  141. - tableName: name of table
  142. - row: row key
  143. - column: column name
  144. - numVersions: number of versions to retrieve
  145. - attributes: Get attributes
  146. """
  147. pass
  148. def getVerTs(self, tableName, row, column, timestamp, numVersions, attributes):
  149. """
  150. Get the specified number of versions for the specified table,
  151. row, and column. Only versions less than or equal to the specified
  152. timestamp will be returned.
  153. @return list of cells for specified row/column
  154. Parameters:
  155. - tableName: name of table
  156. - row: row key
  157. - column: column name
  158. - timestamp: timestamp
  159. - numVersions: number of versions to retrieve
  160. - attributes: Get attributes
  161. """
  162. pass
  163. def getRow(self, tableName, row, attributes):
  164. """
  165. Get all the data for the specified table and row at the latest
  166. timestamp. Returns an empty list if the row does not exist.
  167. @return TRowResult containing the row and map of columns to TCells
  168. Parameters:
  169. - tableName: name of table
  170. - row: row key
  171. - attributes: Get attributes
  172. """
  173. pass
  174. def getRowWithColumns(self, tableName, row, columns, attributes):
  175. """
  176. Get the specified columns for the specified table and row at the latest
  177. timestamp. Returns an empty list if the row does not exist.
  178. @return TRowResult containing the row and map of columns to TCells
  179. Parameters:
  180. - tableName: name of table
  181. - row: row key
  182. - columns: List of columns to return, null for all columns
  183. - attributes: Get attributes
  184. """
  185. pass
  186. def getRowTs(self, tableName, row, timestamp, attributes):
  187. """
  188. Get all the data for the specified table and row at the specified
  189. timestamp. Returns an empty list if the row does not exist.
  190. @return TRowResult containing the row and map of columns to TCells
  191. Parameters:
  192. - tableName: name of the table
  193. - row: row key
  194. - timestamp: timestamp
  195. - attributes: Get attributes
  196. """
  197. pass
  198. def getRowWithColumnsTs(self, tableName, row, columns, timestamp, attributes):
  199. """
  200. Get the specified columns for the specified table and row at the specified
  201. timestamp. Returns an empty list if the row does not exist.
  202. @return TRowResult containing the row and map of columns to TCells
  203. Parameters:
  204. - tableName: name of table
  205. - row: row key
  206. - columns: List of columns to return, null for all columns
  207. - timestamp
  208. - attributes: Get attributes
  209. """
  210. pass
  211. def getRows(self, tableName, rows, attributes):
  212. """
  213. Get all the data for the specified table and rows at the latest
  214. timestamp. Returns an empty list if no rows exist.
  215. @return TRowResult containing the rows and map of columns to TCells
  216. Parameters:
  217. - tableName: name of table
  218. - rows: row keys
  219. - attributes: Get attributes
  220. """
  221. pass
  222. def getRowsWithColumns(self, tableName, rows, columns, attributes):
  223. """
  224. Get the specified columns for the specified table and rows at the latest
  225. timestamp. Returns an empty list if no rows exist.
  226. @return TRowResult containing the rows and map of columns to TCells
  227. Parameters:
  228. - tableName: name of table
  229. - rows: row keys
  230. - columns: List of columns to return, null for all columns
  231. - attributes: Get attributes
  232. """
  233. pass
  234. def getRowsTs(self, tableName, rows, timestamp, attributes):
  235. """
  236. Get all the data for the specified table and rows at the specified
  237. timestamp. Returns an empty list if no rows exist.
  238. @return TRowResult containing the rows and map of columns to TCells
  239. Parameters:
  240. - tableName: name of the table
  241. - rows: row keys
  242. - timestamp: timestamp
  243. - attributes: Get attributes
  244. """
  245. pass
  246. def getRowsWithColumnsTs(self, tableName, rows, columns, timestamp, attributes):
  247. """
  248. Get the specified columns for the specified table and rows at the specified
  249. timestamp. Returns an empty list if no rows exist.
  250. @return TRowResult containing the rows and map of columns to TCells
  251. Parameters:
  252. - tableName: name of table
  253. - rows: row keys
  254. - columns: List of columns to return, null for all columns
  255. - timestamp
  256. - attributes: Get attributes
  257. """
  258. pass
  259. def mutateRow(self, tableName, row, mutations, attributes):
  260. """
  261. Apply a series of mutations (updates/deletes) to a row in a
  262. single transaction. If an exception is thrown, then the
  263. transaction is aborted. Default current timestamp is used, and
  264. all entries will have an identical timestamp.
  265. Parameters:
  266. - tableName: name of table
  267. - row: row key
  268. - mutations: list of mutation commands
  269. - attributes: Mutation attributes
  270. """
  271. pass
  272. def mutateRowTs(self, tableName, row, mutations, timestamp, attributes):
  273. """
  274. Apply a series of mutations (updates/deletes) to a row in a
  275. single transaction. If an exception is thrown, then the
  276. transaction is aborted. The specified timestamp is used, and
  277. all entries will have an identical timestamp.
  278. Parameters:
  279. - tableName: name of table
  280. - row: row key
  281. - mutations: list of mutation commands
  282. - timestamp: timestamp
  283. - attributes: Mutation attributes
  284. """
  285. pass
  286. def mutateRows(self, tableName, rowBatches, attributes):
  287. """
  288. Apply a series of batches (each a series of mutations on a single row)
  289. in a single transaction. If an exception is thrown, then the
  290. transaction is aborted. Default current timestamp is used, and
  291. all entries will have an identical timestamp.
  292. Parameters:
  293. - tableName: name of table
  294. - rowBatches: list of row batches
  295. - attributes: Mutation attributes
  296. """
  297. pass
  298. def mutateRowsTs(self, tableName, rowBatches, timestamp, attributes):
  299. """
  300. Apply a series of batches (each a series of mutations on a single row)
  301. in a single transaction. If an exception is thrown, then the
  302. transaction is aborted. The specified timestamp is used, and
  303. all entries will have an identical timestamp.
  304. Parameters:
  305. - tableName: name of table
  306. - rowBatches: list of row batches
  307. - timestamp: timestamp
  308. - attributes: Mutation attributes
  309. """
  310. pass
  311. def atomicIncrement(self, tableName, row, column, value):
  312. """
  313. Atomically increment the column value specified. Returns the next value post increment.
  314. Parameters:
  315. - tableName: name of table
  316. - row: row to increment
  317. - column: name of column
  318. - value: amount to increment by
  319. """
  320. pass
  321. def deleteAll(self, tableName, row, column, attributes):
  322. """
  323. Delete all cells that match the passed row and column.
  324. Parameters:
  325. - tableName: name of table
  326. - row: Row to update
  327. - column: name of column whose value is to be deleted
  328. - attributes: Delete attributes
  329. """
  330. pass
  331. def deleteAllTs(self, tableName, row, column, timestamp, attributes):
  332. """
  333. Delete all cells that match the passed row and column and whose
  334. timestamp is equal-to or older than the passed timestamp.
  335. Parameters:
  336. - tableName: name of table
  337. - row: Row to update
  338. - column: name of column whose value is to be deleted
  339. - timestamp: timestamp
  340. - attributes: Delete attributes
  341. """
  342. pass
  343. def deleteAllRow(self, tableName, row, attributes):
  344. """
  345. Completely delete the row's cells.
  346. Parameters:
  347. - tableName: name of table
  348. - row: key of the row to be completely deleted.
  349. - attributes: Delete attributes
  350. """
  351. pass
  352. def increment(self, increment):
  353. """
  354. Increment a cell by the ammount.
  355. Increments can be applied async if hbase.regionserver.thrift.coalesceIncrement is set to true.
  356. False is the default. Turn to true if you need the extra performance and can accept some
  357. data loss if a thrift server dies with increments still in the queue.
  358. Parameters:
  359. - increment: The single increment to apply
  360. """
  361. pass
  362. def incrementRows(self, increments):
  363. """
  364. Parameters:
  365. - increments: The list of increments
  366. """
  367. pass
  368. def deleteAllRowTs(self, tableName, row, timestamp, attributes):
  369. """
  370. Completely delete the row's cells marked with a timestamp
  371. equal-to or older than the passed timestamp.
  372. Parameters:
  373. - tableName: name of table
  374. - row: key of the row to be completely deleted.
  375. - timestamp: timestamp
  376. - attributes: Delete attributes
  377. """
  378. pass
  379. def scannerOpenWithScan(self, tableName, scan, attributes):
  380. """
  381. Get a scanner on the current table, using the Scan instance
  382. for the scan parameters.
  383. Parameters:
  384. - tableName: name of table
  385. - scan: Scan instance
  386. - attributes: Scan attributes
  387. """
  388. pass
  389. def scannerOpen(self, tableName, startRow, columns, attributes):
  390. """
  391. Get a scanner on the current table starting at the specified row and
  392. ending at the last row in the table. Return the specified columns.
  393. @return scanner id to be used with other scanner procedures
  394. Parameters:
  395. - tableName: name of table
  396. - startRow: Starting row in table to scan.
  397. Send "" (empty string) to start at the first row.
  398. - columns: columns to scan. If column name is a column family, all
  399. columns of the specified column family are returned. It's also possible
  400. to pass a regex in the column qualifier.
  401. - attributes: Scan attributes
  402. """
  403. pass
  404. def scannerOpenWithStop(self, tableName, startRow, stopRow, columns, attributes):
  405. """
  406. Get a scanner on the current table starting and stopping at the
  407. specified rows. ending at the last row in the table. Return the
  408. specified columns.
  409. @return scanner id to be used with other scanner procedures
  410. Parameters:
  411. - tableName: name of table
  412. - startRow: Starting row in table to scan.
  413. Send "" (empty string) to start at the first row.
  414. - stopRow: row to stop scanning on. This row is *not* included in the
  415. scanner's results
  416. - columns: columns to scan. If column name is a column family, all
  417. columns of the specified column family are returned. It's also possible
  418. to pass a regex in the column qualifier.
  419. - attributes: Scan attributes
  420. """
  421. pass
  422. def scannerOpenWithPrefix(self, tableName, startAndPrefix, columns, attributes):
  423. """
  424. Open a scanner for a given prefix. That is all rows will have the specified
  425. prefix. No other rows will be returned.
  426. @return scanner id to use with other scanner calls
  427. Parameters:
  428. - tableName: name of table
  429. - startAndPrefix: the prefix (and thus start row) of the keys you want
  430. - columns: the columns you want returned
  431. - attributes: Scan attributes
  432. """
  433. pass
  434. def scannerOpenTs(self, tableName, startRow, columns, timestamp, attributes):
  435. """
  436. Get a scanner on the current table starting at the specified row and
  437. ending at the last row in the table. Return the specified columns.
  438. Only values with the specified timestamp are returned.
  439. @return scanner id to be used with other scanner procedures
  440. Parameters:
  441. - tableName: name of table
  442. - startRow: Starting row in table to scan.
  443. Send "" (empty string) to start at the first row.
  444. - columns: columns to scan. If column name is a column family, all
  445. columns of the specified column family are returned. It's also possible
  446. to pass a regex in the column qualifier.
  447. - timestamp: timestamp
  448. - attributes: Scan attributes
  449. """
  450. pass
  451. def scannerOpenWithStopTs(self, tableName, startRow, stopRow, columns, timestamp, attributes):
  452. """
  453. Get a scanner on the current table starting and stopping at the
  454. specified rows. ending at the last row in the table. Return the
  455. specified columns. Only values with the specified timestamp are
  456. returned.
  457. @return scanner id to be used with other scanner procedures
  458. Parameters:
  459. - tableName: name of table
  460. - startRow: Starting row in table to scan.
  461. Send "" (empty string) to start at the first row.
  462. - stopRow: row to stop scanning on. This row is *not* included in the
  463. scanner's results
  464. - columns: columns to scan. If column name is a column family, all
  465. columns of the specified column family are returned. It's also possible
  466. to pass a regex in the column qualifier.
  467. - timestamp: timestamp
  468. - attributes: Scan attributes
  469. """
  470. pass
  471. def scannerGet(self, id):
  472. """
  473. Returns the scanner's current row value and advances to the next
  474. row in the table. When there are no more rows in the table, or a key
  475. greater-than-or-equal-to the scanner's specified stopRow is reached,
  476. an empty list is returned.
  477. @return a TRowResult containing the current row and a map of the columns to TCells.
  478. @throws IllegalArgument if ScannerID is invalid
  479. @throws NotFound when the scanner reaches the end
  480. Parameters:
  481. - id: id of a scanner returned by scannerOpen
  482. """
  483. pass
  484. def scannerGetList(self, id, nbRows):
  485. """
  486. Returns, starting at the scanner's current row value nbRows worth of
  487. rows and advances to the next row in the table. When there are no more
  488. rows in the table, or a key greater-than-or-equal-to the scanner's
  489. specified stopRow is reached, an empty list is returned.
  490. @return a TRowResult containing the current row and a map of the columns to TCells.
  491. @throws IllegalArgument if ScannerID is invalid
  492. @throws NotFound when the scanner reaches the end
  493. Parameters:
  494. - id: id of a scanner returned by scannerOpen
  495. - nbRows: number of results to return
  496. """
  497. pass
  498. def scannerClose(self, id):
  499. """
  500. Closes the server-state associated with an open scanner.
  501. @throws IllegalArgument if ScannerID is invalid
  502. Parameters:
  503. - id: id of a scanner returned by scannerOpen
  504. """
  505. pass
  506. def getRowOrBefore(self, tableName, row, family):
  507. """
  508. Get the row just before the specified one.
  509. @return value for specified row/column
  510. Parameters:
  511. - tableName: name of table
  512. - row: row key
  513. - family: column name
  514. """
  515. pass
  516. def getRegionInfo(self, row):
  517. """
  518. Get the regininfo for the specified row. It scans
  519. the metatable to find region's start and end keys.
  520. @return value for specified row/column
  521. Parameters:
  522. - row: row key
  523. """
  524. pass
  525. class Client(Iface):
  526. def __init__(self, iprot, oprot=None):
  527. self._iprot = self._oprot = iprot
  528. if oprot is not None:
  529. self._oprot = oprot
  530. self._seqid = 0
  531. @do_as
  532. def enableTable(self, tableName):
  533. """
  534. Brings a table on-line (enables it)
  535. Parameters:
  536. - tableName: name of the table
  537. """
  538. self.send_enableTable(tableName)
  539. self.recv_enableTable()
  540. def send_enableTable(self, tableName):
  541. self._oprot.writeMessageBegin('enableTable', TMessageType.CALL, self._seqid)
  542. args = enableTable_args()
  543. args.tableName = tableName
  544. args.write(self._oprot)
  545. self._oprot.writeMessageEnd()
  546. self._oprot.trans.flush()
  547. def recv_enableTable(self):
  548. iprot = self._iprot
  549. (fname, mtype, rseqid) = iprot.readMessageBegin()
  550. if mtype == TMessageType.EXCEPTION:
  551. x = TApplicationException()
  552. x.read(iprot)
  553. iprot.readMessageEnd()
  554. raise x
  555. result = enableTable_result()
  556. result.read(iprot)
  557. iprot.readMessageEnd()
  558. if result.io is not None:
  559. raise result.io
  560. return
  561. @do_as
  562. def disableTable(self, tableName):
  563. """
  564. Disables a table (takes it off-line) If it is being served, the master
  565. will tell the servers to stop serving it.
  566. Parameters:
  567. - tableName: name of the table
  568. """
  569. self.send_disableTable(tableName)
  570. self.recv_disableTable()
  571. def send_disableTable(self, tableName):
  572. self._oprot.writeMessageBegin('disableTable', TMessageType.CALL, self._seqid)
  573. args = disableTable_args()
  574. args.tableName = tableName
  575. args.write(self._oprot)
  576. self._oprot.writeMessageEnd()
  577. self._oprot.trans.flush()
  578. def recv_disableTable(self):
  579. iprot = self._iprot
  580. (fname, mtype, rseqid) = iprot.readMessageBegin()
  581. if mtype == TMessageType.EXCEPTION:
  582. x = TApplicationException()
  583. x.read(iprot)
  584. iprot.readMessageEnd()
  585. raise x
  586. result = disableTable_result()
  587. result.read(iprot)
  588. iprot.readMessageEnd()
  589. if result.io is not None:
  590. raise result.io
  591. return
  592. @do_as
  593. def isTableEnabled(self, tableName):
  594. """
  595. @return true if table is on-line
  596. Parameters:
  597. - tableName: name of the table to check
  598. """
  599. self.send_isTableEnabled(tableName)
  600. return self.recv_isTableEnabled()
  601. def send_isTableEnabled(self, tableName):
  602. self._oprot.writeMessageBegin('isTableEnabled', TMessageType.CALL, self._seqid)
  603. args = isTableEnabled_args()
  604. args.tableName = tableName
  605. args.write(self._oprot)
  606. self._oprot.writeMessageEnd()
  607. self._oprot.trans.flush()
  608. def recv_isTableEnabled(self):
  609. iprot = self._iprot
  610. (fname, mtype, rseqid) = iprot.readMessageBegin()
  611. if mtype == TMessageType.EXCEPTION:
  612. x = TApplicationException()
  613. x.read(iprot)
  614. iprot.readMessageEnd()
  615. raise x
  616. result = isTableEnabled_result()
  617. result.read(iprot)
  618. iprot.readMessageEnd()
  619. if result.success is not None:
  620. return result.success
  621. if result.io is not None:
  622. raise result.io
  623. raise TApplicationException(TApplicationException.MISSING_RESULT, "isTableEnabled failed: unknown result")
  624. @do_as
  625. def compact(self, tableNameOrRegionName):
  626. """
  627. Parameters:
  628. - tableNameOrRegionName
  629. """
  630. self.send_compact(tableNameOrRegionName)
  631. self.recv_compact()
  632. def send_compact(self, tableNameOrRegionName):
  633. self._oprot.writeMessageBegin('compact', TMessageType.CALL, self._seqid)
  634. args = compact_args()
  635. args.tableNameOrRegionName = tableNameOrRegionName
  636. args.write(self._oprot)
  637. self._oprot.writeMessageEnd()
  638. self._oprot.trans.flush()
  639. def recv_compact(self):
  640. iprot = self._iprot
  641. (fname, mtype, rseqid) = iprot.readMessageBegin()
  642. if mtype == TMessageType.EXCEPTION:
  643. x = TApplicationException()
  644. x.read(iprot)
  645. iprot.readMessageEnd()
  646. raise x
  647. result = compact_result()
  648. result.read(iprot)
  649. iprot.readMessageEnd()
  650. if result.io is not None:
  651. raise result.io
  652. return
  653. @do_as
  654. def majorCompact(self, tableNameOrRegionName):
  655. """
  656. Parameters:
  657. - tableNameOrRegionName
  658. """
  659. self.send_majorCompact(tableNameOrRegionName)
  660. self.recv_majorCompact()
  661. def send_majorCompact(self, tableNameOrRegionName):
  662. self._oprot.writeMessageBegin('majorCompact', TMessageType.CALL, self._seqid)
  663. args = majorCompact_args()
  664. args.tableNameOrRegionName = tableNameOrRegionName
  665. args.write(self._oprot)
  666. self._oprot.writeMessageEnd()
  667. self._oprot.trans.flush()
  668. def recv_majorCompact(self):
  669. iprot = self._iprot
  670. (fname, mtype, rseqid) = iprot.readMessageBegin()
  671. if mtype == TMessageType.EXCEPTION:
  672. x = TApplicationException()
  673. x.read(iprot)
  674. iprot.readMessageEnd()
  675. raise x
  676. result = majorCompact_result()
  677. result.read(iprot)
  678. iprot.readMessageEnd()
  679. if result.io is not None:
  680. raise result.io
  681. return
  682. @do_as
  683. def getTableNames(self):
  684. """
  685. List all the userspace tables.
  686. @return returns a list of names
  687. """
  688. self.send_getTableNames()
  689. return self.recv_getTableNames()
  690. def send_getTableNames(self):
  691. self._oprot.writeMessageBegin('getTableNames', TMessageType.CALL, self._seqid)
  692. args = getTableNames_args()
  693. args.write(self._oprot)
  694. self._oprot.writeMessageEnd()
  695. self._oprot.trans.flush()
  696. def recv_getTableNames(self):
  697. iprot = self._iprot
  698. (fname, mtype, rseqid) = iprot.readMessageBegin()
  699. if mtype == TMessageType.EXCEPTION:
  700. x = TApplicationException()
  701. x.read(iprot)
  702. iprot.readMessageEnd()
  703. raise x
  704. result = getTableNames_result()
  705. result.read(iprot)
  706. iprot.readMessageEnd()
  707. if result.success is not None:
  708. return result.success
  709. if result.io is not None:
  710. raise result.io
  711. raise TApplicationException(TApplicationException.MISSING_RESULT, "getTableNames failed: unknown result")
  712. @do_as
  713. def getColumnDescriptors(self, tableName):
  714. """
  715. List all the column families assoicated with a table.
  716. @return list of column family descriptors
  717. Parameters:
  718. - tableName: table name
  719. """
  720. self.send_getColumnDescriptors(tableName)
  721. return self.recv_getColumnDescriptors()
  722. def send_getColumnDescriptors(self, tableName):
  723. self._oprot.writeMessageBegin('getColumnDescriptors', TMessageType.CALL, self._seqid)
  724. args = getColumnDescriptors_args()
  725. args.tableName = tableName
  726. args.write(self._oprot)
  727. self._oprot.writeMessageEnd()
  728. self._oprot.trans.flush()
  729. def recv_getColumnDescriptors(self):
  730. iprot = self._iprot
  731. (fname, mtype, rseqid) = iprot.readMessageBegin()
  732. if mtype == TMessageType.EXCEPTION:
  733. x = TApplicationException()
  734. x.read(iprot)
  735. iprot.readMessageEnd()
  736. raise x
  737. result = getColumnDescriptors_result()
  738. result.read(iprot)
  739. iprot.readMessageEnd()
  740. if result.success is not None:
  741. return result.success
  742. if result.io is not None:
  743. raise result.io
  744. raise TApplicationException(TApplicationException.MISSING_RESULT, "getColumnDescriptors failed: unknown result")
  745. @do_as
  746. def getTableRegions(self, tableName):
  747. """
  748. List the regions associated with a table.
  749. @return list of region descriptors
  750. Parameters:
  751. - tableName: table name
  752. """
  753. self.send_getTableRegions(tableName)
  754. return self.recv_getTableRegions()
  755. def send_getTableRegions(self, tableName):
  756. self._oprot.writeMessageBegin('getTableRegions', TMessageType.CALL, self._seqid)
  757. args = getTableRegions_args()
  758. args.tableName = tableName
  759. args.write(self._oprot)
  760. self._oprot.writeMessageEnd()
  761. self._oprot.trans.flush()
  762. def recv_getTableRegions(self):
  763. iprot = self._iprot
  764. (fname, mtype, rseqid) = iprot.readMessageBegin()
  765. if mtype == TMessageType.EXCEPTION:
  766. x = TApplicationException()
  767. x.read(iprot)
  768. iprot.readMessageEnd()
  769. raise x
  770. result = getTableRegions_result()
  771. result.read(iprot)
  772. iprot.readMessageEnd()
  773. if result.success is not None:
  774. return result.success
  775. if result.io is not None:
  776. raise result.io
  777. raise TApplicationException(TApplicationException.MISSING_RESULT, "getTableRegions failed: unknown result")
  778. @do_as
  779. def createTable(self, tableName, columnFamilies):
  780. """
  781. Create a table with the specified column families. The name
  782. field for each ColumnDescriptor must be set and must end in a
  783. colon (:). All other fields are optional and will get default
  784. values if not explicitly specified.
  785. @throws IllegalArgument if an input parameter is invalid
  786. @throws AlreadyExists if the table name already exists
  787. Parameters:
  788. - tableName: name of table to create
  789. - columnFamilies: list of column family descriptors
  790. """
  791. self.send_createTable(tableName, columnFamilies)
  792. self.recv_createTable()
  793. def send_createTable(self, tableName, columnFamilies):
  794. self._oprot.writeMessageBegin('createTable', TMessageType.CALL, self._seqid)
  795. args = createTable_args()
  796. args.tableName = tableName
  797. args.columnFamilies = columnFamilies
  798. args.write(self._oprot)
  799. self._oprot.writeMessageEnd()
  800. self._oprot.trans.flush()
  801. def recv_createTable(self):
  802. iprot = self._iprot
  803. (fname, mtype, rseqid) = iprot.readMessageBegin()
  804. if mtype == TMessageType.EXCEPTION:
  805. x = TApplicationException()
  806. x.read(iprot)
  807. iprot.readMessageEnd()
  808. raise x
  809. result = createTable_result()
  810. result.read(iprot)
  811. iprot.readMessageEnd()
  812. if result.io is not None:
  813. raise result.io
  814. if result.ia is not None:
  815. raise result.ia
  816. if result.exist is not None:
  817. raise result.exist
  818. return
  819. @do_as
  820. def deleteTable(self, tableName):
  821. """
  822. Deletes a table
  823. @throws IOError if table doesn't exist on server or there was some other
  824. problem
  825. Parameters:
  826. - tableName: name of table to delete
  827. """
  828. self.send_deleteTable(tableName)
  829. self.recv_deleteTable()
  830. def send_deleteTable(self, tableName):
  831. self._oprot.writeMessageBegin('deleteTable', TMessageType.CALL, self._seqid)
  832. args = deleteTable_args()
  833. args.tableName = tableName
  834. args.write(self._oprot)
  835. self._oprot.writeMessageEnd()
  836. self._oprot.trans.flush()
  837. def recv_deleteTable(self):
  838. iprot = self._iprot
  839. (fname, mtype, rseqid) = iprot.readMessageBegin()
  840. if mtype == TMessageType.EXCEPTION:
  841. x = TApplicationException()
  842. x.read(iprot)
  843. iprot.readMessageEnd()
  844. raise x
  845. result = deleteTable_result()
  846. result.read(iprot)
  847. iprot.readMessageEnd()
  848. if result.io is not None:
  849. raise result.io
  850. return
  851. @do_as
  852. def get(self, tableName, row, column, attributes):
  853. """
  854. Get a single TCell for the specified table, row, and column at the
  855. latest timestamp. Returns an empty list if no such value exists.
  856. @return value for specified row/column
  857. Parameters:
  858. - tableName: name of table
  859. - row: row key
  860. - column: column name
  861. - attributes: Get attributes
  862. """
  863. self.send_get(tableName, row, column, attributes)
  864. return self.recv_get()
  865. def send_get(self, tableName, row, column, attributes):
  866. self._oprot.writeMessageBegin('get', TMessageType.CALL, self._seqid)
  867. args = get_args()
  868. args.tableName = tableName
  869. args.row = row
  870. args.column = column
  871. args.attributes = attributes
  872. args.write(self._oprot)
  873. self._oprot.writeMessageEnd()
  874. self._oprot.trans.flush()
  875. def recv_get(self):
  876. iprot = self._iprot
  877. (fname, mtype, rseqid) = iprot.readMessageBegin()
  878. if mtype == TMessageType.EXCEPTION:
  879. x = TApplicationException()
  880. x.read(iprot)
  881. iprot.readMessageEnd()
  882. raise x
  883. result = get_result()
  884. result.read(iprot)
  885. iprot.readMessageEnd()
  886. if result.success is not None:
  887. return result.success
  888. if result.io is not None:
  889. raise result.io
  890. raise TApplicationException(TApplicationException.MISSING_RESULT, "get failed: unknown result")
  891. @do_as
  892. def getVer(self, tableName, row, column, numVersions, attributes):
  893. """
  894. Get the specified number of versions for the specified table,
  895. row, and column.
  896. @return list of cells for specified row/column
  897. Parameters:
  898. - tableName: name of table
  899. - row: row key
  900. - column: column name
  901. - numVersions: number of versions to retrieve
  902. - attributes: Get attributes
  903. """
  904. self.send_getVer(tableName, row, column, numVersions, attributes)
  905. return self.recv_getVer()
  906. def send_getVer(self, tableName, row, column, numVersions, attributes):
  907. self._oprot.writeMessageBegin('getVer', TMessageType.CALL, self._seqid)
  908. args = getVer_args()
  909. args.tableName = tableName
  910. args.row = row
  911. args.column = column
  912. args.numVersions = numVersions
  913. args.attributes = attributes
  914. args.write(self._oprot)
  915. self._oprot.writeMessageEnd()
  916. self._oprot.trans.flush()
  917. def recv_getVer(self):
  918. iprot = self._iprot
  919. (fname, mtype, rseqid) = iprot.readMessageBegin()
  920. if mtype == TMessageType.EXCEPTION:
  921. x = TApplicationException()
  922. x.read(iprot)
  923. iprot.readMessageEnd()
  924. raise x
  925. result = getVer_result()
  926. result.read(iprot)
  927. iprot.readMessageEnd()
  928. if result.success is not None:
  929. return result.success
  930. if result.io is not None:
  931. raise result.io
  932. raise TApplicationException(TApplicationException.MISSING_RESULT, "getVer failed: unknown result")
  933. @do_as
  934. def getVerTs(self, tableName, row, column, timestamp, numVersions, attributes):
  935. """
  936. Get the specified number of versions for the specified table,
  937. row, and column. Only versions less than or equal to the specified
  938. timestamp will be returned.
  939. @return list of cells for specified row/column
  940. Parameters:
  941. - tableName: name of table
  942. - row: row key
  943. - column: column name
  944. - timestamp: timestamp
  945. - numVersions: number of versions to retrieve
  946. - attributes: Get attributes
  947. """
  948. self.send_getVerTs(tableName, row, column, timestamp, numVersions, attributes)
  949. return self.recv_getVerTs()
  950. def send_getVerTs(self, tableName, row, column, timestamp, numVersions, attributes):
  951. self._oprot.writeMessageBegin('getVerTs', TMessageType.CALL, self._seqid)
  952. args = getVerTs_args()
  953. args.tableName = tableName
  954. args.row = row
  955. args.column = column
  956. args.timestamp = timestamp
  957. args.numVersions = numVersions
  958. args.attributes = attributes
  959. args.write(self._oprot)
  960. self._oprot.writeMessageEnd()
  961. self._oprot.trans.flush()
  962. def recv_getVerTs(self):
  963. iprot = self._iprot
  964. (fname, mtype, rseqid) = iprot.readMessageBegin()
  965. if mtype == TMessageType.EXCEPTION:
  966. x = TApplicationException()
  967. x.read(iprot)
  968. iprot.readMessageEnd()
  969. raise x
  970. result = getVerTs_result()
  971. result.read(iprot)
  972. iprot.readMessageEnd()
  973. if result.success is not None:
  974. return result.success
  975. if result.io is not None:
  976. raise result.io
  977. raise TApplicationException(TApplicationException.MISSING_RESULT, "getVerTs failed: unknown result")
  978. @do_as
  979. def getRow(self, tableName, row, attributes):
  980. """
  981. Get all the data for the specified table and row at the latest
  982. timestamp. Returns an empty list if the row does not exist.
  983. @return TRowResult containing the row and map of columns to TCells
  984. Parameters:
  985. - tableName: name of table
  986. - row: row key
  987. - attributes: Get attributes
  988. """
  989. self.send_getRow(tableName, row, attributes)
  990. return self.recv_getRow()
  991. def send_getRow(self, tableName, row, attributes):
  992. self._oprot.writeMessageBegin('getRow', TMessageType.CALL, self._seqid)
  993. args = getRow_args()
  994. args.tableName = tableName
  995. args.row = row
  996. args.attributes = attributes
  997. args.write(self._oprot)
  998. self._oprot.writeMessageEnd()
  999. self._oprot.trans.flush()
  1000. def recv_getRow(self):
  1001. iprot = self._iprot
  1002. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1003. if mtype == TMessageType.EXCEPTION:
  1004. x = TApplicationException()
  1005. x.read(iprot)
  1006. iprot.readMessageEnd()
  1007. raise x
  1008. result = getRow_result()
  1009. result.read(iprot)
  1010. iprot.readMessageEnd()
  1011. if result.success is not None:
  1012. return result.success
  1013. if result.io is not None:
  1014. raise result.io
  1015. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRow failed: unknown result")
  1016. @do_as
  1017. def getRowWithColumns(self, tableName, row, columns, attributes):
  1018. """
  1019. Get the specified columns for the specified table and row at the latest
  1020. timestamp. Returns an empty list if the row does not exist.
  1021. @return TRowResult containing the row and map of columns to TCells
  1022. Parameters:
  1023. - tableName: name of table
  1024. - row: row key
  1025. - columns: List of columns to return, null for all columns
  1026. - attributes: Get attributes
  1027. """
  1028. self.send_getRowWithColumns(tableName, row, columns, attributes)
  1029. return self.recv_getRowWithColumns()
  1030. def send_getRowWithColumns(self, tableName, row, columns, attributes):
  1031. self._oprot.writeMessageBegin('getRowWithColumns', TMessageType.CALL, self._seqid)
  1032. args = getRowWithColumns_args()
  1033. args.tableName = tableName
  1034. args.row = row
  1035. args.columns = columns
  1036. args.attributes = attributes
  1037. args.write(self._oprot)
  1038. self._oprot.writeMessageEnd()
  1039. self._oprot.trans.flush()
  1040. def recv_getRowWithColumns(self):
  1041. iprot = self._iprot
  1042. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1043. if mtype == TMessageType.EXCEPTION:
  1044. x = TApplicationException()
  1045. x.read(iprot)
  1046. iprot.readMessageEnd()
  1047. raise x
  1048. result = getRowWithColumns_result()
  1049. result.read(iprot)
  1050. iprot.readMessageEnd()
  1051. if result.success is not None:
  1052. return result.success
  1053. if result.io is not None:
  1054. raise result.io
  1055. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowWithColumns failed: unknown result")
  1056. @do_as
  1057. def getRowTs(self, tableName, row, timestamp, attributes):
  1058. """
  1059. Get all the data for the specified table and row at the specified
  1060. timestamp. Returns an empty list if the row does not exist.
  1061. @return TRowResult containing the row and map of columns to TCells
  1062. Parameters:
  1063. - tableName: name of the table
  1064. - row: row key
  1065. - timestamp: timestamp
  1066. - attributes: Get attributes
  1067. """
  1068. self.send_getRowTs(tableName, row, timestamp, attributes)
  1069. return self.recv_getRowTs()
  1070. def send_getRowTs(self, tableName, row, timestamp, attributes):
  1071. self._oprot.writeMessageBegin('getRowTs', TMessageType.CALL, self._seqid)
  1072. args = getRowTs_args()
  1073. args.tableName = tableName
  1074. args.row = row
  1075. args.timestamp = timestamp
  1076. args.attributes = attributes
  1077. args.write(self._oprot)
  1078. self._oprot.writeMessageEnd()
  1079. self._oprot.trans.flush()
  1080. def recv_getRowTs(self):
  1081. iprot = self._iprot
  1082. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1083. if mtype == TMessageType.EXCEPTION:
  1084. x = TApplicationException()
  1085. x.read(iprot)
  1086. iprot.readMessageEnd()
  1087. raise x
  1088. result = getRowTs_result()
  1089. result.read(iprot)
  1090. iprot.readMessageEnd()
  1091. if result.success is not None:
  1092. return result.success
  1093. if result.io is not None:
  1094. raise result.io
  1095. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowTs failed: unknown result")
  1096. @do_as
  1097. def getRowWithColumnsTs(self, tableName, row, columns, timestamp, attributes):
  1098. """
  1099. Get the specified columns for the specified table and row at the specified
  1100. timestamp. Returns an empty list if the row does not exist.
  1101. @return TRowResult containing the row and map of columns to TCells
  1102. Parameters:
  1103. - tableName: name of table
  1104. - row: row key
  1105. - columns: List of columns to return, null for all columns
  1106. - timestamp
  1107. - attributes: Get attributes
  1108. """
  1109. self.send_getRowWithColumnsTs(tableName, row, columns, timestamp, attributes)
  1110. return self.recv_getRowWithColumnsTs()
  1111. def send_getRowWithColumnsTs(self, tableName, row, columns, timestamp, attributes):
  1112. self._oprot.writeMessageBegin('getRowWithColumnsTs', TMessageType.CALL, self._seqid)
  1113. args = getRowWithColumnsTs_args()
  1114. args.tableName = tableName
  1115. args.row = row
  1116. args.columns = columns
  1117. args.timestamp = timestamp
  1118. args.attributes = attributes
  1119. args.write(self._oprot)
  1120. self._oprot.writeMessageEnd()
  1121. self._oprot.trans.flush()
  1122. def recv_getRowWithColumnsTs(self):
  1123. iprot = self._iprot
  1124. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1125. if mtype == TMessageType.EXCEPTION:
  1126. x = TApplicationException()
  1127. x.read(iprot)
  1128. iprot.readMessageEnd()
  1129. raise x
  1130. result = getRowWithColumnsTs_result()
  1131. result.read(iprot)
  1132. iprot.readMessageEnd()
  1133. if result.success is not None:
  1134. return result.success
  1135. if result.io is not None:
  1136. raise result.io
  1137. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowWithColumnsTs failed: unknown result")
  1138. @do_as
  1139. def getRows(self, tableName, rows, attributes):
  1140. """
  1141. Get all the data for the specified table and rows at the latest
  1142. timestamp. Returns an empty list if no rows exist.
  1143. @return TRowResult containing the rows and map of columns to TCells
  1144. Parameters:
  1145. - tableName: name of table
  1146. - rows: row keys
  1147. - attributes: Get attributes
  1148. """
  1149. self.send_getRows(tableName, rows, attributes)
  1150. return self.recv_getRows()
  1151. def send_getRows(self, tableName, rows, attributes):
  1152. self._oprot.writeMessageBegin('getRows', TMessageType.CALL, self._seqid)
  1153. args = getRows_args()
  1154. args.tableName = tableName
  1155. args.rows = rows
  1156. args.attributes = attributes
  1157. args.write(self._oprot)
  1158. self._oprot.writeMessageEnd()
  1159. self._oprot.trans.flush()
  1160. def recv_getRows(self):
  1161. iprot = self._iprot
  1162. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1163. if mtype == TMessageType.EXCEPTION:
  1164. x = TApplicationException()
  1165. x.read(iprot)
  1166. iprot.readMessageEnd()
  1167. raise x
  1168. result = getRows_result()
  1169. result.read(iprot)
  1170. iprot.readMessageEnd()
  1171. if result.success is not None:
  1172. return result.success
  1173. if result.io is not None:
  1174. raise result.io
  1175. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRows failed: unknown result")
  1176. @do_as
  1177. def getRowsWithColumns(self, tableName, rows, columns, attributes):
  1178. """
  1179. Get the specified columns for the specified table and rows at the latest
  1180. timestamp. Returns an empty list if no rows exist.
  1181. @return TRowResult containing the rows and map of columns to TCells
  1182. Parameters:
  1183. - tableName: name of table
  1184. - rows: row keys
  1185. - columns: List of columns to return, null for all columns
  1186. - attributes: Get attributes
  1187. """
  1188. self.send_getRowsWithColumns(tableName, rows, columns, attributes)
  1189. return self.recv_getRowsWithColumns()
  1190. def send_getRowsWithColumns(self, tableName, rows, columns, attributes):
  1191. self._oprot.writeMessageBegin('getRowsWithColumns', TMessageType.CALL, self._seqid)
  1192. args = getRowsWithColumns_args()
  1193. args.tableName = tableName
  1194. args.rows = rows
  1195. args.columns = columns
  1196. args.attributes = attributes
  1197. args.write(self._oprot)
  1198. self._oprot.writeMessageEnd()
  1199. self._oprot.trans.flush()
  1200. def recv_getRowsWithColumns(self):
  1201. iprot = self._iprot
  1202. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1203. if mtype == TMessageType.EXCEPTION:
  1204. x = TApplicationException()
  1205. x.read(iprot)
  1206. iprot.readMessageEnd()
  1207. raise x
  1208. result = getRowsWithColumns_result()
  1209. result.read(iprot)
  1210. iprot.readMessageEnd()
  1211. if result.success is not None:
  1212. return result.success
  1213. if result.io is not None:
  1214. raise result.io
  1215. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowsWithColumns failed: unknown result")
  1216. @do_as
  1217. def getRowsTs(self, tableName, rows, timestamp, attributes):
  1218. """
  1219. Get all the data for the specified table and rows at the specified
  1220. timestamp. Returns an empty list if no rows exist.
  1221. @return TRowResult containing the rows and map of columns to TCells
  1222. Parameters:
  1223. - tableName: name of the table
  1224. - rows: row keys
  1225. - timestamp: timestamp
  1226. - attributes: Get attributes
  1227. """
  1228. self.send_getRowsTs(tableName, rows, timestamp, attributes)
  1229. return self.recv_getRowsTs()
  1230. def send_getRowsTs(self, tableName, rows, timestamp, attributes):
  1231. self._oprot.writeMessageBegin('getRowsTs', TMessageType.CALL, self._seqid)
  1232. args = getRowsTs_args()
  1233. args.tableName = tableName
  1234. args.rows = rows
  1235. args.timestamp = timestamp
  1236. args.attributes = attributes
  1237. args.write(self._oprot)
  1238. self._oprot.writeMessageEnd()
  1239. self._oprot.trans.flush()
  1240. def recv_getRowsTs(self):
  1241. iprot = self._iprot
  1242. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1243. if mtype == TMessageType.EXCEPTION:
  1244. x = TApplicationException()
  1245. x.read(iprot)
  1246. iprot.readMessageEnd()
  1247. raise x
  1248. result = getRowsTs_result()
  1249. result.read(iprot)
  1250. iprot.readMessageEnd()
  1251. if result.success is not None:
  1252. return result.success
  1253. if result.io is not None:
  1254. raise result.io
  1255. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowsTs failed: unknown result")
  1256. @do_as
  1257. def getRowsWithColumnsTs(self, tableName, rows, columns, timestamp, attributes):
  1258. """
  1259. Get the specified columns for the specified table and rows at the specified
  1260. timestamp. Returns an empty list if no rows exist.
  1261. @return TRowResult containing the rows and map of columns to TCells
  1262. Parameters:
  1263. - tableName: name of table
  1264. - rows: row keys
  1265. - columns: List of columns to return, null for all columns
  1266. - timestamp
  1267. - attributes: Get attributes
  1268. """
  1269. self.send_getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes)
  1270. return self.recv_getRowsWithColumnsTs()
  1271. def send_getRowsWithColumnsTs(self, tableName, rows, columns, timestamp, attributes):
  1272. self._oprot.writeMessageBegin('getRowsWithColumnsTs', TMessageType.CALL, self._seqid)
  1273. args = getRowsWithColumnsTs_args()
  1274. args.tableName = tableName
  1275. args.rows = rows
  1276. args.columns = columns
  1277. args.timestamp = timestamp
  1278. args.attributes = attributes
  1279. args.write(self._oprot)
  1280. self._oprot.writeMessageEnd()
  1281. self._oprot.trans.flush()
  1282. def recv_getRowsWithColumnsTs(self):
  1283. iprot = self._iprot
  1284. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1285. if mtype == TMessageType.EXCEPTION:
  1286. x = TApplicationException()
  1287. x.read(iprot)
  1288. iprot.readMessageEnd()
  1289. raise x
  1290. result = getRowsWithColumnsTs_result()
  1291. result.read(iprot)
  1292. iprot.readMessageEnd()
  1293. if result.success is not None:
  1294. return result.success
  1295. if result.io is not None:
  1296. raise result.io
  1297. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowsWithColumnsTs failed: unknown result")
  1298. @do_as
  1299. def mutateRow(self, tableName, row, mutations, attributes):
  1300. """
  1301. Apply a series of mutations (updates/deletes) to a row in a
  1302. single transaction. If an exception is thrown, then the
  1303. transaction is aborted. Default current timestamp is used, and
  1304. all entries will have an identical timestamp.
  1305. Parameters:
  1306. - tableName: name of table
  1307. - row: row key
  1308. - mutations: list of mutation commands
  1309. - attributes: Mutation attributes
  1310. """
  1311. self.send_mutateRow(tableName, row, mutations, attributes)
  1312. self.recv_mutateRow()
  1313. def send_mutateRow(self, tableName, row, mutations, attributes):
  1314. self._oprot.writeMessageBegin('mutateRow', TMessageType.CALL, self._seqid)
  1315. args = mutateRow_args()
  1316. args.tableName = tableName
  1317. args.row = row
  1318. args.mutations = mutations
  1319. args.attributes = attributes
  1320. args.write(self._oprot)
  1321. self._oprot.writeMessageEnd()
  1322. self._oprot.trans.flush()
  1323. def recv_mutateRow(self):
  1324. iprot = self._iprot
  1325. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1326. if mtype == TMessageType.EXCEPTION:
  1327. x = TApplicationException()
  1328. x.read(iprot)
  1329. iprot.readMessageEnd()
  1330. raise x
  1331. result = mutateRow_result()
  1332. result.read(iprot)
  1333. iprot.readMessageEnd()
  1334. if result.io is not None:
  1335. raise result.io
  1336. if result.ia is not None:
  1337. raise result.ia
  1338. return
  1339. @do_as
  1340. def mutateRowTs(self, tableName, row, mutations, timestamp, attributes):
  1341. """
  1342. Apply a series of mutations (updates/deletes) to a row in a
  1343. single transaction. If an exception is thrown, then the
  1344. transaction is aborted. The specified timestamp is used, and
  1345. all entries will have an identical timestamp.
  1346. Parameters:
  1347. - tableName: name of table
  1348. - row: row key
  1349. - mutations: list of mutation commands
  1350. - timestamp: timestamp
  1351. - attributes: Mutation attributes
  1352. """
  1353. self.send_mutateRowTs(tableName, row, mutations, timestamp, attributes)
  1354. self.recv_mutateRowTs()
  1355. def send_mutateRowTs(self, tableName, row, mutations, timestamp, attributes):
  1356. self._oprot.writeMessageBegin('mutateRowTs', TMessageType.CALL, self._seqid)
  1357. args = mutateRowTs_args()
  1358. args.tableName = tableName
  1359. args.row = row
  1360. args.mutations = mutations
  1361. args.timestamp = timestamp
  1362. args.attributes = attributes
  1363. args.write(self._oprot)
  1364. self._oprot.writeMessageEnd()
  1365. self._oprot.trans.flush()
  1366. def recv_mutateRowTs(self):
  1367. iprot = self._iprot
  1368. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1369. if mtype == TMessageType.EXCEPTION:
  1370. x = TApplicationException()
  1371. x.read(iprot)
  1372. iprot.readMessageEnd()
  1373. raise x
  1374. result = mutateRowTs_result()
  1375. result.read(iprot)
  1376. iprot.readMessageEnd()
  1377. if result.io is not None:
  1378. raise result.io
  1379. if result.ia is not None:
  1380. raise result.ia
  1381. return
  1382. @do_as
  1383. def mutateRows(self, tableName, rowBatches, attributes):
  1384. """
  1385. Apply a series of batches (each a series of mutations on a single row)
  1386. in a single transaction. If an exception is thrown, then the
  1387. transaction is aborted. Default current timestamp is used, and
  1388. all entries will have an identical timestamp.
  1389. Parameters:
  1390. - tableName: name of table
  1391. - rowBatches: list of row batches
  1392. - attributes: Mutation attributes
  1393. """
  1394. self.send_mutateRows(tableName, rowBatches, attributes)
  1395. self.recv_mutateRows()
  1396. def send_mutateRows(self, tableName, rowBatches, attributes):
  1397. self._oprot.writeMessageBegin('mutateRows', TMessageType.CALL, self._seqid)
  1398. args = mutateRows_args()
  1399. args.tableName = tableName
  1400. args.rowBatches = rowBatches
  1401. args.attributes = attributes
  1402. args.write(self._oprot)
  1403. self._oprot.writeMessageEnd()
  1404. self._oprot.trans.flush()
  1405. def recv_mutateRows(self):
  1406. iprot = self._iprot
  1407. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1408. if mtype == TMessageType.EXCEPTION:
  1409. x = TApplicationException()
  1410. x.read(iprot)
  1411. iprot.readMessageEnd()
  1412. raise x
  1413. result = mutateRows_result()
  1414. result.read(iprot)
  1415. iprot.readMessageEnd()
  1416. if result.io is not None:
  1417. raise result.io
  1418. if result.ia is not None:
  1419. raise result.ia
  1420. return
  1421. @do_as
  1422. def mutateRowsTs(self, tableName, rowBatches, timestamp, attributes):
  1423. """
  1424. Apply a series of batches (each a series of mutations on a single row)
  1425. in a single transaction. If an exception is thrown, then the
  1426. transaction is aborted. The specified timestamp is used, and
  1427. all entries will have an identical timestamp.
  1428. Parameters:
  1429. - tableName: name of table
  1430. - rowBatches: list of row batches
  1431. - timestamp: timestamp
  1432. - attributes: Mutation attributes
  1433. """
  1434. self.send_mutateRowsTs(tableName, rowBatches, timestamp, attributes)
  1435. self.recv_mutateRowsTs()
  1436. def send_mutateRowsTs(self, tableName, rowBatches, timestamp, attributes):
  1437. self._oprot.writeMessageBegin('mutateRowsTs', TMessageType.CALL, self._seqid)
  1438. args = mutateRowsTs_args()
  1439. args.tableName = tableName
  1440. args.rowBatches = rowBatches
  1441. args.timestamp = timestamp
  1442. args.attributes = attributes
  1443. args.write(self._oprot)
  1444. self._oprot.writeMessageEnd()
  1445. self._oprot.trans.flush()
  1446. def recv_mutateRowsTs(self):
  1447. iprot = self._iprot
  1448. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1449. if mtype == TMessageType.EXCEPTION:
  1450. x = TApplicationException()
  1451. x.read(iprot)
  1452. iprot.readMessageEnd()
  1453. raise x
  1454. result = mutateRowsTs_result()
  1455. result.read(iprot)
  1456. iprot.readMessageEnd()
  1457. if result.io is not None:
  1458. raise result.io
  1459. if result.ia is not None:
  1460. raise result.ia
  1461. return
  1462. @do_as
  1463. def atomicIncrement(self, tableName, row, column, value):
  1464. """
  1465. Atomically increment the column value specified. Returns the next value post increment.
  1466. Parameters:
  1467. - tableName: name of table
  1468. - row: row to increment
  1469. - column: name of column
  1470. - value: amount to increment by
  1471. """
  1472. self.send_atomicIncrement(tableName, row, column, value)
  1473. return self.recv_atomicIncrement()
  1474. def send_atomicIncrement(self, tableName, row, column, value):
  1475. self._oprot.writeMessageBegin('atomicIncrement', TMessageType.CALL, self._seqid)
  1476. args = atomicIncrement_args()
  1477. args.tableName = tableName
  1478. args.row = row
  1479. args.column = column
  1480. args.value = value
  1481. args.write(self._oprot)
  1482. self._oprot.writeMessageEnd()
  1483. self._oprot.trans.flush()
  1484. def recv_atomicIncrement(self):
  1485. iprot = self._iprot
  1486. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1487. if mtype == TMessageType.EXCEPTION:
  1488. x = TApplicationException()
  1489. x.read(iprot)
  1490. iprot.readMessageEnd()
  1491. raise x
  1492. result = atomicIncrement_result()
  1493. result.read(iprot)
  1494. iprot.readMessageEnd()
  1495. if result.success is not None:
  1496. return result.success
  1497. if result.io is not None:
  1498. raise result.io
  1499. if result.ia is not None:
  1500. raise result.ia
  1501. raise TApplicationException(TApplicationException.MISSING_RESULT, "atomicIncrement failed: unknown result")
  1502. @do_as
  1503. def deleteAll(self, tableName, row, column, attributes):
  1504. """
  1505. Delete all cells that match the passed row and column.
  1506. Parameters:
  1507. - tableName: name of table
  1508. - row: Row to update
  1509. - column: name of column whose value is to be deleted
  1510. - attributes: Delete attributes
  1511. """
  1512. self.send_deleteAll(tableName, row, column, attributes)
  1513. self.recv_deleteAll()
  1514. def send_deleteAll(self, tableName, row, column, attributes):
  1515. self._oprot.writeMessageBegin('deleteAll', TMessageType.CALL, self._seqid)
  1516. args = deleteAll_args()
  1517. args.tableName = tableName
  1518. args.row = row
  1519. args.column = column
  1520. args.attributes = attributes
  1521. args.write(self._oprot)
  1522. self._oprot.writeMessageEnd()
  1523. self._oprot.trans.flush()
  1524. def recv_deleteAll(self):
  1525. iprot = self._iprot
  1526. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1527. if mtype == TMessageType.EXCEPTION:
  1528. x = TApplicationException()
  1529. x.read(iprot)
  1530. iprot.readMessageEnd()
  1531. raise x
  1532. result = deleteAll_result()
  1533. result.read(iprot)
  1534. iprot.readMessageEnd()
  1535. if result.io is not None:
  1536. raise result.io
  1537. return
  1538. @do_as
  1539. def deleteAllTs(self, tableName, row, column, timestamp, attributes):
  1540. """
  1541. Delete all cells that match the passed row and column and whose
  1542. timestamp is equal-to or older than the passed timestamp.
  1543. Parameters:
  1544. - tableName: name of table
  1545. - row: Row to update
  1546. - column: name of column whose value is to be deleted
  1547. - timestamp: timestamp
  1548. - attributes: Delete attributes
  1549. """
  1550. self.send_deleteAllTs(tableName, row, column, timestamp, attributes)
  1551. self.recv_deleteAllTs()
  1552. def send_deleteAllTs(self, tableName, row, column, timestamp, attributes):
  1553. self._oprot.writeMessageBegin('deleteAllTs', TMessageType.CALL, self._seqid)
  1554. args = deleteAllTs_args()
  1555. args.tableName = tableName
  1556. args.row = row
  1557. args.column = column
  1558. args.timestamp = timestamp
  1559. args.attributes = attributes
  1560. args.write(self._oprot)
  1561. self._oprot.writeMessageEnd()
  1562. self._oprot.trans.flush()
  1563. def recv_deleteAllTs(self):
  1564. iprot = self._iprot
  1565. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1566. if mtype == TMessageType.EXCEPTION:
  1567. x = TApplicationException()
  1568. x.read(iprot)
  1569. iprot.readMessageEnd()
  1570. raise x
  1571. result = deleteAllTs_result()
  1572. result.read(iprot)
  1573. iprot.readMessageEnd()
  1574. if result.io is not None:
  1575. raise result.io
  1576. return
  1577. @do_as
  1578. def deleteAllRow(self, tableName, row, attributes):
  1579. """
  1580. Completely delete the row's cells.
  1581. Parameters:
  1582. - tableName: name of table
  1583. - row: key of the row to be completely deleted.
  1584. - attributes: Delete attributes
  1585. """
  1586. self.send_deleteAllRow(tableName, row, attributes)
  1587. self.recv_deleteAllRow()
  1588. def send_deleteAllRow(self, tableName, row, attributes):
  1589. self._oprot.writeMessageBegin('deleteAllRow', TMessageType.CALL, self._seqid)
  1590. args = deleteAllRow_args()
  1591. args.tableName = tableName
  1592. args.row = row
  1593. args.attributes = attributes
  1594. args.write(self._oprot)
  1595. self._oprot.writeMessageEnd()
  1596. self._oprot.trans.flush()
  1597. def recv_deleteAllRow(self):
  1598. iprot = self._iprot
  1599. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1600. if mtype == TMessageType.EXCEPTION:
  1601. x = TApplicationException()
  1602. x.read(iprot)
  1603. iprot.readMessageEnd()
  1604. raise x
  1605. result = deleteAllRow_result()
  1606. result.read(iprot)
  1607. iprot.readMessageEnd()
  1608. if result.io is not None:
  1609. raise result.io
  1610. return
  1611. @do_as
  1612. def increment(self, increment):
  1613. """
  1614. Increment a cell by the ammount.
  1615. Increments can be applied async if hbase.regionserver.thrift.coalesceIncrement is set to true.
  1616. False is the default. Turn to true if you need the extra performance and can accept some
  1617. data loss if a thrift server dies with increments still in the queue.
  1618. Parameters:
  1619. - increment: The single increment to apply
  1620. """
  1621. self.send_increment(increment)
  1622. self.recv_increment()
  1623. def send_increment(self, increment):
  1624. self._oprot.writeMessageBegin('increment', TMessageType.CALL, self._seqid)
  1625. args = increment_args()
  1626. args.increment = increment
  1627. args.write(self._oprot)
  1628. self._oprot.writeMessageEnd()
  1629. self._oprot.trans.flush()
  1630. def recv_increment(self):
  1631. iprot = self._iprot
  1632. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1633. if mtype == TMessageType.EXCEPTION:
  1634. x = TApplicationException()
  1635. x.read(iprot)
  1636. iprot.readMessageEnd()
  1637. raise x
  1638. result = increment_result()
  1639. result.read(iprot)
  1640. iprot.readMessageEnd()
  1641. if result.io is not None:
  1642. raise result.io
  1643. return
  1644. @do_as
  1645. def incrementRows(self, increments):
  1646. """
  1647. Parameters:
  1648. - increments: The list of increments
  1649. """
  1650. self.send_incrementRows(increments)
  1651. self.recv_incrementRows()
  1652. def send_incrementRows(self, increments):
  1653. self._oprot.writeMessageBegin('incrementRows', TMessageType.CALL, self._seqid)
  1654. args = incrementRows_args()
  1655. args.increments = increments
  1656. args.write(self._oprot)
  1657. self._oprot.writeMessageEnd()
  1658. self._oprot.trans.flush()
  1659. def recv_incrementRows(self):
  1660. iprot = self._iprot
  1661. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1662. if mtype == TMessageType.EXCEPTION:
  1663. x = TApplicationException()
  1664. x.read(iprot)
  1665. iprot.readMessageEnd()
  1666. raise x
  1667. result = incrementRows_result()
  1668. result.read(iprot)
  1669. iprot.readMessageEnd()
  1670. if result.io is not None:
  1671. raise result.io
  1672. return
  1673. @do_as
  1674. def deleteAllRowTs(self, tableName, row, timestamp, attributes):
  1675. """
  1676. Completely delete the row's cells marked with a timestamp
  1677. equal-to or older than the passed timestamp.
  1678. Parameters:
  1679. - tableName: name of table
  1680. - row: key of the row to be completely deleted.
  1681. - timestamp: timestamp
  1682. - attributes: Delete attributes
  1683. """
  1684. self.send_deleteAllRowTs(tableName, row, timestamp, attributes)
  1685. self.recv_deleteAllRowTs()
  1686. def send_deleteAllRowTs(self, tableName, row, timestamp, attributes):
  1687. self._oprot.writeMessageBegin('deleteAllRowTs', TMessageType.CALL, self._seqid)
  1688. args = deleteAllRowTs_args()
  1689. args.tableName = tableName
  1690. args.row = row
  1691. args.timestamp = timestamp
  1692. args.attributes = attributes
  1693. args.write(self._oprot)
  1694. self._oprot.writeMessageEnd()
  1695. self._oprot.trans.flush()
  1696. def recv_deleteAllRowTs(self):
  1697. iprot = self._iprot
  1698. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1699. if mtype == TMessageType.EXCEPTION:
  1700. x = TApplicationException()
  1701. x.read(iprot)
  1702. iprot.readMessageEnd()
  1703. raise x
  1704. result = deleteAllRowTs_result()
  1705. result.read(iprot)
  1706. iprot.readMessageEnd()
  1707. if result.io is not None:
  1708. raise result.io
  1709. return
  1710. @do_as
  1711. def scannerOpenWithScan(self, tableName, scan, attributes):
  1712. """
  1713. Get a scanner on the current table, using the Scan instance
  1714. for the scan parameters.
  1715. Parameters:
  1716. - tableName: name of table
  1717. - scan: Scan instance
  1718. - attributes: Scan attributes
  1719. """
  1720. self.send_scannerOpenWithScan(tableName, scan, attributes)
  1721. return self.recv_scannerOpenWithScan()
  1722. def send_scannerOpenWithScan(self, tableName, scan, attributes):
  1723. self._oprot.writeMessageBegin('scannerOpenWithScan', TMessageType.CALL, self._seqid)
  1724. args = scannerOpenWithScan_args()
  1725. args.tableName = tableName
  1726. args.scan = scan
  1727. args.attributes = attributes
  1728. args.write(self._oprot)
  1729. self._oprot.writeMessageEnd()
  1730. self._oprot.trans.flush()
  1731. def recv_scannerOpenWithScan(self):
  1732. iprot = self._iprot
  1733. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1734. if mtype == TMessageType.EXCEPTION:
  1735. x = TApplicationException()
  1736. x.read(iprot)
  1737. iprot.readMessageEnd()
  1738. raise x
  1739. result = scannerOpenWithScan_result()
  1740. result.read(iprot)
  1741. iprot.readMessageEnd()
  1742. if result.success is not None:
  1743. return result.success
  1744. if result.io is not None:
  1745. raise result.io
  1746. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithScan failed: unknown result")
  1747. @do_as
  1748. def scannerOpen(self, tableName, startRow, columns, attributes):
  1749. """
  1750. Get a scanner on the current table starting at the specified row and
  1751. ending at the last row in the table. Return the specified columns.
  1752. @return scanner id to be used with other scanner procedures
  1753. Parameters:
  1754. - tableName: name of table
  1755. - startRow: Starting row in table to scan.
  1756. Send "" (empty string) to start at the first row.
  1757. - columns: columns to scan. If column name is a column family, all
  1758. columns of the specified column family are returned. It's also possible
  1759. to pass a regex in the column qualifier.
  1760. - attributes: Scan attributes
  1761. """
  1762. self.send_scannerOpen(tableName, startRow, columns, attributes)
  1763. return self.recv_scannerOpen()
  1764. def send_scannerOpen(self, tableName, startRow, columns, attributes):
  1765. self._oprot.writeMessageBegin('scannerOpen', TMessageType.CALL, self._seqid)
  1766. args = scannerOpen_args()
  1767. args.tableName = tableName
  1768. args.startRow = startRow
  1769. args.columns = columns
  1770. args.attributes = attributes
  1771. args.write(self._oprot)
  1772. self._oprot.writeMessageEnd()
  1773. self._oprot.trans.flush()
  1774. def recv_scannerOpen(self):
  1775. iprot = self._iprot
  1776. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1777. if mtype == TMessageType.EXCEPTION:
  1778. x = TApplicationException()
  1779. x.read(iprot)
  1780. iprot.readMessageEnd()
  1781. raise x
  1782. result = scannerOpen_result()
  1783. result.read(iprot)
  1784. iprot.readMessageEnd()
  1785. if result.success is not None:
  1786. return result.success
  1787. if result.io is not None:
  1788. raise result.io
  1789. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpen failed: unknown result")
  1790. @do_as
  1791. def scannerOpenWithStop(self, tableName, startRow, stopRow, columns, attributes):
  1792. """
  1793. Get a scanner on the current table starting and stopping at the
  1794. specified rows. ending at the last row in the table. Return the
  1795. specified columns.
  1796. @return scanner id to be used with other scanner procedures
  1797. Parameters:
  1798. - tableName: name of table
  1799. - startRow: Starting row in table to scan.
  1800. Send "" (empty string) to start at the first row.
  1801. - stopRow: row to stop scanning on. This row is *not* included in the
  1802. scanner's results
  1803. - columns: columns to scan. If column name is a column family, all
  1804. columns of the specified column family are returned. It's also possible
  1805. to pass a regex in the column qualifier.
  1806. - attributes: Scan attributes
  1807. """
  1808. self.send_scannerOpenWithStop(tableName, startRow, stopRow, columns, attributes)
  1809. return self.recv_scannerOpenWithStop()
  1810. def send_scannerOpenWithStop(self, tableName, startRow, stopRow, columns, attributes):
  1811. self._oprot.writeMessageBegin('scannerOpenWithStop', TMessageType.CALL, self._seqid)
  1812. args = scannerOpenWithStop_args()
  1813. args.tableName = tableName
  1814. args.startRow = startRow
  1815. args.stopRow = stopRow
  1816. args.columns = columns
  1817. args.attributes = attributes
  1818. args.write(self._oprot)
  1819. self._oprot.writeMessageEnd()
  1820. self._oprot.trans.flush()
  1821. def recv_scannerOpenWithStop(self):
  1822. iprot = self._iprot
  1823. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1824. if mtype == TMessageType.EXCEPTION:
  1825. x = TApplicationException()
  1826. x.read(iprot)
  1827. iprot.readMessageEnd()
  1828. raise x
  1829. result = scannerOpenWithStop_result()
  1830. result.read(iprot)
  1831. iprot.readMessageEnd()
  1832. if result.success is not None:
  1833. return result.success
  1834. if result.io is not None:
  1835. raise result.io
  1836. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithStop failed: unknown result")
  1837. @do_as
  1838. def scannerOpenWithPrefix(self, tableName, startAndPrefix, columns, attributes):
  1839. """
  1840. Open a scanner for a given prefix. That is all rows will have the specified
  1841. prefix. No other rows will be returned.
  1842. @return scanner id to use with other scanner calls
  1843. Parameters:
  1844. - tableName: name of table
  1845. - startAndPrefix: the prefix (and thus start row) of the keys you want
  1846. - columns: the columns you want returned
  1847. - attributes: Scan attributes
  1848. """
  1849. self.send_scannerOpenWithPrefix(tableName, startAndPrefix, columns, attributes)
  1850. return self.recv_scannerOpenWithPrefix()
  1851. def send_scannerOpenWithPrefix(self, tableName, startAndPrefix, columns, attributes):
  1852. self._oprot.writeMessageBegin('scannerOpenWithPrefix', TMessageType.CALL, self._seqid)
  1853. args = scannerOpenWithPrefix_args()
  1854. args.tableName = tableName
  1855. args.startAndPrefix = startAndPrefix
  1856. args.columns = columns
  1857. args.attributes = attributes
  1858. args.write(self._oprot)
  1859. self._oprot.writeMessageEnd()
  1860. self._oprot.trans.flush()
  1861. def recv_scannerOpenWithPrefix(self):
  1862. iprot = self._iprot
  1863. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1864. if mtype == TMessageType.EXCEPTION:
  1865. x = TApplicationException()
  1866. x.read(iprot)
  1867. iprot.readMessageEnd()
  1868. raise x
  1869. result = scannerOpenWithPrefix_result()
  1870. result.read(iprot)
  1871. iprot.readMessageEnd()
  1872. if result.success is not None:
  1873. return result.success
  1874. if result.io is not None:
  1875. raise result.io
  1876. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithPrefix failed: unknown result")
  1877. @do_as
  1878. def scannerOpenTs(self, tableName, startRow, columns, timestamp, attributes):
  1879. """
  1880. Get a scanner on the current table starting at the specified row and
  1881. ending at the last row in the table. Return the specified columns.
  1882. Only values with the specified timestamp are returned.
  1883. @return scanner id to be used with other scanner procedures
  1884. Parameters:
  1885. - tableName: name of table
  1886. - startRow: Starting row in table to scan.
  1887. Send "" (empty string) to start at the first row.
  1888. - columns: columns to scan. If column name is a column family, all
  1889. columns of the specified column family are returned. It's also possible
  1890. to pass a regex in the column qualifier.
  1891. - timestamp: timestamp
  1892. - attributes: Scan attributes
  1893. """
  1894. self.send_scannerOpenTs(tableName, startRow, columns, timestamp, attributes)
  1895. return self.recv_scannerOpenTs()
  1896. def send_scannerOpenTs(self, tableName, startRow, columns, timestamp, attributes):
  1897. self._oprot.writeMessageBegin('scannerOpenTs', TMessageType.CALL, self._seqid)
  1898. args = scannerOpenTs_args()
  1899. args.tableName = tableName
  1900. args.startRow = startRow
  1901. args.columns = columns
  1902. args.timestamp = timestamp
  1903. args.attributes = attributes
  1904. args.write(self._oprot)
  1905. self._oprot.writeMessageEnd()
  1906. self._oprot.trans.flush()
  1907. def recv_scannerOpenTs(self):
  1908. iprot = self._iprot
  1909. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1910. if mtype == TMessageType.EXCEPTION:
  1911. x = TApplicationException()
  1912. x.read(iprot)
  1913. iprot.readMessageEnd()
  1914. raise x
  1915. result = scannerOpenTs_result()
  1916. result.read(iprot)
  1917. iprot.readMessageEnd()
  1918. if result.success is not None:
  1919. return result.success
  1920. if result.io is not None:
  1921. raise result.io
  1922. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenTs failed: unknown result")
  1923. @do_as
  1924. def scannerOpenWithStopTs(self, tableName, startRow, stopRow, columns, timestamp, attributes):
  1925. """
  1926. Get a scanner on the current table starting and stopping at the
  1927. specified rows. ending at the last row in the table. Return the
  1928. specified columns. Only values with the specified timestamp are
  1929. returned.
  1930. @return scanner id to be used with other scanner procedures
  1931. Parameters:
  1932. - tableName: name of table
  1933. - startRow: Starting row in table to scan.
  1934. Send "" (empty string) to start at the first row.
  1935. - stopRow: row to stop scanning on. This row is *not* included in the
  1936. scanner's results
  1937. - columns: columns to scan. If column name is a column family, all
  1938. columns of the specified column family are returned. It's also possible
  1939. to pass a regex in the column qualifier.
  1940. - timestamp: timestamp
  1941. - attributes: Scan attributes
  1942. """
  1943. self.send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes)
  1944. return self.recv_scannerOpenWithStopTs()
  1945. def send_scannerOpenWithStopTs(self, tableName, startRow, stopRow, columns, timestamp, attributes):
  1946. self._oprot.writeMessageBegin('scannerOpenWithStopTs', TMessageType.CALL, self._seqid)
  1947. args = scannerOpenWithStopTs_args()
  1948. args.tableName = tableName
  1949. args.startRow = startRow
  1950. args.stopRow = stopRow
  1951. args.columns = columns
  1952. args.timestamp = timestamp
  1953. args.attributes = attributes
  1954. args.write(self._oprot)
  1955. self._oprot.writeMessageEnd()
  1956. self._oprot.trans.flush()
  1957. def recv_scannerOpenWithStopTs(self):
  1958. iprot = self._iprot
  1959. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1960. if mtype == TMessageType.EXCEPTION:
  1961. x = TApplicationException()
  1962. x.read(iprot)
  1963. iprot.readMessageEnd()
  1964. raise x
  1965. result = scannerOpenWithStopTs_result()
  1966. result.read(iprot)
  1967. iprot.readMessageEnd()
  1968. if result.success is not None:
  1969. return result.success
  1970. if result.io is not None:
  1971. raise result.io
  1972. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithStopTs failed: unknown result")
  1973. @do_as
  1974. def scannerGet(self, id):
  1975. """
  1976. Returns the scanner's current row value and advances to the next
  1977. row in the table. When there are no more rows in the table, or a key
  1978. greater-than-or-equal-to the scanner's specified stopRow is reached,
  1979. an empty list is returned.
  1980. @return a TRowResult containing the current row and a map of the columns to TCells.
  1981. @throws IllegalArgument if ScannerID is invalid
  1982. @throws NotFound when the scanner reaches the end
  1983. Parameters:
  1984. - id: id of a scanner returned by scannerOpen
  1985. """
  1986. self.send_scannerGet(id)
  1987. return self.recv_scannerGet()
  1988. def send_scannerGet(self, id):
  1989. self._oprot.writeMessageBegin('scannerGet', TMessageType.CALL, self._seqid)
  1990. args = scannerGet_args()
  1991. args.id = id
  1992. args.write(self._oprot)
  1993. self._oprot.writeMessageEnd()
  1994. self._oprot.trans.flush()
  1995. def recv_scannerGet(self):
  1996. iprot = self._iprot
  1997. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1998. if mtype == TMessageType.EXCEPTION:
  1999. x = TApplicationException()
  2000. x.read(iprot)
  2001. iprot.readMessageEnd()
  2002. raise x
  2003. result = scannerGet_result()
  2004. result.read(iprot)
  2005. iprot.readMessageEnd()
  2006. if result.success is not None:
  2007. return result.success
  2008. if result.io is not None:
  2009. raise result.io
  2010. if result.ia is not None:
  2011. raise result.ia
  2012. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerGet failed: unknown result")
  2013. @do_as
  2014. def scannerGetList(self, id, nbRows):
  2015. """
  2016. Returns, starting at the scanner's current row value nbRows worth of
  2017. rows and advances to the next row in the table. When there are no more
  2018. rows in the table, or a key greater-than-or-equal-to the scanner's
  2019. specified stopRow is reached, an empty list is returned.
  2020. @return a TRowResult containing the current row and a map of the columns to TCells.
  2021. @throws IllegalArgument if ScannerID is invalid
  2022. @throws NotFound when the scanner reaches the end
  2023. Parameters:
  2024. - id: id of a scanner returned by scannerOpen
  2025. - nbRows: number of results to return
  2026. """
  2027. self.send_scannerGetList(id, nbRows)
  2028. return self.recv_scannerGetList()
  2029. def send_scannerGetList(self, id, nbRows):
  2030. self._oprot.writeMessageBegin('scannerGetList', TMessageType.CALL, self._seqid)
  2031. args = scannerGetList_args()
  2032. args.id = id
  2033. args.nbRows = nbRows
  2034. args.write(self._oprot)
  2035. self._oprot.writeMessageEnd()
  2036. self._oprot.trans.flush()
  2037. def recv_scannerGetList(self):
  2038. iprot = self._iprot
  2039. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2040. if mtype == TMessageType.EXCEPTION:
  2041. x = TApplicationException()
  2042. x.read(iprot)
  2043. iprot.readMessageEnd()
  2044. raise x
  2045. result = scannerGetList_result()
  2046. result.read(iprot)
  2047. iprot.readMessageEnd()
  2048. if result.success is not None:
  2049. return result.success
  2050. if result.io is not None:
  2051. raise result.io
  2052. if result.ia is not None:
  2053. raise result.ia
  2054. raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerGetList failed: unknown result")
  2055. @do_as
  2056. def scannerClose(self, id):
  2057. """
  2058. Closes the server-state associated with an open scanner.
  2059. @throws IllegalArgument if ScannerID is invalid
  2060. Parameters:
  2061. - id: id of a scanner returned by scannerOpen
  2062. """
  2063. self.send_scannerClose(id)
  2064. self.recv_scannerClose()
  2065. def send_scannerClose(self, id):
  2066. self._oprot.writeMessageBegin('scannerClose', TMessageType.CALL, self._seqid)
  2067. args = scannerClose_args()
  2068. args.id = id
  2069. args.write(self._oprot)
  2070. self._oprot.writeMessageEnd()
  2071. self._oprot.trans.flush()
  2072. def recv_scannerClose(self):
  2073. iprot = self._iprot
  2074. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2075. if mtype == TMessageType.EXCEPTION:
  2076. x = TApplicationException()
  2077. x.read(iprot)
  2078. iprot.readMessageEnd()
  2079. raise x
  2080. result = scannerClose_result()
  2081. result.read(iprot)
  2082. iprot.readMessageEnd()
  2083. if result.io is not None:
  2084. raise result.io
  2085. if result.ia is not None:
  2086. raise result.ia
  2087. return
  2088. @do_as
  2089. def getRowOrBefore(self, tableName, row, family):
  2090. """
  2091. Get the row just before the specified one.
  2092. @return value for specified row/column
  2093. Parameters:
  2094. - tableName: name of table
  2095. - row: row key
  2096. - family: column name
  2097. """
  2098. self.send_getRowOrBefore(tableName, row, family)
  2099. return self.recv_getRowOrBefore()
  2100. def send_getRowOrBefore(self, tableName, row, family):
  2101. self._oprot.writeMessageBegin('getRowOrBefore', TMessageType.CALL, self._seqid)
  2102. args = getRowOrBefore_args()
  2103. args.tableName = tableName
  2104. args.row = row
  2105. args.family = family
  2106. args.write(self._oprot)
  2107. self._oprot.writeMessageEnd()
  2108. self._oprot.trans.flush()
  2109. def recv_getRowOrBefore(self):
  2110. iprot = self._iprot
  2111. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2112. if mtype == TMessageType.EXCEPTION:
  2113. x = TApplicationException()
  2114. x.read(iprot)
  2115. iprot.readMessageEnd()
  2116. raise x
  2117. result = getRowOrBefore_result()
  2118. result.read(iprot)
  2119. iprot.readMessageEnd()
  2120. if result.success is not None:
  2121. return result.success
  2122. if result.io is not None:
  2123. raise result.io
  2124. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowOrBefore failed: unknown result")
  2125. @do_as
  2126. def getRegionInfo(self, row):
  2127. """
  2128. Get the regininfo for the specified row. It scans
  2129. the metatable to find region's start and end keys.
  2130. @return value for specified row/column
  2131. Parameters:
  2132. - row: row key
  2133. """
  2134. self.send_getRegionInfo(row)
  2135. return self.recv_getRegionInfo()
  2136. def send_getRegionInfo(self, row):
  2137. self._oprot.writeMessageBegin('getRegionInfo', TMessageType.CALL, self._seqid)
  2138. args = getRegionInfo_args()
  2139. args.row = row
  2140. args.write(self._oprot)
  2141. self._oprot.writeMessageEnd()
  2142. self._oprot.trans.flush()
  2143. def recv_getRegionInfo(self):
  2144. iprot = self._iprot
  2145. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2146. if mtype == TMessageType.EXCEPTION:
  2147. x = TApplicationException()
  2148. x.read(iprot)
  2149. iprot.readMessageEnd()
  2150. raise x
  2151. result = getRegionInfo_result()
  2152. result.read(iprot)
  2153. iprot.readMessageEnd()
  2154. if result.success is not None:
  2155. return result.success
  2156. if result.io is not None:
  2157. raise result.io
  2158. raise TApplicationException(TApplicationException.MISSING_RESULT, "getRegionInfo failed: unknown result")
  2159. class Processor(Iface, TProcessor):
  2160. def __init__(self, handler):
  2161. self._handler = handler
  2162. self._processMap = {}
  2163. self._processMap["enableTable"] = Processor.process_enableTable
  2164. self._processMap["disableTable"] = Processor.process_disableTable
  2165. self._processMap["isTableEnabled"] = Processor.process_isTableEnabled
  2166. self._processMap["compact"] = Processor.process_compact
  2167. self._processMap["majorCompact"] = Processor.process_majorCompact
  2168. self._processMap["getTableNames"] = Processor.process_getTableNames
  2169. self._processMap["getColumnDescriptors"] = Processor.process_getColumnDescriptors
  2170. self._processMap["getTableRegions"] = Processor.process_getTableRegions
  2171. self._processMap["createTable"] = Processor.process_createTable
  2172. self._processMap["deleteTable"] = Processor.process_deleteTable
  2173. self._processMap["get"] = Processor.process_get
  2174. self._processMap["getVer"] = Processor.process_getVer
  2175. self._processMap["getVerTs"] = Processor.process_getVerTs
  2176. self._processMap["getRow"] = Processor.process_getRow
  2177. self._processMap["getRowWithColumns"] = Processor.process_getRowWithColumns
  2178. self._processMap["getRowTs"] = Processor.process_getRowTs
  2179. self._processMap["getRowWithColumnsTs"] = Processor.process_getRowWithColumnsTs
  2180. self._processMap["getRows"] = Processor.process_getRows
  2181. self._processMap["getRowsWithColumns"] = Processor.process_getRowsWithColumns
  2182. self._processMap["getRowsTs"] = Processor.process_getRowsTs
  2183. self._processMap["getRowsWithColumnsTs"] = Processor.process_getRowsWithColumnsTs
  2184. self._processMap["mutateRow"] = Processor.process_mutateRow
  2185. self._processMap["mutateRowTs"] = Processor.process_mutateRowTs
  2186. self._processMap["mutateRows"] = Processor.process_mutateRows
  2187. self._processMap["mutateRowsTs"] = Processor.process_mutateRowsTs
  2188. self._processMap["atomicIncrement"] = Processor.process_atomicIncrement
  2189. self._processMap["deleteAll"] = Processor.process_deleteAll
  2190. self._processMap["deleteAllTs"] = Processor.process_deleteAllTs
  2191. self._processMap["deleteAllRow"] = Processor.process_deleteAllRow
  2192. self._processMap["increment"] = Processor.process_increment
  2193. self._processMap["incrementRows"] = Processor.process_incrementRows
  2194. self._processMap["deleteAllRowTs"] = Processor.process_deleteAllRowTs
  2195. self._processMap["scannerOpenWithScan"] = Processor.process_scannerOpenWithScan
  2196. self._processMap["scannerOpen"] = Processor.process_scannerOpen
  2197. self._processMap["scannerOpenWithStop"] = Processor.process_scannerOpenWithStop
  2198. self._processMap["scannerOpenWithPrefix"] = Processor.process_scannerOpenWithPrefix
  2199. self._processMap["scannerOpenTs"] = Processor.process_scannerOpenTs
  2200. self._processMap["scannerOpenWithStopTs"] = Processor.process_scannerOpenWithStopTs
  2201. self._processMap["scannerGet"] = Processor.process_scannerGet
  2202. self._processMap["scannerGetList"] = Processor.process_scannerGetList
  2203. self._processMap["scannerClose"] = Processor.process_scannerClose
  2204. self._processMap["getRowOrBefore"] = Processor.process_getRowOrBefore
  2205. self._processMap["getRegionInfo"] = Processor.process_getRegionInfo
  2206. def process(self, iprot, oprot):
  2207. (name, type, seqid) = iprot.readMessageBegin()
  2208. if name not in self._processMap:
  2209. iprot.skip(TType.STRUCT)
  2210. iprot.readMessageEnd()
  2211. x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
  2212. oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
  2213. x.write(oprot)
  2214. oprot.writeMessageEnd()
  2215. oprot.trans.flush()
  2216. return
  2217. else:
  2218. self._processMap[name](self, seqid, iprot, oprot)
  2219. return True
  2220. def process_enableTable(self, seqid, iprot, oprot):
  2221. args = enableTable_args()
  2222. args.read(iprot)
  2223. iprot.readMessageEnd()
  2224. result = enableTable_result()
  2225. try:
  2226. self._handler.enableTable(args.tableName)
  2227. msg_type = TMessageType.REPLY
  2228. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2229. raise
  2230. except IOError as io:
  2231. msg_type = TMessageType.REPLY
  2232. result.io = io
  2233. except Exception as ex:
  2234. msg_type = TMessageType.EXCEPTION
  2235. logging.exception(ex)
  2236. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2237. oprot.writeMessageBegin("enableTable", msg_type, seqid)
  2238. result.write(oprot)
  2239. oprot.writeMessageEnd()
  2240. oprot.trans.flush()
  2241. def process_disableTable(self, seqid, iprot, oprot):
  2242. args = disableTable_args()
  2243. args.read(iprot)
  2244. iprot.readMessageEnd()
  2245. result = disableTable_result()
  2246. try:
  2247. self._handler.disableTable(args.tableName)
  2248. msg_type = TMessageType.REPLY
  2249. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2250. raise
  2251. except IOError as io:
  2252. msg_type = TMessageType.REPLY
  2253. result.io = io
  2254. except Exception as ex:
  2255. msg_type = TMessageType.EXCEPTION
  2256. logging.exception(ex)
  2257. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2258. oprot.writeMessageBegin("disableTable", msg_type, seqid)
  2259. result.write(oprot)
  2260. oprot.writeMessageEnd()
  2261. oprot.trans.flush()
  2262. def process_isTableEnabled(self, seqid, iprot, oprot):
  2263. args = isTableEnabled_args()
  2264. args.read(iprot)
  2265. iprot.readMessageEnd()
  2266. result = isTableEnabled_result()
  2267. try:
  2268. result.success = self._handler.isTableEnabled(args.tableName)
  2269. msg_type = TMessageType.REPLY
  2270. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2271. raise
  2272. except IOError as io:
  2273. msg_type = TMessageType.REPLY
  2274. result.io = io
  2275. except Exception as ex:
  2276. msg_type = TMessageType.EXCEPTION
  2277. logging.exception(ex)
  2278. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2279. oprot.writeMessageBegin("isTableEnabled", msg_type, seqid)
  2280. result.write(oprot)
  2281. oprot.writeMessageEnd()
  2282. oprot.trans.flush()
  2283. def process_compact(self, seqid, iprot, oprot):
  2284. args = compact_args()
  2285. args.read(iprot)
  2286. iprot.readMessageEnd()
  2287. result = compact_result()
  2288. try:
  2289. self._handler.compact(args.tableNameOrRegionName)
  2290. msg_type = TMessageType.REPLY
  2291. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2292. raise
  2293. except IOError as io:
  2294. msg_type = TMessageType.REPLY
  2295. result.io = io
  2296. except Exception as ex:
  2297. msg_type = TMessageType.EXCEPTION
  2298. logging.exception(ex)
  2299. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2300. oprot.writeMessageBegin("compact", msg_type, seqid)
  2301. result.write(oprot)
  2302. oprot.writeMessageEnd()
  2303. oprot.trans.flush()
  2304. def process_majorCompact(self, seqid, iprot, oprot):
  2305. args = majorCompact_args()
  2306. args.read(iprot)
  2307. iprot.readMessageEnd()
  2308. result = majorCompact_result()
  2309. try:
  2310. self._handler.majorCompact(args.tableNameOrRegionName)
  2311. msg_type = TMessageType.REPLY
  2312. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2313. raise
  2314. except IOError as io:
  2315. msg_type = TMessageType.REPLY
  2316. result.io = io
  2317. except Exception as ex:
  2318. msg_type = TMessageType.EXCEPTION
  2319. logging.exception(ex)
  2320. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2321. oprot.writeMessageBegin("majorCompact", msg_type, seqid)
  2322. result.write(oprot)
  2323. oprot.writeMessageEnd()
  2324. oprot.trans.flush()
  2325. def process_getTableNames(self, seqid, iprot, oprot):
  2326. args = getTableNames_args()
  2327. args.read(iprot)
  2328. iprot.readMessageEnd()
  2329. result = getTableNames_result()
  2330. try:
  2331. result.success = self._handler.getTableNames()
  2332. msg_type = TMessageType.REPLY
  2333. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2334. raise
  2335. except IOError as io:
  2336. msg_type = TMessageType.REPLY
  2337. result.io = io
  2338. except Exception as ex:
  2339. msg_type = TMessageType.EXCEPTION
  2340. logging.exception(ex)
  2341. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2342. oprot.writeMessageBegin("getTableNames", msg_type, seqid)
  2343. result.write(oprot)
  2344. oprot.writeMessageEnd()
  2345. oprot.trans.flush()
  2346. def process_getColumnDescriptors(self, seqid, iprot, oprot):
  2347. args = getColumnDescriptors_args()
  2348. args.read(iprot)
  2349. iprot.readMessageEnd()
  2350. result = getColumnDescriptors_result()
  2351. try:
  2352. result.success = self._handler.getColumnDescriptors(args.tableName)
  2353. msg_type = TMessageType.REPLY
  2354. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2355. raise
  2356. except IOError as io:
  2357. msg_type = TMessageType.REPLY
  2358. result.io = io
  2359. except Exception as ex:
  2360. msg_type = TMessageType.EXCEPTION
  2361. logging.exception(ex)
  2362. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2363. oprot.writeMessageBegin("getColumnDescriptors", msg_type, seqid)
  2364. result.write(oprot)
  2365. oprot.writeMessageEnd()
  2366. oprot.trans.flush()
  2367. def process_getTableRegions(self, seqid, iprot, oprot):
  2368. args = getTableRegions_args()
  2369. args.read(iprot)
  2370. iprot.readMessageEnd()
  2371. result = getTableRegions_result()
  2372. try:
  2373. result.success = self._handler.getTableRegions(args.tableName)
  2374. msg_type = TMessageType.REPLY
  2375. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2376. raise
  2377. except IOError as io:
  2378. msg_type = TMessageType.REPLY
  2379. result.io = io
  2380. except Exception as ex:
  2381. msg_type = TMessageType.EXCEPTION
  2382. logging.exception(ex)
  2383. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2384. oprot.writeMessageBegin("getTableRegions", msg_type, seqid)
  2385. result.write(oprot)
  2386. oprot.writeMessageEnd()
  2387. oprot.trans.flush()
  2388. def process_createTable(self, seqid, iprot, oprot):
  2389. args = createTable_args()
  2390. args.read(iprot)
  2391. iprot.readMessageEnd()
  2392. result = createTable_result()
  2393. try:
  2394. self._handler.createTable(args.tableName, args.columnFamilies)
  2395. msg_type = TMessageType.REPLY
  2396. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2397. raise
  2398. except IOError as io:
  2399. msg_type = TMessageType.REPLY
  2400. result.io = io
  2401. except IllegalArgument as ia:
  2402. msg_type = TMessageType.REPLY
  2403. result.ia = ia
  2404. except AlreadyExists as exist:
  2405. msg_type = TMessageType.REPLY
  2406. result.exist = exist
  2407. except Exception as ex:
  2408. msg_type = TMessageType.EXCEPTION
  2409. logging.exception(ex)
  2410. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2411. oprot.writeMessageBegin("createTable", msg_type, seqid)
  2412. result.write(oprot)
  2413. oprot.writeMessageEnd()
  2414. oprot.trans.flush()
  2415. def process_deleteTable(self, seqid, iprot, oprot):
  2416. args = deleteTable_args()
  2417. args.read(iprot)
  2418. iprot.readMessageEnd()
  2419. result = deleteTable_result()
  2420. try:
  2421. self._handler.deleteTable(args.tableName)
  2422. msg_type = TMessageType.REPLY
  2423. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2424. raise
  2425. except IOError as io:
  2426. msg_type = TMessageType.REPLY
  2427. result.io = io
  2428. except Exception as ex:
  2429. msg_type = TMessageType.EXCEPTION
  2430. logging.exception(ex)
  2431. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2432. oprot.writeMessageBegin("deleteTable", msg_type, seqid)
  2433. result.write(oprot)
  2434. oprot.writeMessageEnd()
  2435. oprot.trans.flush()
  2436. def process_get(self, seqid, iprot, oprot):
  2437. args = get_args()
  2438. args.read(iprot)
  2439. iprot.readMessageEnd()
  2440. result = get_result()
  2441. try:
  2442. result.success = self._handler.get(args.tableName, args.row, args.column, args.attributes)
  2443. msg_type = TMessageType.REPLY
  2444. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2445. raise
  2446. except IOError as io:
  2447. msg_type = TMessageType.REPLY
  2448. result.io = io
  2449. except Exception as ex:
  2450. msg_type = TMessageType.EXCEPTION
  2451. logging.exception(ex)
  2452. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2453. oprot.writeMessageBegin("get", msg_type, seqid)
  2454. result.write(oprot)
  2455. oprot.writeMessageEnd()
  2456. oprot.trans.flush()
  2457. def process_getVer(self, seqid, iprot, oprot):
  2458. args = getVer_args()
  2459. args.read(iprot)
  2460. iprot.readMessageEnd()
  2461. result = getVer_result()
  2462. try:
  2463. result.success = self._handler.getVer(args.tableName, args.row, args.column, args.numVersions, args.attributes)
  2464. msg_type = TMessageType.REPLY
  2465. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2466. raise
  2467. except IOError as io:
  2468. msg_type = TMessageType.REPLY
  2469. result.io = io
  2470. except Exception as ex:
  2471. msg_type = TMessageType.EXCEPTION
  2472. logging.exception(ex)
  2473. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2474. oprot.writeMessageBegin("getVer", msg_type, seqid)
  2475. result.write(oprot)
  2476. oprot.writeMessageEnd()
  2477. oprot.trans.flush()
  2478. def process_getVerTs(self, seqid, iprot, oprot):
  2479. args = getVerTs_args()
  2480. args.read(iprot)
  2481. iprot.readMessageEnd()
  2482. result = getVerTs_result()
  2483. try:
  2484. result.success = self._handler.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions, args.attributes)
  2485. msg_type = TMessageType.REPLY
  2486. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2487. raise
  2488. except IOError as io:
  2489. msg_type = TMessageType.REPLY
  2490. result.io = io
  2491. except Exception as ex:
  2492. msg_type = TMessageType.EXCEPTION
  2493. logging.exception(ex)
  2494. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2495. oprot.writeMessageBegin("getVerTs", msg_type, seqid)
  2496. result.write(oprot)
  2497. oprot.writeMessageEnd()
  2498. oprot.trans.flush()
  2499. def process_getRow(self, seqid, iprot, oprot):
  2500. args = getRow_args()
  2501. args.read(iprot)
  2502. iprot.readMessageEnd()
  2503. result = getRow_result()
  2504. try:
  2505. result.success = self._handler.getRow(args.tableName, args.row, args.attributes)
  2506. msg_type = TMessageType.REPLY
  2507. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2508. raise
  2509. except IOError as io:
  2510. msg_type = TMessageType.REPLY
  2511. result.io = io
  2512. except Exception as ex:
  2513. msg_type = TMessageType.EXCEPTION
  2514. logging.exception(ex)
  2515. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2516. oprot.writeMessageBegin("getRow", msg_type, seqid)
  2517. result.write(oprot)
  2518. oprot.writeMessageEnd()
  2519. oprot.trans.flush()
  2520. def process_getRowWithColumns(self, seqid, iprot, oprot):
  2521. args = getRowWithColumns_args()
  2522. args.read(iprot)
  2523. iprot.readMessageEnd()
  2524. result = getRowWithColumns_result()
  2525. try:
  2526. result.success = self._handler.getRowWithColumns(args.tableName, args.row, args.columns, args.attributes)
  2527. msg_type = TMessageType.REPLY
  2528. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2529. raise
  2530. except IOError as io:
  2531. msg_type = TMessageType.REPLY
  2532. result.io = io
  2533. except Exception as ex:
  2534. msg_type = TMessageType.EXCEPTION
  2535. logging.exception(ex)
  2536. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2537. oprot.writeMessageBegin("getRowWithColumns", msg_type, seqid)
  2538. result.write(oprot)
  2539. oprot.writeMessageEnd()
  2540. oprot.trans.flush()
  2541. def process_getRowTs(self, seqid, iprot, oprot):
  2542. args = getRowTs_args()
  2543. args.read(iprot)
  2544. iprot.readMessageEnd()
  2545. result = getRowTs_result()
  2546. try:
  2547. result.success = self._handler.getRowTs(args.tableName, args.row, args.timestamp, args.attributes)
  2548. msg_type = TMessageType.REPLY
  2549. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2550. raise
  2551. except IOError as io:
  2552. msg_type = TMessageType.REPLY
  2553. result.io = io
  2554. except Exception as ex:
  2555. msg_type = TMessageType.EXCEPTION
  2556. logging.exception(ex)
  2557. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2558. oprot.writeMessageBegin("getRowTs", msg_type, seqid)
  2559. result.write(oprot)
  2560. oprot.writeMessageEnd()
  2561. oprot.trans.flush()
  2562. def process_getRowWithColumnsTs(self, seqid, iprot, oprot):
  2563. args = getRowWithColumnsTs_args()
  2564. args.read(iprot)
  2565. iprot.readMessageEnd()
  2566. result = getRowWithColumnsTs_result()
  2567. try:
  2568. result.success = self._handler.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp, args.attributes)
  2569. msg_type = TMessageType.REPLY
  2570. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2571. raise
  2572. except IOError as io:
  2573. msg_type = TMessageType.REPLY
  2574. result.io = io
  2575. except Exception as ex:
  2576. msg_type = TMessageType.EXCEPTION
  2577. logging.exception(ex)
  2578. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2579. oprot.writeMessageBegin("getRowWithColumnsTs", msg_type, seqid)
  2580. result.write(oprot)
  2581. oprot.writeMessageEnd()
  2582. oprot.trans.flush()
  2583. def process_getRows(self, seqid, iprot, oprot):
  2584. args = getRows_args()
  2585. args.read(iprot)
  2586. iprot.readMessageEnd()
  2587. result = getRows_result()
  2588. try:
  2589. result.success = self._handler.getRows(args.tableName, args.rows, args.attributes)
  2590. msg_type = TMessageType.REPLY
  2591. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2592. raise
  2593. except IOError as io:
  2594. msg_type = TMessageType.REPLY
  2595. result.io = io
  2596. except Exception as ex:
  2597. msg_type = TMessageType.EXCEPTION
  2598. logging.exception(ex)
  2599. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2600. oprot.writeMessageBegin("getRows", msg_type, seqid)
  2601. result.write(oprot)
  2602. oprot.writeMessageEnd()
  2603. oprot.trans.flush()
  2604. def process_getRowsWithColumns(self, seqid, iprot, oprot):
  2605. args = getRowsWithColumns_args()
  2606. args.read(iprot)
  2607. iprot.readMessageEnd()
  2608. result = getRowsWithColumns_result()
  2609. try:
  2610. result.success = self._handler.getRowsWithColumns(args.tableName, args.rows, args.columns, args.attributes)
  2611. msg_type = TMessageType.REPLY
  2612. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2613. raise
  2614. except IOError as io:
  2615. msg_type = TMessageType.REPLY
  2616. result.io = io
  2617. except Exception as ex:
  2618. msg_type = TMessageType.EXCEPTION
  2619. logging.exception(ex)
  2620. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2621. oprot.writeMessageBegin("getRowsWithColumns", msg_type, seqid)
  2622. result.write(oprot)
  2623. oprot.writeMessageEnd()
  2624. oprot.trans.flush()
  2625. def process_getRowsTs(self, seqid, iprot, oprot):
  2626. args = getRowsTs_args()
  2627. args.read(iprot)
  2628. iprot.readMessageEnd()
  2629. result = getRowsTs_result()
  2630. try:
  2631. result.success = self._handler.getRowsTs(args.tableName, args.rows, args.timestamp, args.attributes)
  2632. msg_type = TMessageType.REPLY
  2633. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2634. raise
  2635. except IOError as io:
  2636. msg_type = TMessageType.REPLY
  2637. result.io = io
  2638. except Exception as ex:
  2639. msg_type = TMessageType.EXCEPTION
  2640. logging.exception(ex)
  2641. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2642. oprot.writeMessageBegin("getRowsTs", msg_type, seqid)
  2643. result.write(oprot)
  2644. oprot.writeMessageEnd()
  2645. oprot.trans.flush()
  2646. def process_getRowsWithColumnsTs(self, seqid, iprot, oprot):
  2647. args = getRowsWithColumnsTs_args()
  2648. args.read(iprot)
  2649. iprot.readMessageEnd()
  2650. result = getRowsWithColumnsTs_result()
  2651. try:
  2652. result.success = self._handler.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp, args.attributes)
  2653. msg_type = TMessageType.REPLY
  2654. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2655. raise
  2656. except IOError as io:
  2657. msg_type = TMessageType.REPLY
  2658. result.io = io
  2659. except Exception as ex:
  2660. msg_type = TMessageType.EXCEPTION
  2661. logging.exception(ex)
  2662. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2663. oprot.writeMessageBegin("getRowsWithColumnsTs", msg_type, seqid)
  2664. result.write(oprot)
  2665. oprot.writeMessageEnd()
  2666. oprot.trans.flush()
  2667. def process_mutateRow(self, seqid, iprot, oprot):
  2668. args = mutateRow_args()
  2669. args.read(iprot)
  2670. iprot.readMessageEnd()
  2671. result = mutateRow_result()
  2672. try:
  2673. self._handler.mutateRow(args.tableName, args.row, args.mutations, args.attributes)
  2674. msg_type = TMessageType.REPLY
  2675. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2676. raise
  2677. except IOError as io:
  2678. msg_type = TMessageType.REPLY
  2679. result.io = io
  2680. except IllegalArgument as ia:
  2681. msg_type = TMessageType.REPLY
  2682. result.ia = ia
  2683. except Exception as ex:
  2684. msg_type = TMessageType.EXCEPTION
  2685. logging.exception(ex)
  2686. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2687. oprot.writeMessageBegin("mutateRow", msg_type, seqid)
  2688. result.write(oprot)
  2689. oprot.writeMessageEnd()
  2690. oprot.trans.flush()
  2691. def process_mutateRowTs(self, seqid, iprot, oprot):
  2692. args = mutateRowTs_args()
  2693. args.read(iprot)
  2694. iprot.readMessageEnd()
  2695. result = mutateRowTs_result()
  2696. try:
  2697. self._handler.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp, args.attributes)
  2698. msg_type = TMessageType.REPLY
  2699. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2700. raise
  2701. except IOError as io:
  2702. msg_type = TMessageType.REPLY
  2703. result.io = io
  2704. except IllegalArgument as ia:
  2705. msg_type = TMessageType.REPLY
  2706. result.ia = ia
  2707. except Exception as ex:
  2708. msg_type = TMessageType.EXCEPTION
  2709. logging.exception(ex)
  2710. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2711. oprot.writeMessageBegin("mutateRowTs", msg_type, seqid)
  2712. result.write(oprot)
  2713. oprot.writeMessageEnd()
  2714. oprot.trans.flush()
  2715. def process_mutateRows(self, seqid, iprot, oprot):
  2716. args = mutateRows_args()
  2717. args.read(iprot)
  2718. iprot.readMessageEnd()
  2719. result = mutateRows_result()
  2720. try:
  2721. self._handler.mutateRows(args.tableName, args.rowBatches, args.attributes)
  2722. msg_type = TMessageType.REPLY
  2723. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2724. raise
  2725. except IOError as io:
  2726. msg_type = TMessageType.REPLY
  2727. result.io = io
  2728. except IllegalArgument as ia:
  2729. msg_type = TMessageType.REPLY
  2730. result.ia = ia
  2731. except Exception as ex:
  2732. msg_type = TMessageType.EXCEPTION
  2733. logging.exception(ex)
  2734. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2735. oprot.writeMessageBegin("mutateRows", msg_type, seqid)
  2736. result.write(oprot)
  2737. oprot.writeMessageEnd()
  2738. oprot.trans.flush()
  2739. def process_mutateRowsTs(self, seqid, iprot, oprot):
  2740. args = mutateRowsTs_args()
  2741. args.read(iprot)
  2742. iprot.readMessageEnd()
  2743. result = mutateRowsTs_result()
  2744. try:
  2745. self._handler.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp, args.attributes)
  2746. msg_type = TMessageType.REPLY
  2747. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2748. raise
  2749. except IOError as io:
  2750. msg_type = TMessageType.REPLY
  2751. result.io = io
  2752. except IllegalArgument as ia:
  2753. msg_type = TMessageType.REPLY
  2754. result.ia = ia
  2755. except Exception as ex:
  2756. msg_type = TMessageType.EXCEPTION
  2757. logging.exception(ex)
  2758. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2759. oprot.writeMessageBegin("mutateRowsTs", msg_type, seqid)
  2760. result.write(oprot)
  2761. oprot.writeMessageEnd()
  2762. oprot.trans.flush()
  2763. def process_atomicIncrement(self, seqid, iprot, oprot):
  2764. args = atomicIncrement_args()
  2765. args.read(iprot)
  2766. iprot.readMessageEnd()
  2767. result = atomicIncrement_result()
  2768. try:
  2769. result.success = self._handler.atomicIncrement(args.tableName, args.row, args.column, args.value)
  2770. msg_type = TMessageType.REPLY
  2771. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2772. raise
  2773. except IOError as io:
  2774. msg_type = TMessageType.REPLY
  2775. result.io = io
  2776. except IllegalArgument as ia:
  2777. msg_type = TMessageType.REPLY
  2778. result.ia = ia
  2779. except Exception as ex:
  2780. msg_type = TMessageType.EXCEPTION
  2781. logging.exception(ex)
  2782. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2783. oprot.writeMessageBegin("atomicIncrement", msg_type, seqid)
  2784. result.write(oprot)
  2785. oprot.writeMessageEnd()
  2786. oprot.trans.flush()
  2787. def process_deleteAll(self, seqid, iprot, oprot):
  2788. args = deleteAll_args()
  2789. args.read(iprot)
  2790. iprot.readMessageEnd()
  2791. result = deleteAll_result()
  2792. try:
  2793. self._handler.deleteAll(args.tableName, args.row, args.column, args.attributes)
  2794. msg_type = TMessageType.REPLY
  2795. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2796. raise
  2797. except IOError as io:
  2798. msg_type = TMessageType.REPLY
  2799. result.io = io
  2800. except Exception as ex:
  2801. msg_type = TMessageType.EXCEPTION
  2802. logging.exception(ex)
  2803. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2804. oprot.writeMessageBegin("deleteAll", msg_type, seqid)
  2805. result.write(oprot)
  2806. oprot.writeMessageEnd()
  2807. oprot.trans.flush()
  2808. def process_deleteAllTs(self, seqid, iprot, oprot):
  2809. args = deleteAllTs_args()
  2810. args.read(iprot)
  2811. iprot.readMessageEnd()
  2812. result = deleteAllTs_result()
  2813. try:
  2814. self._handler.deleteAllTs(args.tableName, args.row, args.column, args.timestamp, args.attributes)
  2815. msg_type = TMessageType.REPLY
  2816. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2817. raise
  2818. except IOError as io:
  2819. msg_type = TMessageType.REPLY
  2820. result.io = io
  2821. except Exception as ex:
  2822. msg_type = TMessageType.EXCEPTION
  2823. logging.exception(ex)
  2824. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2825. oprot.writeMessageBegin("deleteAllTs", msg_type, seqid)
  2826. result.write(oprot)
  2827. oprot.writeMessageEnd()
  2828. oprot.trans.flush()
  2829. def process_deleteAllRow(self, seqid, iprot, oprot):
  2830. args = deleteAllRow_args()
  2831. args.read(iprot)
  2832. iprot.readMessageEnd()
  2833. result = deleteAllRow_result()
  2834. try:
  2835. self._handler.deleteAllRow(args.tableName, args.row, args.attributes)
  2836. msg_type = TMessageType.REPLY
  2837. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2838. raise
  2839. except IOError as io:
  2840. msg_type = TMessageType.REPLY
  2841. result.io = io
  2842. except Exception as ex:
  2843. msg_type = TMessageType.EXCEPTION
  2844. logging.exception(ex)
  2845. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2846. oprot.writeMessageBegin("deleteAllRow", msg_type, seqid)
  2847. result.write(oprot)
  2848. oprot.writeMessageEnd()
  2849. oprot.trans.flush()
  2850. def process_increment(self, seqid, iprot, oprot):
  2851. args = increment_args()
  2852. args.read(iprot)
  2853. iprot.readMessageEnd()
  2854. result = increment_result()
  2855. try:
  2856. self._handler.increment(args.increment)
  2857. msg_type = TMessageType.REPLY
  2858. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2859. raise
  2860. except IOError as io:
  2861. msg_type = TMessageType.REPLY
  2862. result.io = io
  2863. except Exception as ex:
  2864. msg_type = TMessageType.EXCEPTION
  2865. logging.exception(ex)
  2866. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2867. oprot.writeMessageBegin("increment", msg_type, seqid)
  2868. result.write(oprot)
  2869. oprot.writeMessageEnd()
  2870. oprot.trans.flush()
  2871. def process_incrementRows(self, seqid, iprot, oprot):
  2872. args = incrementRows_args()
  2873. args.read(iprot)
  2874. iprot.readMessageEnd()
  2875. result = incrementRows_result()
  2876. try:
  2877. self._handler.incrementRows(args.increments)
  2878. msg_type = TMessageType.REPLY
  2879. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2880. raise
  2881. except IOError as io:
  2882. msg_type = TMessageType.REPLY
  2883. result.io = io
  2884. except Exception as ex:
  2885. msg_type = TMessageType.EXCEPTION
  2886. logging.exception(ex)
  2887. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2888. oprot.writeMessageBegin("incrementRows", msg_type, seqid)
  2889. result.write(oprot)
  2890. oprot.writeMessageEnd()
  2891. oprot.trans.flush()
  2892. def process_deleteAllRowTs(self, seqid, iprot, oprot):
  2893. args = deleteAllRowTs_args()
  2894. args.read(iprot)
  2895. iprot.readMessageEnd()
  2896. result = deleteAllRowTs_result()
  2897. try:
  2898. self._handler.deleteAllRowTs(args.tableName, args.row, args.timestamp, args.attributes)
  2899. msg_type = TMessageType.REPLY
  2900. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2901. raise
  2902. except IOError as io:
  2903. msg_type = TMessageType.REPLY
  2904. result.io = io
  2905. except Exception as ex:
  2906. msg_type = TMessageType.EXCEPTION
  2907. logging.exception(ex)
  2908. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2909. oprot.writeMessageBegin("deleteAllRowTs", msg_type, seqid)
  2910. result.write(oprot)
  2911. oprot.writeMessageEnd()
  2912. oprot.trans.flush()
  2913. def process_scannerOpenWithScan(self, seqid, iprot, oprot):
  2914. args = scannerOpenWithScan_args()
  2915. args.read(iprot)
  2916. iprot.readMessageEnd()
  2917. result = scannerOpenWithScan_result()
  2918. try:
  2919. result.success = self._handler.scannerOpenWithScan(args.tableName, args.scan, args.attributes)
  2920. msg_type = TMessageType.REPLY
  2921. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2922. raise
  2923. except IOError as io:
  2924. msg_type = TMessageType.REPLY
  2925. result.io = io
  2926. except Exception as ex:
  2927. msg_type = TMessageType.EXCEPTION
  2928. logging.exception(ex)
  2929. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2930. oprot.writeMessageBegin("scannerOpenWithScan", msg_type, seqid)
  2931. result.write(oprot)
  2932. oprot.writeMessageEnd()
  2933. oprot.trans.flush()
  2934. def process_scannerOpen(self, seqid, iprot, oprot):
  2935. args = scannerOpen_args()
  2936. args.read(iprot)
  2937. iprot.readMessageEnd()
  2938. result = scannerOpen_result()
  2939. try:
  2940. result.success = self._handler.scannerOpen(args.tableName, args.startRow, args.columns, args.attributes)
  2941. msg_type = TMessageType.REPLY
  2942. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2943. raise
  2944. except IOError as io:
  2945. msg_type = TMessageType.REPLY
  2946. result.io = io
  2947. except Exception as ex:
  2948. msg_type = TMessageType.EXCEPTION
  2949. logging.exception(ex)
  2950. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2951. oprot.writeMessageBegin("scannerOpen", msg_type, seqid)
  2952. result.write(oprot)
  2953. oprot.writeMessageEnd()
  2954. oprot.trans.flush()
  2955. def process_scannerOpenWithStop(self, seqid, iprot, oprot):
  2956. args = scannerOpenWithStop_args()
  2957. args.read(iprot)
  2958. iprot.readMessageEnd()
  2959. result = scannerOpenWithStop_result()
  2960. try:
  2961. result.success = self._handler.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns, args.attributes)
  2962. msg_type = TMessageType.REPLY
  2963. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2964. raise
  2965. except IOError as io:
  2966. msg_type = TMessageType.REPLY
  2967. result.io = io
  2968. except Exception as ex:
  2969. msg_type = TMessageType.EXCEPTION
  2970. logging.exception(ex)
  2971. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2972. oprot.writeMessageBegin("scannerOpenWithStop", msg_type, seqid)
  2973. result.write(oprot)
  2974. oprot.writeMessageEnd()
  2975. oprot.trans.flush()
  2976. def process_scannerOpenWithPrefix(self, seqid, iprot, oprot):
  2977. args = scannerOpenWithPrefix_args()
  2978. args.read(iprot)
  2979. iprot.readMessageEnd()
  2980. result = scannerOpenWithPrefix_result()
  2981. try:
  2982. result.success = self._handler.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns, args.attributes)
  2983. msg_type = TMessageType.REPLY
  2984. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  2985. raise
  2986. except IOError as io:
  2987. msg_type = TMessageType.REPLY
  2988. result.io = io
  2989. except Exception as ex:
  2990. msg_type = TMessageType.EXCEPTION
  2991. logging.exception(ex)
  2992. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  2993. oprot.writeMessageBegin("scannerOpenWithPrefix", msg_type, seqid)
  2994. result.write(oprot)
  2995. oprot.writeMessageEnd()
  2996. oprot.trans.flush()
  2997. def process_scannerOpenTs(self, seqid, iprot, oprot):
  2998. args = scannerOpenTs_args()
  2999. args.read(iprot)
  3000. iprot.readMessageEnd()
  3001. result = scannerOpenTs_result()
  3002. try:
  3003. result.success = self._handler.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp, args.attributes)
  3004. msg_type = TMessageType.REPLY
  3005. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  3006. raise
  3007. except IOError as io:
  3008. msg_type = TMessageType.REPLY
  3009. result.io = io
  3010. except Exception as ex:
  3011. msg_type = TMessageType.EXCEPTION
  3012. logging.exception(ex)
  3013. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  3014. oprot.writeMessageBegin("scannerOpenTs", msg_type, seqid)
  3015. result.write(oprot)
  3016. oprot.writeMessageEnd()
  3017. oprot.trans.flush()
  3018. def process_scannerOpenWithStopTs(self, seqid, iprot, oprot):
  3019. args = scannerOpenWithStopTs_args()
  3020. args.read(iprot)
  3021. iprot.readMessageEnd()
  3022. result = scannerOpenWithStopTs_result()
  3023. try:
  3024. result.success = self._handler.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp, args.attributes)
  3025. msg_type = TMessageType.REPLY
  3026. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  3027. raise
  3028. except IOError as io:
  3029. msg_type = TMessageType.REPLY
  3030. result.io = io
  3031. except Exception as ex:
  3032. msg_type = TMessageType.EXCEPTION
  3033. logging.exception(ex)
  3034. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  3035. oprot.writeMessageBegin("scannerOpenWithStopTs", msg_type, seqid)
  3036. result.write(oprot)
  3037. oprot.writeMessageEnd()
  3038. oprot.trans.flush()
  3039. def process_scannerGet(self, seqid, iprot, oprot):
  3040. args = scannerGet_args()
  3041. args.read(iprot)
  3042. iprot.readMessageEnd()
  3043. result = scannerGet_result()
  3044. try:
  3045. result.success = self._handler.scannerGet(args.id)
  3046. msg_type = TMessageType.REPLY
  3047. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  3048. raise
  3049. except IOError as io:
  3050. msg_type = TMessageType.REPLY
  3051. result.io = io
  3052. except IllegalArgument as ia:
  3053. msg_type = TMessageType.REPLY
  3054. result.ia = ia
  3055. except Exception as ex:
  3056. msg_type = TMessageType.EXCEPTION
  3057. logging.exception(ex)
  3058. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  3059. oprot.writeMessageBegin("scannerGet", msg_type, seqid)
  3060. result.write(oprot)
  3061. oprot.writeMessageEnd()
  3062. oprot.trans.flush()
  3063. def process_scannerGetList(self, seqid, iprot, oprot):
  3064. args = scannerGetList_args()
  3065. args.read(iprot)
  3066. iprot.readMessageEnd()
  3067. result = scannerGetList_result()
  3068. try:
  3069. result.success = self._handler.scannerGetList(args.id, args.nbRows)
  3070. msg_type = TMessageType.REPLY
  3071. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  3072. raise
  3073. except IOError as io:
  3074. msg_type = TMessageType.REPLY
  3075. result.io = io
  3076. except IllegalArgument as ia:
  3077. msg_type = TMessageType.REPLY
  3078. result.ia = ia
  3079. except Exception as ex:
  3080. msg_type = TMessageType.EXCEPTION
  3081. logging.exception(ex)
  3082. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  3083. oprot.writeMessageBegin("scannerGetList", msg_type, seqid)
  3084. result.write(oprot)
  3085. oprot.writeMessageEnd()
  3086. oprot.trans.flush()
  3087. def process_scannerClose(self, seqid, iprot, oprot):
  3088. args = scannerClose_args()
  3089. args.read(iprot)
  3090. iprot.readMessageEnd()
  3091. result = scannerClose_result()
  3092. try:
  3093. self._handler.scannerClose(args.id)
  3094. msg_type = TMessageType.REPLY
  3095. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  3096. raise
  3097. except IOError as io:
  3098. msg_type = TMessageType.REPLY
  3099. result.io = io
  3100. except IllegalArgument as ia:
  3101. msg_type = TMessageType.REPLY
  3102. result.ia = ia
  3103. except Exception as ex:
  3104. msg_type = TMessageType.EXCEPTION
  3105. logging.exception(ex)
  3106. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  3107. oprot.writeMessageBegin("scannerClose", msg_type, seqid)
  3108. result.write(oprot)
  3109. oprot.writeMessageEnd()
  3110. oprot.trans.flush()
  3111. def process_getRowOrBefore(self, seqid, iprot, oprot):
  3112. args = getRowOrBefore_args()
  3113. args.read(iprot)
  3114. iprot.readMessageEnd()
  3115. result = getRowOrBefore_result()
  3116. try:
  3117. result.success = self._handler.getRowOrBefore(args.tableName, args.row, args.family)
  3118. msg_type = TMessageType.REPLY
  3119. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  3120. raise
  3121. except IOError as io:
  3122. msg_type = TMessageType.REPLY
  3123. result.io = io
  3124. except Exception as ex:
  3125. msg_type = TMessageType.EXCEPTION
  3126. logging.exception(ex)
  3127. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  3128. oprot.writeMessageBegin("getRowOrBefore", msg_type, seqid)
  3129. result.write(oprot)
  3130. oprot.writeMessageEnd()
  3131. oprot.trans.flush()
  3132. def process_getRegionInfo(self, seqid, iprot, oprot):
  3133. args = getRegionInfo_args()
  3134. args.read(iprot)
  3135. iprot.readMessageEnd()
  3136. result = getRegionInfo_result()
  3137. try:
  3138. result.success = self._handler.getRegionInfo(args.row)
  3139. msg_type = TMessageType.REPLY
  3140. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  3141. raise
  3142. except IOError as io:
  3143. msg_type = TMessageType.REPLY
  3144. result.io = io
  3145. except Exception as ex:
  3146. msg_type = TMessageType.EXCEPTION
  3147. logging.exception(ex)
  3148. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  3149. oprot.writeMessageBegin("getRegionInfo", msg_type, seqid)
  3150. result.write(oprot)
  3151. oprot.writeMessageEnd()
  3152. oprot.trans.flush()
  3153. # HELPER FUNCTIONS AND STRUCTURES
  3154. class enableTable_args(object):
  3155. """
  3156. Attributes:
  3157. - tableName: name of the table
  3158. """
  3159. thrift_spec = (
  3160. None, # 0
  3161. (1, TType.STRING, 'tableName', None, None, ), # 1
  3162. )
  3163. def __init__(self, tableName=None,):
  3164. self.tableName = tableName
  3165. def read(self, iprot):
  3166. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3167. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3168. return
  3169. iprot.readStructBegin()
  3170. while True:
  3171. (fname, ftype, fid) = iprot.readFieldBegin()
  3172. if ftype == TType.STOP:
  3173. break
  3174. if fid == 1:
  3175. if ftype == TType.STRING:
  3176. self.tableName = iprot.readString()
  3177. else:
  3178. iprot.skip(ftype)
  3179. else:
  3180. iprot.skip(ftype)
  3181. iprot.readFieldEnd()
  3182. iprot.readStructEnd()
  3183. def write(self, oprot):
  3184. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3185. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3186. return
  3187. oprot.writeStructBegin('enableTable_args')
  3188. if self.tableName is not None:
  3189. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  3190. oprot.writeString(self.tableName)
  3191. oprot.writeFieldEnd()
  3192. oprot.writeFieldStop()
  3193. oprot.writeStructEnd()
  3194. def validate(self):
  3195. return
  3196. def __hash__(self):
  3197. value = 17
  3198. value = (value * 31) ^ hash(self.tableName)
  3199. return value
  3200. def __repr__(self):
  3201. L = ['%s=%r' % (key, value)
  3202. for key, value in self.__dict__.iteritems()]
  3203. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3204. def __eq__(self, other):
  3205. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3206. def __ne__(self, other):
  3207. return not (self == other)
  3208. class enableTable_result(object):
  3209. """
  3210. Attributes:
  3211. - io
  3212. """
  3213. thrift_spec = (
  3214. None, # 0
  3215. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3216. )
  3217. def __init__(self, io=None,):
  3218. self.io = io
  3219. def read(self, iprot):
  3220. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3221. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3222. return
  3223. iprot.readStructBegin()
  3224. while True:
  3225. (fname, ftype, fid) = iprot.readFieldBegin()
  3226. if ftype == TType.STOP:
  3227. break
  3228. if fid == 1:
  3229. if ftype == TType.STRUCT:
  3230. self.io = IOError()
  3231. self.io.read(iprot)
  3232. else:
  3233. iprot.skip(ftype)
  3234. else:
  3235. iprot.skip(ftype)
  3236. iprot.readFieldEnd()
  3237. iprot.readStructEnd()
  3238. def write(self, oprot):
  3239. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3240. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3241. return
  3242. oprot.writeStructBegin('enableTable_result')
  3243. if self.io is not None:
  3244. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3245. self.io.write(oprot)
  3246. oprot.writeFieldEnd()
  3247. oprot.writeFieldStop()
  3248. oprot.writeStructEnd()
  3249. def validate(self):
  3250. return
  3251. def __hash__(self):
  3252. value = 17
  3253. value = (value * 31) ^ hash(self.io)
  3254. return value
  3255. def __repr__(self):
  3256. L = ['%s=%r' % (key, value)
  3257. for key, value in self.__dict__.iteritems()]
  3258. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3259. def __eq__(self, other):
  3260. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3261. def __ne__(self, other):
  3262. return not (self == other)
  3263. class disableTable_args(object):
  3264. """
  3265. Attributes:
  3266. - tableName: name of the table
  3267. """
  3268. thrift_spec = (
  3269. None, # 0
  3270. (1, TType.STRING, 'tableName', None, None, ), # 1
  3271. )
  3272. def __init__(self, tableName=None,):
  3273. self.tableName = tableName
  3274. def read(self, iprot):
  3275. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3276. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3277. return
  3278. iprot.readStructBegin()
  3279. while True:
  3280. (fname, ftype, fid) = iprot.readFieldBegin()
  3281. if ftype == TType.STOP:
  3282. break
  3283. if fid == 1:
  3284. if ftype == TType.STRING:
  3285. self.tableName = iprot.readString()
  3286. else:
  3287. iprot.skip(ftype)
  3288. else:
  3289. iprot.skip(ftype)
  3290. iprot.readFieldEnd()
  3291. iprot.readStructEnd()
  3292. def write(self, oprot):
  3293. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3294. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3295. return
  3296. oprot.writeStructBegin('disableTable_args')
  3297. if self.tableName is not None:
  3298. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  3299. oprot.writeString(self.tableName)
  3300. oprot.writeFieldEnd()
  3301. oprot.writeFieldStop()
  3302. oprot.writeStructEnd()
  3303. def validate(self):
  3304. return
  3305. def __hash__(self):
  3306. value = 17
  3307. value = (value * 31) ^ hash(self.tableName)
  3308. return value
  3309. def __repr__(self):
  3310. L = ['%s=%r' % (key, value)
  3311. for key, value in self.__dict__.iteritems()]
  3312. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3313. def __eq__(self, other):
  3314. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3315. def __ne__(self, other):
  3316. return not (self == other)
  3317. class disableTable_result(object):
  3318. """
  3319. Attributes:
  3320. - io
  3321. """
  3322. thrift_spec = (
  3323. None, # 0
  3324. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3325. )
  3326. def __init__(self, io=None,):
  3327. self.io = io
  3328. def read(self, iprot):
  3329. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3330. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3331. return
  3332. iprot.readStructBegin()
  3333. while True:
  3334. (fname, ftype, fid) = iprot.readFieldBegin()
  3335. if ftype == TType.STOP:
  3336. break
  3337. if fid == 1:
  3338. if ftype == TType.STRUCT:
  3339. self.io = IOError()
  3340. self.io.read(iprot)
  3341. else:
  3342. iprot.skip(ftype)
  3343. else:
  3344. iprot.skip(ftype)
  3345. iprot.readFieldEnd()
  3346. iprot.readStructEnd()
  3347. def write(self, oprot):
  3348. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3349. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3350. return
  3351. oprot.writeStructBegin('disableTable_result')
  3352. if self.io is not None:
  3353. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3354. self.io.write(oprot)
  3355. oprot.writeFieldEnd()
  3356. oprot.writeFieldStop()
  3357. oprot.writeStructEnd()
  3358. def validate(self):
  3359. return
  3360. def __hash__(self):
  3361. value = 17
  3362. value = (value * 31) ^ hash(self.io)
  3363. return value
  3364. def __repr__(self):
  3365. L = ['%s=%r' % (key, value)
  3366. for key, value in self.__dict__.iteritems()]
  3367. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3368. def __eq__(self, other):
  3369. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3370. def __ne__(self, other):
  3371. return not (self == other)
  3372. class isTableEnabled_args(object):
  3373. """
  3374. Attributes:
  3375. - tableName: name of the table to check
  3376. """
  3377. thrift_spec = (
  3378. None, # 0
  3379. (1, TType.STRING, 'tableName', None, None, ), # 1
  3380. )
  3381. def __init__(self, tableName=None,):
  3382. self.tableName = tableName
  3383. def read(self, iprot):
  3384. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3385. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3386. return
  3387. iprot.readStructBegin()
  3388. while True:
  3389. (fname, ftype, fid) = iprot.readFieldBegin()
  3390. if ftype == TType.STOP:
  3391. break
  3392. if fid == 1:
  3393. if ftype == TType.STRING:
  3394. self.tableName = iprot.readString()
  3395. else:
  3396. iprot.skip(ftype)
  3397. else:
  3398. iprot.skip(ftype)
  3399. iprot.readFieldEnd()
  3400. iprot.readStructEnd()
  3401. def write(self, oprot):
  3402. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3403. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3404. return
  3405. oprot.writeStructBegin('isTableEnabled_args')
  3406. if self.tableName is not None:
  3407. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  3408. oprot.writeString(self.tableName)
  3409. oprot.writeFieldEnd()
  3410. oprot.writeFieldStop()
  3411. oprot.writeStructEnd()
  3412. def validate(self):
  3413. return
  3414. def __hash__(self):
  3415. value = 17
  3416. value = (value * 31) ^ hash(self.tableName)
  3417. return value
  3418. def __repr__(self):
  3419. L = ['%s=%r' % (key, value)
  3420. for key, value in self.__dict__.iteritems()]
  3421. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3422. def __eq__(self, other):
  3423. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3424. def __ne__(self, other):
  3425. return not (self == other)
  3426. class isTableEnabled_result(object):
  3427. """
  3428. Attributes:
  3429. - success
  3430. - io
  3431. """
  3432. thrift_spec = (
  3433. (0, TType.BOOL, 'success', None, None, ), # 0
  3434. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3435. )
  3436. def __init__(self, success=None, io=None,):
  3437. self.success = success
  3438. self.io = io
  3439. def read(self, iprot):
  3440. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3441. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3442. return
  3443. iprot.readStructBegin()
  3444. while True:
  3445. (fname, ftype, fid) = iprot.readFieldBegin()
  3446. if ftype == TType.STOP:
  3447. break
  3448. if fid == 0:
  3449. if ftype == TType.BOOL:
  3450. self.success = iprot.readBool()
  3451. else:
  3452. iprot.skip(ftype)
  3453. elif fid == 1:
  3454. if ftype == TType.STRUCT:
  3455. self.io = IOError()
  3456. self.io.read(iprot)
  3457. else:
  3458. iprot.skip(ftype)
  3459. else:
  3460. iprot.skip(ftype)
  3461. iprot.readFieldEnd()
  3462. iprot.readStructEnd()
  3463. def write(self, oprot):
  3464. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3465. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3466. return
  3467. oprot.writeStructBegin('isTableEnabled_result')
  3468. if self.success is not None:
  3469. oprot.writeFieldBegin('success', TType.BOOL, 0)
  3470. oprot.writeBool(self.success)
  3471. oprot.writeFieldEnd()
  3472. if self.io is not None:
  3473. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3474. self.io.write(oprot)
  3475. oprot.writeFieldEnd()
  3476. oprot.writeFieldStop()
  3477. oprot.writeStructEnd()
  3478. def validate(self):
  3479. return
  3480. def __hash__(self):
  3481. value = 17
  3482. value = (value * 31) ^ hash(self.success)
  3483. value = (value * 31) ^ hash(self.io)
  3484. return value
  3485. def __repr__(self):
  3486. L = ['%s=%r' % (key, value)
  3487. for key, value in self.__dict__.iteritems()]
  3488. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3489. def __eq__(self, other):
  3490. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3491. def __ne__(self, other):
  3492. return not (self == other)
  3493. class compact_args(object):
  3494. """
  3495. Attributes:
  3496. - tableNameOrRegionName
  3497. """
  3498. thrift_spec = (
  3499. None, # 0
  3500. (1, TType.STRING, 'tableNameOrRegionName', None, None, ), # 1
  3501. )
  3502. def __init__(self, tableNameOrRegionName=None,):
  3503. self.tableNameOrRegionName = tableNameOrRegionName
  3504. def read(self, iprot):
  3505. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3506. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3507. return
  3508. iprot.readStructBegin()
  3509. while True:
  3510. (fname, ftype, fid) = iprot.readFieldBegin()
  3511. if ftype == TType.STOP:
  3512. break
  3513. if fid == 1:
  3514. if ftype == TType.STRING:
  3515. self.tableNameOrRegionName = iprot.readString()
  3516. else:
  3517. iprot.skip(ftype)
  3518. else:
  3519. iprot.skip(ftype)
  3520. iprot.readFieldEnd()
  3521. iprot.readStructEnd()
  3522. def write(self, oprot):
  3523. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3524. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3525. return
  3526. oprot.writeStructBegin('compact_args')
  3527. if self.tableNameOrRegionName is not None:
  3528. oprot.writeFieldBegin('tableNameOrRegionName', TType.STRING, 1)
  3529. oprot.writeString(self.tableNameOrRegionName)
  3530. oprot.writeFieldEnd()
  3531. oprot.writeFieldStop()
  3532. oprot.writeStructEnd()
  3533. def validate(self):
  3534. return
  3535. def __hash__(self):
  3536. value = 17
  3537. value = (value * 31) ^ hash(self.tableNameOrRegionName)
  3538. return value
  3539. def __repr__(self):
  3540. L = ['%s=%r' % (key, value)
  3541. for key, value in self.__dict__.iteritems()]
  3542. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3543. def __eq__(self, other):
  3544. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3545. def __ne__(self, other):
  3546. return not (self == other)
  3547. class compact_result(object):
  3548. """
  3549. Attributes:
  3550. - io
  3551. """
  3552. thrift_spec = (
  3553. None, # 0
  3554. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3555. )
  3556. def __init__(self, io=None,):
  3557. self.io = io
  3558. def read(self, iprot):
  3559. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3560. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3561. return
  3562. iprot.readStructBegin()
  3563. while True:
  3564. (fname, ftype, fid) = iprot.readFieldBegin()
  3565. if ftype == TType.STOP:
  3566. break
  3567. if fid == 1:
  3568. if ftype == TType.STRUCT:
  3569. self.io = IOError()
  3570. self.io.read(iprot)
  3571. else:
  3572. iprot.skip(ftype)
  3573. else:
  3574. iprot.skip(ftype)
  3575. iprot.readFieldEnd()
  3576. iprot.readStructEnd()
  3577. def write(self, oprot):
  3578. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3579. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3580. return
  3581. oprot.writeStructBegin('compact_result')
  3582. if self.io is not None:
  3583. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3584. self.io.write(oprot)
  3585. oprot.writeFieldEnd()
  3586. oprot.writeFieldStop()
  3587. oprot.writeStructEnd()
  3588. def validate(self):
  3589. return
  3590. def __hash__(self):
  3591. value = 17
  3592. value = (value * 31) ^ hash(self.io)
  3593. return value
  3594. def __repr__(self):
  3595. L = ['%s=%r' % (key, value)
  3596. for key, value in self.__dict__.iteritems()]
  3597. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3598. def __eq__(self, other):
  3599. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3600. def __ne__(self, other):
  3601. return not (self == other)
  3602. class majorCompact_args(object):
  3603. """
  3604. Attributes:
  3605. - tableNameOrRegionName
  3606. """
  3607. thrift_spec = (
  3608. None, # 0
  3609. (1, TType.STRING, 'tableNameOrRegionName', None, None, ), # 1
  3610. )
  3611. def __init__(self, tableNameOrRegionName=None,):
  3612. self.tableNameOrRegionName = tableNameOrRegionName
  3613. def read(self, iprot):
  3614. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3615. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3616. return
  3617. iprot.readStructBegin()
  3618. while True:
  3619. (fname, ftype, fid) = iprot.readFieldBegin()
  3620. if ftype == TType.STOP:
  3621. break
  3622. if fid == 1:
  3623. if ftype == TType.STRING:
  3624. self.tableNameOrRegionName = iprot.readString()
  3625. else:
  3626. iprot.skip(ftype)
  3627. else:
  3628. iprot.skip(ftype)
  3629. iprot.readFieldEnd()
  3630. iprot.readStructEnd()
  3631. def write(self, oprot):
  3632. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3633. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3634. return
  3635. oprot.writeStructBegin('majorCompact_args')
  3636. if self.tableNameOrRegionName is not None:
  3637. oprot.writeFieldBegin('tableNameOrRegionName', TType.STRING, 1)
  3638. oprot.writeString(self.tableNameOrRegionName)
  3639. oprot.writeFieldEnd()
  3640. oprot.writeFieldStop()
  3641. oprot.writeStructEnd()
  3642. def validate(self):
  3643. return
  3644. def __hash__(self):
  3645. value = 17
  3646. value = (value * 31) ^ hash(self.tableNameOrRegionName)
  3647. return value
  3648. def __repr__(self):
  3649. L = ['%s=%r' % (key, value)
  3650. for key, value in self.__dict__.iteritems()]
  3651. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3652. def __eq__(self, other):
  3653. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3654. def __ne__(self, other):
  3655. return not (self == other)
  3656. class majorCompact_result(object):
  3657. """
  3658. Attributes:
  3659. - io
  3660. """
  3661. thrift_spec = (
  3662. None, # 0
  3663. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3664. )
  3665. def __init__(self, io=None,):
  3666. self.io = io
  3667. def read(self, iprot):
  3668. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3669. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3670. return
  3671. iprot.readStructBegin()
  3672. while True:
  3673. (fname, ftype, fid) = iprot.readFieldBegin()
  3674. if ftype == TType.STOP:
  3675. break
  3676. if fid == 1:
  3677. if ftype == TType.STRUCT:
  3678. self.io = IOError()
  3679. self.io.read(iprot)
  3680. else:
  3681. iprot.skip(ftype)
  3682. else:
  3683. iprot.skip(ftype)
  3684. iprot.readFieldEnd()
  3685. iprot.readStructEnd()
  3686. def write(self, oprot):
  3687. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3688. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3689. return
  3690. oprot.writeStructBegin('majorCompact_result')
  3691. if self.io is not None:
  3692. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3693. self.io.write(oprot)
  3694. oprot.writeFieldEnd()
  3695. oprot.writeFieldStop()
  3696. oprot.writeStructEnd()
  3697. def validate(self):
  3698. return
  3699. def __hash__(self):
  3700. value = 17
  3701. value = (value * 31) ^ hash(self.io)
  3702. return value
  3703. def __repr__(self):
  3704. L = ['%s=%r' % (key, value)
  3705. for key, value in self.__dict__.iteritems()]
  3706. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3707. def __eq__(self, other):
  3708. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3709. def __ne__(self, other):
  3710. return not (self == other)
  3711. class getTableNames_args(object):
  3712. thrift_spec = (
  3713. )
  3714. def read(self, iprot):
  3715. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3716. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3717. return
  3718. iprot.readStructBegin()
  3719. while True:
  3720. (fname, ftype, fid) = iprot.readFieldBegin()
  3721. if ftype == TType.STOP:
  3722. break
  3723. else:
  3724. iprot.skip(ftype)
  3725. iprot.readFieldEnd()
  3726. iprot.readStructEnd()
  3727. def write(self, oprot):
  3728. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3729. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3730. return
  3731. oprot.writeStructBegin('getTableNames_args')
  3732. oprot.writeFieldStop()
  3733. oprot.writeStructEnd()
  3734. def validate(self):
  3735. return
  3736. def __hash__(self):
  3737. value = 17
  3738. return value
  3739. def __repr__(self):
  3740. L = ['%s=%r' % (key, value)
  3741. for key, value in self.__dict__.iteritems()]
  3742. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3743. def __eq__(self, other):
  3744. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3745. def __ne__(self, other):
  3746. return not (self == other)
  3747. class getTableNames_result(object):
  3748. """
  3749. Attributes:
  3750. - success
  3751. - io
  3752. """
  3753. thrift_spec = (
  3754. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  3755. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3756. )
  3757. def __init__(self, success=None, io=None,):
  3758. self.success = success
  3759. self.io = io
  3760. def read(self, iprot):
  3761. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3762. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3763. return
  3764. iprot.readStructBegin()
  3765. while True:
  3766. (fname, ftype, fid) = iprot.readFieldBegin()
  3767. if ftype == TType.STOP:
  3768. break
  3769. if fid == 0:
  3770. if ftype == TType.LIST:
  3771. self.success = []
  3772. (_etype26, _size23) = iprot.readListBegin()
  3773. for _i27 in xrange(_size23):
  3774. _elem28 = iprot.readString()
  3775. self.success.append(_elem28)
  3776. iprot.readListEnd()
  3777. else:
  3778. iprot.skip(ftype)
  3779. elif fid == 1:
  3780. if ftype == TType.STRUCT:
  3781. self.io = IOError()
  3782. self.io.read(iprot)
  3783. else:
  3784. iprot.skip(ftype)
  3785. else:
  3786. iprot.skip(ftype)
  3787. iprot.readFieldEnd()
  3788. iprot.readStructEnd()
  3789. def write(self, oprot):
  3790. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3791. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3792. return
  3793. oprot.writeStructBegin('getTableNames_result')
  3794. if self.success is not None:
  3795. oprot.writeFieldBegin('success', TType.LIST, 0)
  3796. oprot.writeListBegin(TType.STRING, len(self.success))
  3797. for iter29 in self.success:
  3798. oprot.writeString(iter29)
  3799. oprot.writeListEnd()
  3800. oprot.writeFieldEnd()
  3801. if self.io is not None:
  3802. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3803. self.io.write(oprot)
  3804. oprot.writeFieldEnd()
  3805. oprot.writeFieldStop()
  3806. oprot.writeStructEnd()
  3807. def validate(self):
  3808. return
  3809. def __hash__(self):
  3810. value = 17
  3811. value = (value * 31) ^ hash(self.success)
  3812. value = (value * 31) ^ hash(self.io)
  3813. return value
  3814. def __repr__(self):
  3815. L = ['%s=%r' % (key, value)
  3816. for key, value in self.__dict__.iteritems()]
  3817. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3818. def __eq__(self, other):
  3819. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3820. def __ne__(self, other):
  3821. return not (self == other)
  3822. class getColumnDescriptors_args(object):
  3823. """
  3824. Attributes:
  3825. - tableName: table name
  3826. """
  3827. thrift_spec = (
  3828. None, # 0
  3829. (1, TType.STRING, 'tableName', None, None, ), # 1
  3830. )
  3831. def __init__(self, tableName=None,):
  3832. self.tableName = tableName
  3833. def read(self, iprot):
  3834. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3835. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3836. return
  3837. iprot.readStructBegin()
  3838. while True:
  3839. (fname, ftype, fid) = iprot.readFieldBegin()
  3840. if ftype == TType.STOP:
  3841. break
  3842. if fid == 1:
  3843. if ftype == TType.STRING:
  3844. self.tableName = iprot.readString()
  3845. else:
  3846. iprot.skip(ftype)
  3847. else:
  3848. iprot.skip(ftype)
  3849. iprot.readFieldEnd()
  3850. iprot.readStructEnd()
  3851. def write(self, oprot):
  3852. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3853. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3854. return
  3855. oprot.writeStructBegin('getColumnDescriptors_args')
  3856. if self.tableName is not None:
  3857. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  3858. oprot.writeString(self.tableName)
  3859. oprot.writeFieldEnd()
  3860. oprot.writeFieldStop()
  3861. oprot.writeStructEnd()
  3862. def validate(self):
  3863. return
  3864. def __hash__(self):
  3865. value = 17
  3866. value = (value * 31) ^ hash(self.tableName)
  3867. return value
  3868. def __repr__(self):
  3869. L = ['%s=%r' % (key, value)
  3870. for key, value in self.__dict__.iteritems()]
  3871. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3872. def __eq__(self, other):
  3873. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3874. def __ne__(self, other):
  3875. return not (self == other)
  3876. class getColumnDescriptors_result(object):
  3877. """
  3878. Attributes:
  3879. - success
  3880. - io
  3881. """
  3882. thrift_spec = (
  3883. (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(ColumnDescriptor, ColumnDescriptor.thrift_spec)), None, ), # 0
  3884. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  3885. )
  3886. def __init__(self, success=None, io=None,):
  3887. self.success = success
  3888. self.io = io
  3889. def read(self, iprot):
  3890. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3891. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3892. return
  3893. iprot.readStructBegin()
  3894. while True:
  3895. (fname, ftype, fid) = iprot.readFieldBegin()
  3896. if ftype == TType.STOP:
  3897. break
  3898. if fid == 0:
  3899. if ftype == TType.MAP:
  3900. self.success = {}
  3901. (_ktype31, _vtype32, _size30 ) = iprot.readMapBegin()
  3902. for _i34 in xrange(_size30):
  3903. _key35 = iprot.readString()
  3904. _val36 = ColumnDescriptor()
  3905. _val36.read(iprot)
  3906. self.success[_key35] = _val36
  3907. iprot.readMapEnd()
  3908. else:
  3909. iprot.skip(ftype)
  3910. elif fid == 1:
  3911. if ftype == TType.STRUCT:
  3912. self.io = IOError()
  3913. self.io.read(iprot)
  3914. else:
  3915. iprot.skip(ftype)
  3916. else:
  3917. iprot.skip(ftype)
  3918. iprot.readFieldEnd()
  3919. iprot.readStructEnd()
  3920. def write(self, oprot):
  3921. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3922. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3923. return
  3924. oprot.writeStructBegin('getColumnDescriptors_result')
  3925. if self.success is not None:
  3926. oprot.writeFieldBegin('success', TType.MAP, 0)
  3927. oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
  3928. for kiter37,viter38 in self.success.items():
  3929. oprot.writeString(kiter37)
  3930. viter38.write(oprot)
  3931. oprot.writeMapEnd()
  3932. oprot.writeFieldEnd()
  3933. if self.io is not None:
  3934. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  3935. self.io.write(oprot)
  3936. oprot.writeFieldEnd()
  3937. oprot.writeFieldStop()
  3938. oprot.writeStructEnd()
  3939. def validate(self):
  3940. return
  3941. def __hash__(self):
  3942. value = 17
  3943. value = (value * 31) ^ hash(self.success)
  3944. value = (value * 31) ^ hash(self.io)
  3945. return value
  3946. def __repr__(self):
  3947. L = ['%s=%r' % (key, value)
  3948. for key, value in self.__dict__.iteritems()]
  3949. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3950. def __eq__(self, other):
  3951. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3952. def __ne__(self, other):
  3953. return not (self == other)
  3954. class getTableRegions_args(object):
  3955. """
  3956. Attributes:
  3957. - tableName: table name
  3958. """
  3959. thrift_spec = (
  3960. None, # 0
  3961. (1, TType.STRING, 'tableName', None, None, ), # 1
  3962. )
  3963. def __init__(self, tableName=None,):
  3964. self.tableName = tableName
  3965. def read(self, iprot):
  3966. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3967. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3968. return
  3969. iprot.readStructBegin()
  3970. while True:
  3971. (fname, ftype, fid) = iprot.readFieldBegin()
  3972. if ftype == TType.STOP:
  3973. break
  3974. if fid == 1:
  3975. if ftype == TType.STRING:
  3976. self.tableName = iprot.readString()
  3977. else:
  3978. iprot.skip(ftype)
  3979. else:
  3980. iprot.skip(ftype)
  3981. iprot.readFieldEnd()
  3982. iprot.readStructEnd()
  3983. def write(self, oprot):
  3984. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3985. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3986. return
  3987. oprot.writeStructBegin('getTableRegions_args')
  3988. if self.tableName is not None:
  3989. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  3990. oprot.writeString(self.tableName)
  3991. oprot.writeFieldEnd()
  3992. oprot.writeFieldStop()
  3993. oprot.writeStructEnd()
  3994. def validate(self):
  3995. return
  3996. def __hash__(self):
  3997. value = 17
  3998. value = (value * 31) ^ hash(self.tableName)
  3999. return value
  4000. def __repr__(self):
  4001. L = ['%s=%r' % (key, value)
  4002. for key, value in self.__dict__.iteritems()]
  4003. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4004. def __eq__(self, other):
  4005. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4006. def __ne__(self, other):
  4007. return not (self == other)
  4008. class getTableRegions_result(object):
  4009. """
  4010. Attributes:
  4011. - success
  4012. - io
  4013. """
  4014. thrift_spec = (
  4015. (0, TType.LIST, 'success', (TType.STRUCT,(TRegionInfo, TRegionInfo.thrift_spec)), None, ), # 0
  4016. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  4017. )
  4018. def __init__(self, success=None, io=None,):
  4019. self.success = success
  4020. self.io = io
  4021. def read(self, iprot):
  4022. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4023. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4024. return
  4025. iprot.readStructBegin()
  4026. while True:
  4027. (fname, ftype, fid) = iprot.readFieldBegin()
  4028. if ftype == TType.STOP:
  4029. break
  4030. if fid == 0:
  4031. if ftype == TType.LIST:
  4032. self.success = []
  4033. (_etype42, _size39) = iprot.readListBegin()
  4034. for _i43 in xrange(_size39):
  4035. _elem44 = TRegionInfo()
  4036. _elem44.read(iprot)
  4037. self.success.append(_elem44)
  4038. iprot.readListEnd()
  4039. else:
  4040. iprot.skip(ftype)
  4041. elif fid == 1:
  4042. if ftype == TType.STRUCT:
  4043. self.io = IOError()
  4044. self.io.read(iprot)
  4045. else:
  4046. iprot.skip(ftype)
  4047. else:
  4048. iprot.skip(ftype)
  4049. iprot.readFieldEnd()
  4050. iprot.readStructEnd()
  4051. def write(self, oprot):
  4052. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4053. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4054. return
  4055. oprot.writeStructBegin('getTableRegions_result')
  4056. if self.success is not None:
  4057. oprot.writeFieldBegin('success', TType.LIST, 0)
  4058. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4059. for iter45 in self.success:
  4060. iter45.write(oprot)
  4061. oprot.writeListEnd()
  4062. oprot.writeFieldEnd()
  4063. if self.io is not None:
  4064. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  4065. self.io.write(oprot)
  4066. oprot.writeFieldEnd()
  4067. oprot.writeFieldStop()
  4068. oprot.writeStructEnd()
  4069. def validate(self):
  4070. return
  4071. def __hash__(self):
  4072. value = 17
  4073. value = (value * 31) ^ hash(self.success)
  4074. value = (value * 31) ^ hash(self.io)
  4075. return value
  4076. def __repr__(self):
  4077. L = ['%s=%r' % (key, value)
  4078. for key, value in self.__dict__.iteritems()]
  4079. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4080. def __eq__(self, other):
  4081. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4082. def __ne__(self, other):
  4083. return not (self == other)
  4084. class createTable_args(object):
  4085. """
  4086. Attributes:
  4087. - tableName: name of table to create
  4088. - columnFamilies: list of column family descriptors
  4089. """
  4090. thrift_spec = (
  4091. None, # 0
  4092. (1, TType.STRING, 'tableName', None, None, ), # 1
  4093. (2, TType.LIST, 'columnFamilies', (TType.STRUCT,(ColumnDescriptor, ColumnDescriptor.thrift_spec)), None, ), # 2
  4094. )
  4095. def __init__(self, tableName=None, columnFamilies=None,):
  4096. self.tableName = tableName
  4097. self.columnFamilies = columnFamilies
  4098. def read(self, iprot):
  4099. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4100. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4101. return
  4102. iprot.readStructBegin()
  4103. while True:
  4104. (fname, ftype, fid) = iprot.readFieldBegin()
  4105. if ftype == TType.STOP:
  4106. break
  4107. if fid == 1:
  4108. if ftype == TType.STRING:
  4109. self.tableName = iprot.readString()
  4110. else:
  4111. iprot.skip(ftype)
  4112. elif fid == 2:
  4113. if ftype == TType.LIST:
  4114. self.columnFamilies = []
  4115. (_etype49, _size46) = iprot.readListBegin()
  4116. for _i50 in xrange(_size46):
  4117. _elem51 = ColumnDescriptor()
  4118. _elem51.read(iprot)
  4119. self.columnFamilies.append(_elem51)
  4120. iprot.readListEnd()
  4121. else:
  4122. iprot.skip(ftype)
  4123. else:
  4124. iprot.skip(ftype)
  4125. iprot.readFieldEnd()
  4126. iprot.readStructEnd()
  4127. def write(self, oprot):
  4128. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4129. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4130. return
  4131. oprot.writeStructBegin('createTable_args')
  4132. if self.tableName is not None:
  4133. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  4134. oprot.writeString(self.tableName)
  4135. oprot.writeFieldEnd()
  4136. if self.columnFamilies is not None:
  4137. oprot.writeFieldBegin('columnFamilies', TType.LIST, 2)
  4138. oprot.writeListBegin(TType.STRUCT, len(self.columnFamilies))
  4139. for iter52 in self.columnFamilies:
  4140. iter52.write(oprot)
  4141. oprot.writeListEnd()
  4142. oprot.writeFieldEnd()
  4143. oprot.writeFieldStop()
  4144. oprot.writeStructEnd()
  4145. def validate(self):
  4146. return
  4147. def __hash__(self):
  4148. value = 17
  4149. value = (value * 31) ^ hash(self.tableName)
  4150. value = (value * 31) ^ hash(self.columnFamilies)
  4151. return value
  4152. def __repr__(self):
  4153. L = ['%s=%r' % (key, value)
  4154. for key, value in self.__dict__.iteritems()]
  4155. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4156. def __eq__(self, other):
  4157. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4158. def __ne__(self, other):
  4159. return not (self == other)
  4160. class createTable_result(object):
  4161. """
  4162. Attributes:
  4163. - io
  4164. - ia
  4165. - exist
  4166. """
  4167. thrift_spec = (
  4168. None, # 0
  4169. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  4170. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  4171. (3, TType.STRUCT, 'exist', (AlreadyExists, AlreadyExists.thrift_spec), None, ), # 3
  4172. )
  4173. def __init__(self, io=None, ia=None, exist=None,):
  4174. self.io = io
  4175. self.ia = ia
  4176. self.exist = exist
  4177. def read(self, iprot):
  4178. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4179. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4180. return
  4181. iprot.readStructBegin()
  4182. while True:
  4183. (fname, ftype, fid) = iprot.readFieldBegin()
  4184. if ftype == TType.STOP:
  4185. break
  4186. if fid == 1:
  4187. if ftype == TType.STRUCT:
  4188. self.io = IOError()
  4189. self.io.read(iprot)
  4190. else:
  4191. iprot.skip(ftype)
  4192. elif fid == 2:
  4193. if ftype == TType.STRUCT:
  4194. self.ia = IllegalArgument()
  4195. self.ia.read(iprot)
  4196. else:
  4197. iprot.skip(ftype)
  4198. elif fid == 3:
  4199. if ftype == TType.STRUCT:
  4200. self.exist = AlreadyExists()
  4201. self.exist.read(iprot)
  4202. else:
  4203. iprot.skip(ftype)
  4204. else:
  4205. iprot.skip(ftype)
  4206. iprot.readFieldEnd()
  4207. iprot.readStructEnd()
  4208. def write(self, oprot):
  4209. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4210. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4211. return
  4212. oprot.writeStructBegin('createTable_result')
  4213. if self.io is not None:
  4214. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  4215. self.io.write(oprot)
  4216. oprot.writeFieldEnd()
  4217. if self.ia is not None:
  4218. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  4219. self.ia.write(oprot)
  4220. oprot.writeFieldEnd()
  4221. if self.exist is not None:
  4222. oprot.writeFieldBegin('exist', TType.STRUCT, 3)
  4223. self.exist.write(oprot)
  4224. oprot.writeFieldEnd()
  4225. oprot.writeFieldStop()
  4226. oprot.writeStructEnd()
  4227. def validate(self):
  4228. return
  4229. def __hash__(self):
  4230. value = 17
  4231. value = (value * 31) ^ hash(self.io)
  4232. value = (value * 31) ^ hash(self.ia)
  4233. value = (value * 31) ^ hash(self.exist)
  4234. return value
  4235. def __repr__(self):
  4236. L = ['%s=%r' % (key, value)
  4237. for key, value in self.__dict__.iteritems()]
  4238. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4239. def __eq__(self, other):
  4240. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4241. def __ne__(self, other):
  4242. return not (self == other)
  4243. class deleteTable_args(object):
  4244. """
  4245. Attributes:
  4246. - tableName: name of table to delete
  4247. """
  4248. thrift_spec = (
  4249. None, # 0
  4250. (1, TType.STRING, 'tableName', None, None, ), # 1
  4251. )
  4252. def __init__(self, tableName=None,):
  4253. self.tableName = tableName
  4254. def read(self, iprot):
  4255. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4256. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4257. return
  4258. iprot.readStructBegin()
  4259. while True:
  4260. (fname, ftype, fid) = iprot.readFieldBegin()
  4261. if ftype == TType.STOP:
  4262. break
  4263. if fid == 1:
  4264. if ftype == TType.STRING:
  4265. self.tableName = iprot.readString()
  4266. else:
  4267. iprot.skip(ftype)
  4268. else:
  4269. iprot.skip(ftype)
  4270. iprot.readFieldEnd()
  4271. iprot.readStructEnd()
  4272. def write(self, oprot):
  4273. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4274. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4275. return
  4276. oprot.writeStructBegin('deleteTable_args')
  4277. if self.tableName is not None:
  4278. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  4279. oprot.writeString(self.tableName)
  4280. oprot.writeFieldEnd()
  4281. oprot.writeFieldStop()
  4282. oprot.writeStructEnd()
  4283. def validate(self):
  4284. return
  4285. def __hash__(self):
  4286. value = 17
  4287. value = (value * 31) ^ hash(self.tableName)
  4288. return value
  4289. def __repr__(self):
  4290. L = ['%s=%r' % (key, value)
  4291. for key, value in self.__dict__.iteritems()]
  4292. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4293. def __eq__(self, other):
  4294. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4295. def __ne__(self, other):
  4296. return not (self == other)
  4297. class deleteTable_result(object):
  4298. """
  4299. Attributes:
  4300. - io
  4301. """
  4302. thrift_spec = (
  4303. None, # 0
  4304. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  4305. )
  4306. def __init__(self, io=None,):
  4307. self.io = io
  4308. def read(self, iprot):
  4309. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4310. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4311. return
  4312. iprot.readStructBegin()
  4313. while True:
  4314. (fname, ftype, fid) = iprot.readFieldBegin()
  4315. if ftype == TType.STOP:
  4316. break
  4317. if fid == 1:
  4318. if ftype == TType.STRUCT:
  4319. self.io = IOError()
  4320. self.io.read(iprot)
  4321. else:
  4322. iprot.skip(ftype)
  4323. else:
  4324. iprot.skip(ftype)
  4325. iprot.readFieldEnd()
  4326. iprot.readStructEnd()
  4327. def write(self, oprot):
  4328. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4329. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4330. return
  4331. oprot.writeStructBegin('deleteTable_result')
  4332. if self.io is not None:
  4333. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  4334. self.io.write(oprot)
  4335. oprot.writeFieldEnd()
  4336. oprot.writeFieldStop()
  4337. oprot.writeStructEnd()
  4338. def validate(self):
  4339. return
  4340. def __hash__(self):
  4341. value = 17
  4342. value = (value * 31) ^ hash(self.io)
  4343. return value
  4344. def __repr__(self):
  4345. L = ['%s=%r' % (key, value)
  4346. for key, value in self.__dict__.iteritems()]
  4347. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4348. def __eq__(self, other):
  4349. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4350. def __ne__(self, other):
  4351. return not (self == other)
  4352. class get_args(object):
  4353. """
  4354. Attributes:
  4355. - tableName: name of table
  4356. - row: row key
  4357. - column: column name
  4358. - attributes: Get attributes
  4359. """
  4360. thrift_spec = (
  4361. None, # 0
  4362. (1, TType.STRING, 'tableName', None, None, ), # 1
  4363. (2, TType.STRING, 'row', None, None, ), # 2
  4364. (3, TType.STRING, 'column', None, None, ), # 3
  4365. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  4366. )
  4367. def __init__(self, tableName=None, row=None, column=None, attributes=None,):
  4368. self.tableName = tableName
  4369. self.row = row
  4370. self.column = column
  4371. self.attributes = attributes
  4372. def read(self, iprot):
  4373. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4374. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4375. return
  4376. iprot.readStructBegin()
  4377. while True:
  4378. (fname, ftype, fid) = iprot.readFieldBegin()
  4379. if ftype == TType.STOP:
  4380. break
  4381. if fid == 1:
  4382. if ftype == TType.STRING:
  4383. self.tableName = iprot.readString()
  4384. else:
  4385. iprot.skip(ftype)
  4386. elif fid == 2:
  4387. if ftype == TType.STRING:
  4388. self.row = iprot.readString()
  4389. else:
  4390. iprot.skip(ftype)
  4391. elif fid == 3:
  4392. if ftype == TType.STRING:
  4393. self.column = iprot.readString()
  4394. else:
  4395. iprot.skip(ftype)
  4396. elif fid == 4:
  4397. if ftype == TType.MAP:
  4398. self.attributes = {}
  4399. (_ktype54, _vtype55, _size53 ) = iprot.readMapBegin()
  4400. for _i57 in xrange(_size53):
  4401. _key58 = iprot.readString()
  4402. _val59 = iprot.readString()
  4403. self.attributes[_key58] = _val59
  4404. iprot.readMapEnd()
  4405. else:
  4406. iprot.skip(ftype)
  4407. else:
  4408. iprot.skip(ftype)
  4409. iprot.readFieldEnd()
  4410. iprot.readStructEnd()
  4411. def write(self, oprot):
  4412. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4413. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4414. return
  4415. oprot.writeStructBegin('get_args')
  4416. if self.tableName is not None:
  4417. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  4418. oprot.writeString(self.tableName)
  4419. oprot.writeFieldEnd()
  4420. if self.row is not None:
  4421. oprot.writeFieldBegin('row', TType.STRING, 2)
  4422. oprot.writeString(self.row)
  4423. oprot.writeFieldEnd()
  4424. if self.column is not None:
  4425. oprot.writeFieldBegin('column', TType.STRING, 3)
  4426. oprot.writeString(self.column)
  4427. oprot.writeFieldEnd()
  4428. if self.attributes is not None:
  4429. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  4430. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  4431. for kiter60,viter61 in self.attributes.items():
  4432. oprot.writeString(kiter60)
  4433. oprot.writeString(viter61)
  4434. oprot.writeMapEnd()
  4435. oprot.writeFieldEnd()
  4436. oprot.writeFieldStop()
  4437. oprot.writeStructEnd()
  4438. def validate(self):
  4439. return
  4440. def __hash__(self):
  4441. value = 17
  4442. value = (value * 31) ^ hash(self.tableName)
  4443. value = (value * 31) ^ hash(self.row)
  4444. value = (value * 31) ^ hash(self.column)
  4445. value = (value * 31) ^ hash(self.attributes)
  4446. return value
  4447. def __repr__(self):
  4448. L = ['%s=%r' % (key, value)
  4449. for key, value in self.__dict__.iteritems()]
  4450. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4451. def __eq__(self, other):
  4452. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4453. def __ne__(self, other):
  4454. return not (self == other)
  4455. class get_result(object):
  4456. """
  4457. Attributes:
  4458. - success
  4459. - io
  4460. """
  4461. thrift_spec = (
  4462. (0, TType.LIST, 'success', (TType.STRUCT,(TCell, TCell.thrift_spec)), None, ), # 0
  4463. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  4464. )
  4465. def __init__(self, success=None, io=None,):
  4466. self.success = success
  4467. self.io = io
  4468. def read(self, iprot):
  4469. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4470. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4471. return
  4472. iprot.readStructBegin()
  4473. while True:
  4474. (fname, ftype, fid) = iprot.readFieldBegin()
  4475. if ftype == TType.STOP:
  4476. break
  4477. if fid == 0:
  4478. if ftype == TType.LIST:
  4479. self.success = []
  4480. (_etype65, _size62) = iprot.readListBegin()
  4481. for _i66 in xrange(_size62):
  4482. _elem67 = TCell()
  4483. _elem67.read(iprot)
  4484. self.success.append(_elem67)
  4485. iprot.readListEnd()
  4486. else:
  4487. iprot.skip(ftype)
  4488. elif fid == 1:
  4489. if ftype == TType.STRUCT:
  4490. self.io = IOError()
  4491. self.io.read(iprot)
  4492. else:
  4493. iprot.skip(ftype)
  4494. else:
  4495. iprot.skip(ftype)
  4496. iprot.readFieldEnd()
  4497. iprot.readStructEnd()
  4498. def write(self, oprot):
  4499. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4500. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4501. return
  4502. oprot.writeStructBegin('get_result')
  4503. if self.success is not None:
  4504. oprot.writeFieldBegin('success', TType.LIST, 0)
  4505. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4506. for iter68 in self.success:
  4507. iter68.write(oprot)
  4508. oprot.writeListEnd()
  4509. oprot.writeFieldEnd()
  4510. if self.io is not None:
  4511. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  4512. self.io.write(oprot)
  4513. oprot.writeFieldEnd()
  4514. oprot.writeFieldStop()
  4515. oprot.writeStructEnd()
  4516. def validate(self):
  4517. return
  4518. def __hash__(self):
  4519. value = 17
  4520. value = (value * 31) ^ hash(self.success)
  4521. value = (value * 31) ^ hash(self.io)
  4522. return value
  4523. def __repr__(self):
  4524. L = ['%s=%r' % (key, value)
  4525. for key, value in self.__dict__.iteritems()]
  4526. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4527. def __eq__(self, other):
  4528. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4529. def __ne__(self, other):
  4530. return not (self == other)
  4531. class getVer_args(object):
  4532. """
  4533. Attributes:
  4534. - tableName: name of table
  4535. - row: row key
  4536. - column: column name
  4537. - numVersions: number of versions to retrieve
  4538. - attributes: Get attributes
  4539. """
  4540. thrift_spec = (
  4541. None, # 0
  4542. (1, TType.STRING, 'tableName', None, None, ), # 1
  4543. (2, TType.STRING, 'row', None, None, ), # 2
  4544. (3, TType.STRING, 'column', None, None, ), # 3
  4545. (4, TType.I32, 'numVersions', None, None, ), # 4
  4546. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  4547. )
  4548. def __init__(self, tableName=None, row=None, column=None, numVersions=None, attributes=None,):
  4549. self.tableName = tableName
  4550. self.row = row
  4551. self.column = column
  4552. self.numVersions = numVersions
  4553. self.attributes = attributes
  4554. def read(self, iprot):
  4555. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4556. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4557. return
  4558. iprot.readStructBegin()
  4559. while True:
  4560. (fname, ftype, fid) = iprot.readFieldBegin()
  4561. if ftype == TType.STOP:
  4562. break
  4563. if fid == 1:
  4564. if ftype == TType.STRING:
  4565. self.tableName = iprot.readString()
  4566. else:
  4567. iprot.skip(ftype)
  4568. elif fid == 2:
  4569. if ftype == TType.STRING:
  4570. self.row = iprot.readString()
  4571. else:
  4572. iprot.skip(ftype)
  4573. elif fid == 3:
  4574. if ftype == TType.STRING:
  4575. self.column = iprot.readString()
  4576. else:
  4577. iprot.skip(ftype)
  4578. elif fid == 4:
  4579. if ftype == TType.I32:
  4580. self.numVersions = iprot.readI32()
  4581. else:
  4582. iprot.skip(ftype)
  4583. elif fid == 5:
  4584. if ftype == TType.MAP:
  4585. self.attributes = {}
  4586. (_ktype70, _vtype71, _size69 ) = iprot.readMapBegin()
  4587. for _i73 in xrange(_size69):
  4588. _key74 = iprot.readString()
  4589. _val75 = iprot.readString()
  4590. self.attributes[_key74] = _val75
  4591. iprot.readMapEnd()
  4592. else:
  4593. iprot.skip(ftype)
  4594. else:
  4595. iprot.skip(ftype)
  4596. iprot.readFieldEnd()
  4597. iprot.readStructEnd()
  4598. def write(self, oprot):
  4599. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4600. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4601. return
  4602. oprot.writeStructBegin('getVer_args')
  4603. if self.tableName is not None:
  4604. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  4605. oprot.writeString(self.tableName)
  4606. oprot.writeFieldEnd()
  4607. if self.row is not None:
  4608. oprot.writeFieldBegin('row', TType.STRING, 2)
  4609. oprot.writeString(self.row)
  4610. oprot.writeFieldEnd()
  4611. if self.column is not None:
  4612. oprot.writeFieldBegin('column', TType.STRING, 3)
  4613. oprot.writeString(self.column)
  4614. oprot.writeFieldEnd()
  4615. if self.numVersions is not None:
  4616. oprot.writeFieldBegin('numVersions', TType.I32, 4)
  4617. oprot.writeI32(self.numVersions)
  4618. oprot.writeFieldEnd()
  4619. if self.attributes is not None:
  4620. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  4621. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  4622. for kiter76,viter77 in self.attributes.items():
  4623. oprot.writeString(kiter76)
  4624. oprot.writeString(viter77)
  4625. oprot.writeMapEnd()
  4626. oprot.writeFieldEnd()
  4627. oprot.writeFieldStop()
  4628. oprot.writeStructEnd()
  4629. def validate(self):
  4630. return
  4631. def __hash__(self):
  4632. value = 17
  4633. value = (value * 31) ^ hash(self.tableName)
  4634. value = (value * 31) ^ hash(self.row)
  4635. value = (value * 31) ^ hash(self.column)
  4636. value = (value * 31) ^ hash(self.numVersions)
  4637. value = (value * 31) ^ hash(self.attributes)
  4638. return value
  4639. def __repr__(self):
  4640. L = ['%s=%r' % (key, value)
  4641. for key, value in self.__dict__.iteritems()]
  4642. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4643. def __eq__(self, other):
  4644. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4645. def __ne__(self, other):
  4646. return not (self == other)
  4647. class getVer_result(object):
  4648. """
  4649. Attributes:
  4650. - success
  4651. - io
  4652. """
  4653. thrift_spec = (
  4654. (0, TType.LIST, 'success', (TType.STRUCT,(TCell, TCell.thrift_spec)), None, ), # 0
  4655. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  4656. )
  4657. def __init__(self, success=None, io=None,):
  4658. self.success = success
  4659. self.io = io
  4660. def read(self, iprot):
  4661. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4662. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4663. return
  4664. iprot.readStructBegin()
  4665. while True:
  4666. (fname, ftype, fid) = iprot.readFieldBegin()
  4667. if ftype == TType.STOP:
  4668. break
  4669. if fid == 0:
  4670. if ftype == TType.LIST:
  4671. self.success = []
  4672. (_etype81, _size78) = iprot.readListBegin()
  4673. for _i82 in xrange(_size78):
  4674. _elem83 = TCell()
  4675. _elem83.read(iprot)
  4676. self.success.append(_elem83)
  4677. iprot.readListEnd()
  4678. else:
  4679. iprot.skip(ftype)
  4680. elif fid == 1:
  4681. if ftype == TType.STRUCT:
  4682. self.io = IOError()
  4683. self.io.read(iprot)
  4684. else:
  4685. iprot.skip(ftype)
  4686. else:
  4687. iprot.skip(ftype)
  4688. iprot.readFieldEnd()
  4689. iprot.readStructEnd()
  4690. def write(self, oprot):
  4691. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4692. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4693. return
  4694. oprot.writeStructBegin('getVer_result')
  4695. if self.success is not None:
  4696. oprot.writeFieldBegin('success', TType.LIST, 0)
  4697. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4698. for iter84 in self.success:
  4699. iter84.write(oprot)
  4700. oprot.writeListEnd()
  4701. oprot.writeFieldEnd()
  4702. if self.io is not None:
  4703. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  4704. self.io.write(oprot)
  4705. oprot.writeFieldEnd()
  4706. oprot.writeFieldStop()
  4707. oprot.writeStructEnd()
  4708. def validate(self):
  4709. return
  4710. def __hash__(self):
  4711. value = 17
  4712. value = (value * 31) ^ hash(self.success)
  4713. value = (value * 31) ^ hash(self.io)
  4714. return value
  4715. def __repr__(self):
  4716. L = ['%s=%r' % (key, value)
  4717. for key, value in self.__dict__.iteritems()]
  4718. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4719. def __eq__(self, other):
  4720. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4721. def __ne__(self, other):
  4722. return not (self == other)
  4723. class getVerTs_args(object):
  4724. """
  4725. Attributes:
  4726. - tableName: name of table
  4727. - row: row key
  4728. - column: column name
  4729. - timestamp: timestamp
  4730. - numVersions: number of versions to retrieve
  4731. - attributes: Get attributes
  4732. """
  4733. thrift_spec = (
  4734. None, # 0
  4735. (1, TType.STRING, 'tableName', None, None, ), # 1
  4736. (2, TType.STRING, 'row', None, None, ), # 2
  4737. (3, TType.STRING, 'column', None, None, ), # 3
  4738. (4, TType.I64, 'timestamp', None, None, ), # 4
  4739. (5, TType.I32, 'numVersions', None, None, ), # 5
  4740. (6, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 6
  4741. )
  4742. def __init__(self, tableName=None, row=None, column=None, timestamp=None, numVersions=None, attributes=None,):
  4743. self.tableName = tableName
  4744. self.row = row
  4745. self.column = column
  4746. self.timestamp = timestamp
  4747. self.numVersions = numVersions
  4748. self.attributes = attributes
  4749. def read(self, iprot):
  4750. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4751. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4752. return
  4753. iprot.readStructBegin()
  4754. while True:
  4755. (fname, ftype, fid) = iprot.readFieldBegin()
  4756. if ftype == TType.STOP:
  4757. break
  4758. if fid == 1:
  4759. if ftype == TType.STRING:
  4760. self.tableName = iprot.readString()
  4761. else:
  4762. iprot.skip(ftype)
  4763. elif fid == 2:
  4764. if ftype == TType.STRING:
  4765. self.row = iprot.readString()
  4766. else:
  4767. iprot.skip(ftype)
  4768. elif fid == 3:
  4769. if ftype == TType.STRING:
  4770. self.column = iprot.readString()
  4771. else:
  4772. iprot.skip(ftype)
  4773. elif fid == 4:
  4774. if ftype == TType.I64:
  4775. self.timestamp = iprot.readI64()
  4776. else:
  4777. iprot.skip(ftype)
  4778. elif fid == 5:
  4779. if ftype == TType.I32:
  4780. self.numVersions = iprot.readI32()
  4781. else:
  4782. iprot.skip(ftype)
  4783. elif fid == 6:
  4784. if ftype == TType.MAP:
  4785. self.attributes = {}
  4786. (_ktype86, _vtype87, _size85 ) = iprot.readMapBegin()
  4787. for _i89 in xrange(_size85):
  4788. _key90 = iprot.readString()
  4789. _val91 = iprot.readString()
  4790. self.attributes[_key90] = _val91
  4791. iprot.readMapEnd()
  4792. else:
  4793. iprot.skip(ftype)
  4794. else:
  4795. iprot.skip(ftype)
  4796. iprot.readFieldEnd()
  4797. iprot.readStructEnd()
  4798. def write(self, oprot):
  4799. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4800. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4801. return
  4802. oprot.writeStructBegin('getVerTs_args')
  4803. if self.tableName is not None:
  4804. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  4805. oprot.writeString(self.tableName)
  4806. oprot.writeFieldEnd()
  4807. if self.row is not None:
  4808. oprot.writeFieldBegin('row', TType.STRING, 2)
  4809. oprot.writeString(self.row)
  4810. oprot.writeFieldEnd()
  4811. if self.column is not None:
  4812. oprot.writeFieldBegin('column', TType.STRING, 3)
  4813. oprot.writeString(self.column)
  4814. oprot.writeFieldEnd()
  4815. if self.timestamp is not None:
  4816. oprot.writeFieldBegin('timestamp', TType.I64, 4)
  4817. oprot.writeI64(self.timestamp)
  4818. oprot.writeFieldEnd()
  4819. if self.numVersions is not None:
  4820. oprot.writeFieldBegin('numVersions', TType.I32, 5)
  4821. oprot.writeI32(self.numVersions)
  4822. oprot.writeFieldEnd()
  4823. if self.attributes is not None:
  4824. oprot.writeFieldBegin('attributes', TType.MAP, 6)
  4825. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  4826. for kiter92,viter93 in self.attributes.items():
  4827. oprot.writeString(kiter92)
  4828. oprot.writeString(viter93)
  4829. oprot.writeMapEnd()
  4830. oprot.writeFieldEnd()
  4831. oprot.writeFieldStop()
  4832. oprot.writeStructEnd()
  4833. def validate(self):
  4834. return
  4835. def __hash__(self):
  4836. value = 17
  4837. value = (value * 31) ^ hash(self.tableName)
  4838. value = (value * 31) ^ hash(self.row)
  4839. value = (value * 31) ^ hash(self.column)
  4840. value = (value * 31) ^ hash(self.timestamp)
  4841. value = (value * 31) ^ hash(self.numVersions)
  4842. value = (value * 31) ^ hash(self.attributes)
  4843. return value
  4844. def __repr__(self):
  4845. L = ['%s=%r' % (key, value)
  4846. for key, value in self.__dict__.iteritems()]
  4847. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4848. def __eq__(self, other):
  4849. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4850. def __ne__(self, other):
  4851. return not (self == other)
  4852. class getVerTs_result(object):
  4853. """
  4854. Attributes:
  4855. - success
  4856. - io
  4857. """
  4858. thrift_spec = (
  4859. (0, TType.LIST, 'success', (TType.STRUCT,(TCell, TCell.thrift_spec)), None, ), # 0
  4860. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  4861. )
  4862. def __init__(self, success=None, io=None,):
  4863. self.success = success
  4864. self.io = io
  4865. def read(self, iprot):
  4866. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4867. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4868. return
  4869. iprot.readStructBegin()
  4870. while True:
  4871. (fname, ftype, fid) = iprot.readFieldBegin()
  4872. if ftype == TType.STOP:
  4873. break
  4874. if fid == 0:
  4875. if ftype == TType.LIST:
  4876. self.success = []
  4877. (_etype97, _size94) = iprot.readListBegin()
  4878. for _i98 in xrange(_size94):
  4879. _elem99 = TCell()
  4880. _elem99.read(iprot)
  4881. self.success.append(_elem99)
  4882. iprot.readListEnd()
  4883. else:
  4884. iprot.skip(ftype)
  4885. elif fid == 1:
  4886. if ftype == TType.STRUCT:
  4887. self.io = IOError()
  4888. self.io.read(iprot)
  4889. else:
  4890. iprot.skip(ftype)
  4891. else:
  4892. iprot.skip(ftype)
  4893. iprot.readFieldEnd()
  4894. iprot.readStructEnd()
  4895. def write(self, oprot):
  4896. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4897. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4898. return
  4899. oprot.writeStructBegin('getVerTs_result')
  4900. if self.success is not None:
  4901. oprot.writeFieldBegin('success', TType.LIST, 0)
  4902. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4903. for iter100 in self.success:
  4904. iter100.write(oprot)
  4905. oprot.writeListEnd()
  4906. oprot.writeFieldEnd()
  4907. if self.io is not None:
  4908. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  4909. self.io.write(oprot)
  4910. oprot.writeFieldEnd()
  4911. oprot.writeFieldStop()
  4912. oprot.writeStructEnd()
  4913. def validate(self):
  4914. return
  4915. def __hash__(self):
  4916. value = 17
  4917. value = (value * 31) ^ hash(self.success)
  4918. value = (value * 31) ^ hash(self.io)
  4919. return value
  4920. def __repr__(self):
  4921. L = ['%s=%r' % (key, value)
  4922. for key, value in self.__dict__.iteritems()]
  4923. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4924. def __eq__(self, other):
  4925. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4926. def __ne__(self, other):
  4927. return not (self == other)
  4928. class getRow_args(object):
  4929. """
  4930. Attributes:
  4931. - tableName: name of table
  4932. - row: row key
  4933. - attributes: Get attributes
  4934. """
  4935. thrift_spec = (
  4936. None, # 0
  4937. (1, TType.STRING, 'tableName', None, None, ), # 1
  4938. (2, TType.STRING, 'row', None, None, ), # 2
  4939. (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
  4940. )
  4941. def __init__(self, tableName=None, row=None, attributes=None,):
  4942. self.tableName = tableName
  4943. self.row = row
  4944. self.attributes = attributes
  4945. def read(self, iprot):
  4946. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4947. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4948. return
  4949. iprot.readStructBegin()
  4950. while True:
  4951. (fname, ftype, fid) = iprot.readFieldBegin()
  4952. if ftype == TType.STOP:
  4953. break
  4954. if fid == 1:
  4955. if ftype == TType.STRING:
  4956. self.tableName = iprot.readString()
  4957. else:
  4958. iprot.skip(ftype)
  4959. elif fid == 2:
  4960. if ftype == TType.STRING:
  4961. self.row = iprot.readString()
  4962. else:
  4963. iprot.skip(ftype)
  4964. elif fid == 3:
  4965. if ftype == TType.MAP:
  4966. self.attributes = {}
  4967. (_ktype102, _vtype103, _size101 ) = iprot.readMapBegin()
  4968. for _i105 in xrange(_size101):
  4969. _key106 = iprot.readString()
  4970. _val107 = iprot.readString()
  4971. self.attributes[_key106] = _val107
  4972. iprot.readMapEnd()
  4973. else:
  4974. iprot.skip(ftype)
  4975. else:
  4976. iprot.skip(ftype)
  4977. iprot.readFieldEnd()
  4978. iprot.readStructEnd()
  4979. def write(self, oprot):
  4980. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4981. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4982. return
  4983. oprot.writeStructBegin('getRow_args')
  4984. if self.tableName is not None:
  4985. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  4986. oprot.writeString(self.tableName)
  4987. oprot.writeFieldEnd()
  4988. if self.row is not None:
  4989. oprot.writeFieldBegin('row', TType.STRING, 2)
  4990. oprot.writeString(self.row)
  4991. oprot.writeFieldEnd()
  4992. if self.attributes is not None:
  4993. oprot.writeFieldBegin('attributes', TType.MAP, 3)
  4994. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  4995. for kiter108,viter109 in self.attributes.items():
  4996. oprot.writeString(kiter108)
  4997. oprot.writeString(viter109)
  4998. oprot.writeMapEnd()
  4999. oprot.writeFieldEnd()
  5000. oprot.writeFieldStop()
  5001. oprot.writeStructEnd()
  5002. def validate(self):
  5003. return
  5004. def __hash__(self):
  5005. value = 17
  5006. value = (value * 31) ^ hash(self.tableName)
  5007. value = (value * 31) ^ hash(self.row)
  5008. value = (value * 31) ^ hash(self.attributes)
  5009. return value
  5010. def __repr__(self):
  5011. L = ['%s=%r' % (key, value)
  5012. for key, value in self.__dict__.iteritems()]
  5013. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5014. def __eq__(self, other):
  5015. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5016. def __ne__(self, other):
  5017. return not (self == other)
  5018. class getRow_result(object):
  5019. """
  5020. Attributes:
  5021. - success
  5022. - io
  5023. """
  5024. thrift_spec = (
  5025. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  5026. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  5027. )
  5028. def __init__(self, success=None, io=None,):
  5029. self.success = success
  5030. self.io = io
  5031. def read(self, iprot):
  5032. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5033. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5034. return
  5035. iprot.readStructBegin()
  5036. while True:
  5037. (fname, ftype, fid) = iprot.readFieldBegin()
  5038. if ftype == TType.STOP:
  5039. break
  5040. if fid == 0:
  5041. if ftype == TType.LIST:
  5042. self.success = []
  5043. (_etype113, _size110) = iprot.readListBegin()
  5044. for _i114 in xrange(_size110):
  5045. _elem115 = TRowResult()
  5046. _elem115.read(iprot)
  5047. self.success.append(_elem115)
  5048. iprot.readListEnd()
  5049. else:
  5050. iprot.skip(ftype)
  5051. elif fid == 1:
  5052. if ftype == TType.STRUCT:
  5053. self.io = IOError()
  5054. self.io.read(iprot)
  5055. else:
  5056. iprot.skip(ftype)
  5057. else:
  5058. iprot.skip(ftype)
  5059. iprot.readFieldEnd()
  5060. iprot.readStructEnd()
  5061. def write(self, oprot):
  5062. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5063. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5064. return
  5065. oprot.writeStructBegin('getRow_result')
  5066. if self.success is not None:
  5067. oprot.writeFieldBegin('success', TType.LIST, 0)
  5068. oprot.writeListBegin(TType.STRUCT, len(self.success))
  5069. for iter116 in self.success:
  5070. iter116.write(oprot)
  5071. oprot.writeListEnd()
  5072. oprot.writeFieldEnd()
  5073. if self.io is not None:
  5074. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  5075. self.io.write(oprot)
  5076. oprot.writeFieldEnd()
  5077. oprot.writeFieldStop()
  5078. oprot.writeStructEnd()
  5079. def validate(self):
  5080. return
  5081. def __hash__(self):
  5082. value = 17
  5083. value = (value * 31) ^ hash(self.success)
  5084. value = (value * 31) ^ hash(self.io)
  5085. return value
  5086. def __repr__(self):
  5087. L = ['%s=%r' % (key, value)
  5088. for key, value in self.__dict__.iteritems()]
  5089. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5090. def __eq__(self, other):
  5091. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5092. def __ne__(self, other):
  5093. return not (self == other)
  5094. class getRowWithColumns_args(object):
  5095. """
  5096. Attributes:
  5097. - tableName: name of table
  5098. - row: row key
  5099. - columns: List of columns to return, null for all columns
  5100. - attributes: Get attributes
  5101. """
  5102. thrift_spec = (
  5103. None, # 0
  5104. (1, TType.STRING, 'tableName', None, None, ), # 1
  5105. (2, TType.STRING, 'row', None, None, ), # 2
  5106. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  5107. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  5108. )
  5109. def __init__(self, tableName=None, row=None, columns=None, attributes=None,):
  5110. self.tableName = tableName
  5111. self.row = row
  5112. self.columns = columns
  5113. self.attributes = attributes
  5114. def read(self, iprot):
  5115. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5116. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5117. return
  5118. iprot.readStructBegin()
  5119. while True:
  5120. (fname, ftype, fid) = iprot.readFieldBegin()
  5121. if ftype == TType.STOP:
  5122. break
  5123. if fid == 1:
  5124. if ftype == TType.STRING:
  5125. self.tableName = iprot.readString()
  5126. else:
  5127. iprot.skip(ftype)
  5128. elif fid == 2:
  5129. if ftype == TType.STRING:
  5130. self.row = iprot.readString()
  5131. else:
  5132. iprot.skip(ftype)
  5133. elif fid == 3:
  5134. if ftype == TType.LIST:
  5135. self.columns = []
  5136. (_etype120, _size117) = iprot.readListBegin()
  5137. for _i121 in xrange(_size117):
  5138. _elem122 = iprot.readString()
  5139. self.columns.append(_elem122)
  5140. iprot.readListEnd()
  5141. else:
  5142. iprot.skip(ftype)
  5143. elif fid == 4:
  5144. if ftype == TType.MAP:
  5145. self.attributes = {}
  5146. (_ktype124, _vtype125, _size123 ) = iprot.readMapBegin()
  5147. for _i127 in xrange(_size123):
  5148. _key128 = iprot.readString()
  5149. _val129 = iprot.readString()
  5150. self.attributes[_key128] = _val129
  5151. iprot.readMapEnd()
  5152. else:
  5153. iprot.skip(ftype)
  5154. else:
  5155. iprot.skip(ftype)
  5156. iprot.readFieldEnd()
  5157. iprot.readStructEnd()
  5158. def write(self, oprot):
  5159. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5160. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5161. return
  5162. oprot.writeStructBegin('getRowWithColumns_args')
  5163. if self.tableName is not None:
  5164. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  5165. oprot.writeString(self.tableName)
  5166. oprot.writeFieldEnd()
  5167. if self.row is not None:
  5168. oprot.writeFieldBegin('row', TType.STRING, 2)
  5169. oprot.writeString(self.row)
  5170. oprot.writeFieldEnd()
  5171. if self.columns is not None:
  5172. oprot.writeFieldBegin('columns', TType.LIST, 3)
  5173. oprot.writeListBegin(TType.STRING, len(self.columns))
  5174. for iter130 in self.columns:
  5175. oprot.writeString(iter130)
  5176. oprot.writeListEnd()
  5177. oprot.writeFieldEnd()
  5178. if self.attributes is not None:
  5179. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  5180. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  5181. for kiter131,viter132 in self.attributes.items():
  5182. oprot.writeString(kiter131)
  5183. oprot.writeString(viter132)
  5184. oprot.writeMapEnd()
  5185. oprot.writeFieldEnd()
  5186. oprot.writeFieldStop()
  5187. oprot.writeStructEnd()
  5188. def validate(self):
  5189. return
  5190. def __hash__(self):
  5191. value = 17
  5192. value = (value * 31) ^ hash(self.tableName)
  5193. value = (value * 31) ^ hash(self.row)
  5194. value = (value * 31) ^ hash(self.columns)
  5195. value = (value * 31) ^ hash(self.attributes)
  5196. return value
  5197. def __repr__(self):
  5198. L = ['%s=%r' % (key, value)
  5199. for key, value in self.__dict__.iteritems()]
  5200. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5201. def __eq__(self, other):
  5202. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5203. def __ne__(self, other):
  5204. return not (self == other)
  5205. class getRowWithColumns_result(object):
  5206. """
  5207. Attributes:
  5208. - success
  5209. - io
  5210. """
  5211. thrift_spec = (
  5212. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  5213. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  5214. )
  5215. def __init__(self, success=None, io=None,):
  5216. self.success = success
  5217. self.io = io
  5218. def read(self, iprot):
  5219. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5220. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5221. return
  5222. iprot.readStructBegin()
  5223. while True:
  5224. (fname, ftype, fid) = iprot.readFieldBegin()
  5225. if ftype == TType.STOP:
  5226. break
  5227. if fid == 0:
  5228. if ftype == TType.LIST:
  5229. self.success = []
  5230. (_etype136, _size133) = iprot.readListBegin()
  5231. for _i137 in xrange(_size133):
  5232. _elem138 = TRowResult()
  5233. _elem138.read(iprot)
  5234. self.success.append(_elem138)
  5235. iprot.readListEnd()
  5236. else:
  5237. iprot.skip(ftype)
  5238. elif fid == 1:
  5239. if ftype == TType.STRUCT:
  5240. self.io = IOError()
  5241. self.io.read(iprot)
  5242. else:
  5243. iprot.skip(ftype)
  5244. else:
  5245. iprot.skip(ftype)
  5246. iprot.readFieldEnd()
  5247. iprot.readStructEnd()
  5248. def write(self, oprot):
  5249. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5250. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5251. return
  5252. oprot.writeStructBegin('getRowWithColumns_result')
  5253. if self.success is not None:
  5254. oprot.writeFieldBegin('success', TType.LIST, 0)
  5255. oprot.writeListBegin(TType.STRUCT, len(self.success))
  5256. for iter139 in self.success:
  5257. iter139.write(oprot)
  5258. oprot.writeListEnd()
  5259. oprot.writeFieldEnd()
  5260. if self.io is not None:
  5261. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  5262. self.io.write(oprot)
  5263. oprot.writeFieldEnd()
  5264. oprot.writeFieldStop()
  5265. oprot.writeStructEnd()
  5266. def validate(self):
  5267. return
  5268. def __hash__(self):
  5269. value = 17
  5270. value = (value * 31) ^ hash(self.success)
  5271. value = (value * 31) ^ hash(self.io)
  5272. return value
  5273. def __repr__(self):
  5274. L = ['%s=%r' % (key, value)
  5275. for key, value in self.__dict__.iteritems()]
  5276. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5277. def __eq__(self, other):
  5278. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5279. def __ne__(self, other):
  5280. return not (self == other)
  5281. class getRowTs_args(object):
  5282. """
  5283. Attributes:
  5284. - tableName: name of the table
  5285. - row: row key
  5286. - timestamp: timestamp
  5287. - attributes: Get attributes
  5288. """
  5289. thrift_spec = (
  5290. None, # 0
  5291. (1, TType.STRING, 'tableName', None, None, ), # 1
  5292. (2, TType.STRING, 'row', None, None, ), # 2
  5293. (3, TType.I64, 'timestamp', None, None, ), # 3
  5294. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  5295. )
  5296. def __init__(self, tableName=None, row=None, timestamp=None, attributes=None,):
  5297. self.tableName = tableName
  5298. self.row = row
  5299. self.timestamp = timestamp
  5300. self.attributes = attributes
  5301. def read(self, iprot):
  5302. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5303. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5304. return
  5305. iprot.readStructBegin()
  5306. while True:
  5307. (fname, ftype, fid) = iprot.readFieldBegin()
  5308. if ftype == TType.STOP:
  5309. break
  5310. if fid == 1:
  5311. if ftype == TType.STRING:
  5312. self.tableName = iprot.readString()
  5313. else:
  5314. iprot.skip(ftype)
  5315. elif fid == 2:
  5316. if ftype == TType.STRING:
  5317. self.row = iprot.readString()
  5318. else:
  5319. iprot.skip(ftype)
  5320. elif fid == 3:
  5321. if ftype == TType.I64:
  5322. self.timestamp = iprot.readI64()
  5323. else:
  5324. iprot.skip(ftype)
  5325. elif fid == 4:
  5326. if ftype == TType.MAP:
  5327. self.attributes = {}
  5328. (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin()
  5329. for _i144 in xrange(_size140):
  5330. _key145 = iprot.readString()
  5331. _val146 = iprot.readString()
  5332. self.attributes[_key145] = _val146
  5333. iprot.readMapEnd()
  5334. else:
  5335. iprot.skip(ftype)
  5336. else:
  5337. iprot.skip(ftype)
  5338. iprot.readFieldEnd()
  5339. iprot.readStructEnd()
  5340. def write(self, oprot):
  5341. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5342. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5343. return
  5344. oprot.writeStructBegin('getRowTs_args')
  5345. if self.tableName is not None:
  5346. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  5347. oprot.writeString(self.tableName)
  5348. oprot.writeFieldEnd()
  5349. if self.row is not None:
  5350. oprot.writeFieldBegin('row', TType.STRING, 2)
  5351. oprot.writeString(self.row)
  5352. oprot.writeFieldEnd()
  5353. if self.timestamp is not None:
  5354. oprot.writeFieldBegin('timestamp', TType.I64, 3)
  5355. oprot.writeI64(self.timestamp)
  5356. oprot.writeFieldEnd()
  5357. if self.attributes is not None:
  5358. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  5359. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  5360. for kiter147,viter148 in self.attributes.items():
  5361. oprot.writeString(kiter147)
  5362. oprot.writeString(viter148)
  5363. oprot.writeMapEnd()
  5364. oprot.writeFieldEnd()
  5365. oprot.writeFieldStop()
  5366. oprot.writeStructEnd()
  5367. def validate(self):
  5368. return
  5369. def __hash__(self):
  5370. value = 17
  5371. value = (value * 31) ^ hash(self.tableName)
  5372. value = (value * 31) ^ hash(self.row)
  5373. value = (value * 31) ^ hash(self.timestamp)
  5374. value = (value * 31) ^ hash(self.attributes)
  5375. return value
  5376. def __repr__(self):
  5377. L = ['%s=%r' % (key, value)
  5378. for key, value in self.__dict__.iteritems()]
  5379. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5380. def __eq__(self, other):
  5381. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5382. def __ne__(self, other):
  5383. return not (self == other)
  5384. class getRowTs_result(object):
  5385. """
  5386. Attributes:
  5387. - success
  5388. - io
  5389. """
  5390. thrift_spec = (
  5391. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  5392. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  5393. )
  5394. def __init__(self, success=None, io=None,):
  5395. self.success = success
  5396. self.io = io
  5397. def read(self, iprot):
  5398. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5399. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5400. return
  5401. iprot.readStructBegin()
  5402. while True:
  5403. (fname, ftype, fid) = iprot.readFieldBegin()
  5404. if ftype == TType.STOP:
  5405. break
  5406. if fid == 0:
  5407. if ftype == TType.LIST:
  5408. self.success = []
  5409. (_etype152, _size149) = iprot.readListBegin()
  5410. for _i153 in xrange(_size149):
  5411. _elem154 = TRowResult()
  5412. _elem154.read(iprot)
  5413. self.success.append(_elem154)
  5414. iprot.readListEnd()
  5415. else:
  5416. iprot.skip(ftype)
  5417. elif fid == 1:
  5418. if ftype == TType.STRUCT:
  5419. self.io = IOError()
  5420. self.io.read(iprot)
  5421. else:
  5422. iprot.skip(ftype)
  5423. else:
  5424. iprot.skip(ftype)
  5425. iprot.readFieldEnd()
  5426. iprot.readStructEnd()
  5427. def write(self, oprot):
  5428. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5429. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5430. return
  5431. oprot.writeStructBegin('getRowTs_result')
  5432. if self.success is not None:
  5433. oprot.writeFieldBegin('success', TType.LIST, 0)
  5434. oprot.writeListBegin(TType.STRUCT, len(self.success))
  5435. for iter155 in self.success:
  5436. iter155.write(oprot)
  5437. oprot.writeListEnd()
  5438. oprot.writeFieldEnd()
  5439. if self.io is not None:
  5440. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  5441. self.io.write(oprot)
  5442. oprot.writeFieldEnd()
  5443. oprot.writeFieldStop()
  5444. oprot.writeStructEnd()
  5445. def validate(self):
  5446. return
  5447. def __hash__(self):
  5448. value = 17
  5449. value = (value * 31) ^ hash(self.success)
  5450. value = (value * 31) ^ hash(self.io)
  5451. return value
  5452. def __repr__(self):
  5453. L = ['%s=%r' % (key, value)
  5454. for key, value in self.__dict__.iteritems()]
  5455. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5456. def __eq__(self, other):
  5457. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5458. def __ne__(self, other):
  5459. return not (self == other)
  5460. class getRowWithColumnsTs_args(object):
  5461. """
  5462. Attributes:
  5463. - tableName: name of table
  5464. - row: row key
  5465. - columns: List of columns to return, null for all columns
  5466. - timestamp
  5467. - attributes: Get attributes
  5468. """
  5469. thrift_spec = (
  5470. None, # 0
  5471. (1, TType.STRING, 'tableName', None, None, ), # 1
  5472. (2, TType.STRING, 'row', None, None, ), # 2
  5473. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  5474. (4, TType.I64, 'timestamp', None, None, ), # 4
  5475. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  5476. )
  5477. def __init__(self, tableName=None, row=None, columns=None, timestamp=None, attributes=None,):
  5478. self.tableName = tableName
  5479. self.row = row
  5480. self.columns = columns
  5481. self.timestamp = timestamp
  5482. self.attributes = attributes
  5483. def read(self, iprot):
  5484. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5485. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5486. return
  5487. iprot.readStructBegin()
  5488. while True:
  5489. (fname, ftype, fid) = iprot.readFieldBegin()
  5490. if ftype == TType.STOP:
  5491. break
  5492. if fid == 1:
  5493. if ftype == TType.STRING:
  5494. self.tableName = iprot.readString()
  5495. else:
  5496. iprot.skip(ftype)
  5497. elif fid == 2:
  5498. if ftype == TType.STRING:
  5499. self.row = iprot.readString()
  5500. else:
  5501. iprot.skip(ftype)
  5502. elif fid == 3:
  5503. if ftype == TType.LIST:
  5504. self.columns = []
  5505. (_etype159, _size156) = iprot.readListBegin()
  5506. for _i160 in xrange(_size156):
  5507. _elem161 = iprot.readString()
  5508. self.columns.append(_elem161)
  5509. iprot.readListEnd()
  5510. else:
  5511. iprot.skip(ftype)
  5512. elif fid == 4:
  5513. if ftype == TType.I64:
  5514. self.timestamp = iprot.readI64()
  5515. else:
  5516. iprot.skip(ftype)
  5517. elif fid == 5:
  5518. if ftype == TType.MAP:
  5519. self.attributes = {}
  5520. (_ktype163, _vtype164, _size162 ) = iprot.readMapBegin()
  5521. for _i166 in xrange(_size162):
  5522. _key167 = iprot.readString()
  5523. _val168 = iprot.readString()
  5524. self.attributes[_key167] = _val168
  5525. iprot.readMapEnd()
  5526. else:
  5527. iprot.skip(ftype)
  5528. else:
  5529. iprot.skip(ftype)
  5530. iprot.readFieldEnd()
  5531. iprot.readStructEnd()
  5532. def write(self, oprot):
  5533. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5534. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5535. return
  5536. oprot.writeStructBegin('getRowWithColumnsTs_args')
  5537. if self.tableName is not None:
  5538. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  5539. oprot.writeString(self.tableName)
  5540. oprot.writeFieldEnd()
  5541. if self.row is not None:
  5542. oprot.writeFieldBegin('row', TType.STRING, 2)
  5543. oprot.writeString(self.row)
  5544. oprot.writeFieldEnd()
  5545. if self.columns is not None:
  5546. oprot.writeFieldBegin('columns', TType.LIST, 3)
  5547. oprot.writeListBegin(TType.STRING, len(self.columns))
  5548. for iter169 in self.columns:
  5549. oprot.writeString(iter169)
  5550. oprot.writeListEnd()
  5551. oprot.writeFieldEnd()
  5552. if self.timestamp is not None:
  5553. oprot.writeFieldBegin('timestamp', TType.I64, 4)
  5554. oprot.writeI64(self.timestamp)
  5555. oprot.writeFieldEnd()
  5556. if self.attributes is not None:
  5557. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  5558. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  5559. for kiter170,viter171 in self.attributes.items():
  5560. oprot.writeString(kiter170)
  5561. oprot.writeString(viter171)
  5562. oprot.writeMapEnd()
  5563. oprot.writeFieldEnd()
  5564. oprot.writeFieldStop()
  5565. oprot.writeStructEnd()
  5566. def validate(self):
  5567. return
  5568. def __hash__(self):
  5569. value = 17
  5570. value = (value * 31) ^ hash(self.tableName)
  5571. value = (value * 31) ^ hash(self.row)
  5572. value = (value * 31) ^ hash(self.columns)
  5573. value = (value * 31) ^ hash(self.timestamp)
  5574. value = (value * 31) ^ hash(self.attributes)
  5575. return value
  5576. def __repr__(self):
  5577. L = ['%s=%r' % (key, value)
  5578. for key, value in self.__dict__.iteritems()]
  5579. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5580. def __eq__(self, other):
  5581. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5582. def __ne__(self, other):
  5583. return not (self == other)
  5584. class getRowWithColumnsTs_result(object):
  5585. """
  5586. Attributes:
  5587. - success
  5588. - io
  5589. """
  5590. thrift_spec = (
  5591. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  5592. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  5593. )
  5594. def __init__(self, success=None, io=None,):
  5595. self.success = success
  5596. self.io = io
  5597. def read(self, iprot):
  5598. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5599. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5600. return
  5601. iprot.readStructBegin()
  5602. while True:
  5603. (fname, ftype, fid) = iprot.readFieldBegin()
  5604. if ftype == TType.STOP:
  5605. break
  5606. if fid == 0:
  5607. if ftype == TType.LIST:
  5608. self.success = []
  5609. (_etype175, _size172) = iprot.readListBegin()
  5610. for _i176 in xrange(_size172):
  5611. _elem177 = TRowResult()
  5612. _elem177.read(iprot)
  5613. self.success.append(_elem177)
  5614. iprot.readListEnd()
  5615. else:
  5616. iprot.skip(ftype)
  5617. elif fid == 1:
  5618. if ftype == TType.STRUCT:
  5619. self.io = IOError()
  5620. self.io.read(iprot)
  5621. else:
  5622. iprot.skip(ftype)
  5623. else:
  5624. iprot.skip(ftype)
  5625. iprot.readFieldEnd()
  5626. iprot.readStructEnd()
  5627. def write(self, oprot):
  5628. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5629. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5630. return
  5631. oprot.writeStructBegin('getRowWithColumnsTs_result')
  5632. if self.success is not None:
  5633. oprot.writeFieldBegin('success', TType.LIST, 0)
  5634. oprot.writeListBegin(TType.STRUCT, len(self.success))
  5635. for iter178 in self.success:
  5636. iter178.write(oprot)
  5637. oprot.writeListEnd()
  5638. oprot.writeFieldEnd()
  5639. if self.io is not None:
  5640. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  5641. self.io.write(oprot)
  5642. oprot.writeFieldEnd()
  5643. oprot.writeFieldStop()
  5644. oprot.writeStructEnd()
  5645. def validate(self):
  5646. return
  5647. def __hash__(self):
  5648. value = 17
  5649. value = (value * 31) ^ hash(self.success)
  5650. value = (value * 31) ^ hash(self.io)
  5651. return value
  5652. def __repr__(self):
  5653. L = ['%s=%r' % (key, value)
  5654. for key, value in self.__dict__.iteritems()]
  5655. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5656. def __eq__(self, other):
  5657. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5658. def __ne__(self, other):
  5659. return not (self == other)
  5660. class getRows_args(object):
  5661. """
  5662. Attributes:
  5663. - tableName: name of table
  5664. - rows: row keys
  5665. - attributes: Get attributes
  5666. """
  5667. thrift_spec = (
  5668. None, # 0
  5669. (1, TType.STRING, 'tableName', None, None, ), # 1
  5670. (2, TType.LIST, 'rows', (TType.STRING,None), None, ), # 2
  5671. (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
  5672. )
  5673. def __init__(self, tableName=None, rows=None, attributes=None,):
  5674. self.tableName = tableName
  5675. self.rows = rows
  5676. self.attributes = attributes
  5677. def read(self, iprot):
  5678. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5679. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5680. return
  5681. iprot.readStructBegin()
  5682. while True:
  5683. (fname, ftype, fid) = iprot.readFieldBegin()
  5684. if ftype == TType.STOP:
  5685. break
  5686. if fid == 1:
  5687. if ftype == TType.STRING:
  5688. self.tableName = iprot.readString()
  5689. else:
  5690. iprot.skip(ftype)
  5691. elif fid == 2:
  5692. if ftype == TType.LIST:
  5693. self.rows = []
  5694. (_etype182, _size179) = iprot.readListBegin()
  5695. for _i183 in xrange(_size179):
  5696. _elem184 = iprot.readString()
  5697. self.rows.append(_elem184)
  5698. iprot.readListEnd()
  5699. else:
  5700. iprot.skip(ftype)
  5701. elif fid == 3:
  5702. if ftype == TType.MAP:
  5703. self.attributes = {}
  5704. (_ktype186, _vtype187, _size185 ) = iprot.readMapBegin()
  5705. for _i189 in xrange(_size185):
  5706. _key190 = iprot.readString()
  5707. _val191 = iprot.readString()
  5708. self.attributes[_key190] = _val191
  5709. iprot.readMapEnd()
  5710. else:
  5711. iprot.skip(ftype)
  5712. else:
  5713. iprot.skip(ftype)
  5714. iprot.readFieldEnd()
  5715. iprot.readStructEnd()
  5716. def write(self, oprot):
  5717. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5718. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5719. return
  5720. oprot.writeStructBegin('getRows_args')
  5721. if self.tableName is not None:
  5722. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  5723. oprot.writeString(self.tableName)
  5724. oprot.writeFieldEnd()
  5725. if self.rows is not None:
  5726. oprot.writeFieldBegin('rows', TType.LIST, 2)
  5727. oprot.writeListBegin(TType.STRING, len(self.rows))
  5728. for iter192 in self.rows:
  5729. oprot.writeString(iter192)
  5730. oprot.writeListEnd()
  5731. oprot.writeFieldEnd()
  5732. if self.attributes is not None:
  5733. oprot.writeFieldBegin('attributes', TType.MAP, 3)
  5734. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  5735. for kiter193,viter194 in self.attributes.items():
  5736. oprot.writeString(kiter193)
  5737. oprot.writeString(viter194)
  5738. oprot.writeMapEnd()
  5739. oprot.writeFieldEnd()
  5740. oprot.writeFieldStop()
  5741. oprot.writeStructEnd()
  5742. def validate(self):
  5743. return
  5744. def __hash__(self):
  5745. value = 17
  5746. value = (value * 31) ^ hash(self.tableName)
  5747. value = (value * 31) ^ hash(self.rows)
  5748. value = (value * 31) ^ hash(self.attributes)
  5749. return value
  5750. def __repr__(self):
  5751. L = ['%s=%r' % (key, value)
  5752. for key, value in self.__dict__.iteritems()]
  5753. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5754. def __eq__(self, other):
  5755. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5756. def __ne__(self, other):
  5757. return not (self == other)
  5758. class getRows_result(object):
  5759. """
  5760. Attributes:
  5761. - success
  5762. - io
  5763. """
  5764. thrift_spec = (
  5765. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  5766. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  5767. )
  5768. def __init__(self, success=None, io=None,):
  5769. self.success = success
  5770. self.io = io
  5771. def read(self, iprot):
  5772. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5773. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5774. return
  5775. iprot.readStructBegin()
  5776. while True:
  5777. (fname, ftype, fid) = iprot.readFieldBegin()
  5778. if ftype == TType.STOP:
  5779. break
  5780. if fid == 0:
  5781. if ftype == TType.LIST:
  5782. self.success = []
  5783. (_etype198, _size195) = iprot.readListBegin()
  5784. for _i199 in xrange(_size195):
  5785. _elem200 = TRowResult()
  5786. _elem200.read(iprot)
  5787. self.success.append(_elem200)
  5788. iprot.readListEnd()
  5789. else:
  5790. iprot.skip(ftype)
  5791. elif fid == 1:
  5792. if ftype == TType.STRUCT:
  5793. self.io = IOError()
  5794. self.io.read(iprot)
  5795. else:
  5796. iprot.skip(ftype)
  5797. else:
  5798. iprot.skip(ftype)
  5799. iprot.readFieldEnd()
  5800. iprot.readStructEnd()
  5801. def write(self, oprot):
  5802. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5803. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5804. return
  5805. oprot.writeStructBegin('getRows_result')
  5806. if self.success is not None:
  5807. oprot.writeFieldBegin('success', TType.LIST, 0)
  5808. oprot.writeListBegin(TType.STRUCT, len(self.success))
  5809. for iter201 in self.success:
  5810. iter201.write(oprot)
  5811. oprot.writeListEnd()
  5812. oprot.writeFieldEnd()
  5813. if self.io is not None:
  5814. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  5815. self.io.write(oprot)
  5816. oprot.writeFieldEnd()
  5817. oprot.writeFieldStop()
  5818. oprot.writeStructEnd()
  5819. def validate(self):
  5820. return
  5821. def __hash__(self):
  5822. value = 17
  5823. value = (value * 31) ^ hash(self.success)
  5824. value = (value * 31) ^ hash(self.io)
  5825. return value
  5826. def __repr__(self):
  5827. L = ['%s=%r' % (key, value)
  5828. for key, value in self.__dict__.iteritems()]
  5829. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5830. def __eq__(self, other):
  5831. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5832. def __ne__(self, other):
  5833. return not (self == other)
  5834. class getRowsWithColumns_args(object):
  5835. """
  5836. Attributes:
  5837. - tableName: name of table
  5838. - rows: row keys
  5839. - columns: List of columns to return, null for all columns
  5840. - attributes: Get attributes
  5841. """
  5842. thrift_spec = (
  5843. None, # 0
  5844. (1, TType.STRING, 'tableName', None, None, ), # 1
  5845. (2, TType.LIST, 'rows', (TType.STRING,None), None, ), # 2
  5846. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  5847. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  5848. )
  5849. def __init__(self, tableName=None, rows=None, columns=None, attributes=None,):
  5850. self.tableName = tableName
  5851. self.rows = rows
  5852. self.columns = columns
  5853. self.attributes = attributes
  5854. def read(self, iprot):
  5855. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5856. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5857. return
  5858. iprot.readStructBegin()
  5859. while True:
  5860. (fname, ftype, fid) = iprot.readFieldBegin()
  5861. if ftype == TType.STOP:
  5862. break
  5863. if fid == 1:
  5864. if ftype == TType.STRING:
  5865. self.tableName = iprot.readString()
  5866. else:
  5867. iprot.skip(ftype)
  5868. elif fid == 2:
  5869. if ftype == TType.LIST:
  5870. self.rows = []
  5871. (_etype205, _size202) = iprot.readListBegin()
  5872. for _i206 in xrange(_size202):
  5873. _elem207 = iprot.readString()
  5874. self.rows.append(_elem207)
  5875. iprot.readListEnd()
  5876. else:
  5877. iprot.skip(ftype)
  5878. elif fid == 3:
  5879. if ftype == TType.LIST:
  5880. self.columns = []
  5881. (_etype211, _size208) = iprot.readListBegin()
  5882. for _i212 in xrange(_size208):
  5883. _elem213 = iprot.readString()
  5884. self.columns.append(_elem213)
  5885. iprot.readListEnd()
  5886. else:
  5887. iprot.skip(ftype)
  5888. elif fid == 4:
  5889. if ftype == TType.MAP:
  5890. self.attributes = {}
  5891. (_ktype215, _vtype216, _size214 ) = iprot.readMapBegin()
  5892. for _i218 in xrange(_size214):
  5893. _key219 = iprot.readString()
  5894. _val220 = iprot.readString()
  5895. self.attributes[_key219] = _val220
  5896. iprot.readMapEnd()
  5897. else:
  5898. iprot.skip(ftype)
  5899. else:
  5900. iprot.skip(ftype)
  5901. iprot.readFieldEnd()
  5902. iprot.readStructEnd()
  5903. def write(self, oprot):
  5904. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5905. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5906. return
  5907. oprot.writeStructBegin('getRowsWithColumns_args')
  5908. if self.tableName is not None:
  5909. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  5910. oprot.writeString(self.tableName)
  5911. oprot.writeFieldEnd()
  5912. if self.rows is not None:
  5913. oprot.writeFieldBegin('rows', TType.LIST, 2)
  5914. oprot.writeListBegin(TType.STRING, len(self.rows))
  5915. for iter221 in self.rows:
  5916. oprot.writeString(iter221)
  5917. oprot.writeListEnd()
  5918. oprot.writeFieldEnd()
  5919. if self.columns is not None:
  5920. oprot.writeFieldBegin('columns', TType.LIST, 3)
  5921. oprot.writeListBegin(TType.STRING, len(self.columns))
  5922. for iter222 in self.columns:
  5923. oprot.writeString(iter222)
  5924. oprot.writeListEnd()
  5925. oprot.writeFieldEnd()
  5926. if self.attributes is not None:
  5927. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  5928. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  5929. for kiter223,viter224 in self.attributes.items():
  5930. oprot.writeString(kiter223)
  5931. oprot.writeString(viter224)
  5932. oprot.writeMapEnd()
  5933. oprot.writeFieldEnd()
  5934. oprot.writeFieldStop()
  5935. oprot.writeStructEnd()
  5936. def validate(self):
  5937. return
  5938. def __hash__(self):
  5939. value = 17
  5940. value = (value * 31) ^ hash(self.tableName)
  5941. value = (value * 31) ^ hash(self.rows)
  5942. value = (value * 31) ^ hash(self.columns)
  5943. value = (value * 31) ^ hash(self.attributes)
  5944. return value
  5945. def __repr__(self):
  5946. L = ['%s=%r' % (key, value)
  5947. for key, value in self.__dict__.iteritems()]
  5948. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5949. def __eq__(self, other):
  5950. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5951. def __ne__(self, other):
  5952. return not (self == other)
  5953. class getRowsWithColumns_result(object):
  5954. """
  5955. Attributes:
  5956. - success
  5957. - io
  5958. """
  5959. thrift_spec = (
  5960. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  5961. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  5962. )
  5963. def __init__(self, success=None, io=None,):
  5964. self.success = success
  5965. self.io = io
  5966. def read(self, iprot):
  5967. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5968. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5969. return
  5970. iprot.readStructBegin()
  5971. while True:
  5972. (fname, ftype, fid) = iprot.readFieldBegin()
  5973. if ftype == TType.STOP:
  5974. break
  5975. if fid == 0:
  5976. if ftype == TType.LIST:
  5977. self.success = []
  5978. (_etype228, _size225) = iprot.readListBegin()
  5979. for _i229 in xrange(_size225):
  5980. _elem230 = TRowResult()
  5981. _elem230.read(iprot)
  5982. self.success.append(_elem230)
  5983. iprot.readListEnd()
  5984. else:
  5985. iprot.skip(ftype)
  5986. elif fid == 1:
  5987. if ftype == TType.STRUCT:
  5988. self.io = IOError()
  5989. self.io.read(iprot)
  5990. else:
  5991. iprot.skip(ftype)
  5992. else:
  5993. iprot.skip(ftype)
  5994. iprot.readFieldEnd()
  5995. iprot.readStructEnd()
  5996. def write(self, oprot):
  5997. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5998. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5999. return
  6000. oprot.writeStructBegin('getRowsWithColumns_result')
  6001. if self.success is not None:
  6002. oprot.writeFieldBegin('success', TType.LIST, 0)
  6003. oprot.writeListBegin(TType.STRUCT, len(self.success))
  6004. for iter231 in self.success:
  6005. iter231.write(oprot)
  6006. oprot.writeListEnd()
  6007. oprot.writeFieldEnd()
  6008. if self.io is not None:
  6009. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  6010. self.io.write(oprot)
  6011. oprot.writeFieldEnd()
  6012. oprot.writeFieldStop()
  6013. oprot.writeStructEnd()
  6014. def validate(self):
  6015. return
  6016. def __hash__(self):
  6017. value = 17
  6018. value = (value * 31) ^ hash(self.success)
  6019. value = (value * 31) ^ hash(self.io)
  6020. return value
  6021. def __repr__(self):
  6022. L = ['%s=%r' % (key, value)
  6023. for key, value in self.__dict__.iteritems()]
  6024. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6025. def __eq__(self, other):
  6026. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6027. def __ne__(self, other):
  6028. return not (self == other)
  6029. class getRowsTs_args(object):
  6030. """
  6031. Attributes:
  6032. - tableName: name of the table
  6033. - rows: row keys
  6034. - timestamp: timestamp
  6035. - attributes: Get attributes
  6036. """
  6037. thrift_spec = (
  6038. None, # 0
  6039. (1, TType.STRING, 'tableName', None, None, ), # 1
  6040. (2, TType.LIST, 'rows', (TType.STRING,None), None, ), # 2
  6041. (3, TType.I64, 'timestamp', None, None, ), # 3
  6042. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  6043. )
  6044. def __init__(self, tableName=None, rows=None, timestamp=None, attributes=None,):
  6045. self.tableName = tableName
  6046. self.rows = rows
  6047. self.timestamp = timestamp
  6048. self.attributes = attributes
  6049. def read(self, iprot):
  6050. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6051. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6052. return
  6053. iprot.readStructBegin()
  6054. while True:
  6055. (fname, ftype, fid) = iprot.readFieldBegin()
  6056. if ftype == TType.STOP:
  6057. break
  6058. if fid == 1:
  6059. if ftype == TType.STRING:
  6060. self.tableName = iprot.readString()
  6061. else:
  6062. iprot.skip(ftype)
  6063. elif fid == 2:
  6064. if ftype == TType.LIST:
  6065. self.rows = []
  6066. (_etype235, _size232) = iprot.readListBegin()
  6067. for _i236 in xrange(_size232):
  6068. _elem237 = iprot.readString()
  6069. self.rows.append(_elem237)
  6070. iprot.readListEnd()
  6071. else:
  6072. iprot.skip(ftype)
  6073. elif fid == 3:
  6074. if ftype == TType.I64:
  6075. self.timestamp = iprot.readI64()
  6076. else:
  6077. iprot.skip(ftype)
  6078. elif fid == 4:
  6079. if ftype == TType.MAP:
  6080. self.attributes = {}
  6081. (_ktype239, _vtype240, _size238 ) = iprot.readMapBegin()
  6082. for _i242 in xrange(_size238):
  6083. _key243 = iprot.readString()
  6084. _val244 = iprot.readString()
  6085. self.attributes[_key243] = _val244
  6086. iprot.readMapEnd()
  6087. else:
  6088. iprot.skip(ftype)
  6089. else:
  6090. iprot.skip(ftype)
  6091. iprot.readFieldEnd()
  6092. iprot.readStructEnd()
  6093. def write(self, oprot):
  6094. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6095. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6096. return
  6097. oprot.writeStructBegin('getRowsTs_args')
  6098. if self.tableName is not None:
  6099. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  6100. oprot.writeString(self.tableName)
  6101. oprot.writeFieldEnd()
  6102. if self.rows is not None:
  6103. oprot.writeFieldBegin('rows', TType.LIST, 2)
  6104. oprot.writeListBegin(TType.STRING, len(self.rows))
  6105. for iter245 in self.rows:
  6106. oprot.writeString(iter245)
  6107. oprot.writeListEnd()
  6108. oprot.writeFieldEnd()
  6109. if self.timestamp is not None:
  6110. oprot.writeFieldBegin('timestamp', TType.I64, 3)
  6111. oprot.writeI64(self.timestamp)
  6112. oprot.writeFieldEnd()
  6113. if self.attributes is not None:
  6114. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  6115. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  6116. for kiter246,viter247 in self.attributes.items():
  6117. oprot.writeString(kiter246)
  6118. oprot.writeString(viter247)
  6119. oprot.writeMapEnd()
  6120. oprot.writeFieldEnd()
  6121. oprot.writeFieldStop()
  6122. oprot.writeStructEnd()
  6123. def validate(self):
  6124. return
  6125. def __hash__(self):
  6126. value = 17
  6127. value = (value * 31) ^ hash(self.tableName)
  6128. value = (value * 31) ^ hash(self.rows)
  6129. value = (value * 31) ^ hash(self.timestamp)
  6130. value = (value * 31) ^ hash(self.attributes)
  6131. return value
  6132. def __repr__(self):
  6133. L = ['%s=%r' % (key, value)
  6134. for key, value in self.__dict__.iteritems()]
  6135. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6136. def __eq__(self, other):
  6137. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6138. def __ne__(self, other):
  6139. return not (self == other)
  6140. class getRowsTs_result(object):
  6141. """
  6142. Attributes:
  6143. - success
  6144. - io
  6145. """
  6146. thrift_spec = (
  6147. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  6148. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  6149. )
  6150. def __init__(self, success=None, io=None,):
  6151. self.success = success
  6152. self.io = io
  6153. def read(self, iprot):
  6154. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6155. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6156. return
  6157. iprot.readStructBegin()
  6158. while True:
  6159. (fname, ftype, fid) = iprot.readFieldBegin()
  6160. if ftype == TType.STOP:
  6161. break
  6162. if fid == 0:
  6163. if ftype == TType.LIST:
  6164. self.success = []
  6165. (_etype251, _size248) = iprot.readListBegin()
  6166. for _i252 in xrange(_size248):
  6167. _elem253 = TRowResult()
  6168. _elem253.read(iprot)
  6169. self.success.append(_elem253)
  6170. iprot.readListEnd()
  6171. else:
  6172. iprot.skip(ftype)
  6173. elif fid == 1:
  6174. if ftype == TType.STRUCT:
  6175. self.io = IOError()
  6176. self.io.read(iprot)
  6177. else:
  6178. iprot.skip(ftype)
  6179. else:
  6180. iprot.skip(ftype)
  6181. iprot.readFieldEnd()
  6182. iprot.readStructEnd()
  6183. def write(self, oprot):
  6184. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6185. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6186. return
  6187. oprot.writeStructBegin('getRowsTs_result')
  6188. if self.success is not None:
  6189. oprot.writeFieldBegin('success', TType.LIST, 0)
  6190. oprot.writeListBegin(TType.STRUCT, len(self.success))
  6191. for iter254 in self.success:
  6192. iter254.write(oprot)
  6193. oprot.writeListEnd()
  6194. oprot.writeFieldEnd()
  6195. if self.io is not None:
  6196. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  6197. self.io.write(oprot)
  6198. oprot.writeFieldEnd()
  6199. oprot.writeFieldStop()
  6200. oprot.writeStructEnd()
  6201. def validate(self):
  6202. return
  6203. def __hash__(self):
  6204. value = 17
  6205. value = (value * 31) ^ hash(self.success)
  6206. value = (value * 31) ^ hash(self.io)
  6207. return value
  6208. def __repr__(self):
  6209. L = ['%s=%r' % (key, value)
  6210. for key, value in self.__dict__.iteritems()]
  6211. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6212. def __eq__(self, other):
  6213. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6214. def __ne__(self, other):
  6215. return not (self == other)
  6216. class getRowsWithColumnsTs_args(object):
  6217. """
  6218. Attributes:
  6219. - tableName: name of table
  6220. - rows: row keys
  6221. - columns: List of columns to return, null for all columns
  6222. - timestamp
  6223. - attributes: Get attributes
  6224. """
  6225. thrift_spec = (
  6226. None, # 0
  6227. (1, TType.STRING, 'tableName', None, None, ), # 1
  6228. (2, TType.LIST, 'rows', (TType.STRING,None), None, ), # 2
  6229. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  6230. (4, TType.I64, 'timestamp', None, None, ), # 4
  6231. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  6232. )
  6233. def __init__(self, tableName=None, rows=None, columns=None, timestamp=None, attributes=None,):
  6234. self.tableName = tableName
  6235. self.rows = rows
  6236. self.columns = columns
  6237. self.timestamp = timestamp
  6238. self.attributes = attributes
  6239. def read(self, iprot):
  6240. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6241. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6242. return
  6243. iprot.readStructBegin()
  6244. while True:
  6245. (fname, ftype, fid) = iprot.readFieldBegin()
  6246. if ftype == TType.STOP:
  6247. break
  6248. if fid == 1:
  6249. if ftype == TType.STRING:
  6250. self.tableName = iprot.readString()
  6251. else:
  6252. iprot.skip(ftype)
  6253. elif fid == 2:
  6254. if ftype == TType.LIST:
  6255. self.rows = []
  6256. (_etype258, _size255) = iprot.readListBegin()
  6257. for _i259 in xrange(_size255):
  6258. _elem260 = iprot.readString()
  6259. self.rows.append(_elem260)
  6260. iprot.readListEnd()
  6261. else:
  6262. iprot.skip(ftype)
  6263. elif fid == 3:
  6264. if ftype == TType.LIST:
  6265. self.columns = []
  6266. (_etype264, _size261) = iprot.readListBegin()
  6267. for _i265 in xrange(_size261):
  6268. _elem266 = iprot.readString()
  6269. self.columns.append(_elem266)
  6270. iprot.readListEnd()
  6271. else:
  6272. iprot.skip(ftype)
  6273. elif fid == 4:
  6274. if ftype == TType.I64:
  6275. self.timestamp = iprot.readI64()
  6276. else:
  6277. iprot.skip(ftype)
  6278. elif fid == 5:
  6279. if ftype == TType.MAP:
  6280. self.attributes = {}
  6281. (_ktype268, _vtype269, _size267 ) = iprot.readMapBegin()
  6282. for _i271 in xrange(_size267):
  6283. _key272 = iprot.readString()
  6284. _val273 = iprot.readString()
  6285. self.attributes[_key272] = _val273
  6286. iprot.readMapEnd()
  6287. else:
  6288. iprot.skip(ftype)
  6289. else:
  6290. iprot.skip(ftype)
  6291. iprot.readFieldEnd()
  6292. iprot.readStructEnd()
  6293. def write(self, oprot):
  6294. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6295. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6296. return
  6297. oprot.writeStructBegin('getRowsWithColumnsTs_args')
  6298. if self.tableName is not None:
  6299. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  6300. oprot.writeString(self.tableName)
  6301. oprot.writeFieldEnd()
  6302. if self.rows is not None:
  6303. oprot.writeFieldBegin('rows', TType.LIST, 2)
  6304. oprot.writeListBegin(TType.STRING, len(self.rows))
  6305. for iter274 in self.rows:
  6306. oprot.writeString(iter274)
  6307. oprot.writeListEnd()
  6308. oprot.writeFieldEnd()
  6309. if self.columns is not None:
  6310. oprot.writeFieldBegin('columns', TType.LIST, 3)
  6311. oprot.writeListBegin(TType.STRING, len(self.columns))
  6312. for iter275 in self.columns:
  6313. oprot.writeString(iter275)
  6314. oprot.writeListEnd()
  6315. oprot.writeFieldEnd()
  6316. if self.timestamp is not None:
  6317. oprot.writeFieldBegin('timestamp', TType.I64, 4)
  6318. oprot.writeI64(self.timestamp)
  6319. oprot.writeFieldEnd()
  6320. if self.attributes is not None:
  6321. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  6322. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  6323. for kiter276,viter277 in self.attributes.items():
  6324. oprot.writeString(kiter276)
  6325. oprot.writeString(viter277)
  6326. oprot.writeMapEnd()
  6327. oprot.writeFieldEnd()
  6328. oprot.writeFieldStop()
  6329. oprot.writeStructEnd()
  6330. def validate(self):
  6331. return
  6332. def __hash__(self):
  6333. value = 17
  6334. value = (value * 31) ^ hash(self.tableName)
  6335. value = (value * 31) ^ hash(self.rows)
  6336. value = (value * 31) ^ hash(self.columns)
  6337. value = (value * 31) ^ hash(self.timestamp)
  6338. value = (value * 31) ^ hash(self.attributes)
  6339. return value
  6340. def __repr__(self):
  6341. L = ['%s=%r' % (key, value)
  6342. for key, value in self.__dict__.iteritems()]
  6343. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6344. def __eq__(self, other):
  6345. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6346. def __ne__(self, other):
  6347. return not (self == other)
  6348. class getRowsWithColumnsTs_result(object):
  6349. """
  6350. Attributes:
  6351. - success
  6352. - io
  6353. """
  6354. thrift_spec = (
  6355. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  6356. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  6357. )
  6358. def __init__(self, success=None, io=None,):
  6359. self.success = success
  6360. self.io = io
  6361. def read(self, iprot):
  6362. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6363. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6364. return
  6365. iprot.readStructBegin()
  6366. while True:
  6367. (fname, ftype, fid) = iprot.readFieldBegin()
  6368. if ftype == TType.STOP:
  6369. break
  6370. if fid == 0:
  6371. if ftype == TType.LIST:
  6372. self.success = []
  6373. (_etype281, _size278) = iprot.readListBegin()
  6374. for _i282 in xrange(_size278):
  6375. _elem283 = TRowResult()
  6376. _elem283.read(iprot)
  6377. self.success.append(_elem283)
  6378. iprot.readListEnd()
  6379. else:
  6380. iprot.skip(ftype)
  6381. elif fid == 1:
  6382. if ftype == TType.STRUCT:
  6383. self.io = IOError()
  6384. self.io.read(iprot)
  6385. else:
  6386. iprot.skip(ftype)
  6387. else:
  6388. iprot.skip(ftype)
  6389. iprot.readFieldEnd()
  6390. iprot.readStructEnd()
  6391. def write(self, oprot):
  6392. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6393. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6394. return
  6395. oprot.writeStructBegin('getRowsWithColumnsTs_result')
  6396. if self.success is not None:
  6397. oprot.writeFieldBegin('success', TType.LIST, 0)
  6398. oprot.writeListBegin(TType.STRUCT, len(self.success))
  6399. for iter284 in self.success:
  6400. iter284.write(oprot)
  6401. oprot.writeListEnd()
  6402. oprot.writeFieldEnd()
  6403. if self.io is not None:
  6404. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  6405. self.io.write(oprot)
  6406. oprot.writeFieldEnd()
  6407. oprot.writeFieldStop()
  6408. oprot.writeStructEnd()
  6409. def validate(self):
  6410. return
  6411. def __hash__(self):
  6412. value = 17
  6413. value = (value * 31) ^ hash(self.success)
  6414. value = (value * 31) ^ hash(self.io)
  6415. return value
  6416. def __repr__(self):
  6417. L = ['%s=%r' % (key, value)
  6418. for key, value in self.__dict__.iteritems()]
  6419. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6420. def __eq__(self, other):
  6421. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6422. def __ne__(self, other):
  6423. return not (self == other)
  6424. class mutateRow_args(object):
  6425. """
  6426. Attributes:
  6427. - tableName: name of table
  6428. - row: row key
  6429. - mutations: list of mutation commands
  6430. - attributes: Mutation attributes
  6431. """
  6432. thrift_spec = (
  6433. None, # 0
  6434. (1, TType.STRING, 'tableName', None, None, ), # 1
  6435. (2, TType.STRING, 'row', None, None, ), # 2
  6436. (3, TType.LIST, 'mutations', (TType.STRUCT,(Mutation, Mutation.thrift_spec)), None, ), # 3
  6437. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  6438. )
  6439. def __init__(self, tableName=None, row=None, mutations=None, attributes=None,):
  6440. self.tableName = tableName
  6441. self.row = row
  6442. self.mutations = mutations
  6443. self.attributes = attributes
  6444. def read(self, iprot):
  6445. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6446. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6447. return
  6448. iprot.readStructBegin()
  6449. while True:
  6450. (fname, ftype, fid) = iprot.readFieldBegin()
  6451. if ftype == TType.STOP:
  6452. break
  6453. if fid == 1:
  6454. if ftype == TType.STRING:
  6455. self.tableName = iprot.readString()
  6456. else:
  6457. iprot.skip(ftype)
  6458. elif fid == 2:
  6459. if ftype == TType.STRING:
  6460. self.row = iprot.readString()
  6461. else:
  6462. iprot.skip(ftype)
  6463. elif fid == 3:
  6464. if ftype == TType.LIST:
  6465. self.mutations = []
  6466. (_etype288, _size285) = iprot.readListBegin()
  6467. for _i289 in xrange(_size285):
  6468. _elem290 = Mutation()
  6469. _elem290.read(iprot)
  6470. self.mutations.append(_elem290)
  6471. iprot.readListEnd()
  6472. else:
  6473. iprot.skip(ftype)
  6474. elif fid == 4:
  6475. if ftype == TType.MAP:
  6476. self.attributes = {}
  6477. (_ktype292, _vtype293, _size291 ) = iprot.readMapBegin()
  6478. for _i295 in xrange(_size291):
  6479. _key296 = iprot.readString()
  6480. _val297 = iprot.readString()
  6481. self.attributes[_key296] = _val297
  6482. iprot.readMapEnd()
  6483. else:
  6484. iprot.skip(ftype)
  6485. else:
  6486. iprot.skip(ftype)
  6487. iprot.readFieldEnd()
  6488. iprot.readStructEnd()
  6489. def write(self, oprot):
  6490. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6491. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6492. return
  6493. oprot.writeStructBegin('mutateRow_args')
  6494. if self.tableName is not None:
  6495. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  6496. oprot.writeString(self.tableName)
  6497. oprot.writeFieldEnd()
  6498. if self.row is not None:
  6499. oprot.writeFieldBegin('row', TType.STRING, 2)
  6500. oprot.writeString(self.row)
  6501. oprot.writeFieldEnd()
  6502. if self.mutations is not None:
  6503. oprot.writeFieldBegin('mutations', TType.LIST, 3)
  6504. oprot.writeListBegin(TType.STRUCT, len(self.mutations))
  6505. for iter298 in self.mutations:
  6506. iter298.write(oprot)
  6507. oprot.writeListEnd()
  6508. oprot.writeFieldEnd()
  6509. if self.attributes is not None:
  6510. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  6511. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  6512. for kiter299,viter300 in self.attributes.items():
  6513. oprot.writeString(kiter299)
  6514. oprot.writeString(viter300)
  6515. oprot.writeMapEnd()
  6516. oprot.writeFieldEnd()
  6517. oprot.writeFieldStop()
  6518. oprot.writeStructEnd()
  6519. def validate(self):
  6520. return
  6521. def __hash__(self):
  6522. value = 17
  6523. value = (value * 31) ^ hash(self.tableName)
  6524. value = (value * 31) ^ hash(self.row)
  6525. value = (value * 31) ^ hash(self.mutations)
  6526. value = (value * 31) ^ hash(self.attributes)
  6527. return value
  6528. def __repr__(self):
  6529. L = ['%s=%r' % (key, value)
  6530. for key, value in self.__dict__.iteritems()]
  6531. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6532. def __eq__(self, other):
  6533. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6534. def __ne__(self, other):
  6535. return not (self == other)
  6536. class mutateRow_result(object):
  6537. """
  6538. Attributes:
  6539. - io
  6540. - ia
  6541. """
  6542. thrift_spec = (
  6543. None, # 0
  6544. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  6545. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  6546. )
  6547. def __init__(self, io=None, ia=None,):
  6548. self.io = io
  6549. self.ia = ia
  6550. def read(self, iprot):
  6551. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6552. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6553. return
  6554. iprot.readStructBegin()
  6555. while True:
  6556. (fname, ftype, fid) = iprot.readFieldBegin()
  6557. if ftype == TType.STOP:
  6558. break
  6559. if fid == 1:
  6560. if ftype == TType.STRUCT:
  6561. self.io = IOError()
  6562. self.io.read(iprot)
  6563. else:
  6564. iprot.skip(ftype)
  6565. elif fid == 2:
  6566. if ftype == TType.STRUCT:
  6567. self.ia = IllegalArgument()
  6568. self.ia.read(iprot)
  6569. else:
  6570. iprot.skip(ftype)
  6571. else:
  6572. iprot.skip(ftype)
  6573. iprot.readFieldEnd()
  6574. iprot.readStructEnd()
  6575. def write(self, oprot):
  6576. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6577. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6578. return
  6579. oprot.writeStructBegin('mutateRow_result')
  6580. if self.io is not None:
  6581. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  6582. self.io.write(oprot)
  6583. oprot.writeFieldEnd()
  6584. if self.ia is not None:
  6585. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  6586. self.ia.write(oprot)
  6587. oprot.writeFieldEnd()
  6588. oprot.writeFieldStop()
  6589. oprot.writeStructEnd()
  6590. def validate(self):
  6591. return
  6592. def __hash__(self):
  6593. value = 17
  6594. value = (value * 31) ^ hash(self.io)
  6595. value = (value * 31) ^ hash(self.ia)
  6596. return value
  6597. def __repr__(self):
  6598. L = ['%s=%r' % (key, value)
  6599. for key, value in self.__dict__.iteritems()]
  6600. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6601. def __eq__(self, other):
  6602. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6603. def __ne__(self, other):
  6604. return not (self == other)
  6605. class mutateRowTs_args(object):
  6606. """
  6607. Attributes:
  6608. - tableName: name of table
  6609. - row: row key
  6610. - mutations: list of mutation commands
  6611. - timestamp: timestamp
  6612. - attributes: Mutation attributes
  6613. """
  6614. thrift_spec = (
  6615. None, # 0
  6616. (1, TType.STRING, 'tableName', None, None, ), # 1
  6617. (2, TType.STRING, 'row', None, None, ), # 2
  6618. (3, TType.LIST, 'mutations', (TType.STRUCT,(Mutation, Mutation.thrift_spec)), None, ), # 3
  6619. (4, TType.I64, 'timestamp', None, None, ), # 4
  6620. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  6621. )
  6622. def __init__(self, tableName=None, row=None, mutations=None, timestamp=None, attributes=None,):
  6623. self.tableName = tableName
  6624. self.row = row
  6625. self.mutations = mutations
  6626. self.timestamp = timestamp
  6627. self.attributes = attributes
  6628. def read(self, iprot):
  6629. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6630. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6631. return
  6632. iprot.readStructBegin()
  6633. while True:
  6634. (fname, ftype, fid) = iprot.readFieldBegin()
  6635. if ftype == TType.STOP:
  6636. break
  6637. if fid == 1:
  6638. if ftype == TType.STRING:
  6639. self.tableName = iprot.readString()
  6640. else:
  6641. iprot.skip(ftype)
  6642. elif fid == 2:
  6643. if ftype == TType.STRING:
  6644. self.row = iprot.readString()
  6645. else:
  6646. iprot.skip(ftype)
  6647. elif fid == 3:
  6648. if ftype == TType.LIST:
  6649. self.mutations = []
  6650. (_etype304, _size301) = iprot.readListBegin()
  6651. for _i305 in xrange(_size301):
  6652. _elem306 = Mutation()
  6653. _elem306.read(iprot)
  6654. self.mutations.append(_elem306)
  6655. iprot.readListEnd()
  6656. else:
  6657. iprot.skip(ftype)
  6658. elif fid == 4:
  6659. if ftype == TType.I64:
  6660. self.timestamp = iprot.readI64()
  6661. else:
  6662. iprot.skip(ftype)
  6663. elif fid == 5:
  6664. if ftype == TType.MAP:
  6665. self.attributes = {}
  6666. (_ktype308, _vtype309, _size307 ) = iprot.readMapBegin()
  6667. for _i311 in xrange(_size307):
  6668. _key312 = iprot.readString()
  6669. _val313 = iprot.readString()
  6670. self.attributes[_key312] = _val313
  6671. iprot.readMapEnd()
  6672. else:
  6673. iprot.skip(ftype)
  6674. else:
  6675. iprot.skip(ftype)
  6676. iprot.readFieldEnd()
  6677. iprot.readStructEnd()
  6678. def write(self, oprot):
  6679. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6680. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6681. return
  6682. oprot.writeStructBegin('mutateRowTs_args')
  6683. if self.tableName is not None:
  6684. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  6685. oprot.writeString(self.tableName)
  6686. oprot.writeFieldEnd()
  6687. if self.row is not None:
  6688. oprot.writeFieldBegin('row', TType.STRING, 2)
  6689. oprot.writeString(self.row)
  6690. oprot.writeFieldEnd()
  6691. if self.mutations is not None:
  6692. oprot.writeFieldBegin('mutations', TType.LIST, 3)
  6693. oprot.writeListBegin(TType.STRUCT, len(self.mutations))
  6694. for iter314 in self.mutations:
  6695. iter314.write(oprot)
  6696. oprot.writeListEnd()
  6697. oprot.writeFieldEnd()
  6698. if self.timestamp is not None:
  6699. oprot.writeFieldBegin('timestamp', TType.I64, 4)
  6700. oprot.writeI64(self.timestamp)
  6701. oprot.writeFieldEnd()
  6702. if self.attributes is not None:
  6703. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  6704. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  6705. for kiter315,viter316 in self.attributes.items():
  6706. oprot.writeString(kiter315)
  6707. oprot.writeString(viter316)
  6708. oprot.writeMapEnd()
  6709. oprot.writeFieldEnd()
  6710. oprot.writeFieldStop()
  6711. oprot.writeStructEnd()
  6712. def validate(self):
  6713. return
  6714. def __hash__(self):
  6715. value = 17
  6716. value = (value * 31) ^ hash(self.tableName)
  6717. value = (value * 31) ^ hash(self.row)
  6718. value = (value * 31) ^ hash(self.mutations)
  6719. value = (value * 31) ^ hash(self.timestamp)
  6720. value = (value * 31) ^ hash(self.attributes)
  6721. return value
  6722. def __repr__(self):
  6723. L = ['%s=%r' % (key, value)
  6724. for key, value in self.__dict__.iteritems()]
  6725. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6726. def __eq__(self, other):
  6727. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6728. def __ne__(self, other):
  6729. return not (self == other)
  6730. class mutateRowTs_result(object):
  6731. """
  6732. Attributes:
  6733. - io
  6734. - ia
  6735. """
  6736. thrift_spec = (
  6737. None, # 0
  6738. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  6739. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  6740. )
  6741. def __init__(self, io=None, ia=None,):
  6742. self.io = io
  6743. self.ia = ia
  6744. def read(self, iprot):
  6745. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6746. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6747. return
  6748. iprot.readStructBegin()
  6749. while True:
  6750. (fname, ftype, fid) = iprot.readFieldBegin()
  6751. if ftype == TType.STOP:
  6752. break
  6753. if fid == 1:
  6754. if ftype == TType.STRUCT:
  6755. self.io = IOError()
  6756. self.io.read(iprot)
  6757. else:
  6758. iprot.skip(ftype)
  6759. elif fid == 2:
  6760. if ftype == TType.STRUCT:
  6761. self.ia = IllegalArgument()
  6762. self.ia.read(iprot)
  6763. else:
  6764. iprot.skip(ftype)
  6765. else:
  6766. iprot.skip(ftype)
  6767. iprot.readFieldEnd()
  6768. iprot.readStructEnd()
  6769. def write(self, oprot):
  6770. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6771. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6772. return
  6773. oprot.writeStructBegin('mutateRowTs_result')
  6774. if self.io is not None:
  6775. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  6776. self.io.write(oprot)
  6777. oprot.writeFieldEnd()
  6778. if self.ia is not None:
  6779. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  6780. self.ia.write(oprot)
  6781. oprot.writeFieldEnd()
  6782. oprot.writeFieldStop()
  6783. oprot.writeStructEnd()
  6784. def validate(self):
  6785. return
  6786. def __hash__(self):
  6787. value = 17
  6788. value = (value * 31) ^ hash(self.io)
  6789. value = (value * 31) ^ hash(self.ia)
  6790. return value
  6791. def __repr__(self):
  6792. L = ['%s=%r' % (key, value)
  6793. for key, value in self.__dict__.iteritems()]
  6794. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6795. def __eq__(self, other):
  6796. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6797. def __ne__(self, other):
  6798. return not (self == other)
  6799. class mutateRows_args(object):
  6800. """
  6801. Attributes:
  6802. - tableName: name of table
  6803. - rowBatches: list of row batches
  6804. - attributes: Mutation attributes
  6805. """
  6806. thrift_spec = (
  6807. None, # 0
  6808. (1, TType.STRING, 'tableName', None, None, ), # 1
  6809. (2, TType.LIST, 'rowBatches', (TType.STRUCT,(BatchMutation, BatchMutation.thrift_spec)), None, ), # 2
  6810. (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
  6811. )
  6812. def __init__(self, tableName=None, rowBatches=None, attributes=None,):
  6813. self.tableName = tableName
  6814. self.rowBatches = rowBatches
  6815. self.attributes = attributes
  6816. def read(self, iprot):
  6817. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6818. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6819. return
  6820. iprot.readStructBegin()
  6821. while True:
  6822. (fname, ftype, fid) = iprot.readFieldBegin()
  6823. if ftype == TType.STOP:
  6824. break
  6825. if fid == 1:
  6826. if ftype == TType.STRING:
  6827. self.tableName = iprot.readString()
  6828. else:
  6829. iprot.skip(ftype)
  6830. elif fid == 2:
  6831. if ftype == TType.LIST:
  6832. self.rowBatches = []
  6833. (_etype320, _size317) = iprot.readListBegin()
  6834. for _i321 in xrange(_size317):
  6835. _elem322 = BatchMutation()
  6836. _elem322.read(iprot)
  6837. self.rowBatches.append(_elem322)
  6838. iprot.readListEnd()
  6839. else:
  6840. iprot.skip(ftype)
  6841. elif fid == 3:
  6842. if ftype == TType.MAP:
  6843. self.attributes = {}
  6844. (_ktype324, _vtype325, _size323 ) = iprot.readMapBegin()
  6845. for _i327 in xrange(_size323):
  6846. _key328 = iprot.readString()
  6847. _val329 = iprot.readString()
  6848. self.attributes[_key328] = _val329
  6849. iprot.readMapEnd()
  6850. else:
  6851. iprot.skip(ftype)
  6852. else:
  6853. iprot.skip(ftype)
  6854. iprot.readFieldEnd()
  6855. iprot.readStructEnd()
  6856. def write(self, oprot):
  6857. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6858. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6859. return
  6860. oprot.writeStructBegin('mutateRows_args')
  6861. if self.tableName is not None:
  6862. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  6863. oprot.writeString(self.tableName)
  6864. oprot.writeFieldEnd()
  6865. if self.rowBatches is not None:
  6866. oprot.writeFieldBegin('rowBatches', TType.LIST, 2)
  6867. oprot.writeListBegin(TType.STRUCT, len(self.rowBatches))
  6868. for iter330 in self.rowBatches:
  6869. iter330.write(oprot)
  6870. oprot.writeListEnd()
  6871. oprot.writeFieldEnd()
  6872. if self.attributes is not None:
  6873. oprot.writeFieldBegin('attributes', TType.MAP, 3)
  6874. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  6875. for kiter331,viter332 in self.attributes.items():
  6876. oprot.writeString(kiter331)
  6877. oprot.writeString(viter332)
  6878. oprot.writeMapEnd()
  6879. oprot.writeFieldEnd()
  6880. oprot.writeFieldStop()
  6881. oprot.writeStructEnd()
  6882. def validate(self):
  6883. return
  6884. def __hash__(self):
  6885. value = 17
  6886. value = (value * 31) ^ hash(self.tableName)
  6887. value = (value * 31) ^ hash(self.rowBatches)
  6888. value = (value * 31) ^ hash(self.attributes)
  6889. return value
  6890. def __repr__(self):
  6891. L = ['%s=%r' % (key, value)
  6892. for key, value in self.__dict__.iteritems()]
  6893. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6894. def __eq__(self, other):
  6895. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6896. def __ne__(self, other):
  6897. return not (self == other)
  6898. class mutateRows_result(object):
  6899. """
  6900. Attributes:
  6901. - io
  6902. - ia
  6903. """
  6904. thrift_spec = (
  6905. None, # 0
  6906. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  6907. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  6908. )
  6909. def __init__(self, io=None, ia=None,):
  6910. self.io = io
  6911. self.ia = ia
  6912. def read(self, iprot):
  6913. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6914. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6915. return
  6916. iprot.readStructBegin()
  6917. while True:
  6918. (fname, ftype, fid) = iprot.readFieldBegin()
  6919. if ftype == TType.STOP:
  6920. break
  6921. if fid == 1:
  6922. if ftype == TType.STRUCT:
  6923. self.io = IOError()
  6924. self.io.read(iprot)
  6925. else:
  6926. iprot.skip(ftype)
  6927. elif fid == 2:
  6928. if ftype == TType.STRUCT:
  6929. self.ia = IllegalArgument()
  6930. self.ia.read(iprot)
  6931. else:
  6932. iprot.skip(ftype)
  6933. else:
  6934. iprot.skip(ftype)
  6935. iprot.readFieldEnd()
  6936. iprot.readStructEnd()
  6937. def write(self, oprot):
  6938. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6939. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6940. return
  6941. oprot.writeStructBegin('mutateRows_result')
  6942. if self.io is not None:
  6943. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  6944. self.io.write(oprot)
  6945. oprot.writeFieldEnd()
  6946. if self.ia is not None:
  6947. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  6948. self.ia.write(oprot)
  6949. oprot.writeFieldEnd()
  6950. oprot.writeFieldStop()
  6951. oprot.writeStructEnd()
  6952. def validate(self):
  6953. return
  6954. def __hash__(self):
  6955. value = 17
  6956. value = (value * 31) ^ hash(self.io)
  6957. value = (value * 31) ^ hash(self.ia)
  6958. return value
  6959. def __repr__(self):
  6960. L = ['%s=%r' % (key, value)
  6961. for key, value in self.__dict__.iteritems()]
  6962. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6963. def __eq__(self, other):
  6964. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6965. def __ne__(self, other):
  6966. return not (self == other)
  6967. class mutateRowsTs_args(object):
  6968. """
  6969. Attributes:
  6970. - tableName: name of table
  6971. - rowBatches: list of row batches
  6972. - timestamp: timestamp
  6973. - attributes: Mutation attributes
  6974. """
  6975. thrift_spec = (
  6976. None, # 0
  6977. (1, TType.STRING, 'tableName', None, None, ), # 1
  6978. (2, TType.LIST, 'rowBatches', (TType.STRUCT,(BatchMutation, BatchMutation.thrift_spec)), None, ), # 2
  6979. (3, TType.I64, 'timestamp', None, None, ), # 3
  6980. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  6981. )
  6982. def __init__(self, tableName=None, rowBatches=None, timestamp=None, attributes=None,):
  6983. self.tableName = tableName
  6984. self.rowBatches = rowBatches
  6985. self.timestamp = timestamp
  6986. self.attributes = attributes
  6987. def read(self, iprot):
  6988. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6989. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6990. return
  6991. iprot.readStructBegin()
  6992. while True:
  6993. (fname, ftype, fid) = iprot.readFieldBegin()
  6994. if ftype == TType.STOP:
  6995. break
  6996. if fid == 1:
  6997. if ftype == TType.STRING:
  6998. self.tableName = iprot.readString()
  6999. else:
  7000. iprot.skip(ftype)
  7001. elif fid == 2:
  7002. if ftype == TType.LIST:
  7003. self.rowBatches = []
  7004. (_etype336, _size333) = iprot.readListBegin()
  7005. for _i337 in xrange(_size333):
  7006. _elem338 = BatchMutation()
  7007. _elem338.read(iprot)
  7008. self.rowBatches.append(_elem338)
  7009. iprot.readListEnd()
  7010. else:
  7011. iprot.skip(ftype)
  7012. elif fid == 3:
  7013. if ftype == TType.I64:
  7014. self.timestamp = iprot.readI64()
  7015. else:
  7016. iprot.skip(ftype)
  7017. elif fid == 4:
  7018. if ftype == TType.MAP:
  7019. self.attributes = {}
  7020. (_ktype340, _vtype341, _size339 ) = iprot.readMapBegin()
  7021. for _i343 in xrange(_size339):
  7022. _key344 = iprot.readString()
  7023. _val345 = iprot.readString()
  7024. self.attributes[_key344] = _val345
  7025. iprot.readMapEnd()
  7026. else:
  7027. iprot.skip(ftype)
  7028. else:
  7029. iprot.skip(ftype)
  7030. iprot.readFieldEnd()
  7031. iprot.readStructEnd()
  7032. def write(self, oprot):
  7033. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7034. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7035. return
  7036. oprot.writeStructBegin('mutateRowsTs_args')
  7037. if self.tableName is not None:
  7038. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  7039. oprot.writeString(self.tableName)
  7040. oprot.writeFieldEnd()
  7041. if self.rowBatches is not None:
  7042. oprot.writeFieldBegin('rowBatches', TType.LIST, 2)
  7043. oprot.writeListBegin(TType.STRUCT, len(self.rowBatches))
  7044. for iter346 in self.rowBatches:
  7045. iter346.write(oprot)
  7046. oprot.writeListEnd()
  7047. oprot.writeFieldEnd()
  7048. if self.timestamp is not None:
  7049. oprot.writeFieldBegin('timestamp', TType.I64, 3)
  7050. oprot.writeI64(self.timestamp)
  7051. oprot.writeFieldEnd()
  7052. if self.attributes is not None:
  7053. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  7054. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  7055. for kiter347,viter348 in self.attributes.items():
  7056. oprot.writeString(kiter347)
  7057. oprot.writeString(viter348)
  7058. oprot.writeMapEnd()
  7059. oprot.writeFieldEnd()
  7060. oprot.writeFieldStop()
  7061. oprot.writeStructEnd()
  7062. def validate(self):
  7063. return
  7064. def __hash__(self):
  7065. value = 17
  7066. value = (value * 31) ^ hash(self.tableName)
  7067. value = (value * 31) ^ hash(self.rowBatches)
  7068. value = (value * 31) ^ hash(self.timestamp)
  7069. value = (value * 31) ^ hash(self.attributes)
  7070. return value
  7071. def __repr__(self):
  7072. L = ['%s=%r' % (key, value)
  7073. for key, value in self.__dict__.iteritems()]
  7074. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7075. def __eq__(self, other):
  7076. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7077. def __ne__(self, other):
  7078. return not (self == other)
  7079. class mutateRowsTs_result(object):
  7080. """
  7081. Attributes:
  7082. - io
  7083. - ia
  7084. """
  7085. thrift_spec = (
  7086. None, # 0
  7087. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7088. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  7089. )
  7090. def __init__(self, io=None, ia=None,):
  7091. self.io = io
  7092. self.ia = ia
  7093. def read(self, iprot):
  7094. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7095. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7096. return
  7097. iprot.readStructBegin()
  7098. while True:
  7099. (fname, ftype, fid) = iprot.readFieldBegin()
  7100. if ftype == TType.STOP:
  7101. break
  7102. if fid == 1:
  7103. if ftype == TType.STRUCT:
  7104. self.io = IOError()
  7105. self.io.read(iprot)
  7106. else:
  7107. iprot.skip(ftype)
  7108. elif fid == 2:
  7109. if ftype == TType.STRUCT:
  7110. self.ia = IllegalArgument()
  7111. self.ia.read(iprot)
  7112. else:
  7113. iprot.skip(ftype)
  7114. else:
  7115. iprot.skip(ftype)
  7116. iprot.readFieldEnd()
  7117. iprot.readStructEnd()
  7118. def write(self, oprot):
  7119. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7120. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7121. return
  7122. oprot.writeStructBegin('mutateRowsTs_result')
  7123. if self.io is not None:
  7124. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7125. self.io.write(oprot)
  7126. oprot.writeFieldEnd()
  7127. if self.ia is not None:
  7128. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  7129. self.ia.write(oprot)
  7130. oprot.writeFieldEnd()
  7131. oprot.writeFieldStop()
  7132. oprot.writeStructEnd()
  7133. def validate(self):
  7134. return
  7135. def __hash__(self):
  7136. value = 17
  7137. value = (value * 31) ^ hash(self.io)
  7138. value = (value * 31) ^ hash(self.ia)
  7139. return value
  7140. def __repr__(self):
  7141. L = ['%s=%r' % (key, value)
  7142. for key, value in self.__dict__.iteritems()]
  7143. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7144. def __eq__(self, other):
  7145. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7146. def __ne__(self, other):
  7147. return not (self == other)
  7148. class atomicIncrement_args(object):
  7149. """
  7150. Attributes:
  7151. - tableName: name of table
  7152. - row: row to increment
  7153. - column: name of column
  7154. - value: amount to increment by
  7155. """
  7156. thrift_spec = (
  7157. None, # 0
  7158. (1, TType.STRING, 'tableName', None, None, ), # 1
  7159. (2, TType.STRING, 'row', None, None, ), # 2
  7160. (3, TType.STRING, 'column', None, None, ), # 3
  7161. (4, TType.I64, 'value', None, None, ), # 4
  7162. )
  7163. def __init__(self, tableName=None, row=None, column=None, value=None,):
  7164. self.tableName = tableName
  7165. self.row = row
  7166. self.column = column
  7167. self.value = value
  7168. def read(self, iprot):
  7169. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7170. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7171. return
  7172. iprot.readStructBegin()
  7173. while True:
  7174. (fname, ftype, fid) = iprot.readFieldBegin()
  7175. if ftype == TType.STOP:
  7176. break
  7177. if fid == 1:
  7178. if ftype == TType.STRING:
  7179. self.tableName = iprot.readString()
  7180. else:
  7181. iprot.skip(ftype)
  7182. elif fid == 2:
  7183. if ftype == TType.STRING:
  7184. self.row = iprot.readString()
  7185. else:
  7186. iprot.skip(ftype)
  7187. elif fid == 3:
  7188. if ftype == TType.STRING:
  7189. self.column = iprot.readString()
  7190. else:
  7191. iprot.skip(ftype)
  7192. elif fid == 4:
  7193. if ftype == TType.I64:
  7194. self.value = iprot.readI64()
  7195. else:
  7196. iprot.skip(ftype)
  7197. else:
  7198. iprot.skip(ftype)
  7199. iprot.readFieldEnd()
  7200. iprot.readStructEnd()
  7201. def write(self, oprot):
  7202. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7203. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7204. return
  7205. oprot.writeStructBegin('atomicIncrement_args')
  7206. if self.tableName is not None:
  7207. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  7208. oprot.writeString(self.tableName)
  7209. oprot.writeFieldEnd()
  7210. if self.row is not None:
  7211. oprot.writeFieldBegin('row', TType.STRING, 2)
  7212. oprot.writeString(self.row)
  7213. oprot.writeFieldEnd()
  7214. if self.column is not None:
  7215. oprot.writeFieldBegin('column', TType.STRING, 3)
  7216. oprot.writeString(self.column)
  7217. oprot.writeFieldEnd()
  7218. if self.value is not None:
  7219. oprot.writeFieldBegin('value', TType.I64, 4)
  7220. oprot.writeI64(self.value)
  7221. oprot.writeFieldEnd()
  7222. oprot.writeFieldStop()
  7223. oprot.writeStructEnd()
  7224. def validate(self):
  7225. return
  7226. def __hash__(self):
  7227. value = 17
  7228. value = (value * 31) ^ hash(self.tableName)
  7229. value = (value * 31) ^ hash(self.row)
  7230. value = (value * 31) ^ hash(self.column)
  7231. value = (value * 31) ^ hash(self.value)
  7232. return value
  7233. def __repr__(self):
  7234. L = ['%s=%r' % (key, value)
  7235. for key, value in self.__dict__.iteritems()]
  7236. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7237. def __eq__(self, other):
  7238. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7239. def __ne__(self, other):
  7240. return not (self == other)
  7241. class atomicIncrement_result(object):
  7242. """
  7243. Attributes:
  7244. - success
  7245. - io
  7246. - ia
  7247. """
  7248. thrift_spec = (
  7249. (0, TType.I64, 'success', None, None, ), # 0
  7250. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7251. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  7252. )
  7253. def __init__(self, success=None, io=None, ia=None,):
  7254. self.success = success
  7255. self.io = io
  7256. self.ia = ia
  7257. def read(self, iprot):
  7258. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7259. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7260. return
  7261. iprot.readStructBegin()
  7262. while True:
  7263. (fname, ftype, fid) = iprot.readFieldBegin()
  7264. if ftype == TType.STOP:
  7265. break
  7266. if fid == 0:
  7267. if ftype == TType.I64:
  7268. self.success = iprot.readI64()
  7269. else:
  7270. iprot.skip(ftype)
  7271. elif fid == 1:
  7272. if ftype == TType.STRUCT:
  7273. self.io = IOError()
  7274. self.io.read(iprot)
  7275. else:
  7276. iprot.skip(ftype)
  7277. elif fid == 2:
  7278. if ftype == TType.STRUCT:
  7279. self.ia = IllegalArgument()
  7280. self.ia.read(iprot)
  7281. else:
  7282. iprot.skip(ftype)
  7283. else:
  7284. iprot.skip(ftype)
  7285. iprot.readFieldEnd()
  7286. iprot.readStructEnd()
  7287. def write(self, oprot):
  7288. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7289. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7290. return
  7291. oprot.writeStructBegin('atomicIncrement_result')
  7292. if self.success is not None:
  7293. oprot.writeFieldBegin('success', TType.I64, 0)
  7294. oprot.writeI64(self.success)
  7295. oprot.writeFieldEnd()
  7296. if self.io is not None:
  7297. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7298. self.io.write(oprot)
  7299. oprot.writeFieldEnd()
  7300. if self.ia is not None:
  7301. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  7302. self.ia.write(oprot)
  7303. oprot.writeFieldEnd()
  7304. oprot.writeFieldStop()
  7305. oprot.writeStructEnd()
  7306. def validate(self):
  7307. return
  7308. def __hash__(self):
  7309. value = 17
  7310. value = (value * 31) ^ hash(self.success)
  7311. value = (value * 31) ^ hash(self.io)
  7312. value = (value * 31) ^ hash(self.ia)
  7313. return value
  7314. def __repr__(self):
  7315. L = ['%s=%r' % (key, value)
  7316. for key, value in self.__dict__.iteritems()]
  7317. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7318. def __eq__(self, other):
  7319. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7320. def __ne__(self, other):
  7321. return not (self == other)
  7322. class deleteAll_args(object):
  7323. """
  7324. Attributes:
  7325. - tableName: name of table
  7326. - row: Row to update
  7327. - column: name of column whose value is to be deleted
  7328. - attributes: Delete attributes
  7329. """
  7330. thrift_spec = (
  7331. None, # 0
  7332. (1, TType.STRING, 'tableName', None, None, ), # 1
  7333. (2, TType.STRING, 'row', None, None, ), # 2
  7334. (3, TType.STRING, 'column', None, None, ), # 3
  7335. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  7336. )
  7337. def __init__(self, tableName=None, row=None, column=None, attributes=None,):
  7338. self.tableName = tableName
  7339. self.row = row
  7340. self.column = column
  7341. self.attributes = attributes
  7342. def read(self, iprot):
  7343. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7344. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7345. return
  7346. iprot.readStructBegin()
  7347. while True:
  7348. (fname, ftype, fid) = iprot.readFieldBegin()
  7349. if ftype == TType.STOP:
  7350. break
  7351. if fid == 1:
  7352. if ftype == TType.STRING:
  7353. self.tableName = iprot.readString()
  7354. else:
  7355. iprot.skip(ftype)
  7356. elif fid == 2:
  7357. if ftype == TType.STRING:
  7358. self.row = iprot.readString()
  7359. else:
  7360. iprot.skip(ftype)
  7361. elif fid == 3:
  7362. if ftype == TType.STRING:
  7363. self.column = iprot.readString()
  7364. else:
  7365. iprot.skip(ftype)
  7366. elif fid == 4:
  7367. if ftype == TType.MAP:
  7368. self.attributes = {}
  7369. (_ktype350, _vtype351, _size349 ) = iprot.readMapBegin()
  7370. for _i353 in xrange(_size349):
  7371. _key354 = iprot.readString()
  7372. _val355 = iprot.readString()
  7373. self.attributes[_key354] = _val355
  7374. iprot.readMapEnd()
  7375. else:
  7376. iprot.skip(ftype)
  7377. else:
  7378. iprot.skip(ftype)
  7379. iprot.readFieldEnd()
  7380. iprot.readStructEnd()
  7381. def write(self, oprot):
  7382. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7383. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7384. return
  7385. oprot.writeStructBegin('deleteAll_args')
  7386. if self.tableName is not None:
  7387. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  7388. oprot.writeString(self.tableName)
  7389. oprot.writeFieldEnd()
  7390. if self.row is not None:
  7391. oprot.writeFieldBegin('row', TType.STRING, 2)
  7392. oprot.writeString(self.row)
  7393. oprot.writeFieldEnd()
  7394. if self.column is not None:
  7395. oprot.writeFieldBegin('column', TType.STRING, 3)
  7396. oprot.writeString(self.column)
  7397. oprot.writeFieldEnd()
  7398. if self.attributes is not None:
  7399. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  7400. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  7401. for kiter356,viter357 in self.attributes.items():
  7402. oprot.writeString(kiter356)
  7403. oprot.writeString(viter357)
  7404. oprot.writeMapEnd()
  7405. oprot.writeFieldEnd()
  7406. oprot.writeFieldStop()
  7407. oprot.writeStructEnd()
  7408. def validate(self):
  7409. return
  7410. def __hash__(self):
  7411. value = 17
  7412. value = (value * 31) ^ hash(self.tableName)
  7413. value = (value * 31) ^ hash(self.row)
  7414. value = (value * 31) ^ hash(self.column)
  7415. value = (value * 31) ^ hash(self.attributes)
  7416. return value
  7417. def __repr__(self):
  7418. L = ['%s=%r' % (key, value)
  7419. for key, value in self.__dict__.iteritems()]
  7420. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7421. def __eq__(self, other):
  7422. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7423. def __ne__(self, other):
  7424. return not (self == other)
  7425. class deleteAll_result(object):
  7426. """
  7427. Attributes:
  7428. - io
  7429. """
  7430. thrift_spec = (
  7431. None, # 0
  7432. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7433. )
  7434. def __init__(self, io=None,):
  7435. self.io = io
  7436. def read(self, iprot):
  7437. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7438. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7439. return
  7440. iprot.readStructBegin()
  7441. while True:
  7442. (fname, ftype, fid) = iprot.readFieldBegin()
  7443. if ftype == TType.STOP:
  7444. break
  7445. if fid == 1:
  7446. if ftype == TType.STRUCT:
  7447. self.io = IOError()
  7448. self.io.read(iprot)
  7449. else:
  7450. iprot.skip(ftype)
  7451. else:
  7452. iprot.skip(ftype)
  7453. iprot.readFieldEnd()
  7454. iprot.readStructEnd()
  7455. def write(self, oprot):
  7456. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7457. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7458. return
  7459. oprot.writeStructBegin('deleteAll_result')
  7460. if self.io is not None:
  7461. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7462. self.io.write(oprot)
  7463. oprot.writeFieldEnd()
  7464. oprot.writeFieldStop()
  7465. oprot.writeStructEnd()
  7466. def validate(self):
  7467. return
  7468. def __hash__(self):
  7469. value = 17
  7470. value = (value * 31) ^ hash(self.io)
  7471. return value
  7472. def __repr__(self):
  7473. L = ['%s=%r' % (key, value)
  7474. for key, value in self.__dict__.iteritems()]
  7475. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7476. def __eq__(self, other):
  7477. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7478. def __ne__(self, other):
  7479. return not (self == other)
  7480. class deleteAllTs_args(object):
  7481. """
  7482. Attributes:
  7483. - tableName: name of table
  7484. - row: Row to update
  7485. - column: name of column whose value is to be deleted
  7486. - timestamp: timestamp
  7487. - attributes: Delete attributes
  7488. """
  7489. thrift_spec = (
  7490. None, # 0
  7491. (1, TType.STRING, 'tableName', None, None, ), # 1
  7492. (2, TType.STRING, 'row', None, None, ), # 2
  7493. (3, TType.STRING, 'column', None, None, ), # 3
  7494. (4, TType.I64, 'timestamp', None, None, ), # 4
  7495. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  7496. )
  7497. def __init__(self, tableName=None, row=None, column=None, timestamp=None, attributes=None,):
  7498. self.tableName = tableName
  7499. self.row = row
  7500. self.column = column
  7501. self.timestamp = timestamp
  7502. self.attributes = attributes
  7503. def read(self, iprot):
  7504. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7505. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7506. return
  7507. iprot.readStructBegin()
  7508. while True:
  7509. (fname, ftype, fid) = iprot.readFieldBegin()
  7510. if ftype == TType.STOP:
  7511. break
  7512. if fid == 1:
  7513. if ftype == TType.STRING:
  7514. self.tableName = iprot.readString()
  7515. else:
  7516. iprot.skip(ftype)
  7517. elif fid == 2:
  7518. if ftype == TType.STRING:
  7519. self.row = iprot.readString()
  7520. else:
  7521. iprot.skip(ftype)
  7522. elif fid == 3:
  7523. if ftype == TType.STRING:
  7524. self.column = iprot.readString()
  7525. else:
  7526. iprot.skip(ftype)
  7527. elif fid == 4:
  7528. if ftype == TType.I64:
  7529. self.timestamp = iprot.readI64()
  7530. else:
  7531. iprot.skip(ftype)
  7532. elif fid == 5:
  7533. if ftype == TType.MAP:
  7534. self.attributes = {}
  7535. (_ktype359, _vtype360, _size358 ) = iprot.readMapBegin()
  7536. for _i362 in xrange(_size358):
  7537. _key363 = iprot.readString()
  7538. _val364 = iprot.readString()
  7539. self.attributes[_key363] = _val364
  7540. iprot.readMapEnd()
  7541. else:
  7542. iprot.skip(ftype)
  7543. else:
  7544. iprot.skip(ftype)
  7545. iprot.readFieldEnd()
  7546. iprot.readStructEnd()
  7547. def write(self, oprot):
  7548. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7549. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7550. return
  7551. oprot.writeStructBegin('deleteAllTs_args')
  7552. if self.tableName is not None:
  7553. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  7554. oprot.writeString(self.tableName)
  7555. oprot.writeFieldEnd()
  7556. if self.row is not None:
  7557. oprot.writeFieldBegin('row', TType.STRING, 2)
  7558. oprot.writeString(self.row)
  7559. oprot.writeFieldEnd()
  7560. if self.column is not None:
  7561. oprot.writeFieldBegin('column', TType.STRING, 3)
  7562. oprot.writeString(self.column)
  7563. oprot.writeFieldEnd()
  7564. if self.timestamp is not None:
  7565. oprot.writeFieldBegin('timestamp', TType.I64, 4)
  7566. oprot.writeI64(self.timestamp)
  7567. oprot.writeFieldEnd()
  7568. if self.attributes is not None:
  7569. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  7570. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  7571. for kiter365,viter366 in self.attributes.items():
  7572. oprot.writeString(kiter365)
  7573. oprot.writeString(viter366)
  7574. oprot.writeMapEnd()
  7575. oprot.writeFieldEnd()
  7576. oprot.writeFieldStop()
  7577. oprot.writeStructEnd()
  7578. def validate(self):
  7579. return
  7580. def __hash__(self):
  7581. value = 17
  7582. value = (value * 31) ^ hash(self.tableName)
  7583. value = (value * 31) ^ hash(self.row)
  7584. value = (value * 31) ^ hash(self.column)
  7585. value = (value * 31) ^ hash(self.timestamp)
  7586. value = (value * 31) ^ hash(self.attributes)
  7587. return value
  7588. def __repr__(self):
  7589. L = ['%s=%r' % (key, value)
  7590. for key, value in self.__dict__.iteritems()]
  7591. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7592. def __eq__(self, other):
  7593. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7594. def __ne__(self, other):
  7595. return not (self == other)
  7596. class deleteAllTs_result(object):
  7597. """
  7598. Attributes:
  7599. - io
  7600. """
  7601. thrift_spec = (
  7602. None, # 0
  7603. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7604. )
  7605. def __init__(self, io=None,):
  7606. self.io = io
  7607. def read(self, iprot):
  7608. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7609. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7610. return
  7611. iprot.readStructBegin()
  7612. while True:
  7613. (fname, ftype, fid) = iprot.readFieldBegin()
  7614. if ftype == TType.STOP:
  7615. break
  7616. if fid == 1:
  7617. if ftype == TType.STRUCT:
  7618. self.io = IOError()
  7619. self.io.read(iprot)
  7620. else:
  7621. iprot.skip(ftype)
  7622. else:
  7623. iprot.skip(ftype)
  7624. iprot.readFieldEnd()
  7625. iprot.readStructEnd()
  7626. def write(self, oprot):
  7627. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7628. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7629. return
  7630. oprot.writeStructBegin('deleteAllTs_result')
  7631. if self.io is not None:
  7632. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7633. self.io.write(oprot)
  7634. oprot.writeFieldEnd()
  7635. oprot.writeFieldStop()
  7636. oprot.writeStructEnd()
  7637. def validate(self):
  7638. return
  7639. def __hash__(self):
  7640. value = 17
  7641. value = (value * 31) ^ hash(self.io)
  7642. return value
  7643. def __repr__(self):
  7644. L = ['%s=%r' % (key, value)
  7645. for key, value in self.__dict__.iteritems()]
  7646. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7647. def __eq__(self, other):
  7648. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7649. def __ne__(self, other):
  7650. return not (self == other)
  7651. class deleteAllRow_args(object):
  7652. """
  7653. Attributes:
  7654. - tableName: name of table
  7655. - row: key of the row to be completely deleted.
  7656. - attributes: Delete attributes
  7657. """
  7658. thrift_spec = (
  7659. None, # 0
  7660. (1, TType.STRING, 'tableName', None, None, ), # 1
  7661. (2, TType.STRING, 'row', None, None, ), # 2
  7662. (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
  7663. )
  7664. def __init__(self, tableName=None, row=None, attributes=None,):
  7665. self.tableName = tableName
  7666. self.row = row
  7667. self.attributes = attributes
  7668. def read(self, iprot):
  7669. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7670. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7671. return
  7672. iprot.readStructBegin()
  7673. while True:
  7674. (fname, ftype, fid) = iprot.readFieldBegin()
  7675. if ftype == TType.STOP:
  7676. break
  7677. if fid == 1:
  7678. if ftype == TType.STRING:
  7679. self.tableName = iprot.readString()
  7680. else:
  7681. iprot.skip(ftype)
  7682. elif fid == 2:
  7683. if ftype == TType.STRING:
  7684. self.row = iprot.readString()
  7685. else:
  7686. iprot.skip(ftype)
  7687. elif fid == 3:
  7688. if ftype == TType.MAP:
  7689. self.attributes = {}
  7690. (_ktype368, _vtype369, _size367 ) = iprot.readMapBegin()
  7691. for _i371 in xrange(_size367):
  7692. _key372 = iprot.readString()
  7693. _val373 = iprot.readString()
  7694. self.attributes[_key372] = _val373
  7695. iprot.readMapEnd()
  7696. else:
  7697. iprot.skip(ftype)
  7698. else:
  7699. iprot.skip(ftype)
  7700. iprot.readFieldEnd()
  7701. iprot.readStructEnd()
  7702. def write(self, oprot):
  7703. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7704. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7705. return
  7706. oprot.writeStructBegin('deleteAllRow_args')
  7707. if self.tableName is not None:
  7708. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  7709. oprot.writeString(self.tableName)
  7710. oprot.writeFieldEnd()
  7711. if self.row is not None:
  7712. oprot.writeFieldBegin('row', TType.STRING, 2)
  7713. oprot.writeString(self.row)
  7714. oprot.writeFieldEnd()
  7715. if self.attributes is not None:
  7716. oprot.writeFieldBegin('attributes', TType.MAP, 3)
  7717. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  7718. for kiter374,viter375 in self.attributes.items():
  7719. oprot.writeString(kiter374)
  7720. oprot.writeString(viter375)
  7721. oprot.writeMapEnd()
  7722. oprot.writeFieldEnd()
  7723. oprot.writeFieldStop()
  7724. oprot.writeStructEnd()
  7725. def validate(self):
  7726. return
  7727. def __hash__(self):
  7728. value = 17
  7729. value = (value * 31) ^ hash(self.tableName)
  7730. value = (value * 31) ^ hash(self.row)
  7731. value = (value * 31) ^ hash(self.attributes)
  7732. return value
  7733. def __repr__(self):
  7734. L = ['%s=%r' % (key, value)
  7735. for key, value in self.__dict__.iteritems()]
  7736. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7737. def __eq__(self, other):
  7738. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7739. def __ne__(self, other):
  7740. return not (self == other)
  7741. class deleteAllRow_result(object):
  7742. """
  7743. Attributes:
  7744. - io
  7745. """
  7746. thrift_spec = (
  7747. None, # 0
  7748. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7749. )
  7750. def __init__(self, io=None,):
  7751. self.io = io
  7752. def read(self, iprot):
  7753. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7754. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7755. return
  7756. iprot.readStructBegin()
  7757. while True:
  7758. (fname, ftype, fid) = iprot.readFieldBegin()
  7759. if ftype == TType.STOP:
  7760. break
  7761. if fid == 1:
  7762. if ftype == TType.STRUCT:
  7763. self.io = IOError()
  7764. self.io.read(iprot)
  7765. else:
  7766. iprot.skip(ftype)
  7767. else:
  7768. iprot.skip(ftype)
  7769. iprot.readFieldEnd()
  7770. iprot.readStructEnd()
  7771. def write(self, oprot):
  7772. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7773. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7774. return
  7775. oprot.writeStructBegin('deleteAllRow_result')
  7776. if self.io is not None:
  7777. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7778. self.io.write(oprot)
  7779. oprot.writeFieldEnd()
  7780. oprot.writeFieldStop()
  7781. oprot.writeStructEnd()
  7782. def validate(self):
  7783. return
  7784. def __hash__(self):
  7785. value = 17
  7786. value = (value * 31) ^ hash(self.io)
  7787. return value
  7788. def __repr__(self):
  7789. L = ['%s=%r' % (key, value)
  7790. for key, value in self.__dict__.iteritems()]
  7791. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7792. def __eq__(self, other):
  7793. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7794. def __ne__(self, other):
  7795. return not (self == other)
  7796. class increment_args(object):
  7797. """
  7798. Attributes:
  7799. - increment: The single increment to apply
  7800. """
  7801. thrift_spec = (
  7802. None, # 0
  7803. (1, TType.STRUCT, 'increment', (TIncrement, TIncrement.thrift_spec), None, ), # 1
  7804. )
  7805. def __init__(self, increment=None,):
  7806. self.increment = increment
  7807. def read(self, iprot):
  7808. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7809. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7810. return
  7811. iprot.readStructBegin()
  7812. while True:
  7813. (fname, ftype, fid) = iprot.readFieldBegin()
  7814. if ftype == TType.STOP:
  7815. break
  7816. if fid == 1:
  7817. if ftype == TType.STRUCT:
  7818. self.increment = TIncrement()
  7819. self.increment.read(iprot)
  7820. else:
  7821. iprot.skip(ftype)
  7822. else:
  7823. iprot.skip(ftype)
  7824. iprot.readFieldEnd()
  7825. iprot.readStructEnd()
  7826. def write(self, oprot):
  7827. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7828. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7829. return
  7830. oprot.writeStructBegin('increment_args')
  7831. if self.increment is not None:
  7832. oprot.writeFieldBegin('increment', TType.STRUCT, 1)
  7833. self.increment.write(oprot)
  7834. oprot.writeFieldEnd()
  7835. oprot.writeFieldStop()
  7836. oprot.writeStructEnd()
  7837. def validate(self):
  7838. return
  7839. def __hash__(self):
  7840. value = 17
  7841. value = (value * 31) ^ hash(self.increment)
  7842. return value
  7843. def __repr__(self):
  7844. L = ['%s=%r' % (key, value)
  7845. for key, value in self.__dict__.iteritems()]
  7846. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7847. def __eq__(self, other):
  7848. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7849. def __ne__(self, other):
  7850. return not (self == other)
  7851. class increment_result(object):
  7852. """
  7853. Attributes:
  7854. - io
  7855. """
  7856. thrift_spec = (
  7857. None, # 0
  7858. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7859. )
  7860. def __init__(self, io=None,):
  7861. self.io = io
  7862. def read(self, iprot):
  7863. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7864. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7865. return
  7866. iprot.readStructBegin()
  7867. while True:
  7868. (fname, ftype, fid) = iprot.readFieldBegin()
  7869. if ftype == TType.STOP:
  7870. break
  7871. if fid == 1:
  7872. if ftype == TType.STRUCT:
  7873. self.io = IOError()
  7874. self.io.read(iprot)
  7875. else:
  7876. iprot.skip(ftype)
  7877. else:
  7878. iprot.skip(ftype)
  7879. iprot.readFieldEnd()
  7880. iprot.readStructEnd()
  7881. def write(self, oprot):
  7882. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7883. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7884. return
  7885. oprot.writeStructBegin('increment_result')
  7886. if self.io is not None:
  7887. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  7888. self.io.write(oprot)
  7889. oprot.writeFieldEnd()
  7890. oprot.writeFieldStop()
  7891. oprot.writeStructEnd()
  7892. def validate(self):
  7893. return
  7894. def __hash__(self):
  7895. value = 17
  7896. value = (value * 31) ^ hash(self.io)
  7897. return value
  7898. def __repr__(self):
  7899. L = ['%s=%r' % (key, value)
  7900. for key, value in self.__dict__.iteritems()]
  7901. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7902. def __eq__(self, other):
  7903. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7904. def __ne__(self, other):
  7905. return not (self == other)
  7906. class incrementRows_args(object):
  7907. """
  7908. Attributes:
  7909. - increments: The list of increments
  7910. """
  7911. thrift_spec = (
  7912. None, # 0
  7913. (1, TType.LIST, 'increments', (TType.STRUCT,(TIncrement, TIncrement.thrift_spec)), None, ), # 1
  7914. )
  7915. def __init__(self, increments=None,):
  7916. self.increments = increments
  7917. def read(self, iprot):
  7918. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7919. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7920. return
  7921. iprot.readStructBegin()
  7922. while True:
  7923. (fname, ftype, fid) = iprot.readFieldBegin()
  7924. if ftype == TType.STOP:
  7925. break
  7926. if fid == 1:
  7927. if ftype == TType.LIST:
  7928. self.increments = []
  7929. (_etype379, _size376) = iprot.readListBegin()
  7930. for _i380 in xrange(_size376):
  7931. _elem381 = TIncrement()
  7932. _elem381.read(iprot)
  7933. self.increments.append(_elem381)
  7934. iprot.readListEnd()
  7935. else:
  7936. iprot.skip(ftype)
  7937. else:
  7938. iprot.skip(ftype)
  7939. iprot.readFieldEnd()
  7940. iprot.readStructEnd()
  7941. def write(self, oprot):
  7942. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7943. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7944. return
  7945. oprot.writeStructBegin('incrementRows_args')
  7946. if self.increments is not None:
  7947. oprot.writeFieldBegin('increments', TType.LIST, 1)
  7948. oprot.writeListBegin(TType.STRUCT, len(self.increments))
  7949. for iter382 in self.increments:
  7950. iter382.write(oprot)
  7951. oprot.writeListEnd()
  7952. oprot.writeFieldEnd()
  7953. oprot.writeFieldStop()
  7954. oprot.writeStructEnd()
  7955. def validate(self):
  7956. return
  7957. def __hash__(self):
  7958. value = 17
  7959. value = (value * 31) ^ hash(self.increments)
  7960. return value
  7961. def __repr__(self):
  7962. L = ['%s=%r' % (key, value)
  7963. for key, value in self.__dict__.iteritems()]
  7964. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7965. def __eq__(self, other):
  7966. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7967. def __ne__(self, other):
  7968. return not (self == other)
  7969. class incrementRows_result(object):
  7970. """
  7971. Attributes:
  7972. - io
  7973. """
  7974. thrift_spec = (
  7975. None, # 0
  7976. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  7977. )
  7978. def __init__(self, io=None,):
  7979. self.io = io
  7980. def read(self, iprot):
  7981. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7982. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7983. return
  7984. iprot.readStructBegin()
  7985. while True:
  7986. (fname, ftype, fid) = iprot.readFieldBegin()
  7987. if ftype == TType.STOP:
  7988. break
  7989. if fid == 1:
  7990. if ftype == TType.STRUCT:
  7991. self.io = IOError()
  7992. self.io.read(iprot)
  7993. else:
  7994. iprot.skip(ftype)
  7995. else:
  7996. iprot.skip(ftype)
  7997. iprot.readFieldEnd()
  7998. iprot.readStructEnd()
  7999. def write(self, oprot):
  8000. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8001. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8002. return
  8003. oprot.writeStructBegin('incrementRows_result')
  8004. if self.io is not None:
  8005. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8006. self.io.write(oprot)
  8007. oprot.writeFieldEnd()
  8008. oprot.writeFieldStop()
  8009. oprot.writeStructEnd()
  8010. def validate(self):
  8011. return
  8012. def __hash__(self):
  8013. value = 17
  8014. value = (value * 31) ^ hash(self.io)
  8015. return value
  8016. def __repr__(self):
  8017. L = ['%s=%r' % (key, value)
  8018. for key, value in self.__dict__.iteritems()]
  8019. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8020. def __eq__(self, other):
  8021. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8022. def __ne__(self, other):
  8023. return not (self == other)
  8024. class deleteAllRowTs_args(object):
  8025. """
  8026. Attributes:
  8027. - tableName: name of table
  8028. - row: key of the row to be completely deleted.
  8029. - timestamp: timestamp
  8030. - attributes: Delete attributes
  8031. """
  8032. thrift_spec = (
  8033. None, # 0
  8034. (1, TType.STRING, 'tableName', None, None, ), # 1
  8035. (2, TType.STRING, 'row', None, None, ), # 2
  8036. (3, TType.I64, 'timestamp', None, None, ), # 3
  8037. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  8038. )
  8039. def __init__(self, tableName=None, row=None, timestamp=None, attributes=None,):
  8040. self.tableName = tableName
  8041. self.row = row
  8042. self.timestamp = timestamp
  8043. self.attributes = attributes
  8044. def read(self, iprot):
  8045. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8046. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8047. return
  8048. iprot.readStructBegin()
  8049. while True:
  8050. (fname, ftype, fid) = iprot.readFieldBegin()
  8051. if ftype == TType.STOP:
  8052. break
  8053. if fid == 1:
  8054. if ftype == TType.STRING:
  8055. self.tableName = iprot.readString()
  8056. else:
  8057. iprot.skip(ftype)
  8058. elif fid == 2:
  8059. if ftype == TType.STRING:
  8060. self.row = iprot.readString()
  8061. else:
  8062. iprot.skip(ftype)
  8063. elif fid == 3:
  8064. if ftype == TType.I64:
  8065. self.timestamp = iprot.readI64()
  8066. else:
  8067. iprot.skip(ftype)
  8068. elif fid == 4:
  8069. if ftype == TType.MAP:
  8070. self.attributes = {}
  8071. (_ktype384, _vtype385, _size383 ) = iprot.readMapBegin()
  8072. for _i387 in xrange(_size383):
  8073. _key388 = iprot.readString()
  8074. _val389 = iprot.readString()
  8075. self.attributes[_key388] = _val389
  8076. iprot.readMapEnd()
  8077. else:
  8078. iprot.skip(ftype)
  8079. else:
  8080. iprot.skip(ftype)
  8081. iprot.readFieldEnd()
  8082. iprot.readStructEnd()
  8083. def write(self, oprot):
  8084. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8085. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8086. return
  8087. oprot.writeStructBegin('deleteAllRowTs_args')
  8088. if self.tableName is not None:
  8089. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  8090. oprot.writeString(self.tableName)
  8091. oprot.writeFieldEnd()
  8092. if self.row is not None:
  8093. oprot.writeFieldBegin('row', TType.STRING, 2)
  8094. oprot.writeString(self.row)
  8095. oprot.writeFieldEnd()
  8096. if self.timestamp is not None:
  8097. oprot.writeFieldBegin('timestamp', TType.I64, 3)
  8098. oprot.writeI64(self.timestamp)
  8099. oprot.writeFieldEnd()
  8100. if self.attributes is not None:
  8101. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  8102. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  8103. for kiter390,viter391 in self.attributes.items():
  8104. oprot.writeString(kiter390)
  8105. oprot.writeString(viter391)
  8106. oprot.writeMapEnd()
  8107. oprot.writeFieldEnd()
  8108. oprot.writeFieldStop()
  8109. oprot.writeStructEnd()
  8110. def validate(self):
  8111. return
  8112. def __hash__(self):
  8113. value = 17
  8114. value = (value * 31) ^ hash(self.tableName)
  8115. value = (value * 31) ^ hash(self.row)
  8116. value = (value * 31) ^ hash(self.timestamp)
  8117. value = (value * 31) ^ hash(self.attributes)
  8118. return value
  8119. def __repr__(self):
  8120. L = ['%s=%r' % (key, value)
  8121. for key, value in self.__dict__.iteritems()]
  8122. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8123. def __eq__(self, other):
  8124. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8125. def __ne__(self, other):
  8126. return not (self == other)
  8127. class deleteAllRowTs_result(object):
  8128. """
  8129. Attributes:
  8130. - io
  8131. """
  8132. thrift_spec = (
  8133. None, # 0
  8134. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  8135. )
  8136. def __init__(self, io=None,):
  8137. self.io = io
  8138. def read(self, iprot):
  8139. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8140. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8141. return
  8142. iprot.readStructBegin()
  8143. while True:
  8144. (fname, ftype, fid) = iprot.readFieldBegin()
  8145. if ftype == TType.STOP:
  8146. break
  8147. if fid == 1:
  8148. if ftype == TType.STRUCT:
  8149. self.io = IOError()
  8150. self.io.read(iprot)
  8151. else:
  8152. iprot.skip(ftype)
  8153. else:
  8154. iprot.skip(ftype)
  8155. iprot.readFieldEnd()
  8156. iprot.readStructEnd()
  8157. def write(self, oprot):
  8158. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8159. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8160. return
  8161. oprot.writeStructBegin('deleteAllRowTs_result')
  8162. if self.io is not None:
  8163. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8164. self.io.write(oprot)
  8165. oprot.writeFieldEnd()
  8166. oprot.writeFieldStop()
  8167. oprot.writeStructEnd()
  8168. def validate(self):
  8169. return
  8170. def __hash__(self):
  8171. value = 17
  8172. value = (value * 31) ^ hash(self.io)
  8173. return value
  8174. def __repr__(self):
  8175. L = ['%s=%r' % (key, value)
  8176. for key, value in self.__dict__.iteritems()]
  8177. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8178. def __eq__(self, other):
  8179. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8180. def __ne__(self, other):
  8181. return not (self == other)
  8182. class scannerOpenWithScan_args(object):
  8183. """
  8184. Attributes:
  8185. - tableName: name of table
  8186. - scan: Scan instance
  8187. - attributes: Scan attributes
  8188. """
  8189. thrift_spec = (
  8190. None, # 0
  8191. (1, TType.STRING, 'tableName', None, None, ), # 1
  8192. (2, TType.STRUCT, 'scan', (TScan, TScan.thrift_spec), None, ), # 2
  8193. (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
  8194. )
  8195. def __init__(self, tableName=None, scan=None, attributes=None,):
  8196. self.tableName = tableName
  8197. self.scan = scan
  8198. self.attributes = attributes
  8199. def read(self, iprot):
  8200. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8201. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8202. return
  8203. iprot.readStructBegin()
  8204. while True:
  8205. (fname, ftype, fid) = iprot.readFieldBegin()
  8206. if ftype == TType.STOP:
  8207. break
  8208. if fid == 1:
  8209. if ftype == TType.STRING:
  8210. self.tableName = iprot.readString()
  8211. else:
  8212. iprot.skip(ftype)
  8213. elif fid == 2:
  8214. if ftype == TType.STRUCT:
  8215. self.scan = TScan()
  8216. self.scan.read(iprot)
  8217. else:
  8218. iprot.skip(ftype)
  8219. elif fid == 3:
  8220. if ftype == TType.MAP:
  8221. self.attributes = {}
  8222. (_ktype393, _vtype394, _size392 ) = iprot.readMapBegin()
  8223. for _i396 in xrange(_size392):
  8224. _key397 = iprot.readString()
  8225. _val398 = iprot.readString()
  8226. self.attributes[_key397] = _val398
  8227. iprot.readMapEnd()
  8228. else:
  8229. iprot.skip(ftype)
  8230. else:
  8231. iprot.skip(ftype)
  8232. iprot.readFieldEnd()
  8233. iprot.readStructEnd()
  8234. def write(self, oprot):
  8235. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8236. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8237. return
  8238. oprot.writeStructBegin('scannerOpenWithScan_args')
  8239. if self.tableName is not None:
  8240. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  8241. oprot.writeString(self.tableName)
  8242. oprot.writeFieldEnd()
  8243. if self.scan is not None:
  8244. oprot.writeFieldBegin('scan', TType.STRUCT, 2)
  8245. self.scan.write(oprot)
  8246. oprot.writeFieldEnd()
  8247. if self.attributes is not None:
  8248. oprot.writeFieldBegin('attributes', TType.MAP, 3)
  8249. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  8250. for kiter399,viter400 in self.attributes.items():
  8251. oprot.writeString(kiter399)
  8252. oprot.writeString(viter400)
  8253. oprot.writeMapEnd()
  8254. oprot.writeFieldEnd()
  8255. oprot.writeFieldStop()
  8256. oprot.writeStructEnd()
  8257. def validate(self):
  8258. return
  8259. def __hash__(self):
  8260. value = 17
  8261. value = (value * 31) ^ hash(self.tableName)
  8262. value = (value * 31) ^ hash(self.scan)
  8263. value = (value * 31) ^ hash(self.attributes)
  8264. return value
  8265. def __repr__(self):
  8266. L = ['%s=%r' % (key, value)
  8267. for key, value in self.__dict__.iteritems()]
  8268. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8269. def __eq__(self, other):
  8270. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8271. def __ne__(self, other):
  8272. return not (self == other)
  8273. class scannerOpenWithScan_result(object):
  8274. """
  8275. Attributes:
  8276. - success
  8277. - io
  8278. """
  8279. thrift_spec = (
  8280. (0, TType.I32, 'success', None, None, ), # 0
  8281. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  8282. )
  8283. def __init__(self, success=None, io=None,):
  8284. self.success = success
  8285. self.io = io
  8286. def read(self, iprot):
  8287. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8288. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8289. return
  8290. iprot.readStructBegin()
  8291. while True:
  8292. (fname, ftype, fid) = iprot.readFieldBegin()
  8293. if ftype == TType.STOP:
  8294. break
  8295. if fid == 0:
  8296. if ftype == TType.I32:
  8297. self.success = iprot.readI32()
  8298. else:
  8299. iprot.skip(ftype)
  8300. elif fid == 1:
  8301. if ftype == TType.STRUCT:
  8302. self.io = IOError()
  8303. self.io.read(iprot)
  8304. else:
  8305. iprot.skip(ftype)
  8306. else:
  8307. iprot.skip(ftype)
  8308. iprot.readFieldEnd()
  8309. iprot.readStructEnd()
  8310. def write(self, oprot):
  8311. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8312. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8313. return
  8314. oprot.writeStructBegin('scannerOpenWithScan_result')
  8315. if self.success is not None:
  8316. oprot.writeFieldBegin('success', TType.I32, 0)
  8317. oprot.writeI32(self.success)
  8318. oprot.writeFieldEnd()
  8319. if self.io is not None:
  8320. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8321. self.io.write(oprot)
  8322. oprot.writeFieldEnd()
  8323. oprot.writeFieldStop()
  8324. oprot.writeStructEnd()
  8325. def validate(self):
  8326. return
  8327. def __hash__(self):
  8328. value = 17
  8329. value = (value * 31) ^ hash(self.success)
  8330. value = (value * 31) ^ hash(self.io)
  8331. return value
  8332. def __repr__(self):
  8333. L = ['%s=%r' % (key, value)
  8334. for key, value in self.__dict__.iteritems()]
  8335. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8336. def __eq__(self, other):
  8337. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8338. def __ne__(self, other):
  8339. return not (self == other)
  8340. class scannerOpen_args(object):
  8341. """
  8342. Attributes:
  8343. - tableName: name of table
  8344. - startRow: Starting row in table to scan.
  8345. Send "" (empty string) to start at the first row.
  8346. - columns: columns to scan. If column name is a column family, all
  8347. columns of the specified column family are returned. It's also possible
  8348. to pass a regex in the column qualifier.
  8349. - attributes: Scan attributes
  8350. """
  8351. thrift_spec = (
  8352. None, # 0
  8353. (1, TType.STRING, 'tableName', None, None, ), # 1
  8354. (2, TType.STRING, 'startRow', None, None, ), # 2
  8355. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  8356. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  8357. )
  8358. def __init__(self, tableName=None, startRow=None, columns=None, attributes=None,):
  8359. self.tableName = tableName
  8360. self.startRow = startRow
  8361. self.columns = columns
  8362. self.attributes = attributes
  8363. def read(self, iprot):
  8364. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8365. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8366. return
  8367. iprot.readStructBegin()
  8368. while True:
  8369. (fname, ftype, fid) = iprot.readFieldBegin()
  8370. if ftype == TType.STOP:
  8371. break
  8372. if fid == 1:
  8373. if ftype == TType.STRING:
  8374. self.tableName = iprot.readString()
  8375. else:
  8376. iprot.skip(ftype)
  8377. elif fid == 2:
  8378. if ftype == TType.STRING:
  8379. self.startRow = iprot.readString()
  8380. else:
  8381. iprot.skip(ftype)
  8382. elif fid == 3:
  8383. if ftype == TType.LIST:
  8384. self.columns = []
  8385. (_etype404, _size401) = iprot.readListBegin()
  8386. for _i405 in xrange(_size401):
  8387. _elem406 = iprot.readString()
  8388. self.columns.append(_elem406)
  8389. iprot.readListEnd()
  8390. else:
  8391. iprot.skip(ftype)
  8392. elif fid == 4:
  8393. if ftype == TType.MAP:
  8394. self.attributes = {}
  8395. (_ktype408, _vtype409, _size407 ) = iprot.readMapBegin()
  8396. for _i411 in xrange(_size407):
  8397. _key412 = iprot.readString()
  8398. _val413 = iprot.readString()
  8399. self.attributes[_key412] = _val413
  8400. iprot.readMapEnd()
  8401. else:
  8402. iprot.skip(ftype)
  8403. else:
  8404. iprot.skip(ftype)
  8405. iprot.readFieldEnd()
  8406. iprot.readStructEnd()
  8407. def write(self, oprot):
  8408. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8409. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8410. return
  8411. oprot.writeStructBegin('scannerOpen_args')
  8412. if self.tableName is not None:
  8413. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  8414. oprot.writeString(self.tableName)
  8415. oprot.writeFieldEnd()
  8416. if self.startRow is not None:
  8417. oprot.writeFieldBegin('startRow', TType.STRING, 2)
  8418. oprot.writeString(self.startRow)
  8419. oprot.writeFieldEnd()
  8420. if self.columns is not None:
  8421. oprot.writeFieldBegin('columns', TType.LIST, 3)
  8422. oprot.writeListBegin(TType.STRING, len(self.columns))
  8423. for iter414 in self.columns:
  8424. oprot.writeString(iter414)
  8425. oprot.writeListEnd()
  8426. oprot.writeFieldEnd()
  8427. if self.attributes is not None:
  8428. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  8429. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  8430. for kiter415,viter416 in self.attributes.items():
  8431. oprot.writeString(kiter415)
  8432. oprot.writeString(viter416)
  8433. oprot.writeMapEnd()
  8434. oprot.writeFieldEnd()
  8435. oprot.writeFieldStop()
  8436. oprot.writeStructEnd()
  8437. def validate(self):
  8438. return
  8439. def __hash__(self):
  8440. value = 17
  8441. value = (value * 31) ^ hash(self.tableName)
  8442. value = (value * 31) ^ hash(self.startRow)
  8443. value = (value * 31) ^ hash(self.columns)
  8444. value = (value * 31) ^ hash(self.attributes)
  8445. return value
  8446. def __repr__(self):
  8447. L = ['%s=%r' % (key, value)
  8448. for key, value in self.__dict__.iteritems()]
  8449. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8450. def __eq__(self, other):
  8451. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8452. def __ne__(self, other):
  8453. return not (self == other)
  8454. class scannerOpen_result(object):
  8455. """
  8456. Attributes:
  8457. - success
  8458. - io
  8459. """
  8460. thrift_spec = (
  8461. (0, TType.I32, 'success', None, None, ), # 0
  8462. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  8463. )
  8464. def __init__(self, success=None, io=None,):
  8465. self.success = success
  8466. self.io = io
  8467. def read(self, iprot):
  8468. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8469. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8470. return
  8471. iprot.readStructBegin()
  8472. while True:
  8473. (fname, ftype, fid) = iprot.readFieldBegin()
  8474. if ftype == TType.STOP:
  8475. break
  8476. if fid == 0:
  8477. if ftype == TType.I32:
  8478. self.success = iprot.readI32()
  8479. else:
  8480. iprot.skip(ftype)
  8481. elif fid == 1:
  8482. if ftype == TType.STRUCT:
  8483. self.io = IOError()
  8484. self.io.read(iprot)
  8485. else:
  8486. iprot.skip(ftype)
  8487. else:
  8488. iprot.skip(ftype)
  8489. iprot.readFieldEnd()
  8490. iprot.readStructEnd()
  8491. def write(self, oprot):
  8492. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8493. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8494. return
  8495. oprot.writeStructBegin('scannerOpen_result')
  8496. if self.success is not None:
  8497. oprot.writeFieldBegin('success', TType.I32, 0)
  8498. oprot.writeI32(self.success)
  8499. oprot.writeFieldEnd()
  8500. if self.io is not None:
  8501. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8502. self.io.write(oprot)
  8503. oprot.writeFieldEnd()
  8504. oprot.writeFieldStop()
  8505. oprot.writeStructEnd()
  8506. def validate(self):
  8507. return
  8508. def __hash__(self):
  8509. value = 17
  8510. value = (value * 31) ^ hash(self.success)
  8511. value = (value * 31) ^ hash(self.io)
  8512. return value
  8513. def __repr__(self):
  8514. L = ['%s=%r' % (key, value)
  8515. for key, value in self.__dict__.iteritems()]
  8516. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8517. def __eq__(self, other):
  8518. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8519. def __ne__(self, other):
  8520. return not (self == other)
  8521. class scannerOpenWithStop_args(object):
  8522. """
  8523. Attributes:
  8524. - tableName: name of table
  8525. - startRow: Starting row in table to scan.
  8526. Send "" (empty string) to start at the first row.
  8527. - stopRow: row to stop scanning on. This row is *not* included in the
  8528. scanner's results
  8529. - columns: columns to scan. If column name is a column family, all
  8530. columns of the specified column family are returned. It's also possible
  8531. to pass a regex in the column qualifier.
  8532. - attributes: Scan attributes
  8533. """
  8534. thrift_spec = (
  8535. None, # 0
  8536. (1, TType.STRING, 'tableName', None, None, ), # 1
  8537. (2, TType.STRING, 'startRow', None, None, ), # 2
  8538. (3, TType.STRING, 'stopRow', None, None, ), # 3
  8539. (4, TType.LIST, 'columns', (TType.STRING,None), None, ), # 4
  8540. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  8541. )
  8542. def __init__(self, tableName=None, startRow=None, stopRow=None, columns=None, attributes=None,):
  8543. self.tableName = tableName
  8544. self.startRow = startRow
  8545. self.stopRow = stopRow
  8546. self.columns = columns
  8547. self.attributes = attributes
  8548. def read(self, iprot):
  8549. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8550. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8551. return
  8552. iprot.readStructBegin()
  8553. while True:
  8554. (fname, ftype, fid) = iprot.readFieldBegin()
  8555. if ftype == TType.STOP:
  8556. break
  8557. if fid == 1:
  8558. if ftype == TType.STRING:
  8559. self.tableName = iprot.readString()
  8560. else:
  8561. iprot.skip(ftype)
  8562. elif fid == 2:
  8563. if ftype == TType.STRING:
  8564. self.startRow = iprot.readString()
  8565. else:
  8566. iprot.skip(ftype)
  8567. elif fid == 3:
  8568. if ftype == TType.STRING:
  8569. self.stopRow = iprot.readString()
  8570. else:
  8571. iprot.skip(ftype)
  8572. elif fid == 4:
  8573. if ftype == TType.LIST:
  8574. self.columns = []
  8575. (_etype420, _size417) = iprot.readListBegin()
  8576. for _i421 in xrange(_size417):
  8577. _elem422 = iprot.readString()
  8578. self.columns.append(_elem422)
  8579. iprot.readListEnd()
  8580. else:
  8581. iprot.skip(ftype)
  8582. elif fid == 5:
  8583. if ftype == TType.MAP:
  8584. self.attributes = {}
  8585. (_ktype424, _vtype425, _size423 ) = iprot.readMapBegin()
  8586. for _i427 in xrange(_size423):
  8587. _key428 = iprot.readString()
  8588. _val429 = iprot.readString()
  8589. self.attributes[_key428] = _val429
  8590. iprot.readMapEnd()
  8591. else:
  8592. iprot.skip(ftype)
  8593. else:
  8594. iprot.skip(ftype)
  8595. iprot.readFieldEnd()
  8596. iprot.readStructEnd()
  8597. def write(self, oprot):
  8598. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8599. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8600. return
  8601. oprot.writeStructBegin('scannerOpenWithStop_args')
  8602. if self.tableName is not None:
  8603. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  8604. oprot.writeString(self.tableName)
  8605. oprot.writeFieldEnd()
  8606. if self.startRow is not None:
  8607. oprot.writeFieldBegin('startRow', TType.STRING, 2)
  8608. oprot.writeString(self.startRow)
  8609. oprot.writeFieldEnd()
  8610. if self.stopRow is not None:
  8611. oprot.writeFieldBegin('stopRow', TType.STRING, 3)
  8612. oprot.writeString(self.stopRow)
  8613. oprot.writeFieldEnd()
  8614. if self.columns is not None:
  8615. oprot.writeFieldBegin('columns', TType.LIST, 4)
  8616. oprot.writeListBegin(TType.STRING, len(self.columns))
  8617. for iter430 in self.columns:
  8618. oprot.writeString(iter430)
  8619. oprot.writeListEnd()
  8620. oprot.writeFieldEnd()
  8621. if self.attributes is not None:
  8622. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  8623. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  8624. for kiter431,viter432 in self.attributes.items():
  8625. oprot.writeString(kiter431)
  8626. oprot.writeString(viter432)
  8627. oprot.writeMapEnd()
  8628. oprot.writeFieldEnd()
  8629. oprot.writeFieldStop()
  8630. oprot.writeStructEnd()
  8631. def validate(self):
  8632. return
  8633. def __hash__(self):
  8634. value = 17
  8635. value = (value * 31) ^ hash(self.tableName)
  8636. value = (value * 31) ^ hash(self.startRow)
  8637. value = (value * 31) ^ hash(self.stopRow)
  8638. value = (value * 31) ^ hash(self.columns)
  8639. value = (value * 31) ^ hash(self.attributes)
  8640. return value
  8641. def __repr__(self):
  8642. L = ['%s=%r' % (key, value)
  8643. for key, value in self.__dict__.iteritems()]
  8644. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8645. def __eq__(self, other):
  8646. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8647. def __ne__(self, other):
  8648. return not (self == other)
  8649. class scannerOpenWithStop_result(object):
  8650. """
  8651. Attributes:
  8652. - success
  8653. - io
  8654. """
  8655. thrift_spec = (
  8656. (0, TType.I32, 'success', None, None, ), # 0
  8657. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  8658. )
  8659. def __init__(self, success=None, io=None,):
  8660. self.success = success
  8661. self.io = io
  8662. def read(self, iprot):
  8663. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8664. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8665. return
  8666. iprot.readStructBegin()
  8667. while True:
  8668. (fname, ftype, fid) = iprot.readFieldBegin()
  8669. if ftype == TType.STOP:
  8670. break
  8671. if fid == 0:
  8672. if ftype == TType.I32:
  8673. self.success = iprot.readI32()
  8674. else:
  8675. iprot.skip(ftype)
  8676. elif fid == 1:
  8677. if ftype == TType.STRUCT:
  8678. self.io = IOError()
  8679. self.io.read(iprot)
  8680. else:
  8681. iprot.skip(ftype)
  8682. else:
  8683. iprot.skip(ftype)
  8684. iprot.readFieldEnd()
  8685. iprot.readStructEnd()
  8686. def write(self, oprot):
  8687. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8688. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8689. return
  8690. oprot.writeStructBegin('scannerOpenWithStop_result')
  8691. if self.success is not None:
  8692. oprot.writeFieldBegin('success', TType.I32, 0)
  8693. oprot.writeI32(self.success)
  8694. oprot.writeFieldEnd()
  8695. if self.io is not None:
  8696. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8697. self.io.write(oprot)
  8698. oprot.writeFieldEnd()
  8699. oprot.writeFieldStop()
  8700. oprot.writeStructEnd()
  8701. def validate(self):
  8702. return
  8703. def __hash__(self):
  8704. value = 17
  8705. value = (value * 31) ^ hash(self.success)
  8706. value = (value * 31) ^ hash(self.io)
  8707. return value
  8708. def __repr__(self):
  8709. L = ['%s=%r' % (key, value)
  8710. for key, value in self.__dict__.iteritems()]
  8711. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8712. def __eq__(self, other):
  8713. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8714. def __ne__(self, other):
  8715. return not (self == other)
  8716. class scannerOpenWithPrefix_args(object):
  8717. """
  8718. Attributes:
  8719. - tableName: name of table
  8720. - startAndPrefix: the prefix (and thus start row) of the keys you want
  8721. - columns: the columns you want returned
  8722. - attributes: Scan attributes
  8723. """
  8724. thrift_spec = (
  8725. None, # 0
  8726. (1, TType.STRING, 'tableName', None, None, ), # 1
  8727. (2, TType.STRING, 'startAndPrefix', None, None, ), # 2
  8728. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  8729. (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
  8730. )
  8731. def __init__(self, tableName=None, startAndPrefix=None, columns=None, attributes=None,):
  8732. self.tableName = tableName
  8733. self.startAndPrefix = startAndPrefix
  8734. self.columns = columns
  8735. self.attributes = attributes
  8736. def read(self, iprot):
  8737. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8738. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8739. return
  8740. iprot.readStructBegin()
  8741. while True:
  8742. (fname, ftype, fid) = iprot.readFieldBegin()
  8743. if ftype == TType.STOP:
  8744. break
  8745. if fid == 1:
  8746. if ftype == TType.STRING:
  8747. self.tableName = iprot.readString()
  8748. else:
  8749. iprot.skip(ftype)
  8750. elif fid == 2:
  8751. if ftype == TType.STRING:
  8752. self.startAndPrefix = iprot.readString()
  8753. else:
  8754. iprot.skip(ftype)
  8755. elif fid == 3:
  8756. if ftype == TType.LIST:
  8757. self.columns = []
  8758. (_etype436, _size433) = iprot.readListBegin()
  8759. for _i437 in xrange(_size433):
  8760. _elem438 = iprot.readString()
  8761. self.columns.append(_elem438)
  8762. iprot.readListEnd()
  8763. else:
  8764. iprot.skip(ftype)
  8765. elif fid == 4:
  8766. if ftype == TType.MAP:
  8767. self.attributes = {}
  8768. (_ktype440, _vtype441, _size439 ) = iprot.readMapBegin()
  8769. for _i443 in xrange(_size439):
  8770. _key444 = iprot.readString()
  8771. _val445 = iprot.readString()
  8772. self.attributes[_key444] = _val445
  8773. iprot.readMapEnd()
  8774. else:
  8775. iprot.skip(ftype)
  8776. else:
  8777. iprot.skip(ftype)
  8778. iprot.readFieldEnd()
  8779. iprot.readStructEnd()
  8780. def write(self, oprot):
  8781. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8782. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8783. return
  8784. oprot.writeStructBegin('scannerOpenWithPrefix_args')
  8785. if self.tableName is not None:
  8786. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  8787. oprot.writeString(self.tableName)
  8788. oprot.writeFieldEnd()
  8789. if self.startAndPrefix is not None:
  8790. oprot.writeFieldBegin('startAndPrefix', TType.STRING, 2)
  8791. oprot.writeString(self.startAndPrefix)
  8792. oprot.writeFieldEnd()
  8793. if self.columns is not None:
  8794. oprot.writeFieldBegin('columns', TType.LIST, 3)
  8795. oprot.writeListBegin(TType.STRING, len(self.columns))
  8796. for iter446 in self.columns:
  8797. oprot.writeString(iter446)
  8798. oprot.writeListEnd()
  8799. oprot.writeFieldEnd()
  8800. if self.attributes is not None:
  8801. oprot.writeFieldBegin('attributes', TType.MAP, 4)
  8802. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  8803. for kiter447,viter448 in self.attributes.items():
  8804. oprot.writeString(kiter447)
  8805. oprot.writeString(viter448)
  8806. oprot.writeMapEnd()
  8807. oprot.writeFieldEnd()
  8808. oprot.writeFieldStop()
  8809. oprot.writeStructEnd()
  8810. def validate(self):
  8811. return
  8812. def __hash__(self):
  8813. value = 17
  8814. value = (value * 31) ^ hash(self.tableName)
  8815. value = (value * 31) ^ hash(self.startAndPrefix)
  8816. value = (value * 31) ^ hash(self.columns)
  8817. value = (value * 31) ^ hash(self.attributes)
  8818. return value
  8819. def __repr__(self):
  8820. L = ['%s=%r' % (key, value)
  8821. for key, value in self.__dict__.iteritems()]
  8822. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8823. def __eq__(self, other):
  8824. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8825. def __ne__(self, other):
  8826. return not (self == other)
  8827. class scannerOpenWithPrefix_result(object):
  8828. """
  8829. Attributes:
  8830. - success
  8831. - io
  8832. """
  8833. thrift_spec = (
  8834. (0, TType.I32, 'success', None, None, ), # 0
  8835. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  8836. )
  8837. def __init__(self, success=None, io=None,):
  8838. self.success = success
  8839. self.io = io
  8840. def read(self, iprot):
  8841. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8842. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8843. return
  8844. iprot.readStructBegin()
  8845. while True:
  8846. (fname, ftype, fid) = iprot.readFieldBegin()
  8847. if ftype == TType.STOP:
  8848. break
  8849. if fid == 0:
  8850. if ftype == TType.I32:
  8851. self.success = iprot.readI32()
  8852. else:
  8853. iprot.skip(ftype)
  8854. elif fid == 1:
  8855. if ftype == TType.STRUCT:
  8856. self.io = IOError()
  8857. self.io.read(iprot)
  8858. else:
  8859. iprot.skip(ftype)
  8860. else:
  8861. iprot.skip(ftype)
  8862. iprot.readFieldEnd()
  8863. iprot.readStructEnd()
  8864. def write(self, oprot):
  8865. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8866. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8867. return
  8868. oprot.writeStructBegin('scannerOpenWithPrefix_result')
  8869. if self.success is not None:
  8870. oprot.writeFieldBegin('success', TType.I32, 0)
  8871. oprot.writeI32(self.success)
  8872. oprot.writeFieldEnd()
  8873. if self.io is not None:
  8874. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  8875. self.io.write(oprot)
  8876. oprot.writeFieldEnd()
  8877. oprot.writeFieldStop()
  8878. oprot.writeStructEnd()
  8879. def validate(self):
  8880. return
  8881. def __hash__(self):
  8882. value = 17
  8883. value = (value * 31) ^ hash(self.success)
  8884. value = (value * 31) ^ hash(self.io)
  8885. return value
  8886. def __repr__(self):
  8887. L = ['%s=%r' % (key, value)
  8888. for key, value in self.__dict__.iteritems()]
  8889. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8890. def __eq__(self, other):
  8891. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8892. def __ne__(self, other):
  8893. return not (self == other)
  8894. class scannerOpenTs_args(object):
  8895. """
  8896. Attributes:
  8897. - tableName: name of table
  8898. - startRow: Starting row in table to scan.
  8899. Send "" (empty string) to start at the first row.
  8900. - columns: columns to scan. If column name is a column family, all
  8901. columns of the specified column family are returned. It's also possible
  8902. to pass a regex in the column qualifier.
  8903. - timestamp: timestamp
  8904. - attributes: Scan attributes
  8905. """
  8906. thrift_spec = (
  8907. None, # 0
  8908. (1, TType.STRING, 'tableName', None, None, ), # 1
  8909. (2, TType.STRING, 'startRow', None, None, ), # 2
  8910. (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
  8911. (4, TType.I64, 'timestamp', None, None, ), # 4
  8912. (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
  8913. )
  8914. def __init__(self, tableName=None, startRow=None, columns=None, timestamp=None, attributes=None,):
  8915. self.tableName = tableName
  8916. self.startRow = startRow
  8917. self.columns = columns
  8918. self.timestamp = timestamp
  8919. self.attributes = attributes
  8920. def read(self, iprot):
  8921. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8922. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8923. return
  8924. iprot.readStructBegin()
  8925. while True:
  8926. (fname, ftype, fid) = iprot.readFieldBegin()
  8927. if ftype == TType.STOP:
  8928. break
  8929. if fid == 1:
  8930. if ftype == TType.STRING:
  8931. self.tableName = iprot.readString()
  8932. else:
  8933. iprot.skip(ftype)
  8934. elif fid == 2:
  8935. if ftype == TType.STRING:
  8936. self.startRow = iprot.readString()
  8937. else:
  8938. iprot.skip(ftype)
  8939. elif fid == 3:
  8940. if ftype == TType.LIST:
  8941. self.columns = []
  8942. (_etype452, _size449) = iprot.readListBegin()
  8943. for _i453 in xrange(_size449):
  8944. _elem454 = iprot.readString()
  8945. self.columns.append(_elem454)
  8946. iprot.readListEnd()
  8947. else:
  8948. iprot.skip(ftype)
  8949. elif fid == 4:
  8950. if ftype == TType.I64:
  8951. self.timestamp = iprot.readI64()
  8952. else:
  8953. iprot.skip(ftype)
  8954. elif fid == 5:
  8955. if ftype == TType.MAP:
  8956. self.attributes = {}
  8957. (_ktype456, _vtype457, _size455 ) = iprot.readMapBegin()
  8958. for _i459 in xrange(_size455):
  8959. _key460 = iprot.readString()
  8960. _val461 = iprot.readString()
  8961. self.attributes[_key460] = _val461
  8962. iprot.readMapEnd()
  8963. else:
  8964. iprot.skip(ftype)
  8965. else:
  8966. iprot.skip(ftype)
  8967. iprot.readFieldEnd()
  8968. iprot.readStructEnd()
  8969. def write(self, oprot):
  8970. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8971. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8972. return
  8973. oprot.writeStructBegin('scannerOpenTs_args')
  8974. if self.tableName is not None:
  8975. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  8976. oprot.writeString(self.tableName)
  8977. oprot.writeFieldEnd()
  8978. if self.startRow is not None:
  8979. oprot.writeFieldBegin('startRow', TType.STRING, 2)
  8980. oprot.writeString(self.startRow)
  8981. oprot.writeFieldEnd()
  8982. if self.columns is not None:
  8983. oprot.writeFieldBegin('columns', TType.LIST, 3)
  8984. oprot.writeListBegin(TType.STRING, len(self.columns))
  8985. for iter462 in self.columns:
  8986. oprot.writeString(iter462)
  8987. oprot.writeListEnd()
  8988. oprot.writeFieldEnd()
  8989. if self.timestamp is not None:
  8990. oprot.writeFieldBegin('timestamp', TType.I64, 4)
  8991. oprot.writeI64(self.timestamp)
  8992. oprot.writeFieldEnd()
  8993. if self.attributes is not None:
  8994. oprot.writeFieldBegin('attributes', TType.MAP, 5)
  8995. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  8996. for kiter463,viter464 in self.attributes.items():
  8997. oprot.writeString(kiter463)
  8998. oprot.writeString(viter464)
  8999. oprot.writeMapEnd()
  9000. oprot.writeFieldEnd()
  9001. oprot.writeFieldStop()
  9002. oprot.writeStructEnd()
  9003. def validate(self):
  9004. return
  9005. def __hash__(self):
  9006. value = 17
  9007. value = (value * 31) ^ hash(self.tableName)
  9008. value = (value * 31) ^ hash(self.startRow)
  9009. value = (value * 31) ^ hash(self.columns)
  9010. value = (value * 31) ^ hash(self.timestamp)
  9011. value = (value * 31) ^ hash(self.attributes)
  9012. return value
  9013. def __repr__(self):
  9014. L = ['%s=%r' % (key, value)
  9015. for key, value in self.__dict__.iteritems()]
  9016. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9017. def __eq__(self, other):
  9018. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9019. def __ne__(self, other):
  9020. return not (self == other)
  9021. class scannerOpenTs_result(object):
  9022. """
  9023. Attributes:
  9024. - success
  9025. - io
  9026. """
  9027. thrift_spec = (
  9028. (0, TType.I32, 'success', None, None, ), # 0
  9029. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  9030. )
  9031. def __init__(self, success=None, io=None,):
  9032. self.success = success
  9033. self.io = io
  9034. def read(self, iprot):
  9035. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9036. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9037. return
  9038. iprot.readStructBegin()
  9039. while True:
  9040. (fname, ftype, fid) = iprot.readFieldBegin()
  9041. if ftype == TType.STOP:
  9042. break
  9043. if fid == 0:
  9044. if ftype == TType.I32:
  9045. self.success = iprot.readI32()
  9046. else:
  9047. iprot.skip(ftype)
  9048. elif fid == 1:
  9049. if ftype == TType.STRUCT:
  9050. self.io = IOError()
  9051. self.io.read(iprot)
  9052. else:
  9053. iprot.skip(ftype)
  9054. else:
  9055. iprot.skip(ftype)
  9056. iprot.readFieldEnd()
  9057. iprot.readStructEnd()
  9058. def write(self, oprot):
  9059. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9060. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9061. return
  9062. oprot.writeStructBegin('scannerOpenTs_result')
  9063. if self.success is not None:
  9064. oprot.writeFieldBegin('success', TType.I32, 0)
  9065. oprot.writeI32(self.success)
  9066. oprot.writeFieldEnd()
  9067. if self.io is not None:
  9068. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  9069. self.io.write(oprot)
  9070. oprot.writeFieldEnd()
  9071. oprot.writeFieldStop()
  9072. oprot.writeStructEnd()
  9073. def validate(self):
  9074. return
  9075. def __hash__(self):
  9076. value = 17
  9077. value = (value * 31) ^ hash(self.success)
  9078. value = (value * 31) ^ hash(self.io)
  9079. return value
  9080. def __repr__(self):
  9081. L = ['%s=%r' % (key, value)
  9082. for key, value in self.__dict__.iteritems()]
  9083. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9084. def __eq__(self, other):
  9085. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9086. def __ne__(self, other):
  9087. return not (self == other)
  9088. class scannerOpenWithStopTs_args(object):
  9089. """
  9090. Attributes:
  9091. - tableName: name of table
  9092. - startRow: Starting row in table to scan.
  9093. Send "" (empty string) to start at the first row.
  9094. - stopRow: row to stop scanning on. This row is *not* included in the
  9095. scanner's results
  9096. - columns: columns to scan. If column name is a column family, all
  9097. columns of the specified column family are returned. It's also possible
  9098. to pass a regex in the column qualifier.
  9099. - timestamp: timestamp
  9100. - attributes: Scan attributes
  9101. """
  9102. thrift_spec = (
  9103. None, # 0
  9104. (1, TType.STRING, 'tableName', None, None, ), # 1
  9105. (2, TType.STRING, 'startRow', None, None, ), # 2
  9106. (3, TType.STRING, 'stopRow', None, None, ), # 3
  9107. (4, TType.LIST, 'columns', (TType.STRING,None), None, ), # 4
  9108. (5, TType.I64, 'timestamp', None, None, ), # 5
  9109. (6, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 6
  9110. )
  9111. def __init__(self, tableName=None, startRow=None, stopRow=None, columns=None, timestamp=None, attributes=None,):
  9112. self.tableName = tableName
  9113. self.startRow = startRow
  9114. self.stopRow = stopRow
  9115. self.columns = columns
  9116. self.timestamp = timestamp
  9117. self.attributes = attributes
  9118. def read(self, iprot):
  9119. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9120. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9121. return
  9122. iprot.readStructBegin()
  9123. while True:
  9124. (fname, ftype, fid) = iprot.readFieldBegin()
  9125. if ftype == TType.STOP:
  9126. break
  9127. if fid == 1:
  9128. if ftype == TType.STRING:
  9129. self.tableName = iprot.readString()
  9130. else:
  9131. iprot.skip(ftype)
  9132. elif fid == 2:
  9133. if ftype == TType.STRING:
  9134. self.startRow = iprot.readString()
  9135. else:
  9136. iprot.skip(ftype)
  9137. elif fid == 3:
  9138. if ftype == TType.STRING:
  9139. self.stopRow = iprot.readString()
  9140. else:
  9141. iprot.skip(ftype)
  9142. elif fid == 4:
  9143. if ftype == TType.LIST:
  9144. self.columns = []
  9145. (_etype468, _size465) = iprot.readListBegin()
  9146. for _i469 in xrange(_size465):
  9147. _elem470 = iprot.readString()
  9148. self.columns.append(_elem470)
  9149. iprot.readListEnd()
  9150. else:
  9151. iprot.skip(ftype)
  9152. elif fid == 5:
  9153. if ftype == TType.I64:
  9154. self.timestamp = iprot.readI64()
  9155. else:
  9156. iprot.skip(ftype)
  9157. elif fid == 6:
  9158. if ftype == TType.MAP:
  9159. self.attributes = {}
  9160. (_ktype472, _vtype473, _size471 ) = iprot.readMapBegin()
  9161. for _i475 in xrange(_size471):
  9162. _key476 = iprot.readString()
  9163. _val477 = iprot.readString()
  9164. self.attributes[_key476] = _val477
  9165. iprot.readMapEnd()
  9166. else:
  9167. iprot.skip(ftype)
  9168. else:
  9169. iprot.skip(ftype)
  9170. iprot.readFieldEnd()
  9171. iprot.readStructEnd()
  9172. def write(self, oprot):
  9173. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9174. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9175. return
  9176. oprot.writeStructBegin('scannerOpenWithStopTs_args')
  9177. if self.tableName is not None:
  9178. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  9179. oprot.writeString(self.tableName)
  9180. oprot.writeFieldEnd()
  9181. if self.startRow is not None:
  9182. oprot.writeFieldBegin('startRow', TType.STRING, 2)
  9183. oprot.writeString(self.startRow)
  9184. oprot.writeFieldEnd()
  9185. if self.stopRow is not None:
  9186. oprot.writeFieldBegin('stopRow', TType.STRING, 3)
  9187. oprot.writeString(self.stopRow)
  9188. oprot.writeFieldEnd()
  9189. if self.columns is not None:
  9190. oprot.writeFieldBegin('columns', TType.LIST, 4)
  9191. oprot.writeListBegin(TType.STRING, len(self.columns))
  9192. for iter478 in self.columns:
  9193. oprot.writeString(iter478)
  9194. oprot.writeListEnd()
  9195. oprot.writeFieldEnd()
  9196. if self.timestamp is not None:
  9197. oprot.writeFieldBegin('timestamp', TType.I64, 5)
  9198. oprot.writeI64(self.timestamp)
  9199. oprot.writeFieldEnd()
  9200. if self.attributes is not None:
  9201. oprot.writeFieldBegin('attributes', TType.MAP, 6)
  9202. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
  9203. for kiter479,viter480 in self.attributes.items():
  9204. oprot.writeString(kiter479)
  9205. oprot.writeString(viter480)
  9206. oprot.writeMapEnd()
  9207. oprot.writeFieldEnd()
  9208. oprot.writeFieldStop()
  9209. oprot.writeStructEnd()
  9210. def validate(self):
  9211. return
  9212. def __hash__(self):
  9213. value = 17
  9214. value = (value * 31) ^ hash(self.tableName)
  9215. value = (value * 31) ^ hash(self.startRow)
  9216. value = (value * 31) ^ hash(self.stopRow)
  9217. value = (value * 31) ^ hash(self.columns)
  9218. value = (value * 31) ^ hash(self.timestamp)
  9219. value = (value * 31) ^ hash(self.attributes)
  9220. return value
  9221. def __repr__(self):
  9222. L = ['%s=%r' % (key, value)
  9223. for key, value in self.__dict__.iteritems()]
  9224. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9225. def __eq__(self, other):
  9226. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9227. def __ne__(self, other):
  9228. return not (self == other)
  9229. class scannerOpenWithStopTs_result(object):
  9230. """
  9231. Attributes:
  9232. - success
  9233. - io
  9234. """
  9235. thrift_spec = (
  9236. (0, TType.I32, 'success', None, None, ), # 0
  9237. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  9238. )
  9239. def __init__(self, success=None, io=None,):
  9240. self.success = success
  9241. self.io = io
  9242. def read(self, iprot):
  9243. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9244. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9245. return
  9246. iprot.readStructBegin()
  9247. while True:
  9248. (fname, ftype, fid) = iprot.readFieldBegin()
  9249. if ftype == TType.STOP:
  9250. break
  9251. if fid == 0:
  9252. if ftype == TType.I32:
  9253. self.success = iprot.readI32()
  9254. else:
  9255. iprot.skip(ftype)
  9256. elif fid == 1:
  9257. if ftype == TType.STRUCT:
  9258. self.io = IOError()
  9259. self.io.read(iprot)
  9260. else:
  9261. iprot.skip(ftype)
  9262. else:
  9263. iprot.skip(ftype)
  9264. iprot.readFieldEnd()
  9265. iprot.readStructEnd()
  9266. def write(self, oprot):
  9267. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9268. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9269. return
  9270. oprot.writeStructBegin('scannerOpenWithStopTs_result')
  9271. if self.success is not None:
  9272. oprot.writeFieldBegin('success', TType.I32, 0)
  9273. oprot.writeI32(self.success)
  9274. oprot.writeFieldEnd()
  9275. if self.io is not None:
  9276. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  9277. self.io.write(oprot)
  9278. oprot.writeFieldEnd()
  9279. oprot.writeFieldStop()
  9280. oprot.writeStructEnd()
  9281. def validate(self):
  9282. return
  9283. def __hash__(self):
  9284. value = 17
  9285. value = (value * 31) ^ hash(self.success)
  9286. value = (value * 31) ^ hash(self.io)
  9287. return value
  9288. def __repr__(self):
  9289. L = ['%s=%r' % (key, value)
  9290. for key, value in self.__dict__.iteritems()]
  9291. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9292. def __eq__(self, other):
  9293. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9294. def __ne__(self, other):
  9295. return not (self == other)
  9296. class scannerGet_args(object):
  9297. """
  9298. Attributes:
  9299. - id: id of a scanner returned by scannerOpen
  9300. """
  9301. thrift_spec = (
  9302. None, # 0
  9303. (1, TType.I32, 'id', None, None, ), # 1
  9304. )
  9305. def __init__(self, id=None,):
  9306. self.id = id
  9307. def read(self, iprot):
  9308. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9309. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9310. return
  9311. iprot.readStructBegin()
  9312. while True:
  9313. (fname, ftype, fid) = iprot.readFieldBegin()
  9314. if ftype == TType.STOP:
  9315. break
  9316. if fid == 1:
  9317. if ftype == TType.I32:
  9318. self.id = iprot.readI32()
  9319. else:
  9320. iprot.skip(ftype)
  9321. else:
  9322. iprot.skip(ftype)
  9323. iprot.readFieldEnd()
  9324. iprot.readStructEnd()
  9325. def write(self, oprot):
  9326. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9327. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9328. return
  9329. oprot.writeStructBegin('scannerGet_args')
  9330. if self.id is not None:
  9331. oprot.writeFieldBegin('id', TType.I32, 1)
  9332. oprot.writeI32(self.id)
  9333. oprot.writeFieldEnd()
  9334. oprot.writeFieldStop()
  9335. oprot.writeStructEnd()
  9336. def validate(self):
  9337. return
  9338. def __hash__(self):
  9339. value = 17
  9340. value = (value * 31) ^ hash(self.id)
  9341. return value
  9342. def __repr__(self):
  9343. L = ['%s=%r' % (key, value)
  9344. for key, value in self.__dict__.iteritems()]
  9345. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9346. def __eq__(self, other):
  9347. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9348. def __ne__(self, other):
  9349. return not (self == other)
  9350. class scannerGet_result(object):
  9351. """
  9352. Attributes:
  9353. - success
  9354. - io
  9355. - ia
  9356. """
  9357. thrift_spec = (
  9358. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  9359. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  9360. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  9361. )
  9362. def __init__(self, success=None, io=None, ia=None,):
  9363. self.success = success
  9364. self.io = io
  9365. self.ia = ia
  9366. def read(self, iprot):
  9367. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9368. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9369. return
  9370. iprot.readStructBegin()
  9371. while True:
  9372. (fname, ftype, fid) = iprot.readFieldBegin()
  9373. if ftype == TType.STOP:
  9374. break
  9375. if fid == 0:
  9376. if ftype == TType.LIST:
  9377. self.success = []
  9378. (_etype484, _size481) = iprot.readListBegin()
  9379. for _i485 in xrange(_size481):
  9380. _elem486 = TRowResult()
  9381. _elem486.read(iprot)
  9382. self.success.append(_elem486)
  9383. iprot.readListEnd()
  9384. else:
  9385. iprot.skip(ftype)
  9386. elif fid == 1:
  9387. if ftype == TType.STRUCT:
  9388. self.io = IOError()
  9389. self.io.read(iprot)
  9390. else:
  9391. iprot.skip(ftype)
  9392. elif fid == 2:
  9393. if ftype == TType.STRUCT:
  9394. self.ia = IllegalArgument()
  9395. self.ia.read(iprot)
  9396. else:
  9397. iprot.skip(ftype)
  9398. else:
  9399. iprot.skip(ftype)
  9400. iprot.readFieldEnd()
  9401. iprot.readStructEnd()
  9402. def write(self, oprot):
  9403. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9404. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9405. return
  9406. oprot.writeStructBegin('scannerGet_result')
  9407. if self.success is not None:
  9408. oprot.writeFieldBegin('success', TType.LIST, 0)
  9409. oprot.writeListBegin(TType.STRUCT, len(self.success))
  9410. for iter487 in self.success:
  9411. iter487.write(oprot)
  9412. oprot.writeListEnd()
  9413. oprot.writeFieldEnd()
  9414. if self.io is not None:
  9415. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  9416. self.io.write(oprot)
  9417. oprot.writeFieldEnd()
  9418. if self.ia is not None:
  9419. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  9420. self.ia.write(oprot)
  9421. oprot.writeFieldEnd()
  9422. oprot.writeFieldStop()
  9423. oprot.writeStructEnd()
  9424. def validate(self):
  9425. return
  9426. def __hash__(self):
  9427. value = 17
  9428. value = (value * 31) ^ hash(self.success)
  9429. value = (value * 31) ^ hash(self.io)
  9430. value = (value * 31) ^ hash(self.ia)
  9431. return value
  9432. def __repr__(self):
  9433. L = ['%s=%r' % (key, value)
  9434. for key, value in self.__dict__.iteritems()]
  9435. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9436. def __eq__(self, other):
  9437. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9438. def __ne__(self, other):
  9439. return not (self == other)
  9440. class scannerGetList_args(object):
  9441. """
  9442. Attributes:
  9443. - id: id of a scanner returned by scannerOpen
  9444. - nbRows: number of results to return
  9445. """
  9446. thrift_spec = (
  9447. None, # 0
  9448. (1, TType.I32, 'id', None, None, ), # 1
  9449. (2, TType.I32, 'nbRows', None, None, ), # 2
  9450. )
  9451. def __init__(self, id=None, nbRows=None,):
  9452. self.id = id
  9453. self.nbRows = nbRows
  9454. def read(self, iprot):
  9455. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9456. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9457. return
  9458. iprot.readStructBegin()
  9459. while True:
  9460. (fname, ftype, fid) = iprot.readFieldBegin()
  9461. if ftype == TType.STOP:
  9462. break
  9463. if fid == 1:
  9464. if ftype == TType.I32:
  9465. self.id = iprot.readI32()
  9466. else:
  9467. iprot.skip(ftype)
  9468. elif fid == 2:
  9469. if ftype == TType.I32:
  9470. self.nbRows = iprot.readI32()
  9471. else:
  9472. iprot.skip(ftype)
  9473. else:
  9474. iprot.skip(ftype)
  9475. iprot.readFieldEnd()
  9476. iprot.readStructEnd()
  9477. def write(self, oprot):
  9478. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9479. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9480. return
  9481. oprot.writeStructBegin('scannerGetList_args')
  9482. if self.id is not None:
  9483. oprot.writeFieldBegin('id', TType.I32, 1)
  9484. oprot.writeI32(self.id)
  9485. oprot.writeFieldEnd()
  9486. if self.nbRows is not None:
  9487. oprot.writeFieldBegin('nbRows', TType.I32, 2)
  9488. oprot.writeI32(self.nbRows)
  9489. oprot.writeFieldEnd()
  9490. oprot.writeFieldStop()
  9491. oprot.writeStructEnd()
  9492. def validate(self):
  9493. return
  9494. def __hash__(self):
  9495. value = 17
  9496. value = (value * 31) ^ hash(self.id)
  9497. value = (value * 31) ^ hash(self.nbRows)
  9498. return value
  9499. def __repr__(self):
  9500. L = ['%s=%r' % (key, value)
  9501. for key, value in self.__dict__.iteritems()]
  9502. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9503. def __eq__(self, other):
  9504. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9505. def __ne__(self, other):
  9506. return not (self == other)
  9507. class scannerGetList_result(object):
  9508. """
  9509. Attributes:
  9510. - success
  9511. - io
  9512. - ia
  9513. """
  9514. thrift_spec = (
  9515. (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
  9516. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  9517. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  9518. )
  9519. def __init__(self, success=None, io=None, ia=None,):
  9520. self.success = success
  9521. self.io = io
  9522. self.ia = ia
  9523. def read(self, iprot):
  9524. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9525. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9526. return
  9527. iprot.readStructBegin()
  9528. while True:
  9529. (fname, ftype, fid) = iprot.readFieldBegin()
  9530. if ftype == TType.STOP:
  9531. break
  9532. if fid == 0:
  9533. if ftype == TType.LIST:
  9534. self.success = []
  9535. (_etype491, _size488) = iprot.readListBegin()
  9536. for _i492 in xrange(_size488):
  9537. _elem493 = TRowResult()
  9538. _elem493.read(iprot)
  9539. self.success.append(_elem493)
  9540. iprot.readListEnd()
  9541. else:
  9542. iprot.skip(ftype)
  9543. elif fid == 1:
  9544. if ftype == TType.STRUCT:
  9545. self.io = IOError()
  9546. self.io.read(iprot)
  9547. else:
  9548. iprot.skip(ftype)
  9549. elif fid == 2:
  9550. if ftype == TType.STRUCT:
  9551. self.ia = IllegalArgument()
  9552. self.ia.read(iprot)
  9553. else:
  9554. iprot.skip(ftype)
  9555. else:
  9556. iprot.skip(ftype)
  9557. iprot.readFieldEnd()
  9558. iprot.readStructEnd()
  9559. def write(self, oprot):
  9560. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9561. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9562. return
  9563. oprot.writeStructBegin('scannerGetList_result')
  9564. if self.success is not None:
  9565. oprot.writeFieldBegin('success', TType.LIST, 0)
  9566. oprot.writeListBegin(TType.STRUCT, len(self.success))
  9567. for iter494 in self.success:
  9568. iter494.write(oprot)
  9569. oprot.writeListEnd()
  9570. oprot.writeFieldEnd()
  9571. if self.io is not None:
  9572. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  9573. self.io.write(oprot)
  9574. oprot.writeFieldEnd()
  9575. if self.ia is not None:
  9576. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  9577. self.ia.write(oprot)
  9578. oprot.writeFieldEnd()
  9579. oprot.writeFieldStop()
  9580. oprot.writeStructEnd()
  9581. def validate(self):
  9582. return
  9583. def __hash__(self):
  9584. value = 17
  9585. value = (value * 31) ^ hash(self.success)
  9586. value = (value * 31) ^ hash(self.io)
  9587. value = (value * 31) ^ hash(self.ia)
  9588. return value
  9589. def __repr__(self):
  9590. L = ['%s=%r' % (key, value)
  9591. for key, value in self.__dict__.iteritems()]
  9592. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9593. def __eq__(self, other):
  9594. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9595. def __ne__(self, other):
  9596. return not (self == other)
  9597. class scannerClose_args(object):
  9598. """
  9599. Attributes:
  9600. - id: id of a scanner returned by scannerOpen
  9601. """
  9602. thrift_spec = (
  9603. None, # 0
  9604. (1, TType.I32, 'id', None, None, ), # 1
  9605. )
  9606. def __init__(self, id=None,):
  9607. self.id = id
  9608. def read(self, iprot):
  9609. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9610. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9611. return
  9612. iprot.readStructBegin()
  9613. while True:
  9614. (fname, ftype, fid) = iprot.readFieldBegin()
  9615. if ftype == TType.STOP:
  9616. break
  9617. if fid == 1:
  9618. if ftype == TType.I32:
  9619. self.id = iprot.readI32()
  9620. else:
  9621. iprot.skip(ftype)
  9622. else:
  9623. iprot.skip(ftype)
  9624. iprot.readFieldEnd()
  9625. iprot.readStructEnd()
  9626. def write(self, oprot):
  9627. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9628. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9629. return
  9630. oprot.writeStructBegin('scannerClose_args')
  9631. if self.id is not None:
  9632. oprot.writeFieldBegin('id', TType.I32, 1)
  9633. oprot.writeI32(self.id)
  9634. oprot.writeFieldEnd()
  9635. oprot.writeFieldStop()
  9636. oprot.writeStructEnd()
  9637. def validate(self):
  9638. return
  9639. def __hash__(self):
  9640. value = 17
  9641. value = (value * 31) ^ hash(self.id)
  9642. return value
  9643. def __repr__(self):
  9644. L = ['%s=%r' % (key, value)
  9645. for key, value in self.__dict__.iteritems()]
  9646. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9647. def __eq__(self, other):
  9648. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9649. def __ne__(self, other):
  9650. return not (self == other)
  9651. class scannerClose_result(object):
  9652. """
  9653. Attributes:
  9654. - io
  9655. - ia
  9656. """
  9657. thrift_spec = (
  9658. None, # 0
  9659. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  9660. (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
  9661. )
  9662. def __init__(self, io=None, ia=None,):
  9663. self.io = io
  9664. self.ia = ia
  9665. def read(self, iprot):
  9666. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9667. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9668. return
  9669. iprot.readStructBegin()
  9670. while True:
  9671. (fname, ftype, fid) = iprot.readFieldBegin()
  9672. if ftype == TType.STOP:
  9673. break
  9674. if fid == 1:
  9675. if ftype == TType.STRUCT:
  9676. self.io = IOError()
  9677. self.io.read(iprot)
  9678. else:
  9679. iprot.skip(ftype)
  9680. elif fid == 2:
  9681. if ftype == TType.STRUCT:
  9682. self.ia = IllegalArgument()
  9683. self.ia.read(iprot)
  9684. else:
  9685. iprot.skip(ftype)
  9686. else:
  9687. iprot.skip(ftype)
  9688. iprot.readFieldEnd()
  9689. iprot.readStructEnd()
  9690. def write(self, oprot):
  9691. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9692. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9693. return
  9694. oprot.writeStructBegin('scannerClose_result')
  9695. if self.io is not None:
  9696. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  9697. self.io.write(oprot)
  9698. oprot.writeFieldEnd()
  9699. if self.ia is not None:
  9700. oprot.writeFieldBegin('ia', TType.STRUCT, 2)
  9701. self.ia.write(oprot)
  9702. oprot.writeFieldEnd()
  9703. oprot.writeFieldStop()
  9704. oprot.writeStructEnd()
  9705. def validate(self):
  9706. return
  9707. def __hash__(self):
  9708. value = 17
  9709. value = (value * 31) ^ hash(self.io)
  9710. value = (value * 31) ^ hash(self.ia)
  9711. return value
  9712. def __repr__(self):
  9713. L = ['%s=%r' % (key, value)
  9714. for key, value in self.__dict__.iteritems()]
  9715. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9716. def __eq__(self, other):
  9717. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9718. def __ne__(self, other):
  9719. return not (self == other)
  9720. class getRowOrBefore_args(object):
  9721. """
  9722. Attributes:
  9723. - tableName: name of table
  9724. - row: row key
  9725. - family: column name
  9726. """
  9727. thrift_spec = (
  9728. None, # 0
  9729. (1, TType.STRING, 'tableName', None, None, ), # 1
  9730. (2, TType.STRING, 'row', None, None, ), # 2
  9731. (3, TType.STRING, 'family', None, None, ), # 3
  9732. )
  9733. def __init__(self, tableName=None, row=None, family=None,):
  9734. self.tableName = tableName
  9735. self.row = row
  9736. self.family = family
  9737. def read(self, iprot):
  9738. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9739. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9740. return
  9741. iprot.readStructBegin()
  9742. while True:
  9743. (fname, ftype, fid) = iprot.readFieldBegin()
  9744. if ftype == TType.STOP:
  9745. break
  9746. if fid == 1:
  9747. if ftype == TType.STRING:
  9748. self.tableName = iprot.readString()
  9749. else:
  9750. iprot.skip(ftype)
  9751. elif fid == 2:
  9752. if ftype == TType.STRING:
  9753. self.row = iprot.readString()
  9754. else:
  9755. iprot.skip(ftype)
  9756. elif fid == 3:
  9757. if ftype == TType.STRING:
  9758. self.family = iprot.readString()
  9759. else:
  9760. iprot.skip(ftype)
  9761. else:
  9762. iprot.skip(ftype)
  9763. iprot.readFieldEnd()
  9764. iprot.readStructEnd()
  9765. def write(self, oprot):
  9766. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9767. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9768. return
  9769. oprot.writeStructBegin('getRowOrBefore_args')
  9770. if self.tableName is not None:
  9771. oprot.writeFieldBegin('tableName', TType.STRING, 1)
  9772. oprot.writeString(self.tableName)
  9773. oprot.writeFieldEnd()
  9774. if self.row is not None:
  9775. oprot.writeFieldBegin('row', TType.STRING, 2)
  9776. oprot.writeString(self.row)
  9777. oprot.writeFieldEnd()
  9778. if self.family is not None:
  9779. oprot.writeFieldBegin('family', TType.STRING, 3)
  9780. oprot.writeString(self.family)
  9781. oprot.writeFieldEnd()
  9782. oprot.writeFieldStop()
  9783. oprot.writeStructEnd()
  9784. def validate(self):
  9785. return
  9786. def __hash__(self):
  9787. value = 17
  9788. value = (value * 31) ^ hash(self.tableName)
  9789. value = (value * 31) ^ hash(self.row)
  9790. value = (value * 31) ^ hash(self.family)
  9791. return value
  9792. def __repr__(self):
  9793. L = ['%s=%r' % (key, value)
  9794. for key, value in self.__dict__.iteritems()]
  9795. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9796. def __eq__(self, other):
  9797. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9798. def __ne__(self, other):
  9799. return not (self == other)
  9800. class getRowOrBefore_result(object):
  9801. """
  9802. Attributes:
  9803. - success
  9804. - io
  9805. """
  9806. thrift_spec = (
  9807. (0, TType.LIST, 'success', (TType.STRUCT,(TCell, TCell.thrift_spec)), None, ), # 0
  9808. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  9809. )
  9810. def __init__(self, success=None, io=None,):
  9811. self.success = success
  9812. self.io = io
  9813. def read(self, iprot):
  9814. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9815. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9816. return
  9817. iprot.readStructBegin()
  9818. while True:
  9819. (fname, ftype, fid) = iprot.readFieldBegin()
  9820. if ftype == TType.STOP:
  9821. break
  9822. if fid == 0:
  9823. if ftype == TType.LIST:
  9824. self.success = []
  9825. (_etype498, _size495) = iprot.readListBegin()
  9826. for _i499 in xrange(_size495):
  9827. _elem500 = TCell()
  9828. _elem500.read(iprot)
  9829. self.success.append(_elem500)
  9830. iprot.readListEnd()
  9831. else:
  9832. iprot.skip(ftype)
  9833. elif fid == 1:
  9834. if ftype == TType.STRUCT:
  9835. self.io = IOError()
  9836. self.io.read(iprot)
  9837. else:
  9838. iprot.skip(ftype)
  9839. else:
  9840. iprot.skip(ftype)
  9841. iprot.readFieldEnd()
  9842. iprot.readStructEnd()
  9843. def write(self, oprot):
  9844. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9845. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9846. return
  9847. oprot.writeStructBegin('getRowOrBefore_result')
  9848. if self.success is not None:
  9849. oprot.writeFieldBegin('success', TType.LIST, 0)
  9850. oprot.writeListBegin(TType.STRUCT, len(self.success))
  9851. for iter501 in self.success:
  9852. iter501.write(oprot)
  9853. oprot.writeListEnd()
  9854. oprot.writeFieldEnd()
  9855. if self.io is not None:
  9856. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  9857. self.io.write(oprot)
  9858. oprot.writeFieldEnd()
  9859. oprot.writeFieldStop()
  9860. oprot.writeStructEnd()
  9861. def validate(self):
  9862. return
  9863. def __hash__(self):
  9864. value = 17
  9865. value = (value * 31) ^ hash(self.success)
  9866. value = (value * 31) ^ hash(self.io)
  9867. return value
  9868. def __repr__(self):
  9869. L = ['%s=%r' % (key, value)
  9870. for key, value in self.__dict__.iteritems()]
  9871. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9872. def __eq__(self, other):
  9873. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9874. def __ne__(self, other):
  9875. return not (self == other)
  9876. class getRegionInfo_args(object):
  9877. """
  9878. Attributes:
  9879. - row: row key
  9880. """
  9881. thrift_spec = (
  9882. None, # 0
  9883. (1, TType.STRING, 'row', None, None, ), # 1
  9884. )
  9885. def __init__(self, row=None,):
  9886. self.row = row
  9887. def read(self, iprot):
  9888. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9889. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9890. return
  9891. iprot.readStructBegin()
  9892. while True:
  9893. (fname, ftype, fid) = iprot.readFieldBegin()
  9894. if ftype == TType.STOP:
  9895. break
  9896. if fid == 1:
  9897. if ftype == TType.STRING:
  9898. self.row = iprot.readString()
  9899. else:
  9900. iprot.skip(ftype)
  9901. else:
  9902. iprot.skip(ftype)
  9903. iprot.readFieldEnd()
  9904. iprot.readStructEnd()
  9905. def write(self, oprot):
  9906. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9907. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9908. return
  9909. oprot.writeStructBegin('getRegionInfo_args')
  9910. if self.row is not None:
  9911. oprot.writeFieldBegin('row', TType.STRING, 1)
  9912. oprot.writeString(self.row)
  9913. oprot.writeFieldEnd()
  9914. oprot.writeFieldStop()
  9915. oprot.writeStructEnd()
  9916. def validate(self):
  9917. return
  9918. def __hash__(self):
  9919. value = 17
  9920. value = (value * 31) ^ hash(self.row)
  9921. return value
  9922. def __repr__(self):
  9923. L = ['%s=%r' % (key, value)
  9924. for key, value in self.__dict__.iteritems()]
  9925. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9926. def __eq__(self, other):
  9927. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9928. def __ne__(self, other):
  9929. return not (self == other)
  9930. class getRegionInfo_result(object):
  9931. """
  9932. Attributes:
  9933. - success
  9934. - io
  9935. """
  9936. thrift_spec = (
  9937. (0, TType.STRUCT, 'success', (TRegionInfo, TRegionInfo.thrift_spec), None, ), # 0
  9938. (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
  9939. )
  9940. def __init__(self, success=None, io=None,):
  9941. self.success = success
  9942. self.io = io
  9943. def read(self, iprot):
  9944. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9945. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9946. return
  9947. iprot.readStructBegin()
  9948. while True:
  9949. (fname, ftype, fid) = iprot.readFieldBegin()
  9950. if ftype == TType.STOP:
  9951. break
  9952. if fid == 0:
  9953. if ftype == TType.STRUCT:
  9954. self.success = TRegionInfo()
  9955. self.success.read(iprot)
  9956. else:
  9957. iprot.skip(ftype)
  9958. elif fid == 1:
  9959. if ftype == TType.STRUCT:
  9960. self.io = IOError()
  9961. self.io.read(iprot)
  9962. else:
  9963. iprot.skip(ftype)
  9964. else:
  9965. iprot.skip(ftype)
  9966. iprot.readFieldEnd()
  9967. iprot.readStructEnd()
  9968. def write(self, oprot):
  9969. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9970. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9971. return
  9972. oprot.writeStructBegin('getRegionInfo_result')
  9973. if self.success is not None:
  9974. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  9975. self.success.write(oprot)
  9976. oprot.writeFieldEnd()
  9977. if self.io is not None:
  9978. oprot.writeFieldBegin('io', TType.STRUCT, 1)
  9979. self.io.write(oprot)
  9980. oprot.writeFieldEnd()
  9981. oprot.writeFieldStop()
  9982. oprot.writeStructEnd()
  9983. def validate(self):
  9984. return
  9985. def __hash__(self):
  9986. value = 17
  9987. value = (value * 31) ^ hash(self.success)
  9988. value = (value * 31) ^ hash(self.io)
  9989. return value
  9990. def __repr__(self):
  9991. L = ['%s=%r' % (key, value)
  9992. for key, value in self.__dict__.iteritems()]
  9993. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9994. def __eq__(self, other):
  9995. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9996. def __ne__(self, other):
  9997. return not (self == other)