Hbase.py 354 KB

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