ThriftHiveMetastore.py 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120
  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 fb303.FacebookService
  10. import logging
  11. from ttypes import *
  12. from thrift.Thrift import TProcessor
  13. from thrift.transport import TTransport
  14. from thrift.protocol import TBinaryProtocol, TProtocol
  15. try:
  16. from thrift.protocol import fastbinary
  17. except:
  18. fastbinary = None
  19. class Iface(fb303.FacebookService.Iface):
  20. """
  21. This interface is live.
  22. """
  23. def getMetaConf(self, key):
  24. """
  25. Parameters:
  26. - key
  27. """
  28. pass
  29. def setMetaConf(self, key, value):
  30. """
  31. Parameters:
  32. - key
  33. - value
  34. """
  35. pass
  36. def create_database(self, database):
  37. """
  38. Parameters:
  39. - database
  40. """
  41. pass
  42. def get_database(self, name):
  43. """
  44. Parameters:
  45. - name
  46. """
  47. pass
  48. def drop_database(self, name, deleteData, cascade):
  49. """
  50. Parameters:
  51. - name
  52. - deleteData
  53. - cascade
  54. """
  55. pass
  56. def get_databases(self, pattern):
  57. """
  58. Parameters:
  59. - pattern
  60. """
  61. pass
  62. def get_all_databases(self):
  63. pass
  64. def alter_database(self, dbname, db):
  65. """
  66. Parameters:
  67. - dbname
  68. - db
  69. """
  70. pass
  71. def get_type(self, name):
  72. """
  73. Parameters:
  74. - name
  75. """
  76. pass
  77. def create_type(self, type):
  78. """
  79. Parameters:
  80. - type
  81. """
  82. pass
  83. def drop_type(self, type):
  84. """
  85. Parameters:
  86. - type
  87. """
  88. pass
  89. def get_type_all(self, name):
  90. """
  91. Parameters:
  92. - name
  93. """
  94. pass
  95. def get_fields(self, db_name, table_name):
  96. """
  97. Parameters:
  98. - db_name
  99. - table_name
  100. """
  101. pass
  102. def get_fields_with_environment_context(self, db_name, table_name, environment_context):
  103. """
  104. Parameters:
  105. - db_name
  106. - table_name
  107. - environment_context
  108. """
  109. pass
  110. def get_schema(self, db_name, table_name):
  111. """
  112. Parameters:
  113. - db_name
  114. - table_name
  115. """
  116. pass
  117. def get_schema_with_environment_context(self, db_name, table_name, environment_context):
  118. """
  119. Parameters:
  120. - db_name
  121. - table_name
  122. - environment_context
  123. """
  124. pass
  125. def create_table(self, tbl):
  126. """
  127. Parameters:
  128. - tbl
  129. """
  130. pass
  131. def create_table_with_environment_context(self, tbl, environment_context):
  132. """
  133. Parameters:
  134. - tbl
  135. - environment_context
  136. """
  137. pass
  138. def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys):
  139. """
  140. Parameters:
  141. - tbl
  142. - primaryKeys
  143. - foreignKeys
  144. """
  145. pass
  146. def drop_constraint(self, req):
  147. """
  148. Parameters:
  149. - req
  150. """
  151. pass
  152. def add_primary_key(self, req):
  153. """
  154. Parameters:
  155. - req
  156. """
  157. pass
  158. def add_foreign_key(self, req):
  159. """
  160. Parameters:
  161. - req
  162. """
  163. pass
  164. def drop_table(self, dbname, name, deleteData):
  165. """
  166. Parameters:
  167. - dbname
  168. - name
  169. - deleteData
  170. """
  171. pass
  172. def drop_table_with_environment_context(self, dbname, name, deleteData, environment_context):
  173. """
  174. Parameters:
  175. - dbname
  176. - name
  177. - deleteData
  178. - environment_context
  179. """
  180. pass
  181. def get_tables(self, db_name, pattern):
  182. """
  183. Parameters:
  184. - db_name
  185. - pattern
  186. """
  187. pass
  188. def get_table_meta(self, db_patterns, tbl_patterns, tbl_types):
  189. """
  190. Parameters:
  191. - db_patterns
  192. - tbl_patterns
  193. - tbl_types
  194. """
  195. pass
  196. def get_all_tables(self, db_name):
  197. """
  198. Parameters:
  199. - db_name
  200. """
  201. pass
  202. def get_table(self, dbname, tbl_name):
  203. """
  204. Parameters:
  205. - dbname
  206. - tbl_name
  207. """
  208. pass
  209. def get_table_objects_by_name(self, dbname, tbl_names):
  210. """
  211. Parameters:
  212. - dbname
  213. - tbl_names
  214. """
  215. pass
  216. def get_table_names_by_filter(self, dbname, filter, max_tables):
  217. """
  218. Parameters:
  219. - dbname
  220. - filter
  221. - max_tables
  222. """
  223. pass
  224. def alter_table(self, dbname, tbl_name, new_tbl):
  225. """
  226. Parameters:
  227. - dbname
  228. - tbl_name
  229. - new_tbl
  230. """
  231. pass
  232. def alter_table_with_environment_context(self, dbname, tbl_name, new_tbl, environment_context):
  233. """
  234. Parameters:
  235. - dbname
  236. - tbl_name
  237. - new_tbl
  238. - environment_context
  239. """
  240. pass
  241. def alter_table_with_cascade(self, dbname, tbl_name, new_tbl, cascade):
  242. """
  243. Parameters:
  244. - dbname
  245. - tbl_name
  246. - new_tbl
  247. - cascade
  248. """
  249. pass
  250. def add_partition(self, new_part):
  251. """
  252. Parameters:
  253. - new_part
  254. """
  255. pass
  256. def add_partition_with_environment_context(self, new_part, environment_context):
  257. """
  258. Parameters:
  259. - new_part
  260. - environment_context
  261. """
  262. pass
  263. def add_partitions(self, new_parts):
  264. """
  265. Parameters:
  266. - new_parts
  267. """
  268. pass
  269. def add_partitions_pspec(self, new_parts):
  270. """
  271. Parameters:
  272. - new_parts
  273. """
  274. pass
  275. def append_partition(self, db_name, tbl_name, part_vals):
  276. """
  277. Parameters:
  278. - db_name
  279. - tbl_name
  280. - part_vals
  281. """
  282. pass
  283. def add_partitions_req(self, request):
  284. """
  285. Parameters:
  286. - request
  287. """
  288. pass
  289. def append_partition_with_environment_context(self, db_name, tbl_name, part_vals, environment_context):
  290. """
  291. Parameters:
  292. - db_name
  293. - tbl_name
  294. - part_vals
  295. - environment_context
  296. """
  297. pass
  298. def append_partition_by_name(self, db_name, tbl_name, part_name):
  299. """
  300. Parameters:
  301. - db_name
  302. - tbl_name
  303. - part_name
  304. """
  305. pass
  306. def append_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, environment_context):
  307. """
  308. Parameters:
  309. - db_name
  310. - tbl_name
  311. - part_name
  312. - environment_context
  313. """
  314. pass
  315. def drop_partition(self, db_name, tbl_name, part_vals, deleteData):
  316. """
  317. Parameters:
  318. - db_name
  319. - tbl_name
  320. - part_vals
  321. - deleteData
  322. """
  323. pass
  324. def drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context):
  325. """
  326. Parameters:
  327. - db_name
  328. - tbl_name
  329. - part_vals
  330. - deleteData
  331. - environment_context
  332. """
  333. pass
  334. def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
  335. """
  336. Parameters:
  337. - db_name
  338. - tbl_name
  339. - part_name
  340. - deleteData
  341. """
  342. pass
  343. def drop_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, deleteData, environment_context):
  344. """
  345. Parameters:
  346. - db_name
  347. - tbl_name
  348. - part_name
  349. - deleteData
  350. - environment_context
  351. """
  352. pass
  353. def drop_partitions_req(self, req):
  354. """
  355. Parameters:
  356. - req
  357. """
  358. pass
  359. def get_partition(self, db_name, tbl_name, part_vals):
  360. """
  361. Parameters:
  362. - db_name
  363. - tbl_name
  364. - part_vals
  365. """
  366. pass
  367. def exchange_partition(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name):
  368. """
  369. Parameters:
  370. - partitionSpecs
  371. - source_db
  372. - source_table_name
  373. - dest_db
  374. - dest_table_name
  375. """
  376. pass
  377. def exchange_partitions(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name):
  378. """
  379. Parameters:
  380. - partitionSpecs
  381. - source_db
  382. - source_table_name
  383. - dest_db
  384. - dest_table_name
  385. """
  386. pass
  387. def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
  388. """
  389. Parameters:
  390. - db_name
  391. - tbl_name
  392. - part_vals
  393. - user_name
  394. - group_names
  395. """
  396. pass
  397. def get_partition_by_name(self, db_name, tbl_name, part_name):
  398. """
  399. Parameters:
  400. - db_name
  401. - tbl_name
  402. - part_name
  403. """
  404. pass
  405. def get_partitions(self, db_name, tbl_name, max_parts):
  406. """
  407. Parameters:
  408. - db_name
  409. - tbl_name
  410. - max_parts
  411. """
  412. pass
  413. def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
  414. """
  415. Parameters:
  416. - db_name
  417. - tbl_name
  418. - max_parts
  419. - user_name
  420. - group_names
  421. """
  422. pass
  423. def get_partitions_pspec(self, db_name, tbl_name, max_parts):
  424. """
  425. Parameters:
  426. - db_name
  427. - tbl_name
  428. - max_parts
  429. """
  430. pass
  431. def get_partition_names(self, db_name, tbl_name, max_parts):
  432. """
  433. Parameters:
  434. - db_name
  435. - tbl_name
  436. - max_parts
  437. """
  438. pass
  439. def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
  440. """
  441. Parameters:
  442. - db_name
  443. - tbl_name
  444. - part_vals
  445. - max_parts
  446. """
  447. pass
  448. def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
  449. """
  450. Parameters:
  451. - db_name
  452. - tbl_name
  453. - part_vals
  454. - max_parts
  455. - user_name
  456. - group_names
  457. """
  458. pass
  459. def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
  460. """
  461. Parameters:
  462. - db_name
  463. - tbl_name
  464. - part_vals
  465. - max_parts
  466. """
  467. pass
  468. def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
  469. """
  470. Parameters:
  471. - db_name
  472. - tbl_name
  473. - filter
  474. - max_parts
  475. """
  476. pass
  477. def get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts):
  478. """
  479. Parameters:
  480. - db_name
  481. - tbl_name
  482. - filter
  483. - max_parts
  484. """
  485. pass
  486. def get_partitions_by_expr(self, req):
  487. """
  488. Parameters:
  489. - req
  490. """
  491. pass
  492. def get_num_partitions_by_filter(self, db_name, tbl_name, filter):
  493. """
  494. Parameters:
  495. - db_name
  496. - tbl_name
  497. - filter
  498. """
  499. pass
  500. def get_partitions_by_names(self, db_name, tbl_name, names):
  501. """
  502. Parameters:
  503. - db_name
  504. - tbl_name
  505. - names
  506. """
  507. pass
  508. def alter_partition(self, db_name, tbl_name, new_part):
  509. """
  510. Parameters:
  511. - db_name
  512. - tbl_name
  513. - new_part
  514. """
  515. pass
  516. def alter_partitions(self, db_name, tbl_name, new_parts):
  517. """
  518. Parameters:
  519. - db_name
  520. - tbl_name
  521. - new_parts
  522. """
  523. pass
  524. def alter_partitions_with_environment_context(self, db_name, tbl_name, new_parts, environment_context):
  525. """
  526. Parameters:
  527. - db_name
  528. - tbl_name
  529. - new_parts
  530. - environment_context
  531. """
  532. pass
  533. def alter_partition_with_environment_context(self, db_name, tbl_name, new_part, environment_context):
  534. """
  535. Parameters:
  536. - db_name
  537. - tbl_name
  538. - new_part
  539. - environment_context
  540. """
  541. pass
  542. def rename_partition(self, db_name, tbl_name, part_vals, new_part):
  543. """
  544. Parameters:
  545. - db_name
  546. - tbl_name
  547. - part_vals
  548. - new_part
  549. """
  550. pass
  551. def partition_name_has_valid_characters(self, part_vals, throw_exception):
  552. """
  553. Parameters:
  554. - part_vals
  555. - throw_exception
  556. """
  557. pass
  558. def get_config_value(self, name, defaultValue):
  559. """
  560. Parameters:
  561. - name
  562. - defaultValue
  563. """
  564. pass
  565. def partition_name_to_vals(self, part_name):
  566. """
  567. Parameters:
  568. - part_name
  569. """
  570. pass
  571. def partition_name_to_spec(self, part_name):
  572. """
  573. Parameters:
  574. - part_name
  575. """
  576. pass
  577. def markPartitionForEvent(self, db_name, tbl_name, part_vals, eventType):
  578. """
  579. Parameters:
  580. - db_name
  581. - tbl_name
  582. - part_vals
  583. - eventType
  584. """
  585. pass
  586. def isPartitionMarkedForEvent(self, db_name, tbl_name, part_vals, eventType):
  587. """
  588. Parameters:
  589. - db_name
  590. - tbl_name
  591. - part_vals
  592. - eventType
  593. """
  594. pass
  595. def add_index(self, new_index, index_table):
  596. """
  597. Parameters:
  598. - new_index
  599. - index_table
  600. """
  601. pass
  602. def alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
  603. """
  604. Parameters:
  605. - dbname
  606. - base_tbl_name
  607. - idx_name
  608. - new_idx
  609. """
  610. pass
  611. def drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
  612. """
  613. Parameters:
  614. - db_name
  615. - tbl_name
  616. - index_name
  617. - deleteData
  618. """
  619. pass
  620. def get_index_by_name(self, db_name, tbl_name, index_name):
  621. """
  622. Parameters:
  623. - db_name
  624. - tbl_name
  625. - index_name
  626. """
  627. pass
  628. def get_indexes(self, db_name, tbl_name, max_indexes):
  629. """
  630. Parameters:
  631. - db_name
  632. - tbl_name
  633. - max_indexes
  634. """
  635. pass
  636. def get_index_names(self, db_name, tbl_name, max_indexes):
  637. """
  638. Parameters:
  639. - db_name
  640. - tbl_name
  641. - max_indexes
  642. """
  643. pass
  644. def get_primary_keys(self, request):
  645. """
  646. Parameters:
  647. - request
  648. """
  649. pass
  650. def get_foreign_keys(self, request):
  651. """
  652. Parameters:
  653. - request
  654. """
  655. pass
  656. def update_table_column_statistics(self, stats_obj):
  657. """
  658. Parameters:
  659. - stats_obj
  660. """
  661. pass
  662. def update_partition_column_statistics(self, stats_obj):
  663. """
  664. Parameters:
  665. - stats_obj
  666. """
  667. pass
  668. def get_table_column_statistics(self, db_name, tbl_name, col_name):
  669. """
  670. Parameters:
  671. - db_name
  672. - tbl_name
  673. - col_name
  674. """
  675. pass
  676. def get_partition_column_statistics(self, db_name, tbl_name, part_name, col_name):
  677. """
  678. Parameters:
  679. - db_name
  680. - tbl_name
  681. - part_name
  682. - col_name
  683. """
  684. pass
  685. def get_table_statistics_req(self, request):
  686. """
  687. Parameters:
  688. - request
  689. """
  690. pass
  691. def get_partitions_statistics_req(self, request):
  692. """
  693. Parameters:
  694. - request
  695. """
  696. pass
  697. def get_aggr_stats_for(self, request):
  698. """
  699. Parameters:
  700. - request
  701. """
  702. pass
  703. def set_aggr_stats_for(self, request):
  704. """
  705. Parameters:
  706. - request
  707. """
  708. pass
  709. def delete_partition_column_statistics(self, db_name, tbl_name, part_name, col_name):
  710. """
  711. Parameters:
  712. - db_name
  713. - tbl_name
  714. - part_name
  715. - col_name
  716. """
  717. pass
  718. def delete_table_column_statistics(self, db_name, tbl_name, col_name):
  719. """
  720. Parameters:
  721. - db_name
  722. - tbl_name
  723. - col_name
  724. """
  725. pass
  726. def create_function(self, func):
  727. """
  728. Parameters:
  729. - func
  730. """
  731. pass
  732. def drop_function(self, dbName, funcName):
  733. """
  734. Parameters:
  735. - dbName
  736. - funcName
  737. """
  738. pass
  739. def alter_function(self, dbName, funcName, newFunc):
  740. """
  741. Parameters:
  742. - dbName
  743. - funcName
  744. - newFunc
  745. """
  746. pass
  747. def get_functions(self, dbName, pattern):
  748. """
  749. Parameters:
  750. - dbName
  751. - pattern
  752. """
  753. pass
  754. def get_function(self, dbName, funcName):
  755. """
  756. Parameters:
  757. - dbName
  758. - funcName
  759. """
  760. pass
  761. def get_all_functions(self):
  762. pass
  763. def create_role(self, role):
  764. """
  765. Parameters:
  766. - role
  767. """
  768. pass
  769. def drop_role(self, role_name):
  770. """
  771. Parameters:
  772. - role_name
  773. """
  774. pass
  775. def get_role_names(self):
  776. pass
  777. def grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
  778. """
  779. Parameters:
  780. - role_name
  781. - principal_name
  782. - principal_type
  783. - grantor
  784. - grantorType
  785. - grant_option
  786. """
  787. pass
  788. def revoke_role(self, role_name, principal_name, principal_type):
  789. """
  790. Parameters:
  791. - role_name
  792. - principal_name
  793. - principal_type
  794. """
  795. pass
  796. def list_roles(self, principal_name, principal_type):
  797. """
  798. Parameters:
  799. - principal_name
  800. - principal_type
  801. """
  802. pass
  803. def grant_revoke_role(self, request):
  804. """
  805. Parameters:
  806. - request
  807. """
  808. pass
  809. def get_principals_in_role(self, request):
  810. """
  811. Parameters:
  812. - request
  813. """
  814. pass
  815. def get_role_grants_for_principal(self, request):
  816. """
  817. Parameters:
  818. - request
  819. """
  820. pass
  821. def get_privilege_set(self, hiveObject, user_name, group_names):
  822. """
  823. Parameters:
  824. - hiveObject
  825. - user_name
  826. - group_names
  827. """
  828. pass
  829. def list_privileges(self, principal_name, principal_type, hiveObject):
  830. """
  831. Parameters:
  832. - principal_name
  833. - principal_type
  834. - hiveObject
  835. """
  836. pass
  837. def grant_privileges(self, privileges):
  838. """
  839. Parameters:
  840. - privileges
  841. """
  842. pass
  843. def revoke_privileges(self, privileges):
  844. """
  845. Parameters:
  846. - privileges
  847. """
  848. pass
  849. def grant_revoke_privileges(self, request):
  850. """
  851. Parameters:
  852. - request
  853. """
  854. pass
  855. def set_ugi(self, user_name, group_names):
  856. """
  857. Parameters:
  858. - user_name
  859. - group_names
  860. """
  861. pass
  862. def get_delegation_token(self, token_owner, renewer_kerberos_principal_name):
  863. """
  864. Parameters:
  865. - token_owner
  866. - renewer_kerberos_principal_name
  867. """
  868. pass
  869. def renew_delegation_token(self, token_str_form):
  870. """
  871. Parameters:
  872. - token_str_form
  873. """
  874. pass
  875. def cancel_delegation_token(self, token_str_form):
  876. """
  877. Parameters:
  878. - token_str_form
  879. """
  880. pass
  881. def add_token(self, token_identifier, delegation_token):
  882. """
  883. Parameters:
  884. - token_identifier
  885. - delegation_token
  886. """
  887. pass
  888. def remove_token(self, token_identifier):
  889. """
  890. Parameters:
  891. - token_identifier
  892. """
  893. pass
  894. def get_token(self, token_identifier):
  895. """
  896. Parameters:
  897. - token_identifier
  898. """
  899. pass
  900. def get_all_token_identifiers(self):
  901. pass
  902. def add_master_key(self, key):
  903. """
  904. Parameters:
  905. - key
  906. """
  907. pass
  908. def update_master_key(self, seq_number, key):
  909. """
  910. Parameters:
  911. - seq_number
  912. - key
  913. """
  914. pass
  915. def remove_master_key(self, key_seq):
  916. """
  917. Parameters:
  918. - key_seq
  919. """
  920. pass
  921. def get_master_keys(self):
  922. pass
  923. def get_open_txns(self):
  924. pass
  925. def get_open_txns_info(self):
  926. pass
  927. def open_txns(self, rqst):
  928. """
  929. Parameters:
  930. - rqst
  931. """
  932. pass
  933. def abort_txn(self, rqst):
  934. """
  935. Parameters:
  936. - rqst
  937. """
  938. pass
  939. def abort_txns(self, rqst):
  940. """
  941. Parameters:
  942. - rqst
  943. """
  944. pass
  945. def commit_txn(self, rqst):
  946. """
  947. Parameters:
  948. - rqst
  949. """
  950. pass
  951. def lock(self, rqst):
  952. """
  953. Parameters:
  954. - rqst
  955. """
  956. pass
  957. def check_lock(self, rqst):
  958. """
  959. Parameters:
  960. - rqst
  961. """
  962. pass
  963. def unlock(self, rqst):
  964. """
  965. Parameters:
  966. - rqst
  967. """
  968. pass
  969. def show_locks(self, rqst):
  970. """
  971. Parameters:
  972. - rqst
  973. """
  974. pass
  975. def heartbeat(self, ids):
  976. """
  977. Parameters:
  978. - ids
  979. """
  980. pass
  981. def heartbeat_txn_range(self, txns):
  982. """
  983. Parameters:
  984. - txns
  985. """
  986. pass
  987. def compact(self, rqst):
  988. """
  989. Parameters:
  990. - rqst
  991. """
  992. pass
  993. def show_compact(self, rqst):
  994. """
  995. Parameters:
  996. - rqst
  997. """
  998. pass
  999. def add_dynamic_partitions(self, rqst):
  1000. """
  1001. Parameters:
  1002. - rqst
  1003. """
  1004. pass
  1005. def get_next_notification(self, rqst):
  1006. """
  1007. Parameters:
  1008. - rqst
  1009. """
  1010. pass
  1011. def get_current_notificationEventId(self):
  1012. pass
  1013. def fire_listener_event(self, rqst):
  1014. """
  1015. Parameters:
  1016. - rqst
  1017. """
  1018. pass
  1019. def flushCache(self):
  1020. pass
  1021. def get_file_metadata_by_expr(self, req):
  1022. """
  1023. Parameters:
  1024. - req
  1025. """
  1026. pass
  1027. def get_file_metadata(self, req):
  1028. """
  1029. Parameters:
  1030. - req
  1031. """
  1032. pass
  1033. def put_file_metadata(self, req):
  1034. """
  1035. Parameters:
  1036. - req
  1037. """
  1038. pass
  1039. def clear_file_metadata(self, req):
  1040. """
  1041. Parameters:
  1042. - req
  1043. """
  1044. pass
  1045. def cache_file_metadata(self, req):
  1046. """
  1047. Parameters:
  1048. - req
  1049. """
  1050. pass
  1051. def get_metastore_db_uuid(self):
  1052. pass
  1053. def get_partitions_with_specs(self, request):
  1054. """
  1055. Parameters:
  1056. - request
  1057. """
  1058. pass
  1059. class Client(fb303.FacebookService.Client, Iface):
  1060. """
  1061. This interface is live.
  1062. """
  1063. def __init__(self, iprot, oprot=None):
  1064. fb303.FacebookService.Client.__init__(self, iprot, oprot)
  1065. def getMetaConf(self, key):
  1066. """
  1067. Parameters:
  1068. - key
  1069. """
  1070. self.send_getMetaConf(key)
  1071. return self.recv_getMetaConf()
  1072. def send_getMetaConf(self, key):
  1073. self._oprot.writeMessageBegin('getMetaConf', TMessageType.CALL, self._seqid)
  1074. args = getMetaConf_args()
  1075. args.key = key
  1076. args.write(self._oprot)
  1077. self._oprot.writeMessageEnd()
  1078. self._oprot.trans.flush()
  1079. def recv_getMetaConf(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 = getMetaConf_result()
  1088. result.read(iprot)
  1089. iprot.readMessageEnd()
  1090. if result.success is not None:
  1091. return result.success
  1092. if result.o1 is not None:
  1093. raise result.o1
  1094. raise TApplicationException(TApplicationException.MISSING_RESULT, "getMetaConf failed: unknown result")
  1095. def setMetaConf(self, key, value):
  1096. """
  1097. Parameters:
  1098. - key
  1099. - value
  1100. """
  1101. self.send_setMetaConf(key, value)
  1102. self.recv_setMetaConf()
  1103. def send_setMetaConf(self, key, value):
  1104. self._oprot.writeMessageBegin('setMetaConf', TMessageType.CALL, self._seqid)
  1105. args = setMetaConf_args()
  1106. args.key = key
  1107. args.value = value
  1108. args.write(self._oprot)
  1109. self._oprot.writeMessageEnd()
  1110. self._oprot.trans.flush()
  1111. def recv_setMetaConf(self):
  1112. iprot = self._iprot
  1113. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1114. if mtype == TMessageType.EXCEPTION:
  1115. x = TApplicationException()
  1116. x.read(iprot)
  1117. iprot.readMessageEnd()
  1118. raise x
  1119. result = setMetaConf_result()
  1120. result.read(iprot)
  1121. iprot.readMessageEnd()
  1122. if result.o1 is not None:
  1123. raise result.o1
  1124. return
  1125. def create_database(self, database):
  1126. """
  1127. Parameters:
  1128. - database
  1129. """
  1130. self.send_create_database(database)
  1131. self.recv_create_database()
  1132. def send_create_database(self, database):
  1133. self._oprot.writeMessageBegin('create_database', TMessageType.CALL, self._seqid)
  1134. args = create_database_args()
  1135. args.database = database
  1136. args.write(self._oprot)
  1137. self._oprot.writeMessageEnd()
  1138. self._oprot.trans.flush()
  1139. def recv_create_database(self):
  1140. iprot = self._iprot
  1141. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1142. if mtype == TMessageType.EXCEPTION:
  1143. x = TApplicationException()
  1144. x.read(iprot)
  1145. iprot.readMessageEnd()
  1146. raise x
  1147. result = create_database_result()
  1148. result.read(iprot)
  1149. iprot.readMessageEnd()
  1150. if result.o1 is not None:
  1151. raise result.o1
  1152. if result.o2 is not None:
  1153. raise result.o2
  1154. if result.o3 is not None:
  1155. raise result.o3
  1156. return
  1157. def get_database(self, name):
  1158. """
  1159. Parameters:
  1160. - name
  1161. """
  1162. self.send_get_database(name)
  1163. return self.recv_get_database()
  1164. def send_get_database(self, name):
  1165. self._oprot.writeMessageBegin('get_database', TMessageType.CALL, self._seqid)
  1166. args = get_database_args()
  1167. args.name = name
  1168. args.write(self._oprot)
  1169. self._oprot.writeMessageEnd()
  1170. self._oprot.trans.flush()
  1171. def recv_get_database(self):
  1172. iprot = self._iprot
  1173. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1174. if mtype == TMessageType.EXCEPTION:
  1175. x = TApplicationException()
  1176. x.read(iprot)
  1177. iprot.readMessageEnd()
  1178. raise x
  1179. result = get_database_result()
  1180. result.read(iprot)
  1181. iprot.readMessageEnd()
  1182. if result.success is not None:
  1183. return result.success
  1184. if result.o1 is not None:
  1185. raise result.o1
  1186. if result.o2 is not None:
  1187. raise result.o2
  1188. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result")
  1189. def drop_database(self, name, deleteData, cascade):
  1190. """
  1191. Parameters:
  1192. - name
  1193. - deleteData
  1194. - cascade
  1195. """
  1196. self.send_drop_database(name, deleteData, cascade)
  1197. self.recv_drop_database()
  1198. def send_drop_database(self, name, deleteData, cascade):
  1199. self._oprot.writeMessageBegin('drop_database', TMessageType.CALL, self._seqid)
  1200. args = drop_database_args()
  1201. args.name = name
  1202. args.deleteData = deleteData
  1203. args.cascade = cascade
  1204. args.write(self._oprot)
  1205. self._oprot.writeMessageEnd()
  1206. self._oprot.trans.flush()
  1207. def recv_drop_database(self):
  1208. iprot = self._iprot
  1209. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1210. if mtype == TMessageType.EXCEPTION:
  1211. x = TApplicationException()
  1212. x.read(iprot)
  1213. iprot.readMessageEnd()
  1214. raise x
  1215. result = drop_database_result()
  1216. result.read(iprot)
  1217. iprot.readMessageEnd()
  1218. if result.o1 is not None:
  1219. raise result.o1
  1220. if result.o2 is not None:
  1221. raise result.o2
  1222. if result.o3 is not None:
  1223. raise result.o3
  1224. return
  1225. def get_databases(self, pattern):
  1226. """
  1227. Parameters:
  1228. - pattern
  1229. """
  1230. self.send_get_databases(pattern)
  1231. return self.recv_get_databases()
  1232. def send_get_databases(self, pattern):
  1233. self._oprot.writeMessageBegin('get_databases', TMessageType.CALL, self._seqid)
  1234. args = get_databases_args()
  1235. args.pattern = pattern
  1236. args.write(self._oprot)
  1237. self._oprot.writeMessageEnd()
  1238. self._oprot.trans.flush()
  1239. def recv_get_databases(self):
  1240. iprot = self._iprot
  1241. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1242. if mtype == TMessageType.EXCEPTION:
  1243. x = TApplicationException()
  1244. x.read(iprot)
  1245. iprot.readMessageEnd()
  1246. raise x
  1247. result = get_databases_result()
  1248. result.read(iprot)
  1249. iprot.readMessageEnd()
  1250. if result.success is not None:
  1251. return result.success
  1252. if result.o1 is not None:
  1253. raise result.o1
  1254. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result")
  1255. def get_all_databases(self):
  1256. self.send_get_all_databases()
  1257. return self.recv_get_all_databases()
  1258. def send_get_all_databases(self):
  1259. self._oprot.writeMessageBegin('get_all_databases', TMessageType.CALL, self._seqid)
  1260. args = get_all_databases_args()
  1261. args.write(self._oprot)
  1262. self._oprot.writeMessageEnd()
  1263. self._oprot.trans.flush()
  1264. def recv_get_all_databases(self):
  1265. iprot = self._iprot
  1266. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1267. if mtype == TMessageType.EXCEPTION:
  1268. x = TApplicationException()
  1269. x.read(iprot)
  1270. iprot.readMessageEnd()
  1271. raise x
  1272. result = get_all_databases_result()
  1273. result.read(iprot)
  1274. iprot.readMessageEnd()
  1275. if result.success is not None:
  1276. return result.success
  1277. if result.o1 is not None:
  1278. raise result.o1
  1279. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result")
  1280. def alter_database(self, dbname, db):
  1281. """
  1282. Parameters:
  1283. - dbname
  1284. - db
  1285. """
  1286. self.send_alter_database(dbname, db)
  1287. self.recv_alter_database()
  1288. def send_alter_database(self, dbname, db):
  1289. self._oprot.writeMessageBegin('alter_database', TMessageType.CALL, self._seqid)
  1290. args = alter_database_args()
  1291. args.dbname = dbname
  1292. args.db = db
  1293. args.write(self._oprot)
  1294. self._oprot.writeMessageEnd()
  1295. self._oprot.trans.flush()
  1296. def recv_alter_database(self):
  1297. iprot = self._iprot
  1298. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1299. if mtype == TMessageType.EXCEPTION:
  1300. x = TApplicationException()
  1301. x.read(iprot)
  1302. iprot.readMessageEnd()
  1303. raise x
  1304. result = alter_database_result()
  1305. result.read(iprot)
  1306. iprot.readMessageEnd()
  1307. if result.o1 is not None:
  1308. raise result.o1
  1309. if result.o2 is not None:
  1310. raise result.o2
  1311. return
  1312. def get_type(self, name):
  1313. """
  1314. Parameters:
  1315. - name
  1316. """
  1317. self.send_get_type(name)
  1318. return self.recv_get_type()
  1319. def send_get_type(self, name):
  1320. self._oprot.writeMessageBegin('get_type', TMessageType.CALL, self._seqid)
  1321. args = get_type_args()
  1322. args.name = name
  1323. args.write(self._oprot)
  1324. self._oprot.writeMessageEnd()
  1325. self._oprot.trans.flush()
  1326. def recv_get_type(self):
  1327. iprot = self._iprot
  1328. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1329. if mtype == TMessageType.EXCEPTION:
  1330. x = TApplicationException()
  1331. x.read(iprot)
  1332. iprot.readMessageEnd()
  1333. raise x
  1334. result = get_type_result()
  1335. result.read(iprot)
  1336. iprot.readMessageEnd()
  1337. if result.success is not None:
  1338. return result.success
  1339. if result.o1 is not None:
  1340. raise result.o1
  1341. if result.o2 is not None:
  1342. raise result.o2
  1343. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type failed: unknown result")
  1344. def create_type(self, type):
  1345. """
  1346. Parameters:
  1347. - type
  1348. """
  1349. self.send_create_type(type)
  1350. return self.recv_create_type()
  1351. def send_create_type(self, type):
  1352. self._oprot.writeMessageBegin('create_type', TMessageType.CALL, self._seqid)
  1353. args = create_type_args()
  1354. args.type = type
  1355. args.write(self._oprot)
  1356. self._oprot.writeMessageEnd()
  1357. self._oprot.trans.flush()
  1358. def recv_create_type(self):
  1359. iprot = self._iprot
  1360. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1361. if mtype == TMessageType.EXCEPTION:
  1362. x = TApplicationException()
  1363. x.read(iprot)
  1364. iprot.readMessageEnd()
  1365. raise x
  1366. result = create_type_result()
  1367. result.read(iprot)
  1368. iprot.readMessageEnd()
  1369. if result.success is not None:
  1370. return result.success
  1371. if result.o1 is not None:
  1372. raise result.o1
  1373. if result.o2 is not None:
  1374. raise result.o2
  1375. if result.o3 is not None:
  1376. raise result.o3
  1377. raise TApplicationException(TApplicationException.MISSING_RESULT, "create_type failed: unknown result")
  1378. def drop_type(self, type):
  1379. """
  1380. Parameters:
  1381. - type
  1382. """
  1383. self.send_drop_type(type)
  1384. return self.recv_drop_type()
  1385. def send_drop_type(self, type):
  1386. self._oprot.writeMessageBegin('drop_type', TMessageType.CALL, self._seqid)
  1387. args = drop_type_args()
  1388. args.type = type
  1389. args.write(self._oprot)
  1390. self._oprot.writeMessageEnd()
  1391. self._oprot.trans.flush()
  1392. def recv_drop_type(self):
  1393. iprot = self._iprot
  1394. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1395. if mtype == TMessageType.EXCEPTION:
  1396. x = TApplicationException()
  1397. x.read(iprot)
  1398. iprot.readMessageEnd()
  1399. raise x
  1400. result = drop_type_result()
  1401. result.read(iprot)
  1402. iprot.readMessageEnd()
  1403. if result.success is not None:
  1404. return result.success
  1405. if result.o1 is not None:
  1406. raise result.o1
  1407. if result.o2 is not None:
  1408. raise result.o2
  1409. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_type failed: unknown result")
  1410. def get_type_all(self, name):
  1411. """
  1412. Parameters:
  1413. - name
  1414. """
  1415. self.send_get_type_all(name)
  1416. return self.recv_get_type_all()
  1417. def send_get_type_all(self, name):
  1418. self._oprot.writeMessageBegin('get_type_all', TMessageType.CALL, self._seqid)
  1419. args = get_type_all_args()
  1420. args.name = name
  1421. args.write(self._oprot)
  1422. self._oprot.writeMessageEnd()
  1423. self._oprot.trans.flush()
  1424. def recv_get_type_all(self):
  1425. iprot = self._iprot
  1426. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1427. if mtype == TMessageType.EXCEPTION:
  1428. x = TApplicationException()
  1429. x.read(iprot)
  1430. iprot.readMessageEnd()
  1431. raise x
  1432. result = get_type_all_result()
  1433. result.read(iprot)
  1434. iprot.readMessageEnd()
  1435. if result.success is not None:
  1436. return result.success
  1437. if result.o2 is not None:
  1438. raise result.o2
  1439. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result")
  1440. def get_fields(self, db_name, table_name):
  1441. """
  1442. Parameters:
  1443. - db_name
  1444. - table_name
  1445. """
  1446. self.send_get_fields(db_name, table_name)
  1447. return self.recv_get_fields()
  1448. def send_get_fields(self, db_name, table_name):
  1449. self._oprot.writeMessageBegin('get_fields', TMessageType.CALL, self._seqid)
  1450. args = get_fields_args()
  1451. args.db_name = db_name
  1452. args.table_name = table_name
  1453. args.write(self._oprot)
  1454. self._oprot.writeMessageEnd()
  1455. self._oprot.trans.flush()
  1456. def recv_get_fields(self):
  1457. iprot = self._iprot
  1458. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1459. if mtype == TMessageType.EXCEPTION:
  1460. x = TApplicationException()
  1461. x.read(iprot)
  1462. iprot.readMessageEnd()
  1463. raise x
  1464. result = get_fields_result()
  1465. result.read(iprot)
  1466. iprot.readMessageEnd()
  1467. if result.success is not None:
  1468. return result.success
  1469. if result.o1 is not None:
  1470. raise result.o1
  1471. if result.o2 is not None:
  1472. raise result.o2
  1473. if result.o3 is not None:
  1474. raise result.o3
  1475. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields failed: unknown result")
  1476. def get_fields_with_environment_context(self, db_name, table_name, environment_context):
  1477. """
  1478. Parameters:
  1479. - db_name
  1480. - table_name
  1481. - environment_context
  1482. """
  1483. self.send_get_fields_with_environment_context(db_name, table_name, environment_context)
  1484. return self.recv_get_fields_with_environment_context()
  1485. def send_get_fields_with_environment_context(self, db_name, table_name, environment_context):
  1486. self._oprot.writeMessageBegin('get_fields_with_environment_context', TMessageType.CALL, self._seqid)
  1487. args = get_fields_with_environment_context_args()
  1488. args.db_name = db_name
  1489. args.table_name = table_name
  1490. args.environment_context = environment_context
  1491. args.write(self._oprot)
  1492. self._oprot.writeMessageEnd()
  1493. self._oprot.trans.flush()
  1494. def recv_get_fields_with_environment_context(self):
  1495. iprot = self._iprot
  1496. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1497. if mtype == TMessageType.EXCEPTION:
  1498. x = TApplicationException()
  1499. x.read(iprot)
  1500. iprot.readMessageEnd()
  1501. raise x
  1502. result = get_fields_with_environment_context_result()
  1503. result.read(iprot)
  1504. iprot.readMessageEnd()
  1505. if result.success is not None:
  1506. return result.success
  1507. if result.o1 is not None:
  1508. raise result.o1
  1509. if result.o2 is not None:
  1510. raise result.o2
  1511. if result.o3 is not None:
  1512. raise result.o3
  1513. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields_with_environment_context failed: unknown result")
  1514. def get_schema(self, db_name, table_name):
  1515. """
  1516. Parameters:
  1517. - db_name
  1518. - table_name
  1519. """
  1520. self.send_get_schema(db_name, table_name)
  1521. return self.recv_get_schema()
  1522. def send_get_schema(self, db_name, table_name):
  1523. self._oprot.writeMessageBegin('get_schema', TMessageType.CALL, self._seqid)
  1524. args = get_schema_args()
  1525. args.db_name = db_name
  1526. args.table_name = table_name
  1527. args.write(self._oprot)
  1528. self._oprot.writeMessageEnd()
  1529. self._oprot.trans.flush()
  1530. def recv_get_schema(self):
  1531. iprot = self._iprot
  1532. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1533. if mtype == TMessageType.EXCEPTION:
  1534. x = TApplicationException()
  1535. x.read(iprot)
  1536. iprot.readMessageEnd()
  1537. raise x
  1538. result = get_schema_result()
  1539. result.read(iprot)
  1540. iprot.readMessageEnd()
  1541. if result.success is not None:
  1542. return result.success
  1543. if result.o1 is not None:
  1544. raise result.o1
  1545. if result.o2 is not None:
  1546. raise result.o2
  1547. if result.o3 is not None:
  1548. raise result.o3
  1549. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema failed: unknown result")
  1550. def get_schema_with_environment_context(self, db_name, table_name, environment_context):
  1551. """
  1552. Parameters:
  1553. - db_name
  1554. - table_name
  1555. - environment_context
  1556. """
  1557. self.send_get_schema_with_environment_context(db_name, table_name, environment_context)
  1558. return self.recv_get_schema_with_environment_context()
  1559. def send_get_schema_with_environment_context(self, db_name, table_name, environment_context):
  1560. self._oprot.writeMessageBegin('get_schema_with_environment_context', TMessageType.CALL, self._seqid)
  1561. args = get_schema_with_environment_context_args()
  1562. args.db_name = db_name
  1563. args.table_name = table_name
  1564. args.environment_context = environment_context
  1565. args.write(self._oprot)
  1566. self._oprot.writeMessageEnd()
  1567. self._oprot.trans.flush()
  1568. def recv_get_schema_with_environment_context(self):
  1569. iprot = self._iprot
  1570. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1571. if mtype == TMessageType.EXCEPTION:
  1572. x = TApplicationException()
  1573. x.read(iprot)
  1574. iprot.readMessageEnd()
  1575. raise x
  1576. result = get_schema_with_environment_context_result()
  1577. result.read(iprot)
  1578. iprot.readMessageEnd()
  1579. if result.success is not None:
  1580. return result.success
  1581. if result.o1 is not None:
  1582. raise result.o1
  1583. if result.o2 is not None:
  1584. raise result.o2
  1585. if result.o3 is not None:
  1586. raise result.o3
  1587. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema_with_environment_context failed: unknown result")
  1588. def create_table(self, tbl):
  1589. """
  1590. Parameters:
  1591. - tbl
  1592. """
  1593. self.send_create_table(tbl)
  1594. self.recv_create_table()
  1595. def send_create_table(self, tbl):
  1596. self._oprot.writeMessageBegin('create_table', TMessageType.CALL, self._seqid)
  1597. args = create_table_args()
  1598. args.tbl = tbl
  1599. args.write(self._oprot)
  1600. self._oprot.writeMessageEnd()
  1601. self._oprot.trans.flush()
  1602. def recv_create_table(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 = create_table_result()
  1611. result.read(iprot)
  1612. iprot.readMessageEnd()
  1613. if result.o1 is not None:
  1614. raise result.o1
  1615. if result.o2 is not None:
  1616. raise result.o2
  1617. if result.o3 is not None:
  1618. raise result.o3
  1619. if result.o4 is not None:
  1620. raise result.o4
  1621. return
  1622. def create_table_with_environment_context(self, tbl, environment_context):
  1623. """
  1624. Parameters:
  1625. - tbl
  1626. - environment_context
  1627. """
  1628. self.send_create_table_with_environment_context(tbl, environment_context)
  1629. self.recv_create_table_with_environment_context()
  1630. def send_create_table_with_environment_context(self, tbl, environment_context):
  1631. self._oprot.writeMessageBegin('create_table_with_environment_context', TMessageType.CALL, self._seqid)
  1632. args = create_table_with_environment_context_args()
  1633. args.tbl = tbl
  1634. args.environment_context = environment_context
  1635. args.write(self._oprot)
  1636. self._oprot.writeMessageEnd()
  1637. self._oprot.trans.flush()
  1638. def recv_create_table_with_environment_context(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 = create_table_with_environment_context_result()
  1647. result.read(iprot)
  1648. iprot.readMessageEnd()
  1649. if result.o1 is not None:
  1650. raise result.o1
  1651. if result.o2 is not None:
  1652. raise result.o2
  1653. if result.o3 is not None:
  1654. raise result.o3
  1655. if result.o4 is not None:
  1656. raise result.o4
  1657. return
  1658. def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys):
  1659. """
  1660. Parameters:
  1661. - tbl
  1662. - primaryKeys
  1663. - foreignKeys
  1664. """
  1665. self.send_create_table_with_constraints(tbl, primaryKeys, foreignKeys)
  1666. self.recv_create_table_with_constraints()
  1667. def send_create_table_with_constraints(self, tbl, primaryKeys, foreignKeys):
  1668. self._oprot.writeMessageBegin('create_table_with_constraints', TMessageType.CALL, self._seqid)
  1669. args = create_table_with_constraints_args()
  1670. args.tbl = tbl
  1671. args.primaryKeys = primaryKeys
  1672. args.foreignKeys = foreignKeys
  1673. args.write(self._oprot)
  1674. self._oprot.writeMessageEnd()
  1675. self._oprot.trans.flush()
  1676. def recv_create_table_with_constraints(self):
  1677. iprot = self._iprot
  1678. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1679. if mtype == TMessageType.EXCEPTION:
  1680. x = TApplicationException()
  1681. x.read(iprot)
  1682. iprot.readMessageEnd()
  1683. raise x
  1684. result = create_table_with_constraints_result()
  1685. result.read(iprot)
  1686. iprot.readMessageEnd()
  1687. if result.o1 is not None:
  1688. raise result.o1
  1689. if result.o2 is not None:
  1690. raise result.o2
  1691. if result.o3 is not None:
  1692. raise result.o3
  1693. if result.o4 is not None:
  1694. raise result.o4
  1695. return
  1696. def drop_constraint(self, req):
  1697. """
  1698. Parameters:
  1699. - req
  1700. """
  1701. self.send_drop_constraint(req)
  1702. self.recv_drop_constraint()
  1703. def send_drop_constraint(self, req):
  1704. self._oprot.writeMessageBegin('drop_constraint', TMessageType.CALL, self._seqid)
  1705. args = drop_constraint_args()
  1706. args.req = req
  1707. args.write(self._oprot)
  1708. self._oprot.writeMessageEnd()
  1709. self._oprot.trans.flush()
  1710. def recv_drop_constraint(self):
  1711. iprot = self._iprot
  1712. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1713. if mtype == TMessageType.EXCEPTION:
  1714. x = TApplicationException()
  1715. x.read(iprot)
  1716. iprot.readMessageEnd()
  1717. raise x
  1718. result = drop_constraint_result()
  1719. result.read(iprot)
  1720. iprot.readMessageEnd()
  1721. if result.o1 is not None:
  1722. raise result.o1
  1723. if result.o3 is not None:
  1724. raise result.o3
  1725. return
  1726. def add_primary_key(self, req):
  1727. """
  1728. Parameters:
  1729. - req
  1730. """
  1731. self.send_add_primary_key(req)
  1732. self.recv_add_primary_key()
  1733. def send_add_primary_key(self, req):
  1734. self._oprot.writeMessageBegin('add_primary_key', TMessageType.CALL, self._seqid)
  1735. args = add_primary_key_args()
  1736. args.req = req
  1737. args.write(self._oprot)
  1738. self._oprot.writeMessageEnd()
  1739. self._oprot.trans.flush()
  1740. def recv_add_primary_key(self):
  1741. iprot = self._iprot
  1742. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1743. if mtype == TMessageType.EXCEPTION:
  1744. x = TApplicationException()
  1745. x.read(iprot)
  1746. iprot.readMessageEnd()
  1747. raise x
  1748. result = add_primary_key_result()
  1749. result.read(iprot)
  1750. iprot.readMessageEnd()
  1751. if result.o1 is not None:
  1752. raise result.o1
  1753. if result.o2 is not None:
  1754. raise result.o2
  1755. return
  1756. def add_foreign_key(self, req):
  1757. """
  1758. Parameters:
  1759. - req
  1760. """
  1761. self.send_add_foreign_key(req)
  1762. self.recv_add_foreign_key()
  1763. def send_add_foreign_key(self, req):
  1764. self._oprot.writeMessageBegin('add_foreign_key', TMessageType.CALL, self._seqid)
  1765. args = add_foreign_key_args()
  1766. args.req = req
  1767. args.write(self._oprot)
  1768. self._oprot.writeMessageEnd()
  1769. self._oprot.trans.flush()
  1770. def recv_add_foreign_key(self):
  1771. iprot = self._iprot
  1772. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1773. if mtype == TMessageType.EXCEPTION:
  1774. x = TApplicationException()
  1775. x.read(iprot)
  1776. iprot.readMessageEnd()
  1777. raise x
  1778. result = add_foreign_key_result()
  1779. result.read(iprot)
  1780. iprot.readMessageEnd()
  1781. if result.o1 is not None:
  1782. raise result.o1
  1783. if result.o2 is not None:
  1784. raise result.o2
  1785. return
  1786. def drop_table(self, dbname, name, deleteData):
  1787. """
  1788. Parameters:
  1789. - dbname
  1790. - name
  1791. - deleteData
  1792. """
  1793. self.send_drop_table(dbname, name, deleteData)
  1794. self.recv_drop_table()
  1795. def send_drop_table(self, dbname, name, deleteData):
  1796. self._oprot.writeMessageBegin('drop_table', TMessageType.CALL, self._seqid)
  1797. args = drop_table_args()
  1798. args.dbname = dbname
  1799. args.name = name
  1800. args.deleteData = deleteData
  1801. args.write(self._oprot)
  1802. self._oprot.writeMessageEnd()
  1803. self._oprot.trans.flush()
  1804. def recv_drop_table(self):
  1805. iprot = self._iprot
  1806. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1807. if mtype == TMessageType.EXCEPTION:
  1808. x = TApplicationException()
  1809. x.read(iprot)
  1810. iprot.readMessageEnd()
  1811. raise x
  1812. result = drop_table_result()
  1813. result.read(iprot)
  1814. iprot.readMessageEnd()
  1815. if result.o1 is not None:
  1816. raise result.o1
  1817. if result.o3 is not None:
  1818. raise result.o3
  1819. return
  1820. def drop_table_with_environment_context(self, dbname, name, deleteData, environment_context):
  1821. """
  1822. Parameters:
  1823. - dbname
  1824. - name
  1825. - deleteData
  1826. - environment_context
  1827. """
  1828. self.send_drop_table_with_environment_context(dbname, name, deleteData, environment_context)
  1829. self.recv_drop_table_with_environment_context()
  1830. def send_drop_table_with_environment_context(self, dbname, name, deleteData, environment_context):
  1831. self._oprot.writeMessageBegin('drop_table_with_environment_context', TMessageType.CALL, self._seqid)
  1832. args = drop_table_with_environment_context_args()
  1833. args.dbname = dbname
  1834. args.name = name
  1835. args.deleteData = deleteData
  1836. args.environment_context = environment_context
  1837. args.write(self._oprot)
  1838. self._oprot.writeMessageEnd()
  1839. self._oprot.trans.flush()
  1840. def recv_drop_table_with_environment_context(self):
  1841. iprot = self._iprot
  1842. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1843. if mtype == TMessageType.EXCEPTION:
  1844. x = TApplicationException()
  1845. x.read(iprot)
  1846. iprot.readMessageEnd()
  1847. raise x
  1848. result = drop_table_with_environment_context_result()
  1849. result.read(iprot)
  1850. iprot.readMessageEnd()
  1851. if result.o1 is not None:
  1852. raise result.o1
  1853. if result.o3 is not None:
  1854. raise result.o3
  1855. return
  1856. def get_tables(self, db_name, pattern):
  1857. """
  1858. Parameters:
  1859. - db_name
  1860. - pattern
  1861. """
  1862. self.send_get_tables(db_name, pattern)
  1863. return self.recv_get_tables()
  1864. def send_get_tables(self, db_name, pattern):
  1865. self._oprot.writeMessageBegin('get_tables', TMessageType.CALL, self._seqid)
  1866. args = get_tables_args()
  1867. args.db_name = db_name
  1868. args.pattern = pattern
  1869. args.write(self._oprot)
  1870. self._oprot.writeMessageEnd()
  1871. self._oprot.trans.flush()
  1872. def recv_get_tables(self):
  1873. iprot = self._iprot
  1874. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1875. if mtype == TMessageType.EXCEPTION:
  1876. x = TApplicationException()
  1877. x.read(iprot)
  1878. iprot.readMessageEnd()
  1879. raise x
  1880. result = get_tables_result()
  1881. result.read(iprot)
  1882. iprot.readMessageEnd()
  1883. if result.success is not None:
  1884. return result.success
  1885. if result.o1 is not None:
  1886. raise result.o1
  1887. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result")
  1888. def get_table_meta(self, db_patterns, tbl_patterns, tbl_types):
  1889. """
  1890. Parameters:
  1891. - db_patterns
  1892. - tbl_patterns
  1893. - tbl_types
  1894. """
  1895. self.send_get_table_meta(db_patterns, tbl_patterns, tbl_types)
  1896. return self.recv_get_table_meta()
  1897. def send_get_table_meta(self, db_patterns, tbl_patterns, tbl_types):
  1898. self._oprot.writeMessageBegin('get_table_meta', TMessageType.CALL, self._seqid)
  1899. args = get_table_meta_args()
  1900. args.db_patterns = db_patterns
  1901. args.tbl_patterns = tbl_patterns
  1902. args.tbl_types = tbl_types
  1903. args.write(self._oprot)
  1904. self._oprot.writeMessageEnd()
  1905. self._oprot.trans.flush()
  1906. def recv_get_table_meta(self):
  1907. iprot = self._iprot
  1908. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1909. if mtype == TMessageType.EXCEPTION:
  1910. x = TApplicationException()
  1911. x.read(iprot)
  1912. iprot.readMessageEnd()
  1913. raise x
  1914. result = get_table_meta_result()
  1915. result.read(iprot)
  1916. iprot.readMessageEnd()
  1917. if result.success is not None:
  1918. return result.success
  1919. if result.o1 is not None:
  1920. raise result.o1
  1921. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_meta failed: unknown result")
  1922. def get_all_tables(self, db_name):
  1923. """
  1924. Parameters:
  1925. - db_name
  1926. """
  1927. self.send_get_all_tables(db_name)
  1928. return self.recv_get_all_tables()
  1929. def send_get_all_tables(self, db_name):
  1930. self._oprot.writeMessageBegin('get_all_tables', TMessageType.CALL, self._seqid)
  1931. args = get_all_tables_args()
  1932. args.db_name = db_name
  1933. args.write(self._oprot)
  1934. self._oprot.writeMessageEnd()
  1935. self._oprot.trans.flush()
  1936. def recv_get_all_tables(self):
  1937. iprot = self._iprot
  1938. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1939. if mtype == TMessageType.EXCEPTION:
  1940. x = TApplicationException()
  1941. x.read(iprot)
  1942. iprot.readMessageEnd()
  1943. raise x
  1944. result = get_all_tables_result()
  1945. result.read(iprot)
  1946. iprot.readMessageEnd()
  1947. if result.success is not None:
  1948. return result.success
  1949. if result.o1 is not None:
  1950. raise result.o1
  1951. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result")
  1952. def get_table(self, dbname, tbl_name):
  1953. """
  1954. Parameters:
  1955. - dbname
  1956. - tbl_name
  1957. """
  1958. self.send_get_table(dbname, tbl_name)
  1959. return self.recv_get_table()
  1960. def send_get_table(self, dbname, tbl_name):
  1961. self._oprot.writeMessageBegin('get_table', TMessageType.CALL, self._seqid)
  1962. args = get_table_args()
  1963. args.dbname = dbname
  1964. args.tbl_name = tbl_name
  1965. args.write(self._oprot)
  1966. self._oprot.writeMessageEnd()
  1967. self._oprot.trans.flush()
  1968. def recv_get_table(self):
  1969. iprot = self._iprot
  1970. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1971. if mtype == TMessageType.EXCEPTION:
  1972. x = TApplicationException()
  1973. x.read(iprot)
  1974. iprot.readMessageEnd()
  1975. raise x
  1976. result = get_table_result()
  1977. result.read(iprot)
  1978. iprot.readMessageEnd()
  1979. if result.success is not None:
  1980. return result.success
  1981. if result.o1 is not None:
  1982. raise result.o1
  1983. if result.o2 is not None:
  1984. raise result.o2
  1985. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table failed: unknown result")
  1986. def get_table_objects_by_name(self, dbname, tbl_names):
  1987. """
  1988. Parameters:
  1989. - dbname
  1990. - tbl_names
  1991. """
  1992. self.send_get_table_objects_by_name(dbname, tbl_names)
  1993. return self.recv_get_table_objects_by_name()
  1994. def send_get_table_objects_by_name(self, dbname, tbl_names):
  1995. self._oprot.writeMessageBegin('get_table_objects_by_name', TMessageType.CALL, self._seqid)
  1996. args = get_table_objects_by_name_args()
  1997. args.dbname = dbname
  1998. args.tbl_names = tbl_names
  1999. args.write(self._oprot)
  2000. self._oprot.writeMessageEnd()
  2001. self._oprot.trans.flush()
  2002. def recv_get_table_objects_by_name(self):
  2003. iprot = self._iprot
  2004. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2005. if mtype == TMessageType.EXCEPTION:
  2006. x = TApplicationException()
  2007. x.read(iprot)
  2008. iprot.readMessageEnd()
  2009. raise x
  2010. result = get_table_objects_by_name_result()
  2011. result.read(iprot)
  2012. iprot.readMessageEnd()
  2013. if result.success is not None:
  2014. return result.success
  2015. if result.o1 is not None:
  2016. raise result.o1
  2017. if result.o2 is not None:
  2018. raise result.o2
  2019. if result.o3 is not None:
  2020. raise result.o3
  2021. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_objects_by_name failed: unknown result")
  2022. def get_table_names_by_filter(self, dbname, filter, max_tables):
  2023. """
  2024. Parameters:
  2025. - dbname
  2026. - filter
  2027. - max_tables
  2028. """
  2029. self.send_get_table_names_by_filter(dbname, filter, max_tables)
  2030. return self.recv_get_table_names_by_filter()
  2031. def send_get_table_names_by_filter(self, dbname, filter, max_tables):
  2032. self._oprot.writeMessageBegin('get_table_names_by_filter', TMessageType.CALL, self._seqid)
  2033. args = get_table_names_by_filter_args()
  2034. args.dbname = dbname
  2035. args.filter = filter
  2036. args.max_tables = max_tables
  2037. args.write(self._oprot)
  2038. self._oprot.writeMessageEnd()
  2039. self._oprot.trans.flush()
  2040. def recv_get_table_names_by_filter(self):
  2041. iprot = self._iprot
  2042. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2043. if mtype == TMessageType.EXCEPTION:
  2044. x = TApplicationException()
  2045. x.read(iprot)
  2046. iprot.readMessageEnd()
  2047. raise x
  2048. result = get_table_names_by_filter_result()
  2049. result.read(iprot)
  2050. iprot.readMessageEnd()
  2051. if result.success is not None:
  2052. return result.success
  2053. if result.o1 is not None:
  2054. raise result.o1
  2055. if result.o2 is not None:
  2056. raise result.o2
  2057. if result.o3 is not None:
  2058. raise result.o3
  2059. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_names_by_filter failed: unknown result")
  2060. def alter_table(self, dbname, tbl_name, new_tbl):
  2061. """
  2062. Parameters:
  2063. - dbname
  2064. - tbl_name
  2065. - new_tbl
  2066. """
  2067. self.send_alter_table(dbname, tbl_name, new_tbl)
  2068. self.recv_alter_table()
  2069. def send_alter_table(self, dbname, tbl_name, new_tbl):
  2070. self._oprot.writeMessageBegin('alter_table', TMessageType.CALL, self._seqid)
  2071. args = alter_table_args()
  2072. args.dbname = dbname
  2073. args.tbl_name = tbl_name
  2074. args.new_tbl = new_tbl
  2075. args.write(self._oprot)
  2076. self._oprot.writeMessageEnd()
  2077. self._oprot.trans.flush()
  2078. def recv_alter_table(self):
  2079. iprot = self._iprot
  2080. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2081. if mtype == TMessageType.EXCEPTION:
  2082. x = TApplicationException()
  2083. x.read(iprot)
  2084. iprot.readMessageEnd()
  2085. raise x
  2086. result = alter_table_result()
  2087. result.read(iprot)
  2088. iprot.readMessageEnd()
  2089. if result.o1 is not None:
  2090. raise result.o1
  2091. if result.o2 is not None:
  2092. raise result.o2
  2093. return
  2094. def alter_table_with_environment_context(self, dbname, tbl_name, new_tbl, environment_context):
  2095. """
  2096. Parameters:
  2097. - dbname
  2098. - tbl_name
  2099. - new_tbl
  2100. - environment_context
  2101. """
  2102. self.send_alter_table_with_environment_context(dbname, tbl_name, new_tbl, environment_context)
  2103. self.recv_alter_table_with_environment_context()
  2104. def send_alter_table_with_environment_context(self, dbname, tbl_name, new_tbl, environment_context):
  2105. self._oprot.writeMessageBegin('alter_table_with_environment_context', TMessageType.CALL, self._seqid)
  2106. args = alter_table_with_environment_context_args()
  2107. args.dbname = dbname
  2108. args.tbl_name = tbl_name
  2109. args.new_tbl = new_tbl
  2110. args.environment_context = environment_context
  2111. args.write(self._oprot)
  2112. self._oprot.writeMessageEnd()
  2113. self._oprot.trans.flush()
  2114. def recv_alter_table_with_environment_context(self):
  2115. iprot = self._iprot
  2116. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2117. if mtype == TMessageType.EXCEPTION:
  2118. x = TApplicationException()
  2119. x.read(iprot)
  2120. iprot.readMessageEnd()
  2121. raise x
  2122. result = alter_table_with_environment_context_result()
  2123. result.read(iprot)
  2124. iprot.readMessageEnd()
  2125. if result.o1 is not None:
  2126. raise result.o1
  2127. if result.o2 is not None:
  2128. raise result.o2
  2129. return
  2130. def alter_table_with_cascade(self, dbname, tbl_name, new_tbl, cascade):
  2131. """
  2132. Parameters:
  2133. - dbname
  2134. - tbl_name
  2135. - new_tbl
  2136. - cascade
  2137. """
  2138. self.send_alter_table_with_cascade(dbname, tbl_name, new_tbl, cascade)
  2139. self.recv_alter_table_with_cascade()
  2140. def send_alter_table_with_cascade(self, dbname, tbl_name, new_tbl, cascade):
  2141. self._oprot.writeMessageBegin('alter_table_with_cascade', TMessageType.CALL, self._seqid)
  2142. args = alter_table_with_cascade_args()
  2143. args.dbname = dbname
  2144. args.tbl_name = tbl_name
  2145. args.new_tbl = new_tbl
  2146. args.cascade = cascade
  2147. args.write(self._oprot)
  2148. self._oprot.writeMessageEnd()
  2149. self._oprot.trans.flush()
  2150. def recv_alter_table_with_cascade(self):
  2151. iprot = self._iprot
  2152. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2153. if mtype == TMessageType.EXCEPTION:
  2154. x = TApplicationException()
  2155. x.read(iprot)
  2156. iprot.readMessageEnd()
  2157. raise x
  2158. result = alter_table_with_cascade_result()
  2159. result.read(iprot)
  2160. iprot.readMessageEnd()
  2161. if result.o1 is not None:
  2162. raise result.o1
  2163. if result.o2 is not None:
  2164. raise result.o2
  2165. return
  2166. def add_partition(self, new_part):
  2167. """
  2168. Parameters:
  2169. - new_part
  2170. """
  2171. self.send_add_partition(new_part)
  2172. return self.recv_add_partition()
  2173. def send_add_partition(self, new_part):
  2174. self._oprot.writeMessageBegin('add_partition', TMessageType.CALL, self._seqid)
  2175. args = add_partition_args()
  2176. args.new_part = new_part
  2177. args.write(self._oprot)
  2178. self._oprot.writeMessageEnd()
  2179. self._oprot.trans.flush()
  2180. def recv_add_partition(self):
  2181. iprot = self._iprot
  2182. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2183. if mtype == TMessageType.EXCEPTION:
  2184. x = TApplicationException()
  2185. x.read(iprot)
  2186. iprot.readMessageEnd()
  2187. raise x
  2188. result = add_partition_result()
  2189. result.read(iprot)
  2190. iprot.readMessageEnd()
  2191. if result.success is not None:
  2192. return result.success
  2193. if result.o1 is not None:
  2194. raise result.o1
  2195. if result.o2 is not None:
  2196. raise result.o2
  2197. if result.o3 is not None:
  2198. raise result.o3
  2199. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition failed: unknown result")
  2200. def add_partition_with_environment_context(self, new_part, environment_context):
  2201. """
  2202. Parameters:
  2203. - new_part
  2204. - environment_context
  2205. """
  2206. self.send_add_partition_with_environment_context(new_part, environment_context)
  2207. return self.recv_add_partition_with_environment_context()
  2208. def send_add_partition_with_environment_context(self, new_part, environment_context):
  2209. self._oprot.writeMessageBegin('add_partition_with_environment_context', TMessageType.CALL, self._seqid)
  2210. args = add_partition_with_environment_context_args()
  2211. args.new_part = new_part
  2212. args.environment_context = environment_context
  2213. args.write(self._oprot)
  2214. self._oprot.writeMessageEnd()
  2215. self._oprot.trans.flush()
  2216. def recv_add_partition_with_environment_context(self):
  2217. iprot = self._iprot
  2218. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2219. if mtype == TMessageType.EXCEPTION:
  2220. x = TApplicationException()
  2221. x.read(iprot)
  2222. iprot.readMessageEnd()
  2223. raise x
  2224. result = add_partition_with_environment_context_result()
  2225. result.read(iprot)
  2226. iprot.readMessageEnd()
  2227. if result.success is not None:
  2228. return result.success
  2229. if result.o1 is not None:
  2230. raise result.o1
  2231. if result.o2 is not None:
  2232. raise result.o2
  2233. if result.o3 is not None:
  2234. raise result.o3
  2235. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition_with_environment_context failed: unknown result")
  2236. def add_partitions(self, new_parts):
  2237. """
  2238. Parameters:
  2239. - new_parts
  2240. """
  2241. self.send_add_partitions(new_parts)
  2242. return self.recv_add_partitions()
  2243. def send_add_partitions(self, new_parts):
  2244. self._oprot.writeMessageBegin('add_partitions', TMessageType.CALL, self._seqid)
  2245. args = add_partitions_args()
  2246. args.new_parts = new_parts
  2247. args.write(self._oprot)
  2248. self._oprot.writeMessageEnd()
  2249. self._oprot.trans.flush()
  2250. def recv_add_partitions(self):
  2251. iprot = self._iprot
  2252. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2253. if mtype == TMessageType.EXCEPTION:
  2254. x = TApplicationException()
  2255. x.read(iprot)
  2256. iprot.readMessageEnd()
  2257. raise x
  2258. result = add_partitions_result()
  2259. result.read(iprot)
  2260. iprot.readMessageEnd()
  2261. if result.success is not None:
  2262. return result.success
  2263. if result.o1 is not None:
  2264. raise result.o1
  2265. if result.o2 is not None:
  2266. raise result.o2
  2267. if result.o3 is not None:
  2268. raise result.o3
  2269. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions failed: unknown result")
  2270. def add_partitions_pspec(self, new_parts):
  2271. """
  2272. Parameters:
  2273. - new_parts
  2274. """
  2275. self.send_add_partitions_pspec(new_parts)
  2276. return self.recv_add_partitions_pspec()
  2277. def send_add_partitions_pspec(self, new_parts):
  2278. self._oprot.writeMessageBegin('add_partitions_pspec', TMessageType.CALL, self._seqid)
  2279. args = add_partitions_pspec_args()
  2280. args.new_parts = new_parts
  2281. args.write(self._oprot)
  2282. self._oprot.writeMessageEnd()
  2283. self._oprot.trans.flush()
  2284. def recv_add_partitions_pspec(self):
  2285. iprot = self._iprot
  2286. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2287. if mtype == TMessageType.EXCEPTION:
  2288. x = TApplicationException()
  2289. x.read(iprot)
  2290. iprot.readMessageEnd()
  2291. raise x
  2292. result = add_partitions_pspec_result()
  2293. result.read(iprot)
  2294. iprot.readMessageEnd()
  2295. if result.success is not None:
  2296. return result.success
  2297. if result.o1 is not None:
  2298. raise result.o1
  2299. if result.o2 is not None:
  2300. raise result.o2
  2301. if result.o3 is not None:
  2302. raise result.o3
  2303. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions_pspec failed: unknown result")
  2304. def append_partition(self, db_name, tbl_name, part_vals):
  2305. """
  2306. Parameters:
  2307. - db_name
  2308. - tbl_name
  2309. - part_vals
  2310. """
  2311. self.send_append_partition(db_name, tbl_name, part_vals)
  2312. return self.recv_append_partition()
  2313. def send_append_partition(self, db_name, tbl_name, part_vals):
  2314. self._oprot.writeMessageBegin('append_partition', TMessageType.CALL, self._seqid)
  2315. args = append_partition_args()
  2316. args.db_name = db_name
  2317. args.tbl_name = tbl_name
  2318. args.part_vals = part_vals
  2319. args.write(self._oprot)
  2320. self._oprot.writeMessageEnd()
  2321. self._oprot.trans.flush()
  2322. def recv_append_partition(self):
  2323. iprot = self._iprot
  2324. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2325. if mtype == TMessageType.EXCEPTION:
  2326. x = TApplicationException()
  2327. x.read(iprot)
  2328. iprot.readMessageEnd()
  2329. raise x
  2330. result = append_partition_result()
  2331. result.read(iprot)
  2332. iprot.readMessageEnd()
  2333. if result.success is not None:
  2334. return result.success
  2335. if result.o1 is not None:
  2336. raise result.o1
  2337. if result.o2 is not None:
  2338. raise result.o2
  2339. if result.o3 is not None:
  2340. raise result.o3
  2341. raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition failed: unknown result")
  2342. def add_partitions_req(self, request):
  2343. """
  2344. Parameters:
  2345. - request
  2346. """
  2347. self.send_add_partitions_req(request)
  2348. return self.recv_add_partitions_req()
  2349. def send_add_partitions_req(self, request):
  2350. self._oprot.writeMessageBegin('add_partitions_req', TMessageType.CALL, self._seqid)
  2351. args = add_partitions_req_args()
  2352. args.request = request
  2353. args.write(self._oprot)
  2354. self._oprot.writeMessageEnd()
  2355. self._oprot.trans.flush()
  2356. def recv_add_partitions_req(self):
  2357. iprot = self._iprot
  2358. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2359. if mtype == TMessageType.EXCEPTION:
  2360. x = TApplicationException()
  2361. x.read(iprot)
  2362. iprot.readMessageEnd()
  2363. raise x
  2364. result = add_partitions_req_result()
  2365. result.read(iprot)
  2366. iprot.readMessageEnd()
  2367. if result.success is not None:
  2368. return result.success
  2369. if result.o1 is not None:
  2370. raise result.o1
  2371. if result.o2 is not None:
  2372. raise result.o2
  2373. if result.o3 is not None:
  2374. raise result.o3
  2375. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions_req failed: unknown result")
  2376. def append_partition_with_environment_context(self, db_name, tbl_name, part_vals, environment_context):
  2377. """
  2378. Parameters:
  2379. - db_name
  2380. - tbl_name
  2381. - part_vals
  2382. - environment_context
  2383. """
  2384. self.send_append_partition_with_environment_context(db_name, tbl_name, part_vals, environment_context)
  2385. return self.recv_append_partition_with_environment_context()
  2386. def send_append_partition_with_environment_context(self, db_name, tbl_name, part_vals, environment_context):
  2387. self._oprot.writeMessageBegin('append_partition_with_environment_context', TMessageType.CALL, self._seqid)
  2388. args = append_partition_with_environment_context_args()
  2389. args.db_name = db_name
  2390. args.tbl_name = tbl_name
  2391. args.part_vals = part_vals
  2392. args.environment_context = environment_context
  2393. args.write(self._oprot)
  2394. self._oprot.writeMessageEnd()
  2395. self._oprot.trans.flush()
  2396. def recv_append_partition_with_environment_context(self):
  2397. iprot = self._iprot
  2398. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2399. if mtype == TMessageType.EXCEPTION:
  2400. x = TApplicationException()
  2401. x.read(iprot)
  2402. iprot.readMessageEnd()
  2403. raise x
  2404. result = append_partition_with_environment_context_result()
  2405. result.read(iprot)
  2406. iprot.readMessageEnd()
  2407. if result.success is not None:
  2408. return result.success
  2409. if result.o1 is not None:
  2410. raise result.o1
  2411. if result.o2 is not None:
  2412. raise result.o2
  2413. if result.o3 is not None:
  2414. raise result.o3
  2415. raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_with_environment_context failed: unknown result")
  2416. def append_partition_by_name(self, db_name, tbl_name, part_name):
  2417. """
  2418. Parameters:
  2419. - db_name
  2420. - tbl_name
  2421. - part_name
  2422. """
  2423. self.send_append_partition_by_name(db_name, tbl_name, part_name)
  2424. return self.recv_append_partition_by_name()
  2425. def send_append_partition_by_name(self, db_name, tbl_name, part_name):
  2426. self._oprot.writeMessageBegin('append_partition_by_name', TMessageType.CALL, self._seqid)
  2427. args = append_partition_by_name_args()
  2428. args.db_name = db_name
  2429. args.tbl_name = tbl_name
  2430. args.part_name = part_name
  2431. args.write(self._oprot)
  2432. self._oprot.writeMessageEnd()
  2433. self._oprot.trans.flush()
  2434. def recv_append_partition_by_name(self):
  2435. iprot = self._iprot
  2436. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2437. if mtype == TMessageType.EXCEPTION:
  2438. x = TApplicationException()
  2439. x.read(iprot)
  2440. iprot.readMessageEnd()
  2441. raise x
  2442. result = append_partition_by_name_result()
  2443. result.read(iprot)
  2444. iprot.readMessageEnd()
  2445. if result.success is not None:
  2446. return result.success
  2447. if result.o1 is not None:
  2448. raise result.o1
  2449. if result.o2 is not None:
  2450. raise result.o2
  2451. if result.o3 is not None:
  2452. raise result.o3
  2453. raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name failed: unknown result")
  2454. def append_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, environment_context):
  2455. """
  2456. Parameters:
  2457. - db_name
  2458. - tbl_name
  2459. - part_name
  2460. - environment_context
  2461. """
  2462. self.send_append_partition_by_name_with_environment_context(db_name, tbl_name, part_name, environment_context)
  2463. return self.recv_append_partition_by_name_with_environment_context()
  2464. def send_append_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, environment_context):
  2465. self._oprot.writeMessageBegin('append_partition_by_name_with_environment_context', TMessageType.CALL, self._seqid)
  2466. args = append_partition_by_name_with_environment_context_args()
  2467. args.db_name = db_name
  2468. args.tbl_name = tbl_name
  2469. args.part_name = part_name
  2470. args.environment_context = environment_context
  2471. args.write(self._oprot)
  2472. self._oprot.writeMessageEnd()
  2473. self._oprot.trans.flush()
  2474. def recv_append_partition_by_name_with_environment_context(self):
  2475. iprot = self._iprot
  2476. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2477. if mtype == TMessageType.EXCEPTION:
  2478. x = TApplicationException()
  2479. x.read(iprot)
  2480. iprot.readMessageEnd()
  2481. raise x
  2482. result = append_partition_by_name_with_environment_context_result()
  2483. result.read(iprot)
  2484. iprot.readMessageEnd()
  2485. if result.success is not None:
  2486. return result.success
  2487. if result.o1 is not None:
  2488. raise result.o1
  2489. if result.o2 is not None:
  2490. raise result.o2
  2491. if result.o3 is not None:
  2492. raise result.o3
  2493. raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name_with_environment_context failed: unknown result")
  2494. def drop_partition(self, db_name, tbl_name, part_vals, deleteData):
  2495. """
  2496. Parameters:
  2497. - db_name
  2498. - tbl_name
  2499. - part_vals
  2500. - deleteData
  2501. """
  2502. self.send_drop_partition(db_name, tbl_name, part_vals, deleteData)
  2503. return self.recv_drop_partition()
  2504. def send_drop_partition(self, db_name, tbl_name, part_vals, deleteData):
  2505. self._oprot.writeMessageBegin('drop_partition', TMessageType.CALL, self._seqid)
  2506. args = drop_partition_args()
  2507. args.db_name = db_name
  2508. args.tbl_name = tbl_name
  2509. args.part_vals = part_vals
  2510. args.deleteData = deleteData
  2511. args.write(self._oprot)
  2512. self._oprot.writeMessageEnd()
  2513. self._oprot.trans.flush()
  2514. def recv_drop_partition(self):
  2515. iprot = self._iprot
  2516. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2517. if mtype == TMessageType.EXCEPTION:
  2518. x = TApplicationException()
  2519. x.read(iprot)
  2520. iprot.readMessageEnd()
  2521. raise x
  2522. result = drop_partition_result()
  2523. result.read(iprot)
  2524. iprot.readMessageEnd()
  2525. if result.success is not None:
  2526. return result.success
  2527. if result.o1 is not None:
  2528. raise result.o1
  2529. if result.o2 is not None:
  2530. raise result.o2
  2531. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition failed: unknown result")
  2532. def drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context):
  2533. """
  2534. Parameters:
  2535. - db_name
  2536. - tbl_name
  2537. - part_vals
  2538. - deleteData
  2539. - environment_context
  2540. """
  2541. self.send_drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context)
  2542. return self.recv_drop_partition_with_environment_context()
  2543. def send_drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context):
  2544. self._oprot.writeMessageBegin('drop_partition_with_environment_context', TMessageType.CALL, self._seqid)
  2545. args = drop_partition_with_environment_context_args()
  2546. args.db_name = db_name
  2547. args.tbl_name = tbl_name
  2548. args.part_vals = part_vals
  2549. args.deleteData = deleteData
  2550. args.environment_context = environment_context
  2551. args.write(self._oprot)
  2552. self._oprot.writeMessageEnd()
  2553. self._oprot.trans.flush()
  2554. def recv_drop_partition_with_environment_context(self):
  2555. iprot = self._iprot
  2556. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2557. if mtype == TMessageType.EXCEPTION:
  2558. x = TApplicationException()
  2559. x.read(iprot)
  2560. iprot.readMessageEnd()
  2561. raise x
  2562. result = drop_partition_with_environment_context_result()
  2563. result.read(iprot)
  2564. iprot.readMessageEnd()
  2565. if result.success is not None:
  2566. return result.success
  2567. if result.o1 is not None:
  2568. raise result.o1
  2569. if result.o2 is not None:
  2570. raise result.o2
  2571. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_with_environment_context failed: unknown result")
  2572. def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
  2573. """
  2574. Parameters:
  2575. - db_name
  2576. - tbl_name
  2577. - part_name
  2578. - deleteData
  2579. """
  2580. self.send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
  2581. return self.recv_drop_partition_by_name()
  2582. def send_drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
  2583. self._oprot.writeMessageBegin('drop_partition_by_name', TMessageType.CALL, self._seqid)
  2584. args = drop_partition_by_name_args()
  2585. args.db_name = db_name
  2586. args.tbl_name = tbl_name
  2587. args.part_name = part_name
  2588. args.deleteData = deleteData
  2589. args.write(self._oprot)
  2590. self._oprot.writeMessageEnd()
  2591. self._oprot.trans.flush()
  2592. def recv_drop_partition_by_name(self):
  2593. iprot = self._iprot
  2594. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2595. if mtype == TMessageType.EXCEPTION:
  2596. x = TApplicationException()
  2597. x.read(iprot)
  2598. iprot.readMessageEnd()
  2599. raise x
  2600. result = drop_partition_by_name_result()
  2601. result.read(iprot)
  2602. iprot.readMessageEnd()
  2603. if result.success is not None:
  2604. return result.success
  2605. if result.o1 is not None:
  2606. raise result.o1
  2607. if result.o2 is not None:
  2608. raise result.o2
  2609. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name failed: unknown result")
  2610. def drop_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, deleteData, environment_context):
  2611. """
  2612. Parameters:
  2613. - db_name
  2614. - tbl_name
  2615. - part_name
  2616. - deleteData
  2617. - environment_context
  2618. """
  2619. self.send_drop_partition_by_name_with_environment_context(db_name, tbl_name, part_name, deleteData, environment_context)
  2620. return self.recv_drop_partition_by_name_with_environment_context()
  2621. def send_drop_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, deleteData, environment_context):
  2622. self._oprot.writeMessageBegin('drop_partition_by_name_with_environment_context', TMessageType.CALL, self._seqid)
  2623. args = drop_partition_by_name_with_environment_context_args()
  2624. args.db_name = db_name
  2625. args.tbl_name = tbl_name
  2626. args.part_name = part_name
  2627. args.deleteData = deleteData
  2628. args.environment_context = environment_context
  2629. args.write(self._oprot)
  2630. self._oprot.writeMessageEnd()
  2631. self._oprot.trans.flush()
  2632. def recv_drop_partition_by_name_with_environment_context(self):
  2633. iprot = self._iprot
  2634. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2635. if mtype == TMessageType.EXCEPTION:
  2636. x = TApplicationException()
  2637. x.read(iprot)
  2638. iprot.readMessageEnd()
  2639. raise x
  2640. result = drop_partition_by_name_with_environment_context_result()
  2641. result.read(iprot)
  2642. iprot.readMessageEnd()
  2643. if result.success is not None:
  2644. return result.success
  2645. if result.o1 is not None:
  2646. raise result.o1
  2647. if result.o2 is not None:
  2648. raise result.o2
  2649. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name_with_environment_context failed: unknown result")
  2650. def drop_partitions_req(self, req):
  2651. """
  2652. Parameters:
  2653. - req
  2654. """
  2655. self.send_drop_partitions_req(req)
  2656. return self.recv_drop_partitions_req()
  2657. def send_drop_partitions_req(self, req):
  2658. self._oprot.writeMessageBegin('drop_partitions_req', TMessageType.CALL, self._seqid)
  2659. args = drop_partitions_req_args()
  2660. args.req = req
  2661. args.write(self._oprot)
  2662. self._oprot.writeMessageEnd()
  2663. self._oprot.trans.flush()
  2664. def recv_drop_partitions_req(self):
  2665. iprot = self._iprot
  2666. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2667. if mtype == TMessageType.EXCEPTION:
  2668. x = TApplicationException()
  2669. x.read(iprot)
  2670. iprot.readMessageEnd()
  2671. raise x
  2672. result = drop_partitions_req_result()
  2673. result.read(iprot)
  2674. iprot.readMessageEnd()
  2675. if result.success is not None:
  2676. return result.success
  2677. if result.o1 is not None:
  2678. raise result.o1
  2679. if result.o2 is not None:
  2680. raise result.o2
  2681. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partitions_req failed: unknown result")
  2682. def get_partition(self, db_name, tbl_name, part_vals):
  2683. """
  2684. Parameters:
  2685. - db_name
  2686. - tbl_name
  2687. - part_vals
  2688. """
  2689. self.send_get_partition(db_name, tbl_name, part_vals)
  2690. return self.recv_get_partition()
  2691. def send_get_partition(self, db_name, tbl_name, part_vals):
  2692. self._oprot.writeMessageBegin('get_partition', TMessageType.CALL, self._seqid)
  2693. args = get_partition_args()
  2694. args.db_name = db_name
  2695. args.tbl_name = tbl_name
  2696. args.part_vals = part_vals
  2697. args.write(self._oprot)
  2698. self._oprot.writeMessageEnd()
  2699. self._oprot.trans.flush()
  2700. def recv_get_partition(self):
  2701. iprot = self._iprot
  2702. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2703. if mtype == TMessageType.EXCEPTION:
  2704. x = TApplicationException()
  2705. x.read(iprot)
  2706. iprot.readMessageEnd()
  2707. raise x
  2708. result = get_partition_result()
  2709. result.read(iprot)
  2710. iprot.readMessageEnd()
  2711. if result.success is not None:
  2712. return result.success
  2713. if result.o1 is not None:
  2714. raise result.o1
  2715. if result.o2 is not None:
  2716. raise result.o2
  2717. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition failed: unknown result")
  2718. def exchange_partition(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name):
  2719. """
  2720. Parameters:
  2721. - partitionSpecs
  2722. - source_db
  2723. - source_table_name
  2724. - dest_db
  2725. - dest_table_name
  2726. """
  2727. self.send_exchange_partition(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name)
  2728. return self.recv_exchange_partition()
  2729. def send_exchange_partition(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name):
  2730. self._oprot.writeMessageBegin('exchange_partition', TMessageType.CALL, self._seqid)
  2731. args = exchange_partition_args()
  2732. args.partitionSpecs = partitionSpecs
  2733. args.source_db = source_db
  2734. args.source_table_name = source_table_name
  2735. args.dest_db = dest_db
  2736. args.dest_table_name = dest_table_name
  2737. args.write(self._oprot)
  2738. self._oprot.writeMessageEnd()
  2739. self._oprot.trans.flush()
  2740. def recv_exchange_partition(self):
  2741. iprot = self._iprot
  2742. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2743. if mtype == TMessageType.EXCEPTION:
  2744. x = TApplicationException()
  2745. x.read(iprot)
  2746. iprot.readMessageEnd()
  2747. raise x
  2748. result = exchange_partition_result()
  2749. result.read(iprot)
  2750. iprot.readMessageEnd()
  2751. if result.success is not None:
  2752. return result.success
  2753. if result.o1 is not None:
  2754. raise result.o1
  2755. if result.o2 is not None:
  2756. raise result.o2
  2757. if result.o3 is not None:
  2758. raise result.o3
  2759. if result.o4 is not None:
  2760. raise result.o4
  2761. raise TApplicationException(TApplicationException.MISSING_RESULT, "exchange_partition failed: unknown result")
  2762. def exchange_partitions(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name):
  2763. """
  2764. Parameters:
  2765. - partitionSpecs
  2766. - source_db
  2767. - source_table_name
  2768. - dest_db
  2769. - dest_table_name
  2770. """
  2771. self.send_exchange_partitions(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name)
  2772. return self.recv_exchange_partitions()
  2773. def send_exchange_partitions(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name):
  2774. self._oprot.writeMessageBegin('exchange_partitions', TMessageType.CALL, self._seqid)
  2775. args = exchange_partitions_args()
  2776. args.partitionSpecs = partitionSpecs
  2777. args.source_db = source_db
  2778. args.source_table_name = source_table_name
  2779. args.dest_db = dest_db
  2780. args.dest_table_name = dest_table_name
  2781. args.write(self._oprot)
  2782. self._oprot.writeMessageEnd()
  2783. self._oprot.trans.flush()
  2784. def recv_exchange_partitions(self):
  2785. iprot = self._iprot
  2786. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2787. if mtype == TMessageType.EXCEPTION:
  2788. x = TApplicationException()
  2789. x.read(iprot)
  2790. iprot.readMessageEnd()
  2791. raise x
  2792. result = exchange_partitions_result()
  2793. result.read(iprot)
  2794. iprot.readMessageEnd()
  2795. if result.success is not None:
  2796. return result.success
  2797. if result.o1 is not None:
  2798. raise result.o1
  2799. if result.o2 is not None:
  2800. raise result.o2
  2801. if result.o3 is not None:
  2802. raise result.o3
  2803. if result.o4 is not None:
  2804. raise result.o4
  2805. raise TApplicationException(TApplicationException.MISSING_RESULT, "exchange_partitions failed: unknown result")
  2806. def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
  2807. """
  2808. Parameters:
  2809. - db_name
  2810. - tbl_name
  2811. - part_vals
  2812. - user_name
  2813. - group_names
  2814. """
  2815. self.send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
  2816. return self.recv_get_partition_with_auth()
  2817. def send_get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
  2818. self._oprot.writeMessageBegin('get_partition_with_auth', TMessageType.CALL, self._seqid)
  2819. args = get_partition_with_auth_args()
  2820. args.db_name = db_name
  2821. args.tbl_name = tbl_name
  2822. args.part_vals = part_vals
  2823. args.user_name = user_name
  2824. args.group_names = group_names
  2825. args.write(self._oprot)
  2826. self._oprot.writeMessageEnd()
  2827. self._oprot.trans.flush()
  2828. def recv_get_partition_with_auth(self):
  2829. iprot = self._iprot
  2830. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2831. if mtype == TMessageType.EXCEPTION:
  2832. x = TApplicationException()
  2833. x.read(iprot)
  2834. iprot.readMessageEnd()
  2835. raise x
  2836. result = get_partition_with_auth_result()
  2837. result.read(iprot)
  2838. iprot.readMessageEnd()
  2839. if result.success is not None:
  2840. return result.success
  2841. if result.o1 is not None:
  2842. raise result.o1
  2843. if result.o2 is not None:
  2844. raise result.o2
  2845. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_with_auth failed: unknown result")
  2846. def get_partition_by_name(self, db_name, tbl_name, part_name):
  2847. """
  2848. Parameters:
  2849. - db_name
  2850. - tbl_name
  2851. - part_name
  2852. """
  2853. self.send_get_partition_by_name(db_name, tbl_name, part_name)
  2854. return self.recv_get_partition_by_name()
  2855. def send_get_partition_by_name(self, db_name, tbl_name, part_name):
  2856. self._oprot.writeMessageBegin('get_partition_by_name', TMessageType.CALL, self._seqid)
  2857. args = get_partition_by_name_args()
  2858. args.db_name = db_name
  2859. args.tbl_name = tbl_name
  2860. args.part_name = part_name
  2861. args.write(self._oprot)
  2862. self._oprot.writeMessageEnd()
  2863. self._oprot.trans.flush()
  2864. def recv_get_partition_by_name(self):
  2865. iprot = self._iprot
  2866. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2867. if mtype == TMessageType.EXCEPTION:
  2868. x = TApplicationException()
  2869. x.read(iprot)
  2870. iprot.readMessageEnd()
  2871. raise x
  2872. result = get_partition_by_name_result()
  2873. result.read(iprot)
  2874. iprot.readMessageEnd()
  2875. if result.success is not None:
  2876. return result.success
  2877. if result.o1 is not None:
  2878. raise result.o1
  2879. if result.o2 is not None:
  2880. raise result.o2
  2881. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_by_name failed: unknown result")
  2882. def get_partitions(self, db_name, tbl_name, max_parts):
  2883. """
  2884. Parameters:
  2885. - db_name
  2886. - tbl_name
  2887. - max_parts
  2888. """
  2889. self.send_get_partitions(db_name, tbl_name, max_parts)
  2890. return self.recv_get_partitions()
  2891. def send_get_partitions(self, db_name, tbl_name, max_parts):
  2892. self._oprot.writeMessageBegin('get_partitions', TMessageType.CALL, self._seqid)
  2893. args = get_partitions_args()
  2894. args.db_name = db_name
  2895. args.tbl_name = tbl_name
  2896. args.max_parts = max_parts
  2897. args.write(self._oprot)
  2898. self._oprot.writeMessageEnd()
  2899. self._oprot.trans.flush()
  2900. def recv_get_partitions(self):
  2901. iprot = self._iprot
  2902. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2903. if mtype == TMessageType.EXCEPTION:
  2904. x = TApplicationException()
  2905. x.read(iprot)
  2906. iprot.readMessageEnd()
  2907. raise x
  2908. result = get_partitions_result()
  2909. result.read(iprot)
  2910. iprot.readMessageEnd()
  2911. if result.success is not None:
  2912. return result.success
  2913. if result.o1 is not None:
  2914. raise result.o1
  2915. if result.o2 is not None:
  2916. raise result.o2
  2917. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions failed: unknown result")
  2918. def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
  2919. """
  2920. Parameters:
  2921. - db_name
  2922. - tbl_name
  2923. - max_parts
  2924. - user_name
  2925. - group_names
  2926. """
  2927. self.send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
  2928. return self.recv_get_partitions_with_auth()
  2929. def send_get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
  2930. self._oprot.writeMessageBegin('get_partitions_with_auth', TMessageType.CALL, self._seqid)
  2931. args = get_partitions_with_auth_args()
  2932. args.db_name = db_name
  2933. args.tbl_name = tbl_name
  2934. args.max_parts = max_parts
  2935. args.user_name = user_name
  2936. args.group_names = group_names
  2937. args.write(self._oprot)
  2938. self._oprot.writeMessageEnd()
  2939. self._oprot.trans.flush()
  2940. def recv_get_partitions_with_auth(self):
  2941. iprot = self._iprot
  2942. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2943. if mtype == TMessageType.EXCEPTION:
  2944. x = TApplicationException()
  2945. x.read(iprot)
  2946. iprot.readMessageEnd()
  2947. raise x
  2948. result = get_partitions_with_auth_result()
  2949. result.read(iprot)
  2950. iprot.readMessageEnd()
  2951. if result.success is not None:
  2952. return result.success
  2953. if result.o1 is not None:
  2954. raise result.o1
  2955. if result.o2 is not None:
  2956. raise result.o2
  2957. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_with_auth failed: unknown result")
  2958. def get_partitions_pspec(self, db_name, tbl_name, max_parts):
  2959. """
  2960. Parameters:
  2961. - db_name
  2962. - tbl_name
  2963. - max_parts
  2964. """
  2965. self.send_get_partitions_pspec(db_name, tbl_name, max_parts)
  2966. return self.recv_get_partitions_pspec()
  2967. def send_get_partitions_pspec(self, db_name, tbl_name, max_parts):
  2968. self._oprot.writeMessageBegin('get_partitions_pspec', TMessageType.CALL, self._seqid)
  2969. args = get_partitions_pspec_args()
  2970. args.db_name = db_name
  2971. args.tbl_name = tbl_name
  2972. args.max_parts = max_parts
  2973. args.write(self._oprot)
  2974. self._oprot.writeMessageEnd()
  2975. self._oprot.trans.flush()
  2976. def recv_get_partitions_pspec(self):
  2977. iprot = self._iprot
  2978. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2979. if mtype == TMessageType.EXCEPTION:
  2980. x = TApplicationException()
  2981. x.read(iprot)
  2982. iprot.readMessageEnd()
  2983. raise x
  2984. result = get_partitions_pspec_result()
  2985. result.read(iprot)
  2986. iprot.readMessageEnd()
  2987. if result.success is not None:
  2988. return result.success
  2989. if result.o1 is not None:
  2990. raise result.o1
  2991. if result.o2 is not None:
  2992. raise result.o2
  2993. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_pspec failed: unknown result")
  2994. def get_partition_names(self, db_name, tbl_name, max_parts):
  2995. """
  2996. Parameters:
  2997. - db_name
  2998. - tbl_name
  2999. - max_parts
  3000. """
  3001. self.send_get_partition_names(db_name, tbl_name, max_parts)
  3002. return self.recv_get_partition_names()
  3003. def send_get_partition_names(self, db_name, tbl_name, max_parts):
  3004. self._oprot.writeMessageBegin('get_partition_names', TMessageType.CALL, self._seqid)
  3005. args = get_partition_names_args()
  3006. args.db_name = db_name
  3007. args.tbl_name = tbl_name
  3008. args.max_parts = max_parts
  3009. args.write(self._oprot)
  3010. self._oprot.writeMessageEnd()
  3011. self._oprot.trans.flush()
  3012. def recv_get_partition_names(self):
  3013. iprot = self._iprot
  3014. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3015. if mtype == TMessageType.EXCEPTION:
  3016. x = TApplicationException()
  3017. x.read(iprot)
  3018. iprot.readMessageEnd()
  3019. raise x
  3020. result = get_partition_names_result()
  3021. result.read(iprot)
  3022. iprot.readMessageEnd()
  3023. if result.success is not None:
  3024. return result.success
  3025. if result.o1 is not None:
  3026. raise result.o1
  3027. if result.o2 is not None:
  3028. raise result.o2
  3029. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result")
  3030. def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
  3031. """
  3032. Parameters:
  3033. - db_name
  3034. - tbl_name
  3035. - part_vals
  3036. - max_parts
  3037. """
  3038. self.send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
  3039. return self.recv_get_partitions_ps()
  3040. def send_get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
  3041. self._oprot.writeMessageBegin('get_partitions_ps', TMessageType.CALL, self._seqid)
  3042. args = get_partitions_ps_args()
  3043. args.db_name = db_name
  3044. args.tbl_name = tbl_name
  3045. args.part_vals = part_vals
  3046. args.max_parts = max_parts
  3047. args.write(self._oprot)
  3048. self._oprot.writeMessageEnd()
  3049. self._oprot.trans.flush()
  3050. def recv_get_partitions_ps(self):
  3051. iprot = self._iprot
  3052. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3053. if mtype == TMessageType.EXCEPTION:
  3054. x = TApplicationException()
  3055. x.read(iprot)
  3056. iprot.readMessageEnd()
  3057. raise x
  3058. result = get_partitions_ps_result()
  3059. result.read(iprot)
  3060. iprot.readMessageEnd()
  3061. if result.success is not None:
  3062. return result.success
  3063. if result.o1 is not None:
  3064. raise result.o1
  3065. if result.o2 is not None:
  3066. raise result.o2
  3067. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps failed: unknown result")
  3068. def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
  3069. """
  3070. Parameters:
  3071. - db_name
  3072. - tbl_name
  3073. - part_vals
  3074. - max_parts
  3075. - user_name
  3076. - group_names
  3077. """
  3078. self.send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
  3079. return self.recv_get_partitions_ps_with_auth()
  3080. def send_get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
  3081. self._oprot.writeMessageBegin('get_partitions_ps_with_auth', TMessageType.CALL, self._seqid)
  3082. args = get_partitions_ps_with_auth_args()
  3083. args.db_name = db_name
  3084. args.tbl_name = tbl_name
  3085. args.part_vals = part_vals
  3086. args.max_parts = max_parts
  3087. args.user_name = user_name
  3088. args.group_names = group_names
  3089. args.write(self._oprot)
  3090. self._oprot.writeMessageEnd()
  3091. self._oprot.trans.flush()
  3092. def recv_get_partitions_ps_with_auth(self):
  3093. iprot = self._iprot
  3094. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3095. if mtype == TMessageType.EXCEPTION:
  3096. x = TApplicationException()
  3097. x.read(iprot)
  3098. iprot.readMessageEnd()
  3099. raise x
  3100. result = get_partitions_ps_with_auth_result()
  3101. result.read(iprot)
  3102. iprot.readMessageEnd()
  3103. if result.success is not None:
  3104. return result.success
  3105. if result.o1 is not None:
  3106. raise result.o1
  3107. if result.o2 is not None:
  3108. raise result.o2
  3109. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result")
  3110. def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
  3111. """
  3112. Parameters:
  3113. - db_name
  3114. - tbl_name
  3115. - part_vals
  3116. - max_parts
  3117. """
  3118. self.send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
  3119. return self.recv_get_partition_names_ps()
  3120. def send_get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
  3121. self._oprot.writeMessageBegin('get_partition_names_ps', TMessageType.CALL, self._seqid)
  3122. args = get_partition_names_ps_args()
  3123. args.db_name = db_name
  3124. args.tbl_name = tbl_name
  3125. args.part_vals = part_vals
  3126. args.max_parts = max_parts
  3127. args.write(self._oprot)
  3128. self._oprot.writeMessageEnd()
  3129. self._oprot.trans.flush()
  3130. def recv_get_partition_names_ps(self):
  3131. iprot = self._iprot
  3132. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3133. if mtype == TMessageType.EXCEPTION:
  3134. x = TApplicationException()
  3135. x.read(iprot)
  3136. iprot.readMessageEnd()
  3137. raise x
  3138. result = get_partition_names_ps_result()
  3139. result.read(iprot)
  3140. iprot.readMessageEnd()
  3141. if result.success is not None:
  3142. return result.success
  3143. if result.o1 is not None:
  3144. raise result.o1
  3145. if result.o2 is not None:
  3146. raise result.o2
  3147. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names_ps failed: unknown result")
  3148. def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
  3149. """
  3150. Parameters:
  3151. - db_name
  3152. - tbl_name
  3153. - filter
  3154. - max_parts
  3155. """
  3156. self.send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
  3157. return self.recv_get_partitions_by_filter()
  3158. def send_get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
  3159. self._oprot.writeMessageBegin('get_partitions_by_filter', TMessageType.CALL, self._seqid)
  3160. args = get_partitions_by_filter_args()
  3161. args.db_name = db_name
  3162. args.tbl_name = tbl_name
  3163. args.filter = filter
  3164. args.max_parts = max_parts
  3165. args.write(self._oprot)
  3166. self._oprot.writeMessageEnd()
  3167. self._oprot.trans.flush()
  3168. def recv_get_partitions_by_filter(self):
  3169. iprot = self._iprot
  3170. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3171. if mtype == TMessageType.EXCEPTION:
  3172. x = TApplicationException()
  3173. x.read(iprot)
  3174. iprot.readMessageEnd()
  3175. raise x
  3176. result = get_partitions_by_filter_result()
  3177. result.read(iprot)
  3178. iprot.readMessageEnd()
  3179. if result.success is not None:
  3180. return result.success
  3181. if result.o1 is not None:
  3182. raise result.o1
  3183. if result.o2 is not None:
  3184. raise result.o2
  3185. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_filter failed: unknown result")
  3186. def get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts):
  3187. """
  3188. Parameters:
  3189. - db_name
  3190. - tbl_name
  3191. - filter
  3192. - max_parts
  3193. """
  3194. self.send_get_part_specs_by_filter(db_name, tbl_name, filter, max_parts)
  3195. return self.recv_get_part_specs_by_filter()
  3196. def send_get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts):
  3197. self._oprot.writeMessageBegin('get_part_specs_by_filter', TMessageType.CALL, self._seqid)
  3198. args = get_part_specs_by_filter_args()
  3199. args.db_name = db_name
  3200. args.tbl_name = tbl_name
  3201. args.filter = filter
  3202. args.max_parts = max_parts
  3203. args.write(self._oprot)
  3204. self._oprot.writeMessageEnd()
  3205. self._oprot.trans.flush()
  3206. def recv_get_part_specs_by_filter(self):
  3207. iprot = self._iprot
  3208. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3209. if mtype == TMessageType.EXCEPTION:
  3210. x = TApplicationException()
  3211. x.read(iprot)
  3212. iprot.readMessageEnd()
  3213. raise x
  3214. result = get_part_specs_by_filter_result()
  3215. result.read(iprot)
  3216. iprot.readMessageEnd()
  3217. if result.success is not None:
  3218. return result.success
  3219. if result.o1 is not None:
  3220. raise result.o1
  3221. if result.o2 is not None:
  3222. raise result.o2
  3223. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_part_specs_by_filter failed: unknown result")
  3224. def get_partitions_by_expr(self, req):
  3225. """
  3226. Parameters:
  3227. - req
  3228. """
  3229. self.send_get_partitions_by_expr(req)
  3230. return self.recv_get_partitions_by_expr()
  3231. def send_get_partitions_by_expr(self, req):
  3232. self._oprot.writeMessageBegin('get_partitions_by_expr', TMessageType.CALL, self._seqid)
  3233. args = get_partitions_by_expr_args()
  3234. args.req = req
  3235. args.write(self._oprot)
  3236. self._oprot.writeMessageEnd()
  3237. self._oprot.trans.flush()
  3238. def recv_get_partitions_by_expr(self):
  3239. iprot = self._iprot
  3240. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3241. if mtype == TMessageType.EXCEPTION:
  3242. x = TApplicationException()
  3243. x.read(iprot)
  3244. iprot.readMessageEnd()
  3245. raise x
  3246. result = get_partitions_by_expr_result()
  3247. result.read(iprot)
  3248. iprot.readMessageEnd()
  3249. if result.success is not None:
  3250. return result.success
  3251. if result.o1 is not None:
  3252. raise result.o1
  3253. if result.o2 is not None:
  3254. raise result.o2
  3255. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_expr failed: unknown result")
  3256. def get_num_partitions_by_filter(self, db_name, tbl_name, filter):
  3257. """
  3258. Parameters:
  3259. - db_name
  3260. - tbl_name
  3261. - filter
  3262. """
  3263. self.send_get_num_partitions_by_filter(db_name, tbl_name, filter)
  3264. return self.recv_get_num_partitions_by_filter()
  3265. def send_get_num_partitions_by_filter(self, db_name, tbl_name, filter):
  3266. self._oprot.writeMessageBegin('get_num_partitions_by_filter', TMessageType.CALL, self._seqid)
  3267. args = get_num_partitions_by_filter_args()
  3268. args.db_name = db_name
  3269. args.tbl_name = tbl_name
  3270. args.filter = filter
  3271. args.write(self._oprot)
  3272. self._oprot.writeMessageEnd()
  3273. self._oprot.trans.flush()
  3274. def recv_get_num_partitions_by_filter(self):
  3275. iprot = self._iprot
  3276. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3277. if mtype == TMessageType.EXCEPTION:
  3278. x = TApplicationException()
  3279. x.read(iprot)
  3280. iprot.readMessageEnd()
  3281. raise x
  3282. result = get_num_partitions_by_filter_result()
  3283. result.read(iprot)
  3284. iprot.readMessageEnd()
  3285. if result.success is not None:
  3286. return result.success
  3287. if result.o1 is not None:
  3288. raise result.o1
  3289. if result.o2 is not None:
  3290. raise result.o2
  3291. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_num_partitions_by_filter failed: unknown result")
  3292. def get_partitions_by_names(self, db_name, tbl_name, names):
  3293. """
  3294. Parameters:
  3295. - db_name
  3296. - tbl_name
  3297. - names
  3298. """
  3299. self.send_get_partitions_by_names(db_name, tbl_name, names)
  3300. return self.recv_get_partitions_by_names()
  3301. def send_get_partitions_by_names(self, db_name, tbl_name, names):
  3302. self._oprot.writeMessageBegin('get_partitions_by_names', TMessageType.CALL, self._seqid)
  3303. args = get_partitions_by_names_args()
  3304. args.db_name = db_name
  3305. args.tbl_name = tbl_name
  3306. args.names = names
  3307. args.write(self._oprot)
  3308. self._oprot.writeMessageEnd()
  3309. self._oprot.trans.flush()
  3310. def recv_get_partitions_by_names(self):
  3311. iprot = self._iprot
  3312. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3313. if mtype == TMessageType.EXCEPTION:
  3314. x = TApplicationException()
  3315. x.read(iprot)
  3316. iprot.readMessageEnd()
  3317. raise x
  3318. result = get_partitions_by_names_result()
  3319. result.read(iprot)
  3320. iprot.readMessageEnd()
  3321. if result.success is not None:
  3322. return result.success
  3323. if result.o1 is not None:
  3324. raise result.o1
  3325. if result.o2 is not None:
  3326. raise result.o2
  3327. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_names failed: unknown result")
  3328. def alter_partition(self, db_name, tbl_name, new_part):
  3329. """
  3330. Parameters:
  3331. - db_name
  3332. - tbl_name
  3333. - new_part
  3334. """
  3335. self.send_alter_partition(db_name, tbl_name, new_part)
  3336. self.recv_alter_partition()
  3337. def send_alter_partition(self, db_name, tbl_name, new_part):
  3338. self._oprot.writeMessageBegin('alter_partition', TMessageType.CALL, self._seqid)
  3339. args = alter_partition_args()
  3340. args.db_name = db_name
  3341. args.tbl_name = tbl_name
  3342. args.new_part = new_part
  3343. args.write(self._oprot)
  3344. self._oprot.writeMessageEnd()
  3345. self._oprot.trans.flush()
  3346. def recv_alter_partition(self):
  3347. iprot = self._iprot
  3348. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3349. if mtype == TMessageType.EXCEPTION:
  3350. x = TApplicationException()
  3351. x.read(iprot)
  3352. iprot.readMessageEnd()
  3353. raise x
  3354. result = alter_partition_result()
  3355. result.read(iprot)
  3356. iprot.readMessageEnd()
  3357. if result.o1 is not None:
  3358. raise result.o1
  3359. if result.o2 is not None:
  3360. raise result.o2
  3361. return
  3362. def alter_partitions(self, db_name, tbl_name, new_parts):
  3363. """
  3364. Parameters:
  3365. - db_name
  3366. - tbl_name
  3367. - new_parts
  3368. """
  3369. self.send_alter_partitions(db_name, tbl_name, new_parts)
  3370. self.recv_alter_partitions()
  3371. def send_alter_partitions(self, db_name, tbl_name, new_parts):
  3372. self._oprot.writeMessageBegin('alter_partitions', TMessageType.CALL, self._seqid)
  3373. args = alter_partitions_args()
  3374. args.db_name = db_name
  3375. args.tbl_name = tbl_name
  3376. args.new_parts = new_parts
  3377. args.write(self._oprot)
  3378. self._oprot.writeMessageEnd()
  3379. self._oprot.trans.flush()
  3380. def recv_alter_partitions(self):
  3381. iprot = self._iprot
  3382. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3383. if mtype == TMessageType.EXCEPTION:
  3384. x = TApplicationException()
  3385. x.read(iprot)
  3386. iprot.readMessageEnd()
  3387. raise x
  3388. result = alter_partitions_result()
  3389. result.read(iprot)
  3390. iprot.readMessageEnd()
  3391. if result.o1 is not None:
  3392. raise result.o1
  3393. if result.o2 is not None:
  3394. raise result.o2
  3395. return
  3396. def alter_partitions_with_environment_context(self, db_name, tbl_name, new_parts, environment_context):
  3397. """
  3398. Parameters:
  3399. - db_name
  3400. - tbl_name
  3401. - new_parts
  3402. - environment_context
  3403. """
  3404. self.send_alter_partitions_with_environment_context(db_name, tbl_name, new_parts, environment_context)
  3405. self.recv_alter_partitions_with_environment_context()
  3406. def send_alter_partitions_with_environment_context(self, db_name, tbl_name, new_parts, environment_context):
  3407. self._oprot.writeMessageBegin('alter_partitions_with_environment_context', TMessageType.CALL, self._seqid)
  3408. args = alter_partitions_with_environment_context_args()
  3409. args.db_name = db_name
  3410. args.tbl_name = tbl_name
  3411. args.new_parts = new_parts
  3412. args.environment_context = environment_context
  3413. args.write(self._oprot)
  3414. self._oprot.writeMessageEnd()
  3415. self._oprot.trans.flush()
  3416. def recv_alter_partitions_with_environment_context(self):
  3417. iprot = self._iprot
  3418. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3419. if mtype == TMessageType.EXCEPTION:
  3420. x = TApplicationException()
  3421. x.read(iprot)
  3422. iprot.readMessageEnd()
  3423. raise x
  3424. result = alter_partitions_with_environment_context_result()
  3425. result.read(iprot)
  3426. iprot.readMessageEnd()
  3427. if result.o1 is not None:
  3428. raise result.o1
  3429. if result.o2 is not None:
  3430. raise result.o2
  3431. return
  3432. def alter_partition_with_environment_context(self, db_name, tbl_name, new_part, environment_context):
  3433. """
  3434. Parameters:
  3435. - db_name
  3436. - tbl_name
  3437. - new_part
  3438. - environment_context
  3439. """
  3440. self.send_alter_partition_with_environment_context(db_name, tbl_name, new_part, environment_context)
  3441. self.recv_alter_partition_with_environment_context()
  3442. def send_alter_partition_with_environment_context(self, db_name, tbl_name, new_part, environment_context):
  3443. self._oprot.writeMessageBegin('alter_partition_with_environment_context', TMessageType.CALL, self._seqid)
  3444. args = alter_partition_with_environment_context_args()
  3445. args.db_name = db_name
  3446. args.tbl_name = tbl_name
  3447. args.new_part = new_part
  3448. args.environment_context = environment_context
  3449. args.write(self._oprot)
  3450. self._oprot.writeMessageEnd()
  3451. self._oprot.trans.flush()
  3452. def recv_alter_partition_with_environment_context(self):
  3453. iprot = self._iprot
  3454. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3455. if mtype == TMessageType.EXCEPTION:
  3456. x = TApplicationException()
  3457. x.read(iprot)
  3458. iprot.readMessageEnd()
  3459. raise x
  3460. result = alter_partition_with_environment_context_result()
  3461. result.read(iprot)
  3462. iprot.readMessageEnd()
  3463. if result.o1 is not None:
  3464. raise result.o1
  3465. if result.o2 is not None:
  3466. raise result.o2
  3467. return
  3468. def rename_partition(self, db_name, tbl_name, part_vals, new_part):
  3469. """
  3470. Parameters:
  3471. - db_name
  3472. - tbl_name
  3473. - part_vals
  3474. - new_part
  3475. """
  3476. self.send_rename_partition(db_name, tbl_name, part_vals, new_part)
  3477. self.recv_rename_partition()
  3478. def send_rename_partition(self, db_name, tbl_name, part_vals, new_part):
  3479. self._oprot.writeMessageBegin('rename_partition', TMessageType.CALL, self._seqid)
  3480. args = rename_partition_args()
  3481. args.db_name = db_name
  3482. args.tbl_name = tbl_name
  3483. args.part_vals = part_vals
  3484. args.new_part = new_part
  3485. args.write(self._oprot)
  3486. self._oprot.writeMessageEnd()
  3487. self._oprot.trans.flush()
  3488. def recv_rename_partition(self):
  3489. iprot = self._iprot
  3490. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3491. if mtype == TMessageType.EXCEPTION:
  3492. x = TApplicationException()
  3493. x.read(iprot)
  3494. iprot.readMessageEnd()
  3495. raise x
  3496. result = rename_partition_result()
  3497. result.read(iprot)
  3498. iprot.readMessageEnd()
  3499. if result.o1 is not None:
  3500. raise result.o1
  3501. if result.o2 is not None:
  3502. raise result.o2
  3503. return
  3504. def partition_name_has_valid_characters(self, part_vals, throw_exception):
  3505. """
  3506. Parameters:
  3507. - part_vals
  3508. - throw_exception
  3509. """
  3510. self.send_partition_name_has_valid_characters(part_vals, throw_exception)
  3511. return self.recv_partition_name_has_valid_characters()
  3512. def send_partition_name_has_valid_characters(self, part_vals, throw_exception):
  3513. self._oprot.writeMessageBegin('partition_name_has_valid_characters', TMessageType.CALL, self._seqid)
  3514. args = partition_name_has_valid_characters_args()
  3515. args.part_vals = part_vals
  3516. args.throw_exception = throw_exception
  3517. args.write(self._oprot)
  3518. self._oprot.writeMessageEnd()
  3519. self._oprot.trans.flush()
  3520. def recv_partition_name_has_valid_characters(self):
  3521. iprot = self._iprot
  3522. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3523. if mtype == TMessageType.EXCEPTION:
  3524. x = TApplicationException()
  3525. x.read(iprot)
  3526. iprot.readMessageEnd()
  3527. raise x
  3528. result = partition_name_has_valid_characters_result()
  3529. result.read(iprot)
  3530. iprot.readMessageEnd()
  3531. if result.success is not None:
  3532. return result.success
  3533. if result.o1 is not None:
  3534. raise result.o1
  3535. raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_has_valid_characters failed: unknown result")
  3536. def get_config_value(self, name, defaultValue):
  3537. """
  3538. Parameters:
  3539. - name
  3540. - defaultValue
  3541. """
  3542. self.send_get_config_value(name, defaultValue)
  3543. return self.recv_get_config_value()
  3544. def send_get_config_value(self, name, defaultValue):
  3545. self._oprot.writeMessageBegin('get_config_value', TMessageType.CALL, self._seqid)
  3546. args = get_config_value_args()
  3547. args.name = name
  3548. args.defaultValue = defaultValue
  3549. args.write(self._oprot)
  3550. self._oprot.writeMessageEnd()
  3551. self._oprot.trans.flush()
  3552. def recv_get_config_value(self):
  3553. iprot = self._iprot
  3554. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3555. if mtype == TMessageType.EXCEPTION:
  3556. x = TApplicationException()
  3557. x.read(iprot)
  3558. iprot.readMessageEnd()
  3559. raise x
  3560. result = get_config_value_result()
  3561. result.read(iprot)
  3562. iprot.readMessageEnd()
  3563. if result.success is not None:
  3564. return result.success
  3565. if result.o1 is not None:
  3566. raise result.o1
  3567. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_config_value failed: unknown result")
  3568. def partition_name_to_vals(self, part_name):
  3569. """
  3570. Parameters:
  3571. - part_name
  3572. """
  3573. self.send_partition_name_to_vals(part_name)
  3574. return self.recv_partition_name_to_vals()
  3575. def send_partition_name_to_vals(self, part_name):
  3576. self._oprot.writeMessageBegin('partition_name_to_vals', TMessageType.CALL, self._seqid)
  3577. args = partition_name_to_vals_args()
  3578. args.part_name = part_name
  3579. args.write(self._oprot)
  3580. self._oprot.writeMessageEnd()
  3581. self._oprot.trans.flush()
  3582. def recv_partition_name_to_vals(self):
  3583. iprot = self._iprot
  3584. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3585. if mtype == TMessageType.EXCEPTION:
  3586. x = TApplicationException()
  3587. x.read(iprot)
  3588. iprot.readMessageEnd()
  3589. raise x
  3590. result = partition_name_to_vals_result()
  3591. result.read(iprot)
  3592. iprot.readMessageEnd()
  3593. if result.success is not None:
  3594. return result.success
  3595. if result.o1 is not None:
  3596. raise result.o1
  3597. raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_vals failed: unknown result")
  3598. def partition_name_to_spec(self, part_name):
  3599. """
  3600. Parameters:
  3601. - part_name
  3602. """
  3603. self.send_partition_name_to_spec(part_name)
  3604. return self.recv_partition_name_to_spec()
  3605. def send_partition_name_to_spec(self, part_name):
  3606. self._oprot.writeMessageBegin('partition_name_to_spec', TMessageType.CALL, self._seqid)
  3607. args = partition_name_to_spec_args()
  3608. args.part_name = part_name
  3609. args.write(self._oprot)
  3610. self._oprot.writeMessageEnd()
  3611. self._oprot.trans.flush()
  3612. def recv_partition_name_to_spec(self):
  3613. iprot = self._iprot
  3614. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3615. if mtype == TMessageType.EXCEPTION:
  3616. x = TApplicationException()
  3617. x.read(iprot)
  3618. iprot.readMessageEnd()
  3619. raise x
  3620. result = partition_name_to_spec_result()
  3621. result.read(iprot)
  3622. iprot.readMessageEnd()
  3623. if result.success is not None:
  3624. return result.success
  3625. if result.o1 is not None:
  3626. raise result.o1
  3627. raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_spec failed: unknown result")
  3628. def markPartitionForEvent(self, db_name, tbl_name, part_vals, eventType):
  3629. """
  3630. Parameters:
  3631. - db_name
  3632. - tbl_name
  3633. - part_vals
  3634. - eventType
  3635. """
  3636. self.send_markPartitionForEvent(db_name, tbl_name, part_vals, eventType)
  3637. self.recv_markPartitionForEvent()
  3638. def send_markPartitionForEvent(self, db_name, tbl_name, part_vals, eventType):
  3639. self._oprot.writeMessageBegin('markPartitionForEvent', TMessageType.CALL, self._seqid)
  3640. args = markPartitionForEvent_args()
  3641. args.db_name = db_name
  3642. args.tbl_name = tbl_name
  3643. args.part_vals = part_vals
  3644. args.eventType = eventType
  3645. args.write(self._oprot)
  3646. self._oprot.writeMessageEnd()
  3647. self._oprot.trans.flush()
  3648. def recv_markPartitionForEvent(self):
  3649. iprot = self._iprot
  3650. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3651. if mtype == TMessageType.EXCEPTION:
  3652. x = TApplicationException()
  3653. x.read(iprot)
  3654. iprot.readMessageEnd()
  3655. raise x
  3656. result = markPartitionForEvent_result()
  3657. result.read(iprot)
  3658. iprot.readMessageEnd()
  3659. if result.o1 is not None:
  3660. raise result.o1
  3661. if result.o2 is not None:
  3662. raise result.o2
  3663. if result.o3 is not None:
  3664. raise result.o3
  3665. if result.o4 is not None:
  3666. raise result.o4
  3667. if result.o5 is not None:
  3668. raise result.o5
  3669. if result.o6 is not None:
  3670. raise result.o6
  3671. return
  3672. def isPartitionMarkedForEvent(self, db_name, tbl_name, part_vals, eventType):
  3673. """
  3674. Parameters:
  3675. - db_name
  3676. - tbl_name
  3677. - part_vals
  3678. - eventType
  3679. """
  3680. self.send_isPartitionMarkedForEvent(db_name, tbl_name, part_vals, eventType)
  3681. return self.recv_isPartitionMarkedForEvent()
  3682. def send_isPartitionMarkedForEvent(self, db_name, tbl_name, part_vals, eventType):
  3683. self._oprot.writeMessageBegin('isPartitionMarkedForEvent', TMessageType.CALL, self._seqid)
  3684. args = isPartitionMarkedForEvent_args()
  3685. args.db_name = db_name
  3686. args.tbl_name = tbl_name
  3687. args.part_vals = part_vals
  3688. args.eventType = eventType
  3689. args.write(self._oprot)
  3690. self._oprot.writeMessageEnd()
  3691. self._oprot.trans.flush()
  3692. def recv_isPartitionMarkedForEvent(self):
  3693. iprot = self._iprot
  3694. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3695. if mtype == TMessageType.EXCEPTION:
  3696. x = TApplicationException()
  3697. x.read(iprot)
  3698. iprot.readMessageEnd()
  3699. raise x
  3700. result = isPartitionMarkedForEvent_result()
  3701. result.read(iprot)
  3702. iprot.readMessageEnd()
  3703. if result.success is not None:
  3704. return result.success
  3705. if result.o1 is not None:
  3706. raise result.o1
  3707. if result.o2 is not None:
  3708. raise result.o2
  3709. if result.o3 is not None:
  3710. raise result.o3
  3711. if result.o4 is not None:
  3712. raise result.o4
  3713. if result.o5 is not None:
  3714. raise result.o5
  3715. if result.o6 is not None:
  3716. raise result.o6
  3717. raise TApplicationException(TApplicationException.MISSING_RESULT, "isPartitionMarkedForEvent failed: unknown result")
  3718. def add_index(self, new_index, index_table):
  3719. """
  3720. Parameters:
  3721. - new_index
  3722. - index_table
  3723. """
  3724. self.send_add_index(new_index, index_table)
  3725. return self.recv_add_index()
  3726. def send_add_index(self, new_index, index_table):
  3727. self._oprot.writeMessageBegin('add_index', TMessageType.CALL, self._seqid)
  3728. args = add_index_args()
  3729. args.new_index = new_index
  3730. args.index_table = index_table
  3731. args.write(self._oprot)
  3732. self._oprot.writeMessageEnd()
  3733. self._oprot.trans.flush()
  3734. def recv_add_index(self):
  3735. iprot = self._iprot
  3736. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3737. if mtype == TMessageType.EXCEPTION:
  3738. x = TApplicationException()
  3739. x.read(iprot)
  3740. iprot.readMessageEnd()
  3741. raise x
  3742. result = add_index_result()
  3743. result.read(iprot)
  3744. iprot.readMessageEnd()
  3745. if result.success is not None:
  3746. return result.success
  3747. if result.o1 is not None:
  3748. raise result.o1
  3749. if result.o2 is not None:
  3750. raise result.o2
  3751. if result.o3 is not None:
  3752. raise result.o3
  3753. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_index failed: unknown result")
  3754. def alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
  3755. """
  3756. Parameters:
  3757. - dbname
  3758. - base_tbl_name
  3759. - idx_name
  3760. - new_idx
  3761. """
  3762. self.send_alter_index(dbname, base_tbl_name, idx_name, new_idx)
  3763. self.recv_alter_index()
  3764. def send_alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
  3765. self._oprot.writeMessageBegin('alter_index', TMessageType.CALL, self._seqid)
  3766. args = alter_index_args()
  3767. args.dbname = dbname
  3768. args.base_tbl_name = base_tbl_name
  3769. args.idx_name = idx_name
  3770. args.new_idx = new_idx
  3771. args.write(self._oprot)
  3772. self._oprot.writeMessageEnd()
  3773. self._oprot.trans.flush()
  3774. def recv_alter_index(self):
  3775. iprot = self._iprot
  3776. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3777. if mtype == TMessageType.EXCEPTION:
  3778. x = TApplicationException()
  3779. x.read(iprot)
  3780. iprot.readMessageEnd()
  3781. raise x
  3782. result = alter_index_result()
  3783. result.read(iprot)
  3784. iprot.readMessageEnd()
  3785. if result.o1 is not None:
  3786. raise result.o1
  3787. if result.o2 is not None:
  3788. raise result.o2
  3789. return
  3790. def drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
  3791. """
  3792. Parameters:
  3793. - db_name
  3794. - tbl_name
  3795. - index_name
  3796. - deleteData
  3797. """
  3798. self.send_drop_index_by_name(db_name, tbl_name, index_name, deleteData)
  3799. return self.recv_drop_index_by_name()
  3800. def send_drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
  3801. self._oprot.writeMessageBegin('drop_index_by_name', TMessageType.CALL, self._seqid)
  3802. args = drop_index_by_name_args()
  3803. args.db_name = db_name
  3804. args.tbl_name = tbl_name
  3805. args.index_name = index_name
  3806. args.deleteData = deleteData
  3807. args.write(self._oprot)
  3808. self._oprot.writeMessageEnd()
  3809. self._oprot.trans.flush()
  3810. def recv_drop_index_by_name(self):
  3811. iprot = self._iprot
  3812. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3813. if mtype == TMessageType.EXCEPTION:
  3814. x = TApplicationException()
  3815. x.read(iprot)
  3816. iprot.readMessageEnd()
  3817. raise x
  3818. result = drop_index_by_name_result()
  3819. result.read(iprot)
  3820. iprot.readMessageEnd()
  3821. if result.success is not None:
  3822. return result.success
  3823. if result.o1 is not None:
  3824. raise result.o1
  3825. if result.o2 is not None:
  3826. raise result.o2
  3827. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_index_by_name failed: unknown result")
  3828. def get_index_by_name(self, db_name, tbl_name, index_name):
  3829. """
  3830. Parameters:
  3831. - db_name
  3832. - tbl_name
  3833. - index_name
  3834. """
  3835. self.send_get_index_by_name(db_name, tbl_name, index_name)
  3836. return self.recv_get_index_by_name()
  3837. def send_get_index_by_name(self, db_name, tbl_name, index_name):
  3838. self._oprot.writeMessageBegin('get_index_by_name', TMessageType.CALL, self._seqid)
  3839. args = get_index_by_name_args()
  3840. args.db_name = db_name
  3841. args.tbl_name = tbl_name
  3842. args.index_name = index_name
  3843. args.write(self._oprot)
  3844. self._oprot.writeMessageEnd()
  3845. self._oprot.trans.flush()
  3846. def recv_get_index_by_name(self):
  3847. iprot = self._iprot
  3848. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3849. if mtype == TMessageType.EXCEPTION:
  3850. x = TApplicationException()
  3851. x.read(iprot)
  3852. iprot.readMessageEnd()
  3853. raise x
  3854. result = get_index_by_name_result()
  3855. result.read(iprot)
  3856. iprot.readMessageEnd()
  3857. if result.success is not None:
  3858. return result.success
  3859. if result.o1 is not None:
  3860. raise result.o1
  3861. if result.o2 is not None:
  3862. raise result.o2
  3863. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_by_name failed: unknown result")
  3864. def get_indexes(self, db_name, tbl_name, max_indexes):
  3865. """
  3866. Parameters:
  3867. - db_name
  3868. - tbl_name
  3869. - max_indexes
  3870. """
  3871. self.send_get_indexes(db_name, tbl_name, max_indexes)
  3872. return self.recv_get_indexes()
  3873. def send_get_indexes(self, db_name, tbl_name, max_indexes):
  3874. self._oprot.writeMessageBegin('get_indexes', TMessageType.CALL, self._seqid)
  3875. args = get_indexes_args()
  3876. args.db_name = db_name
  3877. args.tbl_name = tbl_name
  3878. args.max_indexes = max_indexes
  3879. args.write(self._oprot)
  3880. self._oprot.writeMessageEnd()
  3881. self._oprot.trans.flush()
  3882. def recv_get_indexes(self):
  3883. iprot = self._iprot
  3884. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3885. if mtype == TMessageType.EXCEPTION:
  3886. x = TApplicationException()
  3887. x.read(iprot)
  3888. iprot.readMessageEnd()
  3889. raise x
  3890. result = get_indexes_result()
  3891. result.read(iprot)
  3892. iprot.readMessageEnd()
  3893. if result.success is not None:
  3894. return result.success
  3895. if result.o1 is not None:
  3896. raise result.o1
  3897. if result.o2 is not None:
  3898. raise result.o2
  3899. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_indexes failed: unknown result")
  3900. def get_index_names(self, db_name, tbl_name, max_indexes):
  3901. """
  3902. Parameters:
  3903. - db_name
  3904. - tbl_name
  3905. - max_indexes
  3906. """
  3907. self.send_get_index_names(db_name, tbl_name, max_indexes)
  3908. return self.recv_get_index_names()
  3909. def send_get_index_names(self, db_name, tbl_name, max_indexes):
  3910. self._oprot.writeMessageBegin('get_index_names', TMessageType.CALL, self._seqid)
  3911. args = get_index_names_args()
  3912. args.db_name = db_name
  3913. args.tbl_name = tbl_name
  3914. args.max_indexes = max_indexes
  3915. args.write(self._oprot)
  3916. self._oprot.writeMessageEnd()
  3917. self._oprot.trans.flush()
  3918. def recv_get_index_names(self):
  3919. iprot = self._iprot
  3920. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3921. if mtype == TMessageType.EXCEPTION:
  3922. x = TApplicationException()
  3923. x.read(iprot)
  3924. iprot.readMessageEnd()
  3925. raise x
  3926. result = get_index_names_result()
  3927. result.read(iprot)
  3928. iprot.readMessageEnd()
  3929. if result.success is not None:
  3930. return result.success
  3931. if result.o2 is not None:
  3932. raise result.o2
  3933. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_names failed: unknown result")
  3934. def get_primary_keys(self, request):
  3935. """
  3936. Parameters:
  3937. - request
  3938. """
  3939. self.send_get_primary_keys(request)
  3940. return self.recv_get_primary_keys()
  3941. def send_get_primary_keys(self, request):
  3942. self._oprot.writeMessageBegin('get_primary_keys', TMessageType.CALL, self._seqid)
  3943. args = get_primary_keys_args()
  3944. args.request = request
  3945. args.write(self._oprot)
  3946. self._oprot.writeMessageEnd()
  3947. self._oprot.trans.flush()
  3948. def recv_get_primary_keys(self):
  3949. iprot = self._iprot
  3950. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3951. if mtype == TMessageType.EXCEPTION:
  3952. x = TApplicationException()
  3953. x.read(iprot)
  3954. iprot.readMessageEnd()
  3955. raise x
  3956. result = get_primary_keys_result()
  3957. result.read(iprot)
  3958. iprot.readMessageEnd()
  3959. if result.success is not None:
  3960. return result.success
  3961. if result.o1 is not None:
  3962. raise result.o1
  3963. if result.o2 is not None:
  3964. raise result.o2
  3965. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_primary_keys failed: unknown result")
  3966. def get_foreign_keys(self, request):
  3967. """
  3968. Parameters:
  3969. - request
  3970. """
  3971. self.send_get_foreign_keys(request)
  3972. return self.recv_get_foreign_keys()
  3973. def send_get_foreign_keys(self, request):
  3974. self._oprot.writeMessageBegin('get_foreign_keys', TMessageType.CALL, self._seqid)
  3975. args = get_foreign_keys_args()
  3976. args.request = request
  3977. args.write(self._oprot)
  3978. self._oprot.writeMessageEnd()
  3979. self._oprot.trans.flush()
  3980. def recv_get_foreign_keys(self):
  3981. iprot = self._iprot
  3982. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3983. if mtype == TMessageType.EXCEPTION:
  3984. x = TApplicationException()
  3985. x.read(iprot)
  3986. iprot.readMessageEnd()
  3987. raise x
  3988. result = get_foreign_keys_result()
  3989. result.read(iprot)
  3990. iprot.readMessageEnd()
  3991. if result.success is not None:
  3992. return result.success
  3993. if result.o1 is not None:
  3994. raise result.o1
  3995. if result.o2 is not None:
  3996. raise result.o2
  3997. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_foreign_keys failed: unknown result")
  3998. def update_table_column_statistics(self, stats_obj):
  3999. """
  4000. Parameters:
  4001. - stats_obj
  4002. """
  4003. self.send_update_table_column_statistics(stats_obj)
  4004. return self.recv_update_table_column_statistics()
  4005. def send_update_table_column_statistics(self, stats_obj):
  4006. self._oprot.writeMessageBegin('update_table_column_statistics', TMessageType.CALL, self._seqid)
  4007. args = update_table_column_statistics_args()
  4008. args.stats_obj = stats_obj
  4009. args.write(self._oprot)
  4010. self._oprot.writeMessageEnd()
  4011. self._oprot.trans.flush()
  4012. def recv_update_table_column_statistics(self):
  4013. iprot = self._iprot
  4014. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4015. if mtype == TMessageType.EXCEPTION:
  4016. x = TApplicationException()
  4017. x.read(iprot)
  4018. iprot.readMessageEnd()
  4019. raise x
  4020. result = update_table_column_statistics_result()
  4021. result.read(iprot)
  4022. iprot.readMessageEnd()
  4023. if result.success is not None:
  4024. return result.success
  4025. if result.o1 is not None:
  4026. raise result.o1
  4027. if result.o2 is not None:
  4028. raise result.o2
  4029. if result.o3 is not None:
  4030. raise result.o3
  4031. if result.o4 is not None:
  4032. raise result.o4
  4033. raise TApplicationException(TApplicationException.MISSING_RESULT, "update_table_column_statistics failed: unknown result")
  4034. def update_partition_column_statistics(self, stats_obj):
  4035. """
  4036. Parameters:
  4037. - stats_obj
  4038. """
  4039. self.send_update_partition_column_statistics(stats_obj)
  4040. return self.recv_update_partition_column_statistics()
  4041. def send_update_partition_column_statistics(self, stats_obj):
  4042. self._oprot.writeMessageBegin('update_partition_column_statistics', TMessageType.CALL, self._seqid)
  4043. args = update_partition_column_statistics_args()
  4044. args.stats_obj = stats_obj
  4045. args.write(self._oprot)
  4046. self._oprot.writeMessageEnd()
  4047. self._oprot.trans.flush()
  4048. def recv_update_partition_column_statistics(self):
  4049. iprot = self._iprot
  4050. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4051. if mtype == TMessageType.EXCEPTION:
  4052. x = TApplicationException()
  4053. x.read(iprot)
  4054. iprot.readMessageEnd()
  4055. raise x
  4056. result = update_partition_column_statistics_result()
  4057. result.read(iprot)
  4058. iprot.readMessageEnd()
  4059. if result.success is not None:
  4060. return result.success
  4061. if result.o1 is not None:
  4062. raise result.o1
  4063. if result.o2 is not None:
  4064. raise result.o2
  4065. if result.o3 is not None:
  4066. raise result.o3
  4067. if result.o4 is not None:
  4068. raise result.o4
  4069. raise TApplicationException(TApplicationException.MISSING_RESULT, "update_partition_column_statistics failed: unknown result")
  4070. def get_table_column_statistics(self, db_name, tbl_name, col_name):
  4071. """
  4072. Parameters:
  4073. - db_name
  4074. - tbl_name
  4075. - col_name
  4076. """
  4077. self.send_get_table_column_statistics(db_name, tbl_name, col_name)
  4078. return self.recv_get_table_column_statistics()
  4079. def send_get_table_column_statistics(self, db_name, tbl_name, col_name):
  4080. self._oprot.writeMessageBegin('get_table_column_statistics', TMessageType.CALL, self._seqid)
  4081. args = get_table_column_statistics_args()
  4082. args.db_name = db_name
  4083. args.tbl_name = tbl_name
  4084. args.col_name = col_name
  4085. args.write(self._oprot)
  4086. self._oprot.writeMessageEnd()
  4087. self._oprot.trans.flush()
  4088. def recv_get_table_column_statistics(self):
  4089. iprot = self._iprot
  4090. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4091. if mtype == TMessageType.EXCEPTION:
  4092. x = TApplicationException()
  4093. x.read(iprot)
  4094. iprot.readMessageEnd()
  4095. raise x
  4096. result = get_table_column_statistics_result()
  4097. result.read(iprot)
  4098. iprot.readMessageEnd()
  4099. if result.success is not None:
  4100. return result.success
  4101. if result.o1 is not None:
  4102. raise result.o1
  4103. if result.o2 is not None:
  4104. raise result.o2
  4105. if result.o3 is not None:
  4106. raise result.o3
  4107. if result.o4 is not None:
  4108. raise result.o4
  4109. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_column_statistics failed: unknown result")
  4110. def get_partition_column_statistics(self, db_name, tbl_name, part_name, col_name):
  4111. """
  4112. Parameters:
  4113. - db_name
  4114. - tbl_name
  4115. - part_name
  4116. - col_name
  4117. """
  4118. self.send_get_partition_column_statistics(db_name, tbl_name, part_name, col_name)
  4119. return self.recv_get_partition_column_statistics()
  4120. def send_get_partition_column_statistics(self, db_name, tbl_name, part_name, col_name):
  4121. self._oprot.writeMessageBegin('get_partition_column_statistics', TMessageType.CALL, self._seqid)
  4122. args = get_partition_column_statistics_args()
  4123. args.db_name = db_name
  4124. args.tbl_name = tbl_name
  4125. args.part_name = part_name
  4126. args.col_name = col_name
  4127. args.write(self._oprot)
  4128. self._oprot.writeMessageEnd()
  4129. self._oprot.trans.flush()
  4130. def recv_get_partition_column_statistics(self):
  4131. iprot = self._iprot
  4132. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4133. if mtype == TMessageType.EXCEPTION:
  4134. x = TApplicationException()
  4135. x.read(iprot)
  4136. iprot.readMessageEnd()
  4137. raise x
  4138. result = get_partition_column_statistics_result()
  4139. result.read(iprot)
  4140. iprot.readMessageEnd()
  4141. if result.success is not None:
  4142. return result.success
  4143. if result.o1 is not None:
  4144. raise result.o1
  4145. if result.o2 is not None:
  4146. raise result.o2
  4147. if result.o3 is not None:
  4148. raise result.o3
  4149. if result.o4 is not None:
  4150. raise result.o4
  4151. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_column_statistics failed: unknown result")
  4152. def get_table_statistics_req(self, request):
  4153. """
  4154. Parameters:
  4155. - request
  4156. """
  4157. self.send_get_table_statistics_req(request)
  4158. return self.recv_get_table_statistics_req()
  4159. def send_get_table_statistics_req(self, request):
  4160. self._oprot.writeMessageBegin('get_table_statistics_req', TMessageType.CALL, self._seqid)
  4161. args = get_table_statistics_req_args()
  4162. args.request = request
  4163. args.write(self._oprot)
  4164. self._oprot.writeMessageEnd()
  4165. self._oprot.trans.flush()
  4166. def recv_get_table_statistics_req(self):
  4167. iprot = self._iprot
  4168. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4169. if mtype == TMessageType.EXCEPTION:
  4170. x = TApplicationException()
  4171. x.read(iprot)
  4172. iprot.readMessageEnd()
  4173. raise x
  4174. result = get_table_statistics_req_result()
  4175. result.read(iprot)
  4176. iprot.readMessageEnd()
  4177. if result.success is not None:
  4178. return result.success
  4179. if result.o1 is not None:
  4180. raise result.o1
  4181. if result.o2 is not None:
  4182. raise result.o2
  4183. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_statistics_req failed: unknown result")
  4184. def get_partitions_statistics_req(self, request):
  4185. """
  4186. Parameters:
  4187. - request
  4188. """
  4189. self.send_get_partitions_statistics_req(request)
  4190. return self.recv_get_partitions_statistics_req()
  4191. def send_get_partitions_statistics_req(self, request):
  4192. self._oprot.writeMessageBegin('get_partitions_statistics_req', TMessageType.CALL, self._seqid)
  4193. args = get_partitions_statistics_req_args()
  4194. args.request = request
  4195. args.write(self._oprot)
  4196. self._oprot.writeMessageEnd()
  4197. self._oprot.trans.flush()
  4198. def recv_get_partitions_statistics_req(self):
  4199. iprot = self._iprot
  4200. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4201. if mtype == TMessageType.EXCEPTION:
  4202. x = TApplicationException()
  4203. x.read(iprot)
  4204. iprot.readMessageEnd()
  4205. raise x
  4206. result = get_partitions_statistics_req_result()
  4207. result.read(iprot)
  4208. iprot.readMessageEnd()
  4209. if result.success is not None:
  4210. return result.success
  4211. if result.o1 is not None:
  4212. raise result.o1
  4213. if result.o2 is not None:
  4214. raise result.o2
  4215. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_statistics_req failed: unknown result")
  4216. def get_aggr_stats_for(self, request):
  4217. """
  4218. Parameters:
  4219. - request
  4220. """
  4221. self.send_get_aggr_stats_for(request)
  4222. return self.recv_get_aggr_stats_for()
  4223. def send_get_aggr_stats_for(self, request):
  4224. self._oprot.writeMessageBegin('get_aggr_stats_for', TMessageType.CALL, self._seqid)
  4225. args = get_aggr_stats_for_args()
  4226. args.request = request
  4227. args.write(self._oprot)
  4228. self._oprot.writeMessageEnd()
  4229. self._oprot.trans.flush()
  4230. def recv_get_aggr_stats_for(self):
  4231. iprot = self._iprot
  4232. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4233. if mtype == TMessageType.EXCEPTION:
  4234. x = TApplicationException()
  4235. x.read(iprot)
  4236. iprot.readMessageEnd()
  4237. raise x
  4238. result = get_aggr_stats_for_result()
  4239. result.read(iprot)
  4240. iprot.readMessageEnd()
  4241. if result.success is not None:
  4242. return result.success
  4243. if result.o1 is not None:
  4244. raise result.o1
  4245. if result.o2 is not None:
  4246. raise result.o2
  4247. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_aggr_stats_for failed: unknown result")
  4248. def set_aggr_stats_for(self, request):
  4249. """
  4250. Parameters:
  4251. - request
  4252. """
  4253. self.send_set_aggr_stats_for(request)
  4254. return self.recv_set_aggr_stats_for()
  4255. def send_set_aggr_stats_for(self, request):
  4256. self._oprot.writeMessageBegin('set_aggr_stats_for', TMessageType.CALL, self._seqid)
  4257. args = set_aggr_stats_for_args()
  4258. args.request = request
  4259. args.write(self._oprot)
  4260. self._oprot.writeMessageEnd()
  4261. self._oprot.trans.flush()
  4262. def recv_set_aggr_stats_for(self):
  4263. iprot = self._iprot
  4264. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4265. if mtype == TMessageType.EXCEPTION:
  4266. x = TApplicationException()
  4267. x.read(iprot)
  4268. iprot.readMessageEnd()
  4269. raise x
  4270. result = set_aggr_stats_for_result()
  4271. result.read(iprot)
  4272. iprot.readMessageEnd()
  4273. if result.success is not None:
  4274. return result.success
  4275. if result.o1 is not None:
  4276. raise result.o1
  4277. if result.o2 is not None:
  4278. raise result.o2
  4279. if result.o3 is not None:
  4280. raise result.o3
  4281. if result.o4 is not None:
  4282. raise result.o4
  4283. raise TApplicationException(TApplicationException.MISSING_RESULT, "set_aggr_stats_for failed: unknown result")
  4284. def delete_partition_column_statistics(self, db_name, tbl_name, part_name, col_name):
  4285. """
  4286. Parameters:
  4287. - db_name
  4288. - tbl_name
  4289. - part_name
  4290. - col_name
  4291. """
  4292. self.send_delete_partition_column_statistics(db_name, tbl_name, part_name, col_name)
  4293. return self.recv_delete_partition_column_statistics()
  4294. def send_delete_partition_column_statistics(self, db_name, tbl_name, part_name, col_name):
  4295. self._oprot.writeMessageBegin('delete_partition_column_statistics', TMessageType.CALL, self._seqid)
  4296. args = delete_partition_column_statistics_args()
  4297. args.db_name = db_name
  4298. args.tbl_name = tbl_name
  4299. args.part_name = part_name
  4300. args.col_name = col_name
  4301. args.write(self._oprot)
  4302. self._oprot.writeMessageEnd()
  4303. self._oprot.trans.flush()
  4304. def recv_delete_partition_column_statistics(self):
  4305. iprot = self._iprot
  4306. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4307. if mtype == TMessageType.EXCEPTION:
  4308. x = TApplicationException()
  4309. x.read(iprot)
  4310. iprot.readMessageEnd()
  4311. raise x
  4312. result = delete_partition_column_statistics_result()
  4313. result.read(iprot)
  4314. iprot.readMessageEnd()
  4315. if result.success is not None:
  4316. return result.success
  4317. if result.o1 is not None:
  4318. raise result.o1
  4319. if result.o2 is not None:
  4320. raise result.o2
  4321. if result.o3 is not None:
  4322. raise result.o3
  4323. if result.o4 is not None:
  4324. raise result.o4
  4325. raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_partition_column_statistics failed: unknown result")
  4326. def delete_table_column_statistics(self, db_name, tbl_name, col_name):
  4327. """
  4328. Parameters:
  4329. - db_name
  4330. - tbl_name
  4331. - col_name
  4332. """
  4333. self.send_delete_table_column_statistics(db_name, tbl_name, col_name)
  4334. return self.recv_delete_table_column_statistics()
  4335. def send_delete_table_column_statistics(self, db_name, tbl_name, col_name):
  4336. self._oprot.writeMessageBegin('delete_table_column_statistics', TMessageType.CALL, self._seqid)
  4337. args = delete_table_column_statistics_args()
  4338. args.db_name = db_name
  4339. args.tbl_name = tbl_name
  4340. args.col_name = col_name
  4341. args.write(self._oprot)
  4342. self._oprot.writeMessageEnd()
  4343. self._oprot.trans.flush()
  4344. def recv_delete_table_column_statistics(self):
  4345. iprot = self._iprot
  4346. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4347. if mtype == TMessageType.EXCEPTION:
  4348. x = TApplicationException()
  4349. x.read(iprot)
  4350. iprot.readMessageEnd()
  4351. raise x
  4352. result = delete_table_column_statistics_result()
  4353. result.read(iprot)
  4354. iprot.readMessageEnd()
  4355. if result.success is not None:
  4356. return result.success
  4357. if result.o1 is not None:
  4358. raise result.o1
  4359. if result.o2 is not None:
  4360. raise result.o2
  4361. if result.o3 is not None:
  4362. raise result.o3
  4363. if result.o4 is not None:
  4364. raise result.o4
  4365. raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_table_column_statistics failed: unknown result")
  4366. def create_function(self, func):
  4367. """
  4368. Parameters:
  4369. - func
  4370. """
  4371. self.send_create_function(func)
  4372. self.recv_create_function()
  4373. def send_create_function(self, func):
  4374. self._oprot.writeMessageBegin('create_function', TMessageType.CALL, self._seqid)
  4375. args = create_function_args()
  4376. args.func = func
  4377. args.write(self._oprot)
  4378. self._oprot.writeMessageEnd()
  4379. self._oprot.trans.flush()
  4380. def recv_create_function(self):
  4381. iprot = self._iprot
  4382. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4383. if mtype == TMessageType.EXCEPTION:
  4384. x = TApplicationException()
  4385. x.read(iprot)
  4386. iprot.readMessageEnd()
  4387. raise x
  4388. result = create_function_result()
  4389. result.read(iprot)
  4390. iprot.readMessageEnd()
  4391. if result.o1 is not None:
  4392. raise result.o1
  4393. if result.o2 is not None:
  4394. raise result.o2
  4395. if result.o3 is not None:
  4396. raise result.o3
  4397. if result.o4 is not None:
  4398. raise result.o4
  4399. return
  4400. def drop_function(self, dbName, funcName):
  4401. """
  4402. Parameters:
  4403. - dbName
  4404. - funcName
  4405. """
  4406. self.send_drop_function(dbName, funcName)
  4407. self.recv_drop_function()
  4408. def send_drop_function(self, dbName, funcName):
  4409. self._oprot.writeMessageBegin('drop_function', TMessageType.CALL, self._seqid)
  4410. args = drop_function_args()
  4411. args.dbName = dbName
  4412. args.funcName = funcName
  4413. args.write(self._oprot)
  4414. self._oprot.writeMessageEnd()
  4415. self._oprot.trans.flush()
  4416. def recv_drop_function(self):
  4417. iprot = self._iprot
  4418. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4419. if mtype == TMessageType.EXCEPTION:
  4420. x = TApplicationException()
  4421. x.read(iprot)
  4422. iprot.readMessageEnd()
  4423. raise x
  4424. result = drop_function_result()
  4425. result.read(iprot)
  4426. iprot.readMessageEnd()
  4427. if result.o1 is not None:
  4428. raise result.o1
  4429. if result.o3 is not None:
  4430. raise result.o3
  4431. return
  4432. def alter_function(self, dbName, funcName, newFunc):
  4433. """
  4434. Parameters:
  4435. - dbName
  4436. - funcName
  4437. - newFunc
  4438. """
  4439. self.send_alter_function(dbName, funcName, newFunc)
  4440. self.recv_alter_function()
  4441. def send_alter_function(self, dbName, funcName, newFunc):
  4442. self._oprot.writeMessageBegin('alter_function', TMessageType.CALL, self._seqid)
  4443. args = alter_function_args()
  4444. args.dbName = dbName
  4445. args.funcName = funcName
  4446. args.newFunc = newFunc
  4447. args.write(self._oprot)
  4448. self._oprot.writeMessageEnd()
  4449. self._oprot.trans.flush()
  4450. def recv_alter_function(self):
  4451. iprot = self._iprot
  4452. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4453. if mtype == TMessageType.EXCEPTION:
  4454. x = TApplicationException()
  4455. x.read(iprot)
  4456. iprot.readMessageEnd()
  4457. raise x
  4458. result = alter_function_result()
  4459. result.read(iprot)
  4460. iprot.readMessageEnd()
  4461. if result.o1 is not None:
  4462. raise result.o1
  4463. if result.o2 is not None:
  4464. raise result.o2
  4465. return
  4466. def get_functions(self, dbName, pattern):
  4467. """
  4468. Parameters:
  4469. - dbName
  4470. - pattern
  4471. """
  4472. self.send_get_functions(dbName, pattern)
  4473. return self.recv_get_functions()
  4474. def send_get_functions(self, dbName, pattern):
  4475. self._oprot.writeMessageBegin('get_functions', TMessageType.CALL, self._seqid)
  4476. args = get_functions_args()
  4477. args.dbName = dbName
  4478. args.pattern = pattern
  4479. args.write(self._oprot)
  4480. self._oprot.writeMessageEnd()
  4481. self._oprot.trans.flush()
  4482. def recv_get_functions(self):
  4483. iprot = self._iprot
  4484. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4485. if mtype == TMessageType.EXCEPTION:
  4486. x = TApplicationException()
  4487. x.read(iprot)
  4488. iprot.readMessageEnd()
  4489. raise x
  4490. result = get_functions_result()
  4491. result.read(iprot)
  4492. iprot.readMessageEnd()
  4493. if result.success is not None:
  4494. return result.success
  4495. if result.o1 is not None:
  4496. raise result.o1
  4497. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_functions failed: unknown result")
  4498. def get_function(self, dbName, funcName):
  4499. """
  4500. Parameters:
  4501. - dbName
  4502. - funcName
  4503. """
  4504. self.send_get_function(dbName, funcName)
  4505. return self.recv_get_function()
  4506. def send_get_function(self, dbName, funcName):
  4507. self._oprot.writeMessageBegin('get_function', TMessageType.CALL, self._seqid)
  4508. args = get_function_args()
  4509. args.dbName = dbName
  4510. args.funcName = funcName
  4511. args.write(self._oprot)
  4512. self._oprot.writeMessageEnd()
  4513. self._oprot.trans.flush()
  4514. def recv_get_function(self):
  4515. iprot = self._iprot
  4516. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4517. if mtype == TMessageType.EXCEPTION:
  4518. x = TApplicationException()
  4519. x.read(iprot)
  4520. iprot.readMessageEnd()
  4521. raise x
  4522. result = get_function_result()
  4523. result.read(iprot)
  4524. iprot.readMessageEnd()
  4525. if result.success is not None:
  4526. return result.success
  4527. if result.o1 is not None:
  4528. raise result.o1
  4529. if result.o2 is not None:
  4530. raise result.o2
  4531. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_function failed: unknown result")
  4532. def get_all_functions(self):
  4533. self.send_get_all_functions()
  4534. return self.recv_get_all_functions()
  4535. def send_get_all_functions(self):
  4536. self._oprot.writeMessageBegin('get_all_functions', TMessageType.CALL, self._seqid)
  4537. args = get_all_functions_args()
  4538. args.write(self._oprot)
  4539. self._oprot.writeMessageEnd()
  4540. self._oprot.trans.flush()
  4541. def recv_get_all_functions(self):
  4542. iprot = self._iprot
  4543. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4544. if mtype == TMessageType.EXCEPTION:
  4545. x = TApplicationException()
  4546. x.read(iprot)
  4547. iprot.readMessageEnd()
  4548. raise x
  4549. result = get_all_functions_result()
  4550. result.read(iprot)
  4551. iprot.readMessageEnd()
  4552. if result.success is not None:
  4553. return result.success
  4554. if result.o1 is not None:
  4555. raise result.o1
  4556. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_functions failed: unknown result")
  4557. def create_role(self, role):
  4558. """
  4559. Parameters:
  4560. - role
  4561. """
  4562. self.send_create_role(role)
  4563. return self.recv_create_role()
  4564. def send_create_role(self, role):
  4565. self._oprot.writeMessageBegin('create_role', TMessageType.CALL, self._seqid)
  4566. args = create_role_args()
  4567. args.role = role
  4568. args.write(self._oprot)
  4569. self._oprot.writeMessageEnd()
  4570. self._oprot.trans.flush()
  4571. def recv_create_role(self):
  4572. iprot = self._iprot
  4573. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4574. if mtype == TMessageType.EXCEPTION:
  4575. x = TApplicationException()
  4576. x.read(iprot)
  4577. iprot.readMessageEnd()
  4578. raise x
  4579. result = create_role_result()
  4580. result.read(iprot)
  4581. iprot.readMessageEnd()
  4582. if result.success is not None:
  4583. return result.success
  4584. if result.o1 is not None:
  4585. raise result.o1
  4586. raise TApplicationException(TApplicationException.MISSING_RESULT, "create_role failed: unknown result")
  4587. def drop_role(self, role_name):
  4588. """
  4589. Parameters:
  4590. - role_name
  4591. """
  4592. self.send_drop_role(role_name)
  4593. return self.recv_drop_role()
  4594. def send_drop_role(self, role_name):
  4595. self._oprot.writeMessageBegin('drop_role', TMessageType.CALL, self._seqid)
  4596. args = drop_role_args()
  4597. args.role_name = role_name
  4598. args.write(self._oprot)
  4599. self._oprot.writeMessageEnd()
  4600. self._oprot.trans.flush()
  4601. def recv_drop_role(self):
  4602. iprot = self._iprot
  4603. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4604. if mtype == TMessageType.EXCEPTION:
  4605. x = TApplicationException()
  4606. x.read(iprot)
  4607. iprot.readMessageEnd()
  4608. raise x
  4609. result = drop_role_result()
  4610. result.read(iprot)
  4611. iprot.readMessageEnd()
  4612. if result.success is not None:
  4613. return result.success
  4614. if result.o1 is not None:
  4615. raise result.o1
  4616. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_role failed: unknown result")
  4617. def get_role_names(self):
  4618. self.send_get_role_names()
  4619. return self.recv_get_role_names()
  4620. def send_get_role_names(self):
  4621. self._oprot.writeMessageBegin('get_role_names', TMessageType.CALL, self._seqid)
  4622. args = get_role_names_args()
  4623. args.write(self._oprot)
  4624. self._oprot.writeMessageEnd()
  4625. self._oprot.trans.flush()
  4626. def recv_get_role_names(self):
  4627. iprot = self._iprot
  4628. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4629. if mtype == TMessageType.EXCEPTION:
  4630. x = TApplicationException()
  4631. x.read(iprot)
  4632. iprot.readMessageEnd()
  4633. raise x
  4634. result = get_role_names_result()
  4635. result.read(iprot)
  4636. iprot.readMessageEnd()
  4637. if result.success is not None:
  4638. return result.success
  4639. if result.o1 is not None:
  4640. raise result.o1
  4641. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_role_names failed: unknown result")
  4642. def grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
  4643. """
  4644. Parameters:
  4645. - role_name
  4646. - principal_name
  4647. - principal_type
  4648. - grantor
  4649. - grantorType
  4650. - grant_option
  4651. """
  4652. self.send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
  4653. return self.recv_grant_role()
  4654. def send_grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
  4655. self._oprot.writeMessageBegin('grant_role', TMessageType.CALL, self._seqid)
  4656. args = grant_role_args()
  4657. args.role_name = role_name
  4658. args.principal_name = principal_name
  4659. args.principal_type = principal_type
  4660. args.grantor = grantor
  4661. args.grantorType = grantorType
  4662. args.grant_option = grant_option
  4663. args.write(self._oprot)
  4664. self._oprot.writeMessageEnd()
  4665. self._oprot.trans.flush()
  4666. def recv_grant_role(self):
  4667. iprot = self._iprot
  4668. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4669. if mtype == TMessageType.EXCEPTION:
  4670. x = TApplicationException()
  4671. x.read(iprot)
  4672. iprot.readMessageEnd()
  4673. raise x
  4674. result = grant_role_result()
  4675. result.read(iprot)
  4676. iprot.readMessageEnd()
  4677. if result.success is not None:
  4678. return result.success
  4679. if result.o1 is not None:
  4680. raise result.o1
  4681. raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_role failed: unknown result")
  4682. def revoke_role(self, role_name, principal_name, principal_type):
  4683. """
  4684. Parameters:
  4685. - role_name
  4686. - principal_name
  4687. - principal_type
  4688. """
  4689. self.send_revoke_role(role_name, principal_name, principal_type)
  4690. return self.recv_revoke_role()
  4691. def send_revoke_role(self, role_name, principal_name, principal_type):
  4692. self._oprot.writeMessageBegin('revoke_role', TMessageType.CALL, self._seqid)
  4693. args = revoke_role_args()
  4694. args.role_name = role_name
  4695. args.principal_name = principal_name
  4696. args.principal_type = principal_type
  4697. args.write(self._oprot)
  4698. self._oprot.writeMessageEnd()
  4699. self._oprot.trans.flush()
  4700. def recv_revoke_role(self):
  4701. iprot = self._iprot
  4702. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4703. if mtype == TMessageType.EXCEPTION:
  4704. x = TApplicationException()
  4705. x.read(iprot)
  4706. iprot.readMessageEnd()
  4707. raise x
  4708. result = revoke_role_result()
  4709. result.read(iprot)
  4710. iprot.readMessageEnd()
  4711. if result.success is not None:
  4712. return result.success
  4713. if result.o1 is not None:
  4714. raise result.o1
  4715. raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_role failed: unknown result")
  4716. def list_roles(self, principal_name, principal_type):
  4717. """
  4718. Parameters:
  4719. - principal_name
  4720. - principal_type
  4721. """
  4722. self.send_list_roles(principal_name, principal_type)
  4723. return self.recv_list_roles()
  4724. def send_list_roles(self, principal_name, principal_type):
  4725. self._oprot.writeMessageBegin('list_roles', TMessageType.CALL, self._seqid)
  4726. args = list_roles_args()
  4727. args.principal_name = principal_name
  4728. args.principal_type = principal_type
  4729. args.write(self._oprot)
  4730. self._oprot.writeMessageEnd()
  4731. self._oprot.trans.flush()
  4732. def recv_list_roles(self):
  4733. iprot = self._iprot
  4734. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4735. if mtype == TMessageType.EXCEPTION:
  4736. x = TApplicationException()
  4737. x.read(iprot)
  4738. iprot.readMessageEnd()
  4739. raise x
  4740. result = list_roles_result()
  4741. result.read(iprot)
  4742. iprot.readMessageEnd()
  4743. if result.success is not None:
  4744. return result.success
  4745. if result.o1 is not None:
  4746. raise result.o1
  4747. raise TApplicationException(TApplicationException.MISSING_RESULT, "list_roles failed: unknown result")
  4748. def grant_revoke_role(self, request):
  4749. """
  4750. Parameters:
  4751. - request
  4752. """
  4753. self.send_grant_revoke_role(request)
  4754. return self.recv_grant_revoke_role()
  4755. def send_grant_revoke_role(self, request):
  4756. self._oprot.writeMessageBegin('grant_revoke_role', TMessageType.CALL, self._seqid)
  4757. args = grant_revoke_role_args()
  4758. args.request = request
  4759. args.write(self._oprot)
  4760. self._oprot.writeMessageEnd()
  4761. self._oprot.trans.flush()
  4762. def recv_grant_revoke_role(self):
  4763. iprot = self._iprot
  4764. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4765. if mtype == TMessageType.EXCEPTION:
  4766. x = TApplicationException()
  4767. x.read(iprot)
  4768. iprot.readMessageEnd()
  4769. raise x
  4770. result = grant_revoke_role_result()
  4771. result.read(iprot)
  4772. iprot.readMessageEnd()
  4773. if result.success is not None:
  4774. return result.success
  4775. if result.o1 is not None:
  4776. raise result.o1
  4777. raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_revoke_role failed: unknown result")
  4778. def get_principals_in_role(self, request):
  4779. """
  4780. Parameters:
  4781. - request
  4782. """
  4783. self.send_get_principals_in_role(request)
  4784. return self.recv_get_principals_in_role()
  4785. def send_get_principals_in_role(self, request):
  4786. self._oprot.writeMessageBegin('get_principals_in_role', TMessageType.CALL, self._seqid)
  4787. args = get_principals_in_role_args()
  4788. args.request = request
  4789. args.write(self._oprot)
  4790. self._oprot.writeMessageEnd()
  4791. self._oprot.trans.flush()
  4792. def recv_get_principals_in_role(self):
  4793. iprot = self._iprot
  4794. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4795. if mtype == TMessageType.EXCEPTION:
  4796. x = TApplicationException()
  4797. x.read(iprot)
  4798. iprot.readMessageEnd()
  4799. raise x
  4800. result = get_principals_in_role_result()
  4801. result.read(iprot)
  4802. iprot.readMessageEnd()
  4803. if result.success is not None:
  4804. return result.success
  4805. if result.o1 is not None:
  4806. raise result.o1
  4807. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_principals_in_role failed: unknown result")
  4808. def get_role_grants_for_principal(self, request):
  4809. """
  4810. Parameters:
  4811. - request
  4812. """
  4813. self.send_get_role_grants_for_principal(request)
  4814. return self.recv_get_role_grants_for_principal()
  4815. def send_get_role_grants_for_principal(self, request):
  4816. self._oprot.writeMessageBegin('get_role_grants_for_principal', TMessageType.CALL, self._seqid)
  4817. args = get_role_grants_for_principal_args()
  4818. args.request = request
  4819. args.write(self._oprot)
  4820. self._oprot.writeMessageEnd()
  4821. self._oprot.trans.flush()
  4822. def recv_get_role_grants_for_principal(self):
  4823. iprot = self._iprot
  4824. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4825. if mtype == TMessageType.EXCEPTION:
  4826. x = TApplicationException()
  4827. x.read(iprot)
  4828. iprot.readMessageEnd()
  4829. raise x
  4830. result = get_role_grants_for_principal_result()
  4831. result.read(iprot)
  4832. iprot.readMessageEnd()
  4833. if result.success is not None:
  4834. return result.success
  4835. if result.o1 is not None:
  4836. raise result.o1
  4837. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_role_grants_for_principal failed: unknown result")
  4838. def get_privilege_set(self, hiveObject, user_name, group_names):
  4839. """
  4840. Parameters:
  4841. - hiveObject
  4842. - user_name
  4843. - group_names
  4844. """
  4845. self.send_get_privilege_set(hiveObject, user_name, group_names)
  4846. return self.recv_get_privilege_set()
  4847. def send_get_privilege_set(self, hiveObject, user_name, group_names):
  4848. self._oprot.writeMessageBegin('get_privilege_set', TMessageType.CALL, self._seqid)
  4849. args = get_privilege_set_args()
  4850. args.hiveObject = hiveObject
  4851. args.user_name = user_name
  4852. args.group_names = group_names
  4853. args.write(self._oprot)
  4854. self._oprot.writeMessageEnd()
  4855. self._oprot.trans.flush()
  4856. def recv_get_privilege_set(self):
  4857. iprot = self._iprot
  4858. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4859. if mtype == TMessageType.EXCEPTION:
  4860. x = TApplicationException()
  4861. x.read(iprot)
  4862. iprot.readMessageEnd()
  4863. raise x
  4864. result = get_privilege_set_result()
  4865. result.read(iprot)
  4866. iprot.readMessageEnd()
  4867. if result.success is not None:
  4868. return result.success
  4869. if result.o1 is not None:
  4870. raise result.o1
  4871. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_privilege_set failed: unknown result")
  4872. def list_privileges(self, principal_name, principal_type, hiveObject):
  4873. """
  4874. Parameters:
  4875. - principal_name
  4876. - principal_type
  4877. - hiveObject
  4878. """
  4879. self.send_list_privileges(principal_name, principal_type, hiveObject)
  4880. return self.recv_list_privileges()
  4881. def send_list_privileges(self, principal_name, principal_type, hiveObject):
  4882. self._oprot.writeMessageBegin('list_privileges', TMessageType.CALL, self._seqid)
  4883. args = list_privileges_args()
  4884. args.principal_name = principal_name
  4885. args.principal_type = principal_type
  4886. args.hiveObject = hiveObject
  4887. args.write(self._oprot)
  4888. self._oprot.writeMessageEnd()
  4889. self._oprot.trans.flush()
  4890. def recv_list_privileges(self):
  4891. iprot = self._iprot
  4892. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4893. if mtype == TMessageType.EXCEPTION:
  4894. x = TApplicationException()
  4895. x.read(iprot)
  4896. iprot.readMessageEnd()
  4897. raise x
  4898. result = list_privileges_result()
  4899. result.read(iprot)
  4900. iprot.readMessageEnd()
  4901. if result.success is not None:
  4902. return result.success
  4903. if result.o1 is not None:
  4904. raise result.o1
  4905. raise TApplicationException(TApplicationException.MISSING_RESULT, "list_privileges failed: unknown result")
  4906. def grant_privileges(self, privileges):
  4907. """
  4908. Parameters:
  4909. - privileges
  4910. """
  4911. self.send_grant_privileges(privileges)
  4912. return self.recv_grant_privileges()
  4913. def send_grant_privileges(self, privileges):
  4914. self._oprot.writeMessageBegin('grant_privileges', TMessageType.CALL, self._seqid)
  4915. args = grant_privileges_args()
  4916. args.privileges = privileges
  4917. args.write(self._oprot)
  4918. self._oprot.writeMessageEnd()
  4919. self._oprot.trans.flush()
  4920. def recv_grant_privileges(self):
  4921. iprot = self._iprot
  4922. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4923. if mtype == TMessageType.EXCEPTION:
  4924. x = TApplicationException()
  4925. x.read(iprot)
  4926. iprot.readMessageEnd()
  4927. raise x
  4928. result = grant_privileges_result()
  4929. result.read(iprot)
  4930. iprot.readMessageEnd()
  4931. if result.success is not None:
  4932. return result.success
  4933. if result.o1 is not None:
  4934. raise result.o1
  4935. raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_privileges failed: unknown result")
  4936. def revoke_privileges(self, privileges):
  4937. """
  4938. Parameters:
  4939. - privileges
  4940. """
  4941. self.send_revoke_privileges(privileges)
  4942. return self.recv_revoke_privileges()
  4943. def send_revoke_privileges(self, privileges):
  4944. self._oprot.writeMessageBegin('revoke_privileges', TMessageType.CALL, self._seqid)
  4945. args = revoke_privileges_args()
  4946. args.privileges = privileges
  4947. args.write(self._oprot)
  4948. self._oprot.writeMessageEnd()
  4949. self._oprot.trans.flush()
  4950. def recv_revoke_privileges(self):
  4951. iprot = self._iprot
  4952. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4953. if mtype == TMessageType.EXCEPTION:
  4954. x = TApplicationException()
  4955. x.read(iprot)
  4956. iprot.readMessageEnd()
  4957. raise x
  4958. result = revoke_privileges_result()
  4959. result.read(iprot)
  4960. iprot.readMessageEnd()
  4961. if result.success is not None:
  4962. return result.success
  4963. if result.o1 is not None:
  4964. raise result.o1
  4965. raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_privileges failed: unknown result")
  4966. def grant_revoke_privileges(self, request):
  4967. """
  4968. Parameters:
  4969. - request
  4970. """
  4971. self.send_grant_revoke_privileges(request)
  4972. return self.recv_grant_revoke_privileges()
  4973. def send_grant_revoke_privileges(self, request):
  4974. self._oprot.writeMessageBegin('grant_revoke_privileges', TMessageType.CALL, self._seqid)
  4975. args = grant_revoke_privileges_args()
  4976. args.request = request
  4977. args.write(self._oprot)
  4978. self._oprot.writeMessageEnd()
  4979. self._oprot.trans.flush()
  4980. def recv_grant_revoke_privileges(self):
  4981. iprot = self._iprot
  4982. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4983. if mtype == TMessageType.EXCEPTION:
  4984. x = TApplicationException()
  4985. x.read(iprot)
  4986. iprot.readMessageEnd()
  4987. raise x
  4988. result = grant_revoke_privileges_result()
  4989. result.read(iprot)
  4990. iprot.readMessageEnd()
  4991. if result.success is not None:
  4992. return result.success
  4993. if result.o1 is not None:
  4994. raise result.o1
  4995. raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_revoke_privileges failed: unknown result")
  4996. def set_ugi(self, user_name, group_names):
  4997. """
  4998. Parameters:
  4999. - user_name
  5000. - group_names
  5001. """
  5002. self.send_set_ugi(user_name, group_names)
  5003. return self.recv_set_ugi()
  5004. def send_set_ugi(self, user_name, group_names):
  5005. self._oprot.writeMessageBegin('set_ugi', TMessageType.CALL, self._seqid)
  5006. args = set_ugi_args()
  5007. args.user_name = user_name
  5008. args.group_names = group_names
  5009. args.write(self._oprot)
  5010. self._oprot.writeMessageEnd()
  5011. self._oprot.trans.flush()
  5012. def recv_set_ugi(self):
  5013. iprot = self._iprot
  5014. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5015. if mtype == TMessageType.EXCEPTION:
  5016. x = TApplicationException()
  5017. x.read(iprot)
  5018. iprot.readMessageEnd()
  5019. raise x
  5020. result = set_ugi_result()
  5021. result.read(iprot)
  5022. iprot.readMessageEnd()
  5023. if result.success is not None:
  5024. return result.success
  5025. if result.o1 is not None:
  5026. raise result.o1
  5027. raise TApplicationException(TApplicationException.MISSING_RESULT, "set_ugi failed: unknown result")
  5028. def get_delegation_token(self, token_owner, renewer_kerberos_principal_name):
  5029. """
  5030. Parameters:
  5031. - token_owner
  5032. - renewer_kerberos_principal_name
  5033. """
  5034. self.send_get_delegation_token(token_owner, renewer_kerberos_principal_name)
  5035. return self.recv_get_delegation_token()
  5036. def send_get_delegation_token(self, token_owner, renewer_kerberos_principal_name):
  5037. self._oprot.writeMessageBegin('get_delegation_token', TMessageType.CALL, self._seqid)
  5038. args = get_delegation_token_args()
  5039. args.token_owner = token_owner
  5040. args.renewer_kerberos_principal_name = renewer_kerberos_principal_name
  5041. args.write(self._oprot)
  5042. self._oprot.writeMessageEnd()
  5043. self._oprot.trans.flush()
  5044. def recv_get_delegation_token(self):
  5045. iprot = self._iprot
  5046. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5047. if mtype == TMessageType.EXCEPTION:
  5048. x = TApplicationException()
  5049. x.read(iprot)
  5050. iprot.readMessageEnd()
  5051. raise x
  5052. result = get_delegation_token_result()
  5053. result.read(iprot)
  5054. iprot.readMessageEnd()
  5055. if result.success is not None:
  5056. return result.success
  5057. if result.o1 is not None:
  5058. raise result.o1
  5059. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_delegation_token failed: unknown result")
  5060. def renew_delegation_token(self, token_str_form):
  5061. """
  5062. Parameters:
  5063. - token_str_form
  5064. """
  5065. self.send_renew_delegation_token(token_str_form)
  5066. return self.recv_renew_delegation_token()
  5067. def send_renew_delegation_token(self, token_str_form):
  5068. self._oprot.writeMessageBegin('renew_delegation_token', TMessageType.CALL, self._seqid)
  5069. args = renew_delegation_token_args()
  5070. args.token_str_form = token_str_form
  5071. args.write(self._oprot)
  5072. self._oprot.writeMessageEnd()
  5073. self._oprot.trans.flush()
  5074. def recv_renew_delegation_token(self):
  5075. iprot = self._iprot
  5076. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5077. if mtype == TMessageType.EXCEPTION:
  5078. x = TApplicationException()
  5079. x.read(iprot)
  5080. iprot.readMessageEnd()
  5081. raise x
  5082. result = renew_delegation_token_result()
  5083. result.read(iprot)
  5084. iprot.readMessageEnd()
  5085. if result.success is not None:
  5086. return result.success
  5087. if result.o1 is not None:
  5088. raise result.o1
  5089. raise TApplicationException(TApplicationException.MISSING_RESULT, "renew_delegation_token failed: unknown result")
  5090. def cancel_delegation_token(self, token_str_form):
  5091. """
  5092. Parameters:
  5093. - token_str_form
  5094. """
  5095. self.send_cancel_delegation_token(token_str_form)
  5096. self.recv_cancel_delegation_token()
  5097. def send_cancel_delegation_token(self, token_str_form):
  5098. self._oprot.writeMessageBegin('cancel_delegation_token', TMessageType.CALL, self._seqid)
  5099. args = cancel_delegation_token_args()
  5100. args.token_str_form = token_str_form
  5101. args.write(self._oprot)
  5102. self._oprot.writeMessageEnd()
  5103. self._oprot.trans.flush()
  5104. def recv_cancel_delegation_token(self):
  5105. iprot = self._iprot
  5106. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5107. if mtype == TMessageType.EXCEPTION:
  5108. x = TApplicationException()
  5109. x.read(iprot)
  5110. iprot.readMessageEnd()
  5111. raise x
  5112. result = cancel_delegation_token_result()
  5113. result.read(iprot)
  5114. iprot.readMessageEnd()
  5115. if result.o1 is not None:
  5116. raise result.o1
  5117. return
  5118. def add_token(self, token_identifier, delegation_token):
  5119. """
  5120. Parameters:
  5121. - token_identifier
  5122. - delegation_token
  5123. """
  5124. self.send_add_token(token_identifier, delegation_token)
  5125. return self.recv_add_token()
  5126. def send_add_token(self, token_identifier, delegation_token):
  5127. self._oprot.writeMessageBegin('add_token', TMessageType.CALL, self._seqid)
  5128. args = add_token_args()
  5129. args.token_identifier = token_identifier
  5130. args.delegation_token = delegation_token
  5131. args.write(self._oprot)
  5132. self._oprot.writeMessageEnd()
  5133. self._oprot.trans.flush()
  5134. def recv_add_token(self):
  5135. iprot = self._iprot
  5136. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5137. if mtype == TMessageType.EXCEPTION:
  5138. x = TApplicationException()
  5139. x.read(iprot)
  5140. iprot.readMessageEnd()
  5141. raise x
  5142. result = add_token_result()
  5143. result.read(iprot)
  5144. iprot.readMessageEnd()
  5145. if result.success is not None:
  5146. return result.success
  5147. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_token failed: unknown result")
  5148. def remove_token(self, token_identifier):
  5149. """
  5150. Parameters:
  5151. - token_identifier
  5152. """
  5153. self.send_remove_token(token_identifier)
  5154. return self.recv_remove_token()
  5155. def send_remove_token(self, token_identifier):
  5156. self._oprot.writeMessageBegin('remove_token', TMessageType.CALL, self._seqid)
  5157. args = remove_token_args()
  5158. args.token_identifier = token_identifier
  5159. args.write(self._oprot)
  5160. self._oprot.writeMessageEnd()
  5161. self._oprot.trans.flush()
  5162. def recv_remove_token(self):
  5163. iprot = self._iprot
  5164. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5165. if mtype == TMessageType.EXCEPTION:
  5166. x = TApplicationException()
  5167. x.read(iprot)
  5168. iprot.readMessageEnd()
  5169. raise x
  5170. result = remove_token_result()
  5171. result.read(iprot)
  5172. iprot.readMessageEnd()
  5173. if result.success is not None:
  5174. return result.success
  5175. raise TApplicationException(TApplicationException.MISSING_RESULT, "remove_token failed: unknown result")
  5176. def get_token(self, token_identifier):
  5177. """
  5178. Parameters:
  5179. - token_identifier
  5180. """
  5181. self.send_get_token(token_identifier)
  5182. return self.recv_get_token()
  5183. def send_get_token(self, token_identifier):
  5184. self._oprot.writeMessageBegin('get_token', TMessageType.CALL, self._seqid)
  5185. args = get_token_args()
  5186. args.token_identifier = token_identifier
  5187. args.write(self._oprot)
  5188. self._oprot.writeMessageEnd()
  5189. self._oprot.trans.flush()
  5190. def recv_get_token(self):
  5191. iprot = self._iprot
  5192. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5193. if mtype == TMessageType.EXCEPTION:
  5194. x = TApplicationException()
  5195. x.read(iprot)
  5196. iprot.readMessageEnd()
  5197. raise x
  5198. result = get_token_result()
  5199. result.read(iprot)
  5200. iprot.readMessageEnd()
  5201. if result.success is not None:
  5202. return result.success
  5203. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_token failed: unknown result")
  5204. def get_all_token_identifiers(self):
  5205. self.send_get_all_token_identifiers()
  5206. return self.recv_get_all_token_identifiers()
  5207. def send_get_all_token_identifiers(self):
  5208. self._oprot.writeMessageBegin('get_all_token_identifiers', TMessageType.CALL, self._seqid)
  5209. args = get_all_token_identifiers_args()
  5210. args.write(self._oprot)
  5211. self._oprot.writeMessageEnd()
  5212. self._oprot.trans.flush()
  5213. def recv_get_all_token_identifiers(self):
  5214. iprot = self._iprot
  5215. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5216. if mtype == TMessageType.EXCEPTION:
  5217. x = TApplicationException()
  5218. x.read(iprot)
  5219. iprot.readMessageEnd()
  5220. raise x
  5221. result = get_all_token_identifiers_result()
  5222. result.read(iprot)
  5223. iprot.readMessageEnd()
  5224. if result.success is not None:
  5225. return result.success
  5226. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_token_identifiers failed: unknown result")
  5227. def add_master_key(self, key):
  5228. """
  5229. Parameters:
  5230. - key
  5231. """
  5232. self.send_add_master_key(key)
  5233. return self.recv_add_master_key()
  5234. def send_add_master_key(self, key):
  5235. self._oprot.writeMessageBegin('add_master_key', TMessageType.CALL, self._seqid)
  5236. args = add_master_key_args()
  5237. args.key = key
  5238. args.write(self._oprot)
  5239. self._oprot.writeMessageEnd()
  5240. self._oprot.trans.flush()
  5241. def recv_add_master_key(self):
  5242. iprot = self._iprot
  5243. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5244. if mtype == TMessageType.EXCEPTION:
  5245. x = TApplicationException()
  5246. x.read(iprot)
  5247. iprot.readMessageEnd()
  5248. raise x
  5249. result = add_master_key_result()
  5250. result.read(iprot)
  5251. iprot.readMessageEnd()
  5252. if result.success is not None:
  5253. return result.success
  5254. if result.o1 is not None:
  5255. raise result.o1
  5256. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_master_key failed: unknown result")
  5257. def update_master_key(self, seq_number, key):
  5258. """
  5259. Parameters:
  5260. - seq_number
  5261. - key
  5262. """
  5263. self.send_update_master_key(seq_number, key)
  5264. self.recv_update_master_key()
  5265. def send_update_master_key(self, seq_number, key):
  5266. self._oprot.writeMessageBegin('update_master_key', TMessageType.CALL, self._seqid)
  5267. args = update_master_key_args()
  5268. args.seq_number = seq_number
  5269. args.key = key
  5270. args.write(self._oprot)
  5271. self._oprot.writeMessageEnd()
  5272. self._oprot.trans.flush()
  5273. def recv_update_master_key(self):
  5274. iprot = self._iprot
  5275. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5276. if mtype == TMessageType.EXCEPTION:
  5277. x = TApplicationException()
  5278. x.read(iprot)
  5279. iprot.readMessageEnd()
  5280. raise x
  5281. result = update_master_key_result()
  5282. result.read(iprot)
  5283. iprot.readMessageEnd()
  5284. if result.o1 is not None:
  5285. raise result.o1
  5286. if result.o2 is not None:
  5287. raise result.o2
  5288. return
  5289. def remove_master_key(self, key_seq):
  5290. """
  5291. Parameters:
  5292. - key_seq
  5293. """
  5294. self.send_remove_master_key(key_seq)
  5295. return self.recv_remove_master_key()
  5296. def send_remove_master_key(self, key_seq):
  5297. self._oprot.writeMessageBegin('remove_master_key', TMessageType.CALL, self._seqid)
  5298. args = remove_master_key_args()
  5299. args.key_seq = key_seq
  5300. args.write(self._oprot)
  5301. self._oprot.writeMessageEnd()
  5302. self._oprot.trans.flush()
  5303. def recv_remove_master_key(self):
  5304. iprot = self._iprot
  5305. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5306. if mtype == TMessageType.EXCEPTION:
  5307. x = TApplicationException()
  5308. x.read(iprot)
  5309. iprot.readMessageEnd()
  5310. raise x
  5311. result = remove_master_key_result()
  5312. result.read(iprot)
  5313. iprot.readMessageEnd()
  5314. if result.success is not None:
  5315. return result.success
  5316. raise TApplicationException(TApplicationException.MISSING_RESULT, "remove_master_key failed: unknown result")
  5317. def get_master_keys(self):
  5318. self.send_get_master_keys()
  5319. return self.recv_get_master_keys()
  5320. def send_get_master_keys(self):
  5321. self._oprot.writeMessageBegin('get_master_keys', TMessageType.CALL, self._seqid)
  5322. args = get_master_keys_args()
  5323. args.write(self._oprot)
  5324. self._oprot.writeMessageEnd()
  5325. self._oprot.trans.flush()
  5326. def recv_get_master_keys(self):
  5327. iprot = self._iprot
  5328. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5329. if mtype == TMessageType.EXCEPTION:
  5330. x = TApplicationException()
  5331. x.read(iprot)
  5332. iprot.readMessageEnd()
  5333. raise x
  5334. result = get_master_keys_result()
  5335. result.read(iprot)
  5336. iprot.readMessageEnd()
  5337. if result.success is not None:
  5338. return result.success
  5339. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_master_keys failed: unknown result")
  5340. def get_open_txns(self):
  5341. self.send_get_open_txns()
  5342. return self.recv_get_open_txns()
  5343. def send_get_open_txns(self):
  5344. self._oprot.writeMessageBegin('get_open_txns', TMessageType.CALL, self._seqid)
  5345. args = get_open_txns_args()
  5346. args.write(self._oprot)
  5347. self._oprot.writeMessageEnd()
  5348. self._oprot.trans.flush()
  5349. def recv_get_open_txns(self):
  5350. iprot = self._iprot
  5351. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5352. if mtype == TMessageType.EXCEPTION:
  5353. x = TApplicationException()
  5354. x.read(iprot)
  5355. iprot.readMessageEnd()
  5356. raise x
  5357. result = get_open_txns_result()
  5358. result.read(iprot)
  5359. iprot.readMessageEnd()
  5360. if result.success is not None:
  5361. return result.success
  5362. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_open_txns failed: unknown result")
  5363. def get_open_txns_info(self):
  5364. self.send_get_open_txns_info()
  5365. return self.recv_get_open_txns_info()
  5366. def send_get_open_txns_info(self):
  5367. self._oprot.writeMessageBegin('get_open_txns_info', TMessageType.CALL, self._seqid)
  5368. args = get_open_txns_info_args()
  5369. args.write(self._oprot)
  5370. self._oprot.writeMessageEnd()
  5371. self._oprot.trans.flush()
  5372. def recv_get_open_txns_info(self):
  5373. iprot = self._iprot
  5374. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5375. if mtype == TMessageType.EXCEPTION:
  5376. x = TApplicationException()
  5377. x.read(iprot)
  5378. iprot.readMessageEnd()
  5379. raise x
  5380. result = get_open_txns_info_result()
  5381. result.read(iprot)
  5382. iprot.readMessageEnd()
  5383. if result.success is not None:
  5384. return result.success
  5385. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_open_txns_info failed: unknown result")
  5386. def open_txns(self, rqst):
  5387. """
  5388. Parameters:
  5389. - rqst
  5390. """
  5391. self.send_open_txns(rqst)
  5392. return self.recv_open_txns()
  5393. def send_open_txns(self, rqst):
  5394. self._oprot.writeMessageBegin('open_txns', TMessageType.CALL, self._seqid)
  5395. args = open_txns_args()
  5396. args.rqst = rqst
  5397. args.write(self._oprot)
  5398. self._oprot.writeMessageEnd()
  5399. self._oprot.trans.flush()
  5400. def recv_open_txns(self):
  5401. iprot = self._iprot
  5402. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5403. if mtype == TMessageType.EXCEPTION:
  5404. x = TApplicationException()
  5405. x.read(iprot)
  5406. iprot.readMessageEnd()
  5407. raise x
  5408. result = open_txns_result()
  5409. result.read(iprot)
  5410. iprot.readMessageEnd()
  5411. if result.success is not None:
  5412. return result.success
  5413. raise TApplicationException(TApplicationException.MISSING_RESULT, "open_txns failed: unknown result")
  5414. def abort_txn(self, rqst):
  5415. """
  5416. Parameters:
  5417. - rqst
  5418. """
  5419. self.send_abort_txn(rqst)
  5420. self.recv_abort_txn()
  5421. def send_abort_txn(self, rqst):
  5422. self._oprot.writeMessageBegin('abort_txn', TMessageType.CALL, self._seqid)
  5423. args = abort_txn_args()
  5424. args.rqst = rqst
  5425. args.write(self._oprot)
  5426. self._oprot.writeMessageEnd()
  5427. self._oprot.trans.flush()
  5428. def recv_abort_txn(self):
  5429. iprot = self._iprot
  5430. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5431. if mtype == TMessageType.EXCEPTION:
  5432. x = TApplicationException()
  5433. x.read(iprot)
  5434. iprot.readMessageEnd()
  5435. raise x
  5436. result = abort_txn_result()
  5437. result.read(iprot)
  5438. iprot.readMessageEnd()
  5439. if result.o1 is not None:
  5440. raise result.o1
  5441. return
  5442. def abort_txns(self, rqst):
  5443. """
  5444. Parameters:
  5445. - rqst
  5446. """
  5447. self.send_abort_txns(rqst)
  5448. self.recv_abort_txns()
  5449. def send_abort_txns(self, rqst):
  5450. self._oprot.writeMessageBegin('abort_txns', TMessageType.CALL, self._seqid)
  5451. args = abort_txns_args()
  5452. args.rqst = rqst
  5453. args.write(self._oprot)
  5454. self._oprot.writeMessageEnd()
  5455. self._oprot.trans.flush()
  5456. def recv_abort_txns(self):
  5457. iprot = self._iprot
  5458. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5459. if mtype == TMessageType.EXCEPTION:
  5460. x = TApplicationException()
  5461. x.read(iprot)
  5462. iprot.readMessageEnd()
  5463. raise x
  5464. result = abort_txns_result()
  5465. result.read(iprot)
  5466. iprot.readMessageEnd()
  5467. if result.o1 is not None:
  5468. raise result.o1
  5469. return
  5470. def commit_txn(self, rqst):
  5471. """
  5472. Parameters:
  5473. - rqst
  5474. """
  5475. self.send_commit_txn(rqst)
  5476. self.recv_commit_txn()
  5477. def send_commit_txn(self, rqst):
  5478. self._oprot.writeMessageBegin('commit_txn', TMessageType.CALL, self._seqid)
  5479. args = commit_txn_args()
  5480. args.rqst = rqst
  5481. args.write(self._oprot)
  5482. self._oprot.writeMessageEnd()
  5483. self._oprot.trans.flush()
  5484. def recv_commit_txn(self):
  5485. iprot = self._iprot
  5486. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5487. if mtype == TMessageType.EXCEPTION:
  5488. x = TApplicationException()
  5489. x.read(iprot)
  5490. iprot.readMessageEnd()
  5491. raise x
  5492. result = commit_txn_result()
  5493. result.read(iprot)
  5494. iprot.readMessageEnd()
  5495. if result.o1 is not None:
  5496. raise result.o1
  5497. if result.o2 is not None:
  5498. raise result.o2
  5499. return
  5500. def lock(self, rqst):
  5501. """
  5502. Parameters:
  5503. - rqst
  5504. """
  5505. self.send_lock(rqst)
  5506. return self.recv_lock()
  5507. def send_lock(self, rqst):
  5508. self._oprot.writeMessageBegin('lock', TMessageType.CALL, self._seqid)
  5509. args = lock_args()
  5510. args.rqst = rqst
  5511. args.write(self._oprot)
  5512. self._oprot.writeMessageEnd()
  5513. self._oprot.trans.flush()
  5514. def recv_lock(self):
  5515. iprot = self._iprot
  5516. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5517. if mtype == TMessageType.EXCEPTION:
  5518. x = TApplicationException()
  5519. x.read(iprot)
  5520. iprot.readMessageEnd()
  5521. raise x
  5522. result = lock_result()
  5523. result.read(iprot)
  5524. iprot.readMessageEnd()
  5525. if result.success is not None:
  5526. return result.success
  5527. if result.o1 is not None:
  5528. raise result.o1
  5529. if result.o2 is not None:
  5530. raise result.o2
  5531. raise TApplicationException(TApplicationException.MISSING_RESULT, "lock failed: unknown result")
  5532. def check_lock(self, rqst):
  5533. """
  5534. Parameters:
  5535. - rqst
  5536. """
  5537. self.send_check_lock(rqst)
  5538. return self.recv_check_lock()
  5539. def send_check_lock(self, rqst):
  5540. self._oprot.writeMessageBegin('check_lock', TMessageType.CALL, self._seqid)
  5541. args = check_lock_args()
  5542. args.rqst = rqst
  5543. args.write(self._oprot)
  5544. self._oprot.writeMessageEnd()
  5545. self._oprot.trans.flush()
  5546. def recv_check_lock(self):
  5547. iprot = self._iprot
  5548. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5549. if mtype == TMessageType.EXCEPTION:
  5550. x = TApplicationException()
  5551. x.read(iprot)
  5552. iprot.readMessageEnd()
  5553. raise x
  5554. result = check_lock_result()
  5555. result.read(iprot)
  5556. iprot.readMessageEnd()
  5557. if result.success is not None:
  5558. return result.success
  5559. if result.o1 is not None:
  5560. raise result.o1
  5561. if result.o2 is not None:
  5562. raise result.o2
  5563. if result.o3 is not None:
  5564. raise result.o3
  5565. raise TApplicationException(TApplicationException.MISSING_RESULT, "check_lock failed: unknown result")
  5566. def unlock(self, rqst):
  5567. """
  5568. Parameters:
  5569. - rqst
  5570. """
  5571. self.send_unlock(rqst)
  5572. self.recv_unlock()
  5573. def send_unlock(self, rqst):
  5574. self._oprot.writeMessageBegin('unlock', TMessageType.CALL, self._seqid)
  5575. args = unlock_args()
  5576. args.rqst = rqst
  5577. args.write(self._oprot)
  5578. self._oprot.writeMessageEnd()
  5579. self._oprot.trans.flush()
  5580. def recv_unlock(self):
  5581. iprot = self._iprot
  5582. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5583. if mtype == TMessageType.EXCEPTION:
  5584. x = TApplicationException()
  5585. x.read(iprot)
  5586. iprot.readMessageEnd()
  5587. raise x
  5588. result = unlock_result()
  5589. result.read(iprot)
  5590. iprot.readMessageEnd()
  5591. if result.o1 is not None:
  5592. raise result.o1
  5593. if result.o2 is not None:
  5594. raise result.o2
  5595. return
  5596. def show_locks(self, rqst):
  5597. """
  5598. Parameters:
  5599. - rqst
  5600. """
  5601. self.send_show_locks(rqst)
  5602. return self.recv_show_locks()
  5603. def send_show_locks(self, rqst):
  5604. self._oprot.writeMessageBegin('show_locks', TMessageType.CALL, self._seqid)
  5605. args = show_locks_args()
  5606. args.rqst = rqst
  5607. args.write(self._oprot)
  5608. self._oprot.writeMessageEnd()
  5609. self._oprot.trans.flush()
  5610. def recv_show_locks(self):
  5611. iprot = self._iprot
  5612. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5613. if mtype == TMessageType.EXCEPTION:
  5614. x = TApplicationException()
  5615. x.read(iprot)
  5616. iprot.readMessageEnd()
  5617. raise x
  5618. result = show_locks_result()
  5619. result.read(iprot)
  5620. iprot.readMessageEnd()
  5621. if result.success is not None:
  5622. return result.success
  5623. raise TApplicationException(TApplicationException.MISSING_RESULT, "show_locks failed: unknown result")
  5624. def heartbeat(self, ids):
  5625. """
  5626. Parameters:
  5627. - ids
  5628. """
  5629. self.send_heartbeat(ids)
  5630. self.recv_heartbeat()
  5631. def send_heartbeat(self, ids):
  5632. self._oprot.writeMessageBegin('heartbeat', TMessageType.CALL, self._seqid)
  5633. args = heartbeat_args()
  5634. args.ids = ids
  5635. args.write(self._oprot)
  5636. self._oprot.writeMessageEnd()
  5637. self._oprot.trans.flush()
  5638. def recv_heartbeat(self):
  5639. iprot = self._iprot
  5640. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5641. if mtype == TMessageType.EXCEPTION:
  5642. x = TApplicationException()
  5643. x.read(iprot)
  5644. iprot.readMessageEnd()
  5645. raise x
  5646. result = heartbeat_result()
  5647. result.read(iprot)
  5648. iprot.readMessageEnd()
  5649. if result.o1 is not None:
  5650. raise result.o1
  5651. if result.o2 is not None:
  5652. raise result.o2
  5653. if result.o3 is not None:
  5654. raise result.o3
  5655. return
  5656. def heartbeat_txn_range(self, txns):
  5657. """
  5658. Parameters:
  5659. - txns
  5660. """
  5661. self.send_heartbeat_txn_range(txns)
  5662. return self.recv_heartbeat_txn_range()
  5663. def send_heartbeat_txn_range(self, txns):
  5664. self._oprot.writeMessageBegin('heartbeat_txn_range', TMessageType.CALL, self._seqid)
  5665. args = heartbeat_txn_range_args()
  5666. args.txns = txns
  5667. args.write(self._oprot)
  5668. self._oprot.writeMessageEnd()
  5669. self._oprot.trans.flush()
  5670. def recv_heartbeat_txn_range(self):
  5671. iprot = self._iprot
  5672. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5673. if mtype == TMessageType.EXCEPTION:
  5674. x = TApplicationException()
  5675. x.read(iprot)
  5676. iprot.readMessageEnd()
  5677. raise x
  5678. result = heartbeat_txn_range_result()
  5679. result.read(iprot)
  5680. iprot.readMessageEnd()
  5681. if result.success is not None:
  5682. return result.success
  5683. raise TApplicationException(TApplicationException.MISSING_RESULT, "heartbeat_txn_range failed: unknown result")
  5684. def compact(self, rqst):
  5685. """
  5686. Parameters:
  5687. - rqst
  5688. """
  5689. self.send_compact(rqst)
  5690. self.recv_compact()
  5691. def send_compact(self, rqst):
  5692. self._oprot.writeMessageBegin('compact', TMessageType.CALL, self._seqid)
  5693. args = compact_args()
  5694. args.rqst = rqst
  5695. args.write(self._oprot)
  5696. self._oprot.writeMessageEnd()
  5697. self._oprot.trans.flush()
  5698. def recv_compact(self):
  5699. iprot = self._iprot
  5700. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5701. if mtype == TMessageType.EXCEPTION:
  5702. x = TApplicationException()
  5703. x.read(iprot)
  5704. iprot.readMessageEnd()
  5705. raise x
  5706. result = compact_result()
  5707. result.read(iprot)
  5708. iprot.readMessageEnd()
  5709. return
  5710. def show_compact(self, rqst):
  5711. """
  5712. Parameters:
  5713. - rqst
  5714. """
  5715. self.send_show_compact(rqst)
  5716. return self.recv_show_compact()
  5717. def send_show_compact(self, rqst):
  5718. self._oprot.writeMessageBegin('show_compact', TMessageType.CALL, self._seqid)
  5719. args = show_compact_args()
  5720. args.rqst = rqst
  5721. args.write(self._oprot)
  5722. self._oprot.writeMessageEnd()
  5723. self._oprot.trans.flush()
  5724. def recv_show_compact(self):
  5725. iprot = self._iprot
  5726. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5727. if mtype == TMessageType.EXCEPTION:
  5728. x = TApplicationException()
  5729. x.read(iprot)
  5730. iprot.readMessageEnd()
  5731. raise x
  5732. result = show_compact_result()
  5733. result.read(iprot)
  5734. iprot.readMessageEnd()
  5735. if result.success is not None:
  5736. return result.success
  5737. raise TApplicationException(TApplicationException.MISSING_RESULT, "show_compact failed: unknown result")
  5738. def add_dynamic_partitions(self, rqst):
  5739. """
  5740. Parameters:
  5741. - rqst
  5742. """
  5743. self.send_add_dynamic_partitions(rqst)
  5744. self.recv_add_dynamic_partitions()
  5745. def send_add_dynamic_partitions(self, rqst):
  5746. self._oprot.writeMessageBegin('add_dynamic_partitions', TMessageType.CALL, self._seqid)
  5747. args = add_dynamic_partitions_args()
  5748. args.rqst = rqst
  5749. args.write(self._oprot)
  5750. self._oprot.writeMessageEnd()
  5751. self._oprot.trans.flush()
  5752. def recv_add_dynamic_partitions(self):
  5753. iprot = self._iprot
  5754. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5755. if mtype == TMessageType.EXCEPTION:
  5756. x = TApplicationException()
  5757. x.read(iprot)
  5758. iprot.readMessageEnd()
  5759. raise x
  5760. result = add_dynamic_partitions_result()
  5761. result.read(iprot)
  5762. iprot.readMessageEnd()
  5763. if result.o1 is not None:
  5764. raise result.o1
  5765. if result.o2 is not None:
  5766. raise result.o2
  5767. return
  5768. def get_next_notification(self, rqst):
  5769. """
  5770. Parameters:
  5771. - rqst
  5772. """
  5773. self.send_get_next_notification(rqst)
  5774. return self.recv_get_next_notification()
  5775. def send_get_next_notification(self, rqst):
  5776. self._oprot.writeMessageBegin('get_next_notification', TMessageType.CALL, self._seqid)
  5777. args = get_next_notification_args()
  5778. args.rqst = rqst
  5779. args.write(self._oprot)
  5780. self._oprot.writeMessageEnd()
  5781. self._oprot.trans.flush()
  5782. def recv_get_next_notification(self):
  5783. iprot = self._iprot
  5784. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5785. if mtype == TMessageType.EXCEPTION:
  5786. x = TApplicationException()
  5787. x.read(iprot)
  5788. iprot.readMessageEnd()
  5789. raise x
  5790. result = get_next_notification_result()
  5791. result.read(iprot)
  5792. iprot.readMessageEnd()
  5793. if result.success is not None:
  5794. return result.success
  5795. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_next_notification failed: unknown result")
  5796. def get_current_notificationEventId(self):
  5797. self.send_get_current_notificationEventId()
  5798. return self.recv_get_current_notificationEventId()
  5799. def send_get_current_notificationEventId(self):
  5800. self._oprot.writeMessageBegin('get_current_notificationEventId', TMessageType.CALL, self._seqid)
  5801. args = get_current_notificationEventId_args()
  5802. args.write(self._oprot)
  5803. self._oprot.writeMessageEnd()
  5804. self._oprot.trans.flush()
  5805. def recv_get_current_notificationEventId(self):
  5806. iprot = self._iprot
  5807. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5808. if mtype == TMessageType.EXCEPTION:
  5809. x = TApplicationException()
  5810. x.read(iprot)
  5811. iprot.readMessageEnd()
  5812. raise x
  5813. result = get_current_notificationEventId_result()
  5814. result.read(iprot)
  5815. iprot.readMessageEnd()
  5816. if result.success is not None:
  5817. return result.success
  5818. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_current_notificationEventId failed: unknown result")
  5819. def fire_listener_event(self, rqst):
  5820. """
  5821. Parameters:
  5822. - rqst
  5823. """
  5824. self.send_fire_listener_event(rqst)
  5825. return self.recv_fire_listener_event()
  5826. def send_fire_listener_event(self, rqst):
  5827. self._oprot.writeMessageBegin('fire_listener_event', TMessageType.CALL, self._seqid)
  5828. args = fire_listener_event_args()
  5829. args.rqst = rqst
  5830. args.write(self._oprot)
  5831. self._oprot.writeMessageEnd()
  5832. self._oprot.trans.flush()
  5833. def recv_fire_listener_event(self):
  5834. iprot = self._iprot
  5835. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5836. if mtype == TMessageType.EXCEPTION:
  5837. x = TApplicationException()
  5838. x.read(iprot)
  5839. iprot.readMessageEnd()
  5840. raise x
  5841. result = fire_listener_event_result()
  5842. result.read(iprot)
  5843. iprot.readMessageEnd()
  5844. if result.success is not None:
  5845. return result.success
  5846. raise TApplicationException(TApplicationException.MISSING_RESULT, "fire_listener_event failed: unknown result")
  5847. def flushCache(self):
  5848. self.send_flushCache()
  5849. self.recv_flushCache()
  5850. def send_flushCache(self):
  5851. self._oprot.writeMessageBegin('flushCache', TMessageType.CALL, self._seqid)
  5852. args = flushCache_args()
  5853. args.write(self._oprot)
  5854. self._oprot.writeMessageEnd()
  5855. self._oprot.trans.flush()
  5856. def recv_flushCache(self):
  5857. iprot = self._iprot
  5858. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5859. if mtype == TMessageType.EXCEPTION:
  5860. x = TApplicationException()
  5861. x.read(iprot)
  5862. iprot.readMessageEnd()
  5863. raise x
  5864. result = flushCache_result()
  5865. result.read(iprot)
  5866. iprot.readMessageEnd()
  5867. return
  5868. def get_file_metadata_by_expr(self, req):
  5869. """
  5870. Parameters:
  5871. - req
  5872. """
  5873. self.send_get_file_metadata_by_expr(req)
  5874. return self.recv_get_file_metadata_by_expr()
  5875. def send_get_file_metadata_by_expr(self, req):
  5876. self._oprot.writeMessageBegin('get_file_metadata_by_expr', TMessageType.CALL, self._seqid)
  5877. args = get_file_metadata_by_expr_args()
  5878. args.req = req
  5879. args.write(self._oprot)
  5880. self._oprot.writeMessageEnd()
  5881. self._oprot.trans.flush()
  5882. def recv_get_file_metadata_by_expr(self):
  5883. iprot = self._iprot
  5884. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5885. if mtype == TMessageType.EXCEPTION:
  5886. x = TApplicationException()
  5887. x.read(iprot)
  5888. iprot.readMessageEnd()
  5889. raise x
  5890. result = get_file_metadata_by_expr_result()
  5891. result.read(iprot)
  5892. iprot.readMessageEnd()
  5893. if result.success is not None:
  5894. return result.success
  5895. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_file_metadata_by_expr failed: unknown result")
  5896. def get_file_metadata(self, req):
  5897. """
  5898. Parameters:
  5899. - req
  5900. """
  5901. self.send_get_file_metadata(req)
  5902. return self.recv_get_file_metadata()
  5903. def send_get_file_metadata(self, req):
  5904. self._oprot.writeMessageBegin('get_file_metadata', TMessageType.CALL, self._seqid)
  5905. args = get_file_metadata_args()
  5906. args.req = req
  5907. args.write(self._oprot)
  5908. self._oprot.writeMessageEnd()
  5909. self._oprot.trans.flush()
  5910. def recv_get_file_metadata(self):
  5911. iprot = self._iprot
  5912. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5913. if mtype == TMessageType.EXCEPTION:
  5914. x = TApplicationException()
  5915. x.read(iprot)
  5916. iprot.readMessageEnd()
  5917. raise x
  5918. result = get_file_metadata_result()
  5919. result.read(iprot)
  5920. iprot.readMessageEnd()
  5921. if result.success is not None:
  5922. return result.success
  5923. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_file_metadata failed: unknown result")
  5924. def put_file_metadata(self, req):
  5925. """
  5926. Parameters:
  5927. - req
  5928. """
  5929. self.send_put_file_metadata(req)
  5930. return self.recv_put_file_metadata()
  5931. def send_put_file_metadata(self, req):
  5932. self._oprot.writeMessageBegin('put_file_metadata', TMessageType.CALL, self._seqid)
  5933. args = put_file_metadata_args()
  5934. args.req = req
  5935. args.write(self._oprot)
  5936. self._oprot.writeMessageEnd()
  5937. self._oprot.trans.flush()
  5938. def recv_put_file_metadata(self):
  5939. iprot = self._iprot
  5940. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5941. if mtype == TMessageType.EXCEPTION:
  5942. x = TApplicationException()
  5943. x.read(iprot)
  5944. iprot.readMessageEnd()
  5945. raise x
  5946. result = put_file_metadata_result()
  5947. result.read(iprot)
  5948. iprot.readMessageEnd()
  5949. if result.success is not None:
  5950. return result.success
  5951. raise TApplicationException(TApplicationException.MISSING_RESULT, "put_file_metadata failed: unknown result")
  5952. def clear_file_metadata(self, req):
  5953. """
  5954. Parameters:
  5955. - req
  5956. """
  5957. self.send_clear_file_metadata(req)
  5958. return self.recv_clear_file_metadata()
  5959. def send_clear_file_metadata(self, req):
  5960. self._oprot.writeMessageBegin('clear_file_metadata', TMessageType.CALL, self._seqid)
  5961. args = clear_file_metadata_args()
  5962. args.req = req
  5963. args.write(self._oprot)
  5964. self._oprot.writeMessageEnd()
  5965. self._oprot.trans.flush()
  5966. def recv_clear_file_metadata(self):
  5967. iprot = self._iprot
  5968. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5969. if mtype == TMessageType.EXCEPTION:
  5970. x = TApplicationException()
  5971. x.read(iprot)
  5972. iprot.readMessageEnd()
  5973. raise x
  5974. result = clear_file_metadata_result()
  5975. result.read(iprot)
  5976. iprot.readMessageEnd()
  5977. if result.success is not None:
  5978. return result.success
  5979. raise TApplicationException(TApplicationException.MISSING_RESULT, "clear_file_metadata failed: unknown result")
  5980. def cache_file_metadata(self, req):
  5981. """
  5982. Parameters:
  5983. - req
  5984. """
  5985. self.send_cache_file_metadata(req)
  5986. return self.recv_cache_file_metadata()
  5987. def send_cache_file_metadata(self, req):
  5988. self._oprot.writeMessageBegin('cache_file_metadata', TMessageType.CALL, self._seqid)
  5989. args = cache_file_metadata_args()
  5990. args.req = req
  5991. args.write(self._oprot)
  5992. self._oprot.writeMessageEnd()
  5993. self._oprot.trans.flush()
  5994. def recv_cache_file_metadata(self):
  5995. iprot = self._iprot
  5996. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5997. if mtype == TMessageType.EXCEPTION:
  5998. x = TApplicationException()
  5999. x.read(iprot)
  6000. iprot.readMessageEnd()
  6001. raise x
  6002. result = cache_file_metadata_result()
  6003. result.read(iprot)
  6004. iprot.readMessageEnd()
  6005. if result.success is not None:
  6006. return result.success
  6007. raise TApplicationException(TApplicationException.MISSING_RESULT, "cache_file_metadata failed: unknown result")
  6008. def get_metastore_db_uuid(self):
  6009. self.send_get_metastore_db_uuid()
  6010. return self.recv_get_metastore_db_uuid()
  6011. def send_get_metastore_db_uuid(self):
  6012. self._oprot.writeMessageBegin('get_metastore_db_uuid', TMessageType.CALL, self._seqid)
  6013. args = get_metastore_db_uuid_args()
  6014. args.write(self._oprot)
  6015. self._oprot.writeMessageEnd()
  6016. self._oprot.trans.flush()
  6017. def recv_get_metastore_db_uuid(self):
  6018. iprot = self._iprot
  6019. (fname, mtype, rseqid) = iprot.readMessageBegin()
  6020. if mtype == TMessageType.EXCEPTION:
  6021. x = TApplicationException()
  6022. x.read(iprot)
  6023. iprot.readMessageEnd()
  6024. raise x
  6025. result = get_metastore_db_uuid_result()
  6026. result.read(iprot)
  6027. iprot.readMessageEnd()
  6028. if result.success is not None:
  6029. return result.success
  6030. if result.o1 is not None:
  6031. raise result.o1
  6032. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_metastore_db_uuid failed: unknown result")
  6033. def get_partitions_with_specs(self, request):
  6034. """
  6035. Parameters:
  6036. - request
  6037. """
  6038. self.send_get_partitions_with_specs(request)
  6039. return self.recv_get_partitions_with_specs()
  6040. def send_get_partitions_with_specs(self, request):
  6041. self._oprot.writeMessageBegin('get_partitions_with_specs', TMessageType.CALL, self._seqid)
  6042. args = get_partitions_with_specs_args()
  6043. args.request = request
  6044. args.write(self._oprot)
  6045. self._oprot.writeMessageEnd()
  6046. self._oprot.trans.flush()
  6047. def recv_get_partitions_with_specs(self):
  6048. iprot = self._iprot
  6049. (fname, mtype, rseqid) = iprot.readMessageBegin()
  6050. if mtype == TMessageType.EXCEPTION:
  6051. x = TApplicationException()
  6052. x.read(iprot)
  6053. iprot.readMessageEnd()
  6054. raise x
  6055. result = get_partitions_with_specs_result()
  6056. result.read(iprot)
  6057. iprot.readMessageEnd()
  6058. if result.success is not None:
  6059. return result.success
  6060. if result.o1 is not None:
  6061. raise result.o1
  6062. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_with_specs failed: unknown result")
  6063. class Processor(fb303.FacebookService.Processor, Iface, TProcessor):
  6064. def __init__(self, handler):
  6065. fb303.FacebookService.Processor.__init__(self, handler)
  6066. self._processMap["getMetaConf"] = Processor.process_getMetaConf
  6067. self._processMap["setMetaConf"] = Processor.process_setMetaConf
  6068. self._processMap["create_database"] = Processor.process_create_database
  6069. self._processMap["get_database"] = Processor.process_get_database
  6070. self._processMap["drop_database"] = Processor.process_drop_database
  6071. self._processMap["get_databases"] = Processor.process_get_databases
  6072. self._processMap["get_all_databases"] = Processor.process_get_all_databases
  6073. self._processMap["alter_database"] = Processor.process_alter_database
  6074. self._processMap["get_type"] = Processor.process_get_type
  6075. self._processMap["create_type"] = Processor.process_create_type
  6076. self._processMap["drop_type"] = Processor.process_drop_type
  6077. self._processMap["get_type_all"] = Processor.process_get_type_all
  6078. self._processMap["get_fields"] = Processor.process_get_fields
  6079. self._processMap["get_fields_with_environment_context"] = Processor.process_get_fields_with_environment_context
  6080. self._processMap["get_schema"] = Processor.process_get_schema
  6081. self._processMap["get_schema_with_environment_context"] = Processor.process_get_schema_with_environment_context
  6082. self._processMap["create_table"] = Processor.process_create_table
  6083. self._processMap["create_table_with_environment_context"] = Processor.process_create_table_with_environment_context
  6084. self._processMap["create_table_with_constraints"] = Processor.process_create_table_with_constraints
  6085. self._processMap["drop_constraint"] = Processor.process_drop_constraint
  6086. self._processMap["add_primary_key"] = Processor.process_add_primary_key
  6087. self._processMap["add_foreign_key"] = Processor.process_add_foreign_key
  6088. self._processMap["drop_table"] = Processor.process_drop_table
  6089. self._processMap["drop_table_with_environment_context"] = Processor.process_drop_table_with_environment_context
  6090. self._processMap["get_tables"] = Processor.process_get_tables
  6091. self._processMap["get_table_meta"] = Processor.process_get_table_meta
  6092. self._processMap["get_all_tables"] = Processor.process_get_all_tables
  6093. self._processMap["get_table"] = Processor.process_get_table
  6094. self._processMap["get_table_objects_by_name"] = Processor.process_get_table_objects_by_name
  6095. self._processMap["get_table_names_by_filter"] = Processor.process_get_table_names_by_filter
  6096. self._processMap["alter_table"] = Processor.process_alter_table
  6097. self._processMap["alter_table_with_environment_context"] = Processor.process_alter_table_with_environment_context
  6098. self._processMap["alter_table_with_cascade"] = Processor.process_alter_table_with_cascade
  6099. self._processMap["add_partition"] = Processor.process_add_partition
  6100. self._processMap["add_partition_with_environment_context"] = Processor.process_add_partition_with_environment_context
  6101. self._processMap["add_partitions"] = Processor.process_add_partitions
  6102. self._processMap["add_partitions_pspec"] = Processor.process_add_partitions_pspec
  6103. self._processMap["append_partition"] = Processor.process_append_partition
  6104. self._processMap["add_partitions_req"] = Processor.process_add_partitions_req
  6105. self._processMap["append_partition_with_environment_context"] = Processor.process_append_partition_with_environment_context
  6106. self._processMap["append_partition_by_name"] = Processor.process_append_partition_by_name
  6107. self._processMap["append_partition_by_name_with_environment_context"] = Processor.process_append_partition_by_name_with_environment_context
  6108. self._processMap["drop_partition"] = Processor.process_drop_partition
  6109. self._processMap["drop_partition_with_environment_context"] = Processor.process_drop_partition_with_environment_context
  6110. self._processMap["drop_partition_by_name"] = Processor.process_drop_partition_by_name
  6111. self._processMap["drop_partition_by_name_with_environment_context"] = Processor.process_drop_partition_by_name_with_environment_context
  6112. self._processMap["drop_partitions_req"] = Processor.process_drop_partitions_req
  6113. self._processMap["get_partition"] = Processor.process_get_partition
  6114. self._processMap["exchange_partition"] = Processor.process_exchange_partition
  6115. self._processMap["exchange_partitions"] = Processor.process_exchange_partitions
  6116. self._processMap["get_partition_with_auth"] = Processor.process_get_partition_with_auth
  6117. self._processMap["get_partition_by_name"] = Processor.process_get_partition_by_name
  6118. self._processMap["get_partitions"] = Processor.process_get_partitions
  6119. self._processMap["get_partitions_with_auth"] = Processor.process_get_partitions_with_auth
  6120. self._processMap["get_partitions_pspec"] = Processor.process_get_partitions_pspec
  6121. self._processMap["get_partition_names"] = Processor.process_get_partition_names
  6122. self._processMap["get_partitions_ps"] = Processor.process_get_partitions_ps
  6123. self._processMap["get_partitions_ps_with_auth"] = Processor.process_get_partitions_ps_with_auth
  6124. self._processMap["get_partition_names_ps"] = Processor.process_get_partition_names_ps
  6125. self._processMap["get_partitions_by_filter"] = Processor.process_get_partitions_by_filter
  6126. self._processMap["get_part_specs_by_filter"] = Processor.process_get_part_specs_by_filter
  6127. self._processMap["get_partitions_by_expr"] = Processor.process_get_partitions_by_expr
  6128. self._processMap["get_num_partitions_by_filter"] = Processor.process_get_num_partitions_by_filter
  6129. self._processMap["get_partitions_by_names"] = Processor.process_get_partitions_by_names
  6130. self._processMap["alter_partition"] = Processor.process_alter_partition
  6131. self._processMap["alter_partitions"] = Processor.process_alter_partitions
  6132. self._processMap["alter_partitions_with_environment_context"] = Processor.process_alter_partitions_with_environment_context
  6133. self._processMap["alter_partition_with_environment_context"] = Processor.process_alter_partition_with_environment_context
  6134. self._processMap["rename_partition"] = Processor.process_rename_partition
  6135. self._processMap["partition_name_has_valid_characters"] = Processor.process_partition_name_has_valid_characters
  6136. self._processMap["get_config_value"] = Processor.process_get_config_value
  6137. self._processMap["partition_name_to_vals"] = Processor.process_partition_name_to_vals
  6138. self._processMap["partition_name_to_spec"] = Processor.process_partition_name_to_spec
  6139. self._processMap["markPartitionForEvent"] = Processor.process_markPartitionForEvent
  6140. self._processMap["isPartitionMarkedForEvent"] = Processor.process_isPartitionMarkedForEvent
  6141. self._processMap["add_index"] = Processor.process_add_index
  6142. self._processMap["alter_index"] = Processor.process_alter_index
  6143. self._processMap["drop_index_by_name"] = Processor.process_drop_index_by_name
  6144. self._processMap["get_index_by_name"] = Processor.process_get_index_by_name
  6145. self._processMap["get_indexes"] = Processor.process_get_indexes
  6146. self._processMap["get_index_names"] = Processor.process_get_index_names
  6147. self._processMap["get_primary_keys"] = Processor.process_get_primary_keys
  6148. self._processMap["get_foreign_keys"] = Processor.process_get_foreign_keys
  6149. self._processMap["update_table_column_statistics"] = Processor.process_update_table_column_statistics
  6150. self._processMap["update_partition_column_statistics"] = Processor.process_update_partition_column_statistics
  6151. self._processMap["get_table_column_statistics"] = Processor.process_get_table_column_statistics
  6152. self._processMap["get_partition_column_statistics"] = Processor.process_get_partition_column_statistics
  6153. self._processMap["get_table_statistics_req"] = Processor.process_get_table_statistics_req
  6154. self._processMap["get_partitions_statistics_req"] = Processor.process_get_partitions_statistics_req
  6155. self._processMap["get_aggr_stats_for"] = Processor.process_get_aggr_stats_for
  6156. self._processMap["set_aggr_stats_for"] = Processor.process_set_aggr_stats_for
  6157. self._processMap["delete_partition_column_statistics"] = Processor.process_delete_partition_column_statistics
  6158. self._processMap["delete_table_column_statistics"] = Processor.process_delete_table_column_statistics
  6159. self._processMap["create_function"] = Processor.process_create_function
  6160. self._processMap["drop_function"] = Processor.process_drop_function
  6161. self._processMap["alter_function"] = Processor.process_alter_function
  6162. self._processMap["get_functions"] = Processor.process_get_functions
  6163. self._processMap["get_function"] = Processor.process_get_function
  6164. self._processMap["get_all_functions"] = Processor.process_get_all_functions
  6165. self._processMap["create_role"] = Processor.process_create_role
  6166. self._processMap["drop_role"] = Processor.process_drop_role
  6167. self._processMap["get_role_names"] = Processor.process_get_role_names
  6168. self._processMap["grant_role"] = Processor.process_grant_role
  6169. self._processMap["revoke_role"] = Processor.process_revoke_role
  6170. self._processMap["list_roles"] = Processor.process_list_roles
  6171. self._processMap["grant_revoke_role"] = Processor.process_grant_revoke_role
  6172. self._processMap["get_principals_in_role"] = Processor.process_get_principals_in_role
  6173. self._processMap["get_role_grants_for_principal"] = Processor.process_get_role_grants_for_principal
  6174. self._processMap["get_privilege_set"] = Processor.process_get_privilege_set
  6175. self._processMap["list_privileges"] = Processor.process_list_privileges
  6176. self._processMap["grant_privileges"] = Processor.process_grant_privileges
  6177. self._processMap["revoke_privileges"] = Processor.process_revoke_privileges
  6178. self._processMap["grant_revoke_privileges"] = Processor.process_grant_revoke_privileges
  6179. self._processMap["set_ugi"] = Processor.process_set_ugi
  6180. self._processMap["get_delegation_token"] = Processor.process_get_delegation_token
  6181. self._processMap["renew_delegation_token"] = Processor.process_renew_delegation_token
  6182. self._processMap["cancel_delegation_token"] = Processor.process_cancel_delegation_token
  6183. self._processMap["add_token"] = Processor.process_add_token
  6184. self._processMap["remove_token"] = Processor.process_remove_token
  6185. self._processMap["get_token"] = Processor.process_get_token
  6186. self._processMap["get_all_token_identifiers"] = Processor.process_get_all_token_identifiers
  6187. self._processMap["add_master_key"] = Processor.process_add_master_key
  6188. self._processMap["update_master_key"] = Processor.process_update_master_key
  6189. self._processMap["remove_master_key"] = Processor.process_remove_master_key
  6190. self._processMap["get_master_keys"] = Processor.process_get_master_keys
  6191. self._processMap["get_open_txns"] = Processor.process_get_open_txns
  6192. self._processMap["get_open_txns_info"] = Processor.process_get_open_txns_info
  6193. self._processMap["open_txns"] = Processor.process_open_txns
  6194. self._processMap["abort_txn"] = Processor.process_abort_txn
  6195. self._processMap["abort_txns"] = Processor.process_abort_txns
  6196. self._processMap["commit_txn"] = Processor.process_commit_txn
  6197. self._processMap["lock"] = Processor.process_lock
  6198. self._processMap["check_lock"] = Processor.process_check_lock
  6199. self._processMap["unlock"] = Processor.process_unlock
  6200. self._processMap["show_locks"] = Processor.process_show_locks
  6201. self._processMap["heartbeat"] = Processor.process_heartbeat
  6202. self._processMap["heartbeat_txn_range"] = Processor.process_heartbeat_txn_range
  6203. self._processMap["compact"] = Processor.process_compact
  6204. self._processMap["show_compact"] = Processor.process_show_compact
  6205. self._processMap["add_dynamic_partitions"] = Processor.process_add_dynamic_partitions
  6206. self._processMap["get_next_notification"] = Processor.process_get_next_notification
  6207. self._processMap["get_current_notificationEventId"] = Processor.process_get_current_notificationEventId
  6208. self._processMap["fire_listener_event"] = Processor.process_fire_listener_event
  6209. self._processMap["flushCache"] = Processor.process_flushCache
  6210. self._processMap["get_file_metadata_by_expr"] = Processor.process_get_file_metadata_by_expr
  6211. self._processMap["get_file_metadata"] = Processor.process_get_file_metadata
  6212. self._processMap["put_file_metadata"] = Processor.process_put_file_metadata
  6213. self._processMap["clear_file_metadata"] = Processor.process_clear_file_metadata
  6214. self._processMap["cache_file_metadata"] = Processor.process_cache_file_metadata
  6215. self._processMap["get_metastore_db_uuid"] = Processor.process_get_metastore_db_uuid
  6216. self._processMap["get_partitions_with_specs"] = Processor.process_get_partitions_with_specs
  6217. def process(self, iprot, oprot):
  6218. (name, type, seqid) = iprot.readMessageBegin()
  6219. if name not in self._processMap:
  6220. iprot.skip(TType.STRUCT)
  6221. iprot.readMessageEnd()
  6222. x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
  6223. oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
  6224. x.write(oprot)
  6225. oprot.writeMessageEnd()
  6226. oprot.trans.flush()
  6227. return
  6228. else:
  6229. self._processMap[name](self, seqid, iprot, oprot)
  6230. return True
  6231. def process_getMetaConf(self, seqid, iprot, oprot):
  6232. args = getMetaConf_args()
  6233. args.read(iprot)
  6234. iprot.readMessageEnd()
  6235. result = getMetaConf_result()
  6236. try:
  6237. result.success = self._handler.getMetaConf(args.key)
  6238. msg_type = TMessageType.REPLY
  6239. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6240. raise
  6241. except MetaException as o1:
  6242. msg_type = TMessageType.REPLY
  6243. result.o1 = o1
  6244. except Exception as ex:
  6245. msg_type = TMessageType.EXCEPTION
  6246. logging.exception(ex)
  6247. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6248. oprot.writeMessageBegin("getMetaConf", msg_type, seqid)
  6249. result.write(oprot)
  6250. oprot.writeMessageEnd()
  6251. oprot.trans.flush()
  6252. def process_setMetaConf(self, seqid, iprot, oprot):
  6253. args = setMetaConf_args()
  6254. args.read(iprot)
  6255. iprot.readMessageEnd()
  6256. result = setMetaConf_result()
  6257. try:
  6258. self._handler.setMetaConf(args.key, args.value)
  6259. msg_type = TMessageType.REPLY
  6260. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6261. raise
  6262. except MetaException as o1:
  6263. msg_type = TMessageType.REPLY
  6264. result.o1 = o1
  6265. except Exception as ex:
  6266. msg_type = TMessageType.EXCEPTION
  6267. logging.exception(ex)
  6268. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6269. oprot.writeMessageBegin("setMetaConf", msg_type, seqid)
  6270. result.write(oprot)
  6271. oprot.writeMessageEnd()
  6272. oprot.trans.flush()
  6273. def process_create_database(self, seqid, iprot, oprot):
  6274. args = create_database_args()
  6275. args.read(iprot)
  6276. iprot.readMessageEnd()
  6277. result = create_database_result()
  6278. try:
  6279. self._handler.create_database(args.database)
  6280. msg_type = TMessageType.REPLY
  6281. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6282. raise
  6283. except AlreadyExistsException as o1:
  6284. msg_type = TMessageType.REPLY
  6285. result.o1 = o1
  6286. except InvalidObjectException as o2:
  6287. msg_type = TMessageType.REPLY
  6288. result.o2 = o2
  6289. except MetaException as o3:
  6290. msg_type = TMessageType.REPLY
  6291. result.o3 = o3
  6292. except Exception as ex:
  6293. msg_type = TMessageType.EXCEPTION
  6294. logging.exception(ex)
  6295. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6296. oprot.writeMessageBegin("create_database", msg_type, seqid)
  6297. result.write(oprot)
  6298. oprot.writeMessageEnd()
  6299. oprot.trans.flush()
  6300. def process_get_database(self, seqid, iprot, oprot):
  6301. args = get_database_args()
  6302. args.read(iprot)
  6303. iprot.readMessageEnd()
  6304. result = get_database_result()
  6305. try:
  6306. result.success = self._handler.get_database(args.name)
  6307. msg_type = TMessageType.REPLY
  6308. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6309. raise
  6310. except NoSuchObjectException as o1:
  6311. msg_type = TMessageType.REPLY
  6312. result.o1 = o1
  6313. except MetaException as o2:
  6314. msg_type = TMessageType.REPLY
  6315. result.o2 = o2
  6316. except Exception as ex:
  6317. msg_type = TMessageType.EXCEPTION
  6318. logging.exception(ex)
  6319. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6320. oprot.writeMessageBegin("get_database", msg_type, seqid)
  6321. result.write(oprot)
  6322. oprot.writeMessageEnd()
  6323. oprot.trans.flush()
  6324. def process_drop_database(self, seqid, iprot, oprot):
  6325. args = drop_database_args()
  6326. args.read(iprot)
  6327. iprot.readMessageEnd()
  6328. result = drop_database_result()
  6329. try:
  6330. self._handler.drop_database(args.name, args.deleteData, args.cascade)
  6331. msg_type = TMessageType.REPLY
  6332. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6333. raise
  6334. except NoSuchObjectException as o1:
  6335. msg_type = TMessageType.REPLY
  6336. result.o1 = o1
  6337. except InvalidOperationException as o2:
  6338. msg_type = TMessageType.REPLY
  6339. result.o2 = o2
  6340. except MetaException as o3:
  6341. msg_type = TMessageType.REPLY
  6342. result.o3 = o3
  6343. except Exception as ex:
  6344. msg_type = TMessageType.EXCEPTION
  6345. logging.exception(ex)
  6346. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6347. oprot.writeMessageBegin("drop_database", msg_type, seqid)
  6348. result.write(oprot)
  6349. oprot.writeMessageEnd()
  6350. oprot.trans.flush()
  6351. def process_get_databases(self, seqid, iprot, oprot):
  6352. args = get_databases_args()
  6353. args.read(iprot)
  6354. iprot.readMessageEnd()
  6355. result = get_databases_result()
  6356. try:
  6357. result.success = self._handler.get_databases(args.pattern)
  6358. msg_type = TMessageType.REPLY
  6359. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6360. raise
  6361. except MetaException as o1:
  6362. msg_type = TMessageType.REPLY
  6363. result.o1 = o1
  6364. except Exception as ex:
  6365. msg_type = TMessageType.EXCEPTION
  6366. logging.exception(ex)
  6367. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6368. oprot.writeMessageBegin("get_databases", msg_type, seqid)
  6369. result.write(oprot)
  6370. oprot.writeMessageEnd()
  6371. oprot.trans.flush()
  6372. def process_get_all_databases(self, seqid, iprot, oprot):
  6373. args = get_all_databases_args()
  6374. args.read(iprot)
  6375. iprot.readMessageEnd()
  6376. result = get_all_databases_result()
  6377. try:
  6378. result.success = self._handler.get_all_databases()
  6379. msg_type = TMessageType.REPLY
  6380. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6381. raise
  6382. except MetaException as o1:
  6383. msg_type = TMessageType.REPLY
  6384. result.o1 = o1
  6385. except Exception as ex:
  6386. msg_type = TMessageType.EXCEPTION
  6387. logging.exception(ex)
  6388. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6389. oprot.writeMessageBegin("get_all_databases", msg_type, seqid)
  6390. result.write(oprot)
  6391. oprot.writeMessageEnd()
  6392. oprot.trans.flush()
  6393. def process_alter_database(self, seqid, iprot, oprot):
  6394. args = alter_database_args()
  6395. args.read(iprot)
  6396. iprot.readMessageEnd()
  6397. result = alter_database_result()
  6398. try:
  6399. self._handler.alter_database(args.dbname, args.db)
  6400. msg_type = TMessageType.REPLY
  6401. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6402. raise
  6403. except MetaException as o1:
  6404. msg_type = TMessageType.REPLY
  6405. result.o1 = o1
  6406. except NoSuchObjectException as o2:
  6407. msg_type = TMessageType.REPLY
  6408. result.o2 = o2
  6409. except Exception as ex:
  6410. msg_type = TMessageType.EXCEPTION
  6411. logging.exception(ex)
  6412. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6413. oprot.writeMessageBegin("alter_database", msg_type, seqid)
  6414. result.write(oprot)
  6415. oprot.writeMessageEnd()
  6416. oprot.trans.flush()
  6417. def process_get_type(self, seqid, iprot, oprot):
  6418. args = get_type_args()
  6419. args.read(iprot)
  6420. iprot.readMessageEnd()
  6421. result = get_type_result()
  6422. try:
  6423. result.success = self._handler.get_type(args.name)
  6424. msg_type = TMessageType.REPLY
  6425. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6426. raise
  6427. except MetaException as o1:
  6428. msg_type = TMessageType.REPLY
  6429. result.o1 = o1
  6430. except NoSuchObjectException as o2:
  6431. msg_type = TMessageType.REPLY
  6432. result.o2 = o2
  6433. except Exception as ex:
  6434. msg_type = TMessageType.EXCEPTION
  6435. logging.exception(ex)
  6436. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6437. oprot.writeMessageBegin("get_type", msg_type, seqid)
  6438. result.write(oprot)
  6439. oprot.writeMessageEnd()
  6440. oprot.trans.flush()
  6441. def process_create_type(self, seqid, iprot, oprot):
  6442. args = create_type_args()
  6443. args.read(iprot)
  6444. iprot.readMessageEnd()
  6445. result = create_type_result()
  6446. try:
  6447. result.success = self._handler.create_type(args.type)
  6448. msg_type = TMessageType.REPLY
  6449. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6450. raise
  6451. except AlreadyExistsException as o1:
  6452. msg_type = TMessageType.REPLY
  6453. result.o1 = o1
  6454. except InvalidObjectException as o2:
  6455. msg_type = TMessageType.REPLY
  6456. result.o2 = o2
  6457. except MetaException as o3:
  6458. msg_type = TMessageType.REPLY
  6459. result.o3 = o3
  6460. except Exception as ex:
  6461. msg_type = TMessageType.EXCEPTION
  6462. logging.exception(ex)
  6463. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6464. oprot.writeMessageBegin("create_type", msg_type, seqid)
  6465. result.write(oprot)
  6466. oprot.writeMessageEnd()
  6467. oprot.trans.flush()
  6468. def process_drop_type(self, seqid, iprot, oprot):
  6469. args = drop_type_args()
  6470. args.read(iprot)
  6471. iprot.readMessageEnd()
  6472. result = drop_type_result()
  6473. try:
  6474. result.success = self._handler.drop_type(args.type)
  6475. msg_type = TMessageType.REPLY
  6476. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6477. raise
  6478. except MetaException as o1:
  6479. msg_type = TMessageType.REPLY
  6480. result.o1 = o1
  6481. except NoSuchObjectException as o2:
  6482. msg_type = TMessageType.REPLY
  6483. result.o2 = o2
  6484. except Exception as ex:
  6485. msg_type = TMessageType.EXCEPTION
  6486. logging.exception(ex)
  6487. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6488. oprot.writeMessageBegin("drop_type", msg_type, seqid)
  6489. result.write(oprot)
  6490. oprot.writeMessageEnd()
  6491. oprot.trans.flush()
  6492. def process_get_type_all(self, seqid, iprot, oprot):
  6493. args = get_type_all_args()
  6494. args.read(iprot)
  6495. iprot.readMessageEnd()
  6496. result = get_type_all_result()
  6497. try:
  6498. result.success = self._handler.get_type_all(args.name)
  6499. msg_type = TMessageType.REPLY
  6500. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6501. raise
  6502. except MetaException as o2:
  6503. msg_type = TMessageType.REPLY
  6504. result.o2 = o2
  6505. except Exception as ex:
  6506. msg_type = TMessageType.EXCEPTION
  6507. logging.exception(ex)
  6508. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6509. oprot.writeMessageBegin("get_type_all", msg_type, seqid)
  6510. result.write(oprot)
  6511. oprot.writeMessageEnd()
  6512. oprot.trans.flush()
  6513. def process_get_fields(self, seqid, iprot, oprot):
  6514. args = get_fields_args()
  6515. args.read(iprot)
  6516. iprot.readMessageEnd()
  6517. result = get_fields_result()
  6518. try:
  6519. result.success = self._handler.get_fields(args.db_name, args.table_name)
  6520. msg_type = TMessageType.REPLY
  6521. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6522. raise
  6523. except MetaException as o1:
  6524. msg_type = TMessageType.REPLY
  6525. result.o1 = o1
  6526. except UnknownTableException as o2:
  6527. msg_type = TMessageType.REPLY
  6528. result.o2 = o2
  6529. except UnknownDBException as o3:
  6530. msg_type = TMessageType.REPLY
  6531. result.o3 = o3
  6532. except Exception as ex:
  6533. msg_type = TMessageType.EXCEPTION
  6534. logging.exception(ex)
  6535. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6536. oprot.writeMessageBegin("get_fields", msg_type, seqid)
  6537. result.write(oprot)
  6538. oprot.writeMessageEnd()
  6539. oprot.trans.flush()
  6540. def process_get_fields_with_environment_context(self, seqid, iprot, oprot):
  6541. args = get_fields_with_environment_context_args()
  6542. args.read(iprot)
  6543. iprot.readMessageEnd()
  6544. result = get_fields_with_environment_context_result()
  6545. try:
  6546. result.success = self._handler.get_fields_with_environment_context(args.db_name, args.table_name, args.environment_context)
  6547. msg_type = TMessageType.REPLY
  6548. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6549. raise
  6550. except MetaException as o1:
  6551. msg_type = TMessageType.REPLY
  6552. result.o1 = o1
  6553. except UnknownTableException as o2:
  6554. msg_type = TMessageType.REPLY
  6555. result.o2 = o2
  6556. except UnknownDBException as o3:
  6557. msg_type = TMessageType.REPLY
  6558. result.o3 = o3
  6559. except Exception as ex:
  6560. msg_type = TMessageType.EXCEPTION
  6561. logging.exception(ex)
  6562. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6563. oprot.writeMessageBegin("get_fields_with_environment_context", msg_type, seqid)
  6564. result.write(oprot)
  6565. oprot.writeMessageEnd()
  6566. oprot.trans.flush()
  6567. def process_get_schema(self, seqid, iprot, oprot):
  6568. args = get_schema_args()
  6569. args.read(iprot)
  6570. iprot.readMessageEnd()
  6571. result = get_schema_result()
  6572. try:
  6573. result.success = self._handler.get_schema(args.db_name, args.table_name)
  6574. msg_type = TMessageType.REPLY
  6575. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6576. raise
  6577. except MetaException as o1:
  6578. msg_type = TMessageType.REPLY
  6579. result.o1 = o1
  6580. except UnknownTableException as o2:
  6581. msg_type = TMessageType.REPLY
  6582. result.o2 = o2
  6583. except UnknownDBException as o3:
  6584. msg_type = TMessageType.REPLY
  6585. result.o3 = o3
  6586. except Exception as ex:
  6587. msg_type = TMessageType.EXCEPTION
  6588. logging.exception(ex)
  6589. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6590. oprot.writeMessageBegin("get_schema", msg_type, seqid)
  6591. result.write(oprot)
  6592. oprot.writeMessageEnd()
  6593. oprot.trans.flush()
  6594. def process_get_schema_with_environment_context(self, seqid, iprot, oprot):
  6595. args = get_schema_with_environment_context_args()
  6596. args.read(iprot)
  6597. iprot.readMessageEnd()
  6598. result = get_schema_with_environment_context_result()
  6599. try:
  6600. result.success = self._handler.get_schema_with_environment_context(args.db_name, args.table_name, args.environment_context)
  6601. msg_type = TMessageType.REPLY
  6602. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6603. raise
  6604. except MetaException as o1:
  6605. msg_type = TMessageType.REPLY
  6606. result.o1 = o1
  6607. except UnknownTableException as o2:
  6608. msg_type = TMessageType.REPLY
  6609. result.o2 = o2
  6610. except UnknownDBException as o3:
  6611. msg_type = TMessageType.REPLY
  6612. result.o3 = o3
  6613. except Exception as ex:
  6614. msg_type = TMessageType.EXCEPTION
  6615. logging.exception(ex)
  6616. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6617. oprot.writeMessageBegin("get_schema_with_environment_context", msg_type, seqid)
  6618. result.write(oprot)
  6619. oprot.writeMessageEnd()
  6620. oprot.trans.flush()
  6621. def process_create_table(self, seqid, iprot, oprot):
  6622. args = create_table_args()
  6623. args.read(iprot)
  6624. iprot.readMessageEnd()
  6625. result = create_table_result()
  6626. try:
  6627. self._handler.create_table(args.tbl)
  6628. msg_type = TMessageType.REPLY
  6629. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6630. raise
  6631. except AlreadyExistsException as o1:
  6632. msg_type = TMessageType.REPLY
  6633. result.o1 = o1
  6634. except InvalidObjectException as o2:
  6635. msg_type = TMessageType.REPLY
  6636. result.o2 = o2
  6637. except MetaException as o3:
  6638. msg_type = TMessageType.REPLY
  6639. result.o3 = o3
  6640. except NoSuchObjectException as o4:
  6641. msg_type = TMessageType.REPLY
  6642. result.o4 = o4
  6643. except Exception as ex:
  6644. msg_type = TMessageType.EXCEPTION
  6645. logging.exception(ex)
  6646. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6647. oprot.writeMessageBegin("create_table", msg_type, seqid)
  6648. result.write(oprot)
  6649. oprot.writeMessageEnd()
  6650. oprot.trans.flush()
  6651. def process_create_table_with_environment_context(self, seqid, iprot, oprot):
  6652. args = create_table_with_environment_context_args()
  6653. args.read(iprot)
  6654. iprot.readMessageEnd()
  6655. result = create_table_with_environment_context_result()
  6656. try:
  6657. self._handler.create_table_with_environment_context(args.tbl, args.environment_context)
  6658. msg_type = TMessageType.REPLY
  6659. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6660. raise
  6661. except AlreadyExistsException as o1:
  6662. msg_type = TMessageType.REPLY
  6663. result.o1 = o1
  6664. except InvalidObjectException as o2:
  6665. msg_type = TMessageType.REPLY
  6666. result.o2 = o2
  6667. except MetaException as o3:
  6668. msg_type = TMessageType.REPLY
  6669. result.o3 = o3
  6670. except NoSuchObjectException as o4:
  6671. msg_type = TMessageType.REPLY
  6672. result.o4 = o4
  6673. except Exception as ex:
  6674. msg_type = TMessageType.EXCEPTION
  6675. logging.exception(ex)
  6676. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6677. oprot.writeMessageBegin("create_table_with_environment_context", msg_type, seqid)
  6678. result.write(oprot)
  6679. oprot.writeMessageEnd()
  6680. oprot.trans.flush()
  6681. def process_create_table_with_constraints(self, seqid, iprot, oprot):
  6682. args = create_table_with_constraints_args()
  6683. args.read(iprot)
  6684. iprot.readMessageEnd()
  6685. result = create_table_with_constraints_result()
  6686. try:
  6687. self._handler.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys)
  6688. msg_type = TMessageType.REPLY
  6689. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6690. raise
  6691. except AlreadyExistsException as o1:
  6692. msg_type = TMessageType.REPLY
  6693. result.o1 = o1
  6694. except InvalidObjectException as o2:
  6695. msg_type = TMessageType.REPLY
  6696. result.o2 = o2
  6697. except MetaException as o3:
  6698. msg_type = TMessageType.REPLY
  6699. result.o3 = o3
  6700. except NoSuchObjectException as o4:
  6701. msg_type = TMessageType.REPLY
  6702. result.o4 = o4
  6703. except Exception as ex:
  6704. msg_type = TMessageType.EXCEPTION
  6705. logging.exception(ex)
  6706. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6707. oprot.writeMessageBegin("create_table_with_constraints", msg_type, seqid)
  6708. result.write(oprot)
  6709. oprot.writeMessageEnd()
  6710. oprot.trans.flush()
  6711. def process_drop_constraint(self, seqid, iprot, oprot):
  6712. args = drop_constraint_args()
  6713. args.read(iprot)
  6714. iprot.readMessageEnd()
  6715. result = drop_constraint_result()
  6716. try:
  6717. self._handler.drop_constraint(args.req)
  6718. msg_type = TMessageType.REPLY
  6719. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6720. raise
  6721. except NoSuchObjectException as o1:
  6722. msg_type = TMessageType.REPLY
  6723. result.o1 = o1
  6724. except MetaException as o3:
  6725. msg_type = TMessageType.REPLY
  6726. result.o3 = o3
  6727. except Exception as ex:
  6728. msg_type = TMessageType.EXCEPTION
  6729. logging.exception(ex)
  6730. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6731. oprot.writeMessageBegin("drop_constraint", msg_type, seqid)
  6732. result.write(oprot)
  6733. oprot.writeMessageEnd()
  6734. oprot.trans.flush()
  6735. def process_add_primary_key(self, seqid, iprot, oprot):
  6736. args = add_primary_key_args()
  6737. args.read(iprot)
  6738. iprot.readMessageEnd()
  6739. result = add_primary_key_result()
  6740. try:
  6741. self._handler.add_primary_key(args.req)
  6742. msg_type = TMessageType.REPLY
  6743. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6744. raise
  6745. except NoSuchObjectException as o1:
  6746. msg_type = TMessageType.REPLY
  6747. result.o1 = o1
  6748. except MetaException as o2:
  6749. msg_type = TMessageType.REPLY
  6750. result.o2 = o2
  6751. except Exception as ex:
  6752. msg_type = TMessageType.EXCEPTION
  6753. logging.exception(ex)
  6754. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6755. oprot.writeMessageBegin("add_primary_key", msg_type, seqid)
  6756. result.write(oprot)
  6757. oprot.writeMessageEnd()
  6758. oprot.trans.flush()
  6759. def process_add_foreign_key(self, seqid, iprot, oprot):
  6760. args = add_foreign_key_args()
  6761. args.read(iprot)
  6762. iprot.readMessageEnd()
  6763. result = add_foreign_key_result()
  6764. try:
  6765. self._handler.add_foreign_key(args.req)
  6766. msg_type = TMessageType.REPLY
  6767. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6768. raise
  6769. except NoSuchObjectException as o1:
  6770. msg_type = TMessageType.REPLY
  6771. result.o1 = o1
  6772. except MetaException as o2:
  6773. msg_type = TMessageType.REPLY
  6774. result.o2 = o2
  6775. except Exception as ex:
  6776. msg_type = TMessageType.EXCEPTION
  6777. logging.exception(ex)
  6778. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6779. oprot.writeMessageBegin("add_foreign_key", msg_type, seqid)
  6780. result.write(oprot)
  6781. oprot.writeMessageEnd()
  6782. oprot.trans.flush()
  6783. def process_drop_table(self, seqid, iprot, oprot):
  6784. args = drop_table_args()
  6785. args.read(iprot)
  6786. iprot.readMessageEnd()
  6787. result = drop_table_result()
  6788. try:
  6789. self._handler.drop_table(args.dbname, args.name, args.deleteData)
  6790. msg_type = TMessageType.REPLY
  6791. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6792. raise
  6793. except NoSuchObjectException as o1:
  6794. msg_type = TMessageType.REPLY
  6795. result.o1 = o1
  6796. except MetaException as o3:
  6797. msg_type = TMessageType.REPLY
  6798. result.o3 = o3
  6799. except Exception as ex:
  6800. msg_type = TMessageType.EXCEPTION
  6801. logging.exception(ex)
  6802. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6803. oprot.writeMessageBegin("drop_table", msg_type, seqid)
  6804. result.write(oprot)
  6805. oprot.writeMessageEnd()
  6806. oprot.trans.flush()
  6807. def process_drop_table_with_environment_context(self, seqid, iprot, oprot):
  6808. args = drop_table_with_environment_context_args()
  6809. args.read(iprot)
  6810. iprot.readMessageEnd()
  6811. result = drop_table_with_environment_context_result()
  6812. try:
  6813. self._handler.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context)
  6814. msg_type = TMessageType.REPLY
  6815. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6816. raise
  6817. except NoSuchObjectException as o1:
  6818. msg_type = TMessageType.REPLY
  6819. result.o1 = o1
  6820. except MetaException as o3:
  6821. msg_type = TMessageType.REPLY
  6822. result.o3 = o3
  6823. except Exception as ex:
  6824. msg_type = TMessageType.EXCEPTION
  6825. logging.exception(ex)
  6826. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6827. oprot.writeMessageBegin("drop_table_with_environment_context", msg_type, seqid)
  6828. result.write(oprot)
  6829. oprot.writeMessageEnd()
  6830. oprot.trans.flush()
  6831. def process_get_tables(self, seqid, iprot, oprot):
  6832. args = get_tables_args()
  6833. args.read(iprot)
  6834. iprot.readMessageEnd()
  6835. result = get_tables_result()
  6836. try:
  6837. result.success = self._handler.get_tables(args.db_name, args.pattern)
  6838. msg_type = TMessageType.REPLY
  6839. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6840. raise
  6841. except MetaException as o1:
  6842. msg_type = TMessageType.REPLY
  6843. result.o1 = o1
  6844. except Exception as ex:
  6845. msg_type = TMessageType.EXCEPTION
  6846. logging.exception(ex)
  6847. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6848. oprot.writeMessageBegin("get_tables", msg_type, seqid)
  6849. result.write(oprot)
  6850. oprot.writeMessageEnd()
  6851. oprot.trans.flush()
  6852. def process_get_table_meta(self, seqid, iprot, oprot):
  6853. args = get_table_meta_args()
  6854. args.read(iprot)
  6855. iprot.readMessageEnd()
  6856. result = get_table_meta_result()
  6857. try:
  6858. result.success = self._handler.get_table_meta(args.db_patterns, args.tbl_patterns, args.tbl_types)
  6859. msg_type = TMessageType.REPLY
  6860. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6861. raise
  6862. except MetaException as o1:
  6863. msg_type = TMessageType.REPLY
  6864. result.o1 = o1
  6865. except Exception as ex:
  6866. msg_type = TMessageType.EXCEPTION
  6867. logging.exception(ex)
  6868. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6869. oprot.writeMessageBegin("get_table_meta", msg_type, seqid)
  6870. result.write(oprot)
  6871. oprot.writeMessageEnd()
  6872. oprot.trans.flush()
  6873. def process_get_all_tables(self, seqid, iprot, oprot):
  6874. args = get_all_tables_args()
  6875. args.read(iprot)
  6876. iprot.readMessageEnd()
  6877. result = get_all_tables_result()
  6878. try:
  6879. result.success = self._handler.get_all_tables(args.db_name)
  6880. msg_type = TMessageType.REPLY
  6881. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6882. raise
  6883. except MetaException as o1:
  6884. msg_type = TMessageType.REPLY
  6885. result.o1 = o1
  6886. except Exception as ex:
  6887. msg_type = TMessageType.EXCEPTION
  6888. logging.exception(ex)
  6889. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6890. oprot.writeMessageBegin("get_all_tables", msg_type, seqid)
  6891. result.write(oprot)
  6892. oprot.writeMessageEnd()
  6893. oprot.trans.flush()
  6894. def process_get_table(self, seqid, iprot, oprot):
  6895. args = get_table_args()
  6896. args.read(iprot)
  6897. iprot.readMessageEnd()
  6898. result = get_table_result()
  6899. try:
  6900. result.success = self._handler.get_table(args.dbname, args.tbl_name)
  6901. msg_type = TMessageType.REPLY
  6902. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6903. raise
  6904. except MetaException as o1:
  6905. msg_type = TMessageType.REPLY
  6906. result.o1 = o1
  6907. except NoSuchObjectException as o2:
  6908. msg_type = TMessageType.REPLY
  6909. result.o2 = o2
  6910. except Exception as ex:
  6911. msg_type = TMessageType.EXCEPTION
  6912. logging.exception(ex)
  6913. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6914. oprot.writeMessageBegin("get_table", msg_type, seqid)
  6915. result.write(oprot)
  6916. oprot.writeMessageEnd()
  6917. oprot.trans.flush()
  6918. def process_get_table_objects_by_name(self, seqid, iprot, oprot):
  6919. args = get_table_objects_by_name_args()
  6920. args.read(iprot)
  6921. iprot.readMessageEnd()
  6922. result = get_table_objects_by_name_result()
  6923. try:
  6924. result.success = self._handler.get_table_objects_by_name(args.dbname, args.tbl_names)
  6925. msg_type = TMessageType.REPLY
  6926. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6927. raise
  6928. except MetaException as o1:
  6929. msg_type = TMessageType.REPLY
  6930. result.o1 = o1
  6931. except InvalidOperationException as o2:
  6932. msg_type = TMessageType.REPLY
  6933. result.o2 = o2
  6934. except UnknownDBException as o3:
  6935. msg_type = TMessageType.REPLY
  6936. result.o3 = o3
  6937. except Exception as ex:
  6938. msg_type = TMessageType.EXCEPTION
  6939. logging.exception(ex)
  6940. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6941. oprot.writeMessageBegin("get_table_objects_by_name", msg_type, seqid)
  6942. result.write(oprot)
  6943. oprot.writeMessageEnd()
  6944. oprot.trans.flush()
  6945. def process_get_table_names_by_filter(self, seqid, iprot, oprot):
  6946. args = get_table_names_by_filter_args()
  6947. args.read(iprot)
  6948. iprot.readMessageEnd()
  6949. result = get_table_names_by_filter_result()
  6950. try:
  6951. result.success = self._handler.get_table_names_by_filter(args.dbname, args.filter, args.max_tables)
  6952. msg_type = TMessageType.REPLY
  6953. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6954. raise
  6955. except MetaException as o1:
  6956. msg_type = TMessageType.REPLY
  6957. result.o1 = o1
  6958. except InvalidOperationException as o2:
  6959. msg_type = TMessageType.REPLY
  6960. result.o2 = o2
  6961. except UnknownDBException as o3:
  6962. msg_type = TMessageType.REPLY
  6963. result.o3 = o3
  6964. except Exception as ex:
  6965. msg_type = TMessageType.EXCEPTION
  6966. logging.exception(ex)
  6967. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6968. oprot.writeMessageBegin("get_table_names_by_filter", msg_type, seqid)
  6969. result.write(oprot)
  6970. oprot.writeMessageEnd()
  6971. oprot.trans.flush()
  6972. def process_alter_table(self, seqid, iprot, oprot):
  6973. args = alter_table_args()
  6974. args.read(iprot)
  6975. iprot.readMessageEnd()
  6976. result = alter_table_result()
  6977. try:
  6978. self._handler.alter_table(args.dbname, args.tbl_name, args.new_tbl)
  6979. msg_type = TMessageType.REPLY
  6980. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  6981. raise
  6982. except InvalidOperationException as o1:
  6983. msg_type = TMessageType.REPLY
  6984. result.o1 = o1
  6985. except MetaException as o2:
  6986. msg_type = TMessageType.REPLY
  6987. result.o2 = o2
  6988. except Exception as ex:
  6989. msg_type = TMessageType.EXCEPTION
  6990. logging.exception(ex)
  6991. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6992. oprot.writeMessageBegin("alter_table", msg_type, seqid)
  6993. result.write(oprot)
  6994. oprot.writeMessageEnd()
  6995. oprot.trans.flush()
  6996. def process_alter_table_with_environment_context(self, seqid, iprot, oprot):
  6997. args = alter_table_with_environment_context_args()
  6998. args.read(iprot)
  6999. iprot.readMessageEnd()
  7000. result = alter_table_with_environment_context_result()
  7001. try:
  7002. self._handler.alter_table_with_environment_context(args.dbname, args.tbl_name, args.new_tbl, args.environment_context)
  7003. msg_type = TMessageType.REPLY
  7004. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7005. raise
  7006. except InvalidOperationException as o1:
  7007. msg_type = TMessageType.REPLY
  7008. result.o1 = o1
  7009. except MetaException as o2:
  7010. msg_type = TMessageType.REPLY
  7011. result.o2 = o2
  7012. except Exception as ex:
  7013. msg_type = TMessageType.EXCEPTION
  7014. logging.exception(ex)
  7015. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7016. oprot.writeMessageBegin("alter_table_with_environment_context", msg_type, seqid)
  7017. result.write(oprot)
  7018. oprot.writeMessageEnd()
  7019. oprot.trans.flush()
  7020. def process_alter_table_with_cascade(self, seqid, iprot, oprot):
  7021. args = alter_table_with_cascade_args()
  7022. args.read(iprot)
  7023. iprot.readMessageEnd()
  7024. result = alter_table_with_cascade_result()
  7025. try:
  7026. self._handler.alter_table_with_cascade(args.dbname, args.tbl_name, args.new_tbl, args.cascade)
  7027. msg_type = TMessageType.REPLY
  7028. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7029. raise
  7030. except InvalidOperationException as o1:
  7031. msg_type = TMessageType.REPLY
  7032. result.o1 = o1
  7033. except MetaException as o2:
  7034. msg_type = TMessageType.REPLY
  7035. result.o2 = o2
  7036. except Exception as ex:
  7037. msg_type = TMessageType.EXCEPTION
  7038. logging.exception(ex)
  7039. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7040. oprot.writeMessageBegin("alter_table_with_cascade", msg_type, seqid)
  7041. result.write(oprot)
  7042. oprot.writeMessageEnd()
  7043. oprot.trans.flush()
  7044. def process_add_partition(self, seqid, iprot, oprot):
  7045. args = add_partition_args()
  7046. args.read(iprot)
  7047. iprot.readMessageEnd()
  7048. result = add_partition_result()
  7049. try:
  7050. result.success = self._handler.add_partition(args.new_part)
  7051. msg_type = TMessageType.REPLY
  7052. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7053. raise
  7054. except InvalidObjectException as o1:
  7055. msg_type = TMessageType.REPLY
  7056. result.o1 = o1
  7057. except AlreadyExistsException as o2:
  7058. msg_type = TMessageType.REPLY
  7059. result.o2 = o2
  7060. except MetaException as o3:
  7061. msg_type = TMessageType.REPLY
  7062. result.o3 = o3
  7063. except Exception as ex:
  7064. msg_type = TMessageType.EXCEPTION
  7065. logging.exception(ex)
  7066. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7067. oprot.writeMessageBegin("add_partition", msg_type, seqid)
  7068. result.write(oprot)
  7069. oprot.writeMessageEnd()
  7070. oprot.trans.flush()
  7071. def process_add_partition_with_environment_context(self, seqid, iprot, oprot):
  7072. args = add_partition_with_environment_context_args()
  7073. args.read(iprot)
  7074. iprot.readMessageEnd()
  7075. result = add_partition_with_environment_context_result()
  7076. try:
  7077. result.success = self._handler.add_partition_with_environment_context(args.new_part, args.environment_context)
  7078. msg_type = TMessageType.REPLY
  7079. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7080. raise
  7081. except InvalidObjectException as o1:
  7082. msg_type = TMessageType.REPLY
  7083. result.o1 = o1
  7084. except AlreadyExistsException as o2:
  7085. msg_type = TMessageType.REPLY
  7086. result.o2 = o2
  7087. except MetaException as o3:
  7088. msg_type = TMessageType.REPLY
  7089. result.o3 = o3
  7090. except Exception as ex:
  7091. msg_type = TMessageType.EXCEPTION
  7092. logging.exception(ex)
  7093. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7094. oprot.writeMessageBegin("add_partition_with_environment_context", msg_type, seqid)
  7095. result.write(oprot)
  7096. oprot.writeMessageEnd()
  7097. oprot.trans.flush()
  7098. def process_add_partitions(self, seqid, iprot, oprot):
  7099. args = add_partitions_args()
  7100. args.read(iprot)
  7101. iprot.readMessageEnd()
  7102. result = add_partitions_result()
  7103. try:
  7104. result.success = self._handler.add_partitions(args.new_parts)
  7105. msg_type = TMessageType.REPLY
  7106. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7107. raise
  7108. except InvalidObjectException as o1:
  7109. msg_type = TMessageType.REPLY
  7110. result.o1 = o1
  7111. except AlreadyExistsException as o2:
  7112. msg_type = TMessageType.REPLY
  7113. result.o2 = o2
  7114. except MetaException as o3:
  7115. msg_type = TMessageType.REPLY
  7116. result.o3 = o3
  7117. except Exception as ex:
  7118. msg_type = TMessageType.EXCEPTION
  7119. logging.exception(ex)
  7120. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7121. oprot.writeMessageBegin("add_partitions", msg_type, seqid)
  7122. result.write(oprot)
  7123. oprot.writeMessageEnd()
  7124. oprot.trans.flush()
  7125. def process_add_partitions_pspec(self, seqid, iprot, oprot):
  7126. args = add_partitions_pspec_args()
  7127. args.read(iprot)
  7128. iprot.readMessageEnd()
  7129. result = add_partitions_pspec_result()
  7130. try:
  7131. result.success = self._handler.add_partitions_pspec(args.new_parts)
  7132. msg_type = TMessageType.REPLY
  7133. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7134. raise
  7135. except InvalidObjectException as o1:
  7136. msg_type = TMessageType.REPLY
  7137. result.o1 = o1
  7138. except AlreadyExistsException as o2:
  7139. msg_type = TMessageType.REPLY
  7140. result.o2 = o2
  7141. except MetaException as o3:
  7142. msg_type = TMessageType.REPLY
  7143. result.o3 = o3
  7144. except Exception as ex:
  7145. msg_type = TMessageType.EXCEPTION
  7146. logging.exception(ex)
  7147. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7148. oprot.writeMessageBegin("add_partitions_pspec", msg_type, seqid)
  7149. result.write(oprot)
  7150. oprot.writeMessageEnd()
  7151. oprot.trans.flush()
  7152. def process_append_partition(self, seqid, iprot, oprot):
  7153. args = append_partition_args()
  7154. args.read(iprot)
  7155. iprot.readMessageEnd()
  7156. result = append_partition_result()
  7157. try:
  7158. result.success = self._handler.append_partition(args.db_name, args.tbl_name, args.part_vals)
  7159. msg_type = TMessageType.REPLY
  7160. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7161. raise
  7162. except InvalidObjectException as o1:
  7163. msg_type = TMessageType.REPLY
  7164. result.o1 = o1
  7165. except AlreadyExistsException as o2:
  7166. msg_type = TMessageType.REPLY
  7167. result.o2 = o2
  7168. except MetaException as o3:
  7169. msg_type = TMessageType.REPLY
  7170. result.o3 = o3
  7171. except Exception as ex:
  7172. msg_type = TMessageType.EXCEPTION
  7173. logging.exception(ex)
  7174. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7175. oprot.writeMessageBegin("append_partition", msg_type, seqid)
  7176. result.write(oprot)
  7177. oprot.writeMessageEnd()
  7178. oprot.trans.flush()
  7179. def process_add_partitions_req(self, seqid, iprot, oprot):
  7180. args = add_partitions_req_args()
  7181. args.read(iprot)
  7182. iprot.readMessageEnd()
  7183. result = add_partitions_req_result()
  7184. try:
  7185. result.success = self._handler.add_partitions_req(args.request)
  7186. msg_type = TMessageType.REPLY
  7187. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7188. raise
  7189. except InvalidObjectException as o1:
  7190. msg_type = TMessageType.REPLY
  7191. result.o1 = o1
  7192. except AlreadyExistsException as o2:
  7193. msg_type = TMessageType.REPLY
  7194. result.o2 = o2
  7195. except MetaException as o3:
  7196. msg_type = TMessageType.REPLY
  7197. result.o3 = o3
  7198. except Exception as ex:
  7199. msg_type = TMessageType.EXCEPTION
  7200. logging.exception(ex)
  7201. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7202. oprot.writeMessageBegin("add_partitions_req", msg_type, seqid)
  7203. result.write(oprot)
  7204. oprot.writeMessageEnd()
  7205. oprot.trans.flush()
  7206. def process_append_partition_with_environment_context(self, seqid, iprot, oprot):
  7207. args = append_partition_with_environment_context_args()
  7208. args.read(iprot)
  7209. iprot.readMessageEnd()
  7210. result = append_partition_with_environment_context_result()
  7211. try:
  7212. result.success = self._handler.append_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.environment_context)
  7213. msg_type = TMessageType.REPLY
  7214. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7215. raise
  7216. except InvalidObjectException as o1:
  7217. msg_type = TMessageType.REPLY
  7218. result.o1 = o1
  7219. except AlreadyExistsException as o2:
  7220. msg_type = TMessageType.REPLY
  7221. result.o2 = o2
  7222. except MetaException as o3:
  7223. msg_type = TMessageType.REPLY
  7224. result.o3 = o3
  7225. except Exception as ex:
  7226. msg_type = TMessageType.EXCEPTION
  7227. logging.exception(ex)
  7228. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7229. oprot.writeMessageBegin("append_partition_with_environment_context", msg_type, seqid)
  7230. result.write(oprot)
  7231. oprot.writeMessageEnd()
  7232. oprot.trans.flush()
  7233. def process_append_partition_by_name(self, seqid, iprot, oprot):
  7234. args = append_partition_by_name_args()
  7235. args.read(iprot)
  7236. iprot.readMessageEnd()
  7237. result = append_partition_by_name_result()
  7238. try:
  7239. result.success = self._handler.append_partition_by_name(args.db_name, args.tbl_name, args.part_name)
  7240. msg_type = TMessageType.REPLY
  7241. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7242. raise
  7243. except InvalidObjectException as o1:
  7244. msg_type = TMessageType.REPLY
  7245. result.o1 = o1
  7246. except AlreadyExistsException as o2:
  7247. msg_type = TMessageType.REPLY
  7248. result.o2 = o2
  7249. except MetaException as o3:
  7250. msg_type = TMessageType.REPLY
  7251. result.o3 = o3
  7252. except Exception as ex:
  7253. msg_type = TMessageType.EXCEPTION
  7254. logging.exception(ex)
  7255. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7256. oprot.writeMessageBegin("append_partition_by_name", msg_type, seqid)
  7257. result.write(oprot)
  7258. oprot.writeMessageEnd()
  7259. oprot.trans.flush()
  7260. def process_append_partition_by_name_with_environment_context(self, seqid, iprot, oprot):
  7261. args = append_partition_by_name_with_environment_context_args()
  7262. args.read(iprot)
  7263. iprot.readMessageEnd()
  7264. result = append_partition_by_name_with_environment_context_result()
  7265. try:
  7266. result.success = self._handler.append_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.environment_context)
  7267. msg_type = TMessageType.REPLY
  7268. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7269. raise
  7270. except InvalidObjectException as o1:
  7271. msg_type = TMessageType.REPLY
  7272. result.o1 = o1
  7273. except AlreadyExistsException as o2:
  7274. msg_type = TMessageType.REPLY
  7275. result.o2 = o2
  7276. except MetaException as o3:
  7277. msg_type = TMessageType.REPLY
  7278. result.o3 = o3
  7279. except Exception as ex:
  7280. msg_type = TMessageType.EXCEPTION
  7281. logging.exception(ex)
  7282. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7283. oprot.writeMessageBegin("append_partition_by_name_with_environment_context", msg_type, seqid)
  7284. result.write(oprot)
  7285. oprot.writeMessageEnd()
  7286. oprot.trans.flush()
  7287. def process_drop_partition(self, seqid, iprot, oprot):
  7288. args = drop_partition_args()
  7289. args.read(iprot)
  7290. iprot.readMessageEnd()
  7291. result = drop_partition_result()
  7292. try:
  7293. result.success = self._handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData)
  7294. msg_type = TMessageType.REPLY
  7295. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7296. raise
  7297. except NoSuchObjectException as o1:
  7298. msg_type = TMessageType.REPLY
  7299. result.o1 = o1
  7300. except MetaException as o2:
  7301. msg_type = TMessageType.REPLY
  7302. result.o2 = o2
  7303. except Exception as ex:
  7304. msg_type = TMessageType.EXCEPTION
  7305. logging.exception(ex)
  7306. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7307. oprot.writeMessageBegin("drop_partition", msg_type, seqid)
  7308. result.write(oprot)
  7309. oprot.writeMessageEnd()
  7310. oprot.trans.flush()
  7311. def process_drop_partition_with_environment_context(self, seqid, iprot, oprot):
  7312. args = drop_partition_with_environment_context_args()
  7313. args.read(iprot)
  7314. iprot.readMessageEnd()
  7315. result = drop_partition_with_environment_context_result()
  7316. try:
  7317. result.success = self._handler.drop_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context)
  7318. msg_type = TMessageType.REPLY
  7319. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7320. raise
  7321. except NoSuchObjectException as o1:
  7322. msg_type = TMessageType.REPLY
  7323. result.o1 = o1
  7324. except MetaException as o2:
  7325. msg_type = TMessageType.REPLY
  7326. result.o2 = o2
  7327. except Exception as ex:
  7328. msg_type = TMessageType.EXCEPTION
  7329. logging.exception(ex)
  7330. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7331. oprot.writeMessageBegin("drop_partition_with_environment_context", msg_type, seqid)
  7332. result.write(oprot)
  7333. oprot.writeMessageEnd()
  7334. oprot.trans.flush()
  7335. def process_drop_partition_by_name(self, seqid, iprot, oprot):
  7336. args = drop_partition_by_name_args()
  7337. args.read(iprot)
  7338. iprot.readMessageEnd()
  7339. result = drop_partition_by_name_result()
  7340. try:
  7341. result.success = self._handler.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData)
  7342. msg_type = TMessageType.REPLY
  7343. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7344. raise
  7345. except NoSuchObjectException as o1:
  7346. msg_type = TMessageType.REPLY
  7347. result.o1 = o1
  7348. except MetaException as o2:
  7349. msg_type = TMessageType.REPLY
  7350. result.o2 = o2
  7351. except Exception as ex:
  7352. msg_type = TMessageType.EXCEPTION
  7353. logging.exception(ex)
  7354. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7355. oprot.writeMessageBegin("drop_partition_by_name", msg_type, seqid)
  7356. result.write(oprot)
  7357. oprot.writeMessageEnd()
  7358. oprot.trans.flush()
  7359. def process_drop_partition_by_name_with_environment_context(self, seqid, iprot, oprot):
  7360. args = drop_partition_by_name_with_environment_context_args()
  7361. args.read(iprot)
  7362. iprot.readMessageEnd()
  7363. result = drop_partition_by_name_with_environment_context_result()
  7364. try:
  7365. result.success = self._handler.drop_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.deleteData, args.environment_context)
  7366. msg_type = TMessageType.REPLY
  7367. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7368. raise
  7369. except NoSuchObjectException as o1:
  7370. msg_type = TMessageType.REPLY
  7371. result.o1 = o1
  7372. except MetaException as o2:
  7373. msg_type = TMessageType.REPLY
  7374. result.o2 = o2
  7375. except Exception as ex:
  7376. msg_type = TMessageType.EXCEPTION
  7377. logging.exception(ex)
  7378. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7379. oprot.writeMessageBegin("drop_partition_by_name_with_environment_context", msg_type, seqid)
  7380. result.write(oprot)
  7381. oprot.writeMessageEnd()
  7382. oprot.trans.flush()
  7383. def process_drop_partitions_req(self, seqid, iprot, oprot):
  7384. args = drop_partitions_req_args()
  7385. args.read(iprot)
  7386. iprot.readMessageEnd()
  7387. result = drop_partitions_req_result()
  7388. try:
  7389. result.success = self._handler.drop_partitions_req(args.req)
  7390. msg_type = TMessageType.REPLY
  7391. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7392. raise
  7393. except NoSuchObjectException as o1:
  7394. msg_type = TMessageType.REPLY
  7395. result.o1 = o1
  7396. except MetaException as o2:
  7397. msg_type = TMessageType.REPLY
  7398. result.o2 = o2
  7399. except Exception as ex:
  7400. msg_type = TMessageType.EXCEPTION
  7401. logging.exception(ex)
  7402. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7403. oprot.writeMessageBegin("drop_partitions_req", msg_type, seqid)
  7404. result.write(oprot)
  7405. oprot.writeMessageEnd()
  7406. oprot.trans.flush()
  7407. def process_get_partition(self, seqid, iprot, oprot):
  7408. args = get_partition_args()
  7409. args.read(iprot)
  7410. iprot.readMessageEnd()
  7411. result = get_partition_result()
  7412. try:
  7413. result.success = self._handler.get_partition(args.db_name, args.tbl_name, args.part_vals)
  7414. msg_type = TMessageType.REPLY
  7415. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7416. raise
  7417. except MetaException as o1:
  7418. msg_type = TMessageType.REPLY
  7419. result.o1 = o1
  7420. except NoSuchObjectException as o2:
  7421. msg_type = TMessageType.REPLY
  7422. result.o2 = o2
  7423. except Exception as ex:
  7424. msg_type = TMessageType.EXCEPTION
  7425. logging.exception(ex)
  7426. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7427. oprot.writeMessageBegin("get_partition", msg_type, seqid)
  7428. result.write(oprot)
  7429. oprot.writeMessageEnd()
  7430. oprot.trans.flush()
  7431. def process_exchange_partition(self, seqid, iprot, oprot):
  7432. args = exchange_partition_args()
  7433. args.read(iprot)
  7434. iprot.readMessageEnd()
  7435. result = exchange_partition_result()
  7436. try:
  7437. result.success = self._handler.exchange_partition(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name)
  7438. msg_type = TMessageType.REPLY
  7439. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7440. raise
  7441. except MetaException as o1:
  7442. msg_type = TMessageType.REPLY
  7443. result.o1 = o1
  7444. except NoSuchObjectException as o2:
  7445. msg_type = TMessageType.REPLY
  7446. result.o2 = o2
  7447. except InvalidObjectException as o3:
  7448. msg_type = TMessageType.REPLY
  7449. result.o3 = o3
  7450. except InvalidInputException as o4:
  7451. msg_type = TMessageType.REPLY
  7452. result.o4 = o4
  7453. except Exception as ex:
  7454. msg_type = TMessageType.EXCEPTION
  7455. logging.exception(ex)
  7456. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7457. oprot.writeMessageBegin("exchange_partition", msg_type, seqid)
  7458. result.write(oprot)
  7459. oprot.writeMessageEnd()
  7460. oprot.trans.flush()
  7461. def process_exchange_partitions(self, seqid, iprot, oprot):
  7462. args = exchange_partitions_args()
  7463. args.read(iprot)
  7464. iprot.readMessageEnd()
  7465. result = exchange_partitions_result()
  7466. try:
  7467. result.success = self._handler.exchange_partitions(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name)
  7468. msg_type = TMessageType.REPLY
  7469. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7470. raise
  7471. except MetaException as o1:
  7472. msg_type = TMessageType.REPLY
  7473. result.o1 = o1
  7474. except NoSuchObjectException as o2:
  7475. msg_type = TMessageType.REPLY
  7476. result.o2 = o2
  7477. except InvalidObjectException as o3:
  7478. msg_type = TMessageType.REPLY
  7479. result.o3 = o3
  7480. except InvalidInputException as o4:
  7481. msg_type = TMessageType.REPLY
  7482. result.o4 = o4
  7483. except Exception as ex:
  7484. msg_type = TMessageType.EXCEPTION
  7485. logging.exception(ex)
  7486. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7487. oprot.writeMessageBegin("exchange_partitions", msg_type, seqid)
  7488. result.write(oprot)
  7489. oprot.writeMessageEnd()
  7490. oprot.trans.flush()
  7491. def process_get_partition_with_auth(self, seqid, iprot, oprot):
  7492. args = get_partition_with_auth_args()
  7493. args.read(iprot)
  7494. iprot.readMessageEnd()
  7495. result = get_partition_with_auth_result()
  7496. try:
  7497. result.success = self._handler.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names)
  7498. msg_type = TMessageType.REPLY
  7499. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7500. raise
  7501. except MetaException as o1:
  7502. msg_type = TMessageType.REPLY
  7503. result.o1 = o1
  7504. except NoSuchObjectException as o2:
  7505. msg_type = TMessageType.REPLY
  7506. result.o2 = o2
  7507. except Exception as ex:
  7508. msg_type = TMessageType.EXCEPTION
  7509. logging.exception(ex)
  7510. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7511. oprot.writeMessageBegin("get_partition_with_auth", msg_type, seqid)
  7512. result.write(oprot)
  7513. oprot.writeMessageEnd()
  7514. oprot.trans.flush()
  7515. def process_get_partition_by_name(self, seqid, iprot, oprot):
  7516. args = get_partition_by_name_args()
  7517. args.read(iprot)
  7518. iprot.readMessageEnd()
  7519. result = get_partition_by_name_result()
  7520. try:
  7521. result.success = self._handler.get_partition_by_name(args.db_name, args.tbl_name, args.part_name)
  7522. msg_type = TMessageType.REPLY
  7523. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7524. raise
  7525. except MetaException as o1:
  7526. msg_type = TMessageType.REPLY
  7527. result.o1 = o1
  7528. except NoSuchObjectException as o2:
  7529. msg_type = TMessageType.REPLY
  7530. result.o2 = o2
  7531. except Exception as ex:
  7532. msg_type = TMessageType.EXCEPTION
  7533. logging.exception(ex)
  7534. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7535. oprot.writeMessageBegin("get_partition_by_name", msg_type, seqid)
  7536. result.write(oprot)
  7537. oprot.writeMessageEnd()
  7538. oprot.trans.flush()
  7539. def process_get_partitions(self, seqid, iprot, oprot):
  7540. args = get_partitions_args()
  7541. args.read(iprot)
  7542. iprot.readMessageEnd()
  7543. result = get_partitions_result()
  7544. try:
  7545. result.success = self._handler.get_partitions(args.db_name, args.tbl_name, args.max_parts)
  7546. msg_type = TMessageType.REPLY
  7547. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7548. raise
  7549. except NoSuchObjectException as o1:
  7550. msg_type = TMessageType.REPLY
  7551. result.o1 = o1
  7552. except MetaException as o2:
  7553. msg_type = TMessageType.REPLY
  7554. result.o2 = o2
  7555. except Exception as ex:
  7556. msg_type = TMessageType.EXCEPTION
  7557. logging.exception(ex)
  7558. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7559. oprot.writeMessageBegin("get_partitions", msg_type, seqid)
  7560. result.write(oprot)
  7561. oprot.writeMessageEnd()
  7562. oprot.trans.flush()
  7563. def process_get_partitions_with_auth(self, seqid, iprot, oprot):
  7564. args = get_partitions_with_auth_args()
  7565. args.read(iprot)
  7566. iprot.readMessageEnd()
  7567. result = get_partitions_with_auth_result()
  7568. try:
  7569. result.success = self._handler.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names)
  7570. msg_type = TMessageType.REPLY
  7571. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7572. raise
  7573. except NoSuchObjectException as o1:
  7574. msg_type = TMessageType.REPLY
  7575. result.o1 = o1
  7576. except MetaException as o2:
  7577. msg_type = TMessageType.REPLY
  7578. result.o2 = o2
  7579. except Exception as ex:
  7580. msg_type = TMessageType.EXCEPTION
  7581. logging.exception(ex)
  7582. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7583. oprot.writeMessageBegin("get_partitions_with_auth", msg_type, seqid)
  7584. result.write(oprot)
  7585. oprot.writeMessageEnd()
  7586. oprot.trans.flush()
  7587. def process_get_partitions_pspec(self, seqid, iprot, oprot):
  7588. args = get_partitions_pspec_args()
  7589. args.read(iprot)
  7590. iprot.readMessageEnd()
  7591. result = get_partitions_pspec_result()
  7592. try:
  7593. result.success = self._handler.get_partitions_pspec(args.db_name, args.tbl_name, args.max_parts)
  7594. msg_type = TMessageType.REPLY
  7595. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7596. raise
  7597. except NoSuchObjectException as o1:
  7598. msg_type = TMessageType.REPLY
  7599. result.o1 = o1
  7600. except MetaException as o2:
  7601. msg_type = TMessageType.REPLY
  7602. result.o2 = o2
  7603. except Exception as ex:
  7604. msg_type = TMessageType.EXCEPTION
  7605. logging.exception(ex)
  7606. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7607. oprot.writeMessageBegin("get_partitions_pspec", msg_type, seqid)
  7608. result.write(oprot)
  7609. oprot.writeMessageEnd()
  7610. oprot.trans.flush()
  7611. def process_get_partition_names(self, seqid, iprot, oprot):
  7612. args = get_partition_names_args()
  7613. args.read(iprot)
  7614. iprot.readMessageEnd()
  7615. result = get_partition_names_result()
  7616. try:
  7617. result.success = self._handler.get_partition_names(args.db_name, args.tbl_name, args.max_parts)
  7618. msg_type = TMessageType.REPLY
  7619. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7620. raise
  7621. except NoSuchObjectException as o1:
  7622. msg_type = TMessageType.REPLY
  7623. result.o1 = o1
  7624. except MetaException as o2:
  7625. msg_type = TMessageType.REPLY
  7626. result.o2 = o2
  7627. except Exception as ex:
  7628. msg_type = TMessageType.EXCEPTION
  7629. logging.exception(ex)
  7630. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7631. oprot.writeMessageBegin("get_partition_names", msg_type, seqid)
  7632. result.write(oprot)
  7633. oprot.writeMessageEnd()
  7634. oprot.trans.flush()
  7635. def process_get_partitions_ps(self, seqid, iprot, oprot):
  7636. args = get_partitions_ps_args()
  7637. args.read(iprot)
  7638. iprot.readMessageEnd()
  7639. result = get_partitions_ps_result()
  7640. try:
  7641. result.success = self._handler.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
  7642. msg_type = TMessageType.REPLY
  7643. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7644. raise
  7645. except MetaException as o1:
  7646. msg_type = TMessageType.REPLY
  7647. result.o1 = o1
  7648. except NoSuchObjectException as o2:
  7649. msg_type = TMessageType.REPLY
  7650. result.o2 = o2
  7651. except Exception as ex:
  7652. msg_type = TMessageType.EXCEPTION
  7653. logging.exception(ex)
  7654. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7655. oprot.writeMessageBegin("get_partitions_ps", msg_type, seqid)
  7656. result.write(oprot)
  7657. oprot.writeMessageEnd()
  7658. oprot.trans.flush()
  7659. def process_get_partitions_ps_with_auth(self, seqid, iprot, oprot):
  7660. args = get_partitions_ps_with_auth_args()
  7661. args.read(iprot)
  7662. iprot.readMessageEnd()
  7663. result = get_partitions_ps_with_auth_result()
  7664. try:
  7665. result.success = self._handler.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names)
  7666. msg_type = TMessageType.REPLY
  7667. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7668. raise
  7669. except NoSuchObjectException as o1:
  7670. msg_type = TMessageType.REPLY
  7671. result.o1 = o1
  7672. except MetaException as o2:
  7673. msg_type = TMessageType.REPLY
  7674. result.o2 = o2
  7675. except Exception as ex:
  7676. msg_type = TMessageType.EXCEPTION
  7677. logging.exception(ex)
  7678. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7679. oprot.writeMessageBegin("get_partitions_ps_with_auth", msg_type, seqid)
  7680. result.write(oprot)
  7681. oprot.writeMessageEnd()
  7682. oprot.trans.flush()
  7683. def process_get_partition_names_ps(self, seqid, iprot, oprot):
  7684. args = get_partition_names_ps_args()
  7685. args.read(iprot)
  7686. iprot.readMessageEnd()
  7687. result = get_partition_names_ps_result()
  7688. try:
  7689. result.success = self._handler.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
  7690. msg_type = TMessageType.REPLY
  7691. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7692. raise
  7693. except MetaException as o1:
  7694. msg_type = TMessageType.REPLY
  7695. result.o1 = o1
  7696. except NoSuchObjectException as o2:
  7697. msg_type = TMessageType.REPLY
  7698. result.o2 = o2
  7699. except Exception as ex:
  7700. msg_type = TMessageType.EXCEPTION
  7701. logging.exception(ex)
  7702. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7703. oprot.writeMessageBegin("get_partition_names_ps", msg_type, seqid)
  7704. result.write(oprot)
  7705. oprot.writeMessageEnd()
  7706. oprot.trans.flush()
  7707. def process_get_partitions_by_filter(self, seqid, iprot, oprot):
  7708. args = get_partitions_by_filter_args()
  7709. args.read(iprot)
  7710. iprot.readMessageEnd()
  7711. result = get_partitions_by_filter_result()
  7712. try:
  7713. result.success = self._handler.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts)
  7714. msg_type = TMessageType.REPLY
  7715. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7716. raise
  7717. except MetaException as o1:
  7718. msg_type = TMessageType.REPLY
  7719. result.o1 = o1
  7720. except NoSuchObjectException as o2:
  7721. msg_type = TMessageType.REPLY
  7722. result.o2 = o2
  7723. except Exception as ex:
  7724. msg_type = TMessageType.EXCEPTION
  7725. logging.exception(ex)
  7726. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7727. oprot.writeMessageBegin("get_partitions_by_filter", msg_type, seqid)
  7728. result.write(oprot)
  7729. oprot.writeMessageEnd()
  7730. oprot.trans.flush()
  7731. def process_get_part_specs_by_filter(self, seqid, iprot, oprot):
  7732. args = get_part_specs_by_filter_args()
  7733. args.read(iprot)
  7734. iprot.readMessageEnd()
  7735. result = get_part_specs_by_filter_result()
  7736. try:
  7737. result.success = self._handler.get_part_specs_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts)
  7738. msg_type = TMessageType.REPLY
  7739. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7740. raise
  7741. except MetaException as o1:
  7742. msg_type = TMessageType.REPLY
  7743. result.o1 = o1
  7744. except NoSuchObjectException as o2:
  7745. msg_type = TMessageType.REPLY
  7746. result.o2 = o2
  7747. except Exception as ex:
  7748. msg_type = TMessageType.EXCEPTION
  7749. logging.exception(ex)
  7750. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7751. oprot.writeMessageBegin("get_part_specs_by_filter", msg_type, seqid)
  7752. result.write(oprot)
  7753. oprot.writeMessageEnd()
  7754. oprot.trans.flush()
  7755. def process_get_partitions_by_expr(self, seqid, iprot, oprot):
  7756. args = get_partitions_by_expr_args()
  7757. args.read(iprot)
  7758. iprot.readMessageEnd()
  7759. result = get_partitions_by_expr_result()
  7760. try:
  7761. result.success = self._handler.get_partitions_by_expr(args.req)
  7762. msg_type = TMessageType.REPLY
  7763. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7764. raise
  7765. except MetaException as o1:
  7766. msg_type = TMessageType.REPLY
  7767. result.o1 = o1
  7768. except NoSuchObjectException as o2:
  7769. msg_type = TMessageType.REPLY
  7770. result.o2 = o2
  7771. except Exception as ex:
  7772. msg_type = TMessageType.EXCEPTION
  7773. logging.exception(ex)
  7774. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7775. oprot.writeMessageBegin("get_partitions_by_expr", msg_type, seqid)
  7776. result.write(oprot)
  7777. oprot.writeMessageEnd()
  7778. oprot.trans.flush()
  7779. def process_get_num_partitions_by_filter(self, seqid, iprot, oprot):
  7780. args = get_num_partitions_by_filter_args()
  7781. args.read(iprot)
  7782. iprot.readMessageEnd()
  7783. result = get_num_partitions_by_filter_result()
  7784. try:
  7785. result.success = self._handler.get_num_partitions_by_filter(args.db_name, args.tbl_name, args.filter)
  7786. msg_type = TMessageType.REPLY
  7787. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7788. raise
  7789. except MetaException as o1:
  7790. msg_type = TMessageType.REPLY
  7791. result.o1 = o1
  7792. except NoSuchObjectException as o2:
  7793. msg_type = TMessageType.REPLY
  7794. result.o2 = o2
  7795. except Exception as ex:
  7796. msg_type = TMessageType.EXCEPTION
  7797. logging.exception(ex)
  7798. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7799. oprot.writeMessageBegin("get_num_partitions_by_filter", msg_type, seqid)
  7800. result.write(oprot)
  7801. oprot.writeMessageEnd()
  7802. oprot.trans.flush()
  7803. def process_get_partitions_by_names(self, seqid, iprot, oprot):
  7804. args = get_partitions_by_names_args()
  7805. args.read(iprot)
  7806. iprot.readMessageEnd()
  7807. result = get_partitions_by_names_result()
  7808. try:
  7809. result.success = self._handler.get_partitions_by_names(args.db_name, args.tbl_name, args.names)
  7810. msg_type = TMessageType.REPLY
  7811. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7812. raise
  7813. except MetaException as o1:
  7814. msg_type = TMessageType.REPLY
  7815. result.o1 = o1
  7816. except NoSuchObjectException as o2:
  7817. msg_type = TMessageType.REPLY
  7818. result.o2 = o2
  7819. except Exception as ex:
  7820. msg_type = TMessageType.EXCEPTION
  7821. logging.exception(ex)
  7822. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7823. oprot.writeMessageBegin("get_partitions_by_names", msg_type, seqid)
  7824. result.write(oprot)
  7825. oprot.writeMessageEnd()
  7826. oprot.trans.flush()
  7827. def process_alter_partition(self, seqid, iprot, oprot):
  7828. args = alter_partition_args()
  7829. args.read(iprot)
  7830. iprot.readMessageEnd()
  7831. result = alter_partition_result()
  7832. try:
  7833. self._handler.alter_partition(args.db_name, args.tbl_name, args.new_part)
  7834. msg_type = TMessageType.REPLY
  7835. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7836. raise
  7837. except InvalidOperationException as o1:
  7838. msg_type = TMessageType.REPLY
  7839. result.o1 = o1
  7840. except MetaException as o2:
  7841. msg_type = TMessageType.REPLY
  7842. result.o2 = o2
  7843. except Exception as ex:
  7844. msg_type = TMessageType.EXCEPTION
  7845. logging.exception(ex)
  7846. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7847. oprot.writeMessageBegin("alter_partition", msg_type, seqid)
  7848. result.write(oprot)
  7849. oprot.writeMessageEnd()
  7850. oprot.trans.flush()
  7851. def process_alter_partitions(self, seqid, iprot, oprot):
  7852. args = alter_partitions_args()
  7853. args.read(iprot)
  7854. iprot.readMessageEnd()
  7855. result = alter_partitions_result()
  7856. try:
  7857. self._handler.alter_partitions(args.db_name, args.tbl_name, args.new_parts)
  7858. msg_type = TMessageType.REPLY
  7859. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7860. raise
  7861. except InvalidOperationException as o1:
  7862. msg_type = TMessageType.REPLY
  7863. result.o1 = o1
  7864. except MetaException as o2:
  7865. msg_type = TMessageType.REPLY
  7866. result.o2 = o2
  7867. except Exception as ex:
  7868. msg_type = TMessageType.EXCEPTION
  7869. logging.exception(ex)
  7870. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7871. oprot.writeMessageBegin("alter_partitions", msg_type, seqid)
  7872. result.write(oprot)
  7873. oprot.writeMessageEnd()
  7874. oprot.trans.flush()
  7875. def process_alter_partitions_with_environment_context(self, seqid, iprot, oprot):
  7876. args = alter_partitions_with_environment_context_args()
  7877. args.read(iprot)
  7878. iprot.readMessageEnd()
  7879. result = alter_partitions_with_environment_context_result()
  7880. try:
  7881. self._handler.alter_partitions_with_environment_context(args.db_name, args.tbl_name, args.new_parts, args.environment_context)
  7882. msg_type = TMessageType.REPLY
  7883. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7884. raise
  7885. except InvalidOperationException as o1:
  7886. msg_type = TMessageType.REPLY
  7887. result.o1 = o1
  7888. except MetaException as o2:
  7889. msg_type = TMessageType.REPLY
  7890. result.o2 = o2
  7891. except Exception as ex:
  7892. msg_type = TMessageType.EXCEPTION
  7893. logging.exception(ex)
  7894. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7895. oprot.writeMessageBegin("alter_partitions_with_environment_context", msg_type, seqid)
  7896. result.write(oprot)
  7897. oprot.writeMessageEnd()
  7898. oprot.trans.flush()
  7899. def process_alter_partition_with_environment_context(self, seqid, iprot, oprot):
  7900. args = alter_partition_with_environment_context_args()
  7901. args.read(iprot)
  7902. iprot.readMessageEnd()
  7903. result = alter_partition_with_environment_context_result()
  7904. try:
  7905. self._handler.alter_partition_with_environment_context(args.db_name, args.tbl_name, args.new_part, args.environment_context)
  7906. msg_type = TMessageType.REPLY
  7907. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7908. raise
  7909. except InvalidOperationException as o1:
  7910. msg_type = TMessageType.REPLY
  7911. result.o1 = o1
  7912. except MetaException as o2:
  7913. msg_type = TMessageType.REPLY
  7914. result.o2 = o2
  7915. except Exception as ex:
  7916. msg_type = TMessageType.EXCEPTION
  7917. logging.exception(ex)
  7918. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7919. oprot.writeMessageBegin("alter_partition_with_environment_context", msg_type, seqid)
  7920. result.write(oprot)
  7921. oprot.writeMessageEnd()
  7922. oprot.trans.flush()
  7923. def process_rename_partition(self, seqid, iprot, oprot):
  7924. args = rename_partition_args()
  7925. args.read(iprot)
  7926. iprot.readMessageEnd()
  7927. result = rename_partition_result()
  7928. try:
  7929. self._handler.rename_partition(args.db_name, args.tbl_name, args.part_vals, args.new_part)
  7930. msg_type = TMessageType.REPLY
  7931. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7932. raise
  7933. except InvalidOperationException as o1:
  7934. msg_type = TMessageType.REPLY
  7935. result.o1 = o1
  7936. except MetaException as o2:
  7937. msg_type = TMessageType.REPLY
  7938. result.o2 = o2
  7939. except Exception as ex:
  7940. msg_type = TMessageType.EXCEPTION
  7941. logging.exception(ex)
  7942. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7943. oprot.writeMessageBegin("rename_partition", msg_type, seqid)
  7944. result.write(oprot)
  7945. oprot.writeMessageEnd()
  7946. oprot.trans.flush()
  7947. def process_partition_name_has_valid_characters(self, seqid, iprot, oprot):
  7948. args = partition_name_has_valid_characters_args()
  7949. args.read(iprot)
  7950. iprot.readMessageEnd()
  7951. result = partition_name_has_valid_characters_result()
  7952. try:
  7953. result.success = self._handler.partition_name_has_valid_characters(args.part_vals, args.throw_exception)
  7954. msg_type = TMessageType.REPLY
  7955. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7956. raise
  7957. except MetaException as o1:
  7958. msg_type = TMessageType.REPLY
  7959. result.o1 = o1
  7960. except Exception as ex:
  7961. msg_type = TMessageType.EXCEPTION
  7962. logging.exception(ex)
  7963. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7964. oprot.writeMessageBegin("partition_name_has_valid_characters", msg_type, seqid)
  7965. result.write(oprot)
  7966. oprot.writeMessageEnd()
  7967. oprot.trans.flush()
  7968. def process_get_config_value(self, seqid, iprot, oprot):
  7969. args = get_config_value_args()
  7970. args.read(iprot)
  7971. iprot.readMessageEnd()
  7972. result = get_config_value_result()
  7973. try:
  7974. result.success = self._handler.get_config_value(args.name, args.defaultValue)
  7975. msg_type = TMessageType.REPLY
  7976. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7977. raise
  7978. except ConfigValSecurityException as o1:
  7979. msg_type = TMessageType.REPLY
  7980. result.o1 = o1
  7981. except Exception as ex:
  7982. msg_type = TMessageType.EXCEPTION
  7983. logging.exception(ex)
  7984. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7985. oprot.writeMessageBegin("get_config_value", msg_type, seqid)
  7986. result.write(oprot)
  7987. oprot.writeMessageEnd()
  7988. oprot.trans.flush()
  7989. def process_partition_name_to_vals(self, seqid, iprot, oprot):
  7990. args = partition_name_to_vals_args()
  7991. args.read(iprot)
  7992. iprot.readMessageEnd()
  7993. result = partition_name_to_vals_result()
  7994. try:
  7995. result.success = self._handler.partition_name_to_vals(args.part_name)
  7996. msg_type = TMessageType.REPLY
  7997. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  7998. raise
  7999. except MetaException as o1:
  8000. msg_type = TMessageType.REPLY
  8001. result.o1 = o1
  8002. except Exception as ex:
  8003. msg_type = TMessageType.EXCEPTION
  8004. logging.exception(ex)
  8005. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8006. oprot.writeMessageBegin("partition_name_to_vals", msg_type, seqid)
  8007. result.write(oprot)
  8008. oprot.writeMessageEnd()
  8009. oprot.trans.flush()
  8010. def process_partition_name_to_spec(self, seqid, iprot, oprot):
  8011. args = partition_name_to_spec_args()
  8012. args.read(iprot)
  8013. iprot.readMessageEnd()
  8014. result = partition_name_to_spec_result()
  8015. try:
  8016. result.success = self._handler.partition_name_to_spec(args.part_name)
  8017. msg_type = TMessageType.REPLY
  8018. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8019. raise
  8020. except MetaException as o1:
  8021. msg_type = TMessageType.REPLY
  8022. result.o1 = o1
  8023. except Exception as ex:
  8024. msg_type = TMessageType.EXCEPTION
  8025. logging.exception(ex)
  8026. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8027. oprot.writeMessageBegin("partition_name_to_spec", msg_type, seqid)
  8028. result.write(oprot)
  8029. oprot.writeMessageEnd()
  8030. oprot.trans.flush()
  8031. def process_markPartitionForEvent(self, seqid, iprot, oprot):
  8032. args = markPartitionForEvent_args()
  8033. args.read(iprot)
  8034. iprot.readMessageEnd()
  8035. result = markPartitionForEvent_result()
  8036. try:
  8037. self._handler.markPartitionForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType)
  8038. msg_type = TMessageType.REPLY
  8039. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8040. raise
  8041. except MetaException as o1:
  8042. msg_type = TMessageType.REPLY
  8043. result.o1 = o1
  8044. except NoSuchObjectException as o2:
  8045. msg_type = TMessageType.REPLY
  8046. result.o2 = o2
  8047. except UnknownDBException as o3:
  8048. msg_type = TMessageType.REPLY
  8049. result.o3 = o3
  8050. except UnknownTableException as o4:
  8051. msg_type = TMessageType.REPLY
  8052. result.o4 = o4
  8053. except UnknownPartitionException as o5:
  8054. msg_type = TMessageType.REPLY
  8055. result.o5 = o5
  8056. except InvalidPartitionException as o6:
  8057. msg_type = TMessageType.REPLY
  8058. result.o6 = o6
  8059. except Exception as ex:
  8060. msg_type = TMessageType.EXCEPTION
  8061. logging.exception(ex)
  8062. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8063. oprot.writeMessageBegin("markPartitionForEvent", msg_type, seqid)
  8064. result.write(oprot)
  8065. oprot.writeMessageEnd()
  8066. oprot.trans.flush()
  8067. def process_isPartitionMarkedForEvent(self, seqid, iprot, oprot):
  8068. args = isPartitionMarkedForEvent_args()
  8069. args.read(iprot)
  8070. iprot.readMessageEnd()
  8071. result = isPartitionMarkedForEvent_result()
  8072. try:
  8073. result.success = self._handler.isPartitionMarkedForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType)
  8074. msg_type = TMessageType.REPLY
  8075. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8076. raise
  8077. except MetaException as o1:
  8078. msg_type = TMessageType.REPLY
  8079. result.o1 = o1
  8080. except NoSuchObjectException as o2:
  8081. msg_type = TMessageType.REPLY
  8082. result.o2 = o2
  8083. except UnknownDBException as o3:
  8084. msg_type = TMessageType.REPLY
  8085. result.o3 = o3
  8086. except UnknownTableException as o4:
  8087. msg_type = TMessageType.REPLY
  8088. result.o4 = o4
  8089. except UnknownPartitionException as o5:
  8090. msg_type = TMessageType.REPLY
  8091. result.o5 = o5
  8092. except InvalidPartitionException as o6:
  8093. msg_type = TMessageType.REPLY
  8094. result.o6 = o6
  8095. except Exception as ex:
  8096. msg_type = TMessageType.EXCEPTION
  8097. logging.exception(ex)
  8098. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8099. oprot.writeMessageBegin("isPartitionMarkedForEvent", msg_type, seqid)
  8100. result.write(oprot)
  8101. oprot.writeMessageEnd()
  8102. oprot.trans.flush()
  8103. def process_add_index(self, seqid, iprot, oprot):
  8104. args = add_index_args()
  8105. args.read(iprot)
  8106. iprot.readMessageEnd()
  8107. result = add_index_result()
  8108. try:
  8109. result.success = self._handler.add_index(args.new_index, args.index_table)
  8110. msg_type = TMessageType.REPLY
  8111. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8112. raise
  8113. except InvalidObjectException as o1:
  8114. msg_type = TMessageType.REPLY
  8115. result.o1 = o1
  8116. except AlreadyExistsException as o2:
  8117. msg_type = TMessageType.REPLY
  8118. result.o2 = o2
  8119. except MetaException as o3:
  8120. msg_type = TMessageType.REPLY
  8121. result.o3 = o3
  8122. except Exception as ex:
  8123. msg_type = TMessageType.EXCEPTION
  8124. logging.exception(ex)
  8125. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8126. oprot.writeMessageBegin("add_index", msg_type, seqid)
  8127. result.write(oprot)
  8128. oprot.writeMessageEnd()
  8129. oprot.trans.flush()
  8130. def process_alter_index(self, seqid, iprot, oprot):
  8131. args = alter_index_args()
  8132. args.read(iprot)
  8133. iprot.readMessageEnd()
  8134. result = alter_index_result()
  8135. try:
  8136. self._handler.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx)
  8137. msg_type = TMessageType.REPLY
  8138. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8139. raise
  8140. except InvalidOperationException as o1:
  8141. msg_type = TMessageType.REPLY
  8142. result.o1 = o1
  8143. except MetaException as o2:
  8144. msg_type = TMessageType.REPLY
  8145. result.o2 = o2
  8146. except Exception as ex:
  8147. msg_type = TMessageType.EXCEPTION
  8148. logging.exception(ex)
  8149. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8150. oprot.writeMessageBegin("alter_index", msg_type, seqid)
  8151. result.write(oprot)
  8152. oprot.writeMessageEnd()
  8153. oprot.trans.flush()
  8154. def process_drop_index_by_name(self, seqid, iprot, oprot):
  8155. args = drop_index_by_name_args()
  8156. args.read(iprot)
  8157. iprot.readMessageEnd()
  8158. result = drop_index_by_name_result()
  8159. try:
  8160. result.success = self._handler.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData)
  8161. msg_type = TMessageType.REPLY
  8162. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8163. raise
  8164. except NoSuchObjectException as o1:
  8165. msg_type = TMessageType.REPLY
  8166. result.o1 = o1
  8167. except MetaException as o2:
  8168. msg_type = TMessageType.REPLY
  8169. result.o2 = o2
  8170. except Exception as ex:
  8171. msg_type = TMessageType.EXCEPTION
  8172. logging.exception(ex)
  8173. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8174. oprot.writeMessageBegin("drop_index_by_name", msg_type, seqid)
  8175. result.write(oprot)
  8176. oprot.writeMessageEnd()
  8177. oprot.trans.flush()
  8178. def process_get_index_by_name(self, seqid, iprot, oprot):
  8179. args = get_index_by_name_args()
  8180. args.read(iprot)
  8181. iprot.readMessageEnd()
  8182. result = get_index_by_name_result()
  8183. try:
  8184. result.success = self._handler.get_index_by_name(args.db_name, args.tbl_name, args.index_name)
  8185. msg_type = TMessageType.REPLY
  8186. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8187. raise
  8188. except MetaException as o1:
  8189. msg_type = TMessageType.REPLY
  8190. result.o1 = o1
  8191. except NoSuchObjectException as o2:
  8192. msg_type = TMessageType.REPLY
  8193. result.o2 = o2
  8194. except Exception as ex:
  8195. msg_type = TMessageType.EXCEPTION
  8196. logging.exception(ex)
  8197. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8198. oprot.writeMessageBegin("get_index_by_name", msg_type, seqid)
  8199. result.write(oprot)
  8200. oprot.writeMessageEnd()
  8201. oprot.trans.flush()
  8202. def process_get_indexes(self, seqid, iprot, oprot):
  8203. args = get_indexes_args()
  8204. args.read(iprot)
  8205. iprot.readMessageEnd()
  8206. result = get_indexes_result()
  8207. try:
  8208. result.success = self._handler.get_indexes(args.db_name, args.tbl_name, args.max_indexes)
  8209. msg_type = TMessageType.REPLY
  8210. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8211. raise
  8212. except NoSuchObjectException as o1:
  8213. msg_type = TMessageType.REPLY
  8214. result.o1 = o1
  8215. except MetaException as o2:
  8216. msg_type = TMessageType.REPLY
  8217. result.o2 = o2
  8218. except Exception as ex:
  8219. msg_type = TMessageType.EXCEPTION
  8220. logging.exception(ex)
  8221. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8222. oprot.writeMessageBegin("get_indexes", msg_type, seqid)
  8223. result.write(oprot)
  8224. oprot.writeMessageEnd()
  8225. oprot.trans.flush()
  8226. def process_get_index_names(self, seqid, iprot, oprot):
  8227. args = get_index_names_args()
  8228. args.read(iprot)
  8229. iprot.readMessageEnd()
  8230. result = get_index_names_result()
  8231. try:
  8232. result.success = self._handler.get_index_names(args.db_name, args.tbl_name, args.max_indexes)
  8233. msg_type = TMessageType.REPLY
  8234. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8235. raise
  8236. except MetaException as o2:
  8237. msg_type = TMessageType.REPLY
  8238. result.o2 = o2
  8239. except Exception as ex:
  8240. msg_type = TMessageType.EXCEPTION
  8241. logging.exception(ex)
  8242. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8243. oprot.writeMessageBegin("get_index_names", msg_type, seqid)
  8244. result.write(oprot)
  8245. oprot.writeMessageEnd()
  8246. oprot.trans.flush()
  8247. def process_get_primary_keys(self, seqid, iprot, oprot):
  8248. args = get_primary_keys_args()
  8249. args.read(iprot)
  8250. iprot.readMessageEnd()
  8251. result = get_primary_keys_result()
  8252. try:
  8253. result.success = self._handler.get_primary_keys(args.request)
  8254. msg_type = TMessageType.REPLY
  8255. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8256. raise
  8257. except MetaException as o1:
  8258. msg_type = TMessageType.REPLY
  8259. result.o1 = o1
  8260. except NoSuchObjectException as o2:
  8261. msg_type = TMessageType.REPLY
  8262. result.o2 = o2
  8263. except Exception as ex:
  8264. msg_type = TMessageType.EXCEPTION
  8265. logging.exception(ex)
  8266. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8267. oprot.writeMessageBegin("get_primary_keys", msg_type, seqid)
  8268. result.write(oprot)
  8269. oprot.writeMessageEnd()
  8270. oprot.trans.flush()
  8271. def process_get_foreign_keys(self, seqid, iprot, oprot):
  8272. args = get_foreign_keys_args()
  8273. args.read(iprot)
  8274. iprot.readMessageEnd()
  8275. result = get_foreign_keys_result()
  8276. try:
  8277. result.success = self._handler.get_foreign_keys(args.request)
  8278. msg_type = TMessageType.REPLY
  8279. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8280. raise
  8281. except MetaException as o1:
  8282. msg_type = TMessageType.REPLY
  8283. result.o1 = o1
  8284. except NoSuchObjectException as o2:
  8285. msg_type = TMessageType.REPLY
  8286. result.o2 = o2
  8287. except Exception as ex:
  8288. msg_type = TMessageType.EXCEPTION
  8289. logging.exception(ex)
  8290. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8291. oprot.writeMessageBegin("get_foreign_keys", msg_type, seqid)
  8292. result.write(oprot)
  8293. oprot.writeMessageEnd()
  8294. oprot.trans.flush()
  8295. def process_update_table_column_statistics(self, seqid, iprot, oprot):
  8296. args = update_table_column_statistics_args()
  8297. args.read(iprot)
  8298. iprot.readMessageEnd()
  8299. result = update_table_column_statistics_result()
  8300. try:
  8301. result.success = self._handler.update_table_column_statistics(args.stats_obj)
  8302. msg_type = TMessageType.REPLY
  8303. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8304. raise
  8305. except NoSuchObjectException as o1:
  8306. msg_type = TMessageType.REPLY
  8307. result.o1 = o1
  8308. except InvalidObjectException as o2:
  8309. msg_type = TMessageType.REPLY
  8310. result.o2 = o2
  8311. except MetaException as o3:
  8312. msg_type = TMessageType.REPLY
  8313. result.o3 = o3
  8314. except InvalidInputException as o4:
  8315. msg_type = TMessageType.REPLY
  8316. result.o4 = o4
  8317. except Exception as ex:
  8318. msg_type = TMessageType.EXCEPTION
  8319. logging.exception(ex)
  8320. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8321. oprot.writeMessageBegin("update_table_column_statistics", msg_type, seqid)
  8322. result.write(oprot)
  8323. oprot.writeMessageEnd()
  8324. oprot.trans.flush()
  8325. def process_update_partition_column_statistics(self, seqid, iprot, oprot):
  8326. args = update_partition_column_statistics_args()
  8327. args.read(iprot)
  8328. iprot.readMessageEnd()
  8329. result = update_partition_column_statistics_result()
  8330. try:
  8331. result.success = self._handler.update_partition_column_statistics(args.stats_obj)
  8332. msg_type = TMessageType.REPLY
  8333. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8334. raise
  8335. except NoSuchObjectException as o1:
  8336. msg_type = TMessageType.REPLY
  8337. result.o1 = o1
  8338. except InvalidObjectException as o2:
  8339. msg_type = TMessageType.REPLY
  8340. result.o2 = o2
  8341. except MetaException as o3:
  8342. msg_type = TMessageType.REPLY
  8343. result.o3 = o3
  8344. except InvalidInputException as o4:
  8345. msg_type = TMessageType.REPLY
  8346. result.o4 = o4
  8347. except Exception as ex:
  8348. msg_type = TMessageType.EXCEPTION
  8349. logging.exception(ex)
  8350. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8351. oprot.writeMessageBegin("update_partition_column_statistics", msg_type, seqid)
  8352. result.write(oprot)
  8353. oprot.writeMessageEnd()
  8354. oprot.trans.flush()
  8355. def process_get_table_column_statistics(self, seqid, iprot, oprot):
  8356. args = get_table_column_statistics_args()
  8357. args.read(iprot)
  8358. iprot.readMessageEnd()
  8359. result = get_table_column_statistics_result()
  8360. try:
  8361. result.success = self._handler.get_table_column_statistics(args.db_name, args.tbl_name, args.col_name)
  8362. msg_type = TMessageType.REPLY
  8363. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8364. raise
  8365. except NoSuchObjectException as o1:
  8366. msg_type = TMessageType.REPLY
  8367. result.o1 = o1
  8368. except MetaException as o2:
  8369. msg_type = TMessageType.REPLY
  8370. result.o2 = o2
  8371. except InvalidInputException as o3:
  8372. msg_type = TMessageType.REPLY
  8373. result.o3 = o3
  8374. except InvalidObjectException as o4:
  8375. msg_type = TMessageType.REPLY
  8376. result.o4 = o4
  8377. except Exception as ex:
  8378. msg_type = TMessageType.EXCEPTION
  8379. logging.exception(ex)
  8380. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8381. oprot.writeMessageBegin("get_table_column_statistics", msg_type, seqid)
  8382. result.write(oprot)
  8383. oprot.writeMessageEnd()
  8384. oprot.trans.flush()
  8385. def process_get_partition_column_statistics(self, seqid, iprot, oprot):
  8386. args = get_partition_column_statistics_args()
  8387. args.read(iprot)
  8388. iprot.readMessageEnd()
  8389. result = get_partition_column_statistics_result()
  8390. try:
  8391. result.success = self._handler.get_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name)
  8392. msg_type = TMessageType.REPLY
  8393. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8394. raise
  8395. except NoSuchObjectException as o1:
  8396. msg_type = TMessageType.REPLY
  8397. result.o1 = o1
  8398. except MetaException as o2:
  8399. msg_type = TMessageType.REPLY
  8400. result.o2 = o2
  8401. except InvalidInputException as o3:
  8402. msg_type = TMessageType.REPLY
  8403. result.o3 = o3
  8404. except InvalidObjectException as o4:
  8405. msg_type = TMessageType.REPLY
  8406. result.o4 = o4
  8407. except Exception as ex:
  8408. msg_type = TMessageType.EXCEPTION
  8409. logging.exception(ex)
  8410. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8411. oprot.writeMessageBegin("get_partition_column_statistics", msg_type, seqid)
  8412. result.write(oprot)
  8413. oprot.writeMessageEnd()
  8414. oprot.trans.flush()
  8415. def process_get_table_statistics_req(self, seqid, iprot, oprot):
  8416. args = get_table_statistics_req_args()
  8417. args.read(iprot)
  8418. iprot.readMessageEnd()
  8419. result = get_table_statistics_req_result()
  8420. try:
  8421. result.success = self._handler.get_table_statistics_req(args.request)
  8422. msg_type = TMessageType.REPLY
  8423. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8424. raise
  8425. except NoSuchObjectException as o1:
  8426. msg_type = TMessageType.REPLY
  8427. result.o1 = o1
  8428. except MetaException as o2:
  8429. msg_type = TMessageType.REPLY
  8430. result.o2 = o2
  8431. except Exception as ex:
  8432. msg_type = TMessageType.EXCEPTION
  8433. logging.exception(ex)
  8434. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8435. oprot.writeMessageBegin("get_table_statistics_req", msg_type, seqid)
  8436. result.write(oprot)
  8437. oprot.writeMessageEnd()
  8438. oprot.trans.flush()
  8439. def process_get_partitions_statistics_req(self, seqid, iprot, oprot):
  8440. args = get_partitions_statistics_req_args()
  8441. args.read(iprot)
  8442. iprot.readMessageEnd()
  8443. result = get_partitions_statistics_req_result()
  8444. try:
  8445. result.success = self._handler.get_partitions_statistics_req(args.request)
  8446. msg_type = TMessageType.REPLY
  8447. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8448. raise
  8449. except NoSuchObjectException as o1:
  8450. msg_type = TMessageType.REPLY
  8451. result.o1 = o1
  8452. except MetaException as o2:
  8453. msg_type = TMessageType.REPLY
  8454. result.o2 = o2
  8455. except Exception as ex:
  8456. msg_type = TMessageType.EXCEPTION
  8457. logging.exception(ex)
  8458. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8459. oprot.writeMessageBegin("get_partitions_statistics_req", msg_type, seqid)
  8460. result.write(oprot)
  8461. oprot.writeMessageEnd()
  8462. oprot.trans.flush()
  8463. def process_get_aggr_stats_for(self, seqid, iprot, oprot):
  8464. args = get_aggr_stats_for_args()
  8465. args.read(iprot)
  8466. iprot.readMessageEnd()
  8467. result = get_aggr_stats_for_result()
  8468. try:
  8469. result.success = self._handler.get_aggr_stats_for(args.request)
  8470. msg_type = TMessageType.REPLY
  8471. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8472. raise
  8473. except NoSuchObjectException as o1:
  8474. msg_type = TMessageType.REPLY
  8475. result.o1 = o1
  8476. except MetaException as o2:
  8477. msg_type = TMessageType.REPLY
  8478. result.o2 = o2
  8479. except Exception as ex:
  8480. msg_type = TMessageType.EXCEPTION
  8481. logging.exception(ex)
  8482. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8483. oprot.writeMessageBegin("get_aggr_stats_for", msg_type, seqid)
  8484. result.write(oprot)
  8485. oprot.writeMessageEnd()
  8486. oprot.trans.flush()
  8487. def process_set_aggr_stats_for(self, seqid, iprot, oprot):
  8488. args = set_aggr_stats_for_args()
  8489. args.read(iprot)
  8490. iprot.readMessageEnd()
  8491. result = set_aggr_stats_for_result()
  8492. try:
  8493. result.success = self._handler.set_aggr_stats_for(args.request)
  8494. msg_type = TMessageType.REPLY
  8495. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8496. raise
  8497. except NoSuchObjectException as o1:
  8498. msg_type = TMessageType.REPLY
  8499. result.o1 = o1
  8500. except InvalidObjectException as o2:
  8501. msg_type = TMessageType.REPLY
  8502. result.o2 = o2
  8503. except MetaException as o3:
  8504. msg_type = TMessageType.REPLY
  8505. result.o3 = o3
  8506. except InvalidInputException as o4:
  8507. msg_type = TMessageType.REPLY
  8508. result.o4 = o4
  8509. except Exception as ex:
  8510. msg_type = TMessageType.EXCEPTION
  8511. logging.exception(ex)
  8512. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8513. oprot.writeMessageBegin("set_aggr_stats_for", msg_type, seqid)
  8514. result.write(oprot)
  8515. oprot.writeMessageEnd()
  8516. oprot.trans.flush()
  8517. def process_delete_partition_column_statistics(self, seqid, iprot, oprot):
  8518. args = delete_partition_column_statistics_args()
  8519. args.read(iprot)
  8520. iprot.readMessageEnd()
  8521. result = delete_partition_column_statistics_result()
  8522. try:
  8523. result.success = self._handler.delete_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name)
  8524. msg_type = TMessageType.REPLY
  8525. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8526. raise
  8527. except NoSuchObjectException as o1:
  8528. msg_type = TMessageType.REPLY
  8529. result.o1 = o1
  8530. except MetaException as o2:
  8531. msg_type = TMessageType.REPLY
  8532. result.o2 = o2
  8533. except InvalidObjectException as o3:
  8534. msg_type = TMessageType.REPLY
  8535. result.o3 = o3
  8536. except InvalidInputException as o4:
  8537. msg_type = TMessageType.REPLY
  8538. result.o4 = o4
  8539. except Exception as ex:
  8540. msg_type = TMessageType.EXCEPTION
  8541. logging.exception(ex)
  8542. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8543. oprot.writeMessageBegin("delete_partition_column_statistics", msg_type, seqid)
  8544. result.write(oprot)
  8545. oprot.writeMessageEnd()
  8546. oprot.trans.flush()
  8547. def process_delete_table_column_statistics(self, seqid, iprot, oprot):
  8548. args = delete_table_column_statistics_args()
  8549. args.read(iprot)
  8550. iprot.readMessageEnd()
  8551. result = delete_table_column_statistics_result()
  8552. try:
  8553. result.success = self._handler.delete_table_column_statistics(args.db_name, args.tbl_name, args.col_name)
  8554. msg_type = TMessageType.REPLY
  8555. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8556. raise
  8557. except NoSuchObjectException as o1:
  8558. msg_type = TMessageType.REPLY
  8559. result.o1 = o1
  8560. except MetaException as o2:
  8561. msg_type = TMessageType.REPLY
  8562. result.o2 = o2
  8563. except InvalidObjectException as o3:
  8564. msg_type = TMessageType.REPLY
  8565. result.o3 = o3
  8566. except InvalidInputException as o4:
  8567. msg_type = TMessageType.REPLY
  8568. result.o4 = o4
  8569. except Exception as ex:
  8570. msg_type = TMessageType.EXCEPTION
  8571. logging.exception(ex)
  8572. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8573. oprot.writeMessageBegin("delete_table_column_statistics", msg_type, seqid)
  8574. result.write(oprot)
  8575. oprot.writeMessageEnd()
  8576. oprot.trans.flush()
  8577. def process_create_function(self, seqid, iprot, oprot):
  8578. args = create_function_args()
  8579. args.read(iprot)
  8580. iprot.readMessageEnd()
  8581. result = create_function_result()
  8582. try:
  8583. self._handler.create_function(args.func)
  8584. msg_type = TMessageType.REPLY
  8585. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8586. raise
  8587. except AlreadyExistsException as o1:
  8588. msg_type = TMessageType.REPLY
  8589. result.o1 = o1
  8590. except InvalidObjectException as o2:
  8591. msg_type = TMessageType.REPLY
  8592. result.o2 = o2
  8593. except MetaException as o3:
  8594. msg_type = TMessageType.REPLY
  8595. result.o3 = o3
  8596. except NoSuchObjectException as o4:
  8597. msg_type = TMessageType.REPLY
  8598. result.o4 = o4
  8599. except Exception as ex:
  8600. msg_type = TMessageType.EXCEPTION
  8601. logging.exception(ex)
  8602. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8603. oprot.writeMessageBegin("create_function", msg_type, seqid)
  8604. result.write(oprot)
  8605. oprot.writeMessageEnd()
  8606. oprot.trans.flush()
  8607. def process_drop_function(self, seqid, iprot, oprot):
  8608. args = drop_function_args()
  8609. args.read(iprot)
  8610. iprot.readMessageEnd()
  8611. result = drop_function_result()
  8612. try:
  8613. self._handler.drop_function(args.dbName, args.funcName)
  8614. msg_type = TMessageType.REPLY
  8615. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8616. raise
  8617. except NoSuchObjectException as o1:
  8618. msg_type = TMessageType.REPLY
  8619. result.o1 = o1
  8620. except MetaException as o3:
  8621. msg_type = TMessageType.REPLY
  8622. result.o3 = o3
  8623. except Exception as ex:
  8624. msg_type = TMessageType.EXCEPTION
  8625. logging.exception(ex)
  8626. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8627. oprot.writeMessageBegin("drop_function", msg_type, seqid)
  8628. result.write(oprot)
  8629. oprot.writeMessageEnd()
  8630. oprot.trans.flush()
  8631. def process_alter_function(self, seqid, iprot, oprot):
  8632. args = alter_function_args()
  8633. args.read(iprot)
  8634. iprot.readMessageEnd()
  8635. result = alter_function_result()
  8636. try:
  8637. self._handler.alter_function(args.dbName, args.funcName, args.newFunc)
  8638. msg_type = TMessageType.REPLY
  8639. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8640. raise
  8641. except InvalidOperationException as o1:
  8642. msg_type = TMessageType.REPLY
  8643. result.o1 = o1
  8644. except MetaException as o2:
  8645. msg_type = TMessageType.REPLY
  8646. result.o2 = o2
  8647. except Exception as ex:
  8648. msg_type = TMessageType.EXCEPTION
  8649. logging.exception(ex)
  8650. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8651. oprot.writeMessageBegin("alter_function", msg_type, seqid)
  8652. result.write(oprot)
  8653. oprot.writeMessageEnd()
  8654. oprot.trans.flush()
  8655. def process_get_functions(self, seqid, iprot, oprot):
  8656. args = get_functions_args()
  8657. args.read(iprot)
  8658. iprot.readMessageEnd()
  8659. result = get_functions_result()
  8660. try:
  8661. result.success = self._handler.get_functions(args.dbName, args.pattern)
  8662. msg_type = TMessageType.REPLY
  8663. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8664. raise
  8665. except MetaException as o1:
  8666. msg_type = TMessageType.REPLY
  8667. result.o1 = o1
  8668. except Exception as ex:
  8669. msg_type = TMessageType.EXCEPTION
  8670. logging.exception(ex)
  8671. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8672. oprot.writeMessageBegin("get_functions", msg_type, seqid)
  8673. result.write(oprot)
  8674. oprot.writeMessageEnd()
  8675. oprot.trans.flush()
  8676. def process_get_function(self, seqid, iprot, oprot):
  8677. args = get_function_args()
  8678. args.read(iprot)
  8679. iprot.readMessageEnd()
  8680. result = get_function_result()
  8681. try:
  8682. result.success = self._handler.get_function(args.dbName, args.funcName)
  8683. msg_type = TMessageType.REPLY
  8684. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8685. raise
  8686. except MetaException as o1:
  8687. msg_type = TMessageType.REPLY
  8688. result.o1 = o1
  8689. except NoSuchObjectException as o2:
  8690. msg_type = TMessageType.REPLY
  8691. result.o2 = o2
  8692. except Exception as ex:
  8693. msg_type = TMessageType.EXCEPTION
  8694. logging.exception(ex)
  8695. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8696. oprot.writeMessageBegin("get_function", msg_type, seqid)
  8697. result.write(oprot)
  8698. oprot.writeMessageEnd()
  8699. oprot.trans.flush()
  8700. def process_get_all_functions(self, seqid, iprot, oprot):
  8701. args = get_all_functions_args()
  8702. args.read(iprot)
  8703. iprot.readMessageEnd()
  8704. result = get_all_functions_result()
  8705. try:
  8706. result.success = self._handler.get_all_functions()
  8707. msg_type = TMessageType.REPLY
  8708. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8709. raise
  8710. except MetaException as o1:
  8711. msg_type = TMessageType.REPLY
  8712. result.o1 = o1
  8713. except Exception as ex:
  8714. msg_type = TMessageType.EXCEPTION
  8715. logging.exception(ex)
  8716. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8717. oprot.writeMessageBegin("get_all_functions", msg_type, seqid)
  8718. result.write(oprot)
  8719. oprot.writeMessageEnd()
  8720. oprot.trans.flush()
  8721. def process_create_role(self, seqid, iprot, oprot):
  8722. args = create_role_args()
  8723. args.read(iprot)
  8724. iprot.readMessageEnd()
  8725. result = create_role_result()
  8726. try:
  8727. result.success = self._handler.create_role(args.role)
  8728. msg_type = TMessageType.REPLY
  8729. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8730. raise
  8731. except MetaException as o1:
  8732. msg_type = TMessageType.REPLY
  8733. result.o1 = o1
  8734. except Exception as ex:
  8735. msg_type = TMessageType.EXCEPTION
  8736. logging.exception(ex)
  8737. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8738. oprot.writeMessageBegin("create_role", msg_type, seqid)
  8739. result.write(oprot)
  8740. oprot.writeMessageEnd()
  8741. oprot.trans.flush()
  8742. def process_drop_role(self, seqid, iprot, oprot):
  8743. args = drop_role_args()
  8744. args.read(iprot)
  8745. iprot.readMessageEnd()
  8746. result = drop_role_result()
  8747. try:
  8748. result.success = self._handler.drop_role(args.role_name)
  8749. msg_type = TMessageType.REPLY
  8750. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8751. raise
  8752. except MetaException as o1:
  8753. msg_type = TMessageType.REPLY
  8754. result.o1 = o1
  8755. except Exception as ex:
  8756. msg_type = TMessageType.EXCEPTION
  8757. logging.exception(ex)
  8758. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8759. oprot.writeMessageBegin("drop_role", msg_type, seqid)
  8760. result.write(oprot)
  8761. oprot.writeMessageEnd()
  8762. oprot.trans.flush()
  8763. def process_get_role_names(self, seqid, iprot, oprot):
  8764. args = get_role_names_args()
  8765. args.read(iprot)
  8766. iprot.readMessageEnd()
  8767. result = get_role_names_result()
  8768. try:
  8769. result.success = self._handler.get_role_names()
  8770. msg_type = TMessageType.REPLY
  8771. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8772. raise
  8773. except MetaException as o1:
  8774. msg_type = TMessageType.REPLY
  8775. result.o1 = o1
  8776. except Exception as ex:
  8777. msg_type = TMessageType.EXCEPTION
  8778. logging.exception(ex)
  8779. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8780. oprot.writeMessageBegin("get_role_names", msg_type, seqid)
  8781. result.write(oprot)
  8782. oprot.writeMessageEnd()
  8783. oprot.trans.flush()
  8784. def process_grant_role(self, seqid, iprot, oprot):
  8785. args = grant_role_args()
  8786. args.read(iprot)
  8787. iprot.readMessageEnd()
  8788. result = grant_role_result()
  8789. try:
  8790. result.success = self._handler.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option)
  8791. msg_type = TMessageType.REPLY
  8792. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8793. raise
  8794. except MetaException as o1:
  8795. msg_type = TMessageType.REPLY
  8796. result.o1 = o1
  8797. except Exception as ex:
  8798. msg_type = TMessageType.EXCEPTION
  8799. logging.exception(ex)
  8800. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8801. oprot.writeMessageBegin("grant_role", msg_type, seqid)
  8802. result.write(oprot)
  8803. oprot.writeMessageEnd()
  8804. oprot.trans.flush()
  8805. def process_revoke_role(self, seqid, iprot, oprot):
  8806. args = revoke_role_args()
  8807. args.read(iprot)
  8808. iprot.readMessageEnd()
  8809. result = revoke_role_result()
  8810. try:
  8811. result.success = self._handler.revoke_role(args.role_name, args.principal_name, args.principal_type)
  8812. msg_type = TMessageType.REPLY
  8813. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8814. raise
  8815. except MetaException as o1:
  8816. msg_type = TMessageType.REPLY
  8817. result.o1 = o1
  8818. except Exception as ex:
  8819. msg_type = TMessageType.EXCEPTION
  8820. logging.exception(ex)
  8821. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8822. oprot.writeMessageBegin("revoke_role", msg_type, seqid)
  8823. result.write(oprot)
  8824. oprot.writeMessageEnd()
  8825. oprot.trans.flush()
  8826. def process_list_roles(self, seqid, iprot, oprot):
  8827. args = list_roles_args()
  8828. args.read(iprot)
  8829. iprot.readMessageEnd()
  8830. result = list_roles_result()
  8831. try:
  8832. result.success = self._handler.list_roles(args.principal_name, args.principal_type)
  8833. msg_type = TMessageType.REPLY
  8834. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8835. raise
  8836. except MetaException as o1:
  8837. msg_type = TMessageType.REPLY
  8838. result.o1 = o1
  8839. except Exception as ex:
  8840. msg_type = TMessageType.EXCEPTION
  8841. logging.exception(ex)
  8842. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8843. oprot.writeMessageBegin("list_roles", msg_type, seqid)
  8844. result.write(oprot)
  8845. oprot.writeMessageEnd()
  8846. oprot.trans.flush()
  8847. def process_grant_revoke_role(self, seqid, iprot, oprot):
  8848. args = grant_revoke_role_args()
  8849. args.read(iprot)
  8850. iprot.readMessageEnd()
  8851. result = grant_revoke_role_result()
  8852. try:
  8853. result.success = self._handler.grant_revoke_role(args.request)
  8854. msg_type = TMessageType.REPLY
  8855. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8856. raise
  8857. except MetaException as o1:
  8858. msg_type = TMessageType.REPLY
  8859. result.o1 = o1
  8860. except Exception as ex:
  8861. msg_type = TMessageType.EXCEPTION
  8862. logging.exception(ex)
  8863. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8864. oprot.writeMessageBegin("grant_revoke_role", msg_type, seqid)
  8865. result.write(oprot)
  8866. oprot.writeMessageEnd()
  8867. oprot.trans.flush()
  8868. def process_get_principals_in_role(self, seqid, iprot, oprot):
  8869. args = get_principals_in_role_args()
  8870. args.read(iprot)
  8871. iprot.readMessageEnd()
  8872. result = get_principals_in_role_result()
  8873. try:
  8874. result.success = self._handler.get_principals_in_role(args.request)
  8875. msg_type = TMessageType.REPLY
  8876. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8877. raise
  8878. except MetaException as o1:
  8879. msg_type = TMessageType.REPLY
  8880. result.o1 = o1
  8881. except Exception as ex:
  8882. msg_type = TMessageType.EXCEPTION
  8883. logging.exception(ex)
  8884. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8885. oprot.writeMessageBegin("get_principals_in_role", msg_type, seqid)
  8886. result.write(oprot)
  8887. oprot.writeMessageEnd()
  8888. oprot.trans.flush()
  8889. def process_get_role_grants_for_principal(self, seqid, iprot, oprot):
  8890. args = get_role_grants_for_principal_args()
  8891. args.read(iprot)
  8892. iprot.readMessageEnd()
  8893. result = get_role_grants_for_principal_result()
  8894. try:
  8895. result.success = self._handler.get_role_grants_for_principal(args.request)
  8896. msg_type = TMessageType.REPLY
  8897. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8898. raise
  8899. except MetaException as o1:
  8900. msg_type = TMessageType.REPLY
  8901. result.o1 = o1
  8902. except Exception as ex:
  8903. msg_type = TMessageType.EXCEPTION
  8904. logging.exception(ex)
  8905. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8906. oprot.writeMessageBegin("get_role_grants_for_principal", msg_type, seqid)
  8907. result.write(oprot)
  8908. oprot.writeMessageEnd()
  8909. oprot.trans.flush()
  8910. def process_get_privilege_set(self, seqid, iprot, oprot):
  8911. args = get_privilege_set_args()
  8912. args.read(iprot)
  8913. iprot.readMessageEnd()
  8914. result = get_privilege_set_result()
  8915. try:
  8916. result.success = self._handler.get_privilege_set(args.hiveObject, args.user_name, args.group_names)
  8917. msg_type = TMessageType.REPLY
  8918. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8919. raise
  8920. except MetaException as o1:
  8921. msg_type = TMessageType.REPLY
  8922. result.o1 = o1
  8923. except Exception as ex:
  8924. msg_type = TMessageType.EXCEPTION
  8925. logging.exception(ex)
  8926. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8927. oprot.writeMessageBegin("get_privilege_set", msg_type, seqid)
  8928. result.write(oprot)
  8929. oprot.writeMessageEnd()
  8930. oprot.trans.flush()
  8931. def process_list_privileges(self, seqid, iprot, oprot):
  8932. args = list_privileges_args()
  8933. args.read(iprot)
  8934. iprot.readMessageEnd()
  8935. result = list_privileges_result()
  8936. try:
  8937. result.success = self._handler.list_privileges(args.principal_name, args.principal_type, args.hiveObject)
  8938. msg_type = TMessageType.REPLY
  8939. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8940. raise
  8941. except MetaException as o1:
  8942. msg_type = TMessageType.REPLY
  8943. result.o1 = o1
  8944. except Exception as ex:
  8945. msg_type = TMessageType.EXCEPTION
  8946. logging.exception(ex)
  8947. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8948. oprot.writeMessageBegin("list_privileges", msg_type, seqid)
  8949. result.write(oprot)
  8950. oprot.writeMessageEnd()
  8951. oprot.trans.flush()
  8952. def process_grant_privileges(self, seqid, iprot, oprot):
  8953. args = grant_privileges_args()
  8954. args.read(iprot)
  8955. iprot.readMessageEnd()
  8956. result = grant_privileges_result()
  8957. try:
  8958. result.success = self._handler.grant_privileges(args.privileges)
  8959. msg_type = TMessageType.REPLY
  8960. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8961. raise
  8962. except MetaException as o1:
  8963. msg_type = TMessageType.REPLY
  8964. result.o1 = o1
  8965. except Exception as ex:
  8966. msg_type = TMessageType.EXCEPTION
  8967. logging.exception(ex)
  8968. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8969. oprot.writeMessageBegin("grant_privileges", msg_type, seqid)
  8970. result.write(oprot)
  8971. oprot.writeMessageEnd()
  8972. oprot.trans.flush()
  8973. def process_revoke_privileges(self, seqid, iprot, oprot):
  8974. args = revoke_privileges_args()
  8975. args.read(iprot)
  8976. iprot.readMessageEnd()
  8977. result = revoke_privileges_result()
  8978. try:
  8979. result.success = self._handler.revoke_privileges(args.privileges)
  8980. msg_type = TMessageType.REPLY
  8981. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  8982. raise
  8983. except MetaException as o1:
  8984. msg_type = TMessageType.REPLY
  8985. result.o1 = o1
  8986. except Exception as ex:
  8987. msg_type = TMessageType.EXCEPTION
  8988. logging.exception(ex)
  8989. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8990. oprot.writeMessageBegin("revoke_privileges", msg_type, seqid)
  8991. result.write(oprot)
  8992. oprot.writeMessageEnd()
  8993. oprot.trans.flush()
  8994. def process_grant_revoke_privileges(self, seqid, iprot, oprot):
  8995. args = grant_revoke_privileges_args()
  8996. args.read(iprot)
  8997. iprot.readMessageEnd()
  8998. result = grant_revoke_privileges_result()
  8999. try:
  9000. result.success = self._handler.grant_revoke_privileges(args.request)
  9001. msg_type = TMessageType.REPLY
  9002. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9003. raise
  9004. except MetaException as o1:
  9005. msg_type = TMessageType.REPLY
  9006. result.o1 = o1
  9007. except Exception as ex:
  9008. msg_type = TMessageType.EXCEPTION
  9009. logging.exception(ex)
  9010. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9011. oprot.writeMessageBegin("grant_revoke_privileges", msg_type, seqid)
  9012. result.write(oprot)
  9013. oprot.writeMessageEnd()
  9014. oprot.trans.flush()
  9015. def process_set_ugi(self, seqid, iprot, oprot):
  9016. args = set_ugi_args()
  9017. args.read(iprot)
  9018. iprot.readMessageEnd()
  9019. result = set_ugi_result()
  9020. try:
  9021. result.success = self._handler.set_ugi(args.user_name, args.group_names)
  9022. msg_type = TMessageType.REPLY
  9023. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9024. raise
  9025. except MetaException as o1:
  9026. msg_type = TMessageType.REPLY
  9027. result.o1 = o1
  9028. except Exception as ex:
  9029. msg_type = TMessageType.EXCEPTION
  9030. logging.exception(ex)
  9031. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9032. oprot.writeMessageBegin("set_ugi", msg_type, seqid)
  9033. result.write(oprot)
  9034. oprot.writeMessageEnd()
  9035. oprot.trans.flush()
  9036. def process_get_delegation_token(self, seqid, iprot, oprot):
  9037. args = get_delegation_token_args()
  9038. args.read(iprot)
  9039. iprot.readMessageEnd()
  9040. result = get_delegation_token_result()
  9041. try:
  9042. result.success = self._handler.get_delegation_token(args.token_owner, args.renewer_kerberos_principal_name)
  9043. msg_type = TMessageType.REPLY
  9044. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9045. raise
  9046. except MetaException as o1:
  9047. msg_type = TMessageType.REPLY
  9048. result.o1 = o1
  9049. except Exception as ex:
  9050. msg_type = TMessageType.EXCEPTION
  9051. logging.exception(ex)
  9052. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9053. oprot.writeMessageBegin("get_delegation_token", msg_type, seqid)
  9054. result.write(oprot)
  9055. oprot.writeMessageEnd()
  9056. oprot.trans.flush()
  9057. def process_renew_delegation_token(self, seqid, iprot, oprot):
  9058. args = renew_delegation_token_args()
  9059. args.read(iprot)
  9060. iprot.readMessageEnd()
  9061. result = renew_delegation_token_result()
  9062. try:
  9063. result.success = self._handler.renew_delegation_token(args.token_str_form)
  9064. msg_type = TMessageType.REPLY
  9065. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9066. raise
  9067. except MetaException as o1:
  9068. msg_type = TMessageType.REPLY
  9069. result.o1 = o1
  9070. except Exception as ex:
  9071. msg_type = TMessageType.EXCEPTION
  9072. logging.exception(ex)
  9073. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9074. oprot.writeMessageBegin("renew_delegation_token", msg_type, seqid)
  9075. result.write(oprot)
  9076. oprot.writeMessageEnd()
  9077. oprot.trans.flush()
  9078. def process_cancel_delegation_token(self, seqid, iprot, oprot):
  9079. args = cancel_delegation_token_args()
  9080. args.read(iprot)
  9081. iprot.readMessageEnd()
  9082. result = cancel_delegation_token_result()
  9083. try:
  9084. self._handler.cancel_delegation_token(args.token_str_form)
  9085. msg_type = TMessageType.REPLY
  9086. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9087. raise
  9088. except MetaException as o1:
  9089. msg_type = TMessageType.REPLY
  9090. result.o1 = o1
  9091. except Exception as ex:
  9092. msg_type = TMessageType.EXCEPTION
  9093. logging.exception(ex)
  9094. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9095. oprot.writeMessageBegin("cancel_delegation_token", msg_type, seqid)
  9096. result.write(oprot)
  9097. oprot.writeMessageEnd()
  9098. oprot.trans.flush()
  9099. def process_add_token(self, seqid, iprot, oprot):
  9100. args = add_token_args()
  9101. args.read(iprot)
  9102. iprot.readMessageEnd()
  9103. result = add_token_result()
  9104. try:
  9105. result.success = self._handler.add_token(args.token_identifier, args.delegation_token)
  9106. msg_type = TMessageType.REPLY
  9107. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9108. raise
  9109. except Exception as ex:
  9110. msg_type = TMessageType.EXCEPTION
  9111. logging.exception(ex)
  9112. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9113. oprot.writeMessageBegin("add_token", msg_type, seqid)
  9114. result.write(oprot)
  9115. oprot.writeMessageEnd()
  9116. oprot.trans.flush()
  9117. def process_remove_token(self, seqid, iprot, oprot):
  9118. args = remove_token_args()
  9119. args.read(iprot)
  9120. iprot.readMessageEnd()
  9121. result = remove_token_result()
  9122. try:
  9123. result.success = self._handler.remove_token(args.token_identifier)
  9124. msg_type = TMessageType.REPLY
  9125. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9126. raise
  9127. except Exception as ex:
  9128. msg_type = TMessageType.EXCEPTION
  9129. logging.exception(ex)
  9130. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9131. oprot.writeMessageBegin("remove_token", msg_type, seqid)
  9132. result.write(oprot)
  9133. oprot.writeMessageEnd()
  9134. oprot.trans.flush()
  9135. def process_get_token(self, seqid, iprot, oprot):
  9136. args = get_token_args()
  9137. args.read(iprot)
  9138. iprot.readMessageEnd()
  9139. result = get_token_result()
  9140. try:
  9141. result.success = self._handler.get_token(args.token_identifier)
  9142. msg_type = TMessageType.REPLY
  9143. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9144. raise
  9145. except Exception as ex:
  9146. msg_type = TMessageType.EXCEPTION
  9147. logging.exception(ex)
  9148. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9149. oprot.writeMessageBegin("get_token", msg_type, seqid)
  9150. result.write(oprot)
  9151. oprot.writeMessageEnd()
  9152. oprot.trans.flush()
  9153. def process_get_all_token_identifiers(self, seqid, iprot, oprot):
  9154. args = get_all_token_identifiers_args()
  9155. args.read(iprot)
  9156. iprot.readMessageEnd()
  9157. result = get_all_token_identifiers_result()
  9158. try:
  9159. result.success = self._handler.get_all_token_identifiers()
  9160. msg_type = TMessageType.REPLY
  9161. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9162. raise
  9163. except Exception as ex:
  9164. msg_type = TMessageType.EXCEPTION
  9165. logging.exception(ex)
  9166. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9167. oprot.writeMessageBegin("get_all_token_identifiers", msg_type, seqid)
  9168. result.write(oprot)
  9169. oprot.writeMessageEnd()
  9170. oprot.trans.flush()
  9171. def process_add_master_key(self, seqid, iprot, oprot):
  9172. args = add_master_key_args()
  9173. args.read(iprot)
  9174. iprot.readMessageEnd()
  9175. result = add_master_key_result()
  9176. try:
  9177. result.success = self._handler.add_master_key(args.key)
  9178. msg_type = TMessageType.REPLY
  9179. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9180. raise
  9181. except MetaException as o1:
  9182. msg_type = TMessageType.REPLY
  9183. result.o1 = o1
  9184. except Exception as ex:
  9185. msg_type = TMessageType.EXCEPTION
  9186. logging.exception(ex)
  9187. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9188. oprot.writeMessageBegin("add_master_key", msg_type, seqid)
  9189. result.write(oprot)
  9190. oprot.writeMessageEnd()
  9191. oprot.trans.flush()
  9192. def process_update_master_key(self, seqid, iprot, oprot):
  9193. args = update_master_key_args()
  9194. args.read(iprot)
  9195. iprot.readMessageEnd()
  9196. result = update_master_key_result()
  9197. try:
  9198. self._handler.update_master_key(args.seq_number, args.key)
  9199. msg_type = TMessageType.REPLY
  9200. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9201. raise
  9202. except NoSuchObjectException as o1:
  9203. msg_type = TMessageType.REPLY
  9204. result.o1 = o1
  9205. except MetaException as o2:
  9206. msg_type = TMessageType.REPLY
  9207. result.o2 = o2
  9208. except Exception as ex:
  9209. msg_type = TMessageType.EXCEPTION
  9210. logging.exception(ex)
  9211. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9212. oprot.writeMessageBegin("update_master_key", msg_type, seqid)
  9213. result.write(oprot)
  9214. oprot.writeMessageEnd()
  9215. oprot.trans.flush()
  9216. def process_remove_master_key(self, seqid, iprot, oprot):
  9217. args = remove_master_key_args()
  9218. args.read(iprot)
  9219. iprot.readMessageEnd()
  9220. result = remove_master_key_result()
  9221. try:
  9222. result.success = self._handler.remove_master_key(args.key_seq)
  9223. msg_type = TMessageType.REPLY
  9224. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9225. raise
  9226. except Exception as ex:
  9227. msg_type = TMessageType.EXCEPTION
  9228. logging.exception(ex)
  9229. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9230. oprot.writeMessageBegin("remove_master_key", msg_type, seqid)
  9231. result.write(oprot)
  9232. oprot.writeMessageEnd()
  9233. oprot.trans.flush()
  9234. def process_get_master_keys(self, seqid, iprot, oprot):
  9235. args = get_master_keys_args()
  9236. args.read(iprot)
  9237. iprot.readMessageEnd()
  9238. result = get_master_keys_result()
  9239. try:
  9240. result.success = self._handler.get_master_keys()
  9241. msg_type = TMessageType.REPLY
  9242. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9243. raise
  9244. except Exception as ex:
  9245. msg_type = TMessageType.EXCEPTION
  9246. logging.exception(ex)
  9247. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9248. oprot.writeMessageBegin("get_master_keys", msg_type, seqid)
  9249. result.write(oprot)
  9250. oprot.writeMessageEnd()
  9251. oprot.trans.flush()
  9252. def process_get_open_txns(self, seqid, iprot, oprot):
  9253. args = get_open_txns_args()
  9254. args.read(iprot)
  9255. iprot.readMessageEnd()
  9256. result = get_open_txns_result()
  9257. try:
  9258. result.success = self._handler.get_open_txns()
  9259. msg_type = TMessageType.REPLY
  9260. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9261. raise
  9262. except Exception as ex:
  9263. msg_type = TMessageType.EXCEPTION
  9264. logging.exception(ex)
  9265. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9266. oprot.writeMessageBegin("get_open_txns", msg_type, seqid)
  9267. result.write(oprot)
  9268. oprot.writeMessageEnd()
  9269. oprot.trans.flush()
  9270. def process_get_open_txns_info(self, seqid, iprot, oprot):
  9271. args = get_open_txns_info_args()
  9272. args.read(iprot)
  9273. iprot.readMessageEnd()
  9274. result = get_open_txns_info_result()
  9275. try:
  9276. result.success = self._handler.get_open_txns_info()
  9277. msg_type = TMessageType.REPLY
  9278. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9279. raise
  9280. except Exception as ex:
  9281. msg_type = TMessageType.EXCEPTION
  9282. logging.exception(ex)
  9283. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9284. oprot.writeMessageBegin("get_open_txns_info", msg_type, seqid)
  9285. result.write(oprot)
  9286. oprot.writeMessageEnd()
  9287. oprot.trans.flush()
  9288. def process_open_txns(self, seqid, iprot, oprot):
  9289. args = open_txns_args()
  9290. args.read(iprot)
  9291. iprot.readMessageEnd()
  9292. result = open_txns_result()
  9293. try:
  9294. result.success = self._handler.open_txns(args.rqst)
  9295. msg_type = TMessageType.REPLY
  9296. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9297. raise
  9298. except Exception as ex:
  9299. msg_type = TMessageType.EXCEPTION
  9300. logging.exception(ex)
  9301. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9302. oprot.writeMessageBegin("open_txns", msg_type, seqid)
  9303. result.write(oprot)
  9304. oprot.writeMessageEnd()
  9305. oprot.trans.flush()
  9306. def process_abort_txn(self, seqid, iprot, oprot):
  9307. args = abort_txn_args()
  9308. args.read(iprot)
  9309. iprot.readMessageEnd()
  9310. result = abort_txn_result()
  9311. try:
  9312. self._handler.abort_txn(args.rqst)
  9313. msg_type = TMessageType.REPLY
  9314. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9315. raise
  9316. except NoSuchTxnException as o1:
  9317. msg_type = TMessageType.REPLY
  9318. result.o1 = o1
  9319. except Exception as ex:
  9320. msg_type = TMessageType.EXCEPTION
  9321. logging.exception(ex)
  9322. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9323. oprot.writeMessageBegin("abort_txn", msg_type, seqid)
  9324. result.write(oprot)
  9325. oprot.writeMessageEnd()
  9326. oprot.trans.flush()
  9327. def process_abort_txns(self, seqid, iprot, oprot):
  9328. args = abort_txns_args()
  9329. args.read(iprot)
  9330. iprot.readMessageEnd()
  9331. result = abort_txns_result()
  9332. try:
  9333. self._handler.abort_txns(args.rqst)
  9334. msg_type = TMessageType.REPLY
  9335. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9336. raise
  9337. except NoSuchTxnException as o1:
  9338. msg_type = TMessageType.REPLY
  9339. result.o1 = o1
  9340. except Exception as ex:
  9341. msg_type = TMessageType.EXCEPTION
  9342. logging.exception(ex)
  9343. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9344. oprot.writeMessageBegin("abort_txns", msg_type, seqid)
  9345. result.write(oprot)
  9346. oprot.writeMessageEnd()
  9347. oprot.trans.flush()
  9348. def process_commit_txn(self, seqid, iprot, oprot):
  9349. args = commit_txn_args()
  9350. args.read(iprot)
  9351. iprot.readMessageEnd()
  9352. result = commit_txn_result()
  9353. try:
  9354. self._handler.commit_txn(args.rqst)
  9355. msg_type = TMessageType.REPLY
  9356. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9357. raise
  9358. except NoSuchTxnException as o1:
  9359. msg_type = TMessageType.REPLY
  9360. result.o1 = o1
  9361. except TxnAbortedException as o2:
  9362. msg_type = TMessageType.REPLY
  9363. result.o2 = o2
  9364. except Exception as ex:
  9365. msg_type = TMessageType.EXCEPTION
  9366. logging.exception(ex)
  9367. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9368. oprot.writeMessageBegin("commit_txn", msg_type, seqid)
  9369. result.write(oprot)
  9370. oprot.writeMessageEnd()
  9371. oprot.trans.flush()
  9372. def process_lock(self, seqid, iprot, oprot):
  9373. args = lock_args()
  9374. args.read(iprot)
  9375. iprot.readMessageEnd()
  9376. result = lock_result()
  9377. try:
  9378. result.success = self._handler.lock(args.rqst)
  9379. msg_type = TMessageType.REPLY
  9380. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9381. raise
  9382. except NoSuchTxnException as o1:
  9383. msg_type = TMessageType.REPLY
  9384. result.o1 = o1
  9385. except TxnAbortedException as o2:
  9386. msg_type = TMessageType.REPLY
  9387. result.o2 = o2
  9388. except Exception as ex:
  9389. msg_type = TMessageType.EXCEPTION
  9390. logging.exception(ex)
  9391. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9392. oprot.writeMessageBegin("lock", msg_type, seqid)
  9393. result.write(oprot)
  9394. oprot.writeMessageEnd()
  9395. oprot.trans.flush()
  9396. def process_check_lock(self, seqid, iprot, oprot):
  9397. args = check_lock_args()
  9398. args.read(iprot)
  9399. iprot.readMessageEnd()
  9400. result = check_lock_result()
  9401. try:
  9402. result.success = self._handler.check_lock(args.rqst)
  9403. msg_type = TMessageType.REPLY
  9404. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9405. raise
  9406. except NoSuchTxnException as o1:
  9407. msg_type = TMessageType.REPLY
  9408. result.o1 = o1
  9409. except TxnAbortedException as o2:
  9410. msg_type = TMessageType.REPLY
  9411. result.o2 = o2
  9412. except NoSuchLockException as o3:
  9413. msg_type = TMessageType.REPLY
  9414. result.o3 = o3
  9415. except Exception as ex:
  9416. msg_type = TMessageType.EXCEPTION
  9417. logging.exception(ex)
  9418. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9419. oprot.writeMessageBegin("check_lock", msg_type, seqid)
  9420. result.write(oprot)
  9421. oprot.writeMessageEnd()
  9422. oprot.trans.flush()
  9423. def process_unlock(self, seqid, iprot, oprot):
  9424. args = unlock_args()
  9425. args.read(iprot)
  9426. iprot.readMessageEnd()
  9427. result = unlock_result()
  9428. try:
  9429. self._handler.unlock(args.rqst)
  9430. msg_type = TMessageType.REPLY
  9431. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9432. raise
  9433. except NoSuchLockException as o1:
  9434. msg_type = TMessageType.REPLY
  9435. result.o1 = o1
  9436. except TxnOpenException as o2:
  9437. msg_type = TMessageType.REPLY
  9438. result.o2 = o2
  9439. except Exception as ex:
  9440. msg_type = TMessageType.EXCEPTION
  9441. logging.exception(ex)
  9442. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9443. oprot.writeMessageBegin("unlock", msg_type, seqid)
  9444. result.write(oprot)
  9445. oprot.writeMessageEnd()
  9446. oprot.trans.flush()
  9447. def process_show_locks(self, seqid, iprot, oprot):
  9448. args = show_locks_args()
  9449. args.read(iprot)
  9450. iprot.readMessageEnd()
  9451. result = show_locks_result()
  9452. try:
  9453. result.success = self._handler.show_locks(args.rqst)
  9454. msg_type = TMessageType.REPLY
  9455. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9456. raise
  9457. except Exception as ex:
  9458. msg_type = TMessageType.EXCEPTION
  9459. logging.exception(ex)
  9460. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9461. oprot.writeMessageBegin("show_locks", msg_type, seqid)
  9462. result.write(oprot)
  9463. oprot.writeMessageEnd()
  9464. oprot.trans.flush()
  9465. def process_heartbeat(self, seqid, iprot, oprot):
  9466. args = heartbeat_args()
  9467. args.read(iprot)
  9468. iprot.readMessageEnd()
  9469. result = heartbeat_result()
  9470. try:
  9471. self._handler.heartbeat(args.ids)
  9472. msg_type = TMessageType.REPLY
  9473. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9474. raise
  9475. except NoSuchLockException as o1:
  9476. msg_type = TMessageType.REPLY
  9477. result.o1 = o1
  9478. except NoSuchTxnException as o2:
  9479. msg_type = TMessageType.REPLY
  9480. result.o2 = o2
  9481. except TxnAbortedException as o3:
  9482. msg_type = TMessageType.REPLY
  9483. result.o3 = o3
  9484. except Exception as ex:
  9485. msg_type = TMessageType.EXCEPTION
  9486. logging.exception(ex)
  9487. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9488. oprot.writeMessageBegin("heartbeat", msg_type, seqid)
  9489. result.write(oprot)
  9490. oprot.writeMessageEnd()
  9491. oprot.trans.flush()
  9492. def process_heartbeat_txn_range(self, seqid, iprot, oprot):
  9493. args = heartbeat_txn_range_args()
  9494. args.read(iprot)
  9495. iprot.readMessageEnd()
  9496. result = heartbeat_txn_range_result()
  9497. try:
  9498. result.success = self._handler.heartbeat_txn_range(args.txns)
  9499. msg_type = TMessageType.REPLY
  9500. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9501. raise
  9502. except Exception as ex:
  9503. msg_type = TMessageType.EXCEPTION
  9504. logging.exception(ex)
  9505. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9506. oprot.writeMessageBegin("heartbeat_txn_range", msg_type, seqid)
  9507. result.write(oprot)
  9508. oprot.writeMessageEnd()
  9509. oprot.trans.flush()
  9510. def process_compact(self, seqid, iprot, oprot):
  9511. args = compact_args()
  9512. args.read(iprot)
  9513. iprot.readMessageEnd()
  9514. result = compact_result()
  9515. try:
  9516. self._handler.compact(args.rqst)
  9517. msg_type = TMessageType.REPLY
  9518. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9519. raise
  9520. except Exception as ex:
  9521. msg_type = TMessageType.EXCEPTION
  9522. logging.exception(ex)
  9523. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9524. oprot.writeMessageBegin("compact", msg_type, seqid)
  9525. result.write(oprot)
  9526. oprot.writeMessageEnd()
  9527. oprot.trans.flush()
  9528. def process_show_compact(self, seqid, iprot, oprot):
  9529. args = show_compact_args()
  9530. args.read(iprot)
  9531. iprot.readMessageEnd()
  9532. result = show_compact_result()
  9533. try:
  9534. result.success = self._handler.show_compact(args.rqst)
  9535. msg_type = TMessageType.REPLY
  9536. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9537. raise
  9538. except Exception as ex:
  9539. msg_type = TMessageType.EXCEPTION
  9540. logging.exception(ex)
  9541. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9542. oprot.writeMessageBegin("show_compact", msg_type, seqid)
  9543. result.write(oprot)
  9544. oprot.writeMessageEnd()
  9545. oprot.trans.flush()
  9546. def process_add_dynamic_partitions(self, seqid, iprot, oprot):
  9547. args = add_dynamic_partitions_args()
  9548. args.read(iprot)
  9549. iprot.readMessageEnd()
  9550. result = add_dynamic_partitions_result()
  9551. try:
  9552. self._handler.add_dynamic_partitions(args.rqst)
  9553. msg_type = TMessageType.REPLY
  9554. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9555. raise
  9556. except NoSuchTxnException as o1:
  9557. msg_type = TMessageType.REPLY
  9558. result.o1 = o1
  9559. except TxnAbortedException as o2:
  9560. msg_type = TMessageType.REPLY
  9561. result.o2 = o2
  9562. except Exception as ex:
  9563. msg_type = TMessageType.EXCEPTION
  9564. logging.exception(ex)
  9565. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9566. oprot.writeMessageBegin("add_dynamic_partitions", msg_type, seqid)
  9567. result.write(oprot)
  9568. oprot.writeMessageEnd()
  9569. oprot.trans.flush()
  9570. def process_get_next_notification(self, seqid, iprot, oprot):
  9571. args = get_next_notification_args()
  9572. args.read(iprot)
  9573. iprot.readMessageEnd()
  9574. result = get_next_notification_result()
  9575. try:
  9576. result.success = self._handler.get_next_notification(args.rqst)
  9577. msg_type = TMessageType.REPLY
  9578. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9579. raise
  9580. except Exception as ex:
  9581. msg_type = TMessageType.EXCEPTION
  9582. logging.exception(ex)
  9583. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9584. oprot.writeMessageBegin("get_next_notification", msg_type, seqid)
  9585. result.write(oprot)
  9586. oprot.writeMessageEnd()
  9587. oprot.trans.flush()
  9588. def process_get_current_notificationEventId(self, seqid, iprot, oprot):
  9589. args = get_current_notificationEventId_args()
  9590. args.read(iprot)
  9591. iprot.readMessageEnd()
  9592. result = get_current_notificationEventId_result()
  9593. try:
  9594. result.success = self._handler.get_current_notificationEventId()
  9595. msg_type = TMessageType.REPLY
  9596. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9597. raise
  9598. except Exception as ex:
  9599. msg_type = TMessageType.EXCEPTION
  9600. logging.exception(ex)
  9601. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9602. oprot.writeMessageBegin("get_current_notificationEventId", msg_type, seqid)
  9603. result.write(oprot)
  9604. oprot.writeMessageEnd()
  9605. oprot.trans.flush()
  9606. def process_fire_listener_event(self, seqid, iprot, oprot):
  9607. args = fire_listener_event_args()
  9608. args.read(iprot)
  9609. iprot.readMessageEnd()
  9610. result = fire_listener_event_result()
  9611. try:
  9612. result.success = self._handler.fire_listener_event(args.rqst)
  9613. msg_type = TMessageType.REPLY
  9614. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9615. raise
  9616. except Exception as ex:
  9617. msg_type = TMessageType.EXCEPTION
  9618. logging.exception(ex)
  9619. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9620. oprot.writeMessageBegin("fire_listener_event", msg_type, seqid)
  9621. result.write(oprot)
  9622. oprot.writeMessageEnd()
  9623. oprot.trans.flush()
  9624. def process_flushCache(self, seqid, iprot, oprot):
  9625. args = flushCache_args()
  9626. args.read(iprot)
  9627. iprot.readMessageEnd()
  9628. result = flushCache_result()
  9629. try:
  9630. self._handler.flushCache()
  9631. msg_type = TMessageType.REPLY
  9632. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9633. raise
  9634. except Exception as ex:
  9635. msg_type = TMessageType.EXCEPTION
  9636. logging.exception(ex)
  9637. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9638. oprot.writeMessageBegin("flushCache", msg_type, seqid)
  9639. result.write(oprot)
  9640. oprot.writeMessageEnd()
  9641. oprot.trans.flush()
  9642. def process_get_file_metadata_by_expr(self, seqid, iprot, oprot):
  9643. args = get_file_metadata_by_expr_args()
  9644. args.read(iprot)
  9645. iprot.readMessageEnd()
  9646. result = get_file_metadata_by_expr_result()
  9647. try:
  9648. result.success = self._handler.get_file_metadata_by_expr(args.req)
  9649. msg_type = TMessageType.REPLY
  9650. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9651. raise
  9652. except Exception as ex:
  9653. msg_type = TMessageType.EXCEPTION
  9654. logging.exception(ex)
  9655. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9656. oprot.writeMessageBegin("get_file_metadata_by_expr", msg_type, seqid)
  9657. result.write(oprot)
  9658. oprot.writeMessageEnd()
  9659. oprot.trans.flush()
  9660. def process_get_file_metadata(self, seqid, iprot, oprot):
  9661. args = get_file_metadata_args()
  9662. args.read(iprot)
  9663. iprot.readMessageEnd()
  9664. result = get_file_metadata_result()
  9665. try:
  9666. result.success = self._handler.get_file_metadata(args.req)
  9667. msg_type = TMessageType.REPLY
  9668. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9669. raise
  9670. except Exception as ex:
  9671. msg_type = TMessageType.EXCEPTION
  9672. logging.exception(ex)
  9673. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9674. oprot.writeMessageBegin("get_file_metadata", msg_type, seqid)
  9675. result.write(oprot)
  9676. oprot.writeMessageEnd()
  9677. oprot.trans.flush()
  9678. def process_put_file_metadata(self, seqid, iprot, oprot):
  9679. args = put_file_metadata_args()
  9680. args.read(iprot)
  9681. iprot.readMessageEnd()
  9682. result = put_file_metadata_result()
  9683. try:
  9684. result.success = self._handler.put_file_metadata(args.req)
  9685. msg_type = TMessageType.REPLY
  9686. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9687. raise
  9688. except Exception as ex:
  9689. msg_type = TMessageType.EXCEPTION
  9690. logging.exception(ex)
  9691. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9692. oprot.writeMessageBegin("put_file_metadata", msg_type, seqid)
  9693. result.write(oprot)
  9694. oprot.writeMessageEnd()
  9695. oprot.trans.flush()
  9696. def process_clear_file_metadata(self, seqid, iprot, oprot):
  9697. args = clear_file_metadata_args()
  9698. args.read(iprot)
  9699. iprot.readMessageEnd()
  9700. result = clear_file_metadata_result()
  9701. try:
  9702. result.success = self._handler.clear_file_metadata(args.req)
  9703. msg_type = TMessageType.REPLY
  9704. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9705. raise
  9706. except Exception as ex:
  9707. msg_type = TMessageType.EXCEPTION
  9708. logging.exception(ex)
  9709. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9710. oprot.writeMessageBegin("clear_file_metadata", msg_type, seqid)
  9711. result.write(oprot)
  9712. oprot.writeMessageEnd()
  9713. oprot.trans.flush()
  9714. def process_cache_file_metadata(self, seqid, iprot, oprot):
  9715. args = cache_file_metadata_args()
  9716. args.read(iprot)
  9717. iprot.readMessageEnd()
  9718. result = cache_file_metadata_result()
  9719. try:
  9720. result.success = self._handler.cache_file_metadata(args.req)
  9721. msg_type = TMessageType.REPLY
  9722. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9723. raise
  9724. except Exception as ex:
  9725. msg_type = TMessageType.EXCEPTION
  9726. logging.exception(ex)
  9727. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9728. oprot.writeMessageBegin("cache_file_metadata", msg_type, seqid)
  9729. result.write(oprot)
  9730. oprot.writeMessageEnd()
  9731. oprot.trans.flush()
  9732. def process_get_metastore_db_uuid(self, seqid, iprot, oprot):
  9733. args = get_metastore_db_uuid_args()
  9734. args.read(iprot)
  9735. iprot.readMessageEnd()
  9736. result = get_metastore_db_uuid_result()
  9737. try:
  9738. result.success = self._handler.get_metastore_db_uuid()
  9739. msg_type = TMessageType.REPLY
  9740. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9741. raise
  9742. except MetaException as o1:
  9743. msg_type = TMessageType.REPLY
  9744. result.o1 = o1
  9745. except Exception as ex:
  9746. msg_type = TMessageType.EXCEPTION
  9747. logging.exception(ex)
  9748. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9749. oprot.writeMessageBegin("get_metastore_db_uuid", msg_type, seqid)
  9750. result.write(oprot)
  9751. oprot.writeMessageEnd()
  9752. oprot.trans.flush()
  9753. def process_get_partitions_with_specs(self, seqid, iprot, oprot):
  9754. args = get_partitions_with_specs_args()
  9755. args.read(iprot)
  9756. iprot.readMessageEnd()
  9757. result = get_partitions_with_specs_result()
  9758. try:
  9759. result.success = self._handler.get_partitions_with_specs(args.request)
  9760. msg_type = TMessageType.REPLY
  9761. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  9762. raise
  9763. except MetaException as o1:
  9764. msg_type = TMessageType.REPLY
  9765. result.o1 = o1
  9766. except Exception as ex:
  9767. msg_type = TMessageType.EXCEPTION
  9768. logging.exception(ex)
  9769. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9770. oprot.writeMessageBegin("get_partitions_with_specs", msg_type, seqid)
  9771. result.write(oprot)
  9772. oprot.writeMessageEnd()
  9773. oprot.trans.flush()
  9774. # HELPER FUNCTIONS AND STRUCTURES
  9775. class getMetaConf_args(object):
  9776. """
  9777. Attributes:
  9778. - key
  9779. """
  9780. thrift_spec = (
  9781. None, # 0
  9782. (1, TType.STRING, 'key', None, None, ), # 1
  9783. )
  9784. def __init__(self, key=None,):
  9785. self.key = key
  9786. def read(self, iprot):
  9787. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9788. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9789. return
  9790. iprot.readStructBegin()
  9791. while True:
  9792. (fname, ftype, fid) = iprot.readFieldBegin()
  9793. if ftype == TType.STOP:
  9794. break
  9795. if fid == 1:
  9796. if ftype == TType.STRING:
  9797. self.key = iprot.readString()
  9798. else:
  9799. iprot.skip(ftype)
  9800. else:
  9801. iprot.skip(ftype)
  9802. iprot.readFieldEnd()
  9803. iprot.readStructEnd()
  9804. def write(self, oprot):
  9805. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9806. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9807. return
  9808. oprot.writeStructBegin('getMetaConf_args')
  9809. if self.key is not None:
  9810. oprot.writeFieldBegin('key', TType.STRING, 1)
  9811. oprot.writeString(self.key)
  9812. oprot.writeFieldEnd()
  9813. oprot.writeFieldStop()
  9814. oprot.writeStructEnd()
  9815. def validate(self):
  9816. return
  9817. def __hash__(self):
  9818. value = 17
  9819. value = (value * 31) ^ hash(self.key)
  9820. return value
  9821. def __repr__(self):
  9822. L = ['%s=%r' % (key, value)
  9823. for key, value in self.__dict__.iteritems()]
  9824. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9825. def __eq__(self, other):
  9826. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9827. def __ne__(self, other):
  9828. return not (self == other)
  9829. class getMetaConf_result(object):
  9830. """
  9831. Attributes:
  9832. - success
  9833. - o1
  9834. """
  9835. thrift_spec = (
  9836. (0, TType.STRING, 'success', None, None, ), # 0
  9837. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  9838. )
  9839. def __init__(self, success=None, o1=None,):
  9840. self.success = success
  9841. self.o1 = o1
  9842. def read(self, iprot):
  9843. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9844. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9845. return
  9846. iprot.readStructBegin()
  9847. while True:
  9848. (fname, ftype, fid) = iprot.readFieldBegin()
  9849. if ftype == TType.STOP:
  9850. break
  9851. if fid == 0:
  9852. if ftype == TType.STRING:
  9853. self.success = iprot.readString()
  9854. else:
  9855. iprot.skip(ftype)
  9856. elif fid == 1:
  9857. if ftype == TType.STRUCT:
  9858. self.o1 = MetaException()
  9859. self.o1.read(iprot)
  9860. else:
  9861. iprot.skip(ftype)
  9862. else:
  9863. iprot.skip(ftype)
  9864. iprot.readFieldEnd()
  9865. iprot.readStructEnd()
  9866. def write(self, oprot):
  9867. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9868. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9869. return
  9870. oprot.writeStructBegin('getMetaConf_result')
  9871. if self.success is not None:
  9872. oprot.writeFieldBegin('success', TType.STRING, 0)
  9873. oprot.writeString(self.success)
  9874. oprot.writeFieldEnd()
  9875. if self.o1 is not None:
  9876. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9877. self.o1.write(oprot)
  9878. oprot.writeFieldEnd()
  9879. oprot.writeFieldStop()
  9880. oprot.writeStructEnd()
  9881. def validate(self):
  9882. return
  9883. def __hash__(self):
  9884. value = 17
  9885. value = (value * 31) ^ hash(self.success)
  9886. value = (value * 31) ^ hash(self.o1)
  9887. return value
  9888. def __repr__(self):
  9889. L = ['%s=%r' % (key, value)
  9890. for key, value in self.__dict__.iteritems()]
  9891. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9892. def __eq__(self, other):
  9893. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9894. def __ne__(self, other):
  9895. return not (self == other)
  9896. class setMetaConf_args(object):
  9897. """
  9898. Attributes:
  9899. - key
  9900. - value
  9901. """
  9902. thrift_spec = (
  9903. None, # 0
  9904. (1, TType.STRING, 'key', None, None, ), # 1
  9905. (2, TType.STRING, 'value', None, None, ), # 2
  9906. )
  9907. def __init__(self, key=None, value=None,):
  9908. self.key = key
  9909. self.value = value
  9910. def read(self, iprot):
  9911. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9912. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9913. return
  9914. iprot.readStructBegin()
  9915. while True:
  9916. (fname, ftype, fid) = iprot.readFieldBegin()
  9917. if ftype == TType.STOP:
  9918. break
  9919. if fid == 1:
  9920. if ftype == TType.STRING:
  9921. self.key = iprot.readString()
  9922. else:
  9923. iprot.skip(ftype)
  9924. elif fid == 2:
  9925. if ftype == TType.STRING:
  9926. self.value = iprot.readString()
  9927. else:
  9928. iprot.skip(ftype)
  9929. else:
  9930. iprot.skip(ftype)
  9931. iprot.readFieldEnd()
  9932. iprot.readStructEnd()
  9933. def write(self, oprot):
  9934. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9935. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9936. return
  9937. oprot.writeStructBegin('setMetaConf_args')
  9938. if self.key is not None:
  9939. oprot.writeFieldBegin('key', TType.STRING, 1)
  9940. oprot.writeString(self.key)
  9941. oprot.writeFieldEnd()
  9942. if self.value is not None:
  9943. oprot.writeFieldBegin('value', TType.STRING, 2)
  9944. oprot.writeString(self.value)
  9945. oprot.writeFieldEnd()
  9946. oprot.writeFieldStop()
  9947. oprot.writeStructEnd()
  9948. def validate(self):
  9949. return
  9950. def __hash__(self):
  9951. value = 17
  9952. value = (value * 31) ^ hash(self.key)
  9953. value = (value * 31) ^ hash(self.value)
  9954. return value
  9955. def __repr__(self):
  9956. L = ['%s=%r' % (key, value)
  9957. for key, value in self.__dict__.iteritems()]
  9958. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9959. def __eq__(self, other):
  9960. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9961. def __ne__(self, other):
  9962. return not (self == other)
  9963. class setMetaConf_result(object):
  9964. """
  9965. Attributes:
  9966. - o1
  9967. """
  9968. thrift_spec = (
  9969. None, # 0
  9970. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  9971. )
  9972. def __init__(self, o1=None,):
  9973. self.o1 = o1
  9974. def read(self, iprot):
  9975. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9976. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9977. return
  9978. iprot.readStructBegin()
  9979. while True:
  9980. (fname, ftype, fid) = iprot.readFieldBegin()
  9981. if ftype == TType.STOP:
  9982. break
  9983. if fid == 1:
  9984. if ftype == TType.STRUCT:
  9985. self.o1 = MetaException()
  9986. self.o1.read(iprot)
  9987. else:
  9988. iprot.skip(ftype)
  9989. else:
  9990. iprot.skip(ftype)
  9991. iprot.readFieldEnd()
  9992. iprot.readStructEnd()
  9993. def write(self, oprot):
  9994. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9995. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9996. return
  9997. oprot.writeStructBegin('setMetaConf_result')
  9998. if self.o1 is not None:
  9999. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10000. self.o1.write(oprot)
  10001. oprot.writeFieldEnd()
  10002. oprot.writeFieldStop()
  10003. oprot.writeStructEnd()
  10004. def validate(self):
  10005. return
  10006. def __hash__(self):
  10007. value = 17
  10008. value = (value * 31) ^ hash(self.o1)
  10009. return value
  10010. def __repr__(self):
  10011. L = ['%s=%r' % (key, value)
  10012. for key, value in self.__dict__.iteritems()]
  10013. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10014. def __eq__(self, other):
  10015. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10016. def __ne__(self, other):
  10017. return not (self == other)
  10018. class create_database_args(object):
  10019. """
  10020. Attributes:
  10021. - database
  10022. """
  10023. thrift_spec = (
  10024. None, # 0
  10025. (1, TType.STRUCT, 'database', (Database, Database.thrift_spec), None, ), # 1
  10026. )
  10027. def __init__(self, database=None,):
  10028. self.database = database
  10029. def read(self, iprot):
  10030. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10031. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10032. return
  10033. iprot.readStructBegin()
  10034. while True:
  10035. (fname, ftype, fid) = iprot.readFieldBegin()
  10036. if ftype == TType.STOP:
  10037. break
  10038. if fid == 1:
  10039. if ftype == TType.STRUCT:
  10040. self.database = Database()
  10041. self.database.read(iprot)
  10042. else:
  10043. iprot.skip(ftype)
  10044. else:
  10045. iprot.skip(ftype)
  10046. iprot.readFieldEnd()
  10047. iprot.readStructEnd()
  10048. def write(self, oprot):
  10049. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10050. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10051. return
  10052. oprot.writeStructBegin('create_database_args')
  10053. if self.database is not None:
  10054. oprot.writeFieldBegin('database', TType.STRUCT, 1)
  10055. self.database.write(oprot)
  10056. oprot.writeFieldEnd()
  10057. oprot.writeFieldStop()
  10058. oprot.writeStructEnd()
  10059. def validate(self):
  10060. return
  10061. def __hash__(self):
  10062. value = 17
  10063. value = (value * 31) ^ hash(self.database)
  10064. return value
  10065. def __repr__(self):
  10066. L = ['%s=%r' % (key, value)
  10067. for key, value in self.__dict__.iteritems()]
  10068. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10069. def __eq__(self, other):
  10070. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10071. def __ne__(self, other):
  10072. return not (self == other)
  10073. class create_database_result(object):
  10074. """
  10075. Attributes:
  10076. - o1
  10077. - o2
  10078. - o3
  10079. """
  10080. thrift_spec = (
  10081. None, # 0
  10082. (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1
  10083. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  10084. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  10085. )
  10086. def __init__(self, o1=None, o2=None, o3=None,):
  10087. self.o1 = o1
  10088. self.o2 = o2
  10089. self.o3 = o3
  10090. def read(self, iprot):
  10091. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10092. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10093. return
  10094. iprot.readStructBegin()
  10095. while True:
  10096. (fname, ftype, fid) = iprot.readFieldBegin()
  10097. if ftype == TType.STOP:
  10098. break
  10099. if fid == 1:
  10100. if ftype == TType.STRUCT:
  10101. self.o1 = AlreadyExistsException()
  10102. self.o1.read(iprot)
  10103. else:
  10104. iprot.skip(ftype)
  10105. elif fid == 2:
  10106. if ftype == TType.STRUCT:
  10107. self.o2 = InvalidObjectException()
  10108. self.o2.read(iprot)
  10109. else:
  10110. iprot.skip(ftype)
  10111. elif fid == 3:
  10112. if ftype == TType.STRUCT:
  10113. self.o3 = MetaException()
  10114. self.o3.read(iprot)
  10115. else:
  10116. iprot.skip(ftype)
  10117. else:
  10118. iprot.skip(ftype)
  10119. iprot.readFieldEnd()
  10120. iprot.readStructEnd()
  10121. def write(self, oprot):
  10122. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10123. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10124. return
  10125. oprot.writeStructBegin('create_database_result')
  10126. if self.o1 is not None:
  10127. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10128. self.o1.write(oprot)
  10129. oprot.writeFieldEnd()
  10130. if self.o2 is not None:
  10131. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  10132. self.o2.write(oprot)
  10133. oprot.writeFieldEnd()
  10134. if self.o3 is not None:
  10135. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  10136. self.o3.write(oprot)
  10137. oprot.writeFieldEnd()
  10138. oprot.writeFieldStop()
  10139. oprot.writeStructEnd()
  10140. def validate(self):
  10141. return
  10142. def __hash__(self):
  10143. value = 17
  10144. value = (value * 31) ^ hash(self.o1)
  10145. value = (value * 31) ^ hash(self.o2)
  10146. value = (value * 31) ^ hash(self.o3)
  10147. return value
  10148. def __repr__(self):
  10149. L = ['%s=%r' % (key, value)
  10150. for key, value in self.__dict__.iteritems()]
  10151. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10152. def __eq__(self, other):
  10153. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10154. def __ne__(self, other):
  10155. return not (self == other)
  10156. class get_database_args(object):
  10157. """
  10158. Attributes:
  10159. - name
  10160. """
  10161. thrift_spec = (
  10162. None, # 0
  10163. (1, TType.STRING, 'name', None, None, ), # 1
  10164. )
  10165. def __init__(self, name=None,):
  10166. self.name = name
  10167. def read(self, iprot):
  10168. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10169. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10170. return
  10171. iprot.readStructBegin()
  10172. while True:
  10173. (fname, ftype, fid) = iprot.readFieldBegin()
  10174. if ftype == TType.STOP:
  10175. break
  10176. if fid == 1:
  10177. if ftype == TType.STRING:
  10178. self.name = iprot.readString()
  10179. else:
  10180. iprot.skip(ftype)
  10181. else:
  10182. iprot.skip(ftype)
  10183. iprot.readFieldEnd()
  10184. iprot.readStructEnd()
  10185. def write(self, oprot):
  10186. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10187. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10188. return
  10189. oprot.writeStructBegin('get_database_args')
  10190. if self.name is not None:
  10191. oprot.writeFieldBegin('name', TType.STRING, 1)
  10192. oprot.writeString(self.name)
  10193. oprot.writeFieldEnd()
  10194. oprot.writeFieldStop()
  10195. oprot.writeStructEnd()
  10196. def validate(self):
  10197. return
  10198. def __hash__(self):
  10199. value = 17
  10200. value = (value * 31) ^ hash(self.name)
  10201. return value
  10202. def __repr__(self):
  10203. L = ['%s=%r' % (key, value)
  10204. for key, value in self.__dict__.iteritems()]
  10205. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10206. def __eq__(self, other):
  10207. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10208. def __ne__(self, other):
  10209. return not (self == other)
  10210. class get_database_result(object):
  10211. """
  10212. Attributes:
  10213. - success
  10214. - o1
  10215. - o2
  10216. """
  10217. thrift_spec = (
  10218. (0, TType.STRUCT, 'success', (Database, Database.thrift_spec), None, ), # 0
  10219. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  10220. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  10221. )
  10222. def __init__(self, success=None, o1=None, o2=None,):
  10223. self.success = success
  10224. self.o1 = o1
  10225. self.o2 = o2
  10226. def read(self, iprot):
  10227. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10228. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10229. return
  10230. iprot.readStructBegin()
  10231. while True:
  10232. (fname, ftype, fid) = iprot.readFieldBegin()
  10233. if ftype == TType.STOP:
  10234. break
  10235. if fid == 0:
  10236. if ftype == TType.STRUCT:
  10237. self.success = Database()
  10238. self.success.read(iprot)
  10239. else:
  10240. iprot.skip(ftype)
  10241. elif fid == 1:
  10242. if ftype == TType.STRUCT:
  10243. self.o1 = NoSuchObjectException()
  10244. self.o1.read(iprot)
  10245. else:
  10246. iprot.skip(ftype)
  10247. elif fid == 2:
  10248. if ftype == TType.STRUCT:
  10249. self.o2 = MetaException()
  10250. self.o2.read(iprot)
  10251. else:
  10252. iprot.skip(ftype)
  10253. else:
  10254. iprot.skip(ftype)
  10255. iprot.readFieldEnd()
  10256. iprot.readStructEnd()
  10257. def write(self, oprot):
  10258. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10259. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10260. return
  10261. oprot.writeStructBegin('get_database_result')
  10262. if self.success is not None:
  10263. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  10264. self.success.write(oprot)
  10265. oprot.writeFieldEnd()
  10266. if self.o1 is not None:
  10267. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10268. self.o1.write(oprot)
  10269. oprot.writeFieldEnd()
  10270. if self.o2 is not None:
  10271. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  10272. self.o2.write(oprot)
  10273. oprot.writeFieldEnd()
  10274. oprot.writeFieldStop()
  10275. oprot.writeStructEnd()
  10276. def validate(self):
  10277. return
  10278. def __hash__(self):
  10279. value = 17
  10280. value = (value * 31) ^ hash(self.success)
  10281. value = (value * 31) ^ hash(self.o1)
  10282. value = (value * 31) ^ hash(self.o2)
  10283. return value
  10284. def __repr__(self):
  10285. L = ['%s=%r' % (key, value)
  10286. for key, value in self.__dict__.iteritems()]
  10287. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10288. def __eq__(self, other):
  10289. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10290. def __ne__(self, other):
  10291. return not (self == other)
  10292. class drop_database_args(object):
  10293. """
  10294. Attributes:
  10295. - name
  10296. - deleteData
  10297. - cascade
  10298. """
  10299. thrift_spec = (
  10300. None, # 0
  10301. (1, TType.STRING, 'name', None, None, ), # 1
  10302. (2, TType.BOOL, 'deleteData', None, None, ), # 2
  10303. (3, TType.BOOL, 'cascade', None, None, ), # 3
  10304. )
  10305. def __init__(self, name=None, deleteData=None, cascade=None,):
  10306. self.name = name
  10307. self.deleteData = deleteData
  10308. self.cascade = cascade
  10309. def read(self, iprot):
  10310. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10311. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10312. return
  10313. iprot.readStructBegin()
  10314. while True:
  10315. (fname, ftype, fid) = iprot.readFieldBegin()
  10316. if ftype == TType.STOP:
  10317. break
  10318. if fid == 1:
  10319. if ftype == TType.STRING:
  10320. self.name = iprot.readString()
  10321. else:
  10322. iprot.skip(ftype)
  10323. elif fid == 2:
  10324. if ftype == TType.BOOL:
  10325. self.deleteData = iprot.readBool()
  10326. else:
  10327. iprot.skip(ftype)
  10328. elif fid == 3:
  10329. if ftype == TType.BOOL:
  10330. self.cascade = iprot.readBool()
  10331. else:
  10332. iprot.skip(ftype)
  10333. else:
  10334. iprot.skip(ftype)
  10335. iprot.readFieldEnd()
  10336. iprot.readStructEnd()
  10337. def write(self, oprot):
  10338. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10339. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10340. return
  10341. oprot.writeStructBegin('drop_database_args')
  10342. if self.name is not None:
  10343. oprot.writeFieldBegin('name', TType.STRING, 1)
  10344. oprot.writeString(self.name)
  10345. oprot.writeFieldEnd()
  10346. if self.deleteData is not None:
  10347. oprot.writeFieldBegin('deleteData', TType.BOOL, 2)
  10348. oprot.writeBool(self.deleteData)
  10349. oprot.writeFieldEnd()
  10350. if self.cascade is not None:
  10351. oprot.writeFieldBegin('cascade', TType.BOOL, 3)
  10352. oprot.writeBool(self.cascade)
  10353. oprot.writeFieldEnd()
  10354. oprot.writeFieldStop()
  10355. oprot.writeStructEnd()
  10356. def validate(self):
  10357. return
  10358. def __hash__(self):
  10359. value = 17
  10360. value = (value * 31) ^ hash(self.name)
  10361. value = (value * 31) ^ hash(self.deleteData)
  10362. value = (value * 31) ^ hash(self.cascade)
  10363. return value
  10364. def __repr__(self):
  10365. L = ['%s=%r' % (key, value)
  10366. for key, value in self.__dict__.iteritems()]
  10367. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10368. def __eq__(self, other):
  10369. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10370. def __ne__(self, other):
  10371. return not (self == other)
  10372. class drop_database_result(object):
  10373. """
  10374. Attributes:
  10375. - o1
  10376. - o2
  10377. - o3
  10378. """
  10379. thrift_spec = (
  10380. None, # 0
  10381. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  10382. (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2
  10383. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  10384. )
  10385. def __init__(self, o1=None, o2=None, o3=None,):
  10386. self.o1 = o1
  10387. self.o2 = o2
  10388. self.o3 = o3
  10389. def read(self, iprot):
  10390. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10391. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10392. return
  10393. iprot.readStructBegin()
  10394. while True:
  10395. (fname, ftype, fid) = iprot.readFieldBegin()
  10396. if ftype == TType.STOP:
  10397. break
  10398. if fid == 1:
  10399. if ftype == TType.STRUCT:
  10400. self.o1 = NoSuchObjectException()
  10401. self.o1.read(iprot)
  10402. else:
  10403. iprot.skip(ftype)
  10404. elif fid == 2:
  10405. if ftype == TType.STRUCT:
  10406. self.o2 = InvalidOperationException()
  10407. self.o2.read(iprot)
  10408. else:
  10409. iprot.skip(ftype)
  10410. elif fid == 3:
  10411. if ftype == TType.STRUCT:
  10412. self.o3 = MetaException()
  10413. self.o3.read(iprot)
  10414. else:
  10415. iprot.skip(ftype)
  10416. else:
  10417. iprot.skip(ftype)
  10418. iprot.readFieldEnd()
  10419. iprot.readStructEnd()
  10420. def write(self, oprot):
  10421. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10422. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10423. return
  10424. oprot.writeStructBegin('drop_database_result')
  10425. if self.o1 is not None:
  10426. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10427. self.o1.write(oprot)
  10428. oprot.writeFieldEnd()
  10429. if self.o2 is not None:
  10430. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  10431. self.o2.write(oprot)
  10432. oprot.writeFieldEnd()
  10433. if self.o3 is not None:
  10434. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  10435. self.o3.write(oprot)
  10436. oprot.writeFieldEnd()
  10437. oprot.writeFieldStop()
  10438. oprot.writeStructEnd()
  10439. def validate(self):
  10440. return
  10441. def __hash__(self):
  10442. value = 17
  10443. value = (value * 31) ^ hash(self.o1)
  10444. value = (value * 31) ^ hash(self.o2)
  10445. value = (value * 31) ^ hash(self.o3)
  10446. return value
  10447. def __repr__(self):
  10448. L = ['%s=%r' % (key, value)
  10449. for key, value in self.__dict__.iteritems()]
  10450. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10451. def __eq__(self, other):
  10452. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10453. def __ne__(self, other):
  10454. return not (self == other)
  10455. class get_databases_args(object):
  10456. """
  10457. Attributes:
  10458. - pattern
  10459. """
  10460. thrift_spec = (
  10461. None, # 0
  10462. (1, TType.STRING, 'pattern', None, None, ), # 1
  10463. )
  10464. def __init__(self, pattern=None,):
  10465. self.pattern = pattern
  10466. def read(self, iprot):
  10467. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10468. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10469. return
  10470. iprot.readStructBegin()
  10471. while True:
  10472. (fname, ftype, fid) = iprot.readFieldBegin()
  10473. if ftype == TType.STOP:
  10474. break
  10475. if fid == 1:
  10476. if ftype == TType.STRING:
  10477. self.pattern = iprot.readString()
  10478. else:
  10479. iprot.skip(ftype)
  10480. else:
  10481. iprot.skip(ftype)
  10482. iprot.readFieldEnd()
  10483. iprot.readStructEnd()
  10484. def write(self, oprot):
  10485. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10486. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10487. return
  10488. oprot.writeStructBegin('get_databases_args')
  10489. if self.pattern is not None:
  10490. oprot.writeFieldBegin('pattern', TType.STRING, 1)
  10491. oprot.writeString(self.pattern)
  10492. oprot.writeFieldEnd()
  10493. oprot.writeFieldStop()
  10494. oprot.writeStructEnd()
  10495. def validate(self):
  10496. return
  10497. def __hash__(self):
  10498. value = 17
  10499. value = (value * 31) ^ hash(self.pattern)
  10500. return value
  10501. def __repr__(self):
  10502. L = ['%s=%r' % (key, value)
  10503. for key, value in self.__dict__.iteritems()]
  10504. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10505. def __eq__(self, other):
  10506. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10507. def __ne__(self, other):
  10508. return not (self == other)
  10509. class get_databases_result(object):
  10510. """
  10511. Attributes:
  10512. - success
  10513. - o1
  10514. """
  10515. thrift_spec = (
  10516. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  10517. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10518. )
  10519. def __init__(self, success=None, o1=None,):
  10520. self.success = success
  10521. self.o1 = o1
  10522. def read(self, iprot):
  10523. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10524. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10525. return
  10526. iprot.readStructBegin()
  10527. while True:
  10528. (fname, ftype, fid) = iprot.readFieldBegin()
  10529. if ftype == TType.STOP:
  10530. break
  10531. if fid == 0:
  10532. if ftype == TType.LIST:
  10533. self.success = []
  10534. (_etype597, _size594) = iprot.readListBegin()
  10535. for _i598 in xrange(_size594):
  10536. _elem599 = iprot.readString()
  10537. self.success.append(_elem599)
  10538. iprot.readListEnd()
  10539. else:
  10540. iprot.skip(ftype)
  10541. elif fid == 1:
  10542. if ftype == TType.STRUCT:
  10543. self.o1 = MetaException()
  10544. self.o1.read(iprot)
  10545. else:
  10546. iprot.skip(ftype)
  10547. else:
  10548. iprot.skip(ftype)
  10549. iprot.readFieldEnd()
  10550. iprot.readStructEnd()
  10551. def write(self, oprot):
  10552. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10553. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10554. return
  10555. oprot.writeStructBegin('get_databases_result')
  10556. if self.success is not None:
  10557. oprot.writeFieldBegin('success', TType.LIST, 0)
  10558. oprot.writeListBegin(TType.STRING, len(self.success))
  10559. for iter600 in self.success:
  10560. oprot.writeString(iter600)
  10561. oprot.writeListEnd()
  10562. oprot.writeFieldEnd()
  10563. if self.o1 is not None:
  10564. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10565. self.o1.write(oprot)
  10566. oprot.writeFieldEnd()
  10567. oprot.writeFieldStop()
  10568. oprot.writeStructEnd()
  10569. def validate(self):
  10570. return
  10571. def __hash__(self):
  10572. value = 17
  10573. value = (value * 31) ^ hash(self.success)
  10574. value = (value * 31) ^ hash(self.o1)
  10575. return value
  10576. def __repr__(self):
  10577. L = ['%s=%r' % (key, value)
  10578. for key, value in self.__dict__.iteritems()]
  10579. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10580. def __eq__(self, other):
  10581. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10582. def __ne__(self, other):
  10583. return not (self == other)
  10584. class get_all_databases_args(object):
  10585. thrift_spec = (
  10586. )
  10587. def read(self, iprot):
  10588. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10589. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10590. return
  10591. iprot.readStructBegin()
  10592. while True:
  10593. (fname, ftype, fid) = iprot.readFieldBegin()
  10594. if ftype == TType.STOP:
  10595. break
  10596. else:
  10597. iprot.skip(ftype)
  10598. iprot.readFieldEnd()
  10599. iprot.readStructEnd()
  10600. def write(self, oprot):
  10601. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10602. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10603. return
  10604. oprot.writeStructBegin('get_all_databases_args')
  10605. oprot.writeFieldStop()
  10606. oprot.writeStructEnd()
  10607. def validate(self):
  10608. return
  10609. def __hash__(self):
  10610. value = 17
  10611. return value
  10612. def __repr__(self):
  10613. L = ['%s=%r' % (key, value)
  10614. for key, value in self.__dict__.iteritems()]
  10615. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10616. def __eq__(self, other):
  10617. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10618. def __ne__(self, other):
  10619. return not (self == other)
  10620. class get_all_databases_result(object):
  10621. """
  10622. Attributes:
  10623. - success
  10624. - o1
  10625. """
  10626. thrift_spec = (
  10627. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  10628. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10629. )
  10630. def __init__(self, success=None, o1=None,):
  10631. self.success = success
  10632. self.o1 = o1
  10633. def read(self, iprot):
  10634. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10635. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10636. return
  10637. iprot.readStructBegin()
  10638. while True:
  10639. (fname, ftype, fid) = iprot.readFieldBegin()
  10640. if ftype == TType.STOP:
  10641. break
  10642. if fid == 0:
  10643. if ftype == TType.LIST:
  10644. self.success = []
  10645. (_etype604, _size601) = iprot.readListBegin()
  10646. for _i605 in xrange(_size601):
  10647. _elem606 = iprot.readString()
  10648. self.success.append(_elem606)
  10649. iprot.readListEnd()
  10650. else:
  10651. iprot.skip(ftype)
  10652. elif fid == 1:
  10653. if ftype == TType.STRUCT:
  10654. self.o1 = MetaException()
  10655. self.o1.read(iprot)
  10656. else:
  10657. iprot.skip(ftype)
  10658. else:
  10659. iprot.skip(ftype)
  10660. iprot.readFieldEnd()
  10661. iprot.readStructEnd()
  10662. def write(self, oprot):
  10663. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10664. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10665. return
  10666. oprot.writeStructBegin('get_all_databases_result')
  10667. if self.success is not None:
  10668. oprot.writeFieldBegin('success', TType.LIST, 0)
  10669. oprot.writeListBegin(TType.STRING, len(self.success))
  10670. for iter607 in self.success:
  10671. oprot.writeString(iter607)
  10672. oprot.writeListEnd()
  10673. oprot.writeFieldEnd()
  10674. if self.o1 is not None:
  10675. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10676. self.o1.write(oprot)
  10677. oprot.writeFieldEnd()
  10678. oprot.writeFieldStop()
  10679. oprot.writeStructEnd()
  10680. def validate(self):
  10681. return
  10682. def __hash__(self):
  10683. value = 17
  10684. value = (value * 31) ^ hash(self.success)
  10685. value = (value * 31) ^ hash(self.o1)
  10686. return value
  10687. def __repr__(self):
  10688. L = ['%s=%r' % (key, value)
  10689. for key, value in self.__dict__.iteritems()]
  10690. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10691. def __eq__(self, other):
  10692. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10693. def __ne__(self, other):
  10694. return not (self == other)
  10695. class alter_database_args(object):
  10696. """
  10697. Attributes:
  10698. - dbname
  10699. - db
  10700. """
  10701. thrift_spec = (
  10702. None, # 0
  10703. (1, TType.STRING, 'dbname', None, None, ), # 1
  10704. (2, TType.STRUCT, 'db', (Database, Database.thrift_spec), None, ), # 2
  10705. )
  10706. def __init__(self, dbname=None, db=None,):
  10707. self.dbname = dbname
  10708. self.db = db
  10709. def read(self, iprot):
  10710. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10711. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10712. return
  10713. iprot.readStructBegin()
  10714. while True:
  10715. (fname, ftype, fid) = iprot.readFieldBegin()
  10716. if ftype == TType.STOP:
  10717. break
  10718. if fid == 1:
  10719. if ftype == TType.STRING:
  10720. self.dbname = iprot.readString()
  10721. else:
  10722. iprot.skip(ftype)
  10723. elif fid == 2:
  10724. if ftype == TType.STRUCT:
  10725. self.db = Database()
  10726. self.db.read(iprot)
  10727. else:
  10728. iprot.skip(ftype)
  10729. else:
  10730. iprot.skip(ftype)
  10731. iprot.readFieldEnd()
  10732. iprot.readStructEnd()
  10733. def write(self, oprot):
  10734. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10735. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10736. return
  10737. oprot.writeStructBegin('alter_database_args')
  10738. if self.dbname is not None:
  10739. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  10740. oprot.writeString(self.dbname)
  10741. oprot.writeFieldEnd()
  10742. if self.db is not None:
  10743. oprot.writeFieldBegin('db', TType.STRUCT, 2)
  10744. self.db.write(oprot)
  10745. oprot.writeFieldEnd()
  10746. oprot.writeFieldStop()
  10747. oprot.writeStructEnd()
  10748. def validate(self):
  10749. return
  10750. def __hash__(self):
  10751. value = 17
  10752. value = (value * 31) ^ hash(self.dbname)
  10753. value = (value * 31) ^ hash(self.db)
  10754. return value
  10755. def __repr__(self):
  10756. L = ['%s=%r' % (key, value)
  10757. for key, value in self.__dict__.iteritems()]
  10758. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10759. def __eq__(self, other):
  10760. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10761. def __ne__(self, other):
  10762. return not (self == other)
  10763. class alter_database_result(object):
  10764. """
  10765. Attributes:
  10766. - o1
  10767. - o2
  10768. """
  10769. thrift_spec = (
  10770. None, # 0
  10771. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10772. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  10773. )
  10774. def __init__(self, o1=None, o2=None,):
  10775. self.o1 = o1
  10776. self.o2 = o2
  10777. def read(self, iprot):
  10778. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10779. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10780. return
  10781. iprot.readStructBegin()
  10782. while True:
  10783. (fname, ftype, fid) = iprot.readFieldBegin()
  10784. if ftype == TType.STOP:
  10785. break
  10786. if fid == 1:
  10787. if ftype == TType.STRUCT:
  10788. self.o1 = MetaException()
  10789. self.o1.read(iprot)
  10790. else:
  10791. iprot.skip(ftype)
  10792. elif fid == 2:
  10793. if ftype == TType.STRUCT:
  10794. self.o2 = NoSuchObjectException()
  10795. self.o2.read(iprot)
  10796. else:
  10797. iprot.skip(ftype)
  10798. else:
  10799. iprot.skip(ftype)
  10800. iprot.readFieldEnd()
  10801. iprot.readStructEnd()
  10802. def write(self, oprot):
  10803. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10804. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10805. return
  10806. oprot.writeStructBegin('alter_database_result')
  10807. if self.o1 is not None:
  10808. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10809. self.o1.write(oprot)
  10810. oprot.writeFieldEnd()
  10811. if self.o2 is not None:
  10812. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  10813. self.o2.write(oprot)
  10814. oprot.writeFieldEnd()
  10815. oprot.writeFieldStop()
  10816. oprot.writeStructEnd()
  10817. def validate(self):
  10818. return
  10819. def __hash__(self):
  10820. value = 17
  10821. value = (value * 31) ^ hash(self.o1)
  10822. value = (value * 31) ^ hash(self.o2)
  10823. return value
  10824. def __repr__(self):
  10825. L = ['%s=%r' % (key, value)
  10826. for key, value in self.__dict__.iteritems()]
  10827. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10828. def __eq__(self, other):
  10829. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10830. def __ne__(self, other):
  10831. return not (self == other)
  10832. class get_type_args(object):
  10833. """
  10834. Attributes:
  10835. - name
  10836. """
  10837. thrift_spec = (
  10838. None, # 0
  10839. (1, TType.STRING, 'name', None, None, ), # 1
  10840. )
  10841. def __init__(self, name=None,):
  10842. self.name = name
  10843. def read(self, iprot):
  10844. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10845. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10846. return
  10847. iprot.readStructBegin()
  10848. while True:
  10849. (fname, ftype, fid) = iprot.readFieldBegin()
  10850. if ftype == TType.STOP:
  10851. break
  10852. if fid == 1:
  10853. if ftype == TType.STRING:
  10854. self.name = iprot.readString()
  10855. else:
  10856. iprot.skip(ftype)
  10857. else:
  10858. iprot.skip(ftype)
  10859. iprot.readFieldEnd()
  10860. iprot.readStructEnd()
  10861. def write(self, oprot):
  10862. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10863. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10864. return
  10865. oprot.writeStructBegin('get_type_args')
  10866. if self.name is not None:
  10867. oprot.writeFieldBegin('name', TType.STRING, 1)
  10868. oprot.writeString(self.name)
  10869. oprot.writeFieldEnd()
  10870. oprot.writeFieldStop()
  10871. oprot.writeStructEnd()
  10872. def validate(self):
  10873. return
  10874. def __hash__(self):
  10875. value = 17
  10876. value = (value * 31) ^ hash(self.name)
  10877. return value
  10878. def __repr__(self):
  10879. L = ['%s=%r' % (key, value)
  10880. for key, value in self.__dict__.iteritems()]
  10881. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10882. def __eq__(self, other):
  10883. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10884. def __ne__(self, other):
  10885. return not (self == other)
  10886. class get_type_result(object):
  10887. """
  10888. Attributes:
  10889. - success
  10890. - o1
  10891. - o2
  10892. """
  10893. thrift_spec = (
  10894. (0, TType.STRUCT, 'success', (Type, Type.thrift_spec), None, ), # 0
  10895. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10896. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  10897. )
  10898. def __init__(self, success=None, o1=None, o2=None,):
  10899. self.success = success
  10900. self.o1 = o1
  10901. self.o2 = o2
  10902. def read(self, iprot):
  10903. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10904. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10905. return
  10906. iprot.readStructBegin()
  10907. while True:
  10908. (fname, ftype, fid) = iprot.readFieldBegin()
  10909. if ftype == TType.STOP:
  10910. break
  10911. if fid == 0:
  10912. if ftype == TType.STRUCT:
  10913. self.success = Type()
  10914. self.success.read(iprot)
  10915. else:
  10916. iprot.skip(ftype)
  10917. elif fid == 1:
  10918. if ftype == TType.STRUCT:
  10919. self.o1 = MetaException()
  10920. self.o1.read(iprot)
  10921. else:
  10922. iprot.skip(ftype)
  10923. elif fid == 2:
  10924. if ftype == TType.STRUCT:
  10925. self.o2 = NoSuchObjectException()
  10926. self.o2.read(iprot)
  10927. else:
  10928. iprot.skip(ftype)
  10929. else:
  10930. iprot.skip(ftype)
  10931. iprot.readFieldEnd()
  10932. iprot.readStructEnd()
  10933. def write(self, oprot):
  10934. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10935. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10936. return
  10937. oprot.writeStructBegin('get_type_result')
  10938. if self.success is not None:
  10939. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  10940. self.success.write(oprot)
  10941. oprot.writeFieldEnd()
  10942. if self.o1 is not None:
  10943. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10944. self.o1.write(oprot)
  10945. oprot.writeFieldEnd()
  10946. if self.o2 is not None:
  10947. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  10948. self.o2.write(oprot)
  10949. oprot.writeFieldEnd()
  10950. oprot.writeFieldStop()
  10951. oprot.writeStructEnd()
  10952. def validate(self):
  10953. return
  10954. def __hash__(self):
  10955. value = 17
  10956. value = (value * 31) ^ hash(self.success)
  10957. value = (value * 31) ^ hash(self.o1)
  10958. value = (value * 31) ^ hash(self.o2)
  10959. return value
  10960. def __repr__(self):
  10961. L = ['%s=%r' % (key, value)
  10962. for key, value in self.__dict__.iteritems()]
  10963. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10964. def __eq__(self, other):
  10965. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10966. def __ne__(self, other):
  10967. return not (self == other)
  10968. class create_type_args(object):
  10969. """
  10970. Attributes:
  10971. - type
  10972. """
  10973. thrift_spec = (
  10974. None, # 0
  10975. (1, TType.STRUCT, 'type', (Type, Type.thrift_spec), None, ), # 1
  10976. )
  10977. def __init__(self, type=None,):
  10978. self.type = type
  10979. def read(self, iprot):
  10980. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10981. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10982. return
  10983. iprot.readStructBegin()
  10984. while True:
  10985. (fname, ftype, fid) = iprot.readFieldBegin()
  10986. if ftype == TType.STOP:
  10987. break
  10988. if fid == 1:
  10989. if ftype == TType.STRUCT:
  10990. self.type = Type()
  10991. self.type.read(iprot)
  10992. else:
  10993. iprot.skip(ftype)
  10994. else:
  10995. iprot.skip(ftype)
  10996. iprot.readFieldEnd()
  10997. iprot.readStructEnd()
  10998. def write(self, oprot):
  10999. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11000. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11001. return
  11002. oprot.writeStructBegin('create_type_args')
  11003. if self.type is not None:
  11004. oprot.writeFieldBegin('type', TType.STRUCT, 1)
  11005. self.type.write(oprot)
  11006. oprot.writeFieldEnd()
  11007. oprot.writeFieldStop()
  11008. oprot.writeStructEnd()
  11009. def validate(self):
  11010. return
  11011. def __hash__(self):
  11012. value = 17
  11013. value = (value * 31) ^ hash(self.type)
  11014. return value
  11015. def __repr__(self):
  11016. L = ['%s=%r' % (key, value)
  11017. for key, value in self.__dict__.iteritems()]
  11018. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11019. def __eq__(self, other):
  11020. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11021. def __ne__(self, other):
  11022. return not (self == other)
  11023. class create_type_result(object):
  11024. """
  11025. Attributes:
  11026. - success
  11027. - o1
  11028. - o2
  11029. - o3
  11030. """
  11031. thrift_spec = (
  11032. (0, TType.BOOL, 'success', None, None, ), # 0
  11033. (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1
  11034. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  11035. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  11036. )
  11037. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  11038. self.success = success
  11039. self.o1 = o1
  11040. self.o2 = o2
  11041. self.o3 = o3
  11042. def read(self, iprot):
  11043. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11044. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11045. return
  11046. iprot.readStructBegin()
  11047. while True:
  11048. (fname, ftype, fid) = iprot.readFieldBegin()
  11049. if ftype == TType.STOP:
  11050. break
  11051. if fid == 0:
  11052. if ftype == TType.BOOL:
  11053. self.success = iprot.readBool()
  11054. else:
  11055. iprot.skip(ftype)
  11056. elif fid == 1:
  11057. if ftype == TType.STRUCT:
  11058. self.o1 = AlreadyExistsException()
  11059. self.o1.read(iprot)
  11060. else:
  11061. iprot.skip(ftype)
  11062. elif fid == 2:
  11063. if ftype == TType.STRUCT:
  11064. self.o2 = InvalidObjectException()
  11065. self.o2.read(iprot)
  11066. else:
  11067. iprot.skip(ftype)
  11068. elif fid == 3:
  11069. if ftype == TType.STRUCT:
  11070. self.o3 = MetaException()
  11071. self.o3.read(iprot)
  11072. else:
  11073. iprot.skip(ftype)
  11074. else:
  11075. iprot.skip(ftype)
  11076. iprot.readFieldEnd()
  11077. iprot.readStructEnd()
  11078. def write(self, oprot):
  11079. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11080. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11081. return
  11082. oprot.writeStructBegin('create_type_result')
  11083. if self.success is not None:
  11084. oprot.writeFieldBegin('success', TType.BOOL, 0)
  11085. oprot.writeBool(self.success)
  11086. oprot.writeFieldEnd()
  11087. if self.o1 is not None:
  11088. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11089. self.o1.write(oprot)
  11090. oprot.writeFieldEnd()
  11091. if self.o2 is not None:
  11092. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  11093. self.o2.write(oprot)
  11094. oprot.writeFieldEnd()
  11095. if self.o3 is not None:
  11096. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  11097. self.o3.write(oprot)
  11098. oprot.writeFieldEnd()
  11099. oprot.writeFieldStop()
  11100. oprot.writeStructEnd()
  11101. def validate(self):
  11102. return
  11103. def __hash__(self):
  11104. value = 17
  11105. value = (value * 31) ^ hash(self.success)
  11106. value = (value * 31) ^ hash(self.o1)
  11107. value = (value * 31) ^ hash(self.o2)
  11108. value = (value * 31) ^ hash(self.o3)
  11109. return value
  11110. def __repr__(self):
  11111. L = ['%s=%r' % (key, value)
  11112. for key, value in self.__dict__.iteritems()]
  11113. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11114. def __eq__(self, other):
  11115. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11116. def __ne__(self, other):
  11117. return not (self == other)
  11118. class drop_type_args(object):
  11119. """
  11120. Attributes:
  11121. - type
  11122. """
  11123. thrift_spec = (
  11124. None, # 0
  11125. (1, TType.STRING, 'type', None, None, ), # 1
  11126. )
  11127. def __init__(self, type=None,):
  11128. self.type = type
  11129. def read(self, iprot):
  11130. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11131. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11132. return
  11133. iprot.readStructBegin()
  11134. while True:
  11135. (fname, ftype, fid) = iprot.readFieldBegin()
  11136. if ftype == TType.STOP:
  11137. break
  11138. if fid == 1:
  11139. if ftype == TType.STRING:
  11140. self.type = iprot.readString()
  11141. else:
  11142. iprot.skip(ftype)
  11143. else:
  11144. iprot.skip(ftype)
  11145. iprot.readFieldEnd()
  11146. iprot.readStructEnd()
  11147. def write(self, oprot):
  11148. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11149. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11150. return
  11151. oprot.writeStructBegin('drop_type_args')
  11152. if self.type is not None:
  11153. oprot.writeFieldBegin('type', TType.STRING, 1)
  11154. oprot.writeString(self.type)
  11155. oprot.writeFieldEnd()
  11156. oprot.writeFieldStop()
  11157. oprot.writeStructEnd()
  11158. def validate(self):
  11159. return
  11160. def __hash__(self):
  11161. value = 17
  11162. value = (value * 31) ^ hash(self.type)
  11163. return value
  11164. def __repr__(self):
  11165. L = ['%s=%r' % (key, value)
  11166. for key, value in self.__dict__.iteritems()]
  11167. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11168. def __eq__(self, other):
  11169. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11170. def __ne__(self, other):
  11171. return not (self == other)
  11172. class drop_type_result(object):
  11173. """
  11174. Attributes:
  11175. - success
  11176. - o1
  11177. - o2
  11178. """
  11179. thrift_spec = (
  11180. (0, TType.BOOL, 'success', None, None, ), # 0
  11181. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  11182. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  11183. )
  11184. def __init__(self, success=None, o1=None, o2=None,):
  11185. self.success = success
  11186. self.o1 = o1
  11187. self.o2 = o2
  11188. def read(self, iprot):
  11189. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11190. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11191. return
  11192. iprot.readStructBegin()
  11193. while True:
  11194. (fname, ftype, fid) = iprot.readFieldBegin()
  11195. if ftype == TType.STOP:
  11196. break
  11197. if fid == 0:
  11198. if ftype == TType.BOOL:
  11199. self.success = iprot.readBool()
  11200. else:
  11201. iprot.skip(ftype)
  11202. elif fid == 1:
  11203. if ftype == TType.STRUCT:
  11204. self.o1 = MetaException()
  11205. self.o1.read(iprot)
  11206. else:
  11207. iprot.skip(ftype)
  11208. elif fid == 2:
  11209. if ftype == TType.STRUCT:
  11210. self.o2 = NoSuchObjectException()
  11211. self.o2.read(iprot)
  11212. else:
  11213. iprot.skip(ftype)
  11214. else:
  11215. iprot.skip(ftype)
  11216. iprot.readFieldEnd()
  11217. iprot.readStructEnd()
  11218. def write(self, oprot):
  11219. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11220. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11221. return
  11222. oprot.writeStructBegin('drop_type_result')
  11223. if self.success is not None:
  11224. oprot.writeFieldBegin('success', TType.BOOL, 0)
  11225. oprot.writeBool(self.success)
  11226. oprot.writeFieldEnd()
  11227. if self.o1 is not None:
  11228. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11229. self.o1.write(oprot)
  11230. oprot.writeFieldEnd()
  11231. if self.o2 is not None:
  11232. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  11233. self.o2.write(oprot)
  11234. oprot.writeFieldEnd()
  11235. oprot.writeFieldStop()
  11236. oprot.writeStructEnd()
  11237. def validate(self):
  11238. return
  11239. def __hash__(self):
  11240. value = 17
  11241. value = (value * 31) ^ hash(self.success)
  11242. value = (value * 31) ^ hash(self.o1)
  11243. value = (value * 31) ^ hash(self.o2)
  11244. return value
  11245. def __repr__(self):
  11246. L = ['%s=%r' % (key, value)
  11247. for key, value in self.__dict__.iteritems()]
  11248. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11249. def __eq__(self, other):
  11250. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11251. def __ne__(self, other):
  11252. return not (self == other)
  11253. class get_type_all_args(object):
  11254. """
  11255. Attributes:
  11256. - name
  11257. """
  11258. thrift_spec = (
  11259. None, # 0
  11260. (1, TType.STRING, 'name', None, None, ), # 1
  11261. )
  11262. def __init__(self, name=None,):
  11263. self.name = name
  11264. def read(self, iprot):
  11265. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11266. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11267. return
  11268. iprot.readStructBegin()
  11269. while True:
  11270. (fname, ftype, fid) = iprot.readFieldBegin()
  11271. if ftype == TType.STOP:
  11272. break
  11273. if fid == 1:
  11274. if ftype == TType.STRING:
  11275. self.name = iprot.readString()
  11276. else:
  11277. iprot.skip(ftype)
  11278. else:
  11279. iprot.skip(ftype)
  11280. iprot.readFieldEnd()
  11281. iprot.readStructEnd()
  11282. def write(self, oprot):
  11283. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11284. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11285. return
  11286. oprot.writeStructBegin('get_type_all_args')
  11287. if self.name is not None:
  11288. oprot.writeFieldBegin('name', TType.STRING, 1)
  11289. oprot.writeString(self.name)
  11290. oprot.writeFieldEnd()
  11291. oprot.writeFieldStop()
  11292. oprot.writeStructEnd()
  11293. def validate(self):
  11294. return
  11295. def __hash__(self):
  11296. value = 17
  11297. value = (value * 31) ^ hash(self.name)
  11298. return value
  11299. def __repr__(self):
  11300. L = ['%s=%r' % (key, value)
  11301. for key, value in self.__dict__.iteritems()]
  11302. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11303. def __eq__(self, other):
  11304. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11305. def __ne__(self, other):
  11306. return not (self == other)
  11307. class get_type_all_result(object):
  11308. """
  11309. Attributes:
  11310. - success
  11311. - o2
  11312. """
  11313. thrift_spec = (
  11314. (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(Type, Type.thrift_spec)), None, ), # 0
  11315. (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1
  11316. )
  11317. def __init__(self, success=None, o2=None,):
  11318. self.success = success
  11319. self.o2 = o2
  11320. def read(self, iprot):
  11321. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11322. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11323. return
  11324. iprot.readStructBegin()
  11325. while True:
  11326. (fname, ftype, fid) = iprot.readFieldBegin()
  11327. if ftype == TType.STOP:
  11328. break
  11329. if fid == 0:
  11330. if ftype == TType.MAP:
  11331. self.success = {}
  11332. (_ktype609, _vtype610, _size608 ) = iprot.readMapBegin()
  11333. for _i612 in xrange(_size608):
  11334. _key613 = iprot.readString()
  11335. _val614 = Type()
  11336. _val614.read(iprot)
  11337. self.success[_key613] = _val614
  11338. iprot.readMapEnd()
  11339. else:
  11340. iprot.skip(ftype)
  11341. elif fid == 1:
  11342. if ftype == TType.STRUCT:
  11343. self.o2 = MetaException()
  11344. self.o2.read(iprot)
  11345. else:
  11346. iprot.skip(ftype)
  11347. else:
  11348. iprot.skip(ftype)
  11349. iprot.readFieldEnd()
  11350. iprot.readStructEnd()
  11351. def write(self, oprot):
  11352. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11353. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11354. return
  11355. oprot.writeStructBegin('get_type_all_result')
  11356. if self.success is not None:
  11357. oprot.writeFieldBegin('success', TType.MAP, 0)
  11358. oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
  11359. for kiter615,viter616 in self.success.items():
  11360. oprot.writeString(kiter615)
  11361. viter616.write(oprot)
  11362. oprot.writeMapEnd()
  11363. oprot.writeFieldEnd()
  11364. if self.o2 is not None:
  11365. oprot.writeFieldBegin('o2', TType.STRUCT, 1)
  11366. self.o2.write(oprot)
  11367. oprot.writeFieldEnd()
  11368. oprot.writeFieldStop()
  11369. oprot.writeStructEnd()
  11370. def validate(self):
  11371. return
  11372. def __hash__(self):
  11373. value = 17
  11374. value = (value * 31) ^ hash(self.success)
  11375. value = (value * 31) ^ hash(self.o2)
  11376. return value
  11377. def __repr__(self):
  11378. L = ['%s=%r' % (key, value)
  11379. for key, value in self.__dict__.iteritems()]
  11380. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11381. def __eq__(self, other):
  11382. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11383. def __ne__(self, other):
  11384. return not (self == other)
  11385. class get_fields_args(object):
  11386. """
  11387. Attributes:
  11388. - db_name
  11389. - table_name
  11390. """
  11391. thrift_spec = (
  11392. None, # 0
  11393. (1, TType.STRING, 'db_name', None, None, ), # 1
  11394. (2, TType.STRING, 'table_name', None, None, ), # 2
  11395. )
  11396. def __init__(self, db_name=None, table_name=None,):
  11397. self.db_name = db_name
  11398. self.table_name = table_name
  11399. def read(self, iprot):
  11400. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11401. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11402. return
  11403. iprot.readStructBegin()
  11404. while True:
  11405. (fname, ftype, fid) = iprot.readFieldBegin()
  11406. if ftype == TType.STOP:
  11407. break
  11408. if fid == 1:
  11409. if ftype == TType.STRING:
  11410. self.db_name = iprot.readString()
  11411. else:
  11412. iprot.skip(ftype)
  11413. elif fid == 2:
  11414. if ftype == TType.STRING:
  11415. self.table_name = iprot.readString()
  11416. else:
  11417. iprot.skip(ftype)
  11418. else:
  11419. iprot.skip(ftype)
  11420. iprot.readFieldEnd()
  11421. iprot.readStructEnd()
  11422. def write(self, oprot):
  11423. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11424. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11425. return
  11426. oprot.writeStructBegin('get_fields_args')
  11427. if self.db_name is not None:
  11428. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  11429. oprot.writeString(self.db_name)
  11430. oprot.writeFieldEnd()
  11431. if self.table_name is not None:
  11432. oprot.writeFieldBegin('table_name', TType.STRING, 2)
  11433. oprot.writeString(self.table_name)
  11434. oprot.writeFieldEnd()
  11435. oprot.writeFieldStop()
  11436. oprot.writeStructEnd()
  11437. def validate(self):
  11438. return
  11439. def __hash__(self):
  11440. value = 17
  11441. value = (value * 31) ^ hash(self.db_name)
  11442. value = (value * 31) ^ hash(self.table_name)
  11443. return value
  11444. def __repr__(self):
  11445. L = ['%s=%r' % (key, value)
  11446. for key, value in self.__dict__.iteritems()]
  11447. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11448. def __eq__(self, other):
  11449. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11450. def __ne__(self, other):
  11451. return not (self == other)
  11452. class get_fields_result(object):
  11453. """
  11454. Attributes:
  11455. - success
  11456. - o1
  11457. - o2
  11458. - o3
  11459. """
  11460. thrift_spec = (
  11461. (0, TType.LIST, 'success', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 0
  11462. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  11463. (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2
  11464. (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3
  11465. )
  11466. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  11467. self.success = success
  11468. self.o1 = o1
  11469. self.o2 = o2
  11470. self.o3 = o3
  11471. def read(self, iprot):
  11472. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11473. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11474. return
  11475. iprot.readStructBegin()
  11476. while True:
  11477. (fname, ftype, fid) = iprot.readFieldBegin()
  11478. if ftype == TType.STOP:
  11479. break
  11480. if fid == 0:
  11481. if ftype == TType.LIST:
  11482. self.success = []
  11483. (_etype620, _size617) = iprot.readListBegin()
  11484. for _i621 in xrange(_size617):
  11485. _elem622 = FieldSchema()
  11486. _elem622.read(iprot)
  11487. self.success.append(_elem622)
  11488. iprot.readListEnd()
  11489. else:
  11490. iprot.skip(ftype)
  11491. elif fid == 1:
  11492. if ftype == TType.STRUCT:
  11493. self.o1 = MetaException()
  11494. self.o1.read(iprot)
  11495. else:
  11496. iprot.skip(ftype)
  11497. elif fid == 2:
  11498. if ftype == TType.STRUCT:
  11499. self.o2 = UnknownTableException()
  11500. self.o2.read(iprot)
  11501. else:
  11502. iprot.skip(ftype)
  11503. elif fid == 3:
  11504. if ftype == TType.STRUCT:
  11505. self.o3 = UnknownDBException()
  11506. self.o3.read(iprot)
  11507. else:
  11508. iprot.skip(ftype)
  11509. else:
  11510. iprot.skip(ftype)
  11511. iprot.readFieldEnd()
  11512. iprot.readStructEnd()
  11513. def write(self, oprot):
  11514. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11515. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11516. return
  11517. oprot.writeStructBegin('get_fields_result')
  11518. if self.success is not None:
  11519. oprot.writeFieldBegin('success', TType.LIST, 0)
  11520. oprot.writeListBegin(TType.STRUCT, len(self.success))
  11521. for iter623 in self.success:
  11522. iter623.write(oprot)
  11523. oprot.writeListEnd()
  11524. oprot.writeFieldEnd()
  11525. if self.o1 is not None:
  11526. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11527. self.o1.write(oprot)
  11528. oprot.writeFieldEnd()
  11529. if self.o2 is not None:
  11530. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  11531. self.o2.write(oprot)
  11532. oprot.writeFieldEnd()
  11533. if self.o3 is not None:
  11534. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  11535. self.o3.write(oprot)
  11536. oprot.writeFieldEnd()
  11537. oprot.writeFieldStop()
  11538. oprot.writeStructEnd()
  11539. def validate(self):
  11540. return
  11541. def __hash__(self):
  11542. value = 17
  11543. value = (value * 31) ^ hash(self.success)
  11544. value = (value * 31) ^ hash(self.o1)
  11545. value = (value * 31) ^ hash(self.o2)
  11546. value = (value * 31) ^ hash(self.o3)
  11547. return value
  11548. def __repr__(self):
  11549. L = ['%s=%r' % (key, value)
  11550. for key, value in self.__dict__.iteritems()]
  11551. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11552. def __eq__(self, other):
  11553. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11554. def __ne__(self, other):
  11555. return not (self == other)
  11556. class get_fields_with_environment_context_args(object):
  11557. """
  11558. Attributes:
  11559. - db_name
  11560. - table_name
  11561. - environment_context
  11562. """
  11563. thrift_spec = (
  11564. None, # 0
  11565. (1, TType.STRING, 'db_name', None, None, ), # 1
  11566. (2, TType.STRING, 'table_name', None, None, ), # 2
  11567. (3, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 3
  11568. )
  11569. def __init__(self, db_name=None, table_name=None, environment_context=None,):
  11570. self.db_name = db_name
  11571. self.table_name = table_name
  11572. self.environment_context = environment_context
  11573. def read(self, iprot):
  11574. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11575. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11576. return
  11577. iprot.readStructBegin()
  11578. while True:
  11579. (fname, ftype, fid) = iprot.readFieldBegin()
  11580. if ftype == TType.STOP:
  11581. break
  11582. if fid == 1:
  11583. if ftype == TType.STRING:
  11584. self.db_name = iprot.readString()
  11585. else:
  11586. iprot.skip(ftype)
  11587. elif fid == 2:
  11588. if ftype == TType.STRING:
  11589. self.table_name = iprot.readString()
  11590. else:
  11591. iprot.skip(ftype)
  11592. elif fid == 3:
  11593. if ftype == TType.STRUCT:
  11594. self.environment_context = EnvironmentContext()
  11595. self.environment_context.read(iprot)
  11596. else:
  11597. iprot.skip(ftype)
  11598. else:
  11599. iprot.skip(ftype)
  11600. iprot.readFieldEnd()
  11601. iprot.readStructEnd()
  11602. def write(self, oprot):
  11603. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11604. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11605. return
  11606. oprot.writeStructBegin('get_fields_with_environment_context_args')
  11607. if self.db_name is not None:
  11608. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  11609. oprot.writeString(self.db_name)
  11610. oprot.writeFieldEnd()
  11611. if self.table_name is not None:
  11612. oprot.writeFieldBegin('table_name', TType.STRING, 2)
  11613. oprot.writeString(self.table_name)
  11614. oprot.writeFieldEnd()
  11615. if self.environment_context is not None:
  11616. oprot.writeFieldBegin('environment_context', TType.STRUCT, 3)
  11617. self.environment_context.write(oprot)
  11618. oprot.writeFieldEnd()
  11619. oprot.writeFieldStop()
  11620. oprot.writeStructEnd()
  11621. def validate(self):
  11622. return
  11623. def __hash__(self):
  11624. value = 17
  11625. value = (value * 31) ^ hash(self.db_name)
  11626. value = (value * 31) ^ hash(self.table_name)
  11627. value = (value * 31) ^ hash(self.environment_context)
  11628. return value
  11629. def __repr__(self):
  11630. L = ['%s=%r' % (key, value)
  11631. for key, value in self.__dict__.iteritems()]
  11632. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11633. def __eq__(self, other):
  11634. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11635. def __ne__(self, other):
  11636. return not (self == other)
  11637. class get_fields_with_environment_context_result(object):
  11638. """
  11639. Attributes:
  11640. - success
  11641. - o1
  11642. - o2
  11643. - o3
  11644. """
  11645. thrift_spec = (
  11646. (0, TType.LIST, 'success', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 0
  11647. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  11648. (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2
  11649. (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3
  11650. )
  11651. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  11652. self.success = success
  11653. self.o1 = o1
  11654. self.o2 = o2
  11655. self.o3 = o3
  11656. def read(self, iprot):
  11657. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11658. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11659. return
  11660. iprot.readStructBegin()
  11661. while True:
  11662. (fname, ftype, fid) = iprot.readFieldBegin()
  11663. if ftype == TType.STOP:
  11664. break
  11665. if fid == 0:
  11666. if ftype == TType.LIST:
  11667. self.success = []
  11668. (_etype627, _size624) = iprot.readListBegin()
  11669. for _i628 in xrange(_size624):
  11670. _elem629 = FieldSchema()
  11671. _elem629.read(iprot)
  11672. self.success.append(_elem629)
  11673. iprot.readListEnd()
  11674. else:
  11675. iprot.skip(ftype)
  11676. elif fid == 1:
  11677. if ftype == TType.STRUCT:
  11678. self.o1 = MetaException()
  11679. self.o1.read(iprot)
  11680. else:
  11681. iprot.skip(ftype)
  11682. elif fid == 2:
  11683. if ftype == TType.STRUCT:
  11684. self.o2 = UnknownTableException()
  11685. self.o2.read(iprot)
  11686. else:
  11687. iprot.skip(ftype)
  11688. elif fid == 3:
  11689. if ftype == TType.STRUCT:
  11690. self.o3 = UnknownDBException()
  11691. self.o3.read(iprot)
  11692. else:
  11693. iprot.skip(ftype)
  11694. else:
  11695. iprot.skip(ftype)
  11696. iprot.readFieldEnd()
  11697. iprot.readStructEnd()
  11698. def write(self, oprot):
  11699. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11700. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11701. return
  11702. oprot.writeStructBegin('get_fields_with_environment_context_result')
  11703. if self.success is not None:
  11704. oprot.writeFieldBegin('success', TType.LIST, 0)
  11705. oprot.writeListBegin(TType.STRUCT, len(self.success))
  11706. for iter630 in self.success:
  11707. iter630.write(oprot)
  11708. oprot.writeListEnd()
  11709. oprot.writeFieldEnd()
  11710. if self.o1 is not None:
  11711. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11712. self.o1.write(oprot)
  11713. oprot.writeFieldEnd()
  11714. if self.o2 is not None:
  11715. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  11716. self.o2.write(oprot)
  11717. oprot.writeFieldEnd()
  11718. if self.o3 is not None:
  11719. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  11720. self.o3.write(oprot)
  11721. oprot.writeFieldEnd()
  11722. oprot.writeFieldStop()
  11723. oprot.writeStructEnd()
  11724. def validate(self):
  11725. return
  11726. def __hash__(self):
  11727. value = 17
  11728. value = (value * 31) ^ hash(self.success)
  11729. value = (value * 31) ^ hash(self.o1)
  11730. value = (value * 31) ^ hash(self.o2)
  11731. value = (value * 31) ^ hash(self.o3)
  11732. return value
  11733. def __repr__(self):
  11734. L = ['%s=%r' % (key, value)
  11735. for key, value in self.__dict__.iteritems()]
  11736. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11737. def __eq__(self, other):
  11738. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11739. def __ne__(self, other):
  11740. return not (self == other)
  11741. class get_schema_args(object):
  11742. """
  11743. Attributes:
  11744. - db_name
  11745. - table_name
  11746. """
  11747. thrift_spec = (
  11748. None, # 0
  11749. (1, TType.STRING, 'db_name', None, None, ), # 1
  11750. (2, TType.STRING, 'table_name', None, None, ), # 2
  11751. )
  11752. def __init__(self, db_name=None, table_name=None,):
  11753. self.db_name = db_name
  11754. self.table_name = table_name
  11755. def read(self, iprot):
  11756. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11757. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11758. return
  11759. iprot.readStructBegin()
  11760. while True:
  11761. (fname, ftype, fid) = iprot.readFieldBegin()
  11762. if ftype == TType.STOP:
  11763. break
  11764. if fid == 1:
  11765. if ftype == TType.STRING:
  11766. self.db_name = iprot.readString()
  11767. else:
  11768. iprot.skip(ftype)
  11769. elif fid == 2:
  11770. if ftype == TType.STRING:
  11771. self.table_name = iprot.readString()
  11772. else:
  11773. iprot.skip(ftype)
  11774. else:
  11775. iprot.skip(ftype)
  11776. iprot.readFieldEnd()
  11777. iprot.readStructEnd()
  11778. def write(self, oprot):
  11779. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11780. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11781. return
  11782. oprot.writeStructBegin('get_schema_args')
  11783. if self.db_name is not None:
  11784. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  11785. oprot.writeString(self.db_name)
  11786. oprot.writeFieldEnd()
  11787. if self.table_name is not None:
  11788. oprot.writeFieldBegin('table_name', TType.STRING, 2)
  11789. oprot.writeString(self.table_name)
  11790. oprot.writeFieldEnd()
  11791. oprot.writeFieldStop()
  11792. oprot.writeStructEnd()
  11793. def validate(self):
  11794. return
  11795. def __hash__(self):
  11796. value = 17
  11797. value = (value * 31) ^ hash(self.db_name)
  11798. value = (value * 31) ^ hash(self.table_name)
  11799. return value
  11800. def __repr__(self):
  11801. L = ['%s=%r' % (key, value)
  11802. for key, value in self.__dict__.iteritems()]
  11803. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11804. def __eq__(self, other):
  11805. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11806. def __ne__(self, other):
  11807. return not (self == other)
  11808. class get_schema_result(object):
  11809. """
  11810. Attributes:
  11811. - success
  11812. - o1
  11813. - o2
  11814. - o3
  11815. """
  11816. thrift_spec = (
  11817. (0, TType.LIST, 'success', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 0
  11818. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  11819. (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2
  11820. (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3
  11821. )
  11822. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  11823. self.success = success
  11824. self.o1 = o1
  11825. self.o2 = o2
  11826. self.o3 = o3
  11827. def read(self, iprot):
  11828. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11829. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11830. return
  11831. iprot.readStructBegin()
  11832. while True:
  11833. (fname, ftype, fid) = iprot.readFieldBegin()
  11834. if ftype == TType.STOP:
  11835. break
  11836. if fid == 0:
  11837. if ftype == TType.LIST:
  11838. self.success = []
  11839. (_etype634, _size631) = iprot.readListBegin()
  11840. for _i635 in xrange(_size631):
  11841. _elem636 = FieldSchema()
  11842. _elem636.read(iprot)
  11843. self.success.append(_elem636)
  11844. iprot.readListEnd()
  11845. else:
  11846. iprot.skip(ftype)
  11847. elif fid == 1:
  11848. if ftype == TType.STRUCT:
  11849. self.o1 = MetaException()
  11850. self.o1.read(iprot)
  11851. else:
  11852. iprot.skip(ftype)
  11853. elif fid == 2:
  11854. if ftype == TType.STRUCT:
  11855. self.o2 = UnknownTableException()
  11856. self.o2.read(iprot)
  11857. else:
  11858. iprot.skip(ftype)
  11859. elif fid == 3:
  11860. if ftype == TType.STRUCT:
  11861. self.o3 = UnknownDBException()
  11862. self.o3.read(iprot)
  11863. else:
  11864. iprot.skip(ftype)
  11865. else:
  11866. iprot.skip(ftype)
  11867. iprot.readFieldEnd()
  11868. iprot.readStructEnd()
  11869. def write(self, oprot):
  11870. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11871. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11872. return
  11873. oprot.writeStructBegin('get_schema_result')
  11874. if self.success is not None:
  11875. oprot.writeFieldBegin('success', TType.LIST, 0)
  11876. oprot.writeListBegin(TType.STRUCT, len(self.success))
  11877. for iter637 in self.success:
  11878. iter637.write(oprot)
  11879. oprot.writeListEnd()
  11880. oprot.writeFieldEnd()
  11881. if self.o1 is not None:
  11882. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11883. self.o1.write(oprot)
  11884. oprot.writeFieldEnd()
  11885. if self.o2 is not None:
  11886. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  11887. self.o2.write(oprot)
  11888. oprot.writeFieldEnd()
  11889. if self.o3 is not None:
  11890. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  11891. self.o3.write(oprot)
  11892. oprot.writeFieldEnd()
  11893. oprot.writeFieldStop()
  11894. oprot.writeStructEnd()
  11895. def validate(self):
  11896. return
  11897. def __hash__(self):
  11898. value = 17
  11899. value = (value * 31) ^ hash(self.success)
  11900. value = (value * 31) ^ hash(self.o1)
  11901. value = (value * 31) ^ hash(self.o2)
  11902. value = (value * 31) ^ hash(self.o3)
  11903. return value
  11904. def __repr__(self):
  11905. L = ['%s=%r' % (key, value)
  11906. for key, value in self.__dict__.iteritems()]
  11907. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11908. def __eq__(self, other):
  11909. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11910. def __ne__(self, other):
  11911. return not (self == other)
  11912. class get_schema_with_environment_context_args(object):
  11913. """
  11914. Attributes:
  11915. - db_name
  11916. - table_name
  11917. - environment_context
  11918. """
  11919. thrift_spec = (
  11920. None, # 0
  11921. (1, TType.STRING, 'db_name', None, None, ), # 1
  11922. (2, TType.STRING, 'table_name', None, None, ), # 2
  11923. (3, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 3
  11924. )
  11925. def __init__(self, db_name=None, table_name=None, environment_context=None,):
  11926. self.db_name = db_name
  11927. self.table_name = table_name
  11928. self.environment_context = environment_context
  11929. def read(self, iprot):
  11930. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11931. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11932. return
  11933. iprot.readStructBegin()
  11934. while True:
  11935. (fname, ftype, fid) = iprot.readFieldBegin()
  11936. if ftype == TType.STOP:
  11937. break
  11938. if fid == 1:
  11939. if ftype == TType.STRING:
  11940. self.db_name = iprot.readString()
  11941. else:
  11942. iprot.skip(ftype)
  11943. elif fid == 2:
  11944. if ftype == TType.STRING:
  11945. self.table_name = iprot.readString()
  11946. else:
  11947. iprot.skip(ftype)
  11948. elif fid == 3:
  11949. if ftype == TType.STRUCT:
  11950. self.environment_context = EnvironmentContext()
  11951. self.environment_context.read(iprot)
  11952. else:
  11953. iprot.skip(ftype)
  11954. else:
  11955. iprot.skip(ftype)
  11956. iprot.readFieldEnd()
  11957. iprot.readStructEnd()
  11958. def write(self, oprot):
  11959. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11960. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11961. return
  11962. oprot.writeStructBegin('get_schema_with_environment_context_args')
  11963. if self.db_name is not None:
  11964. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  11965. oprot.writeString(self.db_name)
  11966. oprot.writeFieldEnd()
  11967. if self.table_name is not None:
  11968. oprot.writeFieldBegin('table_name', TType.STRING, 2)
  11969. oprot.writeString(self.table_name)
  11970. oprot.writeFieldEnd()
  11971. if self.environment_context is not None:
  11972. oprot.writeFieldBegin('environment_context', TType.STRUCT, 3)
  11973. self.environment_context.write(oprot)
  11974. oprot.writeFieldEnd()
  11975. oprot.writeFieldStop()
  11976. oprot.writeStructEnd()
  11977. def validate(self):
  11978. return
  11979. def __hash__(self):
  11980. value = 17
  11981. value = (value * 31) ^ hash(self.db_name)
  11982. value = (value * 31) ^ hash(self.table_name)
  11983. value = (value * 31) ^ hash(self.environment_context)
  11984. return value
  11985. def __repr__(self):
  11986. L = ['%s=%r' % (key, value)
  11987. for key, value in self.__dict__.iteritems()]
  11988. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11989. def __eq__(self, other):
  11990. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11991. def __ne__(self, other):
  11992. return not (self == other)
  11993. class get_schema_with_environment_context_result(object):
  11994. """
  11995. Attributes:
  11996. - success
  11997. - o1
  11998. - o2
  11999. - o3
  12000. """
  12001. thrift_spec = (
  12002. (0, TType.LIST, 'success', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 0
  12003. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  12004. (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2
  12005. (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3
  12006. )
  12007. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  12008. self.success = success
  12009. self.o1 = o1
  12010. self.o2 = o2
  12011. self.o3 = o3
  12012. def read(self, iprot):
  12013. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12014. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12015. return
  12016. iprot.readStructBegin()
  12017. while True:
  12018. (fname, ftype, fid) = iprot.readFieldBegin()
  12019. if ftype == TType.STOP:
  12020. break
  12021. if fid == 0:
  12022. if ftype == TType.LIST:
  12023. self.success = []
  12024. (_etype641, _size638) = iprot.readListBegin()
  12025. for _i642 in xrange(_size638):
  12026. _elem643 = FieldSchema()
  12027. _elem643.read(iprot)
  12028. self.success.append(_elem643)
  12029. iprot.readListEnd()
  12030. else:
  12031. iprot.skip(ftype)
  12032. elif fid == 1:
  12033. if ftype == TType.STRUCT:
  12034. self.o1 = MetaException()
  12035. self.o1.read(iprot)
  12036. else:
  12037. iprot.skip(ftype)
  12038. elif fid == 2:
  12039. if ftype == TType.STRUCT:
  12040. self.o2 = UnknownTableException()
  12041. self.o2.read(iprot)
  12042. else:
  12043. iprot.skip(ftype)
  12044. elif fid == 3:
  12045. if ftype == TType.STRUCT:
  12046. self.o3 = UnknownDBException()
  12047. self.o3.read(iprot)
  12048. else:
  12049. iprot.skip(ftype)
  12050. else:
  12051. iprot.skip(ftype)
  12052. iprot.readFieldEnd()
  12053. iprot.readStructEnd()
  12054. def write(self, oprot):
  12055. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12056. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12057. return
  12058. oprot.writeStructBegin('get_schema_with_environment_context_result')
  12059. if self.success is not None:
  12060. oprot.writeFieldBegin('success', TType.LIST, 0)
  12061. oprot.writeListBegin(TType.STRUCT, len(self.success))
  12062. for iter644 in self.success:
  12063. iter644.write(oprot)
  12064. oprot.writeListEnd()
  12065. oprot.writeFieldEnd()
  12066. if self.o1 is not None:
  12067. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12068. self.o1.write(oprot)
  12069. oprot.writeFieldEnd()
  12070. if self.o2 is not None:
  12071. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  12072. self.o2.write(oprot)
  12073. oprot.writeFieldEnd()
  12074. if self.o3 is not None:
  12075. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  12076. self.o3.write(oprot)
  12077. oprot.writeFieldEnd()
  12078. oprot.writeFieldStop()
  12079. oprot.writeStructEnd()
  12080. def validate(self):
  12081. return
  12082. def __hash__(self):
  12083. value = 17
  12084. value = (value * 31) ^ hash(self.success)
  12085. value = (value * 31) ^ hash(self.o1)
  12086. value = (value * 31) ^ hash(self.o2)
  12087. value = (value * 31) ^ hash(self.o3)
  12088. return value
  12089. def __repr__(self):
  12090. L = ['%s=%r' % (key, value)
  12091. for key, value in self.__dict__.iteritems()]
  12092. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12093. def __eq__(self, other):
  12094. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12095. def __ne__(self, other):
  12096. return not (self == other)
  12097. class create_table_args(object):
  12098. """
  12099. Attributes:
  12100. - tbl
  12101. """
  12102. thrift_spec = (
  12103. None, # 0
  12104. (1, TType.STRUCT, 'tbl', (Table, Table.thrift_spec), None, ), # 1
  12105. )
  12106. def __init__(self, tbl=None,):
  12107. self.tbl = tbl
  12108. def read(self, iprot):
  12109. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12110. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12111. return
  12112. iprot.readStructBegin()
  12113. while True:
  12114. (fname, ftype, fid) = iprot.readFieldBegin()
  12115. if ftype == TType.STOP:
  12116. break
  12117. if fid == 1:
  12118. if ftype == TType.STRUCT:
  12119. self.tbl = Table()
  12120. self.tbl.read(iprot)
  12121. else:
  12122. iprot.skip(ftype)
  12123. else:
  12124. iprot.skip(ftype)
  12125. iprot.readFieldEnd()
  12126. iprot.readStructEnd()
  12127. def write(self, oprot):
  12128. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12129. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12130. return
  12131. oprot.writeStructBegin('create_table_args')
  12132. if self.tbl is not None:
  12133. oprot.writeFieldBegin('tbl', TType.STRUCT, 1)
  12134. self.tbl.write(oprot)
  12135. oprot.writeFieldEnd()
  12136. oprot.writeFieldStop()
  12137. oprot.writeStructEnd()
  12138. def validate(self):
  12139. return
  12140. def __hash__(self):
  12141. value = 17
  12142. value = (value * 31) ^ hash(self.tbl)
  12143. return value
  12144. def __repr__(self):
  12145. L = ['%s=%r' % (key, value)
  12146. for key, value in self.__dict__.iteritems()]
  12147. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12148. def __eq__(self, other):
  12149. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12150. def __ne__(self, other):
  12151. return not (self == other)
  12152. class create_table_result(object):
  12153. """
  12154. Attributes:
  12155. - o1
  12156. - o2
  12157. - o3
  12158. - o4
  12159. """
  12160. thrift_spec = (
  12161. None, # 0
  12162. (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1
  12163. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  12164. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  12165. (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4
  12166. )
  12167. def __init__(self, o1=None, o2=None, o3=None, o4=None,):
  12168. self.o1 = o1
  12169. self.o2 = o2
  12170. self.o3 = o3
  12171. self.o4 = o4
  12172. def read(self, iprot):
  12173. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12174. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12175. return
  12176. iprot.readStructBegin()
  12177. while True:
  12178. (fname, ftype, fid) = iprot.readFieldBegin()
  12179. if ftype == TType.STOP:
  12180. break
  12181. if fid == 1:
  12182. if ftype == TType.STRUCT:
  12183. self.o1 = AlreadyExistsException()
  12184. self.o1.read(iprot)
  12185. else:
  12186. iprot.skip(ftype)
  12187. elif fid == 2:
  12188. if ftype == TType.STRUCT:
  12189. self.o2 = InvalidObjectException()
  12190. self.o2.read(iprot)
  12191. else:
  12192. iprot.skip(ftype)
  12193. elif fid == 3:
  12194. if ftype == TType.STRUCT:
  12195. self.o3 = MetaException()
  12196. self.o3.read(iprot)
  12197. else:
  12198. iprot.skip(ftype)
  12199. elif fid == 4:
  12200. if ftype == TType.STRUCT:
  12201. self.o4 = NoSuchObjectException()
  12202. self.o4.read(iprot)
  12203. else:
  12204. iprot.skip(ftype)
  12205. else:
  12206. iprot.skip(ftype)
  12207. iprot.readFieldEnd()
  12208. iprot.readStructEnd()
  12209. def write(self, oprot):
  12210. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12211. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12212. return
  12213. oprot.writeStructBegin('create_table_result')
  12214. if self.o1 is not None:
  12215. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12216. self.o1.write(oprot)
  12217. oprot.writeFieldEnd()
  12218. if self.o2 is not None:
  12219. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  12220. self.o2.write(oprot)
  12221. oprot.writeFieldEnd()
  12222. if self.o3 is not None:
  12223. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  12224. self.o3.write(oprot)
  12225. oprot.writeFieldEnd()
  12226. if self.o4 is not None:
  12227. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  12228. self.o4.write(oprot)
  12229. oprot.writeFieldEnd()
  12230. oprot.writeFieldStop()
  12231. oprot.writeStructEnd()
  12232. def validate(self):
  12233. return
  12234. def __hash__(self):
  12235. value = 17
  12236. value = (value * 31) ^ hash(self.o1)
  12237. value = (value * 31) ^ hash(self.o2)
  12238. value = (value * 31) ^ hash(self.o3)
  12239. value = (value * 31) ^ hash(self.o4)
  12240. return value
  12241. def __repr__(self):
  12242. L = ['%s=%r' % (key, value)
  12243. for key, value in self.__dict__.iteritems()]
  12244. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12245. def __eq__(self, other):
  12246. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12247. def __ne__(self, other):
  12248. return not (self == other)
  12249. class create_table_with_environment_context_args(object):
  12250. """
  12251. Attributes:
  12252. - tbl
  12253. - environment_context
  12254. """
  12255. thrift_spec = (
  12256. None, # 0
  12257. (1, TType.STRUCT, 'tbl', (Table, Table.thrift_spec), None, ), # 1
  12258. (2, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 2
  12259. )
  12260. def __init__(self, tbl=None, environment_context=None,):
  12261. self.tbl = tbl
  12262. self.environment_context = environment_context
  12263. def read(self, iprot):
  12264. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12265. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12266. return
  12267. iprot.readStructBegin()
  12268. while True:
  12269. (fname, ftype, fid) = iprot.readFieldBegin()
  12270. if ftype == TType.STOP:
  12271. break
  12272. if fid == 1:
  12273. if ftype == TType.STRUCT:
  12274. self.tbl = Table()
  12275. self.tbl.read(iprot)
  12276. else:
  12277. iprot.skip(ftype)
  12278. elif fid == 2:
  12279. if ftype == TType.STRUCT:
  12280. self.environment_context = EnvironmentContext()
  12281. self.environment_context.read(iprot)
  12282. else:
  12283. iprot.skip(ftype)
  12284. else:
  12285. iprot.skip(ftype)
  12286. iprot.readFieldEnd()
  12287. iprot.readStructEnd()
  12288. def write(self, oprot):
  12289. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12290. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12291. return
  12292. oprot.writeStructBegin('create_table_with_environment_context_args')
  12293. if self.tbl is not None:
  12294. oprot.writeFieldBegin('tbl', TType.STRUCT, 1)
  12295. self.tbl.write(oprot)
  12296. oprot.writeFieldEnd()
  12297. if self.environment_context is not None:
  12298. oprot.writeFieldBegin('environment_context', TType.STRUCT, 2)
  12299. self.environment_context.write(oprot)
  12300. oprot.writeFieldEnd()
  12301. oprot.writeFieldStop()
  12302. oprot.writeStructEnd()
  12303. def validate(self):
  12304. return
  12305. def __hash__(self):
  12306. value = 17
  12307. value = (value * 31) ^ hash(self.tbl)
  12308. value = (value * 31) ^ hash(self.environment_context)
  12309. return value
  12310. def __repr__(self):
  12311. L = ['%s=%r' % (key, value)
  12312. for key, value in self.__dict__.iteritems()]
  12313. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12314. def __eq__(self, other):
  12315. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12316. def __ne__(self, other):
  12317. return not (self == other)
  12318. class create_table_with_environment_context_result(object):
  12319. """
  12320. Attributes:
  12321. - o1
  12322. - o2
  12323. - o3
  12324. - o4
  12325. """
  12326. thrift_spec = (
  12327. None, # 0
  12328. (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1
  12329. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  12330. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  12331. (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4
  12332. )
  12333. def __init__(self, o1=None, o2=None, o3=None, o4=None,):
  12334. self.o1 = o1
  12335. self.o2 = o2
  12336. self.o3 = o3
  12337. self.o4 = o4
  12338. def read(self, iprot):
  12339. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12340. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12341. return
  12342. iprot.readStructBegin()
  12343. while True:
  12344. (fname, ftype, fid) = iprot.readFieldBegin()
  12345. if ftype == TType.STOP:
  12346. break
  12347. if fid == 1:
  12348. if ftype == TType.STRUCT:
  12349. self.o1 = AlreadyExistsException()
  12350. self.o1.read(iprot)
  12351. else:
  12352. iprot.skip(ftype)
  12353. elif fid == 2:
  12354. if ftype == TType.STRUCT:
  12355. self.o2 = InvalidObjectException()
  12356. self.o2.read(iprot)
  12357. else:
  12358. iprot.skip(ftype)
  12359. elif fid == 3:
  12360. if ftype == TType.STRUCT:
  12361. self.o3 = MetaException()
  12362. self.o3.read(iprot)
  12363. else:
  12364. iprot.skip(ftype)
  12365. elif fid == 4:
  12366. if ftype == TType.STRUCT:
  12367. self.o4 = NoSuchObjectException()
  12368. self.o4.read(iprot)
  12369. else:
  12370. iprot.skip(ftype)
  12371. else:
  12372. iprot.skip(ftype)
  12373. iprot.readFieldEnd()
  12374. iprot.readStructEnd()
  12375. def write(self, oprot):
  12376. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12377. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12378. return
  12379. oprot.writeStructBegin('create_table_with_environment_context_result')
  12380. if self.o1 is not None:
  12381. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12382. self.o1.write(oprot)
  12383. oprot.writeFieldEnd()
  12384. if self.o2 is not None:
  12385. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  12386. self.o2.write(oprot)
  12387. oprot.writeFieldEnd()
  12388. if self.o3 is not None:
  12389. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  12390. self.o3.write(oprot)
  12391. oprot.writeFieldEnd()
  12392. if self.o4 is not None:
  12393. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  12394. self.o4.write(oprot)
  12395. oprot.writeFieldEnd()
  12396. oprot.writeFieldStop()
  12397. oprot.writeStructEnd()
  12398. def validate(self):
  12399. return
  12400. def __hash__(self):
  12401. value = 17
  12402. value = (value * 31) ^ hash(self.o1)
  12403. value = (value * 31) ^ hash(self.o2)
  12404. value = (value * 31) ^ hash(self.o3)
  12405. value = (value * 31) ^ hash(self.o4)
  12406. return value
  12407. def __repr__(self):
  12408. L = ['%s=%r' % (key, value)
  12409. for key, value in self.__dict__.iteritems()]
  12410. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12411. def __eq__(self, other):
  12412. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12413. def __ne__(self, other):
  12414. return not (self == other)
  12415. class create_table_with_constraints_args(object):
  12416. """
  12417. Attributes:
  12418. - tbl
  12419. - primaryKeys
  12420. - foreignKeys
  12421. """
  12422. thrift_spec = (
  12423. None, # 0
  12424. (1, TType.STRUCT, 'tbl', (Table, Table.thrift_spec), None, ), # 1
  12425. (2, TType.LIST, 'primaryKeys', (TType.STRUCT,(SQLPrimaryKey, SQLPrimaryKey.thrift_spec)), None, ), # 2
  12426. (3, TType.LIST, 'foreignKeys', (TType.STRUCT,(SQLForeignKey, SQLForeignKey.thrift_spec)), None, ), # 3
  12427. )
  12428. def __init__(self, tbl=None, primaryKeys=None, foreignKeys=None,):
  12429. self.tbl = tbl
  12430. self.primaryKeys = primaryKeys
  12431. self.foreignKeys = foreignKeys
  12432. def read(self, iprot):
  12433. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12434. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12435. return
  12436. iprot.readStructBegin()
  12437. while True:
  12438. (fname, ftype, fid) = iprot.readFieldBegin()
  12439. if ftype == TType.STOP:
  12440. break
  12441. if fid == 1:
  12442. if ftype == TType.STRUCT:
  12443. self.tbl = Table()
  12444. self.tbl.read(iprot)
  12445. else:
  12446. iprot.skip(ftype)
  12447. elif fid == 2:
  12448. if ftype == TType.LIST:
  12449. self.primaryKeys = []
  12450. (_etype648, _size645) = iprot.readListBegin()
  12451. for _i649 in xrange(_size645):
  12452. _elem650 = SQLPrimaryKey()
  12453. _elem650.read(iprot)
  12454. self.primaryKeys.append(_elem650)
  12455. iprot.readListEnd()
  12456. else:
  12457. iprot.skip(ftype)
  12458. elif fid == 3:
  12459. if ftype == TType.LIST:
  12460. self.foreignKeys = []
  12461. (_etype654, _size651) = iprot.readListBegin()
  12462. for _i655 in xrange(_size651):
  12463. _elem656 = SQLForeignKey()
  12464. _elem656.read(iprot)
  12465. self.foreignKeys.append(_elem656)
  12466. iprot.readListEnd()
  12467. else:
  12468. iprot.skip(ftype)
  12469. else:
  12470. iprot.skip(ftype)
  12471. iprot.readFieldEnd()
  12472. iprot.readStructEnd()
  12473. def write(self, oprot):
  12474. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12475. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12476. return
  12477. oprot.writeStructBegin('create_table_with_constraints_args')
  12478. if self.tbl is not None:
  12479. oprot.writeFieldBegin('tbl', TType.STRUCT, 1)
  12480. self.tbl.write(oprot)
  12481. oprot.writeFieldEnd()
  12482. if self.primaryKeys is not None:
  12483. oprot.writeFieldBegin('primaryKeys', TType.LIST, 2)
  12484. oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys))
  12485. for iter657 in self.primaryKeys:
  12486. iter657.write(oprot)
  12487. oprot.writeListEnd()
  12488. oprot.writeFieldEnd()
  12489. if self.foreignKeys is not None:
  12490. oprot.writeFieldBegin('foreignKeys', TType.LIST, 3)
  12491. oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys))
  12492. for iter658 in self.foreignKeys:
  12493. iter658.write(oprot)
  12494. oprot.writeListEnd()
  12495. oprot.writeFieldEnd()
  12496. oprot.writeFieldStop()
  12497. oprot.writeStructEnd()
  12498. def validate(self):
  12499. return
  12500. def __hash__(self):
  12501. value = 17
  12502. value = (value * 31) ^ hash(self.tbl)
  12503. value = (value * 31) ^ hash(self.primaryKeys)
  12504. value = (value * 31) ^ hash(self.foreignKeys)
  12505. return value
  12506. def __repr__(self):
  12507. L = ['%s=%r' % (key, value)
  12508. for key, value in self.__dict__.iteritems()]
  12509. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12510. def __eq__(self, other):
  12511. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12512. def __ne__(self, other):
  12513. return not (self == other)
  12514. class create_table_with_constraints_result(object):
  12515. """
  12516. Attributes:
  12517. - o1
  12518. - o2
  12519. - o3
  12520. - o4
  12521. """
  12522. thrift_spec = (
  12523. None, # 0
  12524. (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1
  12525. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  12526. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  12527. (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4
  12528. )
  12529. def __init__(self, o1=None, o2=None, o3=None, o4=None,):
  12530. self.o1 = o1
  12531. self.o2 = o2
  12532. self.o3 = o3
  12533. self.o4 = o4
  12534. def read(self, iprot):
  12535. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12536. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12537. return
  12538. iprot.readStructBegin()
  12539. while True:
  12540. (fname, ftype, fid) = iprot.readFieldBegin()
  12541. if ftype == TType.STOP:
  12542. break
  12543. if fid == 1:
  12544. if ftype == TType.STRUCT:
  12545. self.o1 = AlreadyExistsException()
  12546. self.o1.read(iprot)
  12547. else:
  12548. iprot.skip(ftype)
  12549. elif fid == 2:
  12550. if ftype == TType.STRUCT:
  12551. self.o2 = InvalidObjectException()
  12552. self.o2.read(iprot)
  12553. else:
  12554. iprot.skip(ftype)
  12555. elif fid == 3:
  12556. if ftype == TType.STRUCT:
  12557. self.o3 = MetaException()
  12558. self.o3.read(iprot)
  12559. else:
  12560. iprot.skip(ftype)
  12561. elif fid == 4:
  12562. if ftype == TType.STRUCT:
  12563. self.o4 = NoSuchObjectException()
  12564. self.o4.read(iprot)
  12565. else:
  12566. iprot.skip(ftype)
  12567. else:
  12568. iprot.skip(ftype)
  12569. iprot.readFieldEnd()
  12570. iprot.readStructEnd()
  12571. def write(self, oprot):
  12572. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12573. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12574. return
  12575. oprot.writeStructBegin('create_table_with_constraints_result')
  12576. if self.o1 is not None:
  12577. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12578. self.o1.write(oprot)
  12579. oprot.writeFieldEnd()
  12580. if self.o2 is not None:
  12581. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  12582. self.o2.write(oprot)
  12583. oprot.writeFieldEnd()
  12584. if self.o3 is not None:
  12585. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  12586. self.o3.write(oprot)
  12587. oprot.writeFieldEnd()
  12588. if self.o4 is not None:
  12589. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  12590. self.o4.write(oprot)
  12591. oprot.writeFieldEnd()
  12592. oprot.writeFieldStop()
  12593. oprot.writeStructEnd()
  12594. def validate(self):
  12595. return
  12596. def __hash__(self):
  12597. value = 17
  12598. value = (value * 31) ^ hash(self.o1)
  12599. value = (value * 31) ^ hash(self.o2)
  12600. value = (value * 31) ^ hash(self.o3)
  12601. value = (value * 31) ^ hash(self.o4)
  12602. return value
  12603. def __repr__(self):
  12604. L = ['%s=%r' % (key, value)
  12605. for key, value in self.__dict__.iteritems()]
  12606. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12607. def __eq__(self, other):
  12608. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12609. def __ne__(self, other):
  12610. return not (self == other)
  12611. class drop_constraint_args(object):
  12612. """
  12613. Attributes:
  12614. - req
  12615. """
  12616. thrift_spec = (
  12617. None, # 0
  12618. (1, TType.STRUCT, 'req', (DropConstraintRequest, DropConstraintRequest.thrift_spec), None, ), # 1
  12619. )
  12620. def __init__(self, req=None,):
  12621. self.req = req
  12622. def read(self, iprot):
  12623. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12624. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12625. return
  12626. iprot.readStructBegin()
  12627. while True:
  12628. (fname, ftype, fid) = iprot.readFieldBegin()
  12629. if ftype == TType.STOP:
  12630. break
  12631. if fid == 1:
  12632. if ftype == TType.STRUCT:
  12633. self.req = DropConstraintRequest()
  12634. self.req.read(iprot)
  12635. else:
  12636. iprot.skip(ftype)
  12637. else:
  12638. iprot.skip(ftype)
  12639. iprot.readFieldEnd()
  12640. iprot.readStructEnd()
  12641. def write(self, oprot):
  12642. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12643. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12644. return
  12645. oprot.writeStructBegin('drop_constraint_args')
  12646. if self.req is not None:
  12647. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  12648. self.req.write(oprot)
  12649. oprot.writeFieldEnd()
  12650. oprot.writeFieldStop()
  12651. oprot.writeStructEnd()
  12652. def validate(self):
  12653. return
  12654. def __hash__(self):
  12655. value = 17
  12656. value = (value * 31) ^ hash(self.req)
  12657. return value
  12658. def __repr__(self):
  12659. L = ['%s=%r' % (key, value)
  12660. for key, value in self.__dict__.iteritems()]
  12661. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12662. def __eq__(self, other):
  12663. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12664. def __ne__(self, other):
  12665. return not (self == other)
  12666. class drop_constraint_result(object):
  12667. """
  12668. Attributes:
  12669. - o1
  12670. - o3
  12671. """
  12672. thrift_spec = (
  12673. None, # 0
  12674. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  12675. (2, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 2
  12676. )
  12677. def __init__(self, o1=None, o3=None,):
  12678. self.o1 = o1
  12679. self.o3 = o3
  12680. def read(self, iprot):
  12681. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12682. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12683. return
  12684. iprot.readStructBegin()
  12685. while True:
  12686. (fname, ftype, fid) = iprot.readFieldBegin()
  12687. if ftype == TType.STOP:
  12688. break
  12689. if fid == 1:
  12690. if ftype == TType.STRUCT:
  12691. self.o1 = NoSuchObjectException()
  12692. self.o1.read(iprot)
  12693. else:
  12694. iprot.skip(ftype)
  12695. elif fid == 2:
  12696. if ftype == TType.STRUCT:
  12697. self.o3 = MetaException()
  12698. self.o3.read(iprot)
  12699. else:
  12700. iprot.skip(ftype)
  12701. else:
  12702. iprot.skip(ftype)
  12703. iprot.readFieldEnd()
  12704. iprot.readStructEnd()
  12705. def write(self, oprot):
  12706. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12707. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12708. return
  12709. oprot.writeStructBegin('drop_constraint_result')
  12710. if self.o1 is not None:
  12711. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12712. self.o1.write(oprot)
  12713. oprot.writeFieldEnd()
  12714. if self.o3 is not None:
  12715. oprot.writeFieldBegin('o3', TType.STRUCT, 2)
  12716. self.o3.write(oprot)
  12717. oprot.writeFieldEnd()
  12718. oprot.writeFieldStop()
  12719. oprot.writeStructEnd()
  12720. def validate(self):
  12721. return
  12722. def __hash__(self):
  12723. value = 17
  12724. value = (value * 31) ^ hash(self.o1)
  12725. value = (value * 31) ^ hash(self.o3)
  12726. return value
  12727. def __repr__(self):
  12728. L = ['%s=%r' % (key, value)
  12729. for key, value in self.__dict__.iteritems()]
  12730. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12731. def __eq__(self, other):
  12732. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12733. def __ne__(self, other):
  12734. return not (self == other)
  12735. class add_primary_key_args(object):
  12736. """
  12737. Attributes:
  12738. - req
  12739. """
  12740. thrift_spec = (
  12741. None, # 0
  12742. (1, TType.STRUCT, 'req', (AddPrimaryKeyRequest, AddPrimaryKeyRequest.thrift_spec), None, ), # 1
  12743. )
  12744. def __init__(self, req=None,):
  12745. self.req = req
  12746. def read(self, iprot):
  12747. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12748. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12749. return
  12750. iprot.readStructBegin()
  12751. while True:
  12752. (fname, ftype, fid) = iprot.readFieldBegin()
  12753. if ftype == TType.STOP:
  12754. break
  12755. if fid == 1:
  12756. if ftype == TType.STRUCT:
  12757. self.req = AddPrimaryKeyRequest()
  12758. self.req.read(iprot)
  12759. else:
  12760. iprot.skip(ftype)
  12761. else:
  12762. iprot.skip(ftype)
  12763. iprot.readFieldEnd()
  12764. iprot.readStructEnd()
  12765. def write(self, oprot):
  12766. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12767. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12768. return
  12769. oprot.writeStructBegin('add_primary_key_args')
  12770. if self.req is not None:
  12771. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  12772. self.req.write(oprot)
  12773. oprot.writeFieldEnd()
  12774. oprot.writeFieldStop()
  12775. oprot.writeStructEnd()
  12776. def validate(self):
  12777. return
  12778. def __hash__(self):
  12779. value = 17
  12780. value = (value * 31) ^ hash(self.req)
  12781. return value
  12782. def __repr__(self):
  12783. L = ['%s=%r' % (key, value)
  12784. for key, value in self.__dict__.iteritems()]
  12785. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12786. def __eq__(self, other):
  12787. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12788. def __ne__(self, other):
  12789. return not (self == other)
  12790. class add_primary_key_result(object):
  12791. """
  12792. Attributes:
  12793. - o1
  12794. - o2
  12795. """
  12796. thrift_spec = (
  12797. None, # 0
  12798. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  12799. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  12800. )
  12801. def __init__(self, o1=None, o2=None,):
  12802. self.o1 = o1
  12803. self.o2 = o2
  12804. def read(self, iprot):
  12805. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12806. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12807. return
  12808. iprot.readStructBegin()
  12809. while True:
  12810. (fname, ftype, fid) = iprot.readFieldBegin()
  12811. if ftype == TType.STOP:
  12812. break
  12813. if fid == 1:
  12814. if ftype == TType.STRUCT:
  12815. self.o1 = NoSuchObjectException()
  12816. self.o1.read(iprot)
  12817. else:
  12818. iprot.skip(ftype)
  12819. elif fid == 2:
  12820. if ftype == TType.STRUCT:
  12821. self.o2 = MetaException()
  12822. self.o2.read(iprot)
  12823. else:
  12824. iprot.skip(ftype)
  12825. else:
  12826. iprot.skip(ftype)
  12827. iprot.readFieldEnd()
  12828. iprot.readStructEnd()
  12829. def write(self, oprot):
  12830. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12831. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12832. return
  12833. oprot.writeStructBegin('add_primary_key_result')
  12834. if self.o1 is not None:
  12835. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12836. self.o1.write(oprot)
  12837. oprot.writeFieldEnd()
  12838. if self.o2 is not None:
  12839. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  12840. self.o2.write(oprot)
  12841. oprot.writeFieldEnd()
  12842. oprot.writeFieldStop()
  12843. oprot.writeStructEnd()
  12844. def validate(self):
  12845. return
  12846. def __hash__(self):
  12847. value = 17
  12848. value = (value * 31) ^ hash(self.o1)
  12849. value = (value * 31) ^ hash(self.o2)
  12850. return value
  12851. def __repr__(self):
  12852. L = ['%s=%r' % (key, value)
  12853. for key, value in self.__dict__.iteritems()]
  12854. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12855. def __eq__(self, other):
  12856. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12857. def __ne__(self, other):
  12858. return not (self == other)
  12859. class add_foreign_key_args(object):
  12860. """
  12861. Attributes:
  12862. - req
  12863. """
  12864. thrift_spec = (
  12865. None, # 0
  12866. (1, TType.STRUCT, 'req', (AddForeignKeyRequest, AddForeignKeyRequest.thrift_spec), None, ), # 1
  12867. )
  12868. def __init__(self, req=None,):
  12869. self.req = req
  12870. def read(self, iprot):
  12871. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12872. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12873. return
  12874. iprot.readStructBegin()
  12875. while True:
  12876. (fname, ftype, fid) = iprot.readFieldBegin()
  12877. if ftype == TType.STOP:
  12878. break
  12879. if fid == 1:
  12880. if ftype == TType.STRUCT:
  12881. self.req = AddForeignKeyRequest()
  12882. self.req.read(iprot)
  12883. else:
  12884. iprot.skip(ftype)
  12885. else:
  12886. iprot.skip(ftype)
  12887. iprot.readFieldEnd()
  12888. iprot.readStructEnd()
  12889. def write(self, oprot):
  12890. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12891. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12892. return
  12893. oprot.writeStructBegin('add_foreign_key_args')
  12894. if self.req is not None:
  12895. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  12896. self.req.write(oprot)
  12897. oprot.writeFieldEnd()
  12898. oprot.writeFieldStop()
  12899. oprot.writeStructEnd()
  12900. def validate(self):
  12901. return
  12902. def __hash__(self):
  12903. value = 17
  12904. value = (value * 31) ^ hash(self.req)
  12905. return value
  12906. def __repr__(self):
  12907. L = ['%s=%r' % (key, value)
  12908. for key, value in self.__dict__.iteritems()]
  12909. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12910. def __eq__(self, other):
  12911. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12912. def __ne__(self, other):
  12913. return not (self == other)
  12914. class add_foreign_key_result(object):
  12915. """
  12916. Attributes:
  12917. - o1
  12918. - o2
  12919. """
  12920. thrift_spec = (
  12921. None, # 0
  12922. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  12923. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  12924. )
  12925. def __init__(self, o1=None, o2=None,):
  12926. self.o1 = o1
  12927. self.o2 = o2
  12928. def read(self, iprot):
  12929. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  12930. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  12931. return
  12932. iprot.readStructBegin()
  12933. while True:
  12934. (fname, ftype, fid) = iprot.readFieldBegin()
  12935. if ftype == TType.STOP:
  12936. break
  12937. if fid == 1:
  12938. if ftype == TType.STRUCT:
  12939. self.o1 = NoSuchObjectException()
  12940. self.o1.read(iprot)
  12941. else:
  12942. iprot.skip(ftype)
  12943. elif fid == 2:
  12944. if ftype == TType.STRUCT:
  12945. self.o2 = MetaException()
  12946. self.o2.read(iprot)
  12947. else:
  12948. iprot.skip(ftype)
  12949. else:
  12950. iprot.skip(ftype)
  12951. iprot.readFieldEnd()
  12952. iprot.readStructEnd()
  12953. def write(self, oprot):
  12954. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  12955. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  12956. return
  12957. oprot.writeStructBegin('add_foreign_key_result')
  12958. if self.o1 is not None:
  12959. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12960. self.o1.write(oprot)
  12961. oprot.writeFieldEnd()
  12962. if self.o2 is not None:
  12963. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  12964. self.o2.write(oprot)
  12965. oprot.writeFieldEnd()
  12966. oprot.writeFieldStop()
  12967. oprot.writeStructEnd()
  12968. def validate(self):
  12969. return
  12970. def __hash__(self):
  12971. value = 17
  12972. value = (value * 31) ^ hash(self.o1)
  12973. value = (value * 31) ^ hash(self.o2)
  12974. return value
  12975. def __repr__(self):
  12976. L = ['%s=%r' % (key, value)
  12977. for key, value in self.__dict__.iteritems()]
  12978. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12979. def __eq__(self, other):
  12980. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12981. def __ne__(self, other):
  12982. return not (self == other)
  12983. class drop_table_args(object):
  12984. """
  12985. Attributes:
  12986. - dbname
  12987. - name
  12988. - deleteData
  12989. """
  12990. thrift_spec = (
  12991. None, # 0
  12992. (1, TType.STRING, 'dbname', None, None, ), # 1
  12993. (2, TType.STRING, 'name', None, None, ), # 2
  12994. (3, TType.BOOL, 'deleteData', None, None, ), # 3
  12995. )
  12996. def __init__(self, dbname=None, name=None, deleteData=None,):
  12997. self.dbname = dbname
  12998. self.name = name
  12999. self.deleteData = deleteData
  13000. def read(self, iprot):
  13001. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13002. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13003. return
  13004. iprot.readStructBegin()
  13005. while True:
  13006. (fname, ftype, fid) = iprot.readFieldBegin()
  13007. if ftype == TType.STOP:
  13008. break
  13009. if fid == 1:
  13010. if ftype == TType.STRING:
  13011. self.dbname = iprot.readString()
  13012. else:
  13013. iprot.skip(ftype)
  13014. elif fid == 2:
  13015. if ftype == TType.STRING:
  13016. self.name = iprot.readString()
  13017. else:
  13018. iprot.skip(ftype)
  13019. elif fid == 3:
  13020. if ftype == TType.BOOL:
  13021. self.deleteData = iprot.readBool()
  13022. else:
  13023. iprot.skip(ftype)
  13024. else:
  13025. iprot.skip(ftype)
  13026. iprot.readFieldEnd()
  13027. iprot.readStructEnd()
  13028. def write(self, oprot):
  13029. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13030. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13031. return
  13032. oprot.writeStructBegin('drop_table_args')
  13033. if self.dbname is not None:
  13034. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  13035. oprot.writeString(self.dbname)
  13036. oprot.writeFieldEnd()
  13037. if self.name is not None:
  13038. oprot.writeFieldBegin('name', TType.STRING, 2)
  13039. oprot.writeString(self.name)
  13040. oprot.writeFieldEnd()
  13041. if self.deleteData is not None:
  13042. oprot.writeFieldBegin('deleteData', TType.BOOL, 3)
  13043. oprot.writeBool(self.deleteData)
  13044. oprot.writeFieldEnd()
  13045. oprot.writeFieldStop()
  13046. oprot.writeStructEnd()
  13047. def validate(self):
  13048. return
  13049. def __hash__(self):
  13050. value = 17
  13051. value = (value * 31) ^ hash(self.dbname)
  13052. value = (value * 31) ^ hash(self.name)
  13053. value = (value * 31) ^ hash(self.deleteData)
  13054. return value
  13055. def __repr__(self):
  13056. L = ['%s=%r' % (key, value)
  13057. for key, value in self.__dict__.iteritems()]
  13058. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13059. def __eq__(self, other):
  13060. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13061. def __ne__(self, other):
  13062. return not (self == other)
  13063. class drop_table_result(object):
  13064. """
  13065. Attributes:
  13066. - o1
  13067. - o3
  13068. """
  13069. thrift_spec = (
  13070. None, # 0
  13071. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  13072. (2, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 2
  13073. )
  13074. def __init__(self, o1=None, o3=None,):
  13075. self.o1 = o1
  13076. self.o3 = o3
  13077. def read(self, iprot):
  13078. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13079. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13080. return
  13081. iprot.readStructBegin()
  13082. while True:
  13083. (fname, ftype, fid) = iprot.readFieldBegin()
  13084. if ftype == TType.STOP:
  13085. break
  13086. if fid == 1:
  13087. if ftype == TType.STRUCT:
  13088. self.o1 = NoSuchObjectException()
  13089. self.o1.read(iprot)
  13090. else:
  13091. iprot.skip(ftype)
  13092. elif fid == 2:
  13093. if ftype == TType.STRUCT:
  13094. self.o3 = MetaException()
  13095. self.o3.read(iprot)
  13096. else:
  13097. iprot.skip(ftype)
  13098. else:
  13099. iprot.skip(ftype)
  13100. iprot.readFieldEnd()
  13101. iprot.readStructEnd()
  13102. def write(self, oprot):
  13103. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13104. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13105. return
  13106. oprot.writeStructBegin('drop_table_result')
  13107. if self.o1 is not None:
  13108. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13109. self.o1.write(oprot)
  13110. oprot.writeFieldEnd()
  13111. if self.o3 is not None:
  13112. oprot.writeFieldBegin('o3', TType.STRUCT, 2)
  13113. self.o3.write(oprot)
  13114. oprot.writeFieldEnd()
  13115. oprot.writeFieldStop()
  13116. oprot.writeStructEnd()
  13117. def validate(self):
  13118. return
  13119. def __hash__(self):
  13120. value = 17
  13121. value = (value * 31) ^ hash(self.o1)
  13122. value = (value * 31) ^ hash(self.o3)
  13123. return value
  13124. def __repr__(self):
  13125. L = ['%s=%r' % (key, value)
  13126. for key, value in self.__dict__.iteritems()]
  13127. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13128. def __eq__(self, other):
  13129. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13130. def __ne__(self, other):
  13131. return not (self == other)
  13132. class drop_table_with_environment_context_args(object):
  13133. """
  13134. Attributes:
  13135. - dbname
  13136. - name
  13137. - deleteData
  13138. - environment_context
  13139. """
  13140. thrift_spec = (
  13141. None, # 0
  13142. (1, TType.STRING, 'dbname', None, None, ), # 1
  13143. (2, TType.STRING, 'name', None, None, ), # 2
  13144. (3, TType.BOOL, 'deleteData', None, None, ), # 3
  13145. (4, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 4
  13146. )
  13147. def __init__(self, dbname=None, name=None, deleteData=None, environment_context=None,):
  13148. self.dbname = dbname
  13149. self.name = name
  13150. self.deleteData = deleteData
  13151. self.environment_context = environment_context
  13152. def read(self, iprot):
  13153. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13154. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13155. return
  13156. iprot.readStructBegin()
  13157. while True:
  13158. (fname, ftype, fid) = iprot.readFieldBegin()
  13159. if ftype == TType.STOP:
  13160. break
  13161. if fid == 1:
  13162. if ftype == TType.STRING:
  13163. self.dbname = iprot.readString()
  13164. else:
  13165. iprot.skip(ftype)
  13166. elif fid == 2:
  13167. if ftype == TType.STRING:
  13168. self.name = iprot.readString()
  13169. else:
  13170. iprot.skip(ftype)
  13171. elif fid == 3:
  13172. if ftype == TType.BOOL:
  13173. self.deleteData = iprot.readBool()
  13174. else:
  13175. iprot.skip(ftype)
  13176. elif fid == 4:
  13177. if ftype == TType.STRUCT:
  13178. self.environment_context = EnvironmentContext()
  13179. self.environment_context.read(iprot)
  13180. else:
  13181. iprot.skip(ftype)
  13182. else:
  13183. iprot.skip(ftype)
  13184. iprot.readFieldEnd()
  13185. iprot.readStructEnd()
  13186. def write(self, oprot):
  13187. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13188. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13189. return
  13190. oprot.writeStructBegin('drop_table_with_environment_context_args')
  13191. if self.dbname is not None:
  13192. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  13193. oprot.writeString(self.dbname)
  13194. oprot.writeFieldEnd()
  13195. if self.name is not None:
  13196. oprot.writeFieldBegin('name', TType.STRING, 2)
  13197. oprot.writeString(self.name)
  13198. oprot.writeFieldEnd()
  13199. if self.deleteData is not None:
  13200. oprot.writeFieldBegin('deleteData', TType.BOOL, 3)
  13201. oprot.writeBool(self.deleteData)
  13202. oprot.writeFieldEnd()
  13203. if self.environment_context is not None:
  13204. oprot.writeFieldBegin('environment_context', TType.STRUCT, 4)
  13205. self.environment_context.write(oprot)
  13206. oprot.writeFieldEnd()
  13207. oprot.writeFieldStop()
  13208. oprot.writeStructEnd()
  13209. def validate(self):
  13210. return
  13211. def __hash__(self):
  13212. value = 17
  13213. value = (value * 31) ^ hash(self.dbname)
  13214. value = (value * 31) ^ hash(self.name)
  13215. value = (value * 31) ^ hash(self.deleteData)
  13216. value = (value * 31) ^ hash(self.environment_context)
  13217. return value
  13218. def __repr__(self):
  13219. L = ['%s=%r' % (key, value)
  13220. for key, value in self.__dict__.iteritems()]
  13221. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13222. def __eq__(self, other):
  13223. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13224. def __ne__(self, other):
  13225. return not (self == other)
  13226. class drop_table_with_environment_context_result(object):
  13227. """
  13228. Attributes:
  13229. - o1
  13230. - o3
  13231. """
  13232. thrift_spec = (
  13233. None, # 0
  13234. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  13235. (2, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 2
  13236. )
  13237. def __init__(self, o1=None, o3=None,):
  13238. self.o1 = o1
  13239. self.o3 = o3
  13240. def read(self, iprot):
  13241. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13242. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13243. return
  13244. iprot.readStructBegin()
  13245. while True:
  13246. (fname, ftype, fid) = iprot.readFieldBegin()
  13247. if ftype == TType.STOP:
  13248. break
  13249. if fid == 1:
  13250. if ftype == TType.STRUCT:
  13251. self.o1 = NoSuchObjectException()
  13252. self.o1.read(iprot)
  13253. else:
  13254. iprot.skip(ftype)
  13255. elif fid == 2:
  13256. if ftype == TType.STRUCT:
  13257. self.o3 = MetaException()
  13258. self.o3.read(iprot)
  13259. else:
  13260. iprot.skip(ftype)
  13261. else:
  13262. iprot.skip(ftype)
  13263. iprot.readFieldEnd()
  13264. iprot.readStructEnd()
  13265. def write(self, oprot):
  13266. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13267. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13268. return
  13269. oprot.writeStructBegin('drop_table_with_environment_context_result')
  13270. if self.o1 is not None:
  13271. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13272. self.o1.write(oprot)
  13273. oprot.writeFieldEnd()
  13274. if self.o3 is not None:
  13275. oprot.writeFieldBegin('o3', TType.STRUCT, 2)
  13276. self.o3.write(oprot)
  13277. oprot.writeFieldEnd()
  13278. oprot.writeFieldStop()
  13279. oprot.writeStructEnd()
  13280. def validate(self):
  13281. return
  13282. def __hash__(self):
  13283. value = 17
  13284. value = (value * 31) ^ hash(self.o1)
  13285. value = (value * 31) ^ hash(self.o3)
  13286. return value
  13287. def __repr__(self):
  13288. L = ['%s=%r' % (key, value)
  13289. for key, value in self.__dict__.iteritems()]
  13290. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13291. def __eq__(self, other):
  13292. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13293. def __ne__(self, other):
  13294. return not (self == other)
  13295. class get_tables_args(object):
  13296. """
  13297. Attributes:
  13298. - db_name
  13299. - pattern
  13300. """
  13301. thrift_spec = (
  13302. None, # 0
  13303. (1, TType.STRING, 'db_name', None, None, ), # 1
  13304. (2, TType.STRING, 'pattern', None, None, ), # 2
  13305. )
  13306. def __init__(self, db_name=None, pattern=None,):
  13307. self.db_name = db_name
  13308. self.pattern = pattern
  13309. def read(self, iprot):
  13310. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13311. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13312. return
  13313. iprot.readStructBegin()
  13314. while True:
  13315. (fname, ftype, fid) = iprot.readFieldBegin()
  13316. if ftype == TType.STOP:
  13317. break
  13318. if fid == 1:
  13319. if ftype == TType.STRING:
  13320. self.db_name = iprot.readString()
  13321. else:
  13322. iprot.skip(ftype)
  13323. elif fid == 2:
  13324. if ftype == TType.STRING:
  13325. self.pattern = iprot.readString()
  13326. else:
  13327. iprot.skip(ftype)
  13328. else:
  13329. iprot.skip(ftype)
  13330. iprot.readFieldEnd()
  13331. iprot.readStructEnd()
  13332. def write(self, oprot):
  13333. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13334. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13335. return
  13336. oprot.writeStructBegin('get_tables_args')
  13337. if self.db_name is not None:
  13338. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  13339. oprot.writeString(self.db_name)
  13340. oprot.writeFieldEnd()
  13341. if self.pattern is not None:
  13342. oprot.writeFieldBegin('pattern', TType.STRING, 2)
  13343. oprot.writeString(self.pattern)
  13344. oprot.writeFieldEnd()
  13345. oprot.writeFieldStop()
  13346. oprot.writeStructEnd()
  13347. def validate(self):
  13348. return
  13349. def __hash__(self):
  13350. value = 17
  13351. value = (value * 31) ^ hash(self.db_name)
  13352. value = (value * 31) ^ hash(self.pattern)
  13353. return value
  13354. def __repr__(self):
  13355. L = ['%s=%r' % (key, value)
  13356. for key, value in self.__dict__.iteritems()]
  13357. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13358. def __eq__(self, other):
  13359. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13360. def __ne__(self, other):
  13361. return not (self == other)
  13362. class get_tables_result(object):
  13363. """
  13364. Attributes:
  13365. - success
  13366. - o1
  13367. """
  13368. thrift_spec = (
  13369. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  13370. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  13371. )
  13372. def __init__(self, success=None, o1=None,):
  13373. self.success = success
  13374. self.o1 = o1
  13375. def read(self, iprot):
  13376. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13377. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13378. return
  13379. iprot.readStructBegin()
  13380. while True:
  13381. (fname, ftype, fid) = iprot.readFieldBegin()
  13382. if ftype == TType.STOP:
  13383. break
  13384. if fid == 0:
  13385. if ftype == TType.LIST:
  13386. self.success = []
  13387. (_etype662, _size659) = iprot.readListBegin()
  13388. for _i663 in xrange(_size659):
  13389. _elem664 = iprot.readString()
  13390. self.success.append(_elem664)
  13391. iprot.readListEnd()
  13392. else:
  13393. iprot.skip(ftype)
  13394. elif fid == 1:
  13395. if ftype == TType.STRUCT:
  13396. self.o1 = MetaException()
  13397. self.o1.read(iprot)
  13398. else:
  13399. iprot.skip(ftype)
  13400. else:
  13401. iprot.skip(ftype)
  13402. iprot.readFieldEnd()
  13403. iprot.readStructEnd()
  13404. def write(self, oprot):
  13405. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13406. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13407. return
  13408. oprot.writeStructBegin('get_tables_result')
  13409. if self.success is not None:
  13410. oprot.writeFieldBegin('success', TType.LIST, 0)
  13411. oprot.writeListBegin(TType.STRING, len(self.success))
  13412. for iter665 in self.success:
  13413. oprot.writeString(iter665)
  13414. oprot.writeListEnd()
  13415. oprot.writeFieldEnd()
  13416. if self.o1 is not None:
  13417. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13418. self.o1.write(oprot)
  13419. oprot.writeFieldEnd()
  13420. oprot.writeFieldStop()
  13421. oprot.writeStructEnd()
  13422. def validate(self):
  13423. return
  13424. def __hash__(self):
  13425. value = 17
  13426. value = (value * 31) ^ hash(self.success)
  13427. value = (value * 31) ^ hash(self.o1)
  13428. return value
  13429. def __repr__(self):
  13430. L = ['%s=%r' % (key, value)
  13431. for key, value in self.__dict__.iteritems()]
  13432. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13433. def __eq__(self, other):
  13434. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13435. def __ne__(self, other):
  13436. return not (self == other)
  13437. class get_table_meta_args(object):
  13438. """
  13439. Attributes:
  13440. - db_patterns
  13441. - tbl_patterns
  13442. - tbl_types
  13443. """
  13444. thrift_spec = (
  13445. None, # 0
  13446. (1, TType.STRING, 'db_patterns', None, None, ), # 1
  13447. (2, TType.STRING, 'tbl_patterns', None, None, ), # 2
  13448. (3, TType.LIST, 'tbl_types', (TType.STRING,None), None, ), # 3
  13449. )
  13450. def __init__(self, db_patterns=None, tbl_patterns=None, tbl_types=None,):
  13451. self.db_patterns = db_patterns
  13452. self.tbl_patterns = tbl_patterns
  13453. self.tbl_types = tbl_types
  13454. def read(self, iprot):
  13455. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13456. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13457. return
  13458. iprot.readStructBegin()
  13459. while True:
  13460. (fname, ftype, fid) = iprot.readFieldBegin()
  13461. if ftype == TType.STOP:
  13462. break
  13463. if fid == 1:
  13464. if ftype == TType.STRING:
  13465. self.db_patterns = iprot.readString()
  13466. else:
  13467. iprot.skip(ftype)
  13468. elif fid == 2:
  13469. if ftype == TType.STRING:
  13470. self.tbl_patterns = iprot.readString()
  13471. else:
  13472. iprot.skip(ftype)
  13473. elif fid == 3:
  13474. if ftype == TType.LIST:
  13475. self.tbl_types = []
  13476. (_etype669, _size666) = iprot.readListBegin()
  13477. for _i670 in xrange(_size666):
  13478. _elem671 = iprot.readString()
  13479. self.tbl_types.append(_elem671)
  13480. iprot.readListEnd()
  13481. else:
  13482. iprot.skip(ftype)
  13483. else:
  13484. iprot.skip(ftype)
  13485. iprot.readFieldEnd()
  13486. iprot.readStructEnd()
  13487. def write(self, oprot):
  13488. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13489. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13490. return
  13491. oprot.writeStructBegin('get_table_meta_args')
  13492. if self.db_patterns is not None:
  13493. oprot.writeFieldBegin('db_patterns', TType.STRING, 1)
  13494. oprot.writeString(self.db_patterns)
  13495. oprot.writeFieldEnd()
  13496. if self.tbl_patterns is not None:
  13497. oprot.writeFieldBegin('tbl_patterns', TType.STRING, 2)
  13498. oprot.writeString(self.tbl_patterns)
  13499. oprot.writeFieldEnd()
  13500. if self.tbl_types is not None:
  13501. oprot.writeFieldBegin('tbl_types', TType.LIST, 3)
  13502. oprot.writeListBegin(TType.STRING, len(self.tbl_types))
  13503. for iter672 in self.tbl_types:
  13504. oprot.writeString(iter672)
  13505. oprot.writeListEnd()
  13506. oprot.writeFieldEnd()
  13507. oprot.writeFieldStop()
  13508. oprot.writeStructEnd()
  13509. def validate(self):
  13510. return
  13511. def __hash__(self):
  13512. value = 17
  13513. value = (value * 31) ^ hash(self.db_patterns)
  13514. value = (value * 31) ^ hash(self.tbl_patterns)
  13515. value = (value * 31) ^ hash(self.tbl_types)
  13516. return value
  13517. def __repr__(self):
  13518. L = ['%s=%r' % (key, value)
  13519. for key, value in self.__dict__.iteritems()]
  13520. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13521. def __eq__(self, other):
  13522. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13523. def __ne__(self, other):
  13524. return not (self == other)
  13525. class get_table_meta_result(object):
  13526. """
  13527. Attributes:
  13528. - success
  13529. - o1
  13530. """
  13531. thrift_spec = (
  13532. (0, TType.LIST, 'success', (TType.STRUCT,(TableMeta, TableMeta.thrift_spec)), None, ), # 0
  13533. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  13534. )
  13535. def __init__(self, success=None, o1=None,):
  13536. self.success = success
  13537. self.o1 = o1
  13538. def read(self, iprot):
  13539. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13540. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13541. return
  13542. iprot.readStructBegin()
  13543. while True:
  13544. (fname, ftype, fid) = iprot.readFieldBegin()
  13545. if ftype == TType.STOP:
  13546. break
  13547. if fid == 0:
  13548. if ftype == TType.LIST:
  13549. self.success = []
  13550. (_etype676, _size673) = iprot.readListBegin()
  13551. for _i677 in xrange(_size673):
  13552. _elem678 = TableMeta()
  13553. _elem678.read(iprot)
  13554. self.success.append(_elem678)
  13555. iprot.readListEnd()
  13556. else:
  13557. iprot.skip(ftype)
  13558. elif fid == 1:
  13559. if ftype == TType.STRUCT:
  13560. self.o1 = MetaException()
  13561. self.o1.read(iprot)
  13562. else:
  13563. iprot.skip(ftype)
  13564. else:
  13565. iprot.skip(ftype)
  13566. iprot.readFieldEnd()
  13567. iprot.readStructEnd()
  13568. def write(self, oprot):
  13569. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13570. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13571. return
  13572. oprot.writeStructBegin('get_table_meta_result')
  13573. if self.success is not None:
  13574. oprot.writeFieldBegin('success', TType.LIST, 0)
  13575. oprot.writeListBegin(TType.STRUCT, len(self.success))
  13576. for iter679 in self.success:
  13577. iter679.write(oprot)
  13578. oprot.writeListEnd()
  13579. oprot.writeFieldEnd()
  13580. if self.o1 is not None:
  13581. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13582. self.o1.write(oprot)
  13583. oprot.writeFieldEnd()
  13584. oprot.writeFieldStop()
  13585. oprot.writeStructEnd()
  13586. def validate(self):
  13587. return
  13588. def __hash__(self):
  13589. value = 17
  13590. value = (value * 31) ^ hash(self.success)
  13591. value = (value * 31) ^ hash(self.o1)
  13592. return value
  13593. def __repr__(self):
  13594. L = ['%s=%r' % (key, value)
  13595. for key, value in self.__dict__.iteritems()]
  13596. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13597. def __eq__(self, other):
  13598. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13599. def __ne__(self, other):
  13600. return not (self == other)
  13601. class get_all_tables_args(object):
  13602. """
  13603. Attributes:
  13604. - db_name
  13605. """
  13606. thrift_spec = (
  13607. None, # 0
  13608. (1, TType.STRING, 'db_name', None, None, ), # 1
  13609. )
  13610. def __init__(self, db_name=None,):
  13611. self.db_name = db_name
  13612. def read(self, iprot):
  13613. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13614. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13615. return
  13616. iprot.readStructBegin()
  13617. while True:
  13618. (fname, ftype, fid) = iprot.readFieldBegin()
  13619. if ftype == TType.STOP:
  13620. break
  13621. if fid == 1:
  13622. if ftype == TType.STRING:
  13623. self.db_name = iprot.readString()
  13624. else:
  13625. iprot.skip(ftype)
  13626. else:
  13627. iprot.skip(ftype)
  13628. iprot.readFieldEnd()
  13629. iprot.readStructEnd()
  13630. def write(self, oprot):
  13631. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13632. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13633. return
  13634. oprot.writeStructBegin('get_all_tables_args')
  13635. if self.db_name is not None:
  13636. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  13637. oprot.writeString(self.db_name)
  13638. oprot.writeFieldEnd()
  13639. oprot.writeFieldStop()
  13640. oprot.writeStructEnd()
  13641. def validate(self):
  13642. return
  13643. def __hash__(self):
  13644. value = 17
  13645. value = (value * 31) ^ hash(self.db_name)
  13646. return value
  13647. def __repr__(self):
  13648. L = ['%s=%r' % (key, value)
  13649. for key, value in self.__dict__.iteritems()]
  13650. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13651. def __eq__(self, other):
  13652. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13653. def __ne__(self, other):
  13654. return not (self == other)
  13655. class get_all_tables_result(object):
  13656. """
  13657. Attributes:
  13658. - success
  13659. - o1
  13660. """
  13661. thrift_spec = (
  13662. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  13663. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  13664. )
  13665. def __init__(self, success=None, o1=None,):
  13666. self.success = success
  13667. self.o1 = o1
  13668. def read(self, iprot):
  13669. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13670. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13671. return
  13672. iprot.readStructBegin()
  13673. while True:
  13674. (fname, ftype, fid) = iprot.readFieldBegin()
  13675. if ftype == TType.STOP:
  13676. break
  13677. if fid == 0:
  13678. if ftype == TType.LIST:
  13679. self.success = []
  13680. (_etype683, _size680) = iprot.readListBegin()
  13681. for _i684 in xrange(_size680):
  13682. _elem685 = iprot.readString()
  13683. self.success.append(_elem685)
  13684. iprot.readListEnd()
  13685. else:
  13686. iprot.skip(ftype)
  13687. elif fid == 1:
  13688. if ftype == TType.STRUCT:
  13689. self.o1 = MetaException()
  13690. self.o1.read(iprot)
  13691. else:
  13692. iprot.skip(ftype)
  13693. else:
  13694. iprot.skip(ftype)
  13695. iprot.readFieldEnd()
  13696. iprot.readStructEnd()
  13697. def write(self, oprot):
  13698. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13699. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13700. return
  13701. oprot.writeStructBegin('get_all_tables_result')
  13702. if self.success is not None:
  13703. oprot.writeFieldBegin('success', TType.LIST, 0)
  13704. oprot.writeListBegin(TType.STRING, len(self.success))
  13705. for iter686 in self.success:
  13706. oprot.writeString(iter686)
  13707. oprot.writeListEnd()
  13708. oprot.writeFieldEnd()
  13709. if self.o1 is not None:
  13710. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13711. self.o1.write(oprot)
  13712. oprot.writeFieldEnd()
  13713. oprot.writeFieldStop()
  13714. oprot.writeStructEnd()
  13715. def validate(self):
  13716. return
  13717. def __hash__(self):
  13718. value = 17
  13719. value = (value * 31) ^ hash(self.success)
  13720. value = (value * 31) ^ hash(self.o1)
  13721. return value
  13722. def __repr__(self):
  13723. L = ['%s=%r' % (key, value)
  13724. for key, value in self.__dict__.iteritems()]
  13725. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13726. def __eq__(self, other):
  13727. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13728. def __ne__(self, other):
  13729. return not (self == other)
  13730. class get_table_args(object):
  13731. """
  13732. Attributes:
  13733. - dbname
  13734. - tbl_name
  13735. """
  13736. thrift_spec = (
  13737. None, # 0
  13738. (1, TType.STRING, 'dbname', None, None, ), # 1
  13739. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  13740. )
  13741. def __init__(self, dbname=None, tbl_name=None,):
  13742. self.dbname = dbname
  13743. self.tbl_name = tbl_name
  13744. def read(self, iprot):
  13745. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13746. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13747. return
  13748. iprot.readStructBegin()
  13749. while True:
  13750. (fname, ftype, fid) = iprot.readFieldBegin()
  13751. if ftype == TType.STOP:
  13752. break
  13753. if fid == 1:
  13754. if ftype == TType.STRING:
  13755. self.dbname = iprot.readString()
  13756. else:
  13757. iprot.skip(ftype)
  13758. elif fid == 2:
  13759. if ftype == TType.STRING:
  13760. self.tbl_name = iprot.readString()
  13761. else:
  13762. iprot.skip(ftype)
  13763. else:
  13764. iprot.skip(ftype)
  13765. iprot.readFieldEnd()
  13766. iprot.readStructEnd()
  13767. def write(self, oprot):
  13768. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13769. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13770. return
  13771. oprot.writeStructBegin('get_table_args')
  13772. if self.dbname is not None:
  13773. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  13774. oprot.writeString(self.dbname)
  13775. oprot.writeFieldEnd()
  13776. if self.tbl_name is not None:
  13777. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  13778. oprot.writeString(self.tbl_name)
  13779. oprot.writeFieldEnd()
  13780. oprot.writeFieldStop()
  13781. oprot.writeStructEnd()
  13782. def validate(self):
  13783. return
  13784. def __hash__(self):
  13785. value = 17
  13786. value = (value * 31) ^ hash(self.dbname)
  13787. value = (value * 31) ^ hash(self.tbl_name)
  13788. return value
  13789. def __repr__(self):
  13790. L = ['%s=%r' % (key, value)
  13791. for key, value in self.__dict__.iteritems()]
  13792. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13793. def __eq__(self, other):
  13794. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13795. def __ne__(self, other):
  13796. return not (self == other)
  13797. class get_table_result(object):
  13798. """
  13799. Attributes:
  13800. - success
  13801. - o1
  13802. - o2
  13803. """
  13804. thrift_spec = (
  13805. (0, TType.STRUCT, 'success', (Table, Table.thrift_spec), None, ), # 0
  13806. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  13807. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  13808. )
  13809. def __init__(self, success=None, o1=None, o2=None,):
  13810. self.success = success
  13811. self.o1 = o1
  13812. self.o2 = o2
  13813. def read(self, iprot):
  13814. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13815. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13816. return
  13817. iprot.readStructBegin()
  13818. while True:
  13819. (fname, ftype, fid) = iprot.readFieldBegin()
  13820. if ftype == TType.STOP:
  13821. break
  13822. if fid == 0:
  13823. if ftype == TType.STRUCT:
  13824. self.success = Table()
  13825. self.success.read(iprot)
  13826. else:
  13827. iprot.skip(ftype)
  13828. elif fid == 1:
  13829. if ftype == TType.STRUCT:
  13830. self.o1 = MetaException()
  13831. self.o1.read(iprot)
  13832. else:
  13833. iprot.skip(ftype)
  13834. elif fid == 2:
  13835. if ftype == TType.STRUCT:
  13836. self.o2 = NoSuchObjectException()
  13837. self.o2.read(iprot)
  13838. else:
  13839. iprot.skip(ftype)
  13840. else:
  13841. iprot.skip(ftype)
  13842. iprot.readFieldEnd()
  13843. iprot.readStructEnd()
  13844. def write(self, oprot):
  13845. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13846. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13847. return
  13848. oprot.writeStructBegin('get_table_result')
  13849. if self.success is not None:
  13850. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  13851. self.success.write(oprot)
  13852. oprot.writeFieldEnd()
  13853. if self.o1 is not None:
  13854. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13855. self.o1.write(oprot)
  13856. oprot.writeFieldEnd()
  13857. if self.o2 is not None:
  13858. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  13859. self.o2.write(oprot)
  13860. oprot.writeFieldEnd()
  13861. oprot.writeFieldStop()
  13862. oprot.writeStructEnd()
  13863. def validate(self):
  13864. return
  13865. def __hash__(self):
  13866. value = 17
  13867. value = (value * 31) ^ hash(self.success)
  13868. value = (value * 31) ^ hash(self.o1)
  13869. value = (value * 31) ^ hash(self.o2)
  13870. return value
  13871. def __repr__(self):
  13872. L = ['%s=%r' % (key, value)
  13873. for key, value in self.__dict__.iteritems()]
  13874. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13875. def __eq__(self, other):
  13876. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13877. def __ne__(self, other):
  13878. return not (self == other)
  13879. class get_table_objects_by_name_args(object):
  13880. """
  13881. Attributes:
  13882. - dbname
  13883. - tbl_names
  13884. """
  13885. thrift_spec = (
  13886. None, # 0
  13887. (1, TType.STRING, 'dbname', None, None, ), # 1
  13888. (2, TType.LIST, 'tbl_names', (TType.STRING,None), None, ), # 2
  13889. )
  13890. def __init__(self, dbname=None, tbl_names=None,):
  13891. self.dbname = dbname
  13892. self.tbl_names = tbl_names
  13893. def read(self, iprot):
  13894. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13895. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13896. return
  13897. iprot.readStructBegin()
  13898. while True:
  13899. (fname, ftype, fid) = iprot.readFieldBegin()
  13900. if ftype == TType.STOP:
  13901. break
  13902. if fid == 1:
  13903. if ftype == TType.STRING:
  13904. self.dbname = iprot.readString()
  13905. else:
  13906. iprot.skip(ftype)
  13907. elif fid == 2:
  13908. if ftype == TType.LIST:
  13909. self.tbl_names = []
  13910. (_etype690, _size687) = iprot.readListBegin()
  13911. for _i691 in xrange(_size687):
  13912. _elem692 = iprot.readString()
  13913. self.tbl_names.append(_elem692)
  13914. iprot.readListEnd()
  13915. else:
  13916. iprot.skip(ftype)
  13917. else:
  13918. iprot.skip(ftype)
  13919. iprot.readFieldEnd()
  13920. iprot.readStructEnd()
  13921. def write(self, oprot):
  13922. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  13923. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  13924. return
  13925. oprot.writeStructBegin('get_table_objects_by_name_args')
  13926. if self.dbname is not None:
  13927. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  13928. oprot.writeString(self.dbname)
  13929. oprot.writeFieldEnd()
  13930. if self.tbl_names is not None:
  13931. oprot.writeFieldBegin('tbl_names', TType.LIST, 2)
  13932. oprot.writeListBegin(TType.STRING, len(self.tbl_names))
  13933. for iter693 in self.tbl_names:
  13934. oprot.writeString(iter693)
  13935. oprot.writeListEnd()
  13936. oprot.writeFieldEnd()
  13937. oprot.writeFieldStop()
  13938. oprot.writeStructEnd()
  13939. def validate(self):
  13940. return
  13941. def __hash__(self):
  13942. value = 17
  13943. value = (value * 31) ^ hash(self.dbname)
  13944. value = (value * 31) ^ hash(self.tbl_names)
  13945. return value
  13946. def __repr__(self):
  13947. L = ['%s=%r' % (key, value)
  13948. for key, value in self.__dict__.iteritems()]
  13949. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13950. def __eq__(self, other):
  13951. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13952. def __ne__(self, other):
  13953. return not (self == other)
  13954. class get_table_objects_by_name_result(object):
  13955. """
  13956. Attributes:
  13957. - success
  13958. - o1
  13959. - o2
  13960. - o3
  13961. """
  13962. thrift_spec = (
  13963. (0, TType.LIST, 'success', (TType.STRUCT,(Table, Table.thrift_spec)), None, ), # 0
  13964. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  13965. (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2
  13966. (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3
  13967. )
  13968. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  13969. self.success = success
  13970. self.o1 = o1
  13971. self.o2 = o2
  13972. self.o3 = o3
  13973. def read(self, iprot):
  13974. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  13975. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  13976. return
  13977. iprot.readStructBegin()
  13978. while True:
  13979. (fname, ftype, fid) = iprot.readFieldBegin()
  13980. if ftype == TType.STOP:
  13981. break
  13982. if fid == 0:
  13983. if ftype == TType.LIST:
  13984. self.success = []
  13985. (_etype697, _size694) = iprot.readListBegin()
  13986. for _i698 in xrange(_size694):
  13987. _elem699 = Table()
  13988. _elem699.read(iprot)
  13989. self.success.append(_elem699)
  13990. iprot.readListEnd()
  13991. else:
  13992. iprot.skip(ftype)
  13993. elif fid == 1:
  13994. if ftype == TType.STRUCT:
  13995. self.o1 = MetaException()
  13996. self.o1.read(iprot)
  13997. else:
  13998. iprot.skip(ftype)
  13999. elif fid == 2:
  14000. if ftype == TType.STRUCT:
  14001. self.o2 = InvalidOperationException()
  14002. self.o2.read(iprot)
  14003. else:
  14004. iprot.skip(ftype)
  14005. elif fid == 3:
  14006. if ftype == TType.STRUCT:
  14007. self.o3 = UnknownDBException()
  14008. self.o3.read(iprot)
  14009. else:
  14010. iprot.skip(ftype)
  14011. else:
  14012. iprot.skip(ftype)
  14013. iprot.readFieldEnd()
  14014. iprot.readStructEnd()
  14015. def write(self, oprot):
  14016. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14017. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14018. return
  14019. oprot.writeStructBegin('get_table_objects_by_name_result')
  14020. if self.success is not None:
  14021. oprot.writeFieldBegin('success', TType.LIST, 0)
  14022. oprot.writeListBegin(TType.STRUCT, len(self.success))
  14023. for iter700 in self.success:
  14024. iter700.write(oprot)
  14025. oprot.writeListEnd()
  14026. oprot.writeFieldEnd()
  14027. if self.o1 is not None:
  14028. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  14029. self.o1.write(oprot)
  14030. oprot.writeFieldEnd()
  14031. if self.o2 is not None:
  14032. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  14033. self.o2.write(oprot)
  14034. oprot.writeFieldEnd()
  14035. if self.o3 is not None:
  14036. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  14037. self.o3.write(oprot)
  14038. oprot.writeFieldEnd()
  14039. oprot.writeFieldStop()
  14040. oprot.writeStructEnd()
  14041. def validate(self):
  14042. return
  14043. def __hash__(self):
  14044. value = 17
  14045. value = (value * 31) ^ hash(self.success)
  14046. value = (value * 31) ^ hash(self.o1)
  14047. value = (value * 31) ^ hash(self.o2)
  14048. value = (value * 31) ^ hash(self.o3)
  14049. return value
  14050. def __repr__(self):
  14051. L = ['%s=%r' % (key, value)
  14052. for key, value in self.__dict__.iteritems()]
  14053. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14054. def __eq__(self, other):
  14055. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14056. def __ne__(self, other):
  14057. return not (self == other)
  14058. class get_table_names_by_filter_args(object):
  14059. """
  14060. Attributes:
  14061. - dbname
  14062. - filter
  14063. - max_tables
  14064. """
  14065. thrift_spec = (
  14066. None, # 0
  14067. (1, TType.STRING, 'dbname', None, None, ), # 1
  14068. (2, TType.STRING, 'filter', None, None, ), # 2
  14069. (3, TType.I16, 'max_tables', None, -1, ), # 3
  14070. )
  14071. def __init__(self, dbname=None, filter=None, max_tables=thrift_spec[3][4],):
  14072. self.dbname = dbname
  14073. self.filter = filter
  14074. self.max_tables = max_tables
  14075. def read(self, iprot):
  14076. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  14077. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  14078. return
  14079. iprot.readStructBegin()
  14080. while True:
  14081. (fname, ftype, fid) = iprot.readFieldBegin()
  14082. if ftype == TType.STOP:
  14083. break
  14084. if fid == 1:
  14085. if ftype == TType.STRING:
  14086. self.dbname = iprot.readString()
  14087. else:
  14088. iprot.skip(ftype)
  14089. elif fid == 2:
  14090. if ftype == TType.STRING:
  14091. self.filter = iprot.readString()
  14092. else:
  14093. iprot.skip(ftype)
  14094. elif fid == 3:
  14095. if ftype == TType.I16:
  14096. self.max_tables = iprot.readI16()
  14097. else:
  14098. iprot.skip(ftype)
  14099. else:
  14100. iprot.skip(ftype)
  14101. iprot.readFieldEnd()
  14102. iprot.readStructEnd()
  14103. def write(self, oprot):
  14104. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14105. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14106. return
  14107. oprot.writeStructBegin('get_table_names_by_filter_args')
  14108. if self.dbname is not None:
  14109. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  14110. oprot.writeString(self.dbname)
  14111. oprot.writeFieldEnd()
  14112. if self.filter is not None:
  14113. oprot.writeFieldBegin('filter', TType.STRING, 2)
  14114. oprot.writeString(self.filter)
  14115. oprot.writeFieldEnd()
  14116. if self.max_tables is not None:
  14117. oprot.writeFieldBegin('max_tables', TType.I16, 3)
  14118. oprot.writeI16(self.max_tables)
  14119. oprot.writeFieldEnd()
  14120. oprot.writeFieldStop()
  14121. oprot.writeStructEnd()
  14122. def validate(self):
  14123. return
  14124. def __hash__(self):
  14125. value = 17
  14126. value = (value * 31) ^ hash(self.dbname)
  14127. value = (value * 31) ^ hash(self.filter)
  14128. value = (value * 31) ^ hash(self.max_tables)
  14129. return value
  14130. def __repr__(self):
  14131. L = ['%s=%r' % (key, value)
  14132. for key, value in self.__dict__.iteritems()]
  14133. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14134. def __eq__(self, other):
  14135. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14136. def __ne__(self, other):
  14137. return not (self == other)
  14138. class get_table_names_by_filter_result(object):
  14139. """
  14140. Attributes:
  14141. - success
  14142. - o1
  14143. - o2
  14144. - o3
  14145. """
  14146. thrift_spec = (
  14147. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  14148. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  14149. (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2
  14150. (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3
  14151. )
  14152. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  14153. self.success = success
  14154. self.o1 = o1
  14155. self.o2 = o2
  14156. self.o3 = o3
  14157. def read(self, iprot):
  14158. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  14159. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  14160. return
  14161. iprot.readStructBegin()
  14162. while True:
  14163. (fname, ftype, fid) = iprot.readFieldBegin()
  14164. if ftype == TType.STOP:
  14165. break
  14166. if fid == 0:
  14167. if ftype == TType.LIST:
  14168. self.success = []
  14169. (_etype704, _size701) = iprot.readListBegin()
  14170. for _i705 in xrange(_size701):
  14171. _elem706 = iprot.readString()
  14172. self.success.append(_elem706)
  14173. iprot.readListEnd()
  14174. else:
  14175. iprot.skip(ftype)
  14176. elif fid == 1:
  14177. if ftype == TType.STRUCT:
  14178. self.o1 = MetaException()
  14179. self.o1.read(iprot)
  14180. else:
  14181. iprot.skip(ftype)
  14182. elif fid == 2:
  14183. if ftype == TType.STRUCT:
  14184. self.o2 = InvalidOperationException()
  14185. self.o2.read(iprot)
  14186. else:
  14187. iprot.skip(ftype)
  14188. elif fid == 3:
  14189. if ftype == TType.STRUCT:
  14190. self.o3 = UnknownDBException()
  14191. self.o3.read(iprot)
  14192. else:
  14193. iprot.skip(ftype)
  14194. else:
  14195. iprot.skip(ftype)
  14196. iprot.readFieldEnd()
  14197. iprot.readStructEnd()
  14198. def write(self, oprot):
  14199. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14200. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14201. return
  14202. oprot.writeStructBegin('get_table_names_by_filter_result')
  14203. if self.success is not None:
  14204. oprot.writeFieldBegin('success', TType.LIST, 0)
  14205. oprot.writeListBegin(TType.STRING, len(self.success))
  14206. for iter707 in self.success:
  14207. oprot.writeString(iter707)
  14208. oprot.writeListEnd()
  14209. oprot.writeFieldEnd()
  14210. if self.o1 is not None:
  14211. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  14212. self.o1.write(oprot)
  14213. oprot.writeFieldEnd()
  14214. if self.o2 is not None:
  14215. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  14216. self.o2.write(oprot)
  14217. oprot.writeFieldEnd()
  14218. if self.o3 is not None:
  14219. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  14220. self.o3.write(oprot)
  14221. oprot.writeFieldEnd()
  14222. oprot.writeFieldStop()
  14223. oprot.writeStructEnd()
  14224. def validate(self):
  14225. return
  14226. def __hash__(self):
  14227. value = 17
  14228. value = (value * 31) ^ hash(self.success)
  14229. value = (value * 31) ^ hash(self.o1)
  14230. value = (value * 31) ^ hash(self.o2)
  14231. value = (value * 31) ^ hash(self.o3)
  14232. return value
  14233. def __repr__(self):
  14234. L = ['%s=%r' % (key, value)
  14235. for key, value in self.__dict__.iteritems()]
  14236. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14237. def __eq__(self, other):
  14238. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14239. def __ne__(self, other):
  14240. return not (self == other)
  14241. class alter_table_args(object):
  14242. """
  14243. Attributes:
  14244. - dbname
  14245. - tbl_name
  14246. - new_tbl
  14247. """
  14248. thrift_spec = (
  14249. None, # 0
  14250. (1, TType.STRING, 'dbname', None, None, ), # 1
  14251. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  14252. (3, TType.STRUCT, 'new_tbl', (Table, Table.thrift_spec), None, ), # 3
  14253. )
  14254. def __init__(self, dbname=None, tbl_name=None, new_tbl=None,):
  14255. self.dbname = dbname
  14256. self.tbl_name = tbl_name
  14257. self.new_tbl = new_tbl
  14258. def read(self, iprot):
  14259. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  14260. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  14261. return
  14262. iprot.readStructBegin()
  14263. while True:
  14264. (fname, ftype, fid) = iprot.readFieldBegin()
  14265. if ftype == TType.STOP:
  14266. break
  14267. if fid == 1:
  14268. if ftype == TType.STRING:
  14269. self.dbname = iprot.readString()
  14270. else:
  14271. iprot.skip(ftype)
  14272. elif fid == 2:
  14273. if ftype == TType.STRING:
  14274. self.tbl_name = iprot.readString()
  14275. else:
  14276. iprot.skip(ftype)
  14277. elif fid == 3:
  14278. if ftype == TType.STRUCT:
  14279. self.new_tbl = Table()
  14280. self.new_tbl.read(iprot)
  14281. else:
  14282. iprot.skip(ftype)
  14283. else:
  14284. iprot.skip(ftype)
  14285. iprot.readFieldEnd()
  14286. iprot.readStructEnd()
  14287. def write(self, oprot):
  14288. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14289. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14290. return
  14291. oprot.writeStructBegin('alter_table_args')
  14292. if self.dbname is not None:
  14293. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  14294. oprot.writeString(self.dbname)
  14295. oprot.writeFieldEnd()
  14296. if self.tbl_name is not None:
  14297. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  14298. oprot.writeString(self.tbl_name)
  14299. oprot.writeFieldEnd()
  14300. if self.new_tbl is not None:
  14301. oprot.writeFieldBegin('new_tbl', TType.STRUCT, 3)
  14302. self.new_tbl.write(oprot)
  14303. oprot.writeFieldEnd()
  14304. oprot.writeFieldStop()
  14305. oprot.writeStructEnd()
  14306. def validate(self):
  14307. return
  14308. def __hash__(self):
  14309. value = 17
  14310. value = (value * 31) ^ hash(self.dbname)
  14311. value = (value * 31) ^ hash(self.tbl_name)
  14312. value = (value * 31) ^ hash(self.new_tbl)
  14313. return value
  14314. def __repr__(self):
  14315. L = ['%s=%r' % (key, value)
  14316. for key, value in self.__dict__.iteritems()]
  14317. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14318. def __eq__(self, other):
  14319. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14320. def __ne__(self, other):
  14321. return not (self == other)
  14322. class alter_table_result(object):
  14323. """
  14324. Attributes:
  14325. - o1
  14326. - o2
  14327. """
  14328. thrift_spec = (
  14329. None, # 0
  14330. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  14331. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  14332. )
  14333. def __init__(self, o1=None, o2=None,):
  14334. self.o1 = o1
  14335. self.o2 = o2
  14336. def read(self, iprot):
  14337. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  14338. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  14339. return
  14340. iprot.readStructBegin()
  14341. while True:
  14342. (fname, ftype, fid) = iprot.readFieldBegin()
  14343. if ftype == TType.STOP:
  14344. break
  14345. if fid == 1:
  14346. if ftype == TType.STRUCT:
  14347. self.o1 = InvalidOperationException()
  14348. self.o1.read(iprot)
  14349. else:
  14350. iprot.skip(ftype)
  14351. elif fid == 2:
  14352. if ftype == TType.STRUCT:
  14353. self.o2 = MetaException()
  14354. self.o2.read(iprot)
  14355. else:
  14356. iprot.skip(ftype)
  14357. else:
  14358. iprot.skip(ftype)
  14359. iprot.readFieldEnd()
  14360. iprot.readStructEnd()
  14361. def write(self, oprot):
  14362. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14363. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14364. return
  14365. oprot.writeStructBegin('alter_table_result')
  14366. if self.o1 is not None:
  14367. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  14368. self.o1.write(oprot)
  14369. oprot.writeFieldEnd()
  14370. if self.o2 is not None:
  14371. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  14372. self.o2.write(oprot)
  14373. oprot.writeFieldEnd()
  14374. oprot.writeFieldStop()
  14375. oprot.writeStructEnd()
  14376. def validate(self):
  14377. return
  14378. def __hash__(self):
  14379. value = 17
  14380. value = (value * 31) ^ hash(self.o1)
  14381. value = (value * 31) ^ hash(self.o2)
  14382. return value
  14383. def __repr__(self):
  14384. L = ['%s=%r' % (key, value)
  14385. for key, value in self.__dict__.iteritems()]
  14386. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14387. def __eq__(self, other):
  14388. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14389. def __ne__(self, other):
  14390. return not (self == other)
  14391. class alter_table_with_environment_context_args(object):
  14392. """
  14393. Attributes:
  14394. - dbname
  14395. - tbl_name
  14396. - new_tbl
  14397. - environment_context
  14398. """
  14399. thrift_spec = (
  14400. None, # 0
  14401. (1, TType.STRING, 'dbname', None, None, ), # 1
  14402. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  14403. (3, TType.STRUCT, 'new_tbl', (Table, Table.thrift_spec), None, ), # 3
  14404. (4, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 4
  14405. )
  14406. def __init__(self, dbname=None, tbl_name=None, new_tbl=None, environment_context=None,):
  14407. self.dbname = dbname
  14408. self.tbl_name = tbl_name
  14409. self.new_tbl = new_tbl
  14410. self.environment_context = environment_context
  14411. def read(self, iprot):
  14412. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  14413. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  14414. return
  14415. iprot.readStructBegin()
  14416. while True:
  14417. (fname, ftype, fid) = iprot.readFieldBegin()
  14418. if ftype == TType.STOP:
  14419. break
  14420. if fid == 1:
  14421. if ftype == TType.STRING:
  14422. self.dbname = iprot.readString()
  14423. else:
  14424. iprot.skip(ftype)
  14425. elif fid == 2:
  14426. if ftype == TType.STRING:
  14427. self.tbl_name = iprot.readString()
  14428. else:
  14429. iprot.skip(ftype)
  14430. elif fid == 3:
  14431. if ftype == TType.STRUCT:
  14432. self.new_tbl = Table()
  14433. self.new_tbl.read(iprot)
  14434. else:
  14435. iprot.skip(ftype)
  14436. elif fid == 4:
  14437. if ftype == TType.STRUCT:
  14438. self.environment_context = EnvironmentContext()
  14439. self.environment_context.read(iprot)
  14440. else:
  14441. iprot.skip(ftype)
  14442. else:
  14443. iprot.skip(ftype)
  14444. iprot.readFieldEnd()
  14445. iprot.readStructEnd()
  14446. def write(self, oprot):
  14447. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14448. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14449. return
  14450. oprot.writeStructBegin('alter_table_with_environment_context_args')
  14451. if self.dbname is not None:
  14452. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  14453. oprot.writeString(self.dbname)
  14454. oprot.writeFieldEnd()
  14455. if self.tbl_name is not None:
  14456. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  14457. oprot.writeString(self.tbl_name)
  14458. oprot.writeFieldEnd()
  14459. if self.new_tbl is not None:
  14460. oprot.writeFieldBegin('new_tbl', TType.STRUCT, 3)
  14461. self.new_tbl.write(oprot)
  14462. oprot.writeFieldEnd()
  14463. if self.environment_context is not None:
  14464. oprot.writeFieldBegin('environment_context', TType.STRUCT, 4)
  14465. self.environment_context.write(oprot)
  14466. oprot.writeFieldEnd()
  14467. oprot.writeFieldStop()
  14468. oprot.writeStructEnd()
  14469. def validate(self):
  14470. return
  14471. def __hash__(self):
  14472. value = 17
  14473. value = (value * 31) ^ hash(self.dbname)
  14474. value = (value * 31) ^ hash(self.tbl_name)
  14475. value = (value * 31) ^ hash(self.new_tbl)
  14476. value = (value * 31) ^ hash(self.environment_context)
  14477. return value
  14478. def __repr__(self):
  14479. L = ['%s=%r' % (key, value)
  14480. for key, value in self.__dict__.iteritems()]
  14481. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14482. def __eq__(self, other):
  14483. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14484. def __ne__(self, other):
  14485. return not (self == other)
  14486. class alter_table_with_environment_context_result(object):
  14487. """
  14488. Attributes:
  14489. - o1
  14490. - o2
  14491. """
  14492. thrift_spec = (
  14493. None, # 0
  14494. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  14495. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  14496. )
  14497. def __init__(self, o1=None, o2=None,):
  14498. self.o1 = o1
  14499. self.o2 = o2
  14500. def read(self, iprot):
  14501. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  14502. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  14503. return
  14504. iprot.readStructBegin()
  14505. while True:
  14506. (fname, ftype, fid) = iprot.readFieldBegin()
  14507. if ftype == TType.STOP:
  14508. break
  14509. if fid == 1:
  14510. if ftype == TType.STRUCT:
  14511. self.o1 = InvalidOperationException()
  14512. self.o1.read(iprot)
  14513. else:
  14514. iprot.skip(ftype)
  14515. elif fid == 2:
  14516. if ftype == TType.STRUCT:
  14517. self.o2 = MetaException()
  14518. self.o2.read(iprot)
  14519. else:
  14520. iprot.skip(ftype)
  14521. else:
  14522. iprot.skip(ftype)
  14523. iprot.readFieldEnd()
  14524. iprot.readStructEnd()
  14525. def write(self, oprot):
  14526. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14527. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14528. return
  14529. oprot.writeStructBegin('alter_table_with_environment_context_result')
  14530. if self.o1 is not None:
  14531. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  14532. self.o1.write(oprot)
  14533. oprot.writeFieldEnd()
  14534. if self.o2 is not None:
  14535. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  14536. self.o2.write(oprot)
  14537. oprot.writeFieldEnd()
  14538. oprot.writeFieldStop()
  14539. oprot.writeStructEnd()
  14540. def validate(self):
  14541. return
  14542. def __hash__(self):
  14543. value = 17
  14544. value = (value * 31) ^ hash(self.o1)
  14545. value = (value * 31) ^ hash(self.o2)
  14546. return value
  14547. def __repr__(self):
  14548. L = ['%s=%r' % (key, value)
  14549. for key, value in self.__dict__.iteritems()]
  14550. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14551. def __eq__(self, other):
  14552. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14553. def __ne__(self, other):
  14554. return not (self == other)
  14555. class alter_table_with_cascade_args(object):
  14556. """
  14557. Attributes:
  14558. - dbname
  14559. - tbl_name
  14560. - new_tbl
  14561. - cascade
  14562. """
  14563. thrift_spec = (
  14564. None, # 0
  14565. (1, TType.STRING, 'dbname', None, None, ), # 1
  14566. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  14567. (3, TType.STRUCT, 'new_tbl', (Table, Table.thrift_spec), None, ), # 3
  14568. (4, TType.BOOL, 'cascade', None, None, ), # 4
  14569. )
  14570. def __init__(self, dbname=None, tbl_name=None, new_tbl=None, cascade=None,):
  14571. self.dbname = dbname
  14572. self.tbl_name = tbl_name
  14573. self.new_tbl = new_tbl
  14574. self.cascade = cascade
  14575. def read(self, iprot):
  14576. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  14577. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  14578. return
  14579. iprot.readStructBegin()
  14580. while True:
  14581. (fname, ftype, fid) = iprot.readFieldBegin()
  14582. if ftype == TType.STOP:
  14583. break
  14584. if fid == 1:
  14585. if ftype == TType.STRING:
  14586. self.dbname = iprot.readString()
  14587. else:
  14588. iprot.skip(ftype)
  14589. elif fid == 2:
  14590. if ftype == TType.STRING:
  14591. self.tbl_name = iprot.readString()
  14592. else:
  14593. iprot.skip(ftype)
  14594. elif fid == 3:
  14595. if ftype == TType.STRUCT:
  14596. self.new_tbl = Table()
  14597. self.new_tbl.read(iprot)
  14598. else:
  14599. iprot.skip(ftype)
  14600. elif fid == 4:
  14601. if ftype == TType.BOOL:
  14602. self.cascade = iprot.readBool()
  14603. else:
  14604. iprot.skip(ftype)
  14605. else:
  14606. iprot.skip(ftype)
  14607. iprot.readFieldEnd()
  14608. iprot.readStructEnd()
  14609. def write(self, oprot):
  14610. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14611. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14612. return
  14613. oprot.writeStructBegin('alter_table_with_cascade_args')
  14614. if self.dbname is not None:
  14615. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  14616. oprot.writeString(self.dbname)
  14617. oprot.writeFieldEnd()
  14618. if self.tbl_name is not None:
  14619. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  14620. oprot.writeString(self.tbl_name)
  14621. oprot.writeFieldEnd()
  14622. if self.new_tbl is not None:
  14623. oprot.writeFieldBegin('new_tbl', TType.STRUCT, 3)
  14624. self.new_tbl.write(oprot)
  14625. oprot.writeFieldEnd()
  14626. if self.cascade is not None:
  14627. oprot.writeFieldBegin('cascade', TType.BOOL, 4)
  14628. oprot.writeBool(self.cascade)
  14629. oprot.writeFieldEnd()
  14630. oprot.writeFieldStop()
  14631. oprot.writeStructEnd()
  14632. def validate(self):
  14633. return
  14634. def __hash__(self):
  14635. value = 17
  14636. value = (value * 31) ^ hash(self.dbname)
  14637. value = (value * 31) ^ hash(self.tbl_name)
  14638. value = (value * 31) ^ hash(self.new_tbl)
  14639. value = (value * 31) ^ hash(self.cascade)
  14640. return value
  14641. def __repr__(self):
  14642. L = ['%s=%r' % (key, value)
  14643. for key, value in self.__dict__.iteritems()]
  14644. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14645. def __eq__(self, other):
  14646. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14647. def __ne__(self, other):
  14648. return not (self == other)
  14649. class alter_table_with_cascade_result(object):
  14650. """
  14651. Attributes:
  14652. - o1
  14653. - o2
  14654. """
  14655. thrift_spec = (
  14656. None, # 0
  14657. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  14658. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  14659. )
  14660. def __init__(self, o1=None, o2=None,):
  14661. self.o1 = o1
  14662. self.o2 = o2
  14663. def read(self, iprot):
  14664. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  14665. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  14666. return
  14667. iprot.readStructBegin()
  14668. while True:
  14669. (fname, ftype, fid) = iprot.readFieldBegin()
  14670. if ftype == TType.STOP:
  14671. break
  14672. if fid == 1:
  14673. if ftype == TType.STRUCT:
  14674. self.o1 = InvalidOperationException()
  14675. self.o1.read(iprot)
  14676. else:
  14677. iprot.skip(ftype)
  14678. elif fid == 2:
  14679. if ftype == TType.STRUCT:
  14680. self.o2 = MetaException()
  14681. self.o2.read(iprot)
  14682. else:
  14683. iprot.skip(ftype)
  14684. else:
  14685. iprot.skip(ftype)
  14686. iprot.readFieldEnd()
  14687. iprot.readStructEnd()
  14688. def write(self, oprot):
  14689. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14690. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14691. return
  14692. oprot.writeStructBegin('alter_table_with_cascade_result')
  14693. if self.o1 is not None:
  14694. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  14695. self.o1.write(oprot)
  14696. oprot.writeFieldEnd()
  14697. if self.o2 is not None:
  14698. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  14699. self.o2.write(oprot)
  14700. oprot.writeFieldEnd()
  14701. oprot.writeFieldStop()
  14702. oprot.writeStructEnd()
  14703. def validate(self):
  14704. return
  14705. def __hash__(self):
  14706. value = 17
  14707. value = (value * 31) ^ hash(self.o1)
  14708. value = (value * 31) ^ hash(self.o2)
  14709. return value
  14710. def __repr__(self):
  14711. L = ['%s=%r' % (key, value)
  14712. for key, value in self.__dict__.iteritems()]
  14713. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14714. def __eq__(self, other):
  14715. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14716. def __ne__(self, other):
  14717. return not (self == other)
  14718. class add_partition_args(object):
  14719. """
  14720. Attributes:
  14721. - new_part
  14722. """
  14723. thrift_spec = (
  14724. None, # 0
  14725. (1, TType.STRUCT, 'new_part', (Partition, Partition.thrift_spec), None, ), # 1
  14726. )
  14727. def __init__(self, new_part=None,):
  14728. self.new_part = new_part
  14729. def read(self, iprot):
  14730. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  14731. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  14732. return
  14733. iprot.readStructBegin()
  14734. while True:
  14735. (fname, ftype, fid) = iprot.readFieldBegin()
  14736. if ftype == TType.STOP:
  14737. break
  14738. if fid == 1:
  14739. if ftype == TType.STRUCT:
  14740. self.new_part = Partition()
  14741. self.new_part.read(iprot)
  14742. else:
  14743. iprot.skip(ftype)
  14744. else:
  14745. iprot.skip(ftype)
  14746. iprot.readFieldEnd()
  14747. iprot.readStructEnd()
  14748. def write(self, oprot):
  14749. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14750. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14751. return
  14752. oprot.writeStructBegin('add_partition_args')
  14753. if self.new_part is not None:
  14754. oprot.writeFieldBegin('new_part', TType.STRUCT, 1)
  14755. self.new_part.write(oprot)
  14756. oprot.writeFieldEnd()
  14757. oprot.writeFieldStop()
  14758. oprot.writeStructEnd()
  14759. def validate(self):
  14760. return
  14761. def __hash__(self):
  14762. value = 17
  14763. value = (value * 31) ^ hash(self.new_part)
  14764. return value
  14765. def __repr__(self):
  14766. L = ['%s=%r' % (key, value)
  14767. for key, value in self.__dict__.iteritems()]
  14768. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14769. def __eq__(self, other):
  14770. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14771. def __ne__(self, other):
  14772. return not (self == other)
  14773. class add_partition_result(object):
  14774. """
  14775. Attributes:
  14776. - success
  14777. - o1
  14778. - o2
  14779. - o3
  14780. """
  14781. thrift_spec = (
  14782. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  14783. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  14784. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  14785. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  14786. )
  14787. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  14788. self.success = success
  14789. self.o1 = o1
  14790. self.o2 = o2
  14791. self.o3 = o3
  14792. def read(self, iprot):
  14793. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  14794. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  14795. return
  14796. iprot.readStructBegin()
  14797. while True:
  14798. (fname, ftype, fid) = iprot.readFieldBegin()
  14799. if ftype == TType.STOP:
  14800. break
  14801. if fid == 0:
  14802. if ftype == TType.STRUCT:
  14803. self.success = Partition()
  14804. self.success.read(iprot)
  14805. else:
  14806. iprot.skip(ftype)
  14807. elif fid == 1:
  14808. if ftype == TType.STRUCT:
  14809. self.o1 = InvalidObjectException()
  14810. self.o1.read(iprot)
  14811. else:
  14812. iprot.skip(ftype)
  14813. elif fid == 2:
  14814. if ftype == TType.STRUCT:
  14815. self.o2 = AlreadyExistsException()
  14816. self.o2.read(iprot)
  14817. else:
  14818. iprot.skip(ftype)
  14819. elif fid == 3:
  14820. if ftype == TType.STRUCT:
  14821. self.o3 = MetaException()
  14822. self.o3.read(iprot)
  14823. else:
  14824. iprot.skip(ftype)
  14825. else:
  14826. iprot.skip(ftype)
  14827. iprot.readFieldEnd()
  14828. iprot.readStructEnd()
  14829. def write(self, oprot):
  14830. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14831. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14832. return
  14833. oprot.writeStructBegin('add_partition_result')
  14834. if self.success is not None:
  14835. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  14836. self.success.write(oprot)
  14837. oprot.writeFieldEnd()
  14838. if self.o1 is not None:
  14839. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  14840. self.o1.write(oprot)
  14841. oprot.writeFieldEnd()
  14842. if self.o2 is not None:
  14843. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  14844. self.o2.write(oprot)
  14845. oprot.writeFieldEnd()
  14846. if self.o3 is not None:
  14847. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  14848. self.o3.write(oprot)
  14849. oprot.writeFieldEnd()
  14850. oprot.writeFieldStop()
  14851. oprot.writeStructEnd()
  14852. def validate(self):
  14853. return
  14854. def __hash__(self):
  14855. value = 17
  14856. value = (value * 31) ^ hash(self.success)
  14857. value = (value * 31) ^ hash(self.o1)
  14858. value = (value * 31) ^ hash(self.o2)
  14859. value = (value * 31) ^ hash(self.o3)
  14860. return value
  14861. def __repr__(self):
  14862. L = ['%s=%r' % (key, value)
  14863. for key, value in self.__dict__.iteritems()]
  14864. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14865. def __eq__(self, other):
  14866. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14867. def __ne__(self, other):
  14868. return not (self == other)
  14869. class add_partition_with_environment_context_args(object):
  14870. """
  14871. Attributes:
  14872. - new_part
  14873. - environment_context
  14874. """
  14875. thrift_spec = (
  14876. None, # 0
  14877. (1, TType.STRUCT, 'new_part', (Partition, Partition.thrift_spec), None, ), # 1
  14878. (2, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 2
  14879. )
  14880. def __init__(self, new_part=None, environment_context=None,):
  14881. self.new_part = new_part
  14882. self.environment_context = environment_context
  14883. def read(self, iprot):
  14884. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  14885. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  14886. return
  14887. iprot.readStructBegin()
  14888. while True:
  14889. (fname, ftype, fid) = iprot.readFieldBegin()
  14890. if ftype == TType.STOP:
  14891. break
  14892. if fid == 1:
  14893. if ftype == TType.STRUCT:
  14894. self.new_part = Partition()
  14895. self.new_part.read(iprot)
  14896. else:
  14897. iprot.skip(ftype)
  14898. elif fid == 2:
  14899. if ftype == TType.STRUCT:
  14900. self.environment_context = EnvironmentContext()
  14901. self.environment_context.read(iprot)
  14902. else:
  14903. iprot.skip(ftype)
  14904. else:
  14905. iprot.skip(ftype)
  14906. iprot.readFieldEnd()
  14907. iprot.readStructEnd()
  14908. def write(self, oprot):
  14909. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14910. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14911. return
  14912. oprot.writeStructBegin('add_partition_with_environment_context_args')
  14913. if self.new_part is not None:
  14914. oprot.writeFieldBegin('new_part', TType.STRUCT, 1)
  14915. self.new_part.write(oprot)
  14916. oprot.writeFieldEnd()
  14917. if self.environment_context is not None:
  14918. oprot.writeFieldBegin('environment_context', TType.STRUCT, 2)
  14919. self.environment_context.write(oprot)
  14920. oprot.writeFieldEnd()
  14921. oprot.writeFieldStop()
  14922. oprot.writeStructEnd()
  14923. def validate(self):
  14924. return
  14925. def __hash__(self):
  14926. value = 17
  14927. value = (value * 31) ^ hash(self.new_part)
  14928. value = (value * 31) ^ hash(self.environment_context)
  14929. return value
  14930. def __repr__(self):
  14931. L = ['%s=%r' % (key, value)
  14932. for key, value in self.__dict__.iteritems()]
  14933. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14934. def __eq__(self, other):
  14935. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14936. def __ne__(self, other):
  14937. return not (self == other)
  14938. class add_partition_with_environment_context_result(object):
  14939. """
  14940. Attributes:
  14941. - success
  14942. - o1
  14943. - o2
  14944. - o3
  14945. """
  14946. thrift_spec = (
  14947. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  14948. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  14949. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  14950. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  14951. )
  14952. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  14953. self.success = success
  14954. self.o1 = o1
  14955. self.o2 = o2
  14956. self.o3 = o3
  14957. def read(self, iprot):
  14958. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  14959. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  14960. return
  14961. iprot.readStructBegin()
  14962. while True:
  14963. (fname, ftype, fid) = iprot.readFieldBegin()
  14964. if ftype == TType.STOP:
  14965. break
  14966. if fid == 0:
  14967. if ftype == TType.STRUCT:
  14968. self.success = Partition()
  14969. self.success.read(iprot)
  14970. else:
  14971. iprot.skip(ftype)
  14972. elif fid == 1:
  14973. if ftype == TType.STRUCT:
  14974. self.o1 = InvalidObjectException()
  14975. self.o1.read(iprot)
  14976. else:
  14977. iprot.skip(ftype)
  14978. elif fid == 2:
  14979. if ftype == TType.STRUCT:
  14980. self.o2 = AlreadyExistsException()
  14981. self.o2.read(iprot)
  14982. else:
  14983. iprot.skip(ftype)
  14984. elif fid == 3:
  14985. if ftype == TType.STRUCT:
  14986. self.o3 = MetaException()
  14987. self.o3.read(iprot)
  14988. else:
  14989. iprot.skip(ftype)
  14990. else:
  14991. iprot.skip(ftype)
  14992. iprot.readFieldEnd()
  14993. iprot.readStructEnd()
  14994. def write(self, oprot):
  14995. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  14996. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  14997. return
  14998. oprot.writeStructBegin('add_partition_with_environment_context_result')
  14999. if self.success is not None:
  15000. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  15001. self.success.write(oprot)
  15002. oprot.writeFieldEnd()
  15003. if self.o1 is not None:
  15004. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15005. self.o1.write(oprot)
  15006. oprot.writeFieldEnd()
  15007. if self.o2 is not None:
  15008. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15009. self.o2.write(oprot)
  15010. oprot.writeFieldEnd()
  15011. if self.o3 is not None:
  15012. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  15013. self.o3.write(oprot)
  15014. oprot.writeFieldEnd()
  15015. oprot.writeFieldStop()
  15016. oprot.writeStructEnd()
  15017. def validate(self):
  15018. return
  15019. def __hash__(self):
  15020. value = 17
  15021. value = (value * 31) ^ hash(self.success)
  15022. value = (value * 31) ^ hash(self.o1)
  15023. value = (value * 31) ^ hash(self.o2)
  15024. value = (value * 31) ^ hash(self.o3)
  15025. return value
  15026. def __repr__(self):
  15027. L = ['%s=%r' % (key, value)
  15028. for key, value in self.__dict__.iteritems()]
  15029. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15030. def __eq__(self, other):
  15031. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15032. def __ne__(self, other):
  15033. return not (self == other)
  15034. class add_partitions_args(object):
  15035. """
  15036. Attributes:
  15037. - new_parts
  15038. """
  15039. thrift_spec = (
  15040. None, # 0
  15041. (1, TType.LIST, 'new_parts', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 1
  15042. )
  15043. def __init__(self, new_parts=None,):
  15044. self.new_parts = new_parts
  15045. def read(self, iprot):
  15046. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  15047. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  15048. return
  15049. iprot.readStructBegin()
  15050. while True:
  15051. (fname, ftype, fid) = iprot.readFieldBegin()
  15052. if ftype == TType.STOP:
  15053. break
  15054. if fid == 1:
  15055. if ftype == TType.LIST:
  15056. self.new_parts = []
  15057. (_etype711, _size708) = iprot.readListBegin()
  15058. for _i712 in xrange(_size708):
  15059. _elem713 = Partition()
  15060. _elem713.read(iprot)
  15061. self.new_parts.append(_elem713)
  15062. iprot.readListEnd()
  15063. else:
  15064. iprot.skip(ftype)
  15065. else:
  15066. iprot.skip(ftype)
  15067. iprot.readFieldEnd()
  15068. iprot.readStructEnd()
  15069. def write(self, oprot):
  15070. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  15071. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  15072. return
  15073. oprot.writeStructBegin('add_partitions_args')
  15074. if self.new_parts is not None:
  15075. oprot.writeFieldBegin('new_parts', TType.LIST, 1)
  15076. oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
  15077. for iter714 in self.new_parts:
  15078. iter714.write(oprot)
  15079. oprot.writeListEnd()
  15080. oprot.writeFieldEnd()
  15081. oprot.writeFieldStop()
  15082. oprot.writeStructEnd()
  15083. def validate(self):
  15084. return
  15085. def __hash__(self):
  15086. value = 17
  15087. value = (value * 31) ^ hash(self.new_parts)
  15088. return value
  15089. def __repr__(self):
  15090. L = ['%s=%r' % (key, value)
  15091. for key, value in self.__dict__.iteritems()]
  15092. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15093. def __eq__(self, other):
  15094. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15095. def __ne__(self, other):
  15096. return not (self == other)
  15097. class add_partitions_result(object):
  15098. """
  15099. Attributes:
  15100. - success
  15101. - o1
  15102. - o2
  15103. - o3
  15104. """
  15105. thrift_spec = (
  15106. (0, TType.I32, 'success', None, None, ), # 0
  15107. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  15108. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  15109. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  15110. )
  15111. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  15112. self.success = success
  15113. self.o1 = o1
  15114. self.o2 = o2
  15115. self.o3 = o3
  15116. def read(self, iprot):
  15117. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  15118. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  15119. return
  15120. iprot.readStructBegin()
  15121. while True:
  15122. (fname, ftype, fid) = iprot.readFieldBegin()
  15123. if ftype == TType.STOP:
  15124. break
  15125. if fid == 0:
  15126. if ftype == TType.I32:
  15127. self.success = iprot.readI32()
  15128. else:
  15129. iprot.skip(ftype)
  15130. elif fid == 1:
  15131. if ftype == TType.STRUCT:
  15132. self.o1 = InvalidObjectException()
  15133. self.o1.read(iprot)
  15134. else:
  15135. iprot.skip(ftype)
  15136. elif fid == 2:
  15137. if ftype == TType.STRUCT:
  15138. self.o2 = AlreadyExistsException()
  15139. self.o2.read(iprot)
  15140. else:
  15141. iprot.skip(ftype)
  15142. elif fid == 3:
  15143. if ftype == TType.STRUCT:
  15144. self.o3 = MetaException()
  15145. self.o3.read(iprot)
  15146. else:
  15147. iprot.skip(ftype)
  15148. else:
  15149. iprot.skip(ftype)
  15150. iprot.readFieldEnd()
  15151. iprot.readStructEnd()
  15152. def write(self, oprot):
  15153. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  15154. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  15155. return
  15156. oprot.writeStructBegin('add_partitions_result')
  15157. if self.success is not None:
  15158. oprot.writeFieldBegin('success', TType.I32, 0)
  15159. oprot.writeI32(self.success)
  15160. oprot.writeFieldEnd()
  15161. if self.o1 is not None:
  15162. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15163. self.o1.write(oprot)
  15164. oprot.writeFieldEnd()
  15165. if self.o2 is not None:
  15166. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15167. self.o2.write(oprot)
  15168. oprot.writeFieldEnd()
  15169. if self.o3 is not None:
  15170. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  15171. self.o3.write(oprot)
  15172. oprot.writeFieldEnd()
  15173. oprot.writeFieldStop()
  15174. oprot.writeStructEnd()
  15175. def validate(self):
  15176. return
  15177. def __hash__(self):
  15178. value = 17
  15179. value = (value * 31) ^ hash(self.success)
  15180. value = (value * 31) ^ hash(self.o1)
  15181. value = (value * 31) ^ hash(self.o2)
  15182. value = (value * 31) ^ hash(self.o3)
  15183. return value
  15184. def __repr__(self):
  15185. L = ['%s=%r' % (key, value)
  15186. for key, value in self.__dict__.iteritems()]
  15187. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15188. def __eq__(self, other):
  15189. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15190. def __ne__(self, other):
  15191. return not (self == other)
  15192. class add_partitions_pspec_args(object):
  15193. """
  15194. Attributes:
  15195. - new_parts
  15196. """
  15197. thrift_spec = (
  15198. None, # 0
  15199. (1, TType.LIST, 'new_parts', (TType.STRUCT,(PartitionSpec, PartitionSpec.thrift_spec)), None, ), # 1
  15200. )
  15201. def __init__(self, new_parts=None,):
  15202. self.new_parts = new_parts
  15203. def read(self, iprot):
  15204. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  15205. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  15206. return
  15207. iprot.readStructBegin()
  15208. while True:
  15209. (fname, ftype, fid) = iprot.readFieldBegin()
  15210. if ftype == TType.STOP:
  15211. break
  15212. if fid == 1:
  15213. if ftype == TType.LIST:
  15214. self.new_parts = []
  15215. (_etype718, _size715) = iprot.readListBegin()
  15216. for _i719 in xrange(_size715):
  15217. _elem720 = PartitionSpec()
  15218. _elem720.read(iprot)
  15219. self.new_parts.append(_elem720)
  15220. iprot.readListEnd()
  15221. else:
  15222. iprot.skip(ftype)
  15223. else:
  15224. iprot.skip(ftype)
  15225. iprot.readFieldEnd()
  15226. iprot.readStructEnd()
  15227. def write(self, oprot):
  15228. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  15229. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  15230. return
  15231. oprot.writeStructBegin('add_partitions_pspec_args')
  15232. if self.new_parts is not None:
  15233. oprot.writeFieldBegin('new_parts', TType.LIST, 1)
  15234. oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
  15235. for iter721 in self.new_parts:
  15236. iter721.write(oprot)
  15237. oprot.writeListEnd()
  15238. oprot.writeFieldEnd()
  15239. oprot.writeFieldStop()
  15240. oprot.writeStructEnd()
  15241. def validate(self):
  15242. return
  15243. def __hash__(self):
  15244. value = 17
  15245. value = (value * 31) ^ hash(self.new_parts)
  15246. return value
  15247. def __repr__(self):
  15248. L = ['%s=%r' % (key, value)
  15249. for key, value in self.__dict__.iteritems()]
  15250. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15251. def __eq__(self, other):
  15252. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15253. def __ne__(self, other):
  15254. return not (self == other)
  15255. class add_partitions_pspec_result(object):
  15256. """
  15257. Attributes:
  15258. - success
  15259. - o1
  15260. - o2
  15261. - o3
  15262. """
  15263. thrift_spec = (
  15264. (0, TType.I32, 'success', None, None, ), # 0
  15265. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  15266. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  15267. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  15268. )
  15269. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  15270. self.success = success
  15271. self.o1 = o1
  15272. self.o2 = o2
  15273. self.o3 = o3
  15274. def read(self, iprot):
  15275. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  15276. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  15277. return
  15278. iprot.readStructBegin()
  15279. while True:
  15280. (fname, ftype, fid) = iprot.readFieldBegin()
  15281. if ftype == TType.STOP:
  15282. break
  15283. if fid == 0:
  15284. if ftype == TType.I32:
  15285. self.success = iprot.readI32()
  15286. else:
  15287. iprot.skip(ftype)
  15288. elif fid == 1:
  15289. if ftype == TType.STRUCT:
  15290. self.o1 = InvalidObjectException()
  15291. self.o1.read(iprot)
  15292. else:
  15293. iprot.skip(ftype)
  15294. elif fid == 2:
  15295. if ftype == TType.STRUCT:
  15296. self.o2 = AlreadyExistsException()
  15297. self.o2.read(iprot)
  15298. else:
  15299. iprot.skip(ftype)
  15300. elif fid == 3:
  15301. if ftype == TType.STRUCT:
  15302. self.o3 = MetaException()
  15303. self.o3.read(iprot)
  15304. else:
  15305. iprot.skip(ftype)
  15306. else:
  15307. iprot.skip(ftype)
  15308. iprot.readFieldEnd()
  15309. iprot.readStructEnd()
  15310. def write(self, oprot):
  15311. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  15312. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  15313. return
  15314. oprot.writeStructBegin('add_partitions_pspec_result')
  15315. if self.success is not None:
  15316. oprot.writeFieldBegin('success', TType.I32, 0)
  15317. oprot.writeI32(self.success)
  15318. oprot.writeFieldEnd()
  15319. if self.o1 is not None:
  15320. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15321. self.o1.write(oprot)
  15322. oprot.writeFieldEnd()
  15323. if self.o2 is not None:
  15324. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15325. self.o2.write(oprot)
  15326. oprot.writeFieldEnd()
  15327. if self.o3 is not None:
  15328. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  15329. self.o3.write(oprot)
  15330. oprot.writeFieldEnd()
  15331. oprot.writeFieldStop()
  15332. oprot.writeStructEnd()
  15333. def validate(self):
  15334. return
  15335. def __hash__(self):
  15336. value = 17
  15337. value = (value * 31) ^ hash(self.success)
  15338. value = (value * 31) ^ hash(self.o1)
  15339. value = (value * 31) ^ hash(self.o2)
  15340. value = (value * 31) ^ hash(self.o3)
  15341. return value
  15342. def __repr__(self):
  15343. L = ['%s=%r' % (key, value)
  15344. for key, value in self.__dict__.iteritems()]
  15345. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15346. def __eq__(self, other):
  15347. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15348. def __ne__(self, other):
  15349. return not (self == other)
  15350. class append_partition_args(object):
  15351. """
  15352. Attributes:
  15353. - db_name
  15354. - tbl_name
  15355. - part_vals
  15356. """
  15357. thrift_spec = (
  15358. None, # 0
  15359. (1, TType.STRING, 'db_name', None, None, ), # 1
  15360. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  15361. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  15362. )
  15363. def __init__(self, db_name=None, tbl_name=None, part_vals=None,):
  15364. self.db_name = db_name
  15365. self.tbl_name = tbl_name
  15366. self.part_vals = part_vals
  15367. def read(self, iprot):
  15368. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  15369. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  15370. return
  15371. iprot.readStructBegin()
  15372. while True:
  15373. (fname, ftype, fid) = iprot.readFieldBegin()
  15374. if ftype == TType.STOP:
  15375. break
  15376. if fid == 1:
  15377. if ftype == TType.STRING:
  15378. self.db_name = iprot.readString()
  15379. else:
  15380. iprot.skip(ftype)
  15381. elif fid == 2:
  15382. if ftype == TType.STRING:
  15383. self.tbl_name = iprot.readString()
  15384. else:
  15385. iprot.skip(ftype)
  15386. elif fid == 3:
  15387. if ftype == TType.LIST:
  15388. self.part_vals = []
  15389. (_etype725, _size722) = iprot.readListBegin()
  15390. for _i726 in xrange(_size722):
  15391. _elem727 = iprot.readString()
  15392. self.part_vals.append(_elem727)
  15393. iprot.readListEnd()
  15394. else:
  15395. iprot.skip(ftype)
  15396. else:
  15397. iprot.skip(ftype)
  15398. iprot.readFieldEnd()
  15399. iprot.readStructEnd()
  15400. def write(self, oprot):
  15401. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  15402. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  15403. return
  15404. oprot.writeStructBegin('append_partition_args')
  15405. if self.db_name is not None:
  15406. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  15407. oprot.writeString(self.db_name)
  15408. oprot.writeFieldEnd()
  15409. if self.tbl_name is not None:
  15410. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  15411. oprot.writeString(self.tbl_name)
  15412. oprot.writeFieldEnd()
  15413. if self.part_vals is not None:
  15414. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  15415. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  15416. for iter728 in self.part_vals:
  15417. oprot.writeString(iter728)
  15418. oprot.writeListEnd()
  15419. oprot.writeFieldEnd()
  15420. oprot.writeFieldStop()
  15421. oprot.writeStructEnd()
  15422. def validate(self):
  15423. return
  15424. def __hash__(self):
  15425. value = 17
  15426. value = (value * 31) ^ hash(self.db_name)
  15427. value = (value * 31) ^ hash(self.tbl_name)
  15428. value = (value * 31) ^ hash(self.part_vals)
  15429. return value
  15430. def __repr__(self):
  15431. L = ['%s=%r' % (key, value)
  15432. for key, value in self.__dict__.iteritems()]
  15433. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15434. def __eq__(self, other):
  15435. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15436. def __ne__(self, other):
  15437. return not (self == other)
  15438. class append_partition_result(object):
  15439. """
  15440. Attributes:
  15441. - success
  15442. - o1
  15443. - o2
  15444. - o3
  15445. """
  15446. thrift_spec = (
  15447. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  15448. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  15449. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  15450. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  15451. )
  15452. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  15453. self.success = success
  15454. self.o1 = o1
  15455. self.o2 = o2
  15456. self.o3 = o3
  15457. def read(self, iprot):
  15458. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  15459. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  15460. return
  15461. iprot.readStructBegin()
  15462. while True:
  15463. (fname, ftype, fid) = iprot.readFieldBegin()
  15464. if ftype == TType.STOP:
  15465. break
  15466. if fid == 0:
  15467. if ftype == TType.STRUCT:
  15468. self.success = Partition()
  15469. self.success.read(iprot)
  15470. else:
  15471. iprot.skip(ftype)
  15472. elif fid == 1:
  15473. if ftype == TType.STRUCT:
  15474. self.o1 = InvalidObjectException()
  15475. self.o1.read(iprot)
  15476. else:
  15477. iprot.skip(ftype)
  15478. elif fid == 2:
  15479. if ftype == TType.STRUCT:
  15480. self.o2 = AlreadyExistsException()
  15481. self.o2.read(iprot)
  15482. else:
  15483. iprot.skip(ftype)
  15484. elif fid == 3:
  15485. if ftype == TType.STRUCT:
  15486. self.o3 = MetaException()
  15487. self.o3.read(iprot)
  15488. else:
  15489. iprot.skip(ftype)
  15490. else:
  15491. iprot.skip(ftype)
  15492. iprot.readFieldEnd()
  15493. iprot.readStructEnd()
  15494. def write(self, oprot):
  15495. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  15496. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  15497. return
  15498. oprot.writeStructBegin('append_partition_result')
  15499. if self.success is not None:
  15500. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  15501. self.success.write(oprot)
  15502. oprot.writeFieldEnd()
  15503. if self.o1 is not None:
  15504. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15505. self.o1.write(oprot)
  15506. oprot.writeFieldEnd()
  15507. if self.o2 is not None:
  15508. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15509. self.o2.write(oprot)
  15510. oprot.writeFieldEnd()
  15511. if self.o3 is not None:
  15512. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  15513. self.o3.write(oprot)
  15514. oprot.writeFieldEnd()
  15515. oprot.writeFieldStop()
  15516. oprot.writeStructEnd()
  15517. def validate(self):
  15518. return
  15519. def __hash__(self):
  15520. value = 17
  15521. value = (value * 31) ^ hash(self.success)
  15522. value = (value * 31) ^ hash(self.o1)
  15523. value = (value * 31) ^ hash(self.o2)
  15524. value = (value * 31) ^ hash(self.o3)
  15525. return value
  15526. def __repr__(self):
  15527. L = ['%s=%r' % (key, value)
  15528. for key, value in self.__dict__.iteritems()]
  15529. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15530. def __eq__(self, other):
  15531. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15532. def __ne__(self, other):
  15533. return not (self == other)
  15534. class add_partitions_req_args(object):
  15535. """
  15536. Attributes:
  15537. - request
  15538. """
  15539. thrift_spec = (
  15540. None, # 0
  15541. (1, TType.STRUCT, 'request', (AddPartitionsRequest, AddPartitionsRequest.thrift_spec), None, ), # 1
  15542. )
  15543. def __init__(self, request=None,):
  15544. self.request = request
  15545. def read(self, iprot):
  15546. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  15547. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  15548. return
  15549. iprot.readStructBegin()
  15550. while True:
  15551. (fname, ftype, fid) = iprot.readFieldBegin()
  15552. if ftype == TType.STOP:
  15553. break
  15554. if fid == 1:
  15555. if ftype == TType.STRUCT:
  15556. self.request = AddPartitionsRequest()
  15557. self.request.read(iprot)
  15558. else:
  15559. iprot.skip(ftype)
  15560. else:
  15561. iprot.skip(ftype)
  15562. iprot.readFieldEnd()
  15563. iprot.readStructEnd()
  15564. def write(self, oprot):
  15565. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  15566. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  15567. return
  15568. oprot.writeStructBegin('add_partitions_req_args')
  15569. if self.request is not None:
  15570. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  15571. self.request.write(oprot)
  15572. oprot.writeFieldEnd()
  15573. oprot.writeFieldStop()
  15574. oprot.writeStructEnd()
  15575. def validate(self):
  15576. return
  15577. def __hash__(self):
  15578. value = 17
  15579. value = (value * 31) ^ hash(self.request)
  15580. return value
  15581. def __repr__(self):
  15582. L = ['%s=%r' % (key, value)
  15583. for key, value in self.__dict__.iteritems()]
  15584. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15585. def __eq__(self, other):
  15586. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15587. def __ne__(self, other):
  15588. return not (self == other)
  15589. class add_partitions_req_result(object):
  15590. """
  15591. Attributes:
  15592. - success
  15593. - o1
  15594. - o2
  15595. - o3
  15596. """
  15597. thrift_spec = (
  15598. (0, TType.STRUCT, 'success', (AddPartitionsResult, AddPartitionsResult.thrift_spec), None, ), # 0
  15599. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  15600. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  15601. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  15602. )
  15603. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  15604. self.success = success
  15605. self.o1 = o1
  15606. self.o2 = o2
  15607. self.o3 = o3
  15608. def read(self, iprot):
  15609. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  15610. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  15611. return
  15612. iprot.readStructBegin()
  15613. while True:
  15614. (fname, ftype, fid) = iprot.readFieldBegin()
  15615. if ftype == TType.STOP:
  15616. break
  15617. if fid == 0:
  15618. if ftype == TType.STRUCT:
  15619. self.success = AddPartitionsResult()
  15620. self.success.read(iprot)
  15621. else:
  15622. iprot.skip(ftype)
  15623. elif fid == 1:
  15624. if ftype == TType.STRUCT:
  15625. self.o1 = InvalidObjectException()
  15626. self.o1.read(iprot)
  15627. else:
  15628. iprot.skip(ftype)
  15629. elif fid == 2:
  15630. if ftype == TType.STRUCT:
  15631. self.o2 = AlreadyExistsException()
  15632. self.o2.read(iprot)
  15633. else:
  15634. iprot.skip(ftype)
  15635. elif fid == 3:
  15636. if ftype == TType.STRUCT:
  15637. self.o3 = MetaException()
  15638. self.o3.read(iprot)
  15639. else:
  15640. iprot.skip(ftype)
  15641. else:
  15642. iprot.skip(ftype)
  15643. iprot.readFieldEnd()
  15644. iprot.readStructEnd()
  15645. def write(self, oprot):
  15646. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  15647. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  15648. return
  15649. oprot.writeStructBegin('add_partitions_req_result')
  15650. if self.success is not None:
  15651. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  15652. self.success.write(oprot)
  15653. oprot.writeFieldEnd()
  15654. if self.o1 is not None:
  15655. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15656. self.o1.write(oprot)
  15657. oprot.writeFieldEnd()
  15658. if self.o2 is not None:
  15659. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15660. self.o2.write(oprot)
  15661. oprot.writeFieldEnd()
  15662. if self.o3 is not None:
  15663. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  15664. self.o3.write(oprot)
  15665. oprot.writeFieldEnd()
  15666. oprot.writeFieldStop()
  15667. oprot.writeStructEnd()
  15668. def validate(self):
  15669. return
  15670. def __hash__(self):
  15671. value = 17
  15672. value = (value * 31) ^ hash(self.success)
  15673. value = (value * 31) ^ hash(self.o1)
  15674. value = (value * 31) ^ hash(self.o2)
  15675. value = (value * 31) ^ hash(self.o3)
  15676. return value
  15677. def __repr__(self):
  15678. L = ['%s=%r' % (key, value)
  15679. for key, value in self.__dict__.iteritems()]
  15680. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15681. def __eq__(self, other):
  15682. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15683. def __ne__(self, other):
  15684. return not (self == other)
  15685. class append_partition_with_environment_context_args(object):
  15686. """
  15687. Attributes:
  15688. - db_name
  15689. - tbl_name
  15690. - part_vals
  15691. - environment_context
  15692. """
  15693. thrift_spec = (
  15694. None, # 0
  15695. (1, TType.STRING, 'db_name', None, None, ), # 1
  15696. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  15697. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  15698. (4, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 4
  15699. )
  15700. def __init__(self, db_name=None, tbl_name=None, part_vals=None, environment_context=None,):
  15701. self.db_name = db_name
  15702. self.tbl_name = tbl_name
  15703. self.part_vals = part_vals
  15704. self.environment_context = environment_context
  15705. def read(self, iprot):
  15706. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  15707. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  15708. return
  15709. iprot.readStructBegin()
  15710. while True:
  15711. (fname, ftype, fid) = iprot.readFieldBegin()
  15712. if ftype == TType.STOP:
  15713. break
  15714. if fid == 1:
  15715. if ftype == TType.STRING:
  15716. self.db_name = iprot.readString()
  15717. else:
  15718. iprot.skip(ftype)
  15719. elif fid == 2:
  15720. if ftype == TType.STRING:
  15721. self.tbl_name = iprot.readString()
  15722. else:
  15723. iprot.skip(ftype)
  15724. elif fid == 3:
  15725. if ftype == TType.LIST:
  15726. self.part_vals = []
  15727. (_etype732, _size729) = iprot.readListBegin()
  15728. for _i733 in xrange(_size729):
  15729. _elem734 = iprot.readString()
  15730. self.part_vals.append(_elem734)
  15731. iprot.readListEnd()
  15732. else:
  15733. iprot.skip(ftype)
  15734. elif fid == 4:
  15735. if ftype == TType.STRUCT:
  15736. self.environment_context = EnvironmentContext()
  15737. self.environment_context.read(iprot)
  15738. else:
  15739. iprot.skip(ftype)
  15740. else:
  15741. iprot.skip(ftype)
  15742. iprot.readFieldEnd()
  15743. iprot.readStructEnd()
  15744. def write(self, oprot):
  15745. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  15746. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  15747. return
  15748. oprot.writeStructBegin('append_partition_with_environment_context_args')
  15749. if self.db_name is not None:
  15750. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  15751. oprot.writeString(self.db_name)
  15752. oprot.writeFieldEnd()
  15753. if self.tbl_name is not None:
  15754. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  15755. oprot.writeString(self.tbl_name)
  15756. oprot.writeFieldEnd()
  15757. if self.part_vals is not None:
  15758. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  15759. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  15760. for iter735 in self.part_vals:
  15761. oprot.writeString(iter735)
  15762. oprot.writeListEnd()
  15763. oprot.writeFieldEnd()
  15764. if self.environment_context is not None:
  15765. oprot.writeFieldBegin('environment_context', TType.STRUCT, 4)
  15766. self.environment_context.write(oprot)
  15767. oprot.writeFieldEnd()
  15768. oprot.writeFieldStop()
  15769. oprot.writeStructEnd()
  15770. def validate(self):
  15771. return
  15772. def __hash__(self):
  15773. value = 17
  15774. value = (value * 31) ^ hash(self.db_name)
  15775. value = (value * 31) ^ hash(self.tbl_name)
  15776. value = (value * 31) ^ hash(self.part_vals)
  15777. value = (value * 31) ^ hash(self.environment_context)
  15778. return value
  15779. def __repr__(self):
  15780. L = ['%s=%r' % (key, value)
  15781. for key, value in self.__dict__.iteritems()]
  15782. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15783. def __eq__(self, other):
  15784. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15785. def __ne__(self, other):
  15786. return not (self == other)
  15787. class append_partition_with_environment_context_result(object):
  15788. """
  15789. Attributes:
  15790. - success
  15791. - o1
  15792. - o2
  15793. - o3
  15794. """
  15795. thrift_spec = (
  15796. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  15797. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  15798. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  15799. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  15800. )
  15801. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  15802. self.success = success
  15803. self.o1 = o1
  15804. self.o2 = o2
  15805. self.o3 = o3
  15806. def read(self, iprot):
  15807. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  15808. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  15809. return
  15810. iprot.readStructBegin()
  15811. while True:
  15812. (fname, ftype, fid) = iprot.readFieldBegin()
  15813. if ftype == TType.STOP:
  15814. break
  15815. if fid == 0:
  15816. if ftype == TType.STRUCT:
  15817. self.success = Partition()
  15818. self.success.read(iprot)
  15819. else:
  15820. iprot.skip(ftype)
  15821. elif fid == 1:
  15822. if ftype == TType.STRUCT:
  15823. self.o1 = InvalidObjectException()
  15824. self.o1.read(iprot)
  15825. else:
  15826. iprot.skip(ftype)
  15827. elif fid == 2:
  15828. if ftype == TType.STRUCT:
  15829. self.o2 = AlreadyExistsException()
  15830. self.o2.read(iprot)
  15831. else:
  15832. iprot.skip(ftype)
  15833. elif fid == 3:
  15834. if ftype == TType.STRUCT:
  15835. self.o3 = MetaException()
  15836. self.o3.read(iprot)
  15837. else:
  15838. iprot.skip(ftype)
  15839. else:
  15840. iprot.skip(ftype)
  15841. iprot.readFieldEnd()
  15842. iprot.readStructEnd()
  15843. def write(self, oprot):
  15844. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  15845. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  15846. return
  15847. oprot.writeStructBegin('append_partition_with_environment_context_result')
  15848. if self.success is not None:
  15849. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  15850. self.success.write(oprot)
  15851. oprot.writeFieldEnd()
  15852. if self.o1 is not None:
  15853. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15854. self.o1.write(oprot)
  15855. oprot.writeFieldEnd()
  15856. if self.o2 is not None:
  15857. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15858. self.o2.write(oprot)
  15859. oprot.writeFieldEnd()
  15860. if self.o3 is not None:
  15861. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  15862. self.o3.write(oprot)
  15863. oprot.writeFieldEnd()
  15864. oprot.writeFieldStop()
  15865. oprot.writeStructEnd()
  15866. def validate(self):
  15867. return
  15868. def __hash__(self):
  15869. value = 17
  15870. value = (value * 31) ^ hash(self.success)
  15871. value = (value * 31) ^ hash(self.o1)
  15872. value = (value * 31) ^ hash(self.o2)
  15873. value = (value * 31) ^ hash(self.o3)
  15874. return value
  15875. def __repr__(self):
  15876. L = ['%s=%r' % (key, value)
  15877. for key, value in self.__dict__.iteritems()]
  15878. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15879. def __eq__(self, other):
  15880. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15881. def __ne__(self, other):
  15882. return not (self == other)
  15883. class append_partition_by_name_args(object):
  15884. """
  15885. Attributes:
  15886. - db_name
  15887. - tbl_name
  15888. - part_name
  15889. """
  15890. thrift_spec = (
  15891. None, # 0
  15892. (1, TType.STRING, 'db_name', None, None, ), # 1
  15893. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  15894. (3, TType.STRING, 'part_name', None, None, ), # 3
  15895. )
  15896. def __init__(self, db_name=None, tbl_name=None, part_name=None,):
  15897. self.db_name = db_name
  15898. self.tbl_name = tbl_name
  15899. self.part_name = part_name
  15900. def read(self, iprot):
  15901. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  15902. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  15903. return
  15904. iprot.readStructBegin()
  15905. while True:
  15906. (fname, ftype, fid) = iprot.readFieldBegin()
  15907. if ftype == TType.STOP:
  15908. break
  15909. if fid == 1:
  15910. if ftype == TType.STRING:
  15911. self.db_name = iprot.readString()
  15912. else:
  15913. iprot.skip(ftype)
  15914. elif fid == 2:
  15915. if ftype == TType.STRING:
  15916. self.tbl_name = iprot.readString()
  15917. else:
  15918. iprot.skip(ftype)
  15919. elif fid == 3:
  15920. if ftype == TType.STRING:
  15921. self.part_name = iprot.readString()
  15922. else:
  15923. iprot.skip(ftype)
  15924. else:
  15925. iprot.skip(ftype)
  15926. iprot.readFieldEnd()
  15927. iprot.readStructEnd()
  15928. def write(self, oprot):
  15929. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  15930. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  15931. return
  15932. oprot.writeStructBegin('append_partition_by_name_args')
  15933. if self.db_name is not None:
  15934. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  15935. oprot.writeString(self.db_name)
  15936. oprot.writeFieldEnd()
  15937. if self.tbl_name is not None:
  15938. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  15939. oprot.writeString(self.tbl_name)
  15940. oprot.writeFieldEnd()
  15941. if self.part_name is not None:
  15942. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  15943. oprot.writeString(self.part_name)
  15944. oprot.writeFieldEnd()
  15945. oprot.writeFieldStop()
  15946. oprot.writeStructEnd()
  15947. def validate(self):
  15948. return
  15949. def __hash__(self):
  15950. value = 17
  15951. value = (value * 31) ^ hash(self.db_name)
  15952. value = (value * 31) ^ hash(self.tbl_name)
  15953. value = (value * 31) ^ hash(self.part_name)
  15954. return value
  15955. def __repr__(self):
  15956. L = ['%s=%r' % (key, value)
  15957. for key, value in self.__dict__.iteritems()]
  15958. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15959. def __eq__(self, other):
  15960. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15961. def __ne__(self, other):
  15962. return not (self == other)
  15963. class append_partition_by_name_result(object):
  15964. """
  15965. Attributes:
  15966. - success
  15967. - o1
  15968. - o2
  15969. - o3
  15970. """
  15971. thrift_spec = (
  15972. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  15973. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  15974. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  15975. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  15976. )
  15977. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  15978. self.success = success
  15979. self.o1 = o1
  15980. self.o2 = o2
  15981. self.o3 = o3
  15982. def read(self, iprot):
  15983. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  15984. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  15985. return
  15986. iprot.readStructBegin()
  15987. while True:
  15988. (fname, ftype, fid) = iprot.readFieldBegin()
  15989. if ftype == TType.STOP:
  15990. break
  15991. if fid == 0:
  15992. if ftype == TType.STRUCT:
  15993. self.success = Partition()
  15994. self.success.read(iprot)
  15995. else:
  15996. iprot.skip(ftype)
  15997. elif fid == 1:
  15998. if ftype == TType.STRUCT:
  15999. self.o1 = InvalidObjectException()
  16000. self.o1.read(iprot)
  16001. else:
  16002. iprot.skip(ftype)
  16003. elif fid == 2:
  16004. if ftype == TType.STRUCT:
  16005. self.o2 = AlreadyExistsException()
  16006. self.o2.read(iprot)
  16007. else:
  16008. iprot.skip(ftype)
  16009. elif fid == 3:
  16010. if ftype == TType.STRUCT:
  16011. self.o3 = MetaException()
  16012. self.o3.read(iprot)
  16013. else:
  16014. iprot.skip(ftype)
  16015. else:
  16016. iprot.skip(ftype)
  16017. iprot.readFieldEnd()
  16018. iprot.readStructEnd()
  16019. def write(self, oprot):
  16020. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  16021. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  16022. return
  16023. oprot.writeStructBegin('append_partition_by_name_result')
  16024. if self.success is not None:
  16025. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  16026. self.success.write(oprot)
  16027. oprot.writeFieldEnd()
  16028. if self.o1 is not None:
  16029. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  16030. self.o1.write(oprot)
  16031. oprot.writeFieldEnd()
  16032. if self.o2 is not None:
  16033. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  16034. self.o2.write(oprot)
  16035. oprot.writeFieldEnd()
  16036. if self.o3 is not None:
  16037. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  16038. self.o3.write(oprot)
  16039. oprot.writeFieldEnd()
  16040. oprot.writeFieldStop()
  16041. oprot.writeStructEnd()
  16042. def validate(self):
  16043. return
  16044. def __hash__(self):
  16045. value = 17
  16046. value = (value * 31) ^ hash(self.success)
  16047. value = (value * 31) ^ hash(self.o1)
  16048. value = (value * 31) ^ hash(self.o2)
  16049. value = (value * 31) ^ hash(self.o3)
  16050. return value
  16051. def __repr__(self):
  16052. L = ['%s=%r' % (key, value)
  16053. for key, value in self.__dict__.iteritems()]
  16054. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16055. def __eq__(self, other):
  16056. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16057. def __ne__(self, other):
  16058. return not (self == other)
  16059. class append_partition_by_name_with_environment_context_args(object):
  16060. """
  16061. Attributes:
  16062. - db_name
  16063. - tbl_name
  16064. - part_name
  16065. - environment_context
  16066. """
  16067. thrift_spec = (
  16068. None, # 0
  16069. (1, TType.STRING, 'db_name', None, None, ), # 1
  16070. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  16071. (3, TType.STRING, 'part_name', None, None, ), # 3
  16072. (4, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 4
  16073. )
  16074. def __init__(self, db_name=None, tbl_name=None, part_name=None, environment_context=None,):
  16075. self.db_name = db_name
  16076. self.tbl_name = tbl_name
  16077. self.part_name = part_name
  16078. self.environment_context = environment_context
  16079. def read(self, iprot):
  16080. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  16081. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  16082. return
  16083. iprot.readStructBegin()
  16084. while True:
  16085. (fname, ftype, fid) = iprot.readFieldBegin()
  16086. if ftype == TType.STOP:
  16087. break
  16088. if fid == 1:
  16089. if ftype == TType.STRING:
  16090. self.db_name = iprot.readString()
  16091. else:
  16092. iprot.skip(ftype)
  16093. elif fid == 2:
  16094. if ftype == TType.STRING:
  16095. self.tbl_name = iprot.readString()
  16096. else:
  16097. iprot.skip(ftype)
  16098. elif fid == 3:
  16099. if ftype == TType.STRING:
  16100. self.part_name = iprot.readString()
  16101. else:
  16102. iprot.skip(ftype)
  16103. elif fid == 4:
  16104. if ftype == TType.STRUCT:
  16105. self.environment_context = EnvironmentContext()
  16106. self.environment_context.read(iprot)
  16107. else:
  16108. iprot.skip(ftype)
  16109. else:
  16110. iprot.skip(ftype)
  16111. iprot.readFieldEnd()
  16112. iprot.readStructEnd()
  16113. def write(self, oprot):
  16114. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  16115. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  16116. return
  16117. oprot.writeStructBegin('append_partition_by_name_with_environment_context_args')
  16118. if self.db_name is not None:
  16119. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  16120. oprot.writeString(self.db_name)
  16121. oprot.writeFieldEnd()
  16122. if self.tbl_name is not None:
  16123. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  16124. oprot.writeString(self.tbl_name)
  16125. oprot.writeFieldEnd()
  16126. if self.part_name is not None:
  16127. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  16128. oprot.writeString(self.part_name)
  16129. oprot.writeFieldEnd()
  16130. if self.environment_context is not None:
  16131. oprot.writeFieldBegin('environment_context', TType.STRUCT, 4)
  16132. self.environment_context.write(oprot)
  16133. oprot.writeFieldEnd()
  16134. oprot.writeFieldStop()
  16135. oprot.writeStructEnd()
  16136. def validate(self):
  16137. return
  16138. def __hash__(self):
  16139. value = 17
  16140. value = (value * 31) ^ hash(self.db_name)
  16141. value = (value * 31) ^ hash(self.tbl_name)
  16142. value = (value * 31) ^ hash(self.part_name)
  16143. value = (value * 31) ^ hash(self.environment_context)
  16144. return value
  16145. def __repr__(self):
  16146. L = ['%s=%r' % (key, value)
  16147. for key, value in self.__dict__.iteritems()]
  16148. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16149. def __eq__(self, other):
  16150. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16151. def __ne__(self, other):
  16152. return not (self == other)
  16153. class append_partition_by_name_with_environment_context_result(object):
  16154. """
  16155. Attributes:
  16156. - success
  16157. - o1
  16158. - o2
  16159. - o3
  16160. """
  16161. thrift_spec = (
  16162. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  16163. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  16164. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  16165. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  16166. )
  16167. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  16168. self.success = success
  16169. self.o1 = o1
  16170. self.o2 = o2
  16171. self.o3 = o3
  16172. def read(self, iprot):
  16173. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  16174. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  16175. return
  16176. iprot.readStructBegin()
  16177. while True:
  16178. (fname, ftype, fid) = iprot.readFieldBegin()
  16179. if ftype == TType.STOP:
  16180. break
  16181. if fid == 0:
  16182. if ftype == TType.STRUCT:
  16183. self.success = Partition()
  16184. self.success.read(iprot)
  16185. else:
  16186. iprot.skip(ftype)
  16187. elif fid == 1:
  16188. if ftype == TType.STRUCT:
  16189. self.o1 = InvalidObjectException()
  16190. self.o1.read(iprot)
  16191. else:
  16192. iprot.skip(ftype)
  16193. elif fid == 2:
  16194. if ftype == TType.STRUCT:
  16195. self.o2 = AlreadyExistsException()
  16196. self.o2.read(iprot)
  16197. else:
  16198. iprot.skip(ftype)
  16199. elif fid == 3:
  16200. if ftype == TType.STRUCT:
  16201. self.o3 = MetaException()
  16202. self.o3.read(iprot)
  16203. else:
  16204. iprot.skip(ftype)
  16205. else:
  16206. iprot.skip(ftype)
  16207. iprot.readFieldEnd()
  16208. iprot.readStructEnd()
  16209. def write(self, oprot):
  16210. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  16211. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  16212. return
  16213. oprot.writeStructBegin('append_partition_by_name_with_environment_context_result')
  16214. if self.success is not None:
  16215. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  16216. self.success.write(oprot)
  16217. oprot.writeFieldEnd()
  16218. if self.o1 is not None:
  16219. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  16220. self.o1.write(oprot)
  16221. oprot.writeFieldEnd()
  16222. if self.o2 is not None:
  16223. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  16224. self.o2.write(oprot)
  16225. oprot.writeFieldEnd()
  16226. if self.o3 is not None:
  16227. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  16228. self.o3.write(oprot)
  16229. oprot.writeFieldEnd()
  16230. oprot.writeFieldStop()
  16231. oprot.writeStructEnd()
  16232. def validate(self):
  16233. return
  16234. def __hash__(self):
  16235. value = 17
  16236. value = (value * 31) ^ hash(self.success)
  16237. value = (value * 31) ^ hash(self.o1)
  16238. value = (value * 31) ^ hash(self.o2)
  16239. value = (value * 31) ^ hash(self.o3)
  16240. return value
  16241. def __repr__(self):
  16242. L = ['%s=%r' % (key, value)
  16243. for key, value in self.__dict__.iteritems()]
  16244. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16245. def __eq__(self, other):
  16246. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16247. def __ne__(self, other):
  16248. return not (self == other)
  16249. class drop_partition_args(object):
  16250. """
  16251. Attributes:
  16252. - db_name
  16253. - tbl_name
  16254. - part_vals
  16255. - deleteData
  16256. """
  16257. thrift_spec = (
  16258. None, # 0
  16259. (1, TType.STRING, 'db_name', None, None, ), # 1
  16260. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  16261. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  16262. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  16263. )
  16264. def __init__(self, db_name=None, tbl_name=None, part_vals=None, deleteData=None,):
  16265. self.db_name = db_name
  16266. self.tbl_name = tbl_name
  16267. self.part_vals = part_vals
  16268. self.deleteData = deleteData
  16269. def read(self, iprot):
  16270. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  16271. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  16272. return
  16273. iprot.readStructBegin()
  16274. while True:
  16275. (fname, ftype, fid) = iprot.readFieldBegin()
  16276. if ftype == TType.STOP:
  16277. break
  16278. if fid == 1:
  16279. if ftype == TType.STRING:
  16280. self.db_name = iprot.readString()
  16281. else:
  16282. iprot.skip(ftype)
  16283. elif fid == 2:
  16284. if ftype == TType.STRING:
  16285. self.tbl_name = iprot.readString()
  16286. else:
  16287. iprot.skip(ftype)
  16288. elif fid == 3:
  16289. if ftype == TType.LIST:
  16290. self.part_vals = []
  16291. (_etype739, _size736) = iprot.readListBegin()
  16292. for _i740 in xrange(_size736):
  16293. _elem741 = iprot.readString()
  16294. self.part_vals.append(_elem741)
  16295. iprot.readListEnd()
  16296. else:
  16297. iprot.skip(ftype)
  16298. elif fid == 4:
  16299. if ftype == TType.BOOL:
  16300. self.deleteData = iprot.readBool()
  16301. else:
  16302. iprot.skip(ftype)
  16303. else:
  16304. iprot.skip(ftype)
  16305. iprot.readFieldEnd()
  16306. iprot.readStructEnd()
  16307. def write(self, oprot):
  16308. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  16309. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  16310. return
  16311. oprot.writeStructBegin('drop_partition_args')
  16312. if self.db_name is not None:
  16313. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  16314. oprot.writeString(self.db_name)
  16315. oprot.writeFieldEnd()
  16316. if self.tbl_name is not None:
  16317. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  16318. oprot.writeString(self.tbl_name)
  16319. oprot.writeFieldEnd()
  16320. if self.part_vals is not None:
  16321. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  16322. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  16323. for iter742 in self.part_vals:
  16324. oprot.writeString(iter742)
  16325. oprot.writeListEnd()
  16326. oprot.writeFieldEnd()
  16327. if self.deleteData is not None:
  16328. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  16329. oprot.writeBool(self.deleteData)
  16330. oprot.writeFieldEnd()
  16331. oprot.writeFieldStop()
  16332. oprot.writeStructEnd()
  16333. def validate(self):
  16334. return
  16335. def __hash__(self):
  16336. value = 17
  16337. value = (value * 31) ^ hash(self.db_name)
  16338. value = (value * 31) ^ hash(self.tbl_name)
  16339. value = (value * 31) ^ hash(self.part_vals)
  16340. value = (value * 31) ^ hash(self.deleteData)
  16341. return value
  16342. def __repr__(self):
  16343. L = ['%s=%r' % (key, value)
  16344. for key, value in self.__dict__.iteritems()]
  16345. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16346. def __eq__(self, other):
  16347. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16348. def __ne__(self, other):
  16349. return not (self == other)
  16350. class drop_partition_result(object):
  16351. """
  16352. Attributes:
  16353. - success
  16354. - o1
  16355. - o2
  16356. """
  16357. thrift_spec = (
  16358. (0, TType.BOOL, 'success', None, None, ), # 0
  16359. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  16360. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  16361. )
  16362. def __init__(self, success=None, o1=None, o2=None,):
  16363. self.success = success
  16364. self.o1 = o1
  16365. self.o2 = o2
  16366. def read(self, iprot):
  16367. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  16368. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  16369. return
  16370. iprot.readStructBegin()
  16371. while True:
  16372. (fname, ftype, fid) = iprot.readFieldBegin()
  16373. if ftype == TType.STOP:
  16374. break
  16375. if fid == 0:
  16376. if ftype == TType.BOOL:
  16377. self.success = iprot.readBool()
  16378. else:
  16379. iprot.skip(ftype)
  16380. elif fid == 1:
  16381. if ftype == TType.STRUCT:
  16382. self.o1 = NoSuchObjectException()
  16383. self.o1.read(iprot)
  16384. else:
  16385. iprot.skip(ftype)
  16386. elif fid == 2:
  16387. if ftype == TType.STRUCT:
  16388. self.o2 = MetaException()
  16389. self.o2.read(iprot)
  16390. else:
  16391. iprot.skip(ftype)
  16392. else:
  16393. iprot.skip(ftype)
  16394. iprot.readFieldEnd()
  16395. iprot.readStructEnd()
  16396. def write(self, oprot):
  16397. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  16398. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  16399. return
  16400. oprot.writeStructBegin('drop_partition_result')
  16401. if self.success is not None:
  16402. oprot.writeFieldBegin('success', TType.BOOL, 0)
  16403. oprot.writeBool(self.success)
  16404. oprot.writeFieldEnd()
  16405. if self.o1 is not None:
  16406. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  16407. self.o1.write(oprot)
  16408. oprot.writeFieldEnd()
  16409. if self.o2 is not None:
  16410. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  16411. self.o2.write(oprot)
  16412. oprot.writeFieldEnd()
  16413. oprot.writeFieldStop()
  16414. oprot.writeStructEnd()
  16415. def validate(self):
  16416. return
  16417. def __hash__(self):
  16418. value = 17
  16419. value = (value * 31) ^ hash(self.success)
  16420. value = (value * 31) ^ hash(self.o1)
  16421. value = (value * 31) ^ hash(self.o2)
  16422. return value
  16423. def __repr__(self):
  16424. L = ['%s=%r' % (key, value)
  16425. for key, value in self.__dict__.iteritems()]
  16426. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16427. def __eq__(self, other):
  16428. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16429. def __ne__(self, other):
  16430. return not (self == other)
  16431. class drop_partition_with_environment_context_args(object):
  16432. """
  16433. Attributes:
  16434. - db_name
  16435. - tbl_name
  16436. - part_vals
  16437. - deleteData
  16438. - environment_context
  16439. """
  16440. thrift_spec = (
  16441. None, # 0
  16442. (1, TType.STRING, 'db_name', None, None, ), # 1
  16443. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  16444. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  16445. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  16446. (5, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 5
  16447. )
  16448. def __init__(self, db_name=None, tbl_name=None, part_vals=None, deleteData=None, environment_context=None,):
  16449. self.db_name = db_name
  16450. self.tbl_name = tbl_name
  16451. self.part_vals = part_vals
  16452. self.deleteData = deleteData
  16453. self.environment_context = environment_context
  16454. def read(self, iprot):
  16455. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  16456. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  16457. return
  16458. iprot.readStructBegin()
  16459. while True:
  16460. (fname, ftype, fid) = iprot.readFieldBegin()
  16461. if ftype == TType.STOP:
  16462. break
  16463. if fid == 1:
  16464. if ftype == TType.STRING:
  16465. self.db_name = iprot.readString()
  16466. else:
  16467. iprot.skip(ftype)
  16468. elif fid == 2:
  16469. if ftype == TType.STRING:
  16470. self.tbl_name = iprot.readString()
  16471. else:
  16472. iprot.skip(ftype)
  16473. elif fid == 3:
  16474. if ftype == TType.LIST:
  16475. self.part_vals = []
  16476. (_etype746, _size743) = iprot.readListBegin()
  16477. for _i747 in xrange(_size743):
  16478. _elem748 = iprot.readString()
  16479. self.part_vals.append(_elem748)
  16480. iprot.readListEnd()
  16481. else:
  16482. iprot.skip(ftype)
  16483. elif fid == 4:
  16484. if ftype == TType.BOOL:
  16485. self.deleteData = iprot.readBool()
  16486. else:
  16487. iprot.skip(ftype)
  16488. elif fid == 5:
  16489. if ftype == TType.STRUCT:
  16490. self.environment_context = EnvironmentContext()
  16491. self.environment_context.read(iprot)
  16492. else:
  16493. iprot.skip(ftype)
  16494. else:
  16495. iprot.skip(ftype)
  16496. iprot.readFieldEnd()
  16497. iprot.readStructEnd()
  16498. def write(self, oprot):
  16499. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  16500. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  16501. return
  16502. oprot.writeStructBegin('drop_partition_with_environment_context_args')
  16503. if self.db_name is not None:
  16504. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  16505. oprot.writeString(self.db_name)
  16506. oprot.writeFieldEnd()
  16507. if self.tbl_name is not None:
  16508. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  16509. oprot.writeString(self.tbl_name)
  16510. oprot.writeFieldEnd()
  16511. if self.part_vals is not None:
  16512. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  16513. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  16514. for iter749 in self.part_vals:
  16515. oprot.writeString(iter749)
  16516. oprot.writeListEnd()
  16517. oprot.writeFieldEnd()
  16518. if self.deleteData is not None:
  16519. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  16520. oprot.writeBool(self.deleteData)
  16521. oprot.writeFieldEnd()
  16522. if self.environment_context is not None:
  16523. oprot.writeFieldBegin('environment_context', TType.STRUCT, 5)
  16524. self.environment_context.write(oprot)
  16525. oprot.writeFieldEnd()
  16526. oprot.writeFieldStop()
  16527. oprot.writeStructEnd()
  16528. def validate(self):
  16529. return
  16530. def __hash__(self):
  16531. value = 17
  16532. value = (value * 31) ^ hash(self.db_name)
  16533. value = (value * 31) ^ hash(self.tbl_name)
  16534. value = (value * 31) ^ hash(self.part_vals)
  16535. value = (value * 31) ^ hash(self.deleteData)
  16536. value = (value * 31) ^ hash(self.environment_context)
  16537. return value
  16538. def __repr__(self):
  16539. L = ['%s=%r' % (key, value)
  16540. for key, value in self.__dict__.iteritems()]
  16541. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16542. def __eq__(self, other):
  16543. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16544. def __ne__(self, other):
  16545. return not (self == other)
  16546. class drop_partition_with_environment_context_result(object):
  16547. """
  16548. Attributes:
  16549. - success
  16550. - o1
  16551. - o2
  16552. """
  16553. thrift_spec = (
  16554. (0, TType.BOOL, 'success', None, None, ), # 0
  16555. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  16556. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  16557. )
  16558. def __init__(self, success=None, o1=None, o2=None,):
  16559. self.success = success
  16560. self.o1 = o1
  16561. self.o2 = o2
  16562. def read(self, iprot):
  16563. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  16564. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  16565. return
  16566. iprot.readStructBegin()
  16567. while True:
  16568. (fname, ftype, fid) = iprot.readFieldBegin()
  16569. if ftype == TType.STOP:
  16570. break
  16571. if fid == 0:
  16572. if ftype == TType.BOOL:
  16573. self.success = iprot.readBool()
  16574. else:
  16575. iprot.skip(ftype)
  16576. elif fid == 1:
  16577. if ftype == TType.STRUCT:
  16578. self.o1 = NoSuchObjectException()
  16579. self.o1.read(iprot)
  16580. else:
  16581. iprot.skip(ftype)
  16582. elif fid == 2:
  16583. if ftype == TType.STRUCT:
  16584. self.o2 = MetaException()
  16585. self.o2.read(iprot)
  16586. else:
  16587. iprot.skip(ftype)
  16588. else:
  16589. iprot.skip(ftype)
  16590. iprot.readFieldEnd()
  16591. iprot.readStructEnd()
  16592. def write(self, oprot):
  16593. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  16594. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  16595. return
  16596. oprot.writeStructBegin('drop_partition_with_environment_context_result')
  16597. if self.success is not None:
  16598. oprot.writeFieldBegin('success', TType.BOOL, 0)
  16599. oprot.writeBool(self.success)
  16600. oprot.writeFieldEnd()
  16601. if self.o1 is not None:
  16602. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  16603. self.o1.write(oprot)
  16604. oprot.writeFieldEnd()
  16605. if self.o2 is not None:
  16606. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  16607. self.o2.write(oprot)
  16608. oprot.writeFieldEnd()
  16609. oprot.writeFieldStop()
  16610. oprot.writeStructEnd()
  16611. def validate(self):
  16612. return
  16613. def __hash__(self):
  16614. value = 17
  16615. value = (value * 31) ^ hash(self.success)
  16616. value = (value * 31) ^ hash(self.o1)
  16617. value = (value * 31) ^ hash(self.o2)
  16618. return value
  16619. def __repr__(self):
  16620. L = ['%s=%r' % (key, value)
  16621. for key, value in self.__dict__.iteritems()]
  16622. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16623. def __eq__(self, other):
  16624. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16625. def __ne__(self, other):
  16626. return not (self == other)
  16627. class drop_partition_by_name_args(object):
  16628. """
  16629. Attributes:
  16630. - db_name
  16631. - tbl_name
  16632. - part_name
  16633. - deleteData
  16634. """
  16635. thrift_spec = (
  16636. None, # 0
  16637. (1, TType.STRING, 'db_name', None, None, ), # 1
  16638. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  16639. (3, TType.STRING, 'part_name', None, None, ), # 3
  16640. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  16641. )
  16642. def __init__(self, db_name=None, tbl_name=None, part_name=None, deleteData=None,):
  16643. self.db_name = db_name
  16644. self.tbl_name = tbl_name
  16645. self.part_name = part_name
  16646. self.deleteData = deleteData
  16647. def read(self, iprot):
  16648. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  16649. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  16650. return
  16651. iprot.readStructBegin()
  16652. while True:
  16653. (fname, ftype, fid) = iprot.readFieldBegin()
  16654. if ftype == TType.STOP:
  16655. break
  16656. if fid == 1:
  16657. if ftype == TType.STRING:
  16658. self.db_name = iprot.readString()
  16659. else:
  16660. iprot.skip(ftype)
  16661. elif fid == 2:
  16662. if ftype == TType.STRING:
  16663. self.tbl_name = iprot.readString()
  16664. else:
  16665. iprot.skip(ftype)
  16666. elif fid == 3:
  16667. if ftype == TType.STRING:
  16668. self.part_name = iprot.readString()
  16669. else:
  16670. iprot.skip(ftype)
  16671. elif fid == 4:
  16672. if ftype == TType.BOOL:
  16673. self.deleteData = iprot.readBool()
  16674. else:
  16675. iprot.skip(ftype)
  16676. else:
  16677. iprot.skip(ftype)
  16678. iprot.readFieldEnd()
  16679. iprot.readStructEnd()
  16680. def write(self, oprot):
  16681. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  16682. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  16683. return
  16684. oprot.writeStructBegin('drop_partition_by_name_args')
  16685. if self.db_name is not None:
  16686. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  16687. oprot.writeString(self.db_name)
  16688. oprot.writeFieldEnd()
  16689. if self.tbl_name is not None:
  16690. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  16691. oprot.writeString(self.tbl_name)
  16692. oprot.writeFieldEnd()
  16693. if self.part_name is not None:
  16694. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  16695. oprot.writeString(self.part_name)
  16696. oprot.writeFieldEnd()
  16697. if self.deleteData is not None:
  16698. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  16699. oprot.writeBool(self.deleteData)
  16700. oprot.writeFieldEnd()
  16701. oprot.writeFieldStop()
  16702. oprot.writeStructEnd()
  16703. def validate(self):
  16704. return
  16705. def __hash__(self):
  16706. value = 17
  16707. value = (value * 31) ^ hash(self.db_name)
  16708. value = (value * 31) ^ hash(self.tbl_name)
  16709. value = (value * 31) ^ hash(self.part_name)
  16710. value = (value * 31) ^ hash(self.deleteData)
  16711. return value
  16712. def __repr__(self):
  16713. L = ['%s=%r' % (key, value)
  16714. for key, value in self.__dict__.iteritems()]
  16715. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16716. def __eq__(self, other):
  16717. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16718. def __ne__(self, other):
  16719. return not (self == other)
  16720. class drop_partition_by_name_result(object):
  16721. """
  16722. Attributes:
  16723. - success
  16724. - o1
  16725. - o2
  16726. """
  16727. thrift_spec = (
  16728. (0, TType.BOOL, 'success', None, None, ), # 0
  16729. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  16730. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  16731. )
  16732. def __init__(self, success=None, o1=None, o2=None,):
  16733. self.success = success
  16734. self.o1 = o1
  16735. self.o2 = o2
  16736. def read(self, iprot):
  16737. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  16738. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  16739. return
  16740. iprot.readStructBegin()
  16741. while True:
  16742. (fname, ftype, fid) = iprot.readFieldBegin()
  16743. if ftype == TType.STOP:
  16744. break
  16745. if fid == 0:
  16746. if ftype == TType.BOOL:
  16747. self.success = iprot.readBool()
  16748. else:
  16749. iprot.skip(ftype)
  16750. elif fid == 1:
  16751. if ftype == TType.STRUCT:
  16752. self.o1 = NoSuchObjectException()
  16753. self.o1.read(iprot)
  16754. else:
  16755. iprot.skip(ftype)
  16756. elif fid == 2:
  16757. if ftype == TType.STRUCT:
  16758. self.o2 = MetaException()
  16759. self.o2.read(iprot)
  16760. else:
  16761. iprot.skip(ftype)
  16762. else:
  16763. iprot.skip(ftype)
  16764. iprot.readFieldEnd()
  16765. iprot.readStructEnd()
  16766. def write(self, oprot):
  16767. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  16768. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  16769. return
  16770. oprot.writeStructBegin('drop_partition_by_name_result')
  16771. if self.success is not None:
  16772. oprot.writeFieldBegin('success', TType.BOOL, 0)
  16773. oprot.writeBool(self.success)
  16774. oprot.writeFieldEnd()
  16775. if self.o1 is not None:
  16776. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  16777. self.o1.write(oprot)
  16778. oprot.writeFieldEnd()
  16779. if self.o2 is not None:
  16780. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  16781. self.o2.write(oprot)
  16782. oprot.writeFieldEnd()
  16783. oprot.writeFieldStop()
  16784. oprot.writeStructEnd()
  16785. def validate(self):
  16786. return
  16787. def __hash__(self):
  16788. value = 17
  16789. value = (value * 31) ^ hash(self.success)
  16790. value = (value * 31) ^ hash(self.o1)
  16791. value = (value * 31) ^ hash(self.o2)
  16792. return value
  16793. def __repr__(self):
  16794. L = ['%s=%r' % (key, value)
  16795. for key, value in self.__dict__.iteritems()]
  16796. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16797. def __eq__(self, other):
  16798. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16799. def __ne__(self, other):
  16800. return not (self == other)
  16801. class drop_partition_by_name_with_environment_context_args(object):
  16802. """
  16803. Attributes:
  16804. - db_name
  16805. - tbl_name
  16806. - part_name
  16807. - deleteData
  16808. - environment_context
  16809. """
  16810. thrift_spec = (
  16811. None, # 0
  16812. (1, TType.STRING, 'db_name', None, None, ), # 1
  16813. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  16814. (3, TType.STRING, 'part_name', None, None, ), # 3
  16815. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  16816. (5, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 5
  16817. )
  16818. def __init__(self, db_name=None, tbl_name=None, part_name=None, deleteData=None, environment_context=None,):
  16819. self.db_name = db_name
  16820. self.tbl_name = tbl_name
  16821. self.part_name = part_name
  16822. self.deleteData = deleteData
  16823. self.environment_context = environment_context
  16824. def read(self, iprot):
  16825. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  16826. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  16827. return
  16828. iprot.readStructBegin()
  16829. while True:
  16830. (fname, ftype, fid) = iprot.readFieldBegin()
  16831. if ftype == TType.STOP:
  16832. break
  16833. if fid == 1:
  16834. if ftype == TType.STRING:
  16835. self.db_name = iprot.readString()
  16836. else:
  16837. iprot.skip(ftype)
  16838. elif fid == 2:
  16839. if ftype == TType.STRING:
  16840. self.tbl_name = iprot.readString()
  16841. else:
  16842. iprot.skip(ftype)
  16843. elif fid == 3:
  16844. if ftype == TType.STRING:
  16845. self.part_name = iprot.readString()
  16846. else:
  16847. iprot.skip(ftype)
  16848. elif fid == 4:
  16849. if ftype == TType.BOOL:
  16850. self.deleteData = iprot.readBool()
  16851. else:
  16852. iprot.skip(ftype)
  16853. elif fid == 5:
  16854. if ftype == TType.STRUCT:
  16855. self.environment_context = EnvironmentContext()
  16856. self.environment_context.read(iprot)
  16857. else:
  16858. iprot.skip(ftype)
  16859. else:
  16860. iprot.skip(ftype)
  16861. iprot.readFieldEnd()
  16862. iprot.readStructEnd()
  16863. def write(self, oprot):
  16864. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  16865. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  16866. return
  16867. oprot.writeStructBegin('drop_partition_by_name_with_environment_context_args')
  16868. if self.db_name is not None:
  16869. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  16870. oprot.writeString(self.db_name)
  16871. oprot.writeFieldEnd()
  16872. if self.tbl_name is not None:
  16873. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  16874. oprot.writeString(self.tbl_name)
  16875. oprot.writeFieldEnd()
  16876. if self.part_name is not None:
  16877. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  16878. oprot.writeString(self.part_name)
  16879. oprot.writeFieldEnd()
  16880. if self.deleteData is not None:
  16881. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  16882. oprot.writeBool(self.deleteData)
  16883. oprot.writeFieldEnd()
  16884. if self.environment_context is not None:
  16885. oprot.writeFieldBegin('environment_context', TType.STRUCT, 5)
  16886. self.environment_context.write(oprot)
  16887. oprot.writeFieldEnd()
  16888. oprot.writeFieldStop()
  16889. oprot.writeStructEnd()
  16890. def validate(self):
  16891. return
  16892. def __hash__(self):
  16893. value = 17
  16894. value = (value * 31) ^ hash(self.db_name)
  16895. value = (value * 31) ^ hash(self.tbl_name)
  16896. value = (value * 31) ^ hash(self.part_name)
  16897. value = (value * 31) ^ hash(self.deleteData)
  16898. value = (value * 31) ^ hash(self.environment_context)
  16899. return value
  16900. def __repr__(self):
  16901. L = ['%s=%r' % (key, value)
  16902. for key, value in self.__dict__.iteritems()]
  16903. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16904. def __eq__(self, other):
  16905. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16906. def __ne__(self, other):
  16907. return not (self == other)
  16908. class drop_partition_by_name_with_environment_context_result(object):
  16909. """
  16910. Attributes:
  16911. - success
  16912. - o1
  16913. - o2
  16914. """
  16915. thrift_spec = (
  16916. (0, TType.BOOL, 'success', None, None, ), # 0
  16917. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  16918. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  16919. )
  16920. def __init__(self, success=None, o1=None, o2=None,):
  16921. self.success = success
  16922. self.o1 = o1
  16923. self.o2 = o2
  16924. def read(self, iprot):
  16925. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  16926. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  16927. return
  16928. iprot.readStructBegin()
  16929. while True:
  16930. (fname, ftype, fid) = iprot.readFieldBegin()
  16931. if ftype == TType.STOP:
  16932. break
  16933. if fid == 0:
  16934. if ftype == TType.BOOL:
  16935. self.success = iprot.readBool()
  16936. else:
  16937. iprot.skip(ftype)
  16938. elif fid == 1:
  16939. if ftype == TType.STRUCT:
  16940. self.o1 = NoSuchObjectException()
  16941. self.o1.read(iprot)
  16942. else:
  16943. iprot.skip(ftype)
  16944. elif fid == 2:
  16945. if ftype == TType.STRUCT:
  16946. self.o2 = MetaException()
  16947. self.o2.read(iprot)
  16948. else:
  16949. iprot.skip(ftype)
  16950. else:
  16951. iprot.skip(ftype)
  16952. iprot.readFieldEnd()
  16953. iprot.readStructEnd()
  16954. def write(self, oprot):
  16955. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  16956. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  16957. return
  16958. oprot.writeStructBegin('drop_partition_by_name_with_environment_context_result')
  16959. if self.success is not None:
  16960. oprot.writeFieldBegin('success', TType.BOOL, 0)
  16961. oprot.writeBool(self.success)
  16962. oprot.writeFieldEnd()
  16963. if self.o1 is not None:
  16964. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  16965. self.o1.write(oprot)
  16966. oprot.writeFieldEnd()
  16967. if self.o2 is not None:
  16968. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  16969. self.o2.write(oprot)
  16970. oprot.writeFieldEnd()
  16971. oprot.writeFieldStop()
  16972. oprot.writeStructEnd()
  16973. def validate(self):
  16974. return
  16975. def __hash__(self):
  16976. value = 17
  16977. value = (value * 31) ^ hash(self.success)
  16978. value = (value * 31) ^ hash(self.o1)
  16979. value = (value * 31) ^ hash(self.o2)
  16980. return value
  16981. def __repr__(self):
  16982. L = ['%s=%r' % (key, value)
  16983. for key, value in self.__dict__.iteritems()]
  16984. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16985. def __eq__(self, other):
  16986. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16987. def __ne__(self, other):
  16988. return not (self == other)
  16989. class drop_partitions_req_args(object):
  16990. """
  16991. Attributes:
  16992. - req
  16993. """
  16994. thrift_spec = (
  16995. None, # 0
  16996. (1, TType.STRUCT, 'req', (DropPartitionsRequest, DropPartitionsRequest.thrift_spec), None, ), # 1
  16997. )
  16998. def __init__(self, req=None,):
  16999. self.req = req
  17000. def read(self, iprot):
  17001. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  17002. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  17003. return
  17004. iprot.readStructBegin()
  17005. while True:
  17006. (fname, ftype, fid) = iprot.readFieldBegin()
  17007. if ftype == TType.STOP:
  17008. break
  17009. if fid == 1:
  17010. if ftype == TType.STRUCT:
  17011. self.req = DropPartitionsRequest()
  17012. self.req.read(iprot)
  17013. else:
  17014. iprot.skip(ftype)
  17015. else:
  17016. iprot.skip(ftype)
  17017. iprot.readFieldEnd()
  17018. iprot.readStructEnd()
  17019. def write(self, oprot):
  17020. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  17021. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  17022. return
  17023. oprot.writeStructBegin('drop_partitions_req_args')
  17024. if self.req is not None:
  17025. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  17026. self.req.write(oprot)
  17027. oprot.writeFieldEnd()
  17028. oprot.writeFieldStop()
  17029. oprot.writeStructEnd()
  17030. def validate(self):
  17031. return
  17032. def __hash__(self):
  17033. value = 17
  17034. value = (value * 31) ^ hash(self.req)
  17035. return value
  17036. def __repr__(self):
  17037. L = ['%s=%r' % (key, value)
  17038. for key, value in self.__dict__.iteritems()]
  17039. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17040. def __eq__(self, other):
  17041. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17042. def __ne__(self, other):
  17043. return not (self == other)
  17044. class drop_partitions_req_result(object):
  17045. """
  17046. Attributes:
  17047. - success
  17048. - o1
  17049. - o2
  17050. """
  17051. thrift_spec = (
  17052. (0, TType.STRUCT, 'success', (DropPartitionsResult, DropPartitionsResult.thrift_spec), None, ), # 0
  17053. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  17054. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  17055. )
  17056. def __init__(self, success=None, o1=None, o2=None,):
  17057. self.success = success
  17058. self.o1 = o1
  17059. self.o2 = o2
  17060. def read(self, iprot):
  17061. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  17062. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  17063. return
  17064. iprot.readStructBegin()
  17065. while True:
  17066. (fname, ftype, fid) = iprot.readFieldBegin()
  17067. if ftype == TType.STOP:
  17068. break
  17069. if fid == 0:
  17070. if ftype == TType.STRUCT:
  17071. self.success = DropPartitionsResult()
  17072. self.success.read(iprot)
  17073. else:
  17074. iprot.skip(ftype)
  17075. elif fid == 1:
  17076. if ftype == TType.STRUCT:
  17077. self.o1 = NoSuchObjectException()
  17078. self.o1.read(iprot)
  17079. else:
  17080. iprot.skip(ftype)
  17081. elif fid == 2:
  17082. if ftype == TType.STRUCT:
  17083. self.o2 = MetaException()
  17084. self.o2.read(iprot)
  17085. else:
  17086. iprot.skip(ftype)
  17087. else:
  17088. iprot.skip(ftype)
  17089. iprot.readFieldEnd()
  17090. iprot.readStructEnd()
  17091. def write(self, oprot):
  17092. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  17093. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  17094. return
  17095. oprot.writeStructBegin('drop_partitions_req_result')
  17096. if self.success is not None:
  17097. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  17098. self.success.write(oprot)
  17099. oprot.writeFieldEnd()
  17100. if self.o1 is not None:
  17101. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  17102. self.o1.write(oprot)
  17103. oprot.writeFieldEnd()
  17104. if self.o2 is not None:
  17105. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  17106. self.o2.write(oprot)
  17107. oprot.writeFieldEnd()
  17108. oprot.writeFieldStop()
  17109. oprot.writeStructEnd()
  17110. def validate(self):
  17111. return
  17112. def __hash__(self):
  17113. value = 17
  17114. value = (value * 31) ^ hash(self.success)
  17115. value = (value * 31) ^ hash(self.o1)
  17116. value = (value * 31) ^ hash(self.o2)
  17117. return value
  17118. def __repr__(self):
  17119. L = ['%s=%r' % (key, value)
  17120. for key, value in self.__dict__.iteritems()]
  17121. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17122. def __eq__(self, other):
  17123. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17124. def __ne__(self, other):
  17125. return not (self == other)
  17126. class get_partition_args(object):
  17127. """
  17128. Attributes:
  17129. - db_name
  17130. - tbl_name
  17131. - part_vals
  17132. """
  17133. thrift_spec = (
  17134. None, # 0
  17135. (1, TType.STRING, 'db_name', None, None, ), # 1
  17136. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  17137. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  17138. )
  17139. def __init__(self, db_name=None, tbl_name=None, part_vals=None,):
  17140. self.db_name = db_name
  17141. self.tbl_name = tbl_name
  17142. self.part_vals = part_vals
  17143. def read(self, iprot):
  17144. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  17145. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  17146. return
  17147. iprot.readStructBegin()
  17148. while True:
  17149. (fname, ftype, fid) = iprot.readFieldBegin()
  17150. if ftype == TType.STOP:
  17151. break
  17152. if fid == 1:
  17153. if ftype == TType.STRING:
  17154. self.db_name = iprot.readString()
  17155. else:
  17156. iprot.skip(ftype)
  17157. elif fid == 2:
  17158. if ftype == TType.STRING:
  17159. self.tbl_name = iprot.readString()
  17160. else:
  17161. iprot.skip(ftype)
  17162. elif fid == 3:
  17163. if ftype == TType.LIST:
  17164. self.part_vals = []
  17165. (_etype753, _size750) = iprot.readListBegin()
  17166. for _i754 in xrange(_size750):
  17167. _elem755 = iprot.readString()
  17168. self.part_vals.append(_elem755)
  17169. iprot.readListEnd()
  17170. else:
  17171. iprot.skip(ftype)
  17172. else:
  17173. iprot.skip(ftype)
  17174. iprot.readFieldEnd()
  17175. iprot.readStructEnd()
  17176. def write(self, oprot):
  17177. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  17178. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  17179. return
  17180. oprot.writeStructBegin('get_partition_args')
  17181. if self.db_name is not None:
  17182. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  17183. oprot.writeString(self.db_name)
  17184. oprot.writeFieldEnd()
  17185. if self.tbl_name is not None:
  17186. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  17187. oprot.writeString(self.tbl_name)
  17188. oprot.writeFieldEnd()
  17189. if self.part_vals is not None:
  17190. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  17191. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  17192. for iter756 in self.part_vals:
  17193. oprot.writeString(iter756)
  17194. oprot.writeListEnd()
  17195. oprot.writeFieldEnd()
  17196. oprot.writeFieldStop()
  17197. oprot.writeStructEnd()
  17198. def validate(self):
  17199. return
  17200. def __hash__(self):
  17201. value = 17
  17202. value = (value * 31) ^ hash(self.db_name)
  17203. value = (value * 31) ^ hash(self.tbl_name)
  17204. value = (value * 31) ^ hash(self.part_vals)
  17205. return value
  17206. def __repr__(self):
  17207. L = ['%s=%r' % (key, value)
  17208. for key, value in self.__dict__.iteritems()]
  17209. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17210. def __eq__(self, other):
  17211. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17212. def __ne__(self, other):
  17213. return not (self == other)
  17214. class get_partition_result(object):
  17215. """
  17216. Attributes:
  17217. - success
  17218. - o1
  17219. - o2
  17220. """
  17221. thrift_spec = (
  17222. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  17223. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  17224. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  17225. )
  17226. def __init__(self, success=None, o1=None, o2=None,):
  17227. self.success = success
  17228. self.o1 = o1
  17229. self.o2 = o2
  17230. def read(self, iprot):
  17231. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  17232. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  17233. return
  17234. iprot.readStructBegin()
  17235. while True:
  17236. (fname, ftype, fid) = iprot.readFieldBegin()
  17237. if ftype == TType.STOP:
  17238. break
  17239. if fid == 0:
  17240. if ftype == TType.STRUCT:
  17241. self.success = Partition()
  17242. self.success.read(iprot)
  17243. else:
  17244. iprot.skip(ftype)
  17245. elif fid == 1:
  17246. if ftype == TType.STRUCT:
  17247. self.o1 = MetaException()
  17248. self.o1.read(iprot)
  17249. else:
  17250. iprot.skip(ftype)
  17251. elif fid == 2:
  17252. if ftype == TType.STRUCT:
  17253. self.o2 = NoSuchObjectException()
  17254. self.o2.read(iprot)
  17255. else:
  17256. iprot.skip(ftype)
  17257. else:
  17258. iprot.skip(ftype)
  17259. iprot.readFieldEnd()
  17260. iprot.readStructEnd()
  17261. def write(self, oprot):
  17262. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  17263. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  17264. return
  17265. oprot.writeStructBegin('get_partition_result')
  17266. if self.success is not None:
  17267. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  17268. self.success.write(oprot)
  17269. oprot.writeFieldEnd()
  17270. if self.o1 is not None:
  17271. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  17272. self.o1.write(oprot)
  17273. oprot.writeFieldEnd()
  17274. if self.o2 is not None:
  17275. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  17276. self.o2.write(oprot)
  17277. oprot.writeFieldEnd()
  17278. oprot.writeFieldStop()
  17279. oprot.writeStructEnd()
  17280. def validate(self):
  17281. return
  17282. def __hash__(self):
  17283. value = 17
  17284. value = (value * 31) ^ hash(self.success)
  17285. value = (value * 31) ^ hash(self.o1)
  17286. value = (value * 31) ^ hash(self.o2)
  17287. return value
  17288. def __repr__(self):
  17289. L = ['%s=%r' % (key, value)
  17290. for key, value in self.__dict__.iteritems()]
  17291. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17292. def __eq__(self, other):
  17293. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17294. def __ne__(self, other):
  17295. return not (self == other)
  17296. class exchange_partition_args(object):
  17297. """
  17298. Attributes:
  17299. - partitionSpecs
  17300. - source_db
  17301. - source_table_name
  17302. - dest_db
  17303. - dest_table_name
  17304. """
  17305. thrift_spec = (
  17306. None, # 0
  17307. (1, TType.MAP, 'partitionSpecs', (TType.STRING,None,TType.STRING,None), None, ), # 1
  17308. (2, TType.STRING, 'source_db', None, None, ), # 2
  17309. (3, TType.STRING, 'source_table_name', None, None, ), # 3
  17310. (4, TType.STRING, 'dest_db', None, None, ), # 4
  17311. (5, TType.STRING, 'dest_table_name', None, None, ), # 5
  17312. )
  17313. def __init__(self, partitionSpecs=None, source_db=None, source_table_name=None, dest_db=None, dest_table_name=None,):
  17314. self.partitionSpecs = partitionSpecs
  17315. self.source_db = source_db
  17316. self.source_table_name = source_table_name
  17317. self.dest_db = dest_db
  17318. self.dest_table_name = dest_table_name
  17319. def read(self, iprot):
  17320. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  17321. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  17322. return
  17323. iprot.readStructBegin()
  17324. while True:
  17325. (fname, ftype, fid) = iprot.readFieldBegin()
  17326. if ftype == TType.STOP:
  17327. break
  17328. if fid == 1:
  17329. if ftype == TType.MAP:
  17330. self.partitionSpecs = {}
  17331. (_ktype758, _vtype759, _size757 ) = iprot.readMapBegin()
  17332. for _i761 in xrange(_size757):
  17333. _key762 = iprot.readString()
  17334. _val763 = iprot.readString()
  17335. self.partitionSpecs[_key762] = _val763
  17336. iprot.readMapEnd()
  17337. else:
  17338. iprot.skip(ftype)
  17339. elif fid == 2:
  17340. if ftype == TType.STRING:
  17341. self.source_db = iprot.readString()
  17342. else:
  17343. iprot.skip(ftype)
  17344. elif fid == 3:
  17345. if ftype == TType.STRING:
  17346. self.source_table_name = iprot.readString()
  17347. else:
  17348. iprot.skip(ftype)
  17349. elif fid == 4:
  17350. if ftype == TType.STRING:
  17351. self.dest_db = iprot.readString()
  17352. else:
  17353. iprot.skip(ftype)
  17354. elif fid == 5:
  17355. if ftype == TType.STRING:
  17356. self.dest_table_name = iprot.readString()
  17357. else:
  17358. iprot.skip(ftype)
  17359. else:
  17360. iprot.skip(ftype)
  17361. iprot.readFieldEnd()
  17362. iprot.readStructEnd()
  17363. def write(self, oprot):
  17364. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  17365. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  17366. return
  17367. oprot.writeStructBegin('exchange_partition_args')
  17368. if self.partitionSpecs is not None:
  17369. oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1)
  17370. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs))
  17371. for kiter764,viter765 in self.partitionSpecs.items():
  17372. oprot.writeString(kiter764)
  17373. oprot.writeString(viter765)
  17374. oprot.writeMapEnd()
  17375. oprot.writeFieldEnd()
  17376. if self.source_db is not None:
  17377. oprot.writeFieldBegin('source_db', TType.STRING, 2)
  17378. oprot.writeString(self.source_db)
  17379. oprot.writeFieldEnd()
  17380. if self.source_table_name is not None:
  17381. oprot.writeFieldBegin('source_table_name', TType.STRING, 3)
  17382. oprot.writeString(self.source_table_name)
  17383. oprot.writeFieldEnd()
  17384. if self.dest_db is not None:
  17385. oprot.writeFieldBegin('dest_db', TType.STRING, 4)
  17386. oprot.writeString(self.dest_db)
  17387. oprot.writeFieldEnd()
  17388. if self.dest_table_name is not None:
  17389. oprot.writeFieldBegin('dest_table_name', TType.STRING, 5)
  17390. oprot.writeString(self.dest_table_name)
  17391. oprot.writeFieldEnd()
  17392. oprot.writeFieldStop()
  17393. oprot.writeStructEnd()
  17394. def validate(self):
  17395. return
  17396. def __hash__(self):
  17397. value = 17
  17398. value = (value * 31) ^ hash(self.partitionSpecs)
  17399. value = (value * 31) ^ hash(self.source_db)
  17400. value = (value * 31) ^ hash(self.source_table_name)
  17401. value = (value * 31) ^ hash(self.dest_db)
  17402. value = (value * 31) ^ hash(self.dest_table_name)
  17403. return value
  17404. def __repr__(self):
  17405. L = ['%s=%r' % (key, value)
  17406. for key, value in self.__dict__.iteritems()]
  17407. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17408. def __eq__(self, other):
  17409. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17410. def __ne__(self, other):
  17411. return not (self == other)
  17412. class exchange_partition_result(object):
  17413. """
  17414. Attributes:
  17415. - success
  17416. - o1
  17417. - o2
  17418. - o3
  17419. - o4
  17420. """
  17421. thrift_spec = (
  17422. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  17423. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  17424. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  17425. (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3
  17426. (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4
  17427. )
  17428. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  17429. self.success = success
  17430. self.o1 = o1
  17431. self.o2 = o2
  17432. self.o3 = o3
  17433. self.o4 = o4
  17434. def read(self, iprot):
  17435. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  17436. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  17437. return
  17438. iprot.readStructBegin()
  17439. while True:
  17440. (fname, ftype, fid) = iprot.readFieldBegin()
  17441. if ftype == TType.STOP:
  17442. break
  17443. if fid == 0:
  17444. if ftype == TType.STRUCT:
  17445. self.success = Partition()
  17446. self.success.read(iprot)
  17447. else:
  17448. iprot.skip(ftype)
  17449. elif fid == 1:
  17450. if ftype == TType.STRUCT:
  17451. self.o1 = MetaException()
  17452. self.o1.read(iprot)
  17453. else:
  17454. iprot.skip(ftype)
  17455. elif fid == 2:
  17456. if ftype == TType.STRUCT:
  17457. self.o2 = NoSuchObjectException()
  17458. self.o2.read(iprot)
  17459. else:
  17460. iprot.skip(ftype)
  17461. elif fid == 3:
  17462. if ftype == TType.STRUCT:
  17463. self.o3 = InvalidObjectException()
  17464. self.o3.read(iprot)
  17465. else:
  17466. iprot.skip(ftype)
  17467. elif fid == 4:
  17468. if ftype == TType.STRUCT:
  17469. self.o4 = InvalidInputException()
  17470. self.o4.read(iprot)
  17471. else:
  17472. iprot.skip(ftype)
  17473. else:
  17474. iprot.skip(ftype)
  17475. iprot.readFieldEnd()
  17476. iprot.readStructEnd()
  17477. def write(self, oprot):
  17478. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  17479. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  17480. return
  17481. oprot.writeStructBegin('exchange_partition_result')
  17482. if self.success is not None:
  17483. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  17484. self.success.write(oprot)
  17485. oprot.writeFieldEnd()
  17486. if self.o1 is not None:
  17487. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  17488. self.o1.write(oprot)
  17489. oprot.writeFieldEnd()
  17490. if self.o2 is not None:
  17491. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  17492. self.o2.write(oprot)
  17493. oprot.writeFieldEnd()
  17494. if self.o3 is not None:
  17495. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  17496. self.o3.write(oprot)
  17497. oprot.writeFieldEnd()
  17498. if self.o4 is not None:
  17499. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  17500. self.o4.write(oprot)
  17501. oprot.writeFieldEnd()
  17502. oprot.writeFieldStop()
  17503. oprot.writeStructEnd()
  17504. def validate(self):
  17505. return
  17506. def __hash__(self):
  17507. value = 17
  17508. value = (value * 31) ^ hash(self.success)
  17509. value = (value * 31) ^ hash(self.o1)
  17510. value = (value * 31) ^ hash(self.o2)
  17511. value = (value * 31) ^ hash(self.o3)
  17512. value = (value * 31) ^ hash(self.o4)
  17513. return value
  17514. def __repr__(self):
  17515. L = ['%s=%r' % (key, value)
  17516. for key, value in self.__dict__.iteritems()]
  17517. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17518. def __eq__(self, other):
  17519. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17520. def __ne__(self, other):
  17521. return not (self == other)
  17522. class exchange_partitions_args(object):
  17523. """
  17524. Attributes:
  17525. - partitionSpecs
  17526. - source_db
  17527. - source_table_name
  17528. - dest_db
  17529. - dest_table_name
  17530. """
  17531. thrift_spec = (
  17532. None, # 0
  17533. (1, TType.MAP, 'partitionSpecs', (TType.STRING,None,TType.STRING,None), None, ), # 1
  17534. (2, TType.STRING, 'source_db', None, None, ), # 2
  17535. (3, TType.STRING, 'source_table_name', None, None, ), # 3
  17536. (4, TType.STRING, 'dest_db', None, None, ), # 4
  17537. (5, TType.STRING, 'dest_table_name', None, None, ), # 5
  17538. )
  17539. def __init__(self, partitionSpecs=None, source_db=None, source_table_name=None, dest_db=None, dest_table_name=None,):
  17540. self.partitionSpecs = partitionSpecs
  17541. self.source_db = source_db
  17542. self.source_table_name = source_table_name
  17543. self.dest_db = dest_db
  17544. self.dest_table_name = dest_table_name
  17545. def read(self, iprot):
  17546. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  17547. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  17548. return
  17549. iprot.readStructBegin()
  17550. while True:
  17551. (fname, ftype, fid) = iprot.readFieldBegin()
  17552. if ftype == TType.STOP:
  17553. break
  17554. if fid == 1:
  17555. if ftype == TType.MAP:
  17556. self.partitionSpecs = {}
  17557. (_ktype767, _vtype768, _size766 ) = iprot.readMapBegin()
  17558. for _i770 in xrange(_size766):
  17559. _key771 = iprot.readString()
  17560. _val772 = iprot.readString()
  17561. self.partitionSpecs[_key771] = _val772
  17562. iprot.readMapEnd()
  17563. else:
  17564. iprot.skip(ftype)
  17565. elif fid == 2:
  17566. if ftype == TType.STRING:
  17567. self.source_db = iprot.readString()
  17568. else:
  17569. iprot.skip(ftype)
  17570. elif fid == 3:
  17571. if ftype == TType.STRING:
  17572. self.source_table_name = iprot.readString()
  17573. else:
  17574. iprot.skip(ftype)
  17575. elif fid == 4:
  17576. if ftype == TType.STRING:
  17577. self.dest_db = iprot.readString()
  17578. else:
  17579. iprot.skip(ftype)
  17580. elif fid == 5:
  17581. if ftype == TType.STRING:
  17582. self.dest_table_name = iprot.readString()
  17583. else:
  17584. iprot.skip(ftype)
  17585. else:
  17586. iprot.skip(ftype)
  17587. iprot.readFieldEnd()
  17588. iprot.readStructEnd()
  17589. def write(self, oprot):
  17590. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  17591. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  17592. return
  17593. oprot.writeStructBegin('exchange_partitions_args')
  17594. if self.partitionSpecs is not None:
  17595. oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1)
  17596. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs))
  17597. for kiter773,viter774 in self.partitionSpecs.items():
  17598. oprot.writeString(kiter773)
  17599. oprot.writeString(viter774)
  17600. oprot.writeMapEnd()
  17601. oprot.writeFieldEnd()
  17602. if self.source_db is not None:
  17603. oprot.writeFieldBegin('source_db', TType.STRING, 2)
  17604. oprot.writeString(self.source_db)
  17605. oprot.writeFieldEnd()
  17606. if self.source_table_name is not None:
  17607. oprot.writeFieldBegin('source_table_name', TType.STRING, 3)
  17608. oprot.writeString(self.source_table_name)
  17609. oprot.writeFieldEnd()
  17610. if self.dest_db is not None:
  17611. oprot.writeFieldBegin('dest_db', TType.STRING, 4)
  17612. oprot.writeString(self.dest_db)
  17613. oprot.writeFieldEnd()
  17614. if self.dest_table_name is not None:
  17615. oprot.writeFieldBegin('dest_table_name', TType.STRING, 5)
  17616. oprot.writeString(self.dest_table_name)
  17617. oprot.writeFieldEnd()
  17618. oprot.writeFieldStop()
  17619. oprot.writeStructEnd()
  17620. def validate(self):
  17621. return
  17622. def __hash__(self):
  17623. value = 17
  17624. value = (value * 31) ^ hash(self.partitionSpecs)
  17625. value = (value * 31) ^ hash(self.source_db)
  17626. value = (value * 31) ^ hash(self.source_table_name)
  17627. value = (value * 31) ^ hash(self.dest_db)
  17628. value = (value * 31) ^ hash(self.dest_table_name)
  17629. return value
  17630. def __repr__(self):
  17631. L = ['%s=%r' % (key, value)
  17632. for key, value in self.__dict__.iteritems()]
  17633. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17634. def __eq__(self, other):
  17635. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17636. def __ne__(self, other):
  17637. return not (self == other)
  17638. class exchange_partitions_result(object):
  17639. """
  17640. Attributes:
  17641. - success
  17642. - o1
  17643. - o2
  17644. - o3
  17645. - o4
  17646. """
  17647. thrift_spec = (
  17648. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  17649. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  17650. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  17651. (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3
  17652. (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4
  17653. )
  17654. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  17655. self.success = success
  17656. self.o1 = o1
  17657. self.o2 = o2
  17658. self.o3 = o3
  17659. self.o4 = o4
  17660. def read(self, iprot):
  17661. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  17662. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  17663. return
  17664. iprot.readStructBegin()
  17665. while True:
  17666. (fname, ftype, fid) = iprot.readFieldBegin()
  17667. if ftype == TType.STOP:
  17668. break
  17669. if fid == 0:
  17670. if ftype == TType.LIST:
  17671. self.success = []
  17672. (_etype778, _size775) = iprot.readListBegin()
  17673. for _i779 in xrange(_size775):
  17674. _elem780 = Partition()
  17675. _elem780.read(iprot)
  17676. self.success.append(_elem780)
  17677. iprot.readListEnd()
  17678. else:
  17679. iprot.skip(ftype)
  17680. elif fid == 1:
  17681. if ftype == TType.STRUCT:
  17682. self.o1 = MetaException()
  17683. self.o1.read(iprot)
  17684. else:
  17685. iprot.skip(ftype)
  17686. elif fid == 2:
  17687. if ftype == TType.STRUCT:
  17688. self.o2 = NoSuchObjectException()
  17689. self.o2.read(iprot)
  17690. else:
  17691. iprot.skip(ftype)
  17692. elif fid == 3:
  17693. if ftype == TType.STRUCT:
  17694. self.o3 = InvalidObjectException()
  17695. self.o3.read(iprot)
  17696. else:
  17697. iprot.skip(ftype)
  17698. elif fid == 4:
  17699. if ftype == TType.STRUCT:
  17700. self.o4 = InvalidInputException()
  17701. self.o4.read(iprot)
  17702. else:
  17703. iprot.skip(ftype)
  17704. else:
  17705. iprot.skip(ftype)
  17706. iprot.readFieldEnd()
  17707. iprot.readStructEnd()
  17708. def write(self, oprot):
  17709. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  17710. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  17711. return
  17712. oprot.writeStructBegin('exchange_partitions_result')
  17713. if self.success is not None:
  17714. oprot.writeFieldBegin('success', TType.LIST, 0)
  17715. oprot.writeListBegin(TType.STRUCT, len(self.success))
  17716. for iter781 in self.success:
  17717. iter781.write(oprot)
  17718. oprot.writeListEnd()
  17719. oprot.writeFieldEnd()
  17720. if self.o1 is not None:
  17721. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  17722. self.o1.write(oprot)
  17723. oprot.writeFieldEnd()
  17724. if self.o2 is not None:
  17725. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  17726. self.o2.write(oprot)
  17727. oprot.writeFieldEnd()
  17728. if self.o3 is not None:
  17729. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  17730. self.o3.write(oprot)
  17731. oprot.writeFieldEnd()
  17732. if self.o4 is not None:
  17733. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  17734. self.o4.write(oprot)
  17735. oprot.writeFieldEnd()
  17736. oprot.writeFieldStop()
  17737. oprot.writeStructEnd()
  17738. def validate(self):
  17739. return
  17740. def __hash__(self):
  17741. value = 17
  17742. value = (value * 31) ^ hash(self.success)
  17743. value = (value * 31) ^ hash(self.o1)
  17744. value = (value * 31) ^ hash(self.o2)
  17745. value = (value * 31) ^ hash(self.o3)
  17746. value = (value * 31) ^ hash(self.o4)
  17747. return value
  17748. def __repr__(self):
  17749. L = ['%s=%r' % (key, value)
  17750. for key, value in self.__dict__.iteritems()]
  17751. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17752. def __eq__(self, other):
  17753. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17754. def __ne__(self, other):
  17755. return not (self == other)
  17756. class get_partition_with_auth_args(object):
  17757. """
  17758. Attributes:
  17759. - db_name
  17760. - tbl_name
  17761. - part_vals
  17762. - user_name
  17763. - group_names
  17764. """
  17765. thrift_spec = (
  17766. None, # 0
  17767. (1, TType.STRING, 'db_name', None, None, ), # 1
  17768. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  17769. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  17770. (4, TType.STRING, 'user_name', None, None, ), # 4
  17771. (5, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 5
  17772. )
  17773. def __init__(self, db_name=None, tbl_name=None, part_vals=None, user_name=None, group_names=None,):
  17774. self.db_name = db_name
  17775. self.tbl_name = tbl_name
  17776. self.part_vals = part_vals
  17777. self.user_name = user_name
  17778. self.group_names = group_names
  17779. def read(self, iprot):
  17780. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  17781. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  17782. return
  17783. iprot.readStructBegin()
  17784. while True:
  17785. (fname, ftype, fid) = iprot.readFieldBegin()
  17786. if ftype == TType.STOP:
  17787. break
  17788. if fid == 1:
  17789. if ftype == TType.STRING:
  17790. self.db_name = iprot.readString()
  17791. else:
  17792. iprot.skip(ftype)
  17793. elif fid == 2:
  17794. if ftype == TType.STRING:
  17795. self.tbl_name = iprot.readString()
  17796. else:
  17797. iprot.skip(ftype)
  17798. elif fid == 3:
  17799. if ftype == TType.LIST:
  17800. self.part_vals = []
  17801. (_etype785, _size782) = iprot.readListBegin()
  17802. for _i786 in xrange(_size782):
  17803. _elem787 = iprot.readString()
  17804. self.part_vals.append(_elem787)
  17805. iprot.readListEnd()
  17806. else:
  17807. iprot.skip(ftype)
  17808. elif fid == 4:
  17809. if ftype == TType.STRING:
  17810. self.user_name = iprot.readString()
  17811. else:
  17812. iprot.skip(ftype)
  17813. elif fid == 5:
  17814. if ftype == TType.LIST:
  17815. self.group_names = []
  17816. (_etype791, _size788) = iprot.readListBegin()
  17817. for _i792 in xrange(_size788):
  17818. _elem793 = iprot.readString()
  17819. self.group_names.append(_elem793)
  17820. iprot.readListEnd()
  17821. else:
  17822. iprot.skip(ftype)
  17823. else:
  17824. iprot.skip(ftype)
  17825. iprot.readFieldEnd()
  17826. iprot.readStructEnd()
  17827. def write(self, oprot):
  17828. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  17829. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  17830. return
  17831. oprot.writeStructBegin('get_partition_with_auth_args')
  17832. if self.db_name is not None:
  17833. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  17834. oprot.writeString(self.db_name)
  17835. oprot.writeFieldEnd()
  17836. if self.tbl_name is not None:
  17837. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  17838. oprot.writeString(self.tbl_name)
  17839. oprot.writeFieldEnd()
  17840. if self.part_vals is not None:
  17841. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  17842. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  17843. for iter794 in self.part_vals:
  17844. oprot.writeString(iter794)
  17845. oprot.writeListEnd()
  17846. oprot.writeFieldEnd()
  17847. if self.user_name is not None:
  17848. oprot.writeFieldBegin('user_name', TType.STRING, 4)
  17849. oprot.writeString(self.user_name)
  17850. oprot.writeFieldEnd()
  17851. if self.group_names is not None:
  17852. oprot.writeFieldBegin('group_names', TType.LIST, 5)
  17853. oprot.writeListBegin(TType.STRING, len(self.group_names))
  17854. for iter795 in self.group_names:
  17855. oprot.writeString(iter795)
  17856. oprot.writeListEnd()
  17857. oprot.writeFieldEnd()
  17858. oprot.writeFieldStop()
  17859. oprot.writeStructEnd()
  17860. def validate(self):
  17861. return
  17862. def __hash__(self):
  17863. value = 17
  17864. value = (value * 31) ^ hash(self.db_name)
  17865. value = (value * 31) ^ hash(self.tbl_name)
  17866. value = (value * 31) ^ hash(self.part_vals)
  17867. value = (value * 31) ^ hash(self.user_name)
  17868. value = (value * 31) ^ hash(self.group_names)
  17869. return value
  17870. def __repr__(self):
  17871. L = ['%s=%r' % (key, value)
  17872. for key, value in self.__dict__.iteritems()]
  17873. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17874. def __eq__(self, other):
  17875. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17876. def __ne__(self, other):
  17877. return not (self == other)
  17878. class get_partition_with_auth_result(object):
  17879. """
  17880. Attributes:
  17881. - success
  17882. - o1
  17883. - o2
  17884. """
  17885. thrift_spec = (
  17886. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  17887. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  17888. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  17889. )
  17890. def __init__(self, success=None, o1=None, o2=None,):
  17891. self.success = success
  17892. self.o1 = o1
  17893. self.o2 = o2
  17894. def read(self, iprot):
  17895. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  17896. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  17897. return
  17898. iprot.readStructBegin()
  17899. while True:
  17900. (fname, ftype, fid) = iprot.readFieldBegin()
  17901. if ftype == TType.STOP:
  17902. break
  17903. if fid == 0:
  17904. if ftype == TType.STRUCT:
  17905. self.success = Partition()
  17906. self.success.read(iprot)
  17907. else:
  17908. iprot.skip(ftype)
  17909. elif fid == 1:
  17910. if ftype == TType.STRUCT:
  17911. self.o1 = MetaException()
  17912. self.o1.read(iprot)
  17913. else:
  17914. iprot.skip(ftype)
  17915. elif fid == 2:
  17916. if ftype == TType.STRUCT:
  17917. self.o2 = NoSuchObjectException()
  17918. self.o2.read(iprot)
  17919. else:
  17920. iprot.skip(ftype)
  17921. else:
  17922. iprot.skip(ftype)
  17923. iprot.readFieldEnd()
  17924. iprot.readStructEnd()
  17925. def write(self, oprot):
  17926. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  17927. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  17928. return
  17929. oprot.writeStructBegin('get_partition_with_auth_result')
  17930. if self.success is not None:
  17931. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  17932. self.success.write(oprot)
  17933. oprot.writeFieldEnd()
  17934. if self.o1 is not None:
  17935. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  17936. self.o1.write(oprot)
  17937. oprot.writeFieldEnd()
  17938. if self.o2 is not None:
  17939. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  17940. self.o2.write(oprot)
  17941. oprot.writeFieldEnd()
  17942. oprot.writeFieldStop()
  17943. oprot.writeStructEnd()
  17944. def validate(self):
  17945. return
  17946. def __hash__(self):
  17947. value = 17
  17948. value = (value * 31) ^ hash(self.success)
  17949. value = (value * 31) ^ hash(self.o1)
  17950. value = (value * 31) ^ hash(self.o2)
  17951. return value
  17952. def __repr__(self):
  17953. L = ['%s=%r' % (key, value)
  17954. for key, value in self.__dict__.iteritems()]
  17955. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17956. def __eq__(self, other):
  17957. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17958. def __ne__(self, other):
  17959. return not (self == other)
  17960. class get_partition_by_name_args(object):
  17961. """
  17962. Attributes:
  17963. - db_name
  17964. - tbl_name
  17965. - part_name
  17966. """
  17967. thrift_spec = (
  17968. None, # 0
  17969. (1, TType.STRING, 'db_name', None, None, ), # 1
  17970. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  17971. (3, TType.STRING, 'part_name', None, None, ), # 3
  17972. )
  17973. def __init__(self, db_name=None, tbl_name=None, part_name=None,):
  17974. self.db_name = db_name
  17975. self.tbl_name = tbl_name
  17976. self.part_name = part_name
  17977. def read(self, iprot):
  17978. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  17979. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  17980. return
  17981. iprot.readStructBegin()
  17982. while True:
  17983. (fname, ftype, fid) = iprot.readFieldBegin()
  17984. if ftype == TType.STOP:
  17985. break
  17986. if fid == 1:
  17987. if ftype == TType.STRING:
  17988. self.db_name = iprot.readString()
  17989. else:
  17990. iprot.skip(ftype)
  17991. elif fid == 2:
  17992. if ftype == TType.STRING:
  17993. self.tbl_name = iprot.readString()
  17994. else:
  17995. iprot.skip(ftype)
  17996. elif fid == 3:
  17997. if ftype == TType.STRING:
  17998. self.part_name = iprot.readString()
  17999. else:
  18000. iprot.skip(ftype)
  18001. else:
  18002. iprot.skip(ftype)
  18003. iprot.readFieldEnd()
  18004. iprot.readStructEnd()
  18005. def write(self, oprot):
  18006. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  18007. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  18008. return
  18009. oprot.writeStructBegin('get_partition_by_name_args')
  18010. if self.db_name is not None:
  18011. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  18012. oprot.writeString(self.db_name)
  18013. oprot.writeFieldEnd()
  18014. if self.tbl_name is not None:
  18015. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  18016. oprot.writeString(self.tbl_name)
  18017. oprot.writeFieldEnd()
  18018. if self.part_name is not None:
  18019. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  18020. oprot.writeString(self.part_name)
  18021. oprot.writeFieldEnd()
  18022. oprot.writeFieldStop()
  18023. oprot.writeStructEnd()
  18024. def validate(self):
  18025. return
  18026. def __hash__(self):
  18027. value = 17
  18028. value = (value * 31) ^ hash(self.db_name)
  18029. value = (value * 31) ^ hash(self.tbl_name)
  18030. value = (value * 31) ^ hash(self.part_name)
  18031. return value
  18032. def __repr__(self):
  18033. L = ['%s=%r' % (key, value)
  18034. for key, value in self.__dict__.iteritems()]
  18035. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18036. def __eq__(self, other):
  18037. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18038. def __ne__(self, other):
  18039. return not (self == other)
  18040. class get_partition_by_name_result(object):
  18041. """
  18042. Attributes:
  18043. - success
  18044. - o1
  18045. - o2
  18046. """
  18047. thrift_spec = (
  18048. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  18049. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  18050. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  18051. )
  18052. def __init__(self, success=None, o1=None, o2=None,):
  18053. self.success = success
  18054. self.o1 = o1
  18055. self.o2 = o2
  18056. def read(self, iprot):
  18057. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  18058. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  18059. return
  18060. iprot.readStructBegin()
  18061. while True:
  18062. (fname, ftype, fid) = iprot.readFieldBegin()
  18063. if ftype == TType.STOP:
  18064. break
  18065. if fid == 0:
  18066. if ftype == TType.STRUCT:
  18067. self.success = Partition()
  18068. self.success.read(iprot)
  18069. else:
  18070. iprot.skip(ftype)
  18071. elif fid == 1:
  18072. if ftype == TType.STRUCT:
  18073. self.o1 = MetaException()
  18074. self.o1.read(iprot)
  18075. else:
  18076. iprot.skip(ftype)
  18077. elif fid == 2:
  18078. if ftype == TType.STRUCT:
  18079. self.o2 = NoSuchObjectException()
  18080. self.o2.read(iprot)
  18081. else:
  18082. iprot.skip(ftype)
  18083. else:
  18084. iprot.skip(ftype)
  18085. iprot.readFieldEnd()
  18086. iprot.readStructEnd()
  18087. def write(self, oprot):
  18088. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  18089. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  18090. return
  18091. oprot.writeStructBegin('get_partition_by_name_result')
  18092. if self.success is not None:
  18093. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  18094. self.success.write(oprot)
  18095. oprot.writeFieldEnd()
  18096. if self.o1 is not None:
  18097. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  18098. self.o1.write(oprot)
  18099. oprot.writeFieldEnd()
  18100. if self.o2 is not None:
  18101. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  18102. self.o2.write(oprot)
  18103. oprot.writeFieldEnd()
  18104. oprot.writeFieldStop()
  18105. oprot.writeStructEnd()
  18106. def validate(self):
  18107. return
  18108. def __hash__(self):
  18109. value = 17
  18110. value = (value * 31) ^ hash(self.success)
  18111. value = (value * 31) ^ hash(self.o1)
  18112. value = (value * 31) ^ hash(self.o2)
  18113. return value
  18114. def __repr__(self):
  18115. L = ['%s=%r' % (key, value)
  18116. for key, value in self.__dict__.iteritems()]
  18117. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18118. def __eq__(self, other):
  18119. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18120. def __ne__(self, other):
  18121. return not (self == other)
  18122. class get_partitions_args(object):
  18123. """
  18124. Attributes:
  18125. - db_name
  18126. - tbl_name
  18127. - max_parts
  18128. """
  18129. thrift_spec = (
  18130. None, # 0
  18131. (1, TType.STRING, 'db_name', None, None, ), # 1
  18132. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  18133. (3, TType.I16, 'max_parts', None, -1, ), # 3
  18134. )
  18135. def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4],):
  18136. self.db_name = db_name
  18137. self.tbl_name = tbl_name
  18138. self.max_parts = max_parts
  18139. def read(self, iprot):
  18140. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  18141. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  18142. return
  18143. iprot.readStructBegin()
  18144. while True:
  18145. (fname, ftype, fid) = iprot.readFieldBegin()
  18146. if ftype == TType.STOP:
  18147. break
  18148. if fid == 1:
  18149. if ftype == TType.STRING:
  18150. self.db_name = iprot.readString()
  18151. else:
  18152. iprot.skip(ftype)
  18153. elif fid == 2:
  18154. if ftype == TType.STRING:
  18155. self.tbl_name = iprot.readString()
  18156. else:
  18157. iprot.skip(ftype)
  18158. elif fid == 3:
  18159. if ftype == TType.I16:
  18160. self.max_parts = iprot.readI16()
  18161. else:
  18162. iprot.skip(ftype)
  18163. else:
  18164. iprot.skip(ftype)
  18165. iprot.readFieldEnd()
  18166. iprot.readStructEnd()
  18167. def write(self, oprot):
  18168. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  18169. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  18170. return
  18171. oprot.writeStructBegin('get_partitions_args')
  18172. if self.db_name is not None:
  18173. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  18174. oprot.writeString(self.db_name)
  18175. oprot.writeFieldEnd()
  18176. if self.tbl_name is not None:
  18177. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  18178. oprot.writeString(self.tbl_name)
  18179. oprot.writeFieldEnd()
  18180. if self.max_parts is not None:
  18181. oprot.writeFieldBegin('max_parts', TType.I16, 3)
  18182. oprot.writeI16(self.max_parts)
  18183. oprot.writeFieldEnd()
  18184. oprot.writeFieldStop()
  18185. oprot.writeStructEnd()
  18186. def validate(self):
  18187. return
  18188. def __hash__(self):
  18189. value = 17
  18190. value = (value * 31) ^ hash(self.db_name)
  18191. value = (value * 31) ^ hash(self.tbl_name)
  18192. value = (value * 31) ^ hash(self.max_parts)
  18193. return value
  18194. def __repr__(self):
  18195. L = ['%s=%r' % (key, value)
  18196. for key, value in self.__dict__.iteritems()]
  18197. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18198. def __eq__(self, other):
  18199. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18200. def __ne__(self, other):
  18201. return not (self == other)
  18202. class get_partitions_result(object):
  18203. """
  18204. Attributes:
  18205. - success
  18206. - o1
  18207. - o2
  18208. """
  18209. thrift_spec = (
  18210. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  18211. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  18212. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  18213. )
  18214. def __init__(self, success=None, o1=None, o2=None,):
  18215. self.success = success
  18216. self.o1 = o1
  18217. self.o2 = o2
  18218. def read(self, iprot):
  18219. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  18220. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  18221. return
  18222. iprot.readStructBegin()
  18223. while True:
  18224. (fname, ftype, fid) = iprot.readFieldBegin()
  18225. if ftype == TType.STOP:
  18226. break
  18227. if fid == 0:
  18228. if ftype == TType.LIST:
  18229. self.success = []
  18230. (_etype799, _size796) = iprot.readListBegin()
  18231. for _i800 in xrange(_size796):
  18232. _elem801 = Partition()
  18233. _elem801.read(iprot)
  18234. self.success.append(_elem801)
  18235. iprot.readListEnd()
  18236. else:
  18237. iprot.skip(ftype)
  18238. elif fid == 1:
  18239. if ftype == TType.STRUCT:
  18240. self.o1 = NoSuchObjectException()
  18241. self.o1.read(iprot)
  18242. else:
  18243. iprot.skip(ftype)
  18244. elif fid == 2:
  18245. if ftype == TType.STRUCT:
  18246. self.o2 = MetaException()
  18247. self.o2.read(iprot)
  18248. else:
  18249. iprot.skip(ftype)
  18250. else:
  18251. iprot.skip(ftype)
  18252. iprot.readFieldEnd()
  18253. iprot.readStructEnd()
  18254. def write(self, oprot):
  18255. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  18256. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  18257. return
  18258. oprot.writeStructBegin('get_partitions_result')
  18259. if self.success is not None:
  18260. oprot.writeFieldBegin('success', TType.LIST, 0)
  18261. oprot.writeListBegin(TType.STRUCT, len(self.success))
  18262. for iter802 in self.success:
  18263. iter802.write(oprot)
  18264. oprot.writeListEnd()
  18265. oprot.writeFieldEnd()
  18266. if self.o1 is not None:
  18267. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  18268. self.o1.write(oprot)
  18269. oprot.writeFieldEnd()
  18270. if self.o2 is not None:
  18271. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  18272. self.o2.write(oprot)
  18273. oprot.writeFieldEnd()
  18274. oprot.writeFieldStop()
  18275. oprot.writeStructEnd()
  18276. def validate(self):
  18277. return
  18278. def __hash__(self):
  18279. value = 17
  18280. value = (value * 31) ^ hash(self.success)
  18281. value = (value * 31) ^ hash(self.o1)
  18282. value = (value * 31) ^ hash(self.o2)
  18283. return value
  18284. def __repr__(self):
  18285. L = ['%s=%r' % (key, value)
  18286. for key, value in self.__dict__.iteritems()]
  18287. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18288. def __eq__(self, other):
  18289. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18290. def __ne__(self, other):
  18291. return not (self == other)
  18292. class get_partitions_with_auth_args(object):
  18293. """
  18294. Attributes:
  18295. - db_name
  18296. - tbl_name
  18297. - max_parts
  18298. - user_name
  18299. - group_names
  18300. """
  18301. thrift_spec = (
  18302. None, # 0
  18303. (1, TType.STRING, 'db_name', None, None, ), # 1
  18304. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  18305. (3, TType.I16, 'max_parts', None, -1, ), # 3
  18306. (4, TType.STRING, 'user_name', None, None, ), # 4
  18307. (5, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 5
  18308. )
  18309. def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4], user_name=None, group_names=None,):
  18310. self.db_name = db_name
  18311. self.tbl_name = tbl_name
  18312. self.max_parts = max_parts
  18313. self.user_name = user_name
  18314. self.group_names = group_names
  18315. def read(self, iprot):
  18316. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  18317. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  18318. return
  18319. iprot.readStructBegin()
  18320. while True:
  18321. (fname, ftype, fid) = iprot.readFieldBegin()
  18322. if ftype == TType.STOP:
  18323. break
  18324. if fid == 1:
  18325. if ftype == TType.STRING:
  18326. self.db_name = iprot.readString()
  18327. else:
  18328. iprot.skip(ftype)
  18329. elif fid == 2:
  18330. if ftype == TType.STRING:
  18331. self.tbl_name = iprot.readString()
  18332. else:
  18333. iprot.skip(ftype)
  18334. elif fid == 3:
  18335. if ftype == TType.I16:
  18336. self.max_parts = iprot.readI16()
  18337. else:
  18338. iprot.skip(ftype)
  18339. elif fid == 4:
  18340. if ftype == TType.STRING:
  18341. self.user_name = iprot.readString()
  18342. else:
  18343. iprot.skip(ftype)
  18344. elif fid == 5:
  18345. if ftype == TType.LIST:
  18346. self.group_names = []
  18347. (_etype806, _size803) = iprot.readListBegin()
  18348. for _i807 in xrange(_size803):
  18349. _elem808 = iprot.readString()
  18350. self.group_names.append(_elem808)
  18351. iprot.readListEnd()
  18352. else:
  18353. iprot.skip(ftype)
  18354. else:
  18355. iprot.skip(ftype)
  18356. iprot.readFieldEnd()
  18357. iprot.readStructEnd()
  18358. def write(self, oprot):
  18359. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  18360. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  18361. return
  18362. oprot.writeStructBegin('get_partitions_with_auth_args')
  18363. if self.db_name is not None:
  18364. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  18365. oprot.writeString(self.db_name)
  18366. oprot.writeFieldEnd()
  18367. if self.tbl_name is not None:
  18368. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  18369. oprot.writeString(self.tbl_name)
  18370. oprot.writeFieldEnd()
  18371. if self.max_parts is not None:
  18372. oprot.writeFieldBegin('max_parts', TType.I16, 3)
  18373. oprot.writeI16(self.max_parts)
  18374. oprot.writeFieldEnd()
  18375. if self.user_name is not None:
  18376. oprot.writeFieldBegin('user_name', TType.STRING, 4)
  18377. oprot.writeString(self.user_name)
  18378. oprot.writeFieldEnd()
  18379. if self.group_names is not None:
  18380. oprot.writeFieldBegin('group_names', TType.LIST, 5)
  18381. oprot.writeListBegin(TType.STRING, len(self.group_names))
  18382. for iter809 in self.group_names:
  18383. oprot.writeString(iter809)
  18384. oprot.writeListEnd()
  18385. oprot.writeFieldEnd()
  18386. oprot.writeFieldStop()
  18387. oprot.writeStructEnd()
  18388. def validate(self):
  18389. return
  18390. def __hash__(self):
  18391. value = 17
  18392. value = (value * 31) ^ hash(self.db_name)
  18393. value = (value * 31) ^ hash(self.tbl_name)
  18394. value = (value * 31) ^ hash(self.max_parts)
  18395. value = (value * 31) ^ hash(self.user_name)
  18396. value = (value * 31) ^ hash(self.group_names)
  18397. return value
  18398. def __repr__(self):
  18399. L = ['%s=%r' % (key, value)
  18400. for key, value in self.__dict__.iteritems()]
  18401. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18402. def __eq__(self, other):
  18403. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18404. def __ne__(self, other):
  18405. return not (self == other)
  18406. class get_partitions_with_auth_result(object):
  18407. """
  18408. Attributes:
  18409. - success
  18410. - o1
  18411. - o2
  18412. """
  18413. thrift_spec = (
  18414. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  18415. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  18416. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  18417. )
  18418. def __init__(self, success=None, o1=None, o2=None,):
  18419. self.success = success
  18420. self.o1 = o1
  18421. self.o2 = o2
  18422. def read(self, iprot):
  18423. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  18424. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  18425. return
  18426. iprot.readStructBegin()
  18427. while True:
  18428. (fname, ftype, fid) = iprot.readFieldBegin()
  18429. if ftype == TType.STOP:
  18430. break
  18431. if fid == 0:
  18432. if ftype == TType.LIST:
  18433. self.success = []
  18434. (_etype813, _size810) = iprot.readListBegin()
  18435. for _i814 in xrange(_size810):
  18436. _elem815 = Partition()
  18437. _elem815.read(iprot)
  18438. self.success.append(_elem815)
  18439. iprot.readListEnd()
  18440. else:
  18441. iprot.skip(ftype)
  18442. elif fid == 1:
  18443. if ftype == TType.STRUCT:
  18444. self.o1 = NoSuchObjectException()
  18445. self.o1.read(iprot)
  18446. else:
  18447. iprot.skip(ftype)
  18448. elif fid == 2:
  18449. if ftype == TType.STRUCT:
  18450. self.o2 = MetaException()
  18451. self.o2.read(iprot)
  18452. else:
  18453. iprot.skip(ftype)
  18454. else:
  18455. iprot.skip(ftype)
  18456. iprot.readFieldEnd()
  18457. iprot.readStructEnd()
  18458. def write(self, oprot):
  18459. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  18460. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  18461. return
  18462. oprot.writeStructBegin('get_partitions_with_auth_result')
  18463. if self.success is not None:
  18464. oprot.writeFieldBegin('success', TType.LIST, 0)
  18465. oprot.writeListBegin(TType.STRUCT, len(self.success))
  18466. for iter816 in self.success:
  18467. iter816.write(oprot)
  18468. oprot.writeListEnd()
  18469. oprot.writeFieldEnd()
  18470. if self.o1 is not None:
  18471. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  18472. self.o1.write(oprot)
  18473. oprot.writeFieldEnd()
  18474. if self.o2 is not None:
  18475. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  18476. self.o2.write(oprot)
  18477. oprot.writeFieldEnd()
  18478. oprot.writeFieldStop()
  18479. oprot.writeStructEnd()
  18480. def validate(self):
  18481. return
  18482. def __hash__(self):
  18483. value = 17
  18484. value = (value * 31) ^ hash(self.success)
  18485. value = (value * 31) ^ hash(self.o1)
  18486. value = (value * 31) ^ hash(self.o2)
  18487. return value
  18488. def __repr__(self):
  18489. L = ['%s=%r' % (key, value)
  18490. for key, value in self.__dict__.iteritems()]
  18491. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18492. def __eq__(self, other):
  18493. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18494. def __ne__(self, other):
  18495. return not (self == other)
  18496. class get_partitions_pspec_args(object):
  18497. """
  18498. Attributes:
  18499. - db_name
  18500. - tbl_name
  18501. - max_parts
  18502. """
  18503. thrift_spec = (
  18504. None, # 0
  18505. (1, TType.STRING, 'db_name', None, None, ), # 1
  18506. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  18507. (3, TType.I32, 'max_parts', None, -1, ), # 3
  18508. )
  18509. def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4],):
  18510. self.db_name = db_name
  18511. self.tbl_name = tbl_name
  18512. self.max_parts = max_parts
  18513. def read(self, iprot):
  18514. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  18515. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  18516. return
  18517. iprot.readStructBegin()
  18518. while True:
  18519. (fname, ftype, fid) = iprot.readFieldBegin()
  18520. if ftype == TType.STOP:
  18521. break
  18522. if fid == 1:
  18523. if ftype == TType.STRING:
  18524. self.db_name = iprot.readString()
  18525. else:
  18526. iprot.skip(ftype)
  18527. elif fid == 2:
  18528. if ftype == TType.STRING:
  18529. self.tbl_name = iprot.readString()
  18530. else:
  18531. iprot.skip(ftype)
  18532. elif fid == 3:
  18533. if ftype == TType.I32:
  18534. self.max_parts = iprot.readI32()
  18535. else:
  18536. iprot.skip(ftype)
  18537. else:
  18538. iprot.skip(ftype)
  18539. iprot.readFieldEnd()
  18540. iprot.readStructEnd()
  18541. def write(self, oprot):
  18542. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  18543. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  18544. return
  18545. oprot.writeStructBegin('get_partitions_pspec_args')
  18546. if self.db_name is not None:
  18547. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  18548. oprot.writeString(self.db_name)
  18549. oprot.writeFieldEnd()
  18550. if self.tbl_name is not None:
  18551. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  18552. oprot.writeString(self.tbl_name)
  18553. oprot.writeFieldEnd()
  18554. if self.max_parts is not None:
  18555. oprot.writeFieldBegin('max_parts', TType.I32, 3)
  18556. oprot.writeI32(self.max_parts)
  18557. oprot.writeFieldEnd()
  18558. oprot.writeFieldStop()
  18559. oprot.writeStructEnd()
  18560. def validate(self):
  18561. return
  18562. def __hash__(self):
  18563. value = 17
  18564. value = (value * 31) ^ hash(self.db_name)
  18565. value = (value * 31) ^ hash(self.tbl_name)
  18566. value = (value * 31) ^ hash(self.max_parts)
  18567. return value
  18568. def __repr__(self):
  18569. L = ['%s=%r' % (key, value)
  18570. for key, value in self.__dict__.iteritems()]
  18571. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18572. def __eq__(self, other):
  18573. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18574. def __ne__(self, other):
  18575. return not (self == other)
  18576. class get_partitions_pspec_result(object):
  18577. """
  18578. Attributes:
  18579. - success
  18580. - o1
  18581. - o2
  18582. """
  18583. thrift_spec = (
  18584. (0, TType.LIST, 'success', (TType.STRUCT,(PartitionSpec, PartitionSpec.thrift_spec)), None, ), # 0
  18585. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  18586. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  18587. )
  18588. def __init__(self, success=None, o1=None, o2=None,):
  18589. self.success = success
  18590. self.o1 = o1
  18591. self.o2 = o2
  18592. def read(self, iprot):
  18593. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  18594. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  18595. return
  18596. iprot.readStructBegin()
  18597. while True:
  18598. (fname, ftype, fid) = iprot.readFieldBegin()
  18599. if ftype == TType.STOP:
  18600. break
  18601. if fid == 0:
  18602. if ftype == TType.LIST:
  18603. self.success = []
  18604. (_etype820, _size817) = iprot.readListBegin()
  18605. for _i821 in xrange(_size817):
  18606. _elem822 = PartitionSpec()
  18607. _elem822.read(iprot)
  18608. self.success.append(_elem822)
  18609. iprot.readListEnd()
  18610. else:
  18611. iprot.skip(ftype)
  18612. elif fid == 1:
  18613. if ftype == TType.STRUCT:
  18614. self.o1 = NoSuchObjectException()
  18615. self.o1.read(iprot)
  18616. else:
  18617. iprot.skip(ftype)
  18618. elif fid == 2:
  18619. if ftype == TType.STRUCT:
  18620. self.o2 = MetaException()
  18621. self.o2.read(iprot)
  18622. else:
  18623. iprot.skip(ftype)
  18624. else:
  18625. iprot.skip(ftype)
  18626. iprot.readFieldEnd()
  18627. iprot.readStructEnd()
  18628. def write(self, oprot):
  18629. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  18630. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  18631. return
  18632. oprot.writeStructBegin('get_partitions_pspec_result')
  18633. if self.success is not None:
  18634. oprot.writeFieldBegin('success', TType.LIST, 0)
  18635. oprot.writeListBegin(TType.STRUCT, len(self.success))
  18636. for iter823 in self.success:
  18637. iter823.write(oprot)
  18638. oprot.writeListEnd()
  18639. oprot.writeFieldEnd()
  18640. if self.o1 is not None:
  18641. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  18642. self.o1.write(oprot)
  18643. oprot.writeFieldEnd()
  18644. if self.o2 is not None:
  18645. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  18646. self.o2.write(oprot)
  18647. oprot.writeFieldEnd()
  18648. oprot.writeFieldStop()
  18649. oprot.writeStructEnd()
  18650. def validate(self):
  18651. return
  18652. def __hash__(self):
  18653. value = 17
  18654. value = (value * 31) ^ hash(self.success)
  18655. value = (value * 31) ^ hash(self.o1)
  18656. value = (value * 31) ^ hash(self.o2)
  18657. return value
  18658. def __repr__(self):
  18659. L = ['%s=%r' % (key, value)
  18660. for key, value in self.__dict__.iteritems()]
  18661. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18662. def __eq__(self, other):
  18663. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18664. def __ne__(self, other):
  18665. return not (self == other)
  18666. class get_partition_names_args(object):
  18667. """
  18668. Attributes:
  18669. - db_name
  18670. - tbl_name
  18671. - max_parts
  18672. """
  18673. thrift_spec = (
  18674. None, # 0
  18675. (1, TType.STRING, 'db_name', None, None, ), # 1
  18676. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  18677. (3, TType.I16, 'max_parts', None, -1, ), # 3
  18678. )
  18679. def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4],):
  18680. self.db_name = db_name
  18681. self.tbl_name = tbl_name
  18682. self.max_parts = max_parts
  18683. def read(self, iprot):
  18684. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  18685. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  18686. return
  18687. iprot.readStructBegin()
  18688. while True:
  18689. (fname, ftype, fid) = iprot.readFieldBegin()
  18690. if ftype == TType.STOP:
  18691. break
  18692. if fid == 1:
  18693. if ftype == TType.STRING:
  18694. self.db_name = iprot.readString()
  18695. else:
  18696. iprot.skip(ftype)
  18697. elif fid == 2:
  18698. if ftype == TType.STRING:
  18699. self.tbl_name = iprot.readString()
  18700. else:
  18701. iprot.skip(ftype)
  18702. elif fid == 3:
  18703. if ftype == TType.I16:
  18704. self.max_parts = iprot.readI16()
  18705. else:
  18706. iprot.skip(ftype)
  18707. else:
  18708. iprot.skip(ftype)
  18709. iprot.readFieldEnd()
  18710. iprot.readStructEnd()
  18711. def write(self, oprot):
  18712. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  18713. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  18714. return
  18715. oprot.writeStructBegin('get_partition_names_args')
  18716. if self.db_name is not None:
  18717. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  18718. oprot.writeString(self.db_name)
  18719. oprot.writeFieldEnd()
  18720. if self.tbl_name is not None:
  18721. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  18722. oprot.writeString(self.tbl_name)
  18723. oprot.writeFieldEnd()
  18724. if self.max_parts is not None:
  18725. oprot.writeFieldBegin('max_parts', TType.I16, 3)
  18726. oprot.writeI16(self.max_parts)
  18727. oprot.writeFieldEnd()
  18728. oprot.writeFieldStop()
  18729. oprot.writeStructEnd()
  18730. def validate(self):
  18731. return
  18732. def __hash__(self):
  18733. value = 17
  18734. value = (value * 31) ^ hash(self.db_name)
  18735. value = (value * 31) ^ hash(self.tbl_name)
  18736. value = (value * 31) ^ hash(self.max_parts)
  18737. return value
  18738. def __repr__(self):
  18739. L = ['%s=%r' % (key, value)
  18740. for key, value in self.__dict__.iteritems()]
  18741. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18742. def __eq__(self, other):
  18743. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18744. def __ne__(self, other):
  18745. return not (self == other)
  18746. class get_partition_names_result(object):
  18747. """
  18748. Attributes:
  18749. - success
  18750. - o1
  18751. - o2
  18752. """
  18753. thrift_spec = (
  18754. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  18755. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  18756. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  18757. )
  18758. def __init__(self, success=None, o1=None, o2=None,):
  18759. self.success = success
  18760. self.o1 = o1
  18761. self.o2 = o2
  18762. def read(self, iprot):
  18763. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  18764. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  18765. return
  18766. iprot.readStructBegin()
  18767. while True:
  18768. (fname, ftype, fid) = iprot.readFieldBegin()
  18769. if ftype == TType.STOP:
  18770. break
  18771. if fid == 0:
  18772. if ftype == TType.LIST:
  18773. self.success = []
  18774. (_etype827, _size824) = iprot.readListBegin()
  18775. for _i828 in xrange(_size824):
  18776. _elem829 = iprot.readString()
  18777. self.success.append(_elem829)
  18778. iprot.readListEnd()
  18779. else:
  18780. iprot.skip(ftype)
  18781. elif fid == 1:
  18782. if ftype == TType.STRUCT:
  18783. self.o1 = NoSuchObjectException()
  18784. self.o1.read(iprot)
  18785. else:
  18786. iprot.skip(ftype)
  18787. elif fid == 2:
  18788. if ftype == TType.STRUCT:
  18789. self.o2 = MetaException()
  18790. self.o2.read(iprot)
  18791. else:
  18792. iprot.skip(ftype)
  18793. else:
  18794. iprot.skip(ftype)
  18795. iprot.readFieldEnd()
  18796. iprot.readStructEnd()
  18797. def write(self, oprot):
  18798. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  18799. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  18800. return
  18801. oprot.writeStructBegin('get_partition_names_result')
  18802. if self.success is not None:
  18803. oprot.writeFieldBegin('success', TType.LIST, 0)
  18804. oprot.writeListBegin(TType.STRING, len(self.success))
  18805. for iter830 in self.success:
  18806. oprot.writeString(iter830)
  18807. oprot.writeListEnd()
  18808. oprot.writeFieldEnd()
  18809. if self.o1 is not None:
  18810. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  18811. self.o1.write(oprot)
  18812. oprot.writeFieldEnd()
  18813. if self.o2 is not None:
  18814. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  18815. self.o2.write(oprot)
  18816. oprot.writeFieldEnd()
  18817. oprot.writeFieldStop()
  18818. oprot.writeStructEnd()
  18819. def validate(self):
  18820. return
  18821. def __hash__(self):
  18822. value = 17
  18823. value = (value * 31) ^ hash(self.success)
  18824. value = (value * 31) ^ hash(self.o1)
  18825. value = (value * 31) ^ hash(self.o2)
  18826. return value
  18827. def __repr__(self):
  18828. L = ['%s=%r' % (key, value)
  18829. for key, value in self.__dict__.iteritems()]
  18830. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18831. def __eq__(self, other):
  18832. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18833. def __ne__(self, other):
  18834. return not (self == other)
  18835. class get_partitions_ps_args(object):
  18836. """
  18837. Attributes:
  18838. - db_name
  18839. - tbl_name
  18840. - part_vals
  18841. - max_parts
  18842. """
  18843. thrift_spec = (
  18844. None, # 0
  18845. (1, TType.STRING, 'db_name', None, None, ), # 1
  18846. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  18847. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  18848. (4, TType.I16, 'max_parts', None, -1, ), # 4
  18849. )
  18850. def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4],):
  18851. self.db_name = db_name
  18852. self.tbl_name = tbl_name
  18853. self.part_vals = part_vals
  18854. self.max_parts = max_parts
  18855. def read(self, iprot):
  18856. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  18857. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  18858. return
  18859. iprot.readStructBegin()
  18860. while True:
  18861. (fname, ftype, fid) = iprot.readFieldBegin()
  18862. if ftype == TType.STOP:
  18863. break
  18864. if fid == 1:
  18865. if ftype == TType.STRING:
  18866. self.db_name = iprot.readString()
  18867. else:
  18868. iprot.skip(ftype)
  18869. elif fid == 2:
  18870. if ftype == TType.STRING:
  18871. self.tbl_name = iprot.readString()
  18872. else:
  18873. iprot.skip(ftype)
  18874. elif fid == 3:
  18875. if ftype == TType.LIST:
  18876. self.part_vals = []
  18877. (_etype834, _size831) = iprot.readListBegin()
  18878. for _i835 in xrange(_size831):
  18879. _elem836 = iprot.readString()
  18880. self.part_vals.append(_elem836)
  18881. iprot.readListEnd()
  18882. else:
  18883. iprot.skip(ftype)
  18884. elif fid == 4:
  18885. if ftype == TType.I16:
  18886. self.max_parts = iprot.readI16()
  18887. else:
  18888. iprot.skip(ftype)
  18889. else:
  18890. iprot.skip(ftype)
  18891. iprot.readFieldEnd()
  18892. iprot.readStructEnd()
  18893. def write(self, oprot):
  18894. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  18895. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  18896. return
  18897. oprot.writeStructBegin('get_partitions_ps_args')
  18898. if self.db_name is not None:
  18899. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  18900. oprot.writeString(self.db_name)
  18901. oprot.writeFieldEnd()
  18902. if self.tbl_name is not None:
  18903. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  18904. oprot.writeString(self.tbl_name)
  18905. oprot.writeFieldEnd()
  18906. if self.part_vals is not None:
  18907. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  18908. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  18909. for iter837 in self.part_vals:
  18910. oprot.writeString(iter837)
  18911. oprot.writeListEnd()
  18912. oprot.writeFieldEnd()
  18913. if self.max_parts is not None:
  18914. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  18915. oprot.writeI16(self.max_parts)
  18916. oprot.writeFieldEnd()
  18917. oprot.writeFieldStop()
  18918. oprot.writeStructEnd()
  18919. def validate(self):
  18920. return
  18921. def __hash__(self):
  18922. value = 17
  18923. value = (value * 31) ^ hash(self.db_name)
  18924. value = (value * 31) ^ hash(self.tbl_name)
  18925. value = (value * 31) ^ hash(self.part_vals)
  18926. value = (value * 31) ^ hash(self.max_parts)
  18927. return value
  18928. def __repr__(self):
  18929. L = ['%s=%r' % (key, value)
  18930. for key, value in self.__dict__.iteritems()]
  18931. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18932. def __eq__(self, other):
  18933. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18934. def __ne__(self, other):
  18935. return not (self == other)
  18936. class get_partitions_ps_result(object):
  18937. """
  18938. Attributes:
  18939. - success
  18940. - o1
  18941. - o2
  18942. """
  18943. thrift_spec = (
  18944. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  18945. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  18946. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  18947. )
  18948. def __init__(self, success=None, o1=None, o2=None,):
  18949. self.success = success
  18950. self.o1 = o1
  18951. self.o2 = o2
  18952. def read(self, iprot):
  18953. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  18954. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  18955. return
  18956. iprot.readStructBegin()
  18957. while True:
  18958. (fname, ftype, fid) = iprot.readFieldBegin()
  18959. if ftype == TType.STOP:
  18960. break
  18961. if fid == 0:
  18962. if ftype == TType.LIST:
  18963. self.success = []
  18964. (_etype841, _size838) = iprot.readListBegin()
  18965. for _i842 in xrange(_size838):
  18966. _elem843 = Partition()
  18967. _elem843.read(iprot)
  18968. self.success.append(_elem843)
  18969. iprot.readListEnd()
  18970. else:
  18971. iprot.skip(ftype)
  18972. elif fid == 1:
  18973. if ftype == TType.STRUCT:
  18974. self.o1 = MetaException()
  18975. self.o1.read(iprot)
  18976. else:
  18977. iprot.skip(ftype)
  18978. elif fid == 2:
  18979. if ftype == TType.STRUCT:
  18980. self.o2 = NoSuchObjectException()
  18981. self.o2.read(iprot)
  18982. else:
  18983. iprot.skip(ftype)
  18984. else:
  18985. iprot.skip(ftype)
  18986. iprot.readFieldEnd()
  18987. iprot.readStructEnd()
  18988. def write(self, oprot):
  18989. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  18990. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  18991. return
  18992. oprot.writeStructBegin('get_partitions_ps_result')
  18993. if self.success is not None:
  18994. oprot.writeFieldBegin('success', TType.LIST, 0)
  18995. oprot.writeListBegin(TType.STRUCT, len(self.success))
  18996. for iter844 in self.success:
  18997. iter844.write(oprot)
  18998. oprot.writeListEnd()
  18999. oprot.writeFieldEnd()
  19000. if self.o1 is not None:
  19001. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  19002. self.o1.write(oprot)
  19003. oprot.writeFieldEnd()
  19004. if self.o2 is not None:
  19005. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  19006. self.o2.write(oprot)
  19007. oprot.writeFieldEnd()
  19008. oprot.writeFieldStop()
  19009. oprot.writeStructEnd()
  19010. def validate(self):
  19011. return
  19012. def __hash__(self):
  19013. value = 17
  19014. value = (value * 31) ^ hash(self.success)
  19015. value = (value * 31) ^ hash(self.o1)
  19016. value = (value * 31) ^ hash(self.o2)
  19017. return value
  19018. def __repr__(self):
  19019. L = ['%s=%r' % (key, value)
  19020. for key, value in self.__dict__.iteritems()]
  19021. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19022. def __eq__(self, other):
  19023. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19024. def __ne__(self, other):
  19025. return not (self == other)
  19026. class get_partitions_ps_with_auth_args(object):
  19027. """
  19028. Attributes:
  19029. - db_name
  19030. - tbl_name
  19031. - part_vals
  19032. - max_parts
  19033. - user_name
  19034. - group_names
  19035. """
  19036. thrift_spec = (
  19037. None, # 0
  19038. (1, TType.STRING, 'db_name', None, None, ), # 1
  19039. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  19040. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  19041. (4, TType.I16, 'max_parts', None, -1, ), # 4
  19042. (5, TType.STRING, 'user_name', None, None, ), # 5
  19043. (6, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 6
  19044. )
  19045. def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4], user_name=None, group_names=None,):
  19046. self.db_name = db_name
  19047. self.tbl_name = tbl_name
  19048. self.part_vals = part_vals
  19049. self.max_parts = max_parts
  19050. self.user_name = user_name
  19051. self.group_names = group_names
  19052. def read(self, iprot):
  19053. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  19054. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  19055. return
  19056. iprot.readStructBegin()
  19057. while True:
  19058. (fname, ftype, fid) = iprot.readFieldBegin()
  19059. if ftype == TType.STOP:
  19060. break
  19061. if fid == 1:
  19062. if ftype == TType.STRING:
  19063. self.db_name = iprot.readString()
  19064. else:
  19065. iprot.skip(ftype)
  19066. elif fid == 2:
  19067. if ftype == TType.STRING:
  19068. self.tbl_name = iprot.readString()
  19069. else:
  19070. iprot.skip(ftype)
  19071. elif fid == 3:
  19072. if ftype == TType.LIST:
  19073. self.part_vals = []
  19074. (_etype848, _size845) = iprot.readListBegin()
  19075. for _i849 in xrange(_size845):
  19076. _elem850 = iprot.readString()
  19077. self.part_vals.append(_elem850)
  19078. iprot.readListEnd()
  19079. else:
  19080. iprot.skip(ftype)
  19081. elif fid == 4:
  19082. if ftype == TType.I16:
  19083. self.max_parts = iprot.readI16()
  19084. else:
  19085. iprot.skip(ftype)
  19086. elif fid == 5:
  19087. if ftype == TType.STRING:
  19088. self.user_name = iprot.readString()
  19089. else:
  19090. iprot.skip(ftype)
  19091. elif fid == 6:
  19092. if ftype == TType.LIST:
  19093. self.group_names = []
  19094. (_etype854, _size851) = iprot.readListBegin()
  19095. for _i855 in xrange(_size851):
  19096. _elem856 = iprot.readString()
  19097. self.group_names.append(_elem856)
  19098. iprot.readListEnd()
  19099. else:
  19100. iprot.skip(ftype)
  19101. else:
  19102. iprot.skip(ftype)
  19103. iprot.readFieldEnd()
  19104. iprot.readStructEnd()
  19105. def write(self, oprot):
  19106. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  19107. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  19108. return
  19109. oprot.writeStructBegin('get_partitions_ps_with_auth_args')
  19110. if self.db_name is not None:
  19111. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  19112. oprot.writeString(self.db_name)
  19113. oprot.writeFieldEnd()
  19114. if self.tbl_name is not None:
  19115. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  19116. oprot.writeString(self.tbl_name)
  19117. oprot.writeFieldEnd()
  19118. if self.part_vals is not None:
  19119. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  19120. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  19121. for iter857 in self.part_vals:
  19122. oprot.writeString(iter857)
  19123. oprot.writeListEnd()
  19124. oprot.writeFieldEnd()
  19125. if self.max_parts is not None:
  19126. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  19127. oprot.writeI16(self.max_parts)
  19128. oprot.writeFieldEnd()
  19129. if self.user_name is not None:
  19130. oprot.writeFieldBegin('user_name', TType.STRING, 5)
  19131. oprot.writeString(self.user_name)
  19132. oprot.writeFieldEnd()
  19133. if self.group_names is not None:
  19134. oprot.writeFieldBegin('group_names', TType.LIST, 6)
  19135. oprot.writeListBegin(TType.STRING, len(self.group_names))
  19136. for iter858 in self.group_names:
  19137. oprot.writeString(iter858)
  19138. oprot.writeListEnd()
  19139. oprot.writeFieldEnd()
  19140. oprot.writeFieldStop()
  19141. oprot.writeStructEnd()
  19142. def validate(self):
  19143. return
  19144. def __hash__(self):
  19145. value = 17
  19146. value = (value * 31) ^ hash(self.db_name)
  19147. value = (value * 31) ^ hash(self.tbl_name)
  19148. value = (value * 31) ^ hash(self.part_vals)
  19149. value = (value * 31) ^ hash(self.max_parts)
  19150. value = (value * 31) ^ hash(self.user_name)
  19151. value = (value * 31) ^ hash(self.group_names)
  19152. return value
  19153. def __repr__(self):
  19154. L = ['%s=%r' % (key, value)
  19155. for key, value in self.__dict__.iteritems()]
  19156. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19157. def __eq__(self, other):
  19158. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19159. def __ne__(self, other):
  19160. return not (self == other)
  19161. class get_partitions_ps_with_auth_result(object):
  19162. """
  19163. Attributes:
  19164. - success
  19165. - o1
  19166. - o2
  19167. """
  19168. thrift_spec = (
  19169. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  19170. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  19171. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  19172. )
  19173. def __init__(self, success=None, o1=None, o2=None,):
  19174. self.success = success
  19175. self.o1 = o1
  19176. self.o2 = o2
  19177. def read(self, iprot):
  19178. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  19179. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  19180. return
  19181. iprot.readStructBegin()
  19182. while True:
  19183. (fname, ftype, fid) = iprot.readFieldBegin()
  19184. if ftype == TType.STOP:
  19185. break
  19186. if fid == 0:
  19187. if ftype == TType.LIST:
  19188. self.success = []
  19189. (_etype862, _size859) = iprot.readListBegin()
  19190. for _i863 in xrange(_size859):
  19191. _elem864 = Partition()
  19192. _elem864.read(iprot)
  19193. self.success.append(_elem864)
  19194. iprot.readListEnd()
  19195. else:
  19196. iprot.skip(ftype)
  19197. elif fid == 1:
  19198. if ftype == TType.STRUCT:
  19199. self.o1 = NoSuchObjectException()
  19200. self.o1.read(iprot)
  19201. else:
  19202. iprot.skip(ftype)
  19203. elif fid == 2:
  19204. if ftype == TType.STRUCT:
  19205. self.o2 = MetaException()
  19206. self.o2.read(iprot)
  19207. else:
  19208. iprot.skip(ftype)
  19209. else:
  19210. iprot.skip(ftype)
  19211. iprot.readFieldEnd()
  19212. iprot.readStructEnd()
  19213. def write(self, oprot):
  19214. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  19215. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  19216. return
  19217. oprot.writeStructBegin('get_partitions_ps_with_auth_result')
  19218. if self.success is not None:
  19219. oprot.writeFieldBegin('success', TType.LIST, 0)
  19220. oprot.writeListBegin(TType.STRUCT, len(self.success))
  19221. for iter865 in self.success:
  19222. iter865.write(oprot)
  19223. oprot.writeListEnd()
  19224. oprot.writeFieldEnd()
  19225. if self.o1 is not None:
  19226. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  19227. self.o1.write(oprot)
  19228. oprot.writeFieldEnd()
  19229. if self.o2 is not None:
  19230. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  19231. self.o2.write(oprot)
  19232. oprot.writeFieldEnd()
  19233. oprot.writeFieldStop()
  19234. oprot.writeStructEnd()
  19235. def validate(self):
  19236. return
  19237. def __hash__(self):
  19238. value = 17
  19239. value = (value * 31) ^ hash(self.success)
  19240. value = (value * 31) ^ hash(self.o1)
  19241. value = (value * 31) ^ hash(self.o2)
  19242. return value
  19243. def __repr__(self):
  19244. L = ['%s=%r' % (key, value)
  19245. for key, value in self.__dict__.iteritems()]
  19246. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19247. def __eq__(self, other):
  19248. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19249. def __ne__(self, other):
  19250. return not (self == other)
  19251. class get_partition_names_ps_args(object):
  19252. """
  19253. Attributes:
  19254. - db_name
  19255. - tbl_name
  19256. - part_vals
  19257. - max_parts
  19258. """
  19259. thrift_spec = (
  19260. None, # 0
  19261. (1, TType.STRING, 'db_name', None, None, ), # 1
  19262. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  19263. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  19264. (4, TType.I16, 'max_parts', None, -1, ), # 4
  19265. )
  19266. def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4],):
  19267. self.db_name = db_name
  19268. self.tbl_name = tbl_name
  19269. self.part_vals = part_vals
  19270. self.max_parts = max_parts
  19271. def read(self, iprot):
  19272. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  19273. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  19274. return
  19275. iprot.readStructBegin()
  19276. while True:
  19277. (fname, ftype, fid) = iprot.readFieldBegin()
  19278. if ftype == TType.STOP:
  19279. break
  19280. if fid == 1:
  19281. if ftype == TType.STRING:
  19282. self.db_name = iprot.readString()
  19283. else:
  19284. iprot.skip(ftype)
  19285. elif fid == 2:
  19286. if ftype == TType.STRING:
  19287. self.tbl_name = iprot.readString()
  19288. else:
  19289. iprot.skip(ftype)
  19290. elif fid == 3:
  19291. if ftype == TType.LIST:
  19292. self.part_vals = []
  19293. (_etype869, _size866) = iprot.readListBegin()
  19294. for _i870 in xrange(_size866):
  19295. _elem871 = iprot.readString()
  19296. self.part_vals.append(_elem871)
  19297. iprot.readListEnd()
  19298. else:
  19299. iprot.skip(ftype)
  19300. elif fid == 4:
  19301. if ftype == TType.I16:
  19302. self.max_parts = iprot.readI16()
  19303. else:
  19304. iprot.skip(ftype)
  19305. else:
  19306. iprot.skip(ftype)
  19307. iprot.readFieldEnd()
  19308. iprot.readStructEnd()
  19309. def write(self, oprot):
  19310. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  19311. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  19312. return
  19313. oprot.writeStructBegin('get_partition_names_ps_args')
  19314. if self.db_name is not None:
  19315. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  19316. oprot.writeString(self.db_name)
  19317. oprot.writeFieldEnd()
  19318. if self.tbl_name is not None:
  19319. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  19320. oprot.writeString(self.tbl_name)
  19321. oprot.writeFieldEnd()
  19322. if self.part_vals is not None:
  19323. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  19324. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  19325. for iter872 in self.part_vals:
  19326. oprot.writeString(iter872)
  19327. oprot.writeListEnd()
  19328. oprot.writeFieldEnd()
  19329. if self.max_parts is not None:
  19330. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  19331. oprot.writeI16(self.max_parts)
  19332. oprot.writeFieldEnd()
  19333. oprot.writeFieldStop()
  19334. oprot.writeStructEnd()
  19335. def validate(self):
  19336. return
  19337. def __hash__(self):
  19338. value = 17
  19339. value = (value * 31) ^ hash(self.db_name)
  19340. value = (value * 31) ^ hash(self.tbl_name)
  19341. value = (value * 31) ^ hash(self.part_vals)
  19342. value = (value * 31) ^ hash(self.max_parts)
  19343. return value
  19344. def __repr__(self):
  19345. L = ['%s=%r' % (key, value)
  19346. for key, value in self.__dict__.iteritems()]
  19347. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19348. def __eq__(self, other):
  19349. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19350. def __ne__(self, other):
  19351. return not (self == other)
  19352. class get_partition_names_ps_result(object):
  19353. """
  19354. Attributes:
  19355. - success
  19356. - o1
  19357. - o2
  19358. """
  19359. thrift_spec = (
  19360. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  19361. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  19362. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  19363. )
  19364. def __init__(self, success=None, o1=None, o2=None,):
  19365. self.success = success
  19366. self.o1 = o1
  19367. self.o2 = o2
  19368. def read(self, iprot):
  19369. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  19370. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  19371. return
  19372. iprot.readStructBegin()
  19373. while True:
  19374. (fname, ftype, fid) = iprot.readFieldBegin()
  19375. if ftype == TType.STOP:
  19376. break
  19377. if fid == 0:
  19378. if ftype == TType.LIST:
  19379. self.success = []
  19380. (_etype876, _size873) = iprot.readListBegin()
  19381. for _i877 in xrange(_size873):
  19382. _elem878 = iprot.readString()
  19383. self.success.append(_elem878)
  19384. iprot.readListEnd()
  19385. else:
  19386. iprot.skip(ftype)
  19387. elif fid == 1:
  19388. if ftype == TType.STRUCT:
  19389. self.o1 = MetaException()
  19390. self.o1.read(iprot)
  19391. else:
  19392. iprot.skip(ftype)
  19393. elif fid == 2:
  19394. if ftype == TType.STRUCT:
  19395. self.o2 = NoSuchObjectException()
  19396. self.o2.read(iprot)
  19397. else:
  19398. iprot.skip(ftype)
  19399. else:
  19400. iprot.skip(ftype)
  19401. iprot.readFieldEnd()
  19402. iprot.readStructEnd()
  19403. def write(self, oprot):
  19404. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  19405. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  19406. return
  19407. oprot.writeStructBegin('get_partition_names_ps_result')
  19408. if self.success is not None:
  19409. oprot.writeFieldBegin('success', TType.LIST, 0)
  19410. oprot.writeListBegin(TType.STRING, len(self.success))
  19411. for iter879 in self.success:
  19412. oprot.writeString(iter879)
  19413. oprot.writeListEnd()
  19414. oprot.writeFieldEnd()
  19415. if self.o1 is not None:
  19416. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  19417. self.o1.write(oprot)
  19418. oprot.writeFieldEnd()
  19419. if self.o2 is not None:
  19420. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  19421. self.o2.write(oprot)
  19422. oprot.writeFieldEnd()
  19423. oprot.writeFieldStop()
  19424. oprot.writeStructEnd()
  19425. def validate(self):
  19426. return
  19427. def __hash__(self):
  19428. value = 17
  19429. value = (value * 31) ^ hash(self.success)
  19430. value = (value * 31) ^ hash(self.o1)
  19431. value = (value * 31) ^ hash(self.o2)
  19432. return value
  19433. def __repr__(self):
  19434. L = ['%s=%r' % (key, value)
  19435. for key, value in self.__dict__.iteritems()]
  19436. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19437. def __eq__(self, other):
  19438. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19439. def __ne__(self, other):
  19440. return not (self == other)
  19441. class get_partitions_by_filter_args(object):
  19442. """
  19443. Attributes:
  19444. - db_name
  19445. - tbl_name
  19446. - filter
  19447. - max_parts
  19448. """
  19449. thrift_spec = (
  19450. None, # 0
  19451. (1, TType.STRING, 'db_name', None, None, ), # 1
  19452. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  19453. (3, TType.STRING, 'filter', None, None, ), # 3
  19454. (4, TType.I16, 'max_parts', None, -1, ), # 4
  19455. )
  19456. def __init__(self, db_name=None, tbl_name=None, filter=None, max_parts=thrift_spec[4][4],):
  19457. self.db_name = db_name
  19458. self.tbl_name = tbl_name
  19459. self.filter = filter
  19460. self.max_parts = max_parts
  19461. def read(self, iprot):
  19462. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  19463. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  19464. return
  19465. iprot.readStructBegin()
  19466. while True:
  19467. (fname, ftype, fid) = iprot.readFieldBegin()
  19468. if ftype == TType.STOP:
  19469. break
  19470. if fid == 1:
  19471. if ftype == TType.STRING:
  19472. self.db_name = iprot.readString()
  19473. else:
  19474. iprot.skip(ftype)
  19475. elif fid == 2:
  19476. if ftype == TType.STRING:
  19477. self.tbl_name = iprot.readString()
  19478. else:
  19479. iprot.skip(ftype)
  19480. elif fid == 3:
  19481. if ftype == TType.STRING:
  19482. self.filter = iprot.readString()
  19483. else:
  19484. iprot.skip(ftype)
  19485. elif fid == 4:
  19486. if ftype == TType.I16:
  19487. self.max_parts = iprot.readI16()
  19488. else:
  19489. iprot.skip(ftype)
  19490. else:
  19491. iprot.skip(ftype)
  19492. iprot.readFieldEnd()
  19493. iprot.readStructEnd()
  19494. def write(self, oprot):
  19495. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  19496. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  19497. return
  19498. oprot.writeStructBegin('get_partitions_by_filter_args')
  19499. if self.db_name is not None:
  19500. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  19501. oprot.writeString(self.db_name)
  19502. oprot.writeFieldEnd()
  19503. if self.tbl_name is not None:
  19504. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  19505. oprot.writeString(self.tbl_name)
  19506. oprot.writeFieldEnd()
  19507. if self.filter is not None:
  19508. oprot.writeFieldBegin('filter', TType.STRING, 3)
  19509. oprot.writeString(self.filter)
  19510. oprot.writeFieldEnd()
  19511. if self.max_parts is not None:
  19512. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  19513. oprot.writeI16(self.max_parts)
  19514. oprot.writeFieldEnd()
  19515. oprot.writeFieldStop()
  19516. oprot.writeStructEnd()
  19517. def validate(self):
  19518. return
  19519. def __hash__(self):
  19520. value = 17
  19521. value = (value * 31) ^ hash(self.db_name)
  19522. value = (value * 31) ^ hash(self.tbl_name)
  19523. value = (value * 31) ^ hash(self.filter)
  19524. value = (value * 31) ^ hash(self.max_parts)
  19525. return value
  19526. def __repr__(self):
  19527. L = ['%s=%r' % (key, value)
  19528. for key, value in self.__dict__.iteritems()]
  19529. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19530. def __eq__(self, other):
  19531. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19532. def __ne__(self, other):
  19533. return not (self == other)
  19534. class get_partitions_by_filter_result(object):
  19535. """
  19536. Attributes:
  19537. - success
  19538. - o1
  19539. - o2
  19540. """
  19541. thrift_spec = (
  19542. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  19543. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  19544. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  19545. )
  19546. def __init__(self, success=None, o1=None, o2=None,):
  19547. self.success = success
  19548. self.o1 = o1
  19549. self.o2 = o2
  19550. def read(self, iprot):
  19551. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  19552. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  19553. return
  19554. iprot.readStructBegin()
  19555. while True:
  19556. (fname, ftype, fid) = iprot.readFieldBegin()
  19557. if ftype == TType.STOP:
  19558. break
  19559. if fid == 0:
  19560. if ftype == TType.LIST:
  19561. self.success = []
  19562. (_etype883, _size880) = iprot.readListBegin()
  19563. for _i884 in xrange(_size880):
  19564. _elem885 = Partition()
  19565. _elem885.read(iprot)
  19566. self.success.append(_elem885)
  19567. iprot.readListEnd()
  19568. else:
  19569. iprot.skip(ftype)
  19570. elif fid == 1:
  19571. if ftype == TType.STRUCT:
  19572. self.o1 = MetaException()
  19573. self.o1.read(iprot)
  19574. else:
  19575. iprot.skip(ftype)
  19576. elif fid == 2:
  19577. if ftype == TType.STRUCT:
  19578. self.o2 = NoSuchObjectException()
  19579. self.o2.read(iprot)
  19580. else:
  19581. iprot.skip(ftype)
  19582. else:
  19583. iprot.skip(ftype)
  19584. iprot.readFieldEnd()
  19585. iprot.readStructEnd()
  19586. def write(self, oprot):
  19587. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  19588. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  19589. return
  19590. oprot.writeStructBegin('get_partitions_by_filter_result')
  19591. if self.success is not None:
  19592. oprot.writeFieldBegin('success', TType.LIST, 0)
  19593. oprot.writeListBegin(TType.STRUCT, len(self.success))
  19594. for iter886 in self.success:
  19595. iter886.write(oprot)
  19596. oprot.writeListEnd()
  19597. oprot.writeFieldEnd()
  19598. if self.o1 is not None:
  19599. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  19600. self.o1.write(oprot)
  19601. oprot.writeFieldEnd()
  19602. if self.o2 is not None:
  19603. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  19604. self.o2.write(oprot)
  19605. oprot.writeFieldEnd()
  19606. oprot.writeFieldStop()
  19607. oprot.writeStructEnd()
  19608. def validate(self):
  19609. return
  19610. def __hash__(self):
  19611. value = 17
  19612. value = (value * 31) ^ hash(self.success)
  19613. value = (value * 31) ^ hash(self.o1)
  19614. value = (value * 31) ^ hash(self.o2)
  19615. return value
  19616. def __repr__(self):
  19617. L = ['%s=%r' % (key, value)
  19618. for key, value in self.__dict__.iteritems()]
  19619. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19620. def __eq__(self, other):
  19621. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19622. def __ne__(self, other):
  19623. return not (self == other)
  19624. class get_part_specs_by_filter_args(object):
  19625. """
  19626. Attributes:
  19627. - db_name
  19628. - tbl_name
  19629. - filter
  19630. - max_parts
  19631. """
  19632. thrift_spec = (
  19633. None, # 0
  19634. (1, TType.STRING, 'db_name', None, None, ), # 1
  19635. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  19636. (3, TType.STRING, 'filter', None, None, ), # 3
  19637. (4, TType.I32, 'max_parts', None, -1, ), # 4
  19638. )
  19639. def __init__(self, db_name=None, tbl_name=None, filter=None, max_parts=thrift_spec[4][4],):
  19640. self.db_name = db_name
  19641. self.tbl_name = tbl_name
  19642. self.filter = filter
  19643. self.max_parts = max_parts
  19644. def read(self, iprot):
  19645. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  19646. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  19647. return
  19648. iprot.readStructBegin()
  19649. while True:
  19650. (fname, ftype, fid) = iprot.readFieldBegin()
  19651. if ftype == TType.STOP:
  19652. break
  19653. if fid == 1:
  19654. if ftype == TType.STRING:
  19655. self.db_name = iprot.readString()
  19656. else:
  19657. iprot.skip(ftype)
  19658. elif fid == 2:
  19659. if ftype == TType.STRING:
  19660. self.tbl_name = iprot.readString()
  19661. else:
  19662. iprot.skip(ftype)
  19663. elif fid == 3:
  19664. if ftype == TType.STRING:
  19665. self.filter = iprot.readString()
  19666. else:
  19667. iprot.skip(ftype)
  19668. elif fid == 4:
  19669. if ftype == TType.I32:
  19670. self.max_parts = iprot.readI32()
  19671. else:
  19672. iprot.skip(ftype)
  19673. else:
  19674. iprot.skip(ftype)
  19675. iprot.readFieldEnd()
  19676. iprot.readStructEnd()
  19677. def write(self, oprot):
  19678. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  19679. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  19680. return
  19681. oprot.writeStructBegin('get_part_specs_by_filter_args')
  19682. if self.db_name is not None:
  19683. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  19684. oprot.writeString(self.db_name)
  19685. oprot.writeFieldEnd()
  19686. if self.tbl_name is not None:
  19687. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  19688. oprot.writeString(self.tbl_name)
  19689. oprot.writeFieldEnd()
  19690. if self.filter is not None:
  19691. oprot.writeFieldBegin('filter', TType.STRING, 3)
  19692. oprot.writeString(self.filter)
  19693. oprot.writeFieldEnd()
  19694. if self.max_parts is not None:
  19695. oprot.writeFieldBegin('max_parts', TType.I32, 4)
  19696. oprot.writeI32(self.max_parts)
  19697. oprot.writeFieldEnd()
  19698. oprot.writeFieldStop()
  19699. oprot.writeStructEnd()
  19700. def validate(self):
  19701. return
  19702. def __hash__(self):
  19703. value = 17
  19704. value = (value * 31) ^ hash(self.db_name)
  19705. value = (value * 31) ^ hash(self.tbl_name)
  19706. value = (value * 31) ^ hash(self.filter)
  19707. value = (value * 31) ^ hash(self.max_parts)
  19708. return value
  19709. def __repr__(self):
  19710. L = ['%s=%r' % (key, value)
  19711. for key, value in self.__dict__.iteritems()]
  19712. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19713. def __eq__(self, other):
  19714. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19715. def __ne__(self, other):
  19716. return not (self == other)
  19717. class get_part_specs_by_filter_result(object):
  19718. """
  19719. Attributes:
  19720. - success
  19721. - o1
  19722. - o2
  19723. """
  19724. thrift_spec = (
  19725. (0, TType.LIST, 'success', (TType.STRUCT,(PartitionSpec, PartitionSpec.thrift_spec)), None, ), # 0
  19726. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  19727. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  19728. )
  19729. def __init__(self, success=None, o1=None, o2=None,):
  19730. self.success = success
  19731. self.o1 = o1
  19732. self.o2 = o2
  19733. def read(self, iprot):
  19734. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  19735. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  19736. return
  19737. iprot.readStructBegin()
  19738. while True:
  19739. (fname, ftype, fid) = iprot.readFieldBegin()
  19740. if ftype == TType.STOP:
  19741. break
  19742. if fid == 0:
  19743. if ftype == TType.LIST:
  19744. self.success = []
  19745. (_etype890, _size887) = iprot.readListBegin()
  19746. for _i891 in xrange(_size887):
  19747. _elem892 = PartitionSpec()
  19748. _elem892.read(iprot)
  19749. self.success.append(_elem892)
  19750. iprot.readListEnd()
  19751. else:
  19752. iprot.skip(ftype)
  19753. elif fid == 1:
  19754. if ftype == TType.STRUCT:
  19755. self.o1 = MetaException()
  19756. self.o1.read(iprot)
  19757. else:
  19758. iprot.skip(ftype)
  19759. elif fid == 2:
  19760. if ftype == TType.STRUCT:
  19761. self.o2 = NoSuchObjectException()
  19762. self.o2.read(iprot)
  19763. else:
  19764. iprot.skip(ftype)
  19765. else:
  19766. iprot.skip(ftype)
  19767. iprot.readFieldEnd()
  19768. iprot.readStructEnd()
  19769. def write(self, oprot):
  19770. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  19771. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  19772. return
  19773. oprot.writeStructBegin('get_part_specs_by_filter_result')
  19774. if self.success is not None:
  19775. oprot.writeFieldBegin('success', TType.LIST, 0)
  19776. oprot.writeListBegin(TType.STRUCT, len(self.success))
  19777. for iter893 in self.success:
  19778. iter893.write(oprot)
  19779. oprot.writeListEnd()
  19780. oprot.writeFieldEnd()
  19781. if self.o1 is not None:
  19782. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  19783. self.o1.write(oprot)
  19784. oprot.writeFieldEnd()
  19785. if self.o2 is not None:
  19786. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  19787. self.o2.write(oprot)
  19788. oprot.writeFieldEnd()
  19789. oprot.writeFieldStop()
  19790. oprot.writeStructEnd()
  19791. def validate(self):
  19792. return
  19793. def __hash__(self):
  19794. value = 17
  19795. value = (value * 31) ^ hash(self.success)
  19796. value = (value * 31) ^ hash(self.o1)
  19797. value = (value * 31) ^ hash(self.o2)
  19798. return value
  19799. def __repr__(self):
  19800. L = ['%s=%r' % (key, value)
  19801. for key, value in self.__dict__.iteritems()]
  19802. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19803. def __eq__(self, other):
  19804. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19805. def __ne__(self, other):
  19806. return not (self == other)
  19807. class get_partitions_by_expr_args(object):
  19808. """
  19809. Attributes:
  19810. - req
  19811. """
  19812. thrift_spec = (
  19813. None, # 0
  19814. (1, TType.STRUCT, 'req', (PartitionsByExprRequest, PartitionsByExprRequest.thrift_spec), None, ), # 1
  19815. )
  19816. def __init__(self, req=None,):
  19817. self.req = req
  19818. def read(self, iprot):
  19819. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  19820. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  19821. return
  19822. iprot.readStructBegin()
  19823. while True:
  19824. (fname, ftype, fid) = iprot.readFieldBegin()
  19825. if ftype == TType.STOP:
  19826. break
  19827. if fid == 1:
  19828. if ftype == TType.STRUCT:
  19829. self.req = PartitionsByExprRequest()
  19830. self.req.read(iprot)
  19831. else:
  19832. iprot.skip(ftype)
  19833. else:
  19834. iprot.skip(ftype)
  19835. iprot.readFieldEnd()
  19836. iprot.readStructEnd()
  19837. def write(self, oprot):
  19838. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  19839. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  19840. return
  19841. oprot.writeStructBegin('get_partitions_by_expr_args')
  19842. if self.req is not None:
  19843. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  19844. self.req.write(oprot)
  19845. oprot.writeFieldEnd()
  19846. oprot.writeFieldStop()
  19847. oprot.writeStructEnd()
  19848. def validate(self):
  19849. return
  19850. def __hash__(self):
  19851. value = 17
  19852. value = (value * 31) ^ hash(self.req)
  19853. return value
  19854. def __repr__(self):
  19855. L = ['%s=%r' % (key, value)
  19856. for key, value in self.__dict__.iteritems()]
  19857. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19858. def __eq__(self, other):
  19859. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19860. def __ne__(self, other):
  19861. return not (self == other)
  19862. class get_partitions_by_expr_result(object):
  19863. """
  19864. Attributes:
  19865. - success
  19866. - o1
  19867. - o2
  19868. """
  19869. thrift_spec = (
  19870. (0, TType.STRUCT, 'success', (PartitionsByExprResult, PartitionsByExprResult.thrift_spec), None, ), # 0
  19871. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  19872. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  19873. )
  19874. def __init__(self, success=None, o1=None, o2=None,):
  19875. self.success = success
  19876. self.o1 = o1
  19877. self.o2 = o2
  19878. def read(self, iprot):
  19879. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  19880. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  19881. return
  19882. iprot.readStructBegin()
  19883. while True:
  19884. (fname, ftype, fid) = iprot.readFieldBegin()
  19885. if ftype == TType.STOP:
  19886. break
  19887. if fid == 0:
  19888. if ftype == TType.STRUCT:
  19889. self.success = PartitionsByExprResult()
  19890. self.success.read(iprot)
  19891. else:
  19892. iprot.skip(ftype)
  19893. elif fid == 1:
  19894. if ftype == TType.STRUCT:
  19895. self.o1 = MetaException()
  19896. self.o1.read(iprot)
  19897. else:
  19898. iprot.skip(ftype)
  19899. elif fid == 2:
  19900. if ftype == TType.STRUCT:
  19901. self.o2 = NoSuchObjectException()
  19902. self.o2.read(iprot)
  19903. else:
  19904. iprot.skip(ftype)
  19905. else:
  19906. iprot.skip(ftype)
  19907. iprot.readFieldEnd()
  19908. iprot.readStructEnd()
  19909. def write(self, oprot):
  19910. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  19911. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  19912. return
  19913. oprot.writeStructBegin('get_partitions_by_expr_result')
  19914. if self.success is not None:
  19915. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  19916. self.success.write(oprot)
  19917. oprot.writeFieldEnd()
  19918. if self.o1 is not None:
  19919. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  19920. self.o1.write(oprot)
  19921. oprot.writeFieldEnd()
  19922. if self.o2 is not None:
  19923. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  19924. self.o2.write(oprot)
  19925. oprot.writeFieldEnd()
  19926. oprot.writeFieldStop()
  19927. oprot.writeStructEnd()
  19928. def validate(self):
  19929. return
  19930. def __hash__(self):
  19931. value = 17
  19932. value = (value * 31) ^ hash(self.success)
  19933. value = (value * 31) ^ hash(self.o1)
  19934. value = (value * 31) ^ hash(self.o2)
  19935. return value
  19936. def __repr__(self):
  19937. L = ['%s=%r' % (key, value)
  19938. for key, value in self.__dict__.iteritems()]
  19939. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19940. def __eq__(self, other):
  19941. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19942. def __ne__(self, other):
  19943. return not (self == other)
  19944. class get_num_partitions_by_filter_args(object):
  19945. """
  19946. Attributes:
  19947. - db_name
  19948. - tbl_name
  19949. - filter
  19950. """
  19951. thrift_spec = (
  19952. None, # 0
  19953. (1, TType.STRING, 'db_name', None, None, ), # 1
  19954. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  19955. (3, TType.STRING, 'filter', None, None, ), # 3
  19956. )
  19957. def __init__(self, db_name=None, tbl_name=None, filter=None,):
  19958. self.db_name = db_name
  19959. self.tbl_name = tbl_name
  19960. self.filter = filter
  19961. def read(self, iprot):
  19962. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  19963. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  19964. return
  19965. iprot.readStructBegin()
  19966. while True:
  19967. (fname, ftype, fid) = iprot.readFieldBegin()
  19968. if ftype == TType.STOP:
  19969. break
  19970. if fid == 1:
  19971. if ftype == TType.STRING:
  19972. self.db_name = iprot.readString()
  19973. else:
  19974. iprot.skip(ftype)
  19975. elif fid == 2:
  19976. if ftype == TType.STRING:
  19977. self.tbl_name = iprot.readString()
  19978. else:
  19979. iprot.skip(ftype)
  19980. elif fid == 3:
  19981. if ftype == TType.STRING:
  19982. self.filter = iprot.readString()
  19983. else:
  19984. iprot.skip(ftype)
  19985. else:
  19986. iprot.skip(ftype)
  19987. iprot.readFieldEnd()
  19988. iprot.readStructEnd()
  19989. def write(self, oprot):
  19990. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  19991. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  19992. return
  19993. oprot.writeStructBegin('get_num_partitions_by_filter_args')
  19994. if self.db_name is not None:
  19995. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  19996. oprot.writeString(self.db_name)
  19997. oprot.writeFieldEnd()
  19998. if self.tbl_name is not None:
  19999. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20000. oprot.writeString(self.tbl_name)
  20001. oprot.writeFieldEnd()
  20002. if self.filter is not None:
  20003. oprot.writeFieldBegin('filter', TType.STRING, 3)
  20004. oprot.writeString(self.filter)
  20005. oprot.writeFieldEnd()
  20006. oprot.writeFieldStop()
  20007. oprot.writeStructEnd()
  20008. def validate(self):
  20009. return
  20010. def __hash__(self):
  20011. value = 17
  20012. value = (value * 31) ^ hash(self.db_name)
  20013. value = (value * 31) ^ hash(self.tbl_name)
  20014. value = (value * 31) ^ hash(self.filter)
  20015. return value
  20016. def __repr__(self):
  20017. L = ['%s=%r' % (key, value)
  20018. for key, value in self.__dict__.iteritems()]
  20019. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20020. def __eq__(self, other):
  20021. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20022. def __ne__(self, other):
  20023. return not (self == other)
  20024. class get_num_partitions_by_filter_result(object):
  20025. """
  20026. Attributes:
  20027. - success
  20028. - o1
  20029. - o2
  20030. """
  20031. thrift_spec = (
  20032. (0, TType.I32, 'success', None, None, ), # 0
  20033. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  20034. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  20035. )
  20036. def __init__(self, success=None, o1=None, o2=None,):
  20037. self.success = success
  20038. self.o1 = o1
  20039. self.o2 = o2
  20040. def read(self, iprot):
  20041. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  20042. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  20043. return
  20044. iprot.readStructBegin()
  20045. while True:
  20046. (fname, ftype, fid) = iprot.readFieldBegin()
  20047. if ftype == TType.STOP:
  20048. break
  20049. if fid == 0:
  20050. if ftype == TType.I32:
  20051. self.success = iprot.readI32()
  20052. else:
  20053. iprot.skip(ftype)
  20054. elif fid == 1:
  20055. if ftype == TType.STRUCT:
  20056. self.o1 = MetaException()
  20057. self.o1.read(iprot)
  20058. else:
  20059. iprot.skip(ftype)
  20060. elif fid == 2:
  20061. if ftype == TType.STRUCT:
  20062. self.o2 = NoSuchObjectException()
  20063. self.o2.read(iprot)
  20064. else:
  20065. iprot.skip(ftype)
  20066. else:
  20067. iprot.skip(ftype)
  20068. iprot.readFieldEnd()
  20069. iprot.readStructEnd()
  20070. def write(self, oprot):
  20071. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  20072. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  20073. return
  20074. oprot.writeStructBegin('get_num_partitions_by_filter_result')
  20075. if self.success is not None:
  20076. oprot.writeFieldBegin('success', TType.I32, 0)
  20077. oprot.writeI32(self.success)
  20078. oprot.writeFieldEnd()
  20079. if self.o1 is not None:
  20080. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  20081. self.o1.write(oprot)
  20082. oprot.writeFieldEnd()
  20083. if self.o2 is not None:
  20084. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  20085. self.o2.write(oprot)
  20086. oprot.writeFieldEnd()
  20087. oprot.writeFieldStop()
  20088. oprot.writeStructEnd()
  20089. def validate(self):
  20090. return
  20091. def __hash__(self):
  20092. value = 17
  20093. value = (value * 31) ^ hash(self.success)
  20094. value = (value * 31) ^ hash(self.o1)
  20095. value = (value * 31) ^ hash(self.o2)
  20096. return value
  20097. def __repr__(self):
  20098. L = ['%s=%r' % (key, value)
  20099. for key, value in self.__dict__.iteritems()]
  20100. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20101. def __eq__(self, other):
  20102. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20103. def __ne__(self, other):
  20104. return not (self == other)
  20105. class get_partitions_by_names_args(object):
  20106. """
  20107. Attributes:
  20108. - db_name
  20109. - tbl_name
  20110. - names
  20111. """
  20112. thrift_spec = (
  20113. None, # 0
  20114. (1, TType.STRING, 'db_name', None, None, ), # 1
  20115. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  20116. (3, TType.LIST, 'names', (TType.STRING,None), None, ), # 3
  20117. )
  20118. def __init__(self, db_name=None, tbl_name=None, names=None,):
  20119. self.db_name = db_name
  20120. self.tbl_name = tbl_name
  20121. self.names = names
  20122. def read(self, iprot):
  20123. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  20124. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  20125. return
  20126. iprot.readStructBegin()
  20127. while True:
  20128. (fname, ftype, fid) = iprot.readFieldBegin()
  20129. if ftype == TType.STOP:
  20130. break
  20131. if fid == 1:
  20132. if ftype == TType.STRING:
  20133. self.db_name = iprot.readString()
  20134. else:
  20135. iprot.skip(ftype)
  20136. elif fid == 2:
  20137. if ftype == TType.STRING:
  20138. self.tbl_name = iprot.readString()
  20139. else:
  20140. iprot.skip(ftype)
  20141. elif fid == 3:
  20142. if ftype == TType.LIST:
  20143. self.names = []
  20144. (_etype897, _size894) = iprot.readListBegin()
  20145. for _i898 in xrange(_size894):
  20146. _elem899 = iprot.readString()
  20147. self.names.append(_elem899)
  20148. iprot.readListEnd()
  20149. else:
  20150. iprot.skip(ftype)
  20151. else:
  20152. iprot.skip(ftype)
  20153. iprot.readFieldEnd()
  20154. iprot.readStructEnd()
  20155. def write(self, oprot):
  20156. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  20157. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  20158. return
  20159. oprot.writeStructBegin('get_partitions_by_names_args')
  20160. if self.db_name is not None:
  20161. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  20162. oprot.writeString(self.db_name)
  20163. oprot.writeFieldEnd()
  20164. if self.tbl_name is not None:
  20165. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20166. oprot.writeString(self.tbl_name)
  20167. oprot.writeFieldEnd()
  20168. if self.names is not None:
  20169. oprot.writeFieldBegin('names', TType.LIST, 3)
  20170. oprot.writeListBegin(TType.STRING, len(self.names))
  20171. for iter900 in self.names:
  20172. oprot.writeString(iter900)
  20173. oprot.writeListEnd()
  20174. oprot.writeFieldEnd()
  20175. oprot.writeFieldStop()
  20176. oprot.writeStructEnd()
  20177. def validate(self):
  20178. return
  20179. def __hash__(self):
  20180. value = 17
  20181. value = (value * 31) ^ hash(self.db_name)
  20182. value = (value * 31) ^ hash(self.tbl_name)
  20183. value = (value * 31) ^ hash(self.names)
  20184. return value
  20185. def __repr__(self):
  20186. L = ['%s=%r' % (key, value)
  20187. for key, value in self.__dict__.iteritems()]
  20188. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20189. def __eq__(self, other):
  20190. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20191. def __ne__(self, other):
  20192. return not (self == other)
  20193. class get_partitions_by_names_result(object):
  20194. """
  20195. Attributes:
  20196. - success
  20197. - o1
  20198. - o2
  20199. """
  20200. thrift_spec = (
  20201. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  20202. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  20203. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  20204. )
  20205. def __init__(self, success=None, o1=None, o2=None,):
  20206. self.success = success
  20207. self.o1 = o1
  20208. self.o2 = o2
  20209. def read(self, iprot):
  20210. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  20211. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  20212. return
  20213. iprot.readStructBegin()
  20214. while True:
  20215. (fname, ftype, fid) = iprot.readFieldBegin()
  20216. if ftype == TType.STOP:
  20217. break
  20218. if fid == 0:
  20219. if ftype == TType.LIST:
  20220. self.success = []
  20221. (_etype904, _size901) = iprot.readListBegin()
  20222. for _i905 in xrange(_size901):
  20223. _elem906 = Partition()
  20224. _elem906.read(iprot)
  20225. self.success.append(_elem906)
  20226. iprot.readListEnd()
  20227. else:
  20228. iprot.skip(ftype)
  20229. elif fid == 1:
  20230. if ftype == TType.STRUCT:
  20231. self.o1 = MetaException()
  20232. self.o1.read(iprot)
  20233. else:
  20234. iprot.skip(ftype)
  20235. elif fid == 2:
  20236. if ftype == TType.STRUCT:
  20237. self.o2 = NoSuchObjectException()
  20238. self.o2.read(iprot)
  20239. else:
  20240. iprot.skip(ftype)
  20241. else:
  20242. iprot.skip(ftype)
  20243. iprot.readFieldEnd()
  20244. iprot.readStructEnd()
  20245. def write(self, oprot):
  20246. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  20247. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  20248. return
  20249. oprot.writeStructBegin('get_partitions_by_names_result')
  20250. if self.success is not None:
  20251. oprot.writeFieldBegin('success', TType.LIST, 0)
  20252. oprot.writeListBegin(TType.STRUCT, len(self.success))
  20253. for iter907 in self.success:
  20254. iter907.write(oprot)
  20255. oprot.writeListEnd()
  20256. oprot.writeFieldEnd()
  20257. if self.o1 is not None:
  20258. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  20259. self.o1.write(oprot)
  20260. oprot.writeFieldEnd()
  20261. if self.o2 is not None:
  20262. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  20263. self.o2.write(oprot)
  20264. oprot.writeFieldEnd()
  20265. oprot.writeFieldStop()
  20266. oprot.writeStructEnd()
  20267. def validate(self):
  20268. return
  20269. def __hash__(self):
  20270. value = 17
  20271. value = (value * 31) ^ hash(self.success)
  20272. value = (value * 31) ^ hash(self.o1)
  20273. value = (value * 31) ^ hash(self.o2)
  20274. return value
  20275. def __repr__(self):
  20276. L = ['%s=%r' % (key, value)
  20277. for key, value in self.__dict__.iteritems()]
  20278. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20279. def __eq__(self, other):
  20280. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20281. def __ne__(self, other):
  20282. return not (self == other)
  20283. class alter_partition_args(object):
  20284. """
  20285. Attributes:
  20286. - db_name
  20287. - tbl_name
  20288. - new_part
  20289. """
  20290. thrift_spec = (
  20291. None, # 0
  20292. (1, TType.STRING, 'db_name', None, None, ), # 1
  20293. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  20294. (3, TType.STRUCT, 'new_part', (Partition, Partition.thrift_spec), None, ), # 3
  20295. )
  20296. def __init__(self, db_name=None, tbl_name=None, new_part=None,):
  20297. self.db_name = db_name
  20298. self.tbl_name = tbl_name
  20299. self.new_part = new_part
  20300. def read(self, iprot):
  20301. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  20302. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  20303. return
  20304. iprot.readStructBegin()
  20305. while True:
  20306. (fname, ftype, fid) = iprot.readFieldBegin()
  20307. if ftype == TType.STOP:
  20308. break
  20309. if fid == 1:
  20310. if ftype == TType.STRING:
  20311. self.db_name = iprot.readString()
  20312. else:
  20313. iprot.skip(ftype)
  20314. elif fid == 2:
  20315. if ftype == TType.STRING:
  20316. self.tbl_name = iprot.readString()
  20317. else:
  20318. iprot.skip(ftype)
  20319. elif fid == 3:
  20320. if ftype == TType.STRUCT:
  20321. self.new_part = Partition()
  20322. self.new_part.read(iprot)
  20323. else:
  20324. iprot.skip(ftype)
  20325. else:
  20326. iprot.skip(ftype)
  20327. iprot.readFieldEnd()
  20328. iprot.readStructEnd()
  20329. def write(self, oprot):
  20330. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  20331. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  20332. return
  20333. oprot.writeStructBegin('alter_partition_args')
  20334. if self.db_name is not None:
  20335. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  20336. oprot.writeString(self.db_name)
  20337. oprot.writeFieldEnd()
  20338. if self.tbl_name is not None:
  20339. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20340. oprot.writeString(self.tbl_name)
  20341. oprot.writeFieldEnd()
  20342. if self.new_part is not None:
  20343. oprot.writeFieldBegin('new_part', TType.STRUCT, 3)
  20344. self.new_part.write(oprot)
  20345. oprot.writeFieldEnd()
  20346. oprot.writeFieldStop()
  20347. oprot.writeStructEnd()
  20348. def validate(self):
  20349. return
  20350. def __hash__(self):
  20351. value = 17
  20352. value = (value * 31) ^ hash(self.db_name)
  20353. value = (value * 31) ^ hash(self.tbl_name)
  20354. value = (value * 31) ^ hash(self.new_part)
  20355. return value
  20356. def __repr__(self):
  20357. L = ['%s=%r' % (key, value)
  20358. for key, value in self.__dict__.iteritems()]
  20359. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20360. def __eq__(self, other):
  20361. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20362. def __ne__(self, other):
  20363. return not (self == other)
  20364. class alter_partition_result(object):
  20365. """
  20366. Attributes:
  20367. - o1
  20368. - o2
  20369. """
  20370. thrift_spec = (
  20371. None, # 0
  20372. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  20373. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  20374. )
  20375. def __init__(self, o1=None, o2=None,):
  20376. self.o1 = o1
  20377. self.o2 = o2
  20378. def read(self, iprot):
  20379. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  20380. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  20381. return
  20382. iprot.readStructBegin()
  20383. while True:
  20384. (fname, ftype, fid) = iprot.readFieldBegin()
  20385. if ftype == TType.STOP:
  20386. break
  20387. if fid == 1:
  20388. if ftype == TType.STRUCT:
  20389. self.o1 = InvalidOperationException()
  20390. self.o1.read(iprot)
  20391. else:
  20392. iprot.skip(ftype)
  20393. elif fid == 2:
  20394. if ftype == TType.STRUCT:
  20395. self.o2 = MetaException()
  20396. self.o2.read(iprot)
  20397. else:
  20398. iprot.skip(ftype)
  20399. else:
  20400. iprot.skip(ftype)
  20401. iprot.readFieldEnd()
  20402. iprot.readStructEnd()
  20403. def write(self, oprot):
  20404. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  20405. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  20406. return
  20407. oprot.writeStructBegin('alter_partition_result')
  20408. if self.o1 is not None:
  20409. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  20410. self.o1.write(oprot)
  20411. oprot.writeFieldEnd()
  20412. if self.o2 is not None:
  20413. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  20414. self.o2.write(oprot)
  20415. oprot.writeFieldEnd()
  20416. oprot.writeFieldStop()
  20417. oprot.writeStructEnd()
  20418. def validate(self):
  20419. return
  20420. def __hash__(self):
  20421. value = 17
  20422. value = (value * 31) ^ hash(self.o1)
  20423. value = (value * 31) ^ hash(self.o2)
  20424. return value
  20425. def __repr__(self):
  20426. L = ['%s=%r' % (key, value)
  20427. for key, value in self.__dict__.iteritems()]
  20428. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20429. def __eq__(self, other):
  20430. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20431. def __ne__(self, other):
  20432. return not (self == other)
  20433. class alter_partitions_args(object):
  20434. """
  20435. Attributes:
  20436. - db_name
  20437. - tbl_name
  20438. - new_parts
  20439. """
  20440. thrift_spec = (
  20441. None, # 0
  20442. (1, TType.STRING, 'db_name', None, None, ), # 1
  20443. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  20444. (3, TType.LIST, 'new_parts', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 3
  20445. )
  20446. def __init__(self, db_name=None, tbl_name=None, new_parts=None,):
  20447. self.db_name = db_name
  20448. self.tbl_name = tbl_name
  20449. self.new_parts = new_parts
  20450. def read(self, iprot):
  20451. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  20452. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  20453. return
  20454. iprot.readStructBegin()
  20455. while True:
  20456. (fname, ftype, fid) = iprot.readFieldBegin()
  20457. if ftype == TType.STOP:
  20458. break
  20459. if fid == 1:
  20460. if ftype == TType.STRING:
  20461. self.db_name = iprot.readString()
  20462. else:
  20463. iprot.skip(ftype)
  20464. elif fid == 2:
  20465. if ftype == TType.STRING:
  20466. self.tbl_name = iprot.readString()
  20467. else:
  20468. iprot.skip(ftype)
  20469. elif fid == 3:
  20470. if ftype == TType.LIST:
  20471. self.new_parts = []
  20472. (_etype911, _size908) = iprot.readListBegin()
  20473. for _i912 in xrange(_size908):
  20474. _elem913 = Partition()
  20475. _elem913.read(iprot)
  20476. self.new_parts.append(_elem913)
  20477. iprot.readListEnd()
  20478. else:
  20479. iprot.skip(ftype)
  20480. else:
  20481. iprot.skip(ftype)
  20482. iprot.readFieldEnd()
  20483. iprot.readStructEnd()
  20484. def write(self, oprot):
  20485. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  20486. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  20487. return
  20488. oprot.writeStructBegin('alter_partitions_args')
  20489. if self.db_name is not None:
  20490. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  20491. oprot.writeString(self.db_name)
  20492. oprot.writeFieldEnd()
  20493. if self.tbl_name is not None:
  20494. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20495. oprot.writeString(self.tbl_name)
  20496. oprot.writeFieldEnd()
  20497. if self.new_parts is not None:
  20498. oprot.writeFieldBegin('new_parts', TType.LIST, 3)
  20499. oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
  20500. for iter914 in self.new_parts:
  20501. iter914.write(oprot)
  20502. oprot.writeListEnd()
  20503. oprot.writeFieldEnd()
  20504. oprot.writeFieldStop()
  20505. oprot.writeStructEnd()
  20506. def validate(self):
  20507. return
  20508. def __hash__(self):
  20509. value = 17
  20510. value = (value * 31) ^ hash(self.db_name)
  20511. value = (value * 31) ^ hash(self.tbl_name)
  20512. value = (value * 31) ^ hash(self.new_parts)
  20513. return value
  20514. def __repr__(self):
  20515. L = ['%s=%r' % (key, value)
  20516. for key, value in self.__dict__.iteritems()]
  20517. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20518. def __eq__(self, other):
  20519. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20520. def __ne__(self, other):
  20521. return not (self == other)
  20522. class alter_partitions_result(object):
  20523. """
  20524. Attributes:
  20525. - o1
  20526. - o2
  20527. """
  20528. thrift_spec = (
  20529. None, # 0
  20530. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  20531. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  20532. )
  20533. def __init__(self, o1=None, o2=None,):
  20534. self.o1 = o1
  20535. self.o2 = o2
  20536. def read(self, iprot):
  20537. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  20538. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  20539. return
  20540. iprot.readStructBegin()
  20541. while True:
  20542. (fname, ftype, fid) = iprot.readFieldBegin()
  20543. if ftype == TType.STOP:
  20544. break
  20545. if fid == 1:
  20546. if ftype == TType.STRUCT:
  20547. self.o1 = InvalidOperationException()
  20548. self.o1.read(iprot)
  20549. else:
  20550. iprot.skip(ftype)
  20551. elif fid == 2:
  20552. if ftype == TType.STRUCT:
  20553. self.o2 = MetaException()
  20554. self.o2.read(iprot)
  20555. else:
  20556. iprot.skip(ftype)
  20557. else:
  20558. iprot.skip(ftype)
  20559. iprot.readFieldEnd()
  20560. iprot.readStructEnd()
  20561. def write(self, oprot):
  20562. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  20563. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  20564. return
  20565. oprot.writeStructBegin('alter_partitions_result')
  20566. if self.o1 is not None:
  20567. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  20568. self.o1.write(oprot)
  20569. oprot.writeFieldEnd()
  20570. if self.o2 is not None:
  20571. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  20572. self.o2.write(oprot)
  20573. oprot.writeFieldEnd()
  20574. oprot.writeFieldStop()
  20575. oprot.writeStructEnd()
  20576. def validate(self):
  20577. return
  20578. def __hash__(self):
  20579. value = 17
  20580. value = (value * 31) ^ hash(self.o1)
  20581. value = (value * 31) ^ hash(self.o2)
  20582. return value
  20583. def __repr__(self):
  20584. L = ['%s=%r' % (key, value)
  20585. for key, value in self.__dict__.iteritems()]
  20586. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20587. def __eq__(self, other):
  20588. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20589. def __ne__(self, other):
  20590. return not (self == other)
  20591. class alter_partitions_with_environment_context_args(object):
  20592. """
  20593. Attributes:
  20594. - db_name
  20595. - tbl_name
  20596. - new_parts
  20597. - environment_context
  20598. """
  20599. thrift_spec = (
  20600. None, # 0
  20601. (1, TType.STRING, 'db_name', None, None, ), # 1
  20602. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  20603. (3, TType.LIST, 'new_parts', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 3
  20604. (4, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 4
  20605. )
  20606. def __init__(self, db_name=None, tbl_name=None, new_parts=None, environment_context=None,):
  20607. self.db_name = db_name
  20608. self.tbl_name = tbl_name
  20609. self.new_parts = new_parts
  20610. self.environment_context = environment_context
  20611. def read(self, iprot):
  20612. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  20613. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  20614. return
  20615. iprot.readStructBegin()
  20616. while True:
  20617. (fname, ftype, fid) = iprot.readFieldBegin()
  20618. if ftype == TType.STOP:
  20619. break
  20620. if fid == 1:
  20621. if ftype == TType.STRING:
  20622. self.db_name = iprot.readString()
  20623. else:
  20624. iprot.skip(ftype)
  20625. elif fid == 2:
  20626. if ftype == TType.STRING:
  20627. self.tbl_name = iprot.readString()
  20628. else:
  20629. iprot.skip(ftype)
  20630. elif fid == 3:
  20631. if ftype == TType.LIST:
  20632. self.new_parts = []
  20633. (_etype918, _size915) = iprot.readListBegin()
  20634. for _i919 in xrange(_size915):
  20635. _elem920 = Partition()
  20636. _elem920.read(iprot)
  20637. self.new_parts.append(_elem920)
  20638. iprot.readListEnd()
  20639. else:
  20640. iprot.skip(ftype)
  20641. elif fid == 4:
  20642. if ftype == TType.STRUCT:
  20643. self.environment_context = EnvironmentContext()
  20644. self.environment_context.read(iprot)
  20645. else:
  20646. iprot.skip(ftype)
  20647. else:
  20648. iprot.skip(ftype)
  20649. iprot.readFieldEnd()
  20650. iprot.readStructEnd()
  20651. def write(self, oprot):
  20652. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  20653. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  20654. return
  20655. oprot.writeStructBegin('alter_partitions_with_environment_context_args')
  20656. if self.db_name is not None:
  20657. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  20658. oprot.writeString(self.db_name)
  20659. oprot.writeFieldEnd()
  20660. if self.tbl_name is not None:
  20661. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20662. oprot.writeString(self.tbl_name)
  20663. oprot.writeFieldEnd()
  20664. if self.new_parts is not None:
  20665. oprot.writeFieldBegin('new_parts', TType.LIST, 3)
  20666. oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
  20667. for iter921 in self.new_parts:
  20668. iter921.write(oprot)
  20669. oprot.writeListEnd()
  20670. oprot.writeFieldEnd()
  20671. if self.environment_context is not None:
  20672. oprot.writeFieldBegin('environment_context', TType.STRUCT, 4)
  20673. self.environment_context.write(oprot)
  20674. oprot.writeFieldEnd()
  20675. oprot.writeFieldStop()
  20676. oprot.writeStructEnd()
  20677. def validate(self):
  20678. return
  20679. def __hash__(self):
  20680. value = 17
  20681. value = (value * 31) ^ hash(self.db_name)
  20682. value = (value * 31) ^ hash(self.tbl_name)
  20683. value = (value * 31) ^ hash(self.new_parts)
  20684. value = (value * 31) ^ hash(self.environment_context)
  20685. return value
  20686. def __repr__(self):
  20687. L = ['%s=%r' % (key, value)
  20688. for key, value in self.__dict__.iteritems()]
  20689. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20690. def __eq__(self, other):
  20691. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20692. def __ne__(self, other):
  20693. return not (self == other)
  20694. class alter_partitions_with_environment_context_result(object):
  20695. """
  20696. Attributes:
  20697. - o1
  20698. - o2
  20699. """
  20700. thrift_spec = (
  20701. None, # 0
  20702. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  20703. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  20704. )
  20705. def __init__(self, o1=None, o2=None,):
  20706. self.o1 = o1
  20707. self.o2 = o2
  20708. def read(self, iprot):
  20709. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  20710. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  20711. return
  20712. iprot.readStructBegin()
  20713. while True:
  20714. (fname, ftype, fid) = iprot.readFieldBegin()
  20715. if ftype == TType.STOP:
  20716. break
  20717. if fid == 1:
  20718. if ftype == TType.STRUCT:
  20719. self.o1 = InvalidOperationException()
  20720. self.o1.read(iprot)
  20721. else:
  20722. iprot.skip(ftype)
  20723. elif fid == 2:
  20724. if ftype == TType.STRUCT:
  20725. self.o2 = MetaException()
  20726. self.o2.read(iprot)
  20727. else:
  20728. iprot.skip(ftype)
  20729. else:
  20730. iprot.skip(ftype)
  20731. iprot.readFieldEnd()
  20732. iprot.readStructEnd()
  20733. def write(self, oprot):
  20734. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  20735. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  20736. return
  20737. oprot.writeStructBegin('alter_partitions_with_environment_context_result')
  20738. if self.o1 is not None:
  20739. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  20740. self.o1.write(oprot)
  20741. oprot.writeFieldEnd()
  20742. if self.o2 is not None:
  20743. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  20744. self.o2.write(oprot)
  20745. oprot.writeFieldEnd()
  20746. oprot.writeFieldStop()
  20747. oprot.writeStructEnd()
  20748. def validate(self):
  20749. return
  20750. def __hash__(self):
  20751. value = 17
  20752. value = (value * 31) ^ hash(self.o1)
  20753. value = (value * 31) ^ hash(self.o2)
  20754. return value
  20755. def __repr__(self):
  20756. L = ['%s=%r' % (key, value)
  20757. for key, value in self.__dict__.iteritems()]
  20758. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20759. def __eq__(self, other):
  20760. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20761. def __ne__(self, other):
  20762. return not (self == other)
  20763. class alter_partition_with_environment_context_args(object):
  20764. """
  20765. Attributes:
  20766. - db_name
  20767. - tbl_name
  20768. - new_part
  20769. - environment_context
  20770. """
  20771. thrift_spec = (
  20772. None, # 0
  20773. (1, TType.STRING, 'db_name', None, None, ), # 1
  20774. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  20775. (3, TType.STRUCT, 'new_part', (Partition, Partition.thrift_spec), None, ), # 3
  20776. (4, TType.STRUCT, 'environment_context', (EnvironmentContext, EnvironmentContext.thrift_spec), None, ), # 4
  20777. )
  20778. def __init__(self, db_name=None, tbl_name=None, new_part=None, environment_context=None,):
  20779. self.db_name = db_name
  20780. self.tbl_name = tbl_name
  20781. self.new_part = new_part
  20782. self.environment_context = environment_context
  20783. def read(self, iprot):
  20784. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  20785. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  20786. return
  20787. iprot.readStructBegin()
  20788. while True:
  20789. (fname, ftype, fid) = iprot.readFieldBegin()
  20790. if ftype == TType.STOP:
  20791. break
  20792. if fid == 1:
  20793. if ftype == TType.STRING:
  20794. self.db_name = iprot.readString()
  20795. else:
  20796. iprot.skip(ftype)
  20797. elif fid == 2:
  20798. if ftype == TType.STRING:
  20799. self.tbl_name = iprot.readString()
  20800. else:
  20801. iprot.skip(ftype)
  20802. elif fid == 3:
  20803. if ftype == TType.STRUCT:
  20804. self.new_part = Partition()
  20805. self.new_part.read(iprot)
  20806. else:
  20807. iprot.skip(ftype)
  20808. elif fid == 4:
  20809. if ftype == TType.STRUCT:
  20810. self.environment_context = EnvironmentContext()
  20811. self.environment_context.read(iprot)
  20812. else:
  20813. iprot.skip(ftype)
  20814. else:
  20815. iprot.skip(ftype)
  20816. iprot.readFieldEnd()
  20817. iprot.readStructEnd()
  20818. def write(self, oprot):
  20819. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  20820. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  20821. return
  20822. oprot.writeStructBegin('alter_partition_with_environment_context_args')
  20823. if self.db_name is not None:
  20824. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  20825. oprot.writeString(self.db_name)
  20826. oprot.writeFieldEnd()
  20827. if self.tbl_name is not None:
  20828. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20829. oprot.writeString(self.tbl_name)
  20830. oprot.writeFieldEnd()
  20831. if self.new_part is not None:
  20832. oprot.writeFieldBegin('new_part', TType.STRUCT, 3)
  20833. self.new_part.write(oprot)
  20834. oprot.writeFieldEnd()
  20835. if self.environment_context is not None:
  20836. oprot.writeFieldBegin('environment_context', TType.STRUCT, 4)
  20837. self.environment_context.write(oprot)
  20838. oprot.writeFieldEnd()
  20839. oprot.writeFieldStop()
  20840. oprot.writeStructEnd()
  20841. def validate(self):
  20842. return
  20843. def __hash__(self):
  20844. value = 17
  20845. value = (value * 31) ^ hash(self.db_name)
  20846. value = (value * 31) ^ hash(self.tbl_name)
  20847. value = (value * 31) ^ hash(self.new_part)
  20848. value = (value * 31) ^ hash(self.environment_context)
  20849. return value
  20850. def __repr__(self):
  20851. L = ['%s=%r' % (key, value)
  20852. for key, value in self.__dict__.iteritems()]
  20853. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20854. def __eq__(self, other):
  20855. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20856. def __ne__(self, other):
  20857. return not (self == other)
  20858. class alter_partition_with_environment_context_result(object):
  20859. """
  20860. Attributes:
  20861. - o1
  20862. - o2
  20863. """
  20864. thrift_spec = (
  20865. None, # 0
  20866. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  20867. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  20868. )
  20869. def __init__(self, o1=None, o2=None,):
  20870. self.o1 = o1
  20871. self.o2 = o2
  20872. def read(self, iprot):
  20873. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  20874. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  20875. return
  20876. iprot.readStructBegin()
  20877. while True:
  20878. (fname, ftype, fid) = iprot.readFieldBegin()
  20879. if ftype == TType.STOP:
  20880. break
  20881. if fid == 1:
  20882. if ftype == TType.STRUCT:
  20883. self.o1 = InvalidOperationException()
  20884. self.o1.read(iprot)
  20885. else:
  20886. iprot.skip(ftype)
  20887. elif fid == 2:
  20888. if ftype == TType.STRUCT:
  20889. self.o2 = MetaException()
  20890. self.o2.read(iprot)
  20891. else:
  20892. iprot.skip(ftype)
  20893. else:
  20894. iprot.skip(ftype)
  20895. iprot.readFieldEnd()
  20896. iprot.readStructEnd()
  20897. def write(self, oprot):
  20898. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  20899. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  20900. return
  20901. oprot.writeStructBegin('alter_partition_with_environment_context_result')
  20902. if self.o1 is not None:
  20903. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  20904. self.o1.write(oprot)
  20905. oprot.writeFieldEnd()
  20906. if self.o2 is not None:
  20907. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  20908. self.o2.write(oprot)
  20909. oprot.writeFieldEnd()
  20910. oprot.writeFieldStop()
  20911. oprot.writeStructEnd()
  20912. def validate(self):
  20913. return
  20914. def __hash__(self):
  20915. value = 17
  20916. value = (value * 31) ^ hash(self.o1)
  20917. value = (value * 31) ^ hash(self.o2)
  20918. return value
  20919. def __repr__(self):
  20920. L = ['%s=%r' % (key, value)
  20921. for key, value in self.__dict__.iteritems()]
  20922. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20923. def __eq__(self, other):
  20924. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20925. def __ne__(self, other):
  20926. return not (self == other)
  20927. class rename_partition_args(object):
  20928. """
  20929. Attributes:
  20930. - db_name
  20931. - tbl_name
  20932. - part_vals
  20933. - new_part
  20934. """
  20935. thrift_spec = (
  20936. None, # 0
  20937. (1, TType.STRING, 'db_name', None, None, ), # 1
  20938. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  20939. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  20940. (4, TType.STRUCT, 'new_part', (Partition, Partition.thrift_spec), None, ), # 4
  20941. )
  20942. def __init__(self, db_name=None, tbl_name=None, part_vals=None, new_part=None,):
  20943. self.db_name = db_name
  20944. self.tbl_name = tbl_name
  20945. self.part_vals = part_vals
  20946. self.new_part = new_part
  20947. def read(self, iprot):
  20948. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  20949. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  20950. return
  20951. iprot.readStructBegin()
  20952. while True:
  20953. (fname, ftype, fid) = iprot.readFieldBegin()
  20954. if ftype == TType.STOP:
  20955. break
  20956. if fid == 1:
  20957. if ftype == TType.STRING:
  20958. self.db_name = iprot.readString()
  20959. else:
  20960. iprot.skip(ftype)
  20961. elif fid == 2:
  20962. if ftype == TType.STRING:
  20963. self.tbl_name = iprot.readString()
  20964. else:
  20965. iprot.skip(ftype)
  20966. elif fid == 3:
  20967. if ftype == TType.LIST:
  20968. self.part_vals = []
  20969. (_etype925, _size922) = iprot.readListBegin()
  20970. for _i926 in xrange(_size922):
  20971. _elem927 = iprot.readString()
  20972. self.part_vals.append(_elem927)
  20973. iprot.readListEnd()
  20974. else:
  20975. iprot.skip(ftype)
  20976. elif fid == 4:
  20977. if ftype == TType.STRUCT:
  20978. self.new_part = Partition()
  20979. self.new_part.read(iprot)
  20980. else:
  20981. iprot.skip(ftype)
  20982. else:
  20983. iprot.skip(ftype)
  20984. iprot.readFieldEnd()
  20985. iprot.readStructEnd()
  20986. def write(self, oprot):
  20987. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  20988. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  20989. return
  20990. oprot.writeStructBegin('rename_partition_args')
  20991. if self.db_name is not None:
  20992. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  20993. oprot.writeString(self.db_name)
  20994. oprot.writeFieldEnd()
  20995. if self.tbl_name is not None:
  20996. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20997. oprot.writeString(self.tbl_name)
  20998. oprot.writeFieldEnd()
  20999. if self.part_vals is not None:
  21000. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  21001. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  21002. for iter928 in self.part_vals:
  21003. oprot.writeString(iter928)
  21004. oprot.writeListEnd()
  21005. oprot.writeFieldEnd()
  21006. if self.new_part is not None:
  21007. oprot.writeFieldBegin('new_part', TType.STRUCT, 4)
  21008. self.new_part.write(oprot)
  21009. oprot.writeFieldEnd()
  21010. oprot.writeFieldStop()
  21011. oprot.writeStructEnd()
  21012. def validate(self):
  21013. return
  21014. def __hash__(self):
  21015. value = 17
  21016. value = (value * 31) ^ hash(self.db_name)
  21017. value = (value * 31) ^ hash(self.tbl_name)
  21018. value = (value * 31) ^ hash(self.part_vals)
  21019. value = (value * 31) ^ hash(self.new_part)
  21020. return value
  21021. def __repr__(self):
  21022. L = ['%s=%r' % (key, value)
  21023. for key, value in self.__dict__.iteritems()]
  21024. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21025. def __eq__(self, other):
  21026. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21027. def __ne__(self, other):
  21028. return not (self == other)
  21029. class rename_partition_result(object):
  21030. """
  21031. Attributes:
  21032. - o1
  21033. - o2
  21034. """
  21035. thrift_spec = (
  21036. None, # 0
  21037. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  21038. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  21039. )
  21040. def __init__(self, o1=None, o2=None,):
  21041. self.o1 = o1
  21042. self.o2 = o2
  21043. def read(self, iprot):
  21044. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21045. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21046. return
  21047. iprot.readStructBegin()
  21048. while True:
  21049. (fname, ftype, fid) = iprot.readFieldBegin()
  21050. if ftype == TType.STOP:
  21051. break
  21052. if fid == 1:
  21053. if ftype == TType.STRUCT:
  21054. self.o1 = InvalidOperationException()
  21055. self.o1.read(iprot)
  21056. else:
  21057. iprot.skip(ftype)
  21058. elif fid == 2:
  21059. if ftype == TType.STRUCT:
  21060. self.o2 = MetaException()
  21061. self.o2.read(iprot)
  21062. else:
  21063. iprot.skip(ftype)
  21064. else:
  21065. iprot.skip(ftype)
  21066. iprot.readFieldEnd()
  21067. iprot.readStructEnd()
  21068. def write(self, oprot):
  21069. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  21070. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  21071. return
  21072. oprot.writeStructBegin('rename_partition_result')
  21073. if self.o1 is not None:
  21074. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21075. self.o1.write(oprot)
  21076. oprot.writeFieldEnd()
  21077. if self.o2 is not None:
  21078. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  21079. self.o2.write(oprot)
  21080. oprot.writeFieldEnd()
  21081. oprot.writeFieldStop()
  21082. oprot.writeStructEnd()
  21083. def validate(self):
  21084. return
  21085. def __hash__(self):
  21086. value = 17
  21087. value = (value * 31) ^ hash(self.o1)
  21088. value = (value * 31) ^ hash(self.o2)
  21089. return value
  21090. def __repr__(self):
  21091. L = ['%s=%r' % (key, value)
  21092. for key, value in self.__dict__.iteritems()]
  21093. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21094. def __eq__(self, other):
  21095. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21096. def __ne__(self, other):
  21097. return not (self == other)
  21098. class partition_name_has_valid_characters_args(object):
  21099. """
  21100. Attributes:
  21101. - part_vals
  21102. - throw_exception
  21103. """
  21104. thrift_spec = (
  21105. None, # 0
  21106. (1, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 1
  21107. (2, TType.BOOL, 'throw_exception', None, None, ), # 2
  21108. )
  21109. def __init__(self, part_vals=None, throw_exception=None,):
  21110. self.part_vals = part_vals
  21111. self.throw_exception = throw_exception
  21112. def read(self, iprot):
  21113. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21114. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21115. return
  21116. iprot.readStructBegin()
  21117. while True:
  21118. (fname, ftype, fid) = iprot.readFieldBegin()
  21119. if ftype == TType.STOP:
  21120. break
  21121. if fid == 1:
  21122. if ftype == TType.LIST:
  21123. self.part_vals = []
  21124. (_etype932, _size929) = iprot.readListBegin()
  21125. for _i933 in xrange(_size929):
  21126. _elem934 = iprot.readString()
  21127. self.part_vals.append(_elem934)
  21128. iprot.readListEnd()
  21129. else:
  21130. iprot.skip(ftype)
  21131. elif fid == 2:
  21132. if ftype == TType.BOOL:
  21133. self.throw_exception = iprot.readBool()
  21134. else:
  21135. iprot.skip(ftype)
  21136. else:
  21137. iprot.skip(ftype)
  21138. iprot.readFieldEnd()
  21139. iprot.readStructEnd()
  21140. def write(self, oprot):
  21141. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  21142. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  21143. return
  21144. oprot.writeStructBegin('partition_name_has_valid_characters_args')
  21145. if self.part_vals is not None:
  21146. oprot.writeFieldBegin('part_vals', TType.LIST, 1)
  21147. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  21148. for iter935 in self.part_vals:
  21149. oprot.writeString(iter935)
  21150. oprot.writeListEnd()
  21151. oprot.writeFieldEnd()
  21152. if self.throw_exception is not None:
  21153. oprot.writeFieldBegin('throw_exception', TType.BOOL, 2)
  21154. oprot.writeBool(self.throw_exception)
  21155. oprot.writeFieldEnd()
  21156. oprot.writeFieldStop()
  21157. oprot.writeStructEnd()
  21158. def validate(self):
  21159. return
  21160. def __hash__(self):
  21161. value = 17
  21162. value = (value * 31) ^ hash(self.part_vals)
  21163. value = (value * 31) ^ hash(self.throw_exception)
  21164. return value
  21165. def __repr__(self):
  21166. L = ['%s=%r' % (key, value)
  21167. for key, value in self.__dict__.iteritems()]
  21168. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21169. def __eq__(self, other):
  21170. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21171. def __ne__(self, other):
  21172. return not (self == other)
  21173. class partition_name_has_valid_characters_result(object):
  21174. """
  21175. Attributes:
  21176. - success
  21177. - o1
  21178. """
  21179. thrift_spec = (
  21180. (0, TType.BOOL, 'success', None, None, ), # 0
  21181. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  21182. )
  21183. def __init__(self, success=None, o1=None,):
  21184. self.success = success
  21185. self.o1 = o1
  21186. def read(self, iprot):
  21187. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21188. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21189. return
  21190. iprot.readStructBegin()
  21191. while True:
  21192. (fname, ftype, fid) = iprot.readFieldBegin()
  21193. if ftype == TType.STOP:
  21194. break
  21195. if fid == 0:
  21196. if ftype == TType.BOOL:
  21197. self.success = iprot.readBool()
  21198. else:
  21199. iprot.skip(ftype)
  21200. elif fid == 1:
  21201. if ftype == TType.STRUCT:
  21202. self.o1 = MetaException()
  21203. self.o1.read(iprot)
  21204. else:
  21205. iprot.skip(ftype)
  21206. else:
  21207. iprot.skip(ftype)
  21208. iprot.readFieldEnd()
  21209. iprot.readStructEnd()
  21210. def write(self, oprot):
  21211. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  21212. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  21213. return
  21214. oprot.writeStructBegin('partition_name_has_valid_characters_result')
  21215. if self.success is not None:
  21216. oprot.writeFieldBegin('success', TType.BOOL, 0)
  21217. oprot.writeBool(self.success)
  21218. oprot.writeFieldEnd()
  21219. if self.o1 is not None:
  21220. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21221. self.o1.write(oprot)
  21222. oprot.writeFieldEnd()
  21223. oprot.writeFieldStop()
  21224. oprot.writeStructEnd()
  21225. def validate(self):
  21226. return
  21227. def __hash__(self):
  21228. value = 17
  21229. value = (value * 31) ^ hash(self.success)
  21230. value = (value * 31) ^ hash(self.o1)
  21231. return value
  21232. def __repr__(self):
  21233. L = ['%s=%r' % (key, value)
  21234. for key, value in self.__dict__.iteritems()]
  21235. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21236. def __eq__(self, other):
  21237. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21238. def __ne__(self, other):
  21239. return not (self == other)
  21240. class get_config_value_args(object):
  21241. """
  21242. Attributes:
  21243. - name
  21244. - defaultValue
  21245. """
  21246. thrift_spec = (
  21247. None, # 0
  21248. (1, TType.STRING, 'name', None, None, ), # 1
  21249. (2, TType.STRING, 'defaultValue', None, None, ), # 2
  21250. )
  21251. def __init__(self, name=None, defaultValue=None,):
  21252. self.name = name
  21253. self.defaultValue = defaultValue
  21254. def read(self, iprot):
  21255. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21256. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21257. return
  21258. iprot.readStructBegin()
  21259. while True:
  21260. (fname, ftype, fid) = iprot.readFieldBegin()
  21261. if ftype == TType.STOP:
  21262. break
  21263. if fid == 1:
  21264. if ftype == TType.STRING:
  21265. self.name = iprot.readString()
  21266. else:
  21267. iprot.skip(ftype)
  21268. elif fid == 2:
  21269. if ftype == TType.STRING:
  21270. self.defaultValue = iprot.readString()
  21271. else:
  21272. iprot.skip(ftype)
  21273. else:
  21274. iprot.skip(ftype)
  21275. iprot.readFieldEnd()
  21276. iprot.readStructEnd()
  21277. def write(self, oprot):
  21278. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  21279. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  21280. return
  21281. oprot.writeStructBegin('get_config_value_args')
  21282. if self.name is not None:
  21283. oprot.writeFieldBegin('name', TType.STRING, 1)
  21284. oprot.writeString(self.name)
  21285. oprot.writeFieldEnd()
  21286. if self.defaultValue is not None:
  21287. oprot.writeFieldBegin('defaultValue', TType.STRING, 2)
  21288. oprot.writeString(self.defaultValue)
  21289. oprot.writeFieldEnd()
  21290. oprot.writeFieldStop()
  21291. oprot.writeStructEnd()
  21292. def validate(self):
  21293. return
  21294. def __hash__(self):
  21295. value = 17
  21296. value = (value * 31) ^ hash(self.name)
  21297. value = (value * 31) ^ hash(self.defaultValue)
  21298. return value
  21299. def __repr__(self):
  21300. L = ['%s=%r' % (key, value)
  21301. for key, value in self.__dict__.iteritems()]
  21302. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21303. def __eq__(self, other):
  21304. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21305. def __ne__(self, other):
  21306. return not (self == other)
  21307. class get_config_value_result(object):
  21308. """
  21309. Attributes:
  21310. - success
  21311. - o1
  21312. """
  21313. thrift_spec = (
  21314. (0, TType.STRING, 'success', None, None, ), # 0
  21315. (1, TType.STRUCT, 'o1', (ConfigValSecurityException, ConfigValSecurityException.thrift_spec), None, ), # 1
  21316. )
  21317. def __init__(self, success=None, o1=None,):
  21318. self.success = success
  21319. self.o1 = o1
  21320. def read(self, iprot):
  21321. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21322. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21323. return
  21324. iprot.readStructBegin()
  21325. while True:
  21326. (fname, ftype, fid) = iprot.readFieldBegin()
  21327. if ftype == TType.STOP:
  21328. break
  21329. if fid == 0:
  21330. if ftype == TType.STRING:
  21331. self.success = iprot.readString()
  21332. else:
  21333. iprot.skip(ftype)
  21334. elif fid == 1:
  21335. if ftype == TType.STRUCT:
  21336. self.o1 = ConfigValSecurityException()
  21337. self.o1.read(iprot)
  21338. else:
  21339. iprot.skip(ftype)
  21340. else:
  21341. iprot.skip(ftype)
  21342. iprot.readFieldEnd()
  21343. iprot.readStructEnd()
  21344. def write(self, oprot):
  21345. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  21346. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  21347. return
  21348. oprot.writeStructBegin('get_config_value_result')
  21349. if self.success is not None:
  21350. oprot.writeFieldBegin('success', TType.STRING, 0)
  21351. oprot.writeString(self.success)
  21352. oprot.writeFieldEnd()
  21353. if self.o1 is not None:
  21354. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21355. self.o1.write(oprot)
  21356. oprot.writeFieldEnd()
  21357. oprot.writeFieldStop()
  21358. oprot.writeStructEnd()
  21359. def validate(self):
  21360. return
  21361. def __hash__(self):
  21362. value = 17
  21363. value = (value * 31) ^ hash(self.success)
  21364. value = (value * 31) ^ hash(self.o1)
  21365. return value
  21366. def __repr__(self):
  21367. L = ['%s=%r' % (key, value)
  21368. for key, value in self.__dict__.iteritems()]
  21369. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21370. def __eq__(self, other):
  21371. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21372. def __ne__(self, other):
  21373. return not (self == other)
  21374. class partition_name_to_vals_args(object):
  21375. """
  21376. Attributes:
  21377. - part_name
  21378. """
  21379. thrift_spec = (
  21380. None, # 0
  21381. (1, TType.STRING, 'part_name', None, None, ), # 1
  21382. )
  21383. def __init__(self, part_name=None,):
  21384. self.part_name = part_name
  21385. def read(self, iprot):
  21386. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21387. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21388. return
  21389. iprot.readStructBegin()
  21390. while True:
  21391. (fname, ftype, fid) = iprot.readFieldBegin()
  21392. if ftype == TType.STOP:
  21393. break
  21394. if fid == 1:
  21395. if ftype == TType.STRING:
  21396. self.part_name = iprot.readString()
  21397. else:
  21398. iprot.skip(ftype)
  21399. else:
  21400. iprot.skip(ftype)
  21401. iprot.readFieldEnd()
  21402. iprot.readStructEnd()
  21403. def write(self, oprot):
  21404. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  21405. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  21406. return
  21407. oprot.writeStructBegin('partition_name_to_vals_args')
  21408. if self.part_name is not None:
  21409. oprot.writeFieldBegin('part_name', TType.STRING, 1)
  21410. oprot.writeString(self.part_name)
  21411. oprot.writeFieldEnd()
  21412. oprot.writeFieldStop()
  21413. oprot.writeStructEnd()
  21414. def validate(self):
  21415. return
  21416. def __hash__(self):
  21417. value = 17
  21418. value = (value * 31) ^ hash(self.part_name)
  21419. return value
  21420. def __repr__(self):
  21421. L = ['%s=%r' % (key, value)
  21422. for key, value in self.__dict__.iteritems()]
  21423. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21424. def __eq__(self, other):
  21425. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21426. def __ne__(self, other):
  21427. return not (self == other)
  21428. class partition_name_to_vals_result(object):
  21429. """
  21430. Attributes:
  21431. - success
  21432. - o1
  21433. """
  21434. thrift_spec = (
  21435. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  21436. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  21437. )
  21438. def __init__(self, success=None, o1=None,):
  21439. self.success = success
  21440. self.o1 = o1
  21441. def read(self, iprot):
  21442. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21443. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21444. return
  21445. iprot.readStructBegin()
  21446. while True:
  21447. (fname, ftype, fid) = iprot.readFieldBegin()
  21448. if ftype == TType.STOP:
  21449. break
  21450. if fid == 0:
  21451. if ftype == TType.LIST:
  21452. self.success = []
  21453. (_etype939, _size936) = iprot.readListBegin()
  21454. for _i940 in xrange(_size936):
  21455. _elem941 = iprot.readString()
  21456. self.success.append(_elem941)
  21457. iprot.readListEnd()
  21458. else:
  21459. iprot.skip(ftype)
  21460. elif fid == 1:
  21461. if ftype == TType.STRUCT:
  21462. self.o1 = MetaException()
  21463. self.o1.read(iprot)
  21464. else:
  21465. iprot.skip(ftype)
  21466. else:
  21467. iprot.skip(ftype)
  21468. iprot.readFieldEnd()
  21469. iprot.readStructEnd()
  21470. def write(self, oprot):
  21471. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  21472. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  21473. return
  21474. oprot.writeStructBegin('partition_name_to_vals_result')
  21475. if self.success is not None:
  21476. oprot.writeFieldBegin('success', TType.LIST, 0)
  21477. oprot.writeListBegin(TType.STRING, len(self.success))
  21478. for iter942 in self.success:
  21479. oprot.writeString(iter942)
  21480. oprot.writeListEnd()
  21481. oprot.writeFieldEnd()
  21482. if self.o1 is not None:
  21483. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21484. self.o1.write(oprot)
  21485. oprot.writeFieldEnd()
  21486. oprot.writeFieldStop()
  21487. oprot.writeStructEnd()
  21488. def validate(self):
  21489. return
  21490. def __hash__(self):
  21491. value = 17
  21492. value = (value * 31) ^ hash(self.success)
  21493. value = (value * 31) ^ hash(self.o1)
  21494. return value
  21495. def __repr__(self):
  21496. L = ['%s=%r' % (key, value)
  21497. for key, value in self.__dict__.iteritems()]
  21498. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21499. def __eq__(self, other):
  21500. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21501. def __ne__(self, other):
  21502. return not (self == other)
  21503. class partition_name_to_spec_args(object):
  21504. """
  21505. Attributes:
  21506. - part_name
  21507. """
  21508. thrift_spec = (
  21509. None, # 0
  21510. (1, TType.STRING, 'part_name', None, None, ), # 1
  21511. )
  21512. def __init__(self, part_name=None,):
  21513. self.part_name = part_name
  21514. def read(self, iprot):
  21515. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21516. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21517. return
  21518. iprot.readStructBegin()
  21519. while True:
  21520. (fname, ftype, fid) = iprot.readFieldBegin()
  21521. if ftype == TType.STOP:
  21522. break
  21523. if fid == 1:
  21524. if ftype == TType.STRING:
  21525. self.part_name = iprot.readString()
  21526. else:
  21527. iprot.skip(ftype)
  21528. else:
  21529. iprot.skip(ftype)
  21530. iprot.readFieldEnd()
  21531. iprot.readStructEnd()
  21532. def write(self, oprot):
  21533. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  21534. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  21535. return
  21536. oprot.writeStructBegin('partition_name_to_spec_args')
  21537. if self.part_name is not None:
  21538. oprot.writeFieldBegin('part_name', TType.STRING, 1)
  21539. oprot.writeString(self.part_name)
  21540. oprot.writeFieldEnd()
  21541. oprot.writeFieldStop()
  21542. oprot.writeStructEnd()
  21543. def validate(self):
  21544. return
  21545. def __hash__(self):
  21546. value = 17
  21547. value = (value * 31) ^ hash(self.part_name)
  21548. return value
  21549. def __repr__(self):
  21550. L = ['%s=%r' % (key, value)
  21551. for key, value in self.__dict__.iteritems()]
  21552. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21553. def __eq__(self, other):
  21554. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21555. def __ne__(self, other):
  21556. return not (self == other)
  21557. class partition_name_to_spec_result(object):
  21558. """
  21559. Attributes:
  21560. - success
  21561. - o1
  21562. """
  21563. thrift_spec = (
  21564. (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0
  21565. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  21566. )
  21567. def __init__(self, success=None, o1=None,):
  21568. self.success = success
  21569. self.o1 = o1
  21570. def read(self, iprot):
  21571. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21572. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21573. return
  21574. iprot.readStructBegin()
  21575. while True:
  21576. (fname, ftype, fid) = iprot.readFieldBegin()
  21577. if ftype == TType.STOP:
  21578. break
  21579. if fid == 0:
  21580. if ftype == TType.MAP:
  21581. self.success = {}
  21582. (_ktype944, _vtype945, _size943 ) = iprot.readMapBegin()
  21583. for _i947 in xrange(_size943):
  21584. _key948 = iprot.readString()
  21585. _val949 = iprot.readString()
  21586. self.success[_key948] = _val949
  21587. iprot.readMapEnd()
  21588. else:
  21589. iprot.skip(ftype)
  21590. elif fid == 1:
  21591. if ftype == TType.STRUCT:
  21592. self.o1 = MetaException()
  21593. self.o1.read(iprot)
  21594. else:
  21595. iprot.skip(ftype)
  21596. else:
  21597. iprot.skip(ftype)
  21598. iprot.readFieldEnd()
  21599. iprot.readStructEnd()
  21600. def write(self, oprot):
  21601. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  21602. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  21603. return
  21604. oprot.writeStructBegin('partition_name_to_spec_result')
  21605. if self.success is not None:
  21606. oprot.writeFieldBegin('success', TType.MAP, 0)
  21607. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
  21608. for kiter950,viter951 in self.success.items():
  21609. oprot.writeString(kiter950)
  21610. oprot.writeString(viter951)
  21611. oprot.writeMapEnd()
  21612. oprot.writeFieldEnd()
  21613. if self.o1 is not None:
  21614. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21615. self.o1.write(oprot)
  21616. oprot.writeFieldEnd()
  21617. oprot.writeFieldStop()
  21618. oprot.writeStructEnd()
  21619. def validate(self):
  21620. return
  21621. def __hash__(self):
  21622. value = 17
  21623. value = (value * 31) ^ hash(self.success)
  21624. value = (value * 31) ^ hash(self.o1)
  21625. return value
  21626. def __repr__(self):
  21627. L = ['%s=%r' % (key, value)
  21628. for key, value in self.__dict__.iteritems()]
  21629. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21630. def __eq__(self, other):
  21631. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21632. def __ne__(self, other):
  21633. return not (self == other)
  21634. class markPartitionForEvent_args(object):
  21635. """
  21636. Attributes:
  21637. - db_name
  21638. - tbl_name
  21639. - part_vals
  21640. - eventType
  21641. """
  21642. thrift_spec = (
  21643. None, # 0
  21644. (1, TType.STRING, 'db_name', None, None, ), # 1
  21645. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  21646. (3, TType.MAP, 'part_vals', (TType.STRING,None,TType.STRING,None), None, ), # 3
  21647. (4, TType.I32, 'eventType', None, None, ), # 4
  21648. )
  21649. def __init__(self, db_name=None, tbl_name=None, part_vals=None, eventType=None,):
  21650. self.db_name = db_name
  21651. self.tbl_name = tbl_name
  21652. self.part_vals = part_vals
  21653. self.eventType = eventType
  21654. def read(self, iprot):
  21655. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21656. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21657. return
  21658. iprot.readStructBegin()
  21659. while True:
  21660. (fname, ftype, fid) = iprot.readFieldBegin()
  21661. if ftype == TType.STOP:
  21662. break
  21663. if fid == 1:
  21664. if ftype == TType.STRING:
  21665. self.db_name = iprot.readString()
  21666. else:
  21667. iprot.skip(ftype)
  21668. elif fid == 2:
  21669. if ftype == TType.STRING:
  21670. self.tbl_name = iprot.readString()
  21671. else:
  21672. iprot.skip(ftype)
  21673. elif fid == 3:
  21674. if ftype == TType.MAP:
  21675. self.part_vals = {}
  21676. (_ktype953, _vtype954, _size952 ) = iprot.readMapBegin()
  21677. for _i956 in xrange(_size952):
  21678. _key957 = iprot.readString()
  21679. _val958 = iprot.readString()
  21680. self.part_vals[_key957] = _val958
  21681. iprot.readMapEnd()
  21682. else:
  21683. iprot.skip(ftype)
  21684. elif fid == 4:
  21685. if ftype == TType.I32:
  21686. self.eventType = iprot.readI32()
  21687. else:
  21688. iprot.skip(ftype)
  21689. else:
  21690. iprot.skip(ftype)
  21691. iprot.readFieldEnd()
  21692. iprot.readStructEnd()
  21693. def write(self, oprot):
  21694. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  21695. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  21696. return
  21697. oprot.writeStructBegin('markPartitionForEvent_args')
  21698. if self.db_name is not None:
  21699. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  21700. oprot.writeString(self.db_name)
  21701. oprot.writeFieldEnd()
  21702. if self.tbl_name is not None:
  21703. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  21704. oprot.writeString(self.tbl_name)
  21705. oprot.writeFieldEnd()
  21706. if self.part_vals is not None:
  21707. oprot.writeFieldBegin('part_vals', TType.MAP, 3)
  21708. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals))
  21709. for kiter959,viter960 in self.part_vals.items():
  21710. oprot.writeString(kiter959)
  21711. oprot.writeString(viter960)
  21712. oprot.writeMapEnd()
  21713. oprot.writeFieldEnd()
  21714. if self.eventType is not None:
  21715. oprot.writeFieldBegin('eventType', TType.I32, 4)
  21716. oprot.writeI32(self.eventType)
  21717. oprot.writeFieldEnd()
  21718. oprot.writeFieldStop()
  21719. oprot.writeStructEnd()
  21720. def validate(self):
  21721. return
  21722. def __hash__(self):
  21723. value = 17
  21724. value = (value * 31) ^ hash(self.db_name)
  21725. value = (value * 31) ^ hash(self.tbl_name)
  21726. value = (value * 31) ^ hash(self.part_vals)
  21727. value = (value * 31) ^ hash(self.eventType)
  21728. return value
  21729. def __repr__(self):
  21730. L = ['%s=%r' % (key, value)
  21731. for key, value in self.__dict__.iteritems()]
  21732. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21733. def __eq__(self, other):
  21734. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21735. def __ne__(self, other):
  21736. return not (self == other)
  21737. class markPartitionForEvent_result(object):
  21738. """
  21739. Attributes:
  21740. - o1
  21741. - o2
  21742. - o3
  21743. - o4
  21744. - o5
  21745. - o6
  21746. """
  21747. thrift_spec = (
  21748. None, # 0
  21749. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  21750. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  21751. (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3
  21752. (4, TType.STRUCT, 'o4', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 4
  21753. (5, TType.STRUCT, 'o5', (UnknownPartitionException, UnknownPartitionException.thrift_spec), None, ), # 5
  21754. (6, TType.STRUCT, 'o6', (InvalidPartitionException, InvalidPartitionException.thrift_spec), None, ), # 6
  21755. )
  21756. def __init__(self, o1=None, o2=None, o3=None, o4=None, o5=None, o6=None,):
  21757. self.o1 = o1
  21758. self.o2 = o2
  21759. self.o3 = o3
  21760. self.o4 = o4
  21761. self.o5 = o5
  21762. self.o6 = o6
  21763. def read(self, iprot):
  21764. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21765. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21766. return
  21767. iprot.readStructBegin()
  21768. while True:
  21769. (fname, ftype, fid) = iprot.readFieldBegin()
  21770. if ftype == TType.STOP:
  21771. break
  21772. if fid == 1:
  21773. if ftype == TType.STRUCT:
  21774. self.o1 = MetaException()
  21775. self.o1.read(iprot)
  21776. else:
  21777. iprot.skip(ftype)
  21778. elif fid == 2:
  21779. if ftype == TType.STRUCT:
  21780. self.o2 = NoSuchObjectException()
  21781. self.o2.read(iprot)
  21782. else:
  21783. iprot.skip(ftype)
  21784. elif fid == 3:
  21785. if ftype == TType.STRUCT:
  21786. self.o3 = UnknownDBException()
  21787. self.o3.read(iprot)
  21788. else:
  21789. iprot.skip(ftype)
  21790. elif fid == 4:
  21791. if ftype == TType.STRUCT:
  21792. self.o4 = UnknownTableException()
  21793. self.o4.read(iprot)
  21794. else:
  21795. iprot.skip(ftype)
  21796. elif fid == 5:
  21797. if ftype == TType.STRUCT:
  21798. self.o5 = UnknownPartitionException()
  21799. self.o5.read(iprot)
  21800. else:
  21801. iprot.skip(ftype)
  21802. elif fid == 6:
  21803. if ftype == TType.STRUCT:
  21804. self.o6 = InvalidPartitionException()
  21805. self.o6.read(iprot)
  21806. else:
  21807. iprot.skip(ftype)
  21808. else:
  21809. iprot.skip(ftype)
  21810. iprot.readFieldEnd()
  21811. iprot.readStructEnd()
  21812. def write(self, oprot):
  21813. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  21814. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  21815. return
  21816. oprot.writeStructBegin('markPartitionForEvent_result')
  21817. if self.o1 is not None:
  21818. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21819. self.o1.write(oprot)
  21820. oprot.writeFieldEnd()
  21821. if self.o2 is not None:
  21822. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  21823. self.o2.write(oprot)
  21824. oprot.writeFieldEnd()
  21825. if self.o3 is not None:
  21826. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  21827. self.o3.write(oprot)
  21828. oprot.writeFieldEnd()
  21829. if self.o4 is not None:
  21830. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  21831. self.o4.write(oprot)
  21832. oprot.writeFieldEnd()
  21833. if self.o5 is not None:
  21834. oprot.writeFieldBegin('o5', TType.STRUCT, 5)
  21835. self.o5.write(oprot)
  21836. oprot.writeFieldEnd()
  21837. if self.o6 is not None:
  21838. oprot.writeFieldBegin('o6', TType.STRUCT, 6)
  21839. self.o6.write(oprot)
  21840. oprot.writeFieldEnd()
  21841. oprot.writeFieldStop()
  21842. oprot.writeStructEnd()
  21843. def validate(self):
  21844. return
  21845. def __hash__(self):
  21846. value = 17
  21847. value = (value * 31) ^ hash(self.o1)
  21848. value = (value * 31) ^ hash(self.o2)
  21849. value = (value * 31) ^ hash(self.o3)
  21850. value = (value * 31) ^ hash(self.o4)
  21851. value = (value * 31) ^ hash(self.o5)
  21852. value = (value * 31) ^ hash(self.o6)
  21853. return value
  21854. def __repr__(self):
  21855. L = ['%s=%r' % (key, value)
  21856. for key, value in self.__dict__.iteritems()]
  21857. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21858. def __eq__(self, other):
  21859. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21860. def __ne__(self, other):
  21861. return not (self == other)
  21862. class isPartitionMarkedForEvent_args(object):
  21863. """
  21864. Attributes:
  21865. - db_name
  21866. - tbl_name
  21867. - part_vals
  21868. - eventType
  21869. """
  21870. thrift_spec = (
  21871. None, # 0
  21872. (1, TType.STRING, 'db_name', None, None, ), # 1
  21873. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  21874. (3, TType.MAP, 'part_vals', (TType.STRING,None,TType.STRING,None), None, ), # 3
  21875. (4, TType.I32, 'eventType', None, None, ), # 4
  21876. )
  21877. def __init__(self, db_name=None, tbl_name=None, part_vals=None, eventType=None,):
  21878. self.db_name = db_name
  21879. self.tbl_name = tbl_name
  21880. self.part_vals = part_vals
  21881. self.eventType = eventType
  21882. def read(self, iprot):
  21883. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21884. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21885. return
  21886. iprot.readStructBegin()
  21887. while True:
  21888. (fname, ftype, fid) = iprot.readFieldBegin()
  21889. if ftype == TType.STOP:
  21890. break
  21891. if fid == 1:
  21892. if ftype == TType.STRING:
  21893. self.db_name = iprot.readString()
  21894. else:
  21895. iprot.skip(ftype)
  21896. elif fid == 2:
  21897. if ftype == TType.STRING:
  21898. self.tbl_name = iprot.readString()
  21899. else:
  21900. iprot.skip(ftype)
  21901. elif fid == 3:
  21902. if ftype == TType.MAP:
  21903. self.part_vals = {}
  21904. (_ktype962, _vtype963, _size961 ) = iprot.readMapBegin()
  21905. for _i965 in xrange(_size961):
  21906. _key966 = iprot.readString()
  21907. _val967 = iprot.readString()
  21908. self.part_vals[_key966] = _val967
  21909. iprot.readMapEnd()
  21910. else:
  21911. iprot.skip(ftype)
  21912. elif fid == 4:
  21913. if ftype == TType.I32:
  21914. self.eventType = iprot.readI32()
  21915. else:
  21916. iprot.skip(ftype)
  21917. else:
  21918. iprot.skip(ftype)
  21919. iprot.readFieldEnd()
  21920. iprot.readStructEnd()
  21921. def write(self, oprot):
  21922. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  21923. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  21924. return
  21925. oprot.writeStructBegin('isPartitionMarkedForEvent_args')
  21926. if self.db_name is not None:
  21927. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  21928. oprot.writeString(self.db_name)
  21929. oprot.writeFieldEnd()
  21930. if self.tbl_name is not None:
  21931. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  21932. oprot.writeString(self.tbl_name)
  21933. oprot.writeFieldEnd()
  21934. if self.part_vals is not None:
  21935. oprot.writeFieldBegin('part_vals', TType.MAP, 3)
  21936. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals))
  21937. for kiter968,viter969 in self.part_vals.items():
  21938. oprot.writeString(kiter968)
  21939. oprot.writeString(viter969)
  21940. oprot.writeMapEnd()
  21941. oprot.writeFieldEnd()
  21942. if self.eventType is not None:
  21943. oprot.writeFieldBegin('eventType', TType.I32, 4)
  21944. oprot.writeI32(self.eventType)
  21945. oprot.writeFieldEnd()
  21946. oprot.writeFieldStop()
  21947. oprot.writeStructEnd()
  21948. def validate(self):
  21949. return
  21950. def __hash__(self):
  21951. value = 17
  21952. value = (value * 31) ^ hash(self.db_name)
  21953. value = (value * 31) ^ hash(self.tbl_name)
  21954. value = (value * 31) ^ hash(self.part_vals)
  21955. value = (value * 31) ^ hash(self.eventType)
  21956. return value
  21957. def __repr__(self):
  21958. L = ['%s=%r' % (key, value)
  21959. for key, value in self.__dict__.iteritems()]
  21960. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21961. def __eq__(self, other):
  21962. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21963. def __ne__(self, other):
  21964. return not (self == other)
  21965. class isPartitionMarkedForEvent_result(object):
  21966. """
  21967. Attributes:
  21968. - success
  21969. - o1
  21970. - o2
  21971. - o3
  21972. - o4
  21973. - o5
  21974. - o6
  21975. """
  21976. thrift_spec = (
  21977. (0, TType.BOOL, 'success', None, None, ), # 0
  21978. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  21979. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  21980. (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3
  21981. (4, TType.STRUCT, 'o4', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 4
  21982. (5, TType.STRUCT, 'o5', (UnknownPartitionException, UnknownPartitionException.thrift_spec), None, ), # 5
  21983. (6, TType.STRUCT, 'o6', (InvalidPartitionException, InvalidPartitionException.thrift_spec), None, ), # 6
  21984. )
  21985. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None, o5=None, o6=None,):
  21986. self.success = success
  21987. self.o1 = o1
  21988. self.o2 = o2
  21989. self.o3 = o3
  21990. self.o4 = o4
  21991. self.o5 = o5
  21992. self.o6 = o6
  21993. def read(self, iprot):
  21994. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  21995. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  21996. return
  21997. iprot.readStructBegin()
  21998. while True:
  21999. (fname, ftype, fid) = iprot.readFieldBegin()
  22000. if ftype == TType.STOP:
  22001. break
  22002. if fid == 0:
  22003. if ftype == TType.BOOL:
  22004. self.success = iprot.readBool()
  22005. else:
  22006. iprot.skip(ftype)
  22007. elif fid == 1:
  22008. if ftype == TType.STRUCT:
  22009. self.o1 = MetaException()
  22010. self.o1.read(iprot)
  22011. else:
  22012. iprot.skip(ftype)
  22013. elif fid == 2:
  22014. if ftype == TType.STRUCT:
  22015. self.o2 = NoSuchObjectException()
  22016. self.o2.read(iprot)
  22017. else:
  22018. iprot.skip(ftype)
  22019. elif fid == 3:
  22020. if ftype == TType.STRUCT:
  22021. self.o3 = UnknownDBException()
  22022. self.o3.read(iprot)
  22023. else:
  22024. iprot.skip(ftype)
  22025. elif fid == 4:
  22026. if ftype == TType.STRUCT:
  22027. self.o4 = UnknownTableException()
  22028. self.o4.read(iprot)
  22029. else:
  22030. iprot.skip(ftype)
  22031. elif fid == 5:
  22032. if ftype == TType.STRUCT:
  22033. self.o5 = UnknownPartitionException()
  22034. self.o5.read(iprot)
  22035. else:
  22036. iprot.skip(ftype)
  22037. elif fid == 6:
  22038. if ftype == TType.STRUCT:
  22039. self.o6 = InvalidPartitionException()
  22040. self.o6.read(iprot)
  22041. else:
  22042. iprot.skip(ftype)
  22043. else:
  22044. iprot.skip(ftype)
  22045. iprot.readFieldEnd()
  22046. iprot.readStructEnd()
  22047. def write(self, oprot):
  22048. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  22049. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  22050. return
  22051. oprot.writeStructBegin('isPartitionMarkedForEvent_result')
  22052. if self.success is not None:
  22053. oprot.writeFieldBegin('success', TType.BOOL, 0)
  22054. oprot.writeBool(self.success)
  22055. oprot.writeFieldEnd()
  22056. if self.o1 is not None:
  22057. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  22058. self.o1.write(oprot)
  22059. oprot.writeFieldEnd()
  22060. if self.o2 is not None:
  22061. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  22062. self.o2.write(oprot)
  22063. oprot.writeFieldEnd()
  22064. if self.o3 is not None:
  22065. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  22066. self.o3.write(oprot)
  22067. oprot.writeFieldEnd()
  22068. if self.o4 is not None:
  22069. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  22070. self.o4.write(oprot)
  22071. oprot.writeFieldEnd()
  22072. if self.o5 is not None:
  22073. oprot.writeFieldBegin('o5', TType.STRUCT, 5)
  22074. self.o5.write(oprot)
  22075. oprot.writeFieldEnd()
  22076. if self.o6 is not None:
  22077. oprot.writeFieldBegin('o6', TType.STRUCT, 6)
  22078. self.o6.write(oprot)
  22079. oprot.writeFieldEnd()
  22080. oprot.writeFieldStop()
  22081. oprot.writeStructEnd()
  22082. def validate(self):
  22083. return
  22084. def __hash__(self):
  22085. value = 17
  22086. value = (value * 31) ^ hash(self.success)
  22087. value = (value * 31) ^ hash(self.o1)
  22088. value = (value * 31) ^ hash(self.o2)
  22089. value = (value * 31) ^ hash(self.o3)
  22090. value = (value * 31) ^ hash(self.o4)
  22091. value = (value * 31) ^ hash(self.o5)
  22092. value = (value * 31) ^ hash(self.o6)
  22093. return value
  22094. def __repr__(self):
  22095. L = ['%s=%r' % (key, value)
  22096. for key, value in self.__dict__.iteritems()]
  22097. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22098. def __eq__(self, other):
  22099. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22100. def __ne__(self, other):
  22101. return not (self == other)
  22102. class add_index_args(object):
  22103. """
  22104. Attributes:
  22105. - new_index
  22106. - index_table
  22107. """
  22108. thrift_spec = (
  22109. None, # 0
  22110. (1, TType.STRUCT, 'new_index', (Index, Index.thrift_spec), None, ), # 1
  22111. (2, TType.STRUCT, 'index_table', (Table, Table.thrift_spec), None, ), # 2
  22112. )
  22113. def __init__(self, new_index=None, index_table=None,):
  22114. self.new_index = new_index
  22115. self.index_table = index_table
  22116. def read(self, iprot):
  22117. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  22118. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  22119. return
  22120. iprot.readStructBegin()
  22121. while True:
  22122. (fname, ftype, fid) = iprot.readFieldBegin()
  22123. if ftype == TType.STOP:
  22124. break
  22125. if fid == 1:
  22126. if ftype == TType.STRUCT:
  22127. self.new_index = Index()
  22128. self.new_index.read(iprot)
  22129. else:
  22130. iprot.skip(ftype)
  22131. elif fid == 2:
  22132. if ftype == TType.STRUCT:
  22133. self.index_table = Table()
  22134. self.index_table.read(iprot)
  22135. else:
  22136. iprot.skip(ftype)
  22137. else:
  22138. iprot.skip(ftype)
  22139. iprot.readFieldEnd()
  22140. iprot.readStructEnd()
  22141. def write(self, oprot):
  22142. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  22143. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  22144. return
  22145. oprot.writeStructBegin('add_index_args')
  22146. if self.new_index is not None:
  22147. oprot.writeFieldBegin('new_index', TType.STRUCT, 1)
  22148. self.new_index.write(oprot)
  22149. oprot.writeFieldEnd()
  22150. if self.index_table is not None:
  22151. oprot.writeFieldBegin('index_table', TType.STRUCT, 2)
  22152. self.index_table.write(oprot)
  22153. oprot.writeFieldEnd()
  22154. oprot.writeFieldStop()
  22155. oprot.writeStructEnd()
  22156. def validate(self):
  22157. return
  22158. def __hash__(self):
  22159. value = 17
  22160. value = (value * 31) ^ hash(self.new_index)
  22161. value = (value * 31) ^ hash(self.index_table)
  22162. return value
  22163. def __repr__(self):
  22164. L = ['%s=%r' % (key, value)
  22165. for key, value in self.__dict__.iteritems()]
  22166. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22167. def __eq__(self, other):
  22168. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22169. def __ne__(self, other):
  22170. return not (self == other)
  22171. class add_index_result(object):
  22172. """
  22173. Attributes:
  22174. - success
  22175. - o1
  22176. - o2
  22177. - o3
  22178. """
  22179. thrift_spec = (
  22180. (0, TType.STRUCT, 'success', (Index, Index.thrift_spec), None, ), # 0
  22181. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  22182. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  22183. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  22184. )
  22185. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  22186. self.success = success
  22187. self.o1 = o1
  22188. self.o2 = o2
  22189. self.o3 = o3
  22190. def read(self, iprot):
  22191. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  22192. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  22193. return
  22194. iprot.readStructBegin()
  22195. while True:
  22196. (fname, ftype, fid) = iprot.readFieldBegin()
  22197. if ftype == TType.STOP:
  22198. break
  22199. if fid == 0:
  22200. if ftype == TType.STRUCT:
  22201. self.success = Index()
  22202. self.success.read(iprot)
  22203. else:
  22204. iprot.skip(ftype)
  22205. elif fid == 1:
  22206. if ftype == TType.STRUCT:
  22207. self.o1 = InvalidObjectException()
  22208. self.o1.read(iprot)
  22209. else:
  22210. iprot.skip(ftype)
  22211. elif fid == 2:
  22212. if ftype == TType.STRUCT:
  22213. self.o2 = AlreadyExistsException()
  22214. self.o2.read(iprot)
  22215. else:
  22216. iprot.skip(ftype)
  22217. elif fid == 3:
  22218. if ftype == TType.STRUCT:
  22219. self.o3 = MetaException()
  22220. self.o3.read(iprot)
  22221. else:
  22222. iprot.skip(ftype)
  22223. else:
  22224. iprot.skip(ftype)
  22225. iprot.readFieldEnd()
  22226. iprot.readStructEnd()
  22227. def write(self, oprot):
  22228. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  22229. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  22230. return
  22231. oprot.writeStructBegin('add_index_result')
  22232. if self.success is not None:
  22233. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  22234. self.success.write(oprot)
  22235. oprot.writeFieldEnd()
  22236. if self.o1 is not None:
  22237. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  22238. self.o1.write(oprot)
  22239. oprot.writeFieldEnd()
  22240. if self.o2 is not None:
  22241. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  22242. self.o2.write(oprot)
  22243. oprot.writeFieldEnd()
  22244. if self.o3 is not None:
  22245. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  22246. self.o3.write(oprot)
  22247. oprot.writeFieldEnd()
  22248. oprot.writeFieldStop()
  22249. oprot.writeStructEnd()
  22250. def validate(self):
  22251. return
  22252. def __hash__(self):
  22253. value = 17
  22254. value = (value * 31) ^ hash(self.success)
  22255. value = (value * 31) ^ hash(self.o1)
  22256. value = (value * 31) ^ hash(self.o2)
  22257. value = (value * 31) ^ hash(self.o3)
  22258. return value
  22259. def __repr__(self):
  22260. L = ['%s=%r' % (key, value)
  22261. for key, value in self.__dict__.iteritems()]
  22262. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22263. def __eq__(self, other):
  22264. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22265. def __ne__(self, other):
  22266. return not (self == other)
  22267. class alter_index_args(object):
  22268. """
  22269. Attributes:
  22270. - dbname
  22271. - base_tbl_name
  22272. - idx_name
  22273. - new_idx
  22274. """
  22275. thrift_spec = (
  22276. None, # 0
  22277. (1, TType.STRING, 'dbname', None, None, ), # 1
  22278. (2, TType.STRING, 'base_tbl_name', None, None, ), # 2
  22279. (3, TType.STRING, 'idx_name', None, None, ), # 3
  22280. (4, TType.STRUCT, 'new_idx', (Index, Index.thrift_spec), None, ), # 4
  22281. )
  22282. def __init__(self, dbname=None, base_tbl_name=None, idx_name=None, new_idx=None,):
  22283. self.dbname = dbname
  22284. self.base_tbl_name = base_tbl_name
  22285. self.idx_name = idx_name
  22286. self.new_idx = new_idx
  22287. def read(self, iprot):
  22288. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  22289. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  22290. return
  22291. iprot.readStructBegin()
  22292. while True:
  22293. (fname, ftype, fid) = iprot.readFieldBegin()
  22294. if ftype == TType.STOP:
  22295. break
  22296. if fid == 1:
  22297. if ftype == TType.STRING:
  22298. self.dbname = iprot.readString()
  22299. else:
  22300. iprot.skip(ftype)
  22301. elif fid == 2:
  22302. if ftype == TType.STRING:
  22303. self.base_tbl_name = iprot.readString()
  22304. else:
  22305. iprot.skip(ftype)
  22306. elif fid == 3:
  22307. if ftype == TType.STRING:
  22308. self.idx_name = iprot.readString()
  22309. else:
  22310. iprot.skip(ftype)
  22311. elif fid == 4:
  22312. if ftype == TType.STRUCT:
  22313. self.new_idx = Index()
  22314. self.new_idx.read(iprot)
  22315. else:
  22316. iprot.skip(ftype)
  22317. else:
  22318. iprot.skip(ftype)
  22319. iprot.readFieldEnd()
  22320. iprot.readStructEnd()
  22321. def write(self, oprot):
  22322. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  22323. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  22324. return
  22325. oprot.writeStructBegin('alter_index_args')
  22326. if self.dbname is not None:
  22327. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  22328. oprot.writeString(self.dbname)
  22329. oprot.writeFieldEnd()
  22330. if self.base_tbl_name is not None:
  22331. oprot.writeFieldBegin('base_tbl_name', TType.STRING, 2)
  22332. oprot.writeString(self.base_tbl_name)
  22333. oprot.writeFieldEnd()
  22334. if self.idx_name is not None:
  22335. oprot.writeFieldBegin('idx_name', TType.STRING, 3)
  22336. oprot.writeString(self.idx_name)
  22337. oprot.writeFieldEnd()
  22338. if self.new_idx is not None:
  22339. oprot.writeFieldBegin('new_idx', TType.STRUCT, 4)
  22340. self.new_idx.write(oprot)
  22341. oprot.writeFieldEnd()
  22342. oprot.writeFieldStop()
  22343. oprot.writeStructEnd()
  22344. def validate(self):
  22345. return
  22346. def __hash__(self):
  22347. value = 17
  22348. value = (value * 31) ^ hash(self.dbname)
  22349. value = (value * 31) ^ hash(self.base_tbl_name)
  22350. value = (value * 31) ^ hash(self.idx_name)
  22351. value = (value * 31) ^ hash(self.new_idx)
  22352. return value
  22353. def __repr__(self):
  22354. L = ['%s=%r' % (key, value)
  22355. for key, value in self.__dict__.iteritems()]
  22356. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22357. def __eq__(self, other):
  22358. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22359. def __ne__(self, other):
  22360. return not (self == other)
  22361. class alter_index_result(object):
  22362. """
  22363. Attributes:
  22364. - o1
  22365. - o2
  22366. """
  22367. thrift_spec = (
  22368. None, # 0
  22369. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  22370. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  22371. )
  22372. def __init__(self, o1=None, o2=None,):
  22373. self.o1 = o1
  22374. self.o2 = o2
  22375. def read(self, iprot):
  22376. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  22377. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  22378. return
  22379. iprot.readStructBegin()
  22380. while True:
  22381. (fname, ftype, fid) = iprot.readFieldBegin()
  22382. if ftype == TType.STOP:
  22383. break
  22384. if fid == 1:
  22385. if ftype == TType.STRUCT:
  22386. self.o1 = InvalidOperationException()
  22387. self.o1.read(iprot)
  22388. else:
  22389. iprot.skip(ftype)
  22390. elif fid == 2:
  22391. if ftype == TType.STRUCT:
  22392. self.o2 = MetaException()
  22393. self.o2.read(iprot)
  22394. else:
  22395. iprot.skip(ftype)
  22396. else:
  22397. iprot.skip(ftype)
  22398. iprot.readFieldEnd()
  22399. iprot.readStructEnd()
  22400. def write(self, oprot):
  22401. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  22402. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  22403. return
  22404. oprot.writeStructBegin('alter_index_result')
  22405. if self.o1 is not None:
  22406. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  22407. self.o1.write(oprot)
  22408. oprot.writeFieldEnd()
  22409. if self.o2 is not None:
  22410. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  22411. self.o2.write(oprot)
  22412. oprot.writeFieldEnd()
  22413. oprot.writeFieldStop()
  22414. oprot.writeStructEnd()
  22415. def validate(self):
  22416. return
  22417. def __hash__(self):
  22418. value = 17
  22419. value = (value * 31) ^ hash(self.o1)
  22420. value = (value * 31) ^ hash(self.o2)
  22421. return value
  22422. def __repr__(self):
  22423. L = ['%s=%r' % (key, value)
  22424. for key, value in self.__dict__.iteritems()]
  22425. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22426. def __eq__(self, other):
  22427. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22428. def __ne__(self, other):
  22429. return not (self == other)
  22430. class drop_index_by_name_args(object):
  22431. """
  22432. Attributes:
  22433. - db_name
  22434. - tbl_name
  22435. - index_name
  22436. - deleteData
  22437. """
  22438. thrift_spec = (
  22439. None, # 0
  22440. (1, TType.STRING, 'db_name', None, None, ), # 1
  22441. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  22442. (3, TType.STRING, 'index_name', None, None, ), # 3
  22443. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  22444. )
  22445. def __init__(self, db_name=None, tbl_name=None, index_name=None, deleteData=None,):
  22446. self.db_name = db_name
  22447. self.tbl_name = tbl_name
  22448. self.index_name = index_name
  22449. self.deleteData = deleteData
  22450. def read(self, iprot):
  22451. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  22452. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  22453. return
  22454. iprot.readStructBegin()
  22455. while True:
  22456. (fname, ftype, fid) = iprot.readFieldBegin()
  22457. if ftype == TType.STOP:
  22458. break
  22459. if fid == 1:
  22460. if ftype == TType.STRING:
  22461. self.db_name = iprot.readString()
  22462. else:
  22463. iprot.skip(ftype)
  22464. elif fid == 2:
  22465. if ftype == TType.STRING:
  22466. self.tbl_name = iprot.readString()
  22467. else:
  22468. iprot.skip(ftype)
  22469. elif fid == 3:
  22470. if ftype == TType.STRING:
  22471. self.index_name = iprot.readString()
  22472. else:
  22473. iprot.skip(ftype)
  22474. elif fid == 4:
  22475. if ftype == TType.BOOL:
  22476. self.deleteData = iprot.readBool()
  22477. else:
  22478. iprot.skip(ftype)
  22479. else:
  22480. iprot.skip(ftype)
  22481. iprot.readFieldEnd()
  22482. iprot.readStructEnd()
  22483. def write(self, oprot):
  22484. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  22485. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  22486. return
  22487. oprot.writeStructBegin('drop_index_by_name_args')
  22488. if self.db_name is not None:
  22489. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  22490. oprot.writeString(self.db_name)
  22491. oprot.writeFieldEnd()
  22492. if self.tbl_name is not None:
  22493. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  22494. oprot.writeString(self.tbl_name)
  22495. oprot.writeFieldEnd()
  22496. if self.index_name is not None:
  22497. oprot.writeFieldBegin('index_name', TType.STRING, 3)
  22498. oprot.writeString(self.index_name)
  22499. oprot.writeFieldEnd()
  22500. if self.deleteData is not None:
  22501. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  22502. oprot.writeBool(self.deleteData)
  22503. oprot.writeFieldEnd()
  22504. oprot.writeFieldStop()
  22505. oprot.writeStructEnd()
  22506. def validate(self):
  22507. return
  22508. def __hash__(self):
  22509. value = 17
  22510. value = (value * 31) ^ hash(self.db_name)
  22511. value = (value * 31) ^ hash(self.tbl_name)
  22512. value = (value * 31) ^ hash(self.index_name)
  22513. value = (value * 31) ^ hash(self.deleteData)
  22514. return value
  22515. def __repr__(self):
  22516. L = ['%s=%r' % (key, value)
  22517. for key, value in self.__dict__.iteritems()]
  22518. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22519. def __eq__(self, other):
  22520. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22521. def __ne__(self, other):
  22522. return not (self == other)
  22523. class drop_index_by_name_result(object):
  22524. """
  22525. Attributes:
  22526. - success
  22527. - o1
  22528. - o2
  22529. """
  22530. thrift_spec = (
  22531. (0, TType.BOOL, 'success', None, None, ), # 0
  22532. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  22533. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  22534. )
  22535. def __init__(self, success=None, o1=None, o2=None,):
  22536. self.success = success
  22537. self.o1 = o1
  22538. self.o2 = o2
  22539. def read(self, iprot):
  22540. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  22541. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  22542. return
  22543. iprot.readStructBegin()
  22544. while True:
  22545. (fname, ftype, fid) = iprot.readFieldBegin()
  22546. if ftype == TType.STOP:
  22547. break
  22548. if fid == 0:
  22549. if ftype == TType.BOOL:
  22550. self.success = iprot.readBool()
  22551. else:
  22552. iprot.skip(ftype)
  22553. elif fid == 1:
  22554. if ftype == TType.STRUCT:
  22555. self.o1 = NoSuchObjectException()
  22556. self.o1.read(iprot)
  22557. else:
  22558. iprot.skip(ftype)
  22559. elif fid == 2:
  22560. if ftype == TType.STRUCT:
  22561. self.o2 = MetaException()
  22562. self.o2.read(iprot)
  22563. else:
  22564. iprot.skip(ftype)
  22565. else:
  22566. iprot.skip(ftype)
  22567. iprot.readFieldEnd()
  22568. iprot.readStructEnd()
  22569. def write(self, oprot):
  22570. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  22571. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  22572. return
  22573. oprot.writeStructBegin('drop_index_by_name_result')
  22574. if self.success is not None:
  22575. oprot.writeFieldBegin('success', TType.BOOL, 0)
  22576. oprot.writeBool(self.success)
  22577. oprot.writeFieldEnd()
  22578. if self.o1 is not None:
  22579. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  22580. self.o1.write(oprot)
  22581. oprot.writeFieldEnd()
  22582. if self.o2 is not None:
  22583. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  22584. self.o2.write(oprot)
  22585. oprot.writeFieldEnd()
  22586. oprot.writeFieldStop()
  22587. oprot.writeStructEnd()
  22588. def validate(self):
  22589. return
  22590. def __hash__(self):
  22591. value = 17
  22592. value = (value * 31) ^ hash(self.success)
  22593. value = (value * 31) ^ hash(self.o1)
  22594. value = (value * 31) ^ hash(self.o2)
  22595. return value
  22596. def __repr__(self):
  22597. L = ['%s=%r' % (key, value)
  22598. for key, value in self.__dict__.iteritems()]
  22599. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22600. def __eq__(self, other):
  22601. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22602. def __ne__(self, other):
  22603. return not (self == other)
  22604. class get_index_by_name_args(object):
  22605. """
  22606. Attributes:
  22607. - db_name
  22608. - tbl_name
  22609. - index_name
  22610. """
  22611. thrift_spec = (
  22612. None, # 0
  22613. (1, TType.STRING, 'db_name', None, None, ), # 1
  22614. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  22615. (3, TType.STRING, 'index_name', None, None, ), # 3
  22616. )
  22617. def __init__(self, db_name=None, tbl_name=None, index_name=None,):
  22618. self.db_name = db_name
  22619. self.tbl_name = tbl_name
  22620. self.index_name = index_name
  22621. def read(self, iprot):
  22622. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  22623. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  22624. return
  22625. iprot.readStructBegin()
  22626. while True:
  22627. (fname, ftype, fid) = iprot.readFieldBegin()
  22628. if ftype == TType.STOP:
  22629. break
  22630. if fid == 1:
  22631. if ftype == TType.STRING:
  22632. self.db_name = iprot.readString()
  22633. else:
  22634. iprot.skip(ftype)
  22635. elif fid == 2:
  22636. if ftype == TType.STRING:
  22637. self.tbl_name = iprot.readString()
  22638. else:
  22639. iprot.skip(ftype)
  22640. elif fid == 3:
  22641. if ftype == TType.STRING:
  22642. self.index_name = iprot.readString()
  22643. else:
  22644. iprot.skip(ftype)
  22645. else:
  22646. iprot.skip(ftype)
  22647. iprot.readFieldEnd()
  22648. iprot.readStructEnd()
  22649. def write(self, oprot):
  22650. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  22651. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  22652. return
  22653. oprot.writeStructBegin('get_index_by_name_args')
  22654. if self.db_name is not None:
  22655. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  22656. oprot.writeString(self.db_name)
  22657. oprot.writeFieldEnd()
  22658. if self.tbl_name is not None:
  22659. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  22660. oprot.writeString(self.tbl_name)
  22661. oprot.writeFieldEnd()
  22662. if self.index_name is not None:
  22663. oprot.writeFieldBegin('index_name', TType.STRING, 3)
  22664. oprot.writeString(self.index_name)
  22665. oprot.writeFieldEnd()
  22666. oprot.writeFieldStop()
  22667. oprot.writeStructEnd()
  22668. def validate(self):
  22669. return
  22670. def __hash__(self):
  22671. value = 17
  22672. value = (value * 31) ^ hash(self.db_name)
  22673. value = (value * 31) ^ hash(self.tbl_name)
  22674. value = (value * 31) ^ hash(self.index_name)
  22675. return value
  22676. def __repr__(self):
  22677. L = ['%s=%r' % (key, value)
  22678. for key, value in self.__dict__.iteritems()]
  22679. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22680. def __eq__(self, other):
  22681. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22682. def __ne__(self, other):
  22683. return not (self == other)
  22684. class get_index_by_name_result(object):
  22685. """
  22686. Attributes:
  22687. - success
  22688. - o1
  22689. - o2
  22690. """
  22691. thrift_spec = (
  22692. (0, TType.STRUCT, 'success', (Index, Index.thrift_spec), None, ), # 0
  22693. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  22694. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  22695. )
  22696. def __init__(self, success=None, o1=None, o2=None,):
  22697. self.success = success
  22698. self.o1 = o1
  22699. self.o2 = o2
  22700. def read(self, iprot):
  22701. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  22702. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  22703. return
  22704. iprot.readStructBegin()
  22705. while True:
  22706. (fname, ftype, fid) = iprot.readFieldBegin()
  22707. if ftype == TType.STOP:
  22708. break
  22709. if fid == 0:
  22710. if ftype == TType.STRUCT:
  22711. self.success = Index()
  22712. self.success.read(iprot)
  22713. else:
  22714. iprot.skip(ftype)
  22715. elif fid == 1:
  22716. if ftype == TType.STRUCT:
  22717. self.o1 = MetaException()
  22718. self.o1.read(iprot)
  22719. else:
  22720. iprot.skip(ftype)
  22721. elif fid == 2:
  22722. if ftype == TType.STRUCT:
  22723. self.o2 = NoSuchObjectException()
  22724. self.o2.read(iprot)
  22725. else:
  22726. iprot.skip(ftype)
  22727. else:
  22728. iprot.skip(ftype)
  22729. iprot.readFieldEnd()
  22730. iprot.readStructEnd()
  22731. def write(self, oprot):
  22732. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  22733. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  22734. return
  22735. oprot.writeStructBegin('get_index_by_name_result')
  22736. if self.success is not None:
  22737. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  22738. self.success.write(oprot)
  22739. oprot.writeFieldEnd()
  22740. if self.o1 is not None:
  22741. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  22742. self.o1.write(oprot)
  22743. oprot.writeFieldEnd()
  22744. if self.o2 is not None:
  22745. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  22746. self.o2.write(oprot)
  22747. oprot.writeFieldEnd()
  22748. oprot.writeFieldStop()
  22749. oprot.writeStructEnd()
  22750. def validate(self):
  22751. return
  22752. def __hash__(self):
  22753. value = 17
  22754. value = (value * 31) ^ hash(self.success)
  22755. value = (value * 31) ^ hash(self.o1)
  22756. value = (value * 31) ^ hash(self.o2)
  22757. return value
  22758. def __repr__(self):
  22759. L = ['%s=%r' % (key, value)
  22760. for key, value in self.__dict__.iteritems()]
  22761. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22762. def __eq__(self, other):
  22763. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22764. def __ne__(self, other):
  22765. return not (self == other)
  22766. class get_indexes_args(object):
  22767. """
  22768. Attributes:
  22769. - db_name
  22770. - tbl_name
  22771. - max_indexes
  22772. """
  22773. thrift_spec = (
  22774. None, # 0
  22775. (1, TType.STRING, 'db_name', None, None, ), # 1
  22776. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  22777. (3, TType.I16, 'max_indexes', None, -1, ), # 3
  22778. )
  22779. def __init__(self, db_name=None, tbl_name=None, max_indexes=thrift_spec[3][4],):
  22780. self.db_name = db_name
  22781. self.tbl_name = tbl_name
  22782. self.max_indexes = max_indexes
  22783. def read(self, iprot):
  22784. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  22785. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  22786. return
  22787. iprot.readStructBegin()
  22788. while True:
  22789. (fname, ftype, fid) = iprot.readFieldBegin()
  22790. if ftype == TType.STOP:
  22791. break
  22792. if fid == 1:
  22793. if ftype == TType.STRING:
  22794. self.db_name = iprot.readString()
  22795. else:
  22796. iprot.skip(ftype)
  22797. elif fid == 2:
  22798. if ftype == TType.STRING:
  22799. self.tbl_name = iprot.readString()
  22800. else:
  22801. iprot.skip(ftype)
  22802. elif fid == 3:
  22803. if ftype == TType.I16:
  22804. self.max_indexes = iprot.readI16()
  22805. else:
  22806. iprot.skip(ftype)
  22807. else:
  22808. iprot.skip(ftype)
  22809. iprot.readFieldEnd()
  22810. iprot.readStructEnd()
  22811. def write(self, oprot):
  22812. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  22813. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  22814. return
  22815. oprot.writeStructBegin('get_indexes_args')
  22816. if self.db_name is not None:
  22817. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  22818. oprot.writeString(self.db_name)
  22819. oprot.writeFieldEnd()
  22820. if self.tbl_name is not None:
  22821. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  22822. oprot.writeString(self.tbl_name)
  22823. oprot.writeFieldEnd()
  22824. if self.max_indexes is not None:
  22825. oprot.writeFieldBegin('max_indexes', TType.I16, 3)
  22826. oprot.writeI16(self.max_indexes)
  22827. oprot.writeFieldEnd()
  22828. oprot.writeFieldStop()
  22829. oprot.writeStructEnd()
  22830. def validate(self):
  22831. return
  22832. def __hash__(self):
  22833. value = 17
  22834. value = (value * 31) ^ hash(self.db_name)
  22835. value = (value * 31) ^ hash(self.tbl_name)
  22836. value = (value * 31) ^ hash(self.max_indexes)
  22837. return value
  22838. def __repr__(self):
  22839. L = ['%s=%r' % (key, value)
  22840. for key, value in self.__dict__.iteritems()]
  22841. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22842. def __eq__(self, other):
  22843. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22844. def __ne__(self, other):
  22845. return not (self == other)
  22846. class get_indexes_result(object):
  22847. """
  22848. Attributes:
  22849. - success
  22850. - o1
  22851. - o2
  22852. """
  22853. thrift_spec = (
  22854. (0, TType.LIST, 'success', (TType.STRUCT,(Index, Index.thrift_spec)), None, ), # 0
  22855. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  22856. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  22857. )
  22858. def __init__(self, success=None, o1=None, o2=None,):
  22859. self.success = success
  22860. self.o1 = o1
  22861. self.o2 = o2
  22862. def read(self, iprot):
  22863. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  22864. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  22865. return
  22866. iprot.readStructBegin()
  22867. while True:
  22868. (fname, ftype, fid) = iprot.readFieldBegin()
  22869. if ftype == TType.STOP:
  22870. break
  22871. if fid == 0:
  22872. if ftype == TType.LIST:
  22873. self.success = []
  22874. (_etype973, _size970) = iprot.readListBegin()
  22875. for _i974 in xrange(_size970):
  22876. _elem975 = Index()
  22877. _elem975.read(iprot)
  22878. self.success.append(_elem975)
  22879. iprot.readListEnd()
  22880. else:
  22881. iprot.skip(ftype)
  22882. elif fid == 1:
  22883. if ftype == TType.STRUCT:
  22884. self.o1 = NoSuchObjectException()
  22885. self.o1.read(iprot)
  22886. else:
  22887. iprot.skip(ftype)
  22888. elif fid == 2:
  22889. if ftype == TType.STRUCT:
  22890. self.o2 = MetaException()
  22891. self.o2.read(iprot)
  22892. else:
  22893. iprot.skip(ftype)
  22894. else:
  22895. iprot.skip(ftype)
  22896. iprot.readFieldEnd()
  22897. iprot.readStructEnd()
  22898. def write(self, oprot):
  22899. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  22900. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  22901. return
  22902. oprot.writeStructBegin('get_indexes_result')
  22903. if self.success is not None:
  22904. oprot.writeFieldBegin('success', TType.LIST, 0)
  22905. oprot.writeListBegin(TType.STRUCT, len(self.success))
  22906. for iter976 in self.success:
  22907. iter976.write(oprot)
  22908. oprot.writeListEnd()
  22909. oprot.writeFieldEnd()
  22910. if self.o1 is not None:
  22911. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  22912. self.o1.write(oprot)
  22913. oprot.writeFieldEnd()
  22914. if self.o2 is not None:
  22915. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  22916. self.o2.write(oprot)
  22917. oprot.writeFieldEnd()
  22918. oprot.writeFieldStop()
  22919. oprot.writeStructEnd()
  22920. def validate(self):
  22921. return
  22922. def __hash__(self):
  22923. value = 17
  22924. value = (value * 31) ^ hash(self.success)
  22925. value = (value * 31) ^ hash(self.o1)
  22926. value = (value * 31) ^ hash(self.o2)
  22927. return value
  22928. def __repr__(self):
  22929. L = ['%s=%r' % (key, value)
  22930. for key, value in self.__dict__.iteritems()]
  22931. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22932. def __eq__(self, other):
  22933. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22934. def __ne__(self, other):
  22935. return not (self == other)
  22936. class get_index_names_args(object):
  22937. """
  22938. Attributes:
  22939. - db_name
  22940. - tbl_name
  22941. - max_indexes
  22942. """
  22943. thrift_spec = (
  22944. None, # 0
  22945. (1, TType.STRING, 'db_name', None, None, ), # 1
  22946. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  22947. (3, TType.I16, 'max_indexes', None, -1, ), # 3
  22948. )
  22949. def __init__(self, db_name=None, tbl_name=None, max_indexes=thrift_spec[3][4],):
  22950. self.db_name = db_name
  22951. self.tbl_name = tbl_name
  22952. self.max_indexes = max_indexes
  22953. def read(self, iprot):
  22954. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  22955. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  22956. return
  22957. iprot.readStructBegin()
  22958. while True:
  22959. (fname, ftype, fid) = iprot.readFieldBegin()
  22960. if ftype == TType.STOP:
  22961. break
  22962. if fid == 1:
  22963. if ftype == TType.STRING:
  22964. self.db_name = iprot.readString()
  22965. else:
  22966. iprot.skip(ftype)
  22967. elif fid == 2:
  22968. if ftype == TType.STRING:
  22969. self.tbl_name = iprot.readString()
  22970. else:
  22971. iprot.skip(ftype)
  22972. elif fid == 3:
  22973. if ftype == TType.I16:
  22974. self.max_indexes = iprot.readI16()
  22975. else:
  22976. iprot.skip(ftype)
  22977. else:
  22978. iprot.skip(ftype)
  22979. iprot.readFieldEnd()
  22980. iprot.readStructEnd()
  22981. def write(self, oprot):
  22982. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  22983. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  22984. return
  22985. oprot.writeStructBegin('get_index_names_args')
  22986. if self.db_name is not None:
  22987. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  22988. oprot.writeString(self.db_name)
  22989. oprot.writeFieldEnd()
  22990. if self.tbl_name is not None:
  22991. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  22992. oprot.writeString(self.tbl_name)
  22993. oprot.writeFieldEnd()
  22994. if self.max_indexes is not None:
  22995. oprot.writeFieldBegin('max_indexes', TType.I16, 3)
  22996. oprot.writeI16(self.max_indexes)
  22997. oprot.writeFieldEnd()
  22998. oprot.writeFieldStop()
  22999. oprot.writeStructEnd()
  23000. def validate(self):
  23001. return
  23002. def __hash__(self):
  23003. value = 17
  23004. value = (value * 31) ^ hash(self.db_name)
  23005. value = (value * 31) ^ hash(self.tbl_name)
  23006. value = (value * 31) ^ hash(self.max_indexes)
  23007. return value
  23008. def __repr__(self):
  23009. L = ['%s=%r' % (key, value)
  23010. for key, value in self.__dict__.iteritems()]
  23011. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23012. def __eq__(self, other):
  23013. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23014. def __ne__(self, other):
  23015. return not (self == other)
  23016. class get_index_names_result(object):
  23017. """
  23018. Attributes:
  23019. - success
  23020. - o2
  23021. """
  23022. thrift_spec = (
  23023. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  23024. (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1
  23025. )
  23026. def __init__(self, success=None, o2=None,):
  23027. self.success = success
  23028. self.o2 = o2
  23029. def read(self, iprot):
  23030. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  23031. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  23032. return
  23033. iprot.readStructBegin()
  23034. while True:
  23035. (fname, ftype, fid) = iprot.readFieldBegin()
  23036. if ftype == TType.STOP:
  23037. break
  23038. if fid == 0:
  23039. if ftype == TType.LIST:
  23040. self.success = []
  23041. (_etype980, _size977) = iprot.readListBegin()
  23042. for _i981 in xrange(_size977):
  23043. _elem982 = iprot.readString()
  23044. self.success.append(_elem982)
  23045. iprot.readListEnd()
  23046. else:
  23047. iprot.skip(ftype)
  23048. elif fid == 1:
  23049. if ftype == TType.STRUCT:
  23050. self.o2 = MetaException()
  23051. self.o2.read(iprot)
  23052. else:
  23053. iprot.skip(ftype)
  23054. else:
  23055. iprot.skip(ftype)
  23056. iprot.readFieldEnd()
  23057. iprot.readStructEnd()
  23058. def write(self, oprot):
  23059. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  23060. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  23061. return
  23062. oprot.writeStructBegin('get_index_names_result')
  23063. if self.success is not None:
  23064. oprot.writeFieldBegin('success', TType.LIST, 0)
  23065. oprot.writeListBegin(TType.STRING, len(self.success))
  23066. for iter983 in self.success:
  23067. oprot.writeString(iter983)
  23068. oprot.writeListEnd()
  23069. oprot.writeFieldEnd()
  23070. if self.o2 is not None:
  23071. oprot.writeFieldBegin('o2', TType.STRUCT, 1)
  23072. self.o2.write(oprot)
  23073. oprot.writeFieldEnd()
  23074. oprot.writeFieldStop()
  23075. oprot.writeStructEnd()
  23076. def validate(self):
  23077. return
  23078. def __hash__(self):
  23079. value = 17
  23080. value = (value * 31) ^ hash(self.success)
  23081. value = (value * 31) ^ hash(self.o2)
  23082. return value
  23083. def __repr__(self):
  23084. L = ['%s=%r' % (key, value)
  23085. for key, value in self.__dict__.iteritems()]
  23086. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23087. def __eq__(self, other):
  23088. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23089. def __ne__(self, other):
  23090. return not (self == other)
  23091. class get_primary_keys_args(object):
  23092. """
  23093. Attributes:
  23094. - request
  23095. """
  23096. thrift_spec = (
  23097. None, # 0
  23098. (1, TType.STRUCT, 'request', (PrimaryKeysRequest, PrimaryKeysRequest.thrift_spec), None, ), # 1
  23099. )
  23100. def __init__(self, request=None,):
  23101. self.request = request
  23102. def read(self, iprot):
  23103. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  23104. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  23105. return
  23106. iprot.readStructBegin()
  23107. while True:
  23108. (fname, ftype, fid) = iprot.readFieldBegin()
  23109. if ftype == TType.STOP:
  23110. break
  23111. if fid == 1:
  23112. if ftype == TType.STRUCT:
  23113. self.request = PrimaryKeysRequest()
  23114. self.request.read(iprot)
  23115. else:
  23116. iprot.skip(ftype)
  23117. else:
  23118. iprot.skip(ftype)
  23119. iprot.readFieldEnd()
  23120. iprot.readStructEnd()
  23121. def write(self, oprot):
  23122. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  23123. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  23124. return
  23125. oprot.writeStructBegin('get_primary_keys_args')
  23126. if self.request is not None:
  23127. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  23128. self.request.write(oprot)
  23129. oprot.writeFieldEnd()
  23130. oprot.writeFieldStop()
  23131. oprot.writeStructEnd()
  23132. def validate(self):
  23133. return
  23134. def __hash__(self):
  23135. value = 17
  23136. value = (value * 31) ^ hash(self.request)
  23137. return value
  23138. def __repr__(self):
  23139. L = ['%s=%r' % (key, value)
  23140. for key, value in self.__dict__.iteritems()]
  23141. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23142. def __eq__(self, other):
  23143. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23144. def __ne__(self, other):
  23145. return not (self == other)
  23146. class get_primary_keys_result(object):
  23147. """
  23148. Attributes:
  23149. - success
  23150. - o1
  23151. - o2
  23152. """
  23153. thrift_spec = (
  23154. (0, TType.STRUCT, 'success', (PrimaryKeysResponse, PrimaryKeysResponse.thrift_spec), None, ), # 0
  23155. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  23156. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  23157. )
  23158. def __init__(self, success=None, o1=None, o2=None,):
  23159. self.success = success
  23160. self.o1 = o1
  23161. self.o2 = o2
  23162. def read(self, iprot):
  23163. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  23164. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  23165. return
  23166. iprot.readStructBegin()
  23167. while True:
  23168. (fname, ftype, fid) = iprot.readFieldBegin()
  23169. if ftype == TType.STOP:
  23170. break
  23171. if fid == 0:
  23172. if ftype == TType.STRUCT:
  23173. self.success = PrimaryKeysResponse()
  23174. self.success.read(iprot)
  23175. else:
  23176. iprot.skip(ftype)
  23177. elif fid == 1:
  23178. if ftype == TType.STRUCT:
  23179. self.o1 = MetaException()
  23180. self.o1.read(iprot)
  23181. else:
  23182. iprot.skip(ftype)
  23183. elif fid == 2:
  23184. if ftype == TType.STRUCT:
  23185. self.o2 = NoSuchObjectException()
  23186. self.o2.read(iprot)
  23187. else:
  23188. iprot.skip(ftype)
  23189. else:
  23190. iprot.skip(ftype)
  23191. iprot.readFieldEnd()
  23192. iprot.readStructEnd()
  23193. def write(self, oprot):
  23194. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  23195. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  23196. return
  23197. oprot.writeStructBegin('get_primary_keys_result')
  23198. if self.success is not None:
  23199. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  23200. self.success.write(oprot)
  23201. oprot.writeFieldEnd()
  23202. if self.o1 is not None:
  23203. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  23204. self.o1.write(oprot)
  23205. oprot.writeFieldEnd()
  23206. if self.o2 is not None:
  23207. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  23208. self.o2.write(oprot)
  23209. oprot.writeFieldEnd()
  23210. oprot.writeFieldStop()
  23211. oprot.writeStructEnd()
  23212. def validate(self):
  23213. return
  23214. def __hash__(self):
  23215. value = 17
  23216. value = (value * 31) ^ hash(self.success)
  23217. value = (value * 31) ^ hash(self.o1)
  23218. value = (value * 31) ^ hash(self.o2)
  23219. return value
  23220. def __repr__(self):
  23221. L = ['%s=%r' % (key, value)
  23222. for key, value in self.__dict__.iteritems()]
  23223. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23224. def __eq__(self, other):
  23225. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23226. def __ne__(self, other):
  23227. return not (self == other)
  23228. class get_foreign_keys_args(object):
  23229. """
  23230. Attributes:
  23231. - request
  23232. """
  23233. thrift_spec = (
  23234. None, # 0
  23235. (1, TType.STRUCT, 'request', (ForeignKeysRequest, ForeignKeysRequest.thrift_spec), None, ), # 1
  23236. )
  23237. def __init__(self, request=None,):
  23238. self.request = request
  23239. def read(self, iprot):
  23240. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  23241. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  23242. return
  23243. iprot.readStructBegin()
  23244. while True:
  23245. (fname, ftype, fid) = iprot.readFieldBegin()
  23246. if ftype == TType.STOP:
  23247. break
  23248. if fid == 1:
  23249. if ftype == TType.STRUCT:
  23250. self.request = ForeignKeysRequest()
  23251. self.request.read(iprot)
  23252. else:
  23253. iprot.skip(ftype)
  23254. else:
  23255. iprot.skip(ftype)
  23256. iprot.readFieldEnd()
  23257. iprot.readStructEnd()
  23258. def write(self, oprot):
  23259. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  23260. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  23261. return
  23262. oprot.writeStructBegin('get_foreign_keys_args')
  23263. if self.request is not None:
  23264. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  23265. self.request.write(oprot)
  23266. oprot.writeFieldEnd()
  23267. oprot.writeFieldStop()
  23268. oprot.writeStructEnd()
  23269. def validate(self):
  23270. return
  23271. def __hash__(self):
  23272. value = 17
  23273. value = (value * 31) ^ hash(self.request)
  23274. return value
  23275. def __repr__(self):
  23276. L = ['%s=%r' % (key, value)
  23277. for key, value in self.__dict__.iteritems()]
  23278. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23279. def __eq__(self, other):
  23280. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23281. def __ne__(self, other):
  23282. return not (self == other)
  23283. class get_foreign_keys_result(object):
  23284. """
  23285. Attributes:
  23286. - success
  23287. - o1
  23288. - o2
  23289. """
  23290. thrift_spec = (
  23291. (0, TType.STRUCT, 'success', (ForeignKeysResponse, ForeignKeysResponse.thrift_spec), None, ), # 0
  23292. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  23293. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  23294. )
  23295. def __init__(self, success=None, o1=None, o2=None,):
  23296. self.success = success
  23297. self.o1 = o1
  23298. self.o2 = o2
  23299. def read(self, iprot):
  23300. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  23301. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  23302. return
  23303. iprot.readStructBegin()
  23304. while True:
  23305. (fname, ftype, fid) = iprot.readFieldBegin()
  23306. if ftype == TType.STOP:
  23307. break
  23308. if fid == 0:
  23309. if ftype == TType.STRUCT:
  23310. self.success = ForeignKeysResponse()
  23311. self.success.read(iprot)
  23312. else:
  23313. iprot.skip(ftype)
  23314. elif fid == 1:
  23315. if ftype == TType.STRUCT:
  23316. self.o1 = MetaException()
  23317. self.o1.read(iprot)
  23318. else:
  23319. iprot.skip(ftype)
  23320. elif fid == 2:
  23321. if ftype == TType.STRUCT:
  23322. self.o2 = NoSuchObjectException()
  23323. self.o2.read(iprot)
  23324. else:
  23325. iprot.skip(ftype)
  23326. else:
  23327. iprot.skip(ftype)
  23328. iprot.readFieldEnd()
  23329. iprot.readStructEnd()
  23330. def write(self, oprot):
  23331. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  23332. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  23333. return
  23334. oprot.writeStructBegin('get_foreign_keys_result')
  23335. if self.success is not None:
  23336. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  23337. self.success.write(oprot)
  23338. oprot.writeFieldEnd()
  23339. if self.o1 is not None:
  23340. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  23341. self.o1.write(oprot)
  23342. oprot.writeFieldEnd()
  23343. if self.o2 is not None:
  23344. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  23345. self.o2.write(oprot)
  23346. oprot.writeFieldEnd()
  23347. oprot.writeFieldStop()
  23348. oprot.writeStructEnd()
  23349. def validate(self):
  23350. return
  23351. def __hash__(self):
  23352. value = 17
  23353. value = (value * 31) ^ hash(self.success)
  23354. value = (value * 31) ^ hash(self.o1)
  23355. value = (value * 31) ^ hash(self.o2)
  23356. return value
  23357. def __repr__(self):
  23358. L = ['%s=%r' % (key, value)
  23359. for key, value in self.__dict__.iteritems()]
  23360. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23361. def __eq__(self, other):
  23362. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23363. def __ne__(self, other):
  23364. return not (self == other)
  23365. class update_table_column_statistics_args(object):
  23366. """
  23367. Attributes:
  23368. - stats_obj
  23369. """
  23370. thrift_spec = (
  23371. None, # 0
  23372. (1, TType.STRUCT, 'stats_obj', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 1
  23373. )
  23374. def __init__(self, stats_obj=None,):
  23375. self.stats_obj = stats_obj
  23376. def read(self, iprot):
  23377. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  23378. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  23379. return
  23380. iprot.readStructBegin()
  23381. while True:
  23382. (fname, ftype, fid) = iprot.readFieldBegin()
  23383. if ftype == TType.STOP:
  23384. break
  23385. if fid == 1:
  23386. if ftype == TType.STRUCT:
  23387. self.stats_obj = ColumnStatistics()
  23388. self.stats_obj.read(iprot)
  23389. else:
  23390. iprot.skip(ftype)
  23391. else:
  23392. iprot.skip(ftype)
  23393. iprot.readFieldEnd()
  23394. iprot.readStructEnd()
  23395. def write(self, oprot):
  23396. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  23397. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  23398. return
  23399. oprot.writeStructBegin('update_table_column_statistics_args')
  23400. if self.stats_obj is not None:
  23401. oprot.writeFieldBegin('stats_obj', TType.STRUCT, 1)
  23402. self.stats_obj.write(oprot)
  23403. oprot.writeFieldEnd()
  23404. oprot.writeFieldStop()
  23405. oprot.writeStructEnd()
  23406. def validate(self):
  23407. return
  23408. def __hash__(self):
  23409. value = 17
  23410. value = (value * 31) ^ hash(self.stats_obj)
  23411. return value
  23412. def __repr__(self):
  23413. L = ['%s=%r' % (key, value)
  23414. for key, value in self.__dict__.iteritems()]
  23415. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23416. def __eq__(self, other):
  23417. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23418. def __ne__(self, other):
  23419. return not (self == other)
  23420. class update_table_column_statistics_result(object):
  23421. """
  23422. Attributes:
  23423. - success
  23424. - o1
  23425. - o2
  23426. - o3
  23427. - o4
  23428. """
  23429. thrift_spec = (
  23430. (0, TType.BOOL, 'success', None, None, ), # 0
  23431. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  23432. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  23433. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  23434. (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4
  23435. )
  23436. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  23437. self.success = success
  23438. self.o1 = o1
  23439. self.o2 = o2
  23440. self.o3 = o3
  23441. self.o4 = o4
  23442. def read(self, iprot):
  23443. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  23444. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  23445. return
  23446. iprot.readStructBegin()
  23447. while True:
  23448. (fname, ftype, fid) = iprot.readFieldBegin()
  23449. if ftype == TType.STOP:
  23450. break
  23451. if fid == 0:
  23452. if ftype == TType.BOOL:
  23453. self.success = iprot.readBool()
  23454. else:
  23455. iprot.skip(ftype)
  23456. elif fid == 1:
  23457. if ftype == TType.STRUCT:
  23458. self.o1 = NoSuchObjectException()
  23459. self.o1.read(iprot)
  23460. else:
  23461. iprot.skip(ftype)
  23462. elif fid == 2:
  23463. if ftype == TType.STRUCT:
  23464. self.o2 = InvalidObjectException()
  23465. self.o2.read(iprot)
  23466. else:
  23467. iprot.skip(ftype)
  23468. elif fid == 3:
  23469. if ftype == TType.STRUCT:
  23470. self.o3 = MetaException()
  23471. self.o3.read(iprot)
  23472. else:
  23473. iprot.skip(ftype)
  23474. elif fid == 4:
  23475. if ftype == TType.STRUCT:
  23476. self.o4 = InvalidInputException()
  23477. self.o4.read(iprot)
  23478. else:
  23479. iprot.skip(ftype)
  23480. else:
  23481. iprot.skip(ftype)
  23482. iprot.readFieldEnd()
  23483. iprot.readStructEnd()
  23484. def write(self, oprot):
  23485. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  23486. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  23487. return
  23488. oprot.writeStructBegin('update_table_column_statistics_result')
  23489. if self.success is not None:
  23490. oprot.writeFieldBegin('success', TType.BOOL, 0)
  23491. oprot.writeBool(self.success)
  23492. oprot.writeFieldEnd()
  23493. if self.o1 is not None:
  23494. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  23495. self.o1.write(oprot)
  23496. oprot.writeFieldEnd()
  23497. if self.o2 is not None:
  23498. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  23499. self.o2.write(oprot)
  23500. oprot.writeFieldEnd()
  23501. if self.o3 is not None:
  23502. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  23503. self.o3.write(oprot)
  23504. oprot.writeFieldEnd()
  23505. if self.o4 is not None:
  23506. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  23507. self.o4.write(oprot)
  23508. oprot.writeFieldEnd()
  23509. oprot.writeFieldStop()
  23510. oprot.writeStructEnd()
  23511. def validate(self):
  23512. return
  23513. def __hash__(self):
  23514. value = 17
  23515. value = (value * 31) ^ hash(self.success)
  23516. value = (value * 31) ^ hash(self.o1)
  23517. value = (value * 31) ^ hash(self.o2)
  23518. value = (value * 31) ^ hash(self.o3)
  23519. value = (value * 31) ^ hash(self.o4)
  23520. return value
  23521. def __repr__(self):
  23522. L = ['%s=%r' % (key, value)
  23523. for key, value in self.__dict__.iteritems()]
  23524. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23525. def __eq__(self, other):
  23526. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23527. def __ne__(self, other):
  23528. return not (self == other)
  23529. class update_partition_column_statistics_args(object):
  23530. """
  23531. Attributes:
  23532. - stats_obj
  23533. """
  23534. thrift_spec = (
  23535. None, # 0
  23536. (1, TType.STRUCT, 'stats_obj', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 1
  23537. )
  23538. def __init__(self, stats_obj=None,):
  23539. self.stats_obj = stats_obj
  23540. def read(self, iprot):
  23541. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  23542. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  23543. return
  23544. iprot.readStructBegin()
  23545. while True:
  23546. (fname, ftype, fid) = iprot.readFieldBegin()
  23547. if ftype == TType.STOP:
  23548. break
  23549. if fid == 1:
  23550. if ftype == TType.STRUCT:
  23551. self.stats_obj = ColumnStatistics()
  23552. self.stats_obj.read(iprot)
  23553. else:
  23554. iprot.skip(ftype)
  23555. else:
  23556. iprot.skip(ftype)
  23557. iprot.readFieldEnd()
  23558. iprot.readStructEnd()
  23559. def write(self, oprot):
  23560. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  23561. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  23562. return
  23563. oprot.writeStructBegin('update_partition_column_statistics_args')
  23564. if self.stats_obj is not None:
  23565. oprot.writeFieldBegin('stats_obj', TType.STRUCT, 1)
  23566. self.stats_obj.write(oprot)
  23567. oprot.writeFieldEnd()
  23568. oprot.writeFieldStop()
  23569. oprot.writeStructEnd()
  23570. def validate(self):
  23571. return
  23572. def __hash__(self):
  23573. value = 17
  23574. value = (value * 31) ^ hash(self.stats_obj)
  23575. return value
  23576. def __repr__(self):
  23577. L = ['%s=%r' % (key, value)
  23578. for key, value in self.__dict__.iteritems()]
  23579. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23580. def __eq__(self, other):
  23581. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23582. def __ne__(self, other):
  23583. return not (self == other)
  23584. class update_partition_column_statistics_result(object):
  23585. """
  23586. Attributes:
  23587. - success
  23588. - o1
  23589. - o2
  23590. - o3
  23591. - o4
  23592. """
  23593. thrift_spec = (
  23594. (0, TType.BOOL, 'success', None, None, ), # 0
  23595. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  23596. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  23597. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  23598. (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4
  23599. )
  23600. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  23601. self.success = success
  23602. self.o1 = o1
  23603. self.o2 = o2
  23604. self.o3 = o3
  23605. self.o4 = o4
  23606. def read(self, iprot):
  23607. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  23608. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  23609. return
  23610. iprot.readStructBegin()
  23611. while True:
  23612. (fname, ftype, fid) = iprot.readFieldBegin()
  23613. if ftype == TType.STOP:
  23614. break
  23615. if fid == 0:
  23616. if ftype == TType.BOOL:
  23617. self.success = iprot.readBool()
  23618. else:
  23619. iprot.skip(ftype)
  23620. elif fid == 1:
  23621. if ftype == TType.STRUCT:
  23622. self.o1 = NoSuchObjectException()
  23623. self.o1.read(iprot)
  23624. else:
  23625. iprot.skip(ftype)
  23626. elif fid == 2:
  23627. if ftype == TType.STRUCT:
  23628. self.o2 = InvalidObjectException()
  23629. self.o2.read(iprot)
  23630. else:
  23631. iprot.skip(ftype)
  23632. elif fid == 3:
  23633. if ftype == TType.STRUCT:
  23634. self.o3 = MetaException()
  23635. self.o3.read(iprot)
  23636. else:
  23637. iprot.skip(ftype)
  23638. elif fid == 4:
  23639. if ftype == TType.STRUCT:
  23640. self.o4 = InvalidInputException()
  23641. self.o4.read(iprot)
  23642. else:
  23643. iprot.skip(ftype)
  23644. else:
  23645. iprot.skip(ftype)
  23646. iprot.readFieldEnd()
  23647. iprot.readStructEnd()
  23648. def write(self, oprot):
  23649. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  23650. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  23651. return
  23652. oprot.writeStructBegin('update_partition_column_statistics_result')
  23653. if self.success is not None:
  23654. oprot.writeFieldBegin('success', TType.BOOL, 0)
  23655. oprot.writeBool(self.success)
  23656. oprot.writeFieldEnd()
  23657. if self.o1 is not None:
  23658. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  23659. self.o1.write(oprot)
  23660. oprot.writeFieldEnd()
  23661. if self.o2 is not None:
  23662. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  23663. self.o2.write(oprot)
  23664. oprot.writeFieldEnd()
  23665. if self.o3 is not None:
  23666. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  23667. self.o3.write(oprot)
  23668. oprot.writeFieldEnd()
  23669. if self.o4 is not None:
  23670. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  23671. self.o4.write(oprot)
  23672. oprot.writeFieldEnd()
  23673. oprot.writeFieldStop()
  23674. oprot.writeStructEnd()
  23675. def validate(self):
  23676. return
  23677. def __hash__(self):
  23678. value = 17
  23679. value = (value * 31) ^ hash(self.success)
  23680. value = (value * 31) ^ hash(self.o1)
  23681. value = (value * 31) ^ hash(self.o2)
  23682. value = (value * 31) ^ hash(self.o3)
  23683. value = (value * 31) ^ hash(self.o4)
  23684. return value
  23685. def __repr__(self):
  23686. L = ['%s=%r' % (key, value)
  23687. for key, value in self.__dict__.iteritems()]
  23688. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23689. def __eq__(self, other):
  23690. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23691. def __ne__(self, other):
  23692. return not (self == other)
  23693. class get_table_column_statistics_args(object):
  23694. """
  23695. Attributes:
  23696. - db_name
  23697. - tbl_name
  23698. - col_name
  23699. """
  23700. thrift_spec = (
  23701. None, # 0
  23702. (1, TType.STRING, 'db_name', None, None, ), # 1
  23703. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  23704. (3, TType.STRING, 'col_name', None, None, ), # 3
  23705. )
  23706. def __init__(self, db_name=None, tbl_name=None, col_name=None,):
  23707. self.db_name = db_name
  23708. self.tbl_name = tbl_name
  23709. self.col_name = col_name
  23710. def read(self, iprot):
  23711. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  23712. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  23713. return
  23714. iprot.readStructBegin()
  23715. while True:
  23716. (fname, ftype, fid) = iprot.readFieldBegin()
  23717. if ftype == TType.STOP:
  23718. break
  23719. if fid == 1:
  23720. if ftype == TType.STRING:
  23721. self.db_name = iprot.readString()
  23722. else:
  23723. iprot.skip(ftype)
  23724. elif fid == 2:
  23725. if ftype == TType.STRING:
  23726. self.tbl_name = iprot.readString()
  23727. else:
  23728. iprot.skip(ftype)
  23729. elif fid == 3:
  23730. if ftype == TType.STRING:
  23731. self.col_name = iprot.readString()
  23732. else:
  23733. iprot.skip(ftype)
  23734. else:
  23735. iprot.skip(ftype)
  23736. iprot.readFieldEnd()
  23737. iprot.readStructEnd()
  23738. def write(self, oprot):
  23739. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  23740. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  23741. return
  23742. oprot.writeStructBegin('get_table_column_statistics_args')
  23743. if self.db_name is not None:
  23744. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  23745. oprot.writeString(self.db_name)
  23746. oprot.writeFieldEnd()
  23747. if self.tbl_name is not None:
  23748. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  23749. oprot.writeString(self.tbl_name)
  23750. oprot.writeFieldEnd()
  23751. if self.col_name is not None:
  23752. oprot.writeFieldBegin('col_name', TType.STRING, 3)
  23753. oprot.writeString(self.col_name)
  23754. oprot.writeFieldEnd()
  23755. oprot.writeFieldStop()
  23756. oprot.writeStructEnd()
  23757. def validate(self):
  23758. return
  23759. def __hash__(self):
  23760. value = 17
  23761. value = (value * 31) ^ hash(self.db_name)
  23762. value = (value * 31) ^ hash(self.tbl_name)
  23763. value = (value * 31) ^ hash(self.col_name)
  23764. return value
  23765. def __repr__(self):
  23766. L = ['%s=%r' % (key, value)
  23767. for key, value in self.__dict__.iteritems()]
  23768. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23769. def __eq__(self, other):
  23770. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23771. def __ne__(self, other):
  23772. return not (self == other)
  23773. class get_table_column_statistics_result(object):
  23774. """
  23775. Attributes:
  23776. - success
  23777. - o1
  23778. - o2
  23779. - o3
  23780. - o4
  23781. """
  23782. thrift_spec = (
  23783. (0, TType.STRUCT, 'success', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 0
  23784. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  23785. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  23786. (3, TType.STRUCT, 'o3', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 3
  23787. (4, TType.STRUCT, 'o4', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 4
  23788. )
  23789. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  23790. self.success = success
  23791. self.o1 = o1
  23792. self.o2 = o2
  23793. self.o3 = o3
  23794. self.o4 = o4
  23795. def read(self, iprot):
  23796. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  23797. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  23798. return
  23799. iprot.readStructBegin()
  23800. while True:
  23801. (fname, ftype, fid) = iprot.readFieldBegin()
  23802. if ftype == TType.STOP:
  23803. break
  23804. if fid == 0:
  23805. if ftype == TType.STRUCT:
  23806. self.success = ColumnStatistics()
  23807. self.success.read(iprot)
  23808. else:
  23809. iprot.skip(ftype)
  23810. elif fid == 1:
  23811. if ftype == TType.STRUCT:
  23812. self.o1 = NoSuchObjectException()
  23813. self.o1.read(iprot)
  23814. else:
  23815. iprot.skip(ftype)
  23816. elif fid == 2:
  23817. if ftype == TType.STRUCT:
  23818. self.o2 = MetaException()
  23819. self.o2.read(iprot)
  23820. else:
  23821. iprot.skip(ftype)
  23822. elif fid == 3:
  23823. if ftype == TType.STRUCT:
  23824. self.o3 = InvalidInputException()
  23825. self.o3.read(iprot)
  23826. else:
  23827. iprot.skip(ftype)
  23828. elif fid == 4:
  23829. if ftype == TType.STRUCT:
  23830. self.o4 = InvalidObjectException()
  23831. self.o4.read(iprot)
  23832. else:
  23833. iprot.skip(ftype)
  23834. else:
  23835. iprot.skip(ftype)
  23836. iprot.readFieldEnd()
  23837. iprot.readStructEnd()
  23838. def write(self, oprot):
  23839. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  23840. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  23841. return
  23842. oprot.writeStructBegin('get_table_column_statistics_result')
  23843. if self.success is not None:
  23844. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  23845. self.success.write(oprot)
  23846. oprot.writeFieldEnd()
  23847. if self.o1 is not None:
  23848. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  23849. self.o1.write(oprot)
  23850. oprot.writeFieldEnd()
  23851. if self.o2 is not None:
  23852. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  23853. self.o2.write(oprot)
  23854. oprot.writeFieldEnd()
  23855. if self.o3 is not None:
  23856. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  23857. self.o3.write(oprot)
  23858. oprot.writeFieldEnd()
  23859. if self.o4 is not None:
  23860. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  23861. self.o4.write(oprot)
  23862. oprot.writeFieldEnd()
  23863. oprot.writeFieldStop()
  23864. oprot.writeStructEnd()
  23865. def validate(self):
  23866. return
  23867. def __hash__(self):
  23868. value = 17
  23869. value = (value * 31) ^ hash(self.success)
  23870. value = (value * 31) ^ hash(self.o1)
  23871. value = (value * 31) ^ hash(self.o2)
  23872. value = (value * 31) ^ hash(self.o3)
  23873. value = (value * 31) ^ hash(self.o4)
  23874. return value
  23875. def __repr__(self):
  23876. L = ['%s=%r' % (key, value)
  23877. for key, value in self.__dict__.iteritems()]
  23878. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23879. def __eq__(self, other):
  23880. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23881. def __ne__(self, other):
  23882. return not (self == other)
  23883. class get_partition_column_statistics_args(object):
  23884. """
  23885. Attributes:
  23886. - db_name
  23887. - tbl_name
  23888. - part_name
  23889. - col_name
  23890. """
  23891. thrift_spec = (
  23892. None, # 0
  23893. (1, TType.STRING, 'db_name', None, None, ), # 1
  23894. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  23895. (3, TType.STRING, 'part_name', None, None, ), # 3
  23896. (4, TType.STRING, 'col_name', None, None, ), # 4
  23897. )
  23898. def __init__(self, db_name=None, tbl_name=None, part_name=None, col_name=None,):
  23899. self.db_name = db_name
  23900. self.tbl_name = tbl_name
  23901. self.part_name = part_name
  23902. self.col_name = col_name
  23903. def read(self, iprot):
  23904. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  23905. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  23906. return
  23907. iprot.readStructBegin()
  23908. while True:
  23909. (fname, ftype, fid) = iprot.readFieldBegin()
  23910. if ftype == TType.STOP:
  23911. break
  23912. if fid == 1:
  23913. if ftype == TType.STRING:
  23914. self.db_name = iprot.readString()
  23915. else:
  23916. iprot.skip(ftype)
  23917. elif fid == 2:
  23918. if ftype == TType.STRING:
  23919. self.tbl_name = iprot.readString()
  23920. else:
  23921. iprot.skip(ftype)
  23922. elif fid == 3:
  23923. if ftype == TType.STRING:
  23924. self.part_name = iprot.readString()
  23925. else:
  23926. iprot.skip(ftype)
  23927. elif fid == 4:
  23928. if ftype == TType.STRING:
  23929. self.col_name = iprot.readString()
  23930. else:
  23931. iprot.skip(ftype)
  23932. else:
  23933. iprot.skip(ftype)
  23934. iprot.readFieldEnd()
  23935. iprot.readStructEnd()
  23936. def write(self, oprot):
  23937. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  23938. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  23939. return
  23940. oprot.writeStructBegin('get_partition_column_statistics_args')
  23941. if self.db_name is not None:
  23942. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  23943. oprot.writeString(self.db_name)
  23944. oprot.writeFieldEnd()
  23945. if self.tbl_name is not None:
  23946. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  23947. oprot.writeString(self.tbl_name)
  23948. oprot.writeFieldEnd()
  23949. if self.part_name is not None:
  23950. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  23951. oprot.writeString(self.part_name)
  23952. oprot.writeFieldEnd()
  23953. if self.col_name is not None:
  23954. oprot.writeFieldBegin('col_name', TType.STRING, 4)
  23955. oprot.writeString(self.col_name)
  23956. oprot.writeFieldEnd()
  23957. oprot.writeFieldStop()
  23958. oprot.writeStructEnd()
  23959. def validate(self):
  23960. return
  23961. def __hash__(self):
  23962. value = 17
  23963. value = (value * 31) ^ hash(self.db_name)
  23964. value = (value * 31) ^ hash(self.tbl_name)
  23965. value = (value * 31) ^ hash(self.part_name)
  23966. value = (value * 31) ^ hash(self.col_name)
  23967. return value
  23968. def __repr__(self):
  23969. L = ['%s=%r' % (key, value)
  23970. for key, value in self.__dict__.iteritems()]
  23971. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23972. def __eq__(self, other):
  23973. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23974. def __ne__(self, other):
  23975. return not (self == other)
  23976. class get_partition_column_statistics_result(object):
  23977. """
  23978. Attributes:
  23979. - success
  23980. - o1
  23981. - o2
  23982. - o3
  23983. - o4
  23984. """
  23985. thrift_spec = (
  23986. (0, TType.STRUCT, 'success', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 0
  23987. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  23988. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  23989. (3, TType.STRUCT, 'o3', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 3
  23990. (4, TType.STRUCT, 'o4', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 4
  23991. )
  23992. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  23993. self.success = success
  23994. self.o1 = o1
  23995. self.o2 = o2
  23996. self.o3 = o3
  23997. self.o4 = o4
  23998. def read(self, iprot):
  23999. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24000. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24001. return
  24002. iprot.readStructBegin()
  24003. while True:
  24004. (fname, ftype, fid) = iprot.readFieldBegin()
  24005. if ftype == TType.STOP:
  24006. break
  24007. if fid == 0:
  24008. if ftype == TType.STRUCT:
  24009. self.success = ColumnStatistics()
  24010. self.success.read(iprot)
  24011. else:
  24012. iprot.skip(ftype)
  24013. elif fid == 1:
  24014. if ftype == TType.STRUCT:
  24015. self.o1 = NoSuchObjectException()
  24016. self.o1.read(iprot)
  24017. else:
  24018. iprot.skip(ftype)
  24019. elif fid == 2:
  24020. if ftype == TType.STRUCT:
  24021. self.o2 = MetaException()
  24022. self.o2.read(iprot)
  24023. else:
  24024. iprot.skip(ftype)
  24025. elif fid == 3:
  24026. if ftype == TType.STRUCT:
  24027. self.o3 = InvalidInputException()
  24028. self.o3.read(iprot)
  24029. else:
  24030. iprot.skip(ftype)
  24031. elif fid == 4:
  24032. if ftype == TType.STRUCT:
  24033. self.o4 = InvalidObjectException()
  24034. self.o4.read(iprot)
  24035. else:
  24036. iprot.skip(ftype)
  24037. else:
  24038. iprot.skip(ftype)
  24039. iprot.readFieldEnd()
  24040. iprot.readStructEnd()
  24041. def write(self, oprot):
  24042. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  24043. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  24044. return
  24045. oprot.writeStructBegin('get_partition_column_statistics_result')
  24046. if self.success is not None:
  24047. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  24048. self.success.write(oprot)
  24049. oprot.writeFieldEnd()
  24050. if self.o1 is not None:
  24051. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24052. self.o1.write(oprot)
  24053. oprot.writeFieldEnd()
  24054. if self.o2 is not None:
  24055. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  24056. self.o2.write(oprot)
  24057. oprot.writeFieldEnd()
  24058. if self.o3 is not None:
  24059. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  24060. self.o3.write(oprot)
  24061. oprot.writeFieldEnd()
  24062. if self.o4 is not None:
  24063. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  24064. self.o4.write(oprot)
  24065. oprot.writeFieldEnd()
  24066. oprot.writeFieldStop()
  24067. oprot.writeStructEnd()
  24068. def validate(self):
  24069. return
  24070. def __hash__(self):
  24071. value = 17
  24072. value = (value * 31) ^ hash(self.success)
  24073. value = (value * 31) ^ hash(self.o1)
  24074. value = (value * 31) ^ hash(self.o2)
  24075. value = (value * 31) ^ hash(self.o3)
  24076. value = (value * 31) ^ hash(self.o4)
  24077. return value
  24078. def __repr__(self):
  24079. L = ['%s=%r' % (key, value)
  24080. for key, value in self.__dict__.iteritems()]
  24081. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24082. def __eq__(self, other):
  24083. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24084. def __ne__(self, other):
  24085. return not (self == other)
  24086. class get_table_statistics_req_args(object):
  24087. """
  24088. Attributes:
  24089. - request
  24090. """
  24091. thrift_spec = (
  24092. None, # 0
  24093. (1, TType.STRUCT, 'request', (TableStatsRequest, TableStatsRequest.thrift_spec), None, ), # 1
  24094. )
  24095. def __init__(self, request=None,):
  24096. self.request = request
  24097. def read(self, iprot):
  24098. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24099. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24100. return
  24101. iprot.readStructBegin()
  24102. while True:
  24103. (fname, ftype, fid) = iprot.readFieldBegin()
  24104. if ftype == TType.STOP:
  24105. break
  24106. if fid == 1:
  24107. if ftype == TType.STRUCT:
  24108. self.request = TableStatsRequest()
  24109. self.request.read(iprot)
  24110. else:
  24111. iprot.skip(ftype)
  24112. else:
  24113. iprot.skip(ftype)
  24114. iprot.readFieldEnd()
  24115. iprot.readStructEnd()
  24116. def write(self, oprot):
  24117. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  24118. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  24119. return
  24120. oprot.writeStructBegin('get_table_statistics_req_args')
  24121. if self.request is not None:
  24122. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  24123. self.request.write(oprot)
  24124. oprot.writeFieldEnd()
  24125. oprot.writeFieldStop()
  24126. oprot.writeStructEnd()
  24127. def validate(self):
  24128. return
  24129. def __hash__(self):
  24130. value = 17
  24131. value = (value * 31) ^ hash(self.request)
  24132. return value
  24133. def __repr__(self):
  24134. L = ['%s=%r' % (key, value)
  24135. for key, value in self.__dict__.iteritems()]
  24136. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24137. def __eq__(self, other):
  24138. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24139. def __ne__(self, other):
  24140. return not (self == other)
  24141. class get_table_statistics_req_result(object):
  24142. """
  24143. Attributes:
  24144. - success
  24145. - o1
  24146. - o2
  24147. """
  24148. thrift_spec = (
  24149. (0, TType.STRUCT, 'success', (TableStatsResult, TableStatsResult.thrift_spec), None, ), # 0
  24150. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  24151. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  24152. )
  24153. def __init__(self, success=None, o1=None, o2=None,):
  24154. self.success = success
  24155. self.o1 = o1
  24156. self.o2 = o2
  24157. def read(self, iprot):
  24158. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24159. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24160. return
  24161. iprot.readStructBegin()
  24162. while True:
  24163. (fname, ftype, fid) = iprot.readFieldBegin()
  24164. if ftype == TType.STOP:
  24165. break
  24166. if fid == 0:
  24167. if ftype == TType.STRUCT:
  24168. self.success = TableStatsResult()
  24169. self.success.read(iprot)
  24170. else:
  24171. iprot.skip(ftype)
  24172. elif fid == 1:
  24173. if ftype == TType.STRUCT:
  24174. self.o1 = NoSuchObjectException()
  24175. self.o1.read(iprot)
  24176. else:
  24177. iprot.skip(ftype)
  24178. elif fid == 2:
  24179. if ftype == TType.STRUCT:
  24180. self.o2 = MetaException()
  24181. self.o2.read(iprot)
  24182. else:
  24183. iprot.skip(ftype)
  24184. else:
  24185. iprot.skip(ftype)
  24186. iprot.readFieldEnd()
  24187. iprot.readStructEnd()
  24188. def write(self, oprot):
  24189. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  24190. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  24191. return
  24192. oprot.writeStructBegin('get_table_statistics_req_result')
  24193. if self.success is not None:
  24194. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  24195. self.success.write(oprot)
  24196. oprot.writeFieldEnd()
  24197. if self.o1 is not None:
  24198. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24199. self.o1.write(oprot)
  24200. oprot.writeFieldEnd()
  24201. if self.o2 is not None:
  24202. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  24203. self.o2.write(oprot)
  24204. oprot.writeFieldEnd()
  24205. oprot.writeFieldStop()
  24206. oprot.writeStructEnd()
  24207. def validate(self):
  24208. return
  24209. def __hash__(self):
  24210. value = 17
  24211. value = (value * 31) ^ hash(self.success)
  24212. value = (value * 31) ^ hash(self.o1)
  24213. value = (value * 31) ^ hash(self.o2)
  24214. return value
  24215. def __repr__(self):
  24216. L = ['%s=%r' % (key, value)
  24217. for key, value in self.__dict__.iteritems()]
  24218. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24219. def __eq__(self, other):
  24220. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24221. def __ne__(self, other):
  24222. return not (self == other)
  24223. class get_partitions_statistics_req_args(object):
  24224. """
  24225. Attributes:
  24226. - request
  24227. """
  24228. thrift_spec = (
  24229. None, # 0
  24230. (1, TType.STRUCT, 'request', (PartitionsStatsRequest, PartitionsStatsRequest.thrift_spec), None, ), # 1
  24231. )
  24232. def __init__(self, request=None,):
  24233. self.request = request
  24234. def read(self, iprot):
  24235. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24236. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24237. return
  24238. iprot.readStructBegin()
  24239. while True:
  24240. (fname, ftype, fid) = iprot.readFieldBegin()
  24241. if ftype == TType.STOP:
  24242. break
  24243. if fid == 1:
  24244. if ftype == TType.STRUCT:
  24245. self.request = PartitionsStatsRequest()
  24246. self.request.read(iprot)
  24247. else:
  24248. iprot.skip(ftype)
  24249. else:
  24250. iprot.skip(ftype)
  24251. iprot.readFieldEnd()
  24252. iprot.readStructEnd()
  24253. def write(self, oprot):
  24254. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  24255. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  24256. return
  24257. oprot.writeStructBegin('get_partitions_statistics_req_args')
  24258. if self.request is not None:
  24259. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  24260. self.request.write(oprot)
  24261. oprot.writeFieldEnd()
  24262. oprot.writeFieldStop()
  24263. oprot.writeStructEnd()
  24264. def validate(self):
  24265. return
  24266. def __hash__(self):
  24267. value = 17
  24268. value = (value * 31) ^ hash(self.request)
  24269. return value
  24270. def __repr__(self):
  24271. L = ['%s=%r' % (key, value)
  24272. for key, value in self.__dict__.iteritems()]
  24273. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24274. def __eq__(self, other):
  24275. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24276. def __ne__(self, other):
  24277. return not (self == other)
  24278. class get_partitions_statistics_req_result(object):
  24279. """
  24280. Attributes:
  24281. - success
  24282. - o1
  24283. - o2
  24284. """
  24285. thrift_spec = (
  24286. (0, TType.STRUCT, 'success', (PartitionsStatsResult, PartitionsStatsResult.thrift_spec), None, ), # 0
  24287. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  24288. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  24289. )
  24290. def __init__(self, success=None, o1=None, o2=None,):
  24291. self.success = success
  24292. self.o1 = o1
  24293. self.o2 = o2
  24294. def read(self, iprot):
  24295. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24296. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24297. return
  24298. iprot.readStructBegin()
  24299. while True:
  24300. (fname, ftype, fid) = iprot.readFieldBegin()
  24301. if ftype == TType.STOP:
  24302. break
  24303. if fid == 0:
  24304. if ftype == TType.STRUCT:
  24305. self.success = PartitionsStatsResult()
  24306. self.success.read(iprot)
  24307. else:
  24308. iprot.skip(ftype)
  24309. elif fid == 1:
  24310. if ftype == TType.STRUCT:
  24311. self.o1 = NoSuchObjectException()
  24312. self.o1.read(iprot)
  24313. else:
  24314. iprot.skip(ftype)
  24315. elif fid == 2:
  24316. if ftype == TType.STRUCT:
  24317. self.o2 = MetaException()
  24318. self.o2.read(iprot)
  24319. else:
  24320. iprot.skip(ftype)
  24321. else:
  24322. iprot.skip(ftype)
  24323. iprot.readFieldEnd()
  24324. iprot.readStructEnd()
  24325. def write(self, oprot):
  24326. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  24327. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  24328. return
  24329. oprot.writeStructBegin('get_partitions_statistics_req_result')
  24330. if self.success is not None:
  24331. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  24332. self.success.write(oprot)
  24333. oprot.writeFieldEnd()
  24334. if self.o1 is not None:
  24335. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24336. self.o1.write(oprot)
  24337. oprot.writeFieldEnd()
  24338. if self.o2 is not None:
  24339. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  24340. self.o2.write(oprot)
  24341. oprot.writeFieldEnd()
  24342. oprot.writeFieldStop()
  24343. oprot.writeStructEnd()
  24344. def validate(self):
  24345. return
  24346. def __hash__(self):
  24347. value = 17
  24348. value = (value * 31) ^ hash(self.success)
  24349. value = (value * 31) ^ hash(self.o1)
  24350. value = (value * 31) ^ hash(self.o2)
  24351. return value
  24352. def __repr__(self):
  24353. L = ['%s=%r' % (key, value)
  24354. for key, value in self.__dict__.iteritems()]
  24355. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24356. def __eq__(self, other):
  24357. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24358. def __ne__(self, other):
  24359. return not (self == other)
  24360. class get_aggr_stats_for_args(object):
  24361. """
  24362. Attributes:
  24363. - request
  24364. """
  24365. thrift_spec = (
  24366. None, # 0
  24367. (1, TType.STRUCT, 'request', (PartitionsStatsRequest, PartitionsStatsRequest.thrift_spec), None, ), # 1
  24368. )
  24369. def __init__(self, request=None,):
  24370. self.request = request
  24371. def read(self, iprot):
  24372. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24373. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24374. return
  24375. iprot.readStructBegin()
  24376. while True:
  24377. (fname, ftype, fid) = iprot.readFieldBegin()
  24378. if ftype == TType.STOP:
  24379. break
  24380. if fid == 1:
  24381. if ftype == TType.STRUCT:
  24382. self.request = PartitionsStatsRequest()
  24383. self.request.read(iprot)
  24384. else:
  24385. iprot.skip(ftype)
  24386. else:
  24387. iprot.skip(ftype)
  24388. iprot.readFieldEnd()
  24389. iprot.readStructEnd()
  24390. def write(self, oprot):
  24391. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  24392. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  24393. return
  24394. oprot.writeStructBegin('get_aggr_stats_for_args')
  24395. if self.request is not None:
  24396. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  24397. self.request.write(oprot)
  24398. oprot.writeFieldEnd()
  24399. oprot.writeFieldStop()
  24400. oprot.writeStructEnd()
  24401. def validate(self):
  24402. return
  24403. def __hash__(self):
  24404. value = 17
  24405. value = (value * 31) ^ hash(self.request)
  24406. return value
  24407. def __repr__(self):
  24408. L = ['%s=%r' % (key, value)
  24409. for key, value in self.__dict__.iteritems()]
  24410. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24411. def __eq__(self, other):
  24412. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24413. def __ne__(self, other):
  24414. return not (self == other)
  24415. class get_aggr_stats_for_result(object):
  24416. """
  24417. Attributes:
  24418. - success
  24419. - o1
  24420. - o2
  24421. """
  24422. thrift_spec = (
  24423. (0, TType.STRUCT, 'success', (AggrStats, AggrStats.thrift_spec), None, ), # 0
  24424. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  24425. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  24426. )
  24427. def __init__(self, success=None, o1=None, o2=None,):
  24428. self.success = success
  24429. self.o1 = o1
  24430. self.o2 = o2
  24431. def read(self, iprot):
  24432. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24433. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24434. return
  24435. iprot.readStructBegin()
  24436. while True:
  24437. (fname, ftype, fid) = iprot.readFieldBegin()
  24438. if ftype == TType.STOP:
  24439. break
  24440. if fid == 0:
  24441. if ftype == TType.STRUCT:
  24442. self.success = AggrStats()
  24443. self.success.read(iprot)
  24444. else:
  24445. iprot.skip(ftype)
  24446. elif fid == 1:
  24447. if ftype == TType.STRUCT:
  24448. self.o1 = NoSuchObjectException()
  24449. self.o1.read(iprot)
  24450. else:
  24451. iprot.skip(ftype)
  24452. elif fid == 2:
  24453. if ftype == TType.STRUCT:
  24454. self.o2 = MetaException()
  24455. self.o2.read(iprot)
  24456. else:
  24457. iprot.skip(ftype)
  24458. else:
  24459. iprot.skip(ftype)
  24460. iprot.readFieldEnd()
  24461. iprot.readStructEnd()
  24462. def write(self, oprot):
  24463. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  24464. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  24465. return
  24466. oprot.writeStructBegin('get_aggr_stats_for_result')
  24467. if self.success is not None:
  24468. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  24469. self.success.write(oprot)
  24470. oprot.writeFieldEnd()
  24471. if self.o1 is not None:
  24472. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24473. self.o1.write(oprot)
  24474. oprot.writeFieldEnd()
  24475. if self.o2 is not None:
  24476. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  24477. self.o2.write(oprot)
  24478. oprot.writeFieldEnd()
  24479. oprot.writeFieldStop()
  24480. oprot.writeStructEnd()
  24481. def validate(self):
  24482. return
  24483. def __hash__(self):
  24484. value = 17
  24485. value = (value * 31) ^ hash(self.success)
  24486. value = (value * 31) ^ hash(self.o1)
  24487. value = (value * 31) ^ hash(self.o2)
  24488. return value
  24489. def __repr__(self):
  24490. L = ['%s=%r' % (key, value)
  24491. for key, value in self.__dict__.iteritems()]
  24492. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24493. def __eq__(self, other):
  24494. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24495. def __ne__(self, other):
  24496. return not (self == other)
  24497. class set_aggr_stats_for_args(object):
  24498. """
  24499. Attributes:
  24500. - request
  24501. """
  24502. thrift_spec = (
  24503. None, # 0
  24504. (1, TType.STRUCT, 'request', (SetPartitionsStatsRequest, SetPartitionsStatsRequest.thrift_spec), None, ), # 1
  24505. )
  24506. def __init__(self, request=None,):
  24507. self.request = request
  24508. def read(self, iprot):
  24509. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24510. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24511. return
  24512. iprot.readStructBegin()
  24513. while True:
  24514. (fname, ftype, fid) = iprot.readFieldBegin()
  24515. if ftype == TType.STOP:
  24516. break
  24517. if fid == 1:
  24518. if ftype == TType.STRUCT:
  24519. self.request = SetPartitionsStatsRequest()
  24520. self.request.read(iprot)
  24521. else:
  24522. iprot.skip(ftype)
  24523. else:
  24524. iprot.skip(ftype)
  24525. iprot.readFieldEnd()
  24526. iprot.readStructEnd()
  24527. def write(self, oprot):
  24528. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  24529. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  24530. return
  24531. oprot.writeStructBegin('set_aggr_stats_for_args')
  24532. if self.request is not None:
  24533. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  24534. self.request.write(oprot)
  24535. oprot.writeFieldEnd()
  24536. oprot.writeFieldStop()
  24537. oprot.writeStructEnd()
  24538. def validate(self):
  24539. return
  24540. def __hash__(self):
  24541. value = 17
  24542. value = (value * 31) ^ hash(self.request)
  24543. return value
  24544. def __repr__(self):
  24545. L = ['%s=%r' % (key, value)
  24546. for key, value in self.__dict__.iteritems()]
  24547. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24548. def __eq__(self, other):
  24549. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24550. def __ne__(self, other):
  24551. return not (self == other)
  24552. class set_aggr_stats_for_result(object):
  24553. """
  24554. Attributes:
  24555. - success
  24556. - o1
  24557. - o2
  24558. - o3
  24559. - o4
  24560. """
  24561. thrift_spec = (
  24562. (0, TType.BOOL, 'success', None, None, ), # 0
  24563. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  24564. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  24565. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  24566. (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4
  24567. )
  24568. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  24569. self.success = success
  24570. self.o1 = o1
  24571. self.o2 = o2
  24572. self.o3 = o3
  24573. self.o4 = o4
  24574. def read(self, iprot):
  24575. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24576. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24577. return
  24578. iprot.readStructBegin()
  24579. while True:
  24580. (fname, ftype, fid) = iprot.readFieldBegin()
  24581. if ftype == TType.STOP:
  24582. break
  24583. if fid == 0:
  24584. if ftype == TType.BOOL:
  24585. self.success = iprot.readBool()
  24586. else:
  24587. iprot.skip(ftype)
  24588. elif fid == 1:
  24589. if ftype == TType.STRUCT:
  24590. self.o1 = NoSuchObjectException()
  24591. self.o1.read(iprot)
  24592. else:
  24593. iprot.skip(ftype)
  24594. elif fid == 2:
  24595. if ftype == TType.STRUCT:
  24596. self.o2 = InvalidObjectException()
  24597. self.o2.read(iprot)
  24598. else:
  24599. iprot.skip(ftype)
  24600. elif fid == 3:
  24601. if ftype == TType.STRUCT:
  24602. self.o3 = MetaException()
  24603. self.o3.read(iprot)
  24604. else:
  24605. iprot.skip(ftype)
  24606. elif fid == 4:
  24607. if ftype == TType.STRUCT:
  24608. self.o4 = InvalidInputException()
  24609. self.o4.read(iprot)
  24610. else:
  24611. iprot.skip(ftype)
  24612. else:
  24613. iprot.skip(ftype)
  24614. iprot.readFieldEnd()
  24615. iprot.readStructEnd()
  24616. def write(self, oprot):
  24617. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  24618. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  24619. return
  24620. oprot.writeStructBegin('set_aggr_stats_for_result')
  24621. if self.success is not None:
  24622. oprot.writeFieldBegin('success', TType.BOOL, 0)
  24623. oprot.writeBool(self.success)
  24624. oprot.writeFieldEnd()
  24625. if self.o1 is not None:
  24626. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24627. self.o1.write(oprot)
  24628. oprot.writeFieldEnd()
  24629. if self.o2 is not None:
  24630. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  24631. self.o2.write(oprot)
  24632. oprot.writeFieldEnd()
  24633. if self.o3 is not None:
  24634. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  24635. self.o3.write(oprot)
  24636. oprot.writeFieldEnd()
  24637. if self.o4 is not None:
  24638. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  24639. self.o4.write(oprot)
  24640. oprot.writeFieldEnd()
  24641. oprot.writeFieldStop()
  24642. oprot.writeStructEnd()
  24643. def validate(self):
  24644. return
  24645. def __hash__(self):
  24646. value = 17
  24647. value = (value * 31) ^ hash(self.success)
  24648. value = (value * 31) ^ hash(self.o1)
  24649. value = (value * 31) ^ hash(self.o2)
  24650. value = (value * 31) ^ hash(self.o3)
  24651. value = (value * 31) ^ hash(self.o4)
  24652. return value
  24653. def __repr__(self):
  24654. L = ['%s=%r' % (key, value)
  24655. for key, value in self.__dict__.iteritems()]
  24656. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24657. def __eq__(self, other):
  24658. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24659. def __ne__(self, other):
  24660. return not (self == other)
  24661. class delete_partition_column_statistics_args(object):
  24662. """
  24663. Attributes:
  24664. - db_name
  24665. - tbl_name
  24666. - part_name
  24667. - col_name
  24668. """
  24669. thrift_spec = (
  24670. None, # 0
  24671. (1, TType.STRING, 'db_name', None, None, ), # 1
  24672. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  24673. (3, TType.STRING, 'part_name', None, None, ), # 3
  24674. (4, TType.STRING, 'col_name', None, None, ), # 4
  24675. )
  24676. def __init__(self, db_name=None, tbl_name=None, part_name=None, col_name=None,):
  24677. self.db_name = db_name
  24678. self.tbl_name = tbl_name
  24679. self.part_name = part_name
  24680. self.col_name = col_name
  24681. def read(self, iprot):
  24682. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24683. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24684. return
  24685. iprot.readStructBegin()
  24686. while True:
  24687. (fname, ftype, fid) = iprot.readFieldBegin()
  24688. if ftype == TType.STOP:
  24689. break
  24690. if fid == 1:
  24691. if ftype == TType.STRING:
  24692. self.db_name = iprot.readString()
  24693. else:
  24694. iprot.skip(ftype)
  24695. elif fid == 2:
  24696. if ftype == TType.STRING:
  24697. self.tbl_name = iprot.readString()
  24698. else:
  24699. iprot.skip(ftype)
  24700. elif fid == 3:
  24701. if ftype == TType.STRING:
  24702. self.part_name = iprot.readString()
  24703. else:
  24704. iprot.skip(ftype)
  24705. elif fid == 4:
  24706. if ftype == TType.STRING:
  24707. self.col_name = iprot.readString()
  24708. else:
  24709. iprot.skip(ftype)
  24710. else:
  24711. iprot.skip(ftype)
  24712. iprot.readFieldEnd()
  24713. iprot.readStructEnd()
  24714. def write(self, oprot):
  24715. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  24716. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  24717. return
  24718. oprot.writeStructBegin('delete_partition_column_statistics_args')
  24719. if self.db_name is not None:
  24720. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  24721. oprot.writeString(self.db_name)
  24722. oprot.writeFieldEnd()
  24723. if self.tbl_name is not None:
  24724. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  24725. oprot.writeString(self.tbl_name)
  24726. oprot.writeFieldEnd()
  24727. if self.part_name is not None:
  24728. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  24729. oprot.writeString(self.part_name)
  24730. oprot.writeFieldEnd()
  24731. if self.col_name is not None:
  24732. oprot.writeFieldBegin('col_name', TType.STRING, 4)
  24733. oprot.writeString(self.col_name)
  24734. oprot.writeFieldEnd()
  24735. oprot.writeFieldStop()
  24736. oprot.writeStructEnd()
  24737. def validate(self):
  24738. return
  24739. def __hash__(self):
  24740. value = 17
  24741. value = (value * 31) ^ hash(self.db_name)
  24742. value = (value * 31) ^ hash(self.tbl_name)
  24743. value = (value * 31) ^ hash(self.part_name)
  24744. value = (value * 31) ^ hash(self.col_name)
  24745. return value
  24746. def __repr__(self):
  24747. L = ['%s=%r' % (key, value)
  24748. for key, value in self.__dict__.iteritems()]
  24749. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24750. def __eq__(self, other):
  24751. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24752. def __ne__(self, other):
  24753. return not (self == other)
  24754. class delete_partition_column_statistics_result(object):
  24755. """
  24756. Attributes:
  24757. - success
  24758. - o1
  24759. - o2
  24760. - o3
  24761. - o4
  24762. """
  24763. thrift_spec = (
  24764. (0, TType.BOOL, 'success', None, None, ), # 0
  24765. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  24766. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  24767. (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3
  24768. (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4
  24769. )
  24770. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  24771. self.success = success
  24772. self.o1 = o1
  24773. self.o2 = o2
  24774. self.o3 = o3
  24775. self.o4 = o4
  24776. def read(self, iprot):
  24777. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24778. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24779. return
  24780. iprot.readStructBegin()
  24781. while True:
  24782. (fname, ftype, fid) = iprot.readFieldBegin()
  24783. if ftype == TType.STOP:
  24784. break
  24785. if fid == 0:
  24786. if ftype == TType.BOOL:
  24787. self.success = iprot.readBool()
  24788. else:
  24789. iprot.skip(ftype)
  24790. elif fid == 1:
  24791. if ftype == TType.STRUCT:
  24792. self.o1 = NoSuchObjectException()
  24793. self.o1.read(iprot)
  24794. else:
  24795. iprot.skip(ftype)
  24796. elif fid == 2:
  24797. if ftype == TType.STRUCT:
  24798. self.o2 = MetaException()
  24799. self.o2.read(iprot)
  24800. else:
  24801. iprot.skip(ftype)
  24802. elif fid == 3:
  24803. if ftype == TType.STRUCT:
  24804. self.o3 = InvalidObjectException()
  24805. self.o3.read(iprot)
  24806. else:
  24807. iprot.skip(ftype)
  24808. elif fid == 4:
  24809. if ftype == TType.STRUCT:
  24810. self.o4 = InvalidInputException()
  24811. self.o4.read(iprot)
  24812. else:
  24813. iprot.skip(ftype)
  24814. else:
  24815. iprot.skip(ftype)
  24816. iprot.readFieldEnd()
  24817. iprot.readStructEnd()
  24818. def write(self, oprot):
  24819. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  24820. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  24821. return
  24822. oprot.writeStructBegin('delete_partition_column_statistics_result')
  24823. if self.success is not None:
  24824. oprot.writeFieldBegin('success', TType.BOOL, 0)
  24825. oprot.writeBool(self.success)
  24826. oprot.writeFieldEnd()
  24827. if self.o1 is not None:
  24828. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24829. self.o1.write(oprot)
  24830. oprot.writeFieldEnd()
  24831. if self.o2 is not None:
  24832. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  24833. self.o2.write(oprot)
  24834. oprot.writeFieldEnd()
  24835. if self.o3 is not None:
  24836. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  24837. self.o3.write(oprot)
  24838. oprot.writeFieldEnd()
  24839. if self.o4 is not None:
  24840. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  24841. self.o4.write(oprot)
  24842. oprot.writeFieldEnd()
  24843. oprot.writeFieldStop()
  24844. oprot.writeStructEnd()
  24845. def validate(self):
  24846. return
  24847. def __hash__(self):
  24848. value = 17
  24849. value = (value * 31) ^ hash(self.success)
  24850. value = (value * 31) ^ hash(self.o1)
  24851. value = (value * 31) ^ hash(self.o2)
  24852. value = (value * 31) ^ hash(self.o3)
  24853. value = (value * 31) ^ hash(self.o4)
  24854. return value
  24855. def __repr__(self):
  24856. L = ['%s=%r' % (key, value)
  24857. for key, value in self.__dict__.iteritems()]
  24858. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24859. def __eq__(self, other):
  24860. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24861. def __ne__(self, other):
  24862. return not (self == other)
  24863. class delete_table_column_statistics_args(object):
  24864. """
  24865. Attributes:
  24866. - db_name
  24867. - tbl_name
  24868. - col_name
  24869. """
  24870. thrift_spec = (
  24871. None, # 0
  24872. (1, TType.STRING, 'db_name', None, None, ), # 1
  24873. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  24874. (3, TType.STRING, 'col_name', None, None, ), # 3
  24875. )
  24876. def __init__(self, db_name=None, tbl_name=None, col_name=None,):
  24877. self.db_name = db_name
  24878. self.tbl_name = tbl_name
  24879. self.col_name = col_name
  24880. def read(self, iprot):
  24881. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24882. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24883. return
  24884. iprot.readStructBegin()
  24885. while True:
  24886. (fname, ftype, fid) = iprot.readFieldBegin()
  24887. if ftype == TType.STOP:
  24888. break
  24889. if fid == 1:
  24890. if ftype == TType.STRING:
  24891. self.db_name = iprot.readString()
  24892. else:
  24893. iprot.skip(ftype)
  24894. elif fid == 2:
  24895. if ftype == TType.STRING:
  24896. self.tbl_name = iprot.readString()
  24897. else:
  24898. iprot.skip(ftype)
  24899. elif fid == 3:
  24900. if ftype == TType.STRING:
  24901. self.col_name = iprot.readString()
  24902. else:
  24903. iprot.skip(ftype)
  24904. else:
  24905. iprot.skip(ftype)
  24906. iprot.readFieldEnd()
  24907. iprot.readStructEnd()
  24908. def write(self, oprot):
  24909. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  24910. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  24911. return
  24912. oprot.writeStructBegin('delete_table_column_statistics_args')
  24913. if self.db_name is not None:
  24914. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  24915. oprot.writeString(self.db_name)
  24916. oprot.writeFieldEnd()
  24917. if self.tbl_name is not None:
  24918. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  24919. oprot.writeString(self.tbl_name)
  24920. oprot.writeFieldEnd()
  24921. if self.col_name is not None:
  24922. oprot.writeFieldBegin('col_name', TType.STRING, 3)
  24923. oprot.writeString(self.col_name)
  24924. oprot.writeFieldEnd()
  24925. oprot.writeFieldStop()
  24926. oprot.writeStructEnd()
  24927. def validate(self):
  24928. return
  24929. def __hash__(self):
  24930. value = 17
  24931. value = (value * 31) ^ hash(self.db_name)
  24932. value = (value * 31) ^ hash(self.tbl_name)
  24933. value = (value * 31) ^ hash(self.col_name)
  24934. return value
  24935. def __repr__(self):
  24936. L = ['%s=%r' % (key, value)
  24937. for key, value in self.__dict__.iteritems()]
  24938. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24939. def __eq__(self, other):
  24940. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24941. def __ne__(self, other):
  24942. return not (self == other)
  24943. class delete_table_column_statistics_result(object):
  24944. """
  24945. Attributes:
  24946. - success
  24947. - o1
  24948. - o2
  24949. - o3
  24950. - o4
  24951. """
  24952. thrift_spec = (
  24953. (0, TType.BOOL, 'success', None, None, ), # 0
  24954. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  24955. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  24956. (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3
  24957. (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4
  24958. )
  24959. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  24960. self.success = success
  24961. self.o1 = o1
  24962. self.o2 = o2
  24963. self.o3 = o3
  24964. self.o4 = o4
  24965. def read(self, iprot):
  24966. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  24967. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  24968. return
  24969. iprot.readStructBegin()
  24970. while True:
  24971. (fname, ftype, fid) = iprot.readFieldBegin()
  24972. if ftype == TType.STOP:
  24973. break
  24974. if fid == 0:
  24975. if ftype == TType.BOOL:
  24976. self.success = iprot.readBool()
  24977. else:
  24978. iprot.skip(ftype)
  24979. elif fid == 1:
  24980. if ftype == TType.STRUCT:
  24981. self.o1 = NoSuchObjectException()
  24982. self.o1.read(iprot)
  24983. else:
  24984. iprot.skip(ftype)
  24985. elif fid == 2:
  24986. if ftype == TType.STRUCT:
  24987. self.o2 = MetaException()
  24988. self.o2.read(iprot)
  24989. else:
  24990. iprot.skip(ftype)
  24991. elif fid == 3:
  24992. if ftype == TType.STRUCT:
  24993. self.o3 = InvalidObjectException()
  24994. self.o3.read(iprot)
  24995. else:
  24996. iprot.skip(ftype)
  24997. elif fid == 4:
  24998. if ftype == TType.STRUCT:
  24999. self.o4 = InvalidInputException()
  25000. self.o4.read(iprot)
  25001. else:
  25002. iprot.skip(ftype)
  25003. else:
  25004. iprot.skip(ftype)
  25005. iprot.readFieldEnd()
  25006. iprot.readStructEnd()
  25007. def write(self, oprot):
  25008. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25009. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25010. return
  25011. oprot.writeStructBegin('delete_table_column_statistics_result')
  25012. if self.success is not None:
  25013. oprot.writeFieldBegin('success', TType.BOOL, 0)
  25014. oprot.writeBool(self.success)
  25015. oprot.writeFieldEnd()
  25016. if self.o1 is not None:
  25017. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25018. self.o1.write(oprot)
  25019. oprot.writeFieldEnd()
  25020. if self.o2 is not None:
  25021. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  25022. self.o2.write(oprot)
  25023. oprot.writeFieldEnd()
  25024. if self.o3 is not None:
  25025. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  25026. self.o3.write(oprot)
  25027. oprot.writeFieldEnd()
  25028. if self.o4 is not None:
  25029. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  25030. self.o4.write(oprot)
  25031. oprot.writeFieldEnd()
  25032. oprot.writeFieldStop()
  25033. oprot.writeStructEnd()
  25034. def validate(self):
  25035. return
  25036. def __hash__(self):
  25037. value = 17
  25038. value = (value * 31) ^ hash(self.success)
  25039. value = (value * 31) ^ hash(self.o1)
  25040. value = (value * 31) ^ hash(self.o2)
  25041. value = (value * 31) ^ hash(self.o3)
  25042. value = (value * 31) ^ hash(self.o4)
  25043. return value
  25044. def __repr__(self):
  25045. L = ['%s=%r' % (key, value)
  25046. for key, value in self.__dict__.iteritems()]
  25047. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25048. def __eq__(self, other):
  25049. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25050. def __ne__(self, other):
  25051. return not (self == other)
  25052. class create_function_args(object):
  25053. """
  25054. Attributes:
  25055. - func
  25056. """
  25057. thrift_spec = (
  25058. None, # 0
  25059. (1, TType.STRUCT, 'func', (Function, Function.thrift_spec), None, ), # 1
  25060. )
  25061. def __init__(self, func=None,):
  25062. self.func = func
  25063. def read(self, iprot):
  25064. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25065. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25066. return
  25067. iprot.readStructBegin()
  25068. while True:
  25069. (fname, ftype, fid) = iprot.readFieldBegin()
  25070. if ftype == TType.STOP:
  25071. break
  25072. if fid == 1:
  25073. if ftype == TType.STRUCT:
  25074. self.func = Function()
  25075. self.func.read(iprot)
  25076. else:
  25077. iprot.skip(ftype)
  25078. else:
  25079. iprot.skip(ftype)
  25080. iprot.readFieldEnd()
  25081. iprot.readStructEnd()
  25082. def write(self, oprot):
  25083. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25084. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25085. return
  25086. oprot.writeStructBegin('create_function_args')
  25087. if self.func is not None:
  25088. oprot.writeFieldBegin('func', TType.STRUCT, 1)
  25089. self.func.write(oprot)
  25090. oprot.writeFieldEnd()
  25091. oprot.writeFieldStop()
  25092. oprot.writeStructEnd()
  25093. def validate(self):
  25094. return
  25095. def __hash__(self):
  25096. value = 17
  25097. value = (value * 31) ^ hash(self.func)
  25098. return value
  25099. def __repr__(self):
  25100. L = ['%s=%r' % (key, value)
  25101. for key, value in self.__dict__.iteritems()]
  25102. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25103. def __eq__(self, other):
  25104. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25105. def __ne__(self, other):
  25106. return not (self == other)
  25107. class create_function_result(object):
  25108. """
  25109. Attributes:
  25110. - o1
  25111. - o2
  25112. - o3
  25113. - o4
  25114. """
  25115. thrift_spec = (
  25116. None, # 0
  25117. (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1
  25118. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  25119. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  25120. (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4
  25121. )
  25122. def __init__(self, o1=None, o2=None, o3=None, o4=None,):
  25123. self.o1 = o1
  25124. self.o2 = o2
  25125. self.o3 = o3
  25126. self.o4 = o4
  25127. def read(self, iprot):
  25128. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25129. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25130. return
  25131. iprot.readStructBegin()
  25132. while True:
  25133. (fname, ftype, fid) = iprot.readFieldBegin()
  25134. if ftype == TType.STOP:
  25135. break
  25136. if fid == 1:
  25137. if ftype == TType.STRUCT:
  25138. self.o1 = AlreadyExistsException()
  25139. self.o1.read(iprot)
  25140. else:
  25141. iprot.skip(ftype)
  25142. elif fid == 2:
  25143. if ftype == TType.STRUCT:
  25144. self.o2 = InvalidObjectException()
  25145. self.o2.read(iprot)
  25146. else:
  25147. iprot.skip(ftype)
  25148. elif fid == 3:
  25149. if ftype == TType.STRUCT:
  25150. self.o3 = MetaException()
  25151. self.o3.read(iprot)
  25152. else:
  25153. iprot.skip(ftype)
  25154. elif fid == 4:
  25155. if ftype == TType.STRUCT:
  25156. self.o4 = NoSuchObjectException()
  25157. self.o4.read(iprot)
  25158. else:
  25159. iprot.skip(ftype)
  25160. else:
  25161. iprot.skip(ftype)
  25162. iprot.readFieldEnd()
  25163. iprot.readStructEnd()
  25164. def write(self, oprot):
  25165. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25166. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25167. return
  25168. oprot.writeStructBegin('create_function_result')
  25169. if self.o1 is not None:
  25170. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25171. self.o1.write(oprot)
  25172. oprot.writeFieldEnd()
  25173. if self.o2 is not None:
  25174. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  25175. self.o2.write(oprot)
  25176. oprot.writeFieldEnd()
  25177. if self.o3 is not None:
  25178. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  25179. self.o3.write(oprot)
  25180. oprot.writeFieldEnd()
  25181. if self.o4 is not None:
  25182. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  25183. self.o4.write(oprot)
  25184. oprot.writeFieldEnd()
  25185. oprot.writeFieldStop()
  25186. oprot.writeStructEnd()
  25187. def validate(self):
  25188. return
  25189. def __hash__(self):
  25190. value = 17
  25191. value = (value * 31) ^ hash(self.o1)
  25192. value = (value * 31) ^ hash(self.o2)
  25193. value = (value * 31) ^ hash(self.o3)
  25194. value = (value * 31) ^ hash(self.o4)
  25195. return value
  25196. def __repr__(self):
  25197. L = ['%s=%r' % (key, value)
  25198. for key, value in self.__dict__.iteritems()]
  25199. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25200. def __eq__(self, other):
  25201. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25202. def __ne__(self, other):
  25203. return not (self == other)
  25204. class drop_function_args(object):
  25205. """
  25206. Attributes:
  25207. - dbName
  25208. - funcName
  25209. """
  25210. thrift_spec = (
  25211. None, # 0
  25212. (1, TType.STRING, 'dbName', None, None, ), # 1
  25213. (2, TType.STRING, 'funcName', None, None, ), # 2
  25214. )
  25215. def __init__(self, dbName=None, funcName=None,):
  25216. self.dbName = dbName
  25217. self.funcName = funcName
  25218. def read(self, iprot):
  25219. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25220. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25221. return
  25222. iprot.readStructBegin()
  25223. while True:
  25224. (fname, ftype, fid) = iprot.readFieldBegin()
  25225. if ftype == TType.STOP:
  25226. break
  25227. if fid == 1:
  25228. if ftype == TType.STRING:
  25229. self.dbName = iprot.readString()
  25230. else:
  25231. iprot.skip(ftype)
  25232. elif fid == 2:
  25233. if ftype == TType.STRING:
  25234. self.funcName = iprot.readString()
  25235. else:
  25236. iprot.skip(ftype)
  25237. else:
  25238. iprot.skip(ftype)
  25239. iprot.readFieldEnd()
  25240. iprot.readStructEnd()
  25241. def write(self, oprot):
  25242. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25243. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25244. return
  25245. oprot.writeStructBegin('drop_function_args')
  25246. if self.dbName is not None:
  25247. oprot.writeFieldBegin('dbName', TType.STRING, 1)
  25248. oprot.writeString(self.dbName)
  25249. oprot.writeFieldEnd()
  25250. if self.funcName is not None:
  25251. oprot.writeFieldBegin('funcName', TType.STRING, 2)
  25252. oprot.writeString(self.funcName)
  25253. oprot.writeFieldEnd()
  25254. oprot.writeFieldStop()
  25255. oprot.writeStructEnd()
  25256. def validate(self):
  25257. return
  25258. def __hash__(self):
  25259. value = 17
  25260. value = (value * 31) ^ hash(self.dbName)
  25261. value = (value * 31) ^ hash(self.funcName)
  25262. return value
  25263. def __repr__(self):
  25264. L = ['%s=%r' % (key, value)
  25265. for key, value in self.__dict__.iteritems()]
  25266. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25267. def __eq__(self, other):
  25268. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25269. def __ne__(self, other):
  25270. return not (self == other)
  25271. class drop_function_result(object):
  25272. """
  25273. Attributes:
  25274. - o1
  25275. - o3
  25276. """
  25277. thrift_spec = (
  25278. None, # 0
  25279. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  25280. (2, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 2
  25281. )
  25282. def __init__(self, o1=None, o3=None,):
  25283. self.o1 = o1
  25284. self.o3 = o3
  25285. def read(self, iprot):
  25286. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25287. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25288. return
  25289. iprot.readStructBegin()
  25290. while True:
  25291. (fname, ftype, fid) = iprot.readFieldBegin()
  25292. if ftype == TType.STOP:
  25293. break
  25294. if fid == 1:
  25295. if ftype == TType.STRUCT:
  25296. self.o1 = NoSuchObjectException()
  25297. self.o1.read(iprot)
  25298. else:
  25299. iprot.skip(ftype)
  25300. elif fid == 2:
  25301. if ftype == TType.STRUCT:
  25302. self.o3 = MetaException()
  25303. self.o3.read(iprot)
  25304. else:
  25305. iprot.skip(ftype)
  25306. else:
  25307. iprot.skip(ftype)
  25308. iprot.readFieldEnd()
  25309. iprot.readStructEnd()
  25310. def write(self, oprot):
  25311. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25312. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25313. return
  25314. oprot.writeStructBegin('drop_function_result')
  25315. if self.o1 is not None:
  25316. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25317. self.o1.write(oprot)
  25318. oprot.writeFieldEnd()
  25319. if self.o3 is not None:
  25320. oprot.writeFieldBegin('o3', TType.STRUCT, 2)
  25321. self.o3.write(oprot)
  25322. oprot.writeFieldEnd()
  25323. oprot.writeFieldStop()
  25324. oprot.writeStructEnd()
  25325. def validate(self):
  25326. return
  25327. def __hash__(self):
  25328. value = 17
  25329. value = (value * 31) ^ hash(self.o1)
  25330. value = (value * 31) ^ hash(self.o3)
  25331. return value
  25332. def __repr__(self):
  25333. L = ['%s=%r' % (key, value)
  25334. for key, value in self.__dict__.iteritems()]
  25335. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25336. def __eq__(self, other):
  25337. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25338. def __ne__(self, other):
  25339. return not (self == other)
  25340. class alter_function_args(object):
  25341. """
  25342. Attributes:
  25343. - dbName
  25344. - funcName
  25345. - newFunc
  25346. """
  25347. thrift_spec = (
  25348. None, # 0
  25349. (1, TType.STRING, 'dbName', None, None, ), # 1
  25350. (2, TType.STRING, 'funcName', None, None, ), # 2
  25351. (3, TType.STRUCT, 'newFunc', (Function, Function.thrift_spec), None, ), # 3
  25352. )
  25353. def __init__(self, dbName=None, funcName=None, newFunc=None,):
  25354. self.dbName = dbName
  25355. self.funcName = funcName
  25356. self.newFunc = newFunc
  25357. def read(self, iprot):
  25358. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25359. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25360. return
  25361. iprot.readStructBegin()
  25362. while True:
  25363. (fname, ftype, fid) = iprot.readFieldBegin()
  25364. if ftype == TType.STOP:
  25365. break
  25366. if fid == 1:
  25367. if ftype == TType.STRING:
  25368. self.dbName = iprot.readString()
  25369. else:
  25370. iprot.skip(ftype)
  25371. elif fid == 2:
  25372. if ftype == TType.STRING:
  25373. self.funcName = iprot.readString()
  25374. else:
  25375. iprot.skip(ftype)
  25376. elif fid == 3:
  25377. if ftype == TType.STRUCT:
  25378. self.newFunc = Function()
  25379. self.newFunc.read(iprot)
  25380. else:
  25381. iprot.skip(ftype)
  25382. else:
  25383. iprot.skip(ftype)
  25384. iprot.readFieldEnd()
  25385. iprot.readStructEnd()
  25386. def write(self, oprot):
  25387. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25388. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25389. return
  25390. oprot.writeStructBegin('alter_function_args')
  25391. if self.dbName is not None:
  25392. oprot.writeFieldBegin('dbName', TType.STRING, 1)
  25393. oprot.writeString(self.dbName)
  25394. oprot.writeFieldEnd()
  25395. if self.funcName is not None:
  25396. oprot.writeFieldBegin('funcName', TType.STRING, 2)
  25397. oprot.writeString(self.funcName)
  25398. oprot.writeFieldEnd()
  25399. if self.newFunc is not None:
  25400. oprot.writeFieldBegin('newFunc', TType.STRUCT, 3)
  25401. self.newFunc.write(oprot)
  25402. oprot.writeFieldEnd()
  25403. oprot.writeFieldStop()
  25404. oprot.writeStructEnd()
  25405. def validate(self):
  25406. return
  25407. def __hash__(self):
  25408. value = 17
  25409. value = (value * 31) ^ hash(self.dbName)
  25410. value = (value * 31) ^ hash(self.funcName)
  25411. value = (value * 31) ^ hash(self.newFunc)
  25412. return value
  25413. def __repr__(self):
  25414. L = ['%s=%r' % (key, value)
  25415. for key, value in self.__dict__.iteritems()]
  25416. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25417. def __eq__(self, other):
  25418. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25419. def __ne__(self, other):
  25420. return not (self == other)
  25421. class alter_function_result(object):
  25422. """
  25423. Attributes:
  25424. - o1
  25425. - o2
  25426. """
  25427. thrift_spec = (
  25428. None, # 0
  25429. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  25430. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  25431. )
  25432. def __init__(self, o1=None, o2=None,):
  25433. self.o1 = o1
  25434. self.o2 = o2
  25435. def read(self, iprot):
  25436. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25437. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25438. return
  25439. iprot.readStructBegin()
  25440. while True:
  25441. (fname, ftype, fid) = iprot.readFieldBegin()
  25442. if ftype == TType.STOP:
  25443. break
  25444. if fid == 1:
  25445. if ftype == TType.STRUCT:
  25446. self.o1 = InvalidOperationException()
  25447. self.o1.read(iprot)
  25448. else:
  25449. iprot.skip(ftype)
  25450. elif fid == 2:
  25451. if ftype == TType.STRUCT:
  25452. self.o2 = MetaException()
  25453. self.o2.read(iprot)
  25454. else:
  25455. iprot.skip(ftype)
  25456. else:
  25457. iprot.skip(ftype)
  25458. iprot.readFieldEnd()
  25459. iprot.readStructEnd()
  25460. def write(self, oprot):
  25461. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25462. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25463. return
  25464. oprot.writeStructBegin('alter_function_result')
  25465. if self.o1 is not None:
  25466. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25467. self.o1.write(oprot)
  25468. oprot.writeFieldEnd()
  25469. if self.o2 is not None:
  25470. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  25471. self.o2.write(oprot)
  25472. oprot.writeFieldEnd()
  25473. oprot.writeFieldStop()
  25474. oprot.writeStructEnd()
  25475. def validate(self):
  25476. return
  25477. def __hash__(self):
  25478. value = 17
  25479. value = (value * 31) ^ hash(self.o1)
  25480. value = (value * 31) ^ hash(self.o2)
  25481. return value
  25482. def __repr__(self):
  25483. L = ['%s=%r' % (key, value)
  25484. for key, value in self.__dict__.iteritems()]
  25485. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25486. def __eq__(self, other):
  25487. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25488. def __ne__(self, other):
  25489. return not (self == other)
  25490. class get_functions_args(object):
  25491. """
  25492. Attributes:
  25493. - dbName
  25494. - pattern
  25495. """
  25496. thrift_spec = (
  25497. None, # 0
  25498. (1, TType.STRING, 'dbName', None, None, ), # 1
  25499. (2, TType.STRING, 'pattern', None, None, ), # 2
  25500. )
  25501. def __init__(self, dbName=None, pattern=None,):
  25502. self.dbName = dbName
  25503. self.pattern = pattern
  25504. def read(self, iprot):
  25505. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25506. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25507. return
  25508. iprot.readStructBegin()
  25509. while True:
  25510. (fname, ftype, fid) = iprot.readFieldBegin()
  25511. if ftype == TType.STOP:
  25512. break
  25513. if fid == 1:
  25514. if ftype == TType.STRING:
  25515. self.dbName = iprot.readString()
  25516. else:
  25517. iprot.skip(ftype)
  25518. elif fid == 2:
  25519. if ftype == TType.STRING:
  25520. self.pattern = iprot.readString()
  25521. else:
  25522. iprot.skip(ftype)
  25523. else:
  25524. iprot.skip(ftype)
  25525. iprot.readFieldEnd()
  25526. iprot.readStructEnd()
  25527. def write(self, oprot):
  25528. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25529. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25530. return
  25531. oprot.writeStructBegin('get_functions_args')
  25532. if self.dbName is not None:
  25533. oprot.writeFieldBegin('dbName', TType.STRING, 1)
  25534. oprot.writeString(self.dbName)
  25535. oprot.writeFieldEnd()
  25536. if self.pattern is not None:
  25537. oprot.writeFieldBegin('pattern', TType.STRING, 2)
  25538. oprot.writeString(self.pattern)
  25539. oprot.writeFieldEnd()
  25540. oprot.writeFieldStop()
  25541. oprot.writeStructEnd()
  25542. def validate(self):
  25543. return
  25544. def __hash__(self):
  25545. value = 17
  25546. value = (value * 31) ^ hash(self.dbName)
  25547. value = (value * 31) ^ hash(self.pattern)
  25548. return value
  25549. def __repr__(self):
  25550. L = ['%s=%r' % (key, value)
  25551. for key, value in self.__dict__.iteritems()]
  25552. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25553. def __eq__(self, other):
  25554. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25555. def __ne__(self, other):
  25556. return not (self == other)
  25557. class get_functions_result(object):
  25558. """
  25559. Attributes:
  25560. - success
  25561. - o1
  25562. """
  25563. thrift_spec = (
  25564. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  25565. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  25566. )
  25567. def __init__(self, success=None, o1=None,):
  25568. self.success = success
  25569. self.o1 = o1
  25570. def read(self, iprot):
  25571. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25572. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25573. return
  25574. iprot.readStructBegin()
  25575. while True:
  25576. (fname, ftype, fid) = iprot.readFieldBegin()
  25577. if ftype == TType.STOP:
  25578. break
  25579. if fid == 0:
  25580. if ftype == TType.LIST:
  25581. self.success = []
  25582. (_etype987, _size984) = iprot.readListBegin()
  25583. for _i988 in xrange(_size984):
  25584. _elem989 = iprot.readString()
  25585. self.success.append(_elem989)
  25586. iprot.readListEnd()
  25587. else:
  25588. iprot.skip(ftype)
  25589. elif fid == 1:
  25590. if ftype == TType.STRUCT:
  25591. self.o1 = MetaException()
  25592. self.o1.read(iprot)
  25593. else:
  25594. iprot.skip(ftype)
  25595. else:
  25596. iprot.skip(ftype)
  25597. iprot.readFieldEnd()
  25598. iprot.readStructEnd()
  25599. def write(self, oprot):
  25600. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25601. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25602. return
  25603. oprot.writeStructBegin('get_functions_result')
  25604. if self.success is not None:
  25605. oprot.writeFieldBegin('success', TType.LIST, 0)
  25606. oprot.writeListBegin(TType.STRING, len(self.success))
  25607. for iter990 in self.success:
  25608. oprot.writeString(iter990)
  25609. oprot.writeListEnd()
  25610. oprot.writeFieldEnd()
  25611. if self.o1 is not None:
  25612. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25613. self.o1.write(oprot)
  25614. oprot.writeFieldEnd()
  25615. oprot.writeFieldStop()
  25616. oprot.writeStructEnd()
  25617. def validate(self):
  25618. return
  25619. def __hash__(self):
  25620. value = 17
  25621. value = (value * 31) ^ hash(self.success)
  25622. value = (value * 31) ^ hash(self.o1)
  25623. return value
  25624. def __repr__(self):
  25625. L = ['%s=%r' % (key, value)
  25626. for key, value in self.__dict__.iteritems()]
  25627. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25628. def __eq__(self, other):
  25629. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25630. def __ne__(self, other):
  25631. return not (self == other)
  25632. class get_function_args(object):
  25633. """
  25634. Attributes:
  25635. - dbName
  25636. - funcName
  25637. """
  25638. thrift_spec = (
  25639. None, # 0
  25640. (1, TType.STRING, 'dbName', None, None, ), # 1
  25641. (2, TType.STRING, 'funcName', None, None, ), # 2
  25642. )
  25643. def __init__(self, dbName=None, funcName=None,):
  25644. self.dbName = dbName
  25645. self.funcName = funcName
  25646. def read(self, iprot):
  25647. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25648. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25649. return
  25650. iprot.readStructBegin()
  25651. while True:
  25652. (fname, ftype, fid) = iprot.readFieldBegin()
  25653. if ftype == TType.STOP:
  25654. break
  25655. if fid == 1:
  25656. if ftype == TType.STRING:
  25657. self.dbName = iprot.readString()
  25658. else:
  25659. iprot.skip(ftype)
  25660. elif fid == 2:
  25661. if ftype == TType.STRING:
  25662. self.funcName = iprot.readString()
  25663. else:
  25664. iprot.skip(ftype)
  25665. else:
  25666. iprot.skip(ftype)
  25667. iprot.readFieldEnd()
  25668. iprot.readStructEnd()
  25669. def write(self, oprot):
  25670. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25671. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25672. return
  25673. oprot.writeStructBegin('get_function_args')
  25674. if self.dbName is not None:
  25675. oprot.writeFieldBegin('dbName', TType.STRING, 1)
  25676. oprot.writeString(self.dbName)
  25677. oprot.writeFieldEnd()
  25678. if self.funcName is not None:
  25679. oprot.writeFieldBegin('funcName', TType.STRING, 2)
  25680. oprot.writeString(self.funcName)
  25681. oprot.writeFieldEnd()
  25682. oprot.writeFieldStop()
  25683. oprot.writeStructEnd()
  25684. def validate(self):
  25685. return
  25686. def __hash__(self):
  25687. value = 17
  25688. value = (value * 31) ^ hash(self.dbName)
  25689. value = (value * 31) ^ hash(self.funcName)
  25690. return value
  25691. def __repr__(self):
  25692. L = ['%s=%r' % (key, value)
  25693. for key, value in self.__dict__.iteritems()]
  25694. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25695. def __eq__(self, other):
  25696. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25697. def __ne__(self, other):
  25698. return not (self == other)
  25699. class get_function_result(object):
  25700. """
  25701. Attributes:
  25702. - success
  25703. - o1
  25704. - o2
  25705. """
  25706. thrift_spec = (
  25707. (0, TType.STRUCT, 'success', (Function, Function.thrift_spec), None, ), # 0
  25708. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  25709. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  25710. )
  25711. def __init__(self, success=None, o1=None, o2=None,):
  25712. self.success = success
  25713. self.o1 = o1
  25714. self.o2 = o2
  25715. def read(self, iprot):
  25716. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25717. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25718. return
  25719. iprot.readStructBegin()
  25720. while True:
  25721. (fname, ftype, fid) = iprot.readFieldBegin()
  25722. if ftype == TType.STOP:
  25723. break
  25724. if fid == 0:
  25725. if ftype == TType.STRUCT:
  25726. self.success = Function()
  25727. self.success.read(iprot)
  25728. else:
  25729. iprot.skip(ftype)
  25730. elif fid == 1:
  25731. if ftype == TType.STRUCT:
  25732. self.o1 = MetaException()
  25733. self.o1.read(iprot)
  25734. else:
  25735. iprot.skip(ftype)
  25736. elif fid == 2:
  25737. if ftype == TType.STRUCT:
  25738. self.o2 = NoSuchObjectException()
  25739. self.o2.read(iprot)
  25740. else:
  25741. iprot.skip(ftype)
  25742. else:
  25743. iprot.skip(ftype)
  25744. iprot.readFieldEnd()
  25745. iprot.readStructEnd()
  25746. def write(self, oprot):
  25747. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25748. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25749. return
  25750. oprot.writeStructBegin('get_function_result')
  25751. if self.success is not None:
  25752. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  25753. self.success.write(oprot)
  25754. oprot.writeFieldEnd()
  25755. if self.o1 is not None:
  25756. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25757. self.o1.write(oprot)
  25758. oprot.writeFieldEnd()
  25759. if self.o2 is not None:
  25760. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  25761. self.o2.write(oprot)
  25762. oprot.writeFieldEnd()
  25763. oprot.writeFieldStop()
  25764. oprot.writeStructEnd()
  25765. def validate(self):
  25766. return
  25767. def __hash__(self):
  25768. value = 17
  25769. value = (value * 31) ^ hash(self.success)
  25770. value = (value * 31) ^ hash(self.o1)
  25771. value = (value * 31) ^ hash(self.o2)
  25772. return value
  25773. def __repr__(self):
  25774. L = ['%s=%r' % (key, value)
  25775. for key, value in self.__dict__.iteritems()]
  25776. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25777. def __eq__(self, other):
  25778. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25779. def __ne__(self, other):
  25780. return not (self == other)
  25781. class get_all_functions_args(object):
  25782. thrift_spec = (
  25783. )
  25784. def read(self, iprot):
  25785. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25786. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25787. return
  25788. iprot.readStructBegin()
  25789. while True:
  25790. (fname, ftype, fid) = iprot.readFieldBegin()
  25791. if ftype == TType.STOP:
  25792. break
  25793. else:
  25794. iprot.skip(ftype)
  25795. iprot.readFieldEnd()
  25796. iprot.readStructEnd()
  25797. def write(self, oprot):
  25798. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25799. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25800. return
  25801. oprot.writeStructBegin('get_all_functions_args')
  25802. oprot.writeFieldStop()
  25803. oprot.writeStructEnd()
  25804. def validate(self):
  25805. return
  25806. def __hash__(self):
  25807. value = 17
  25808. return value
  25809. def __repr__(self):
  25810. L = ['%s=%r' % (key, value)
  25811. for key, value in self.__dict__.iteritems()]
  25812. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25813. def __eq__(self, other):
  25814. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25815. def __ne__(self, other):
  25816. return not (self == other)
  25817. class get_all_functions_result(object):
  25818. """
  25819. Attributes:
  25820. - success
  25821. - o1
  25822. """
  25823. thrift_spec = (
  25824. (0, TType.STRUCT, 'success', (GetAllFunctionsResponse, GetAllFunctionsResponse.thrift_spec), None, ), # 0
  25825. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  25826. )
  25827. def __init__(self, success=None, o1=None,):
  25828. self.success = success
  25829. self.o1 = o1
  25830. def read(self, iprot):
  25831. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25832. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25833. return
  25834. iprot.readStructBegin()
  25835. while True:
  25836. (fname, ftype, fid) = iprot.readFieldBegin()
  25837. if ftype == TType.STOP:
  25838. break
  25839. if fid == 0:
  25840. if ftype == TType.STRUCT:
  25841. self.success = GetAllFunctionsResponse()
  25842. self.success.read(iprot)
  25843. else:
  25844. iprot.skip(ftype)
  25845. elif fid == 1:
  25846. if ftype == TType.STRUCT:
  25847. self.o1 = MetaException()
  25848. self.o1.read(iprot)
  25849. else:
  25850. iprot.skip(ftype)
  25851. else:
  25852. iprot.skip(ftype)
  25853. iprot.readFieldEnd()
  25854. iprot.readStructEnd()
  25855. def write(self, oprot):
  25856. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25857. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25858. return
  25859. oprot.writeStructBegin('get_all_functions_result')
  25860. if self.success is not None:
  25861. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  25862. self.success.write(oprot)
  25863. oprot.writeFieldEnd()
  25864. if self.o1 is not None:
  25865. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25866. self.o1.write(oprot)
  25867. oprot.writeFieldEnd()
  25868. oprot.writeFieldStop()
  25869. oprot.writeStructEnd()
  25870. def validate(self):
  25871. return
  25872. def __hash__(self):
  25873. value = 17
  25874. value = (value * 31) ^ hash(self.success)
  25875. value = (value * 31) ^ hash(self.o1)
  25876. return value
  25877. def __repr__(self):
  25878. L = ['%s=%r' % (key, value)
  25879. for key, value in self.__dict__.iteritems()]
  25880. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25881. def __eq__(self, other):
  25882. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25883. def __ne__(self, other):
  25884. return not (self == other)
  25885. class create_role_args(object):
  25886. """
  25887. Attributes:
  25888. - role
  25889. """
  25890. thrift_spec = (
  25891. None, # 0
  25892. (1, TType.STRUCT, 'role', (Role, Role.thrift_spec), None, ), # 1
  25893. )
  25894. def __init__(self, role=None,):
  25895. self.role = role
  25896. def read(self, iprot):
  25897. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25898. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25899. return
  25900. iprot.readStructBegin()
  25901. while True:
  25902. (fname, ftype, fid) = iprot.readFieldBegin()
  25903. if ftype == TType.STOP:
  25904. break
  25905. if fid == 1:
  25906. if ftype == TType.STRUCT:
  25907. self.role = Role()
  25908. self.role.read(iprot)
  25909. else:
  25910. iprot.skip(ftype)
  25911. else:
  25912. iprot.skip(ftype)
  25913. iprot.readFieldEnd()
  25914. iprot.readStructEnd()
  25915. def write(self, oprot):
  25916. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25917. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25918. return
  25919. oprot.writeStructBegin('create_role_args')
  25920. if self.role is not None:
  25921. oprot.writeFieldBegin('role', TType.STRUCT, 1)
  25922. self.role.write(oprot)
  25923. oprot.writeFieldEnd()
  25924. oprot.writeFieldStop()
  25925. oprot.writeStructEnd()
  25926. def validate(self):
  25927. return
  25928. def __hash__(self):
  25929. value = 17
  25930. value = (value * 31) ^ hash(self.role)
  25931. return value
  25932. def __repr__(self):
  25933. L = ['%s=%r' % (key, value)
  25934. for key, value in self.__dict__.iteritems()]
  25935. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25936. def __eq__(self, other):
  25937. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25938. def __ne__(self, other):
  25939. return not (self == other)
  25940. class create_role_result(object):
  25941. """
  25942. Attributes:
  25943. - success
  25944. - o1
  25945. """
  25946. thrift_spec = (
  25947. (0, TType.BOOL, 'success', None, None, ), # 0
  25948. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  25949. )
  25950. def __init__(self, success=None, o1=None,):
  25951. self.success = success
  25952. self.o1 = o1
  25953. def read(self, iprot):
  25954. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  25955. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  25956. return
  25957. iprot.readStructBegin()
  25958. while True:
  25959. (fname, ftype, fid) = iprot.readFieldBegin()
  25960. if ftype == TType.STOP:
  25961. break
  25962. if fid == 0:
  25963. if ftype == TType.BOOL:
  25964. self.success = iprot.readBool()
  25965. else:
  25966. iprot.skip(ftype)
  25967. elif fid == 1:
  25968. if ftype == TType.STRUCT:
  25969. self.o1 = MetaException()
  25970. self.o1.read(iprot)
  25971. else:
  25972. iprot.skip(ftype)
  25973. else:
  25974. iprot.skip(ftype)
  25975. iprot.readFieldEnd()
  25976. iprot.readStructEnd()
  25977. def write(self, oprot):
  25978. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  25979. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  25980. return
  25981. oprot.writeStructBegin('create_role_result')
  25982. if self.success is not None:
  25983. oprot.writeFieldBegin('success', TType.BOOL, 0)
  25984. oprot.writeBool(self.success)
  25985. oprot.writeFieldEnd()
  25986. if self.o1 is not None:
  25987. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25988. self.o1.write(oprot)
  25989. oprot.writeFieldEnd()
  25990. oprot.writeFieldStop()
  25991. oprot.writeStructEnd()
  25992. def validate(self):
  25993. return
  25994. def __hash__(self):
  25995. value = 17
  25996. value = (value * 31) ^ hash(self.success)
  25997. value = (value * 31) ^ hash(self.o1)
  25998. return value
  25999. def __repr__(self):
  26000. L = ['%s=%r' % (key, value)
  26001. for key, value in self.__dict__.iteritems()]
  26002. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26003. def __eq__(self, other):
  26004. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26005. def __ne__(self, other):
  26006. return not (self == other)
  26007. class drop_role_args(object):
  26008. """
  26009. Attributes:
  26010. - role_name
  26011. """
  26012. thrift_spec = (
  26013. None, # 0
  26014. (1, TType.STRING, 'role_name', None, None, ), # 1
  26015. )
  26016. def __init__(self, role_name=None,):
  26017. self.role_name = role_name
  26018. def read(self, iprot):
  26019. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26020. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26021. return
  26022. iprot.readStructBegin()
  26023. while True:
  26024. (fname, ftype, fid) = iprot.readFieldBegin()
  26025. if ftype == TType.STOP:
  26026. break
  26027. if fid == 1:
  26028. if ftype == TType.STRING:
  26029. self.role_name = iprot.readString()
  26030. else:
  26031. iprot.skip(ftype)
  26032. else:
  26033. iprot.skip(ftype)
  26034. iprot.readFieldEnd()
  26035. iprot.readStructEnd()
  26036. def write(self, oprot):
  26037. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26038. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26039. return
  26040. oprot.writeStructBegin('drop_role_args')
  26041. if self.role_name is not None:
  26042. oprot.writeFieldBegin('role_name', TType.STRING, 1)
  26043. oprot.writeString(self.role_name)
  26044. oprot.writeFieldEnd()
  26045. oprot.writeFieldStop()
  26046. oprot.writeStructEnd()
  26047. def validate(self):
  26048. return
  26049. def __hash__(self):
  26050. value = 17
  26051. value = (value * 31) ^ hash(self.role_name)
  26052. return value
  26053. def __repr__(self):
  26054. L = ['%s=%r' % (key, value)
  26055. for key, value in self.__dict__.iteritems()]
  26056. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26057. def __eq__(self, other):
  26058. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26059. def __ne__(self, other):
  26060. return not (self == other)
  26061. class drop_role_result(object):
  26062. """
  26063. Attributes:
  26064. - success
  26065. - o1
  26066. """
  26067. thrift_spec = (
  26068. (0, TType.BOOL, 'success', None, None, ), # 0
  26069. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  26070. )
  26071. def __init__(self, success=None, o1=None,):
  26072. self.success = success
  26073. self.o1 = o1
  26074. def read(self, iprot):
  26075. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26076. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26077. return
  26078. iprot.readStructBegin()
  26079. while True:
  26080. (fname, ftype, fid) = iprot.readFieldBegin()
  26081. if ftype == TType.STOP:
  26082. break
  26083. if fid == 0:
  26084. if ftype == TType.BOOL:
  26085. self.success = iprot.readBool()
  26086. else:
  26087. iprot.skip(ftype)
  26088. elif fid == 1:
  26089. if ftype == TType.STRUCT:
  26090. self.o1 = MetaException()
  26091. self.o1.read(iprot)
  26092. else:
  26093. iprot.skip(ftype)
  26094. else:
  26095. iprot.skip(ftype)
  26096. iprot.readFieldEnd()
  26097. iprot.readStructEnd()
  26098. def write(self, oprot):
  26099. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26100. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26101. return
  26102. oprot.writeStructBegin('drop_role_result')
  26103. if self.success is not None:
  26104. oprot.writeFieldBegin('success', TType.BOOL, 0)
  26105. oprot.writeBool(self.success)
  26106. oprot.writeFieldEnd()
  26107. if self.o1 is not None:
  26108. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26109. self.o1.write(oprot)
  26110. oprot.writeFieldEnd()
  26111. oprot.writeFieldStop()
  26112. oprot.writeStructEnd()
  26113. def validate(self):
  26114. return
  26115. def __hash__(self):
  26116. value = 17
  26117. value = (value * 31) ^ hash(self.success)
  26118. value = (value * 31) ^ hash(self.o1)
  26119. return value
  26120. def __repr__(self):
  26121. L = ['%s=%r' % (key, value)
  26122. for key, value in self.__dict__.iteritems()]
  26123. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26124. def __eq__(self, other):
  26125. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26126. def __ne__(self, other):
  26127. return not (self == other)
  26128. class get_role_names_args(object):
  26129. thrift_spec = (
  26130. )
  26131. def read(self, iprot):
  26132. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26133. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26134. return
  26135. iprot.readStructBegin()
  26136. while True:
  26137. (fname, ftype, fid) = iprot.readFieldBegin()
  26138. if ftype == TType.STOP:
  26139. break
  26140. else:
  26141. iprot.skip(ftype)
  26142. iprot.readFieldEnd()
  26143. iprot.readStructEnd()
  26144. def write(self, oprot):
  26145. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26146. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26147. return
  26148. oprot.writeStructBegin('get_role_names_args')
  26149. oprot.writeFieldStop()
  26150. oprot.writeStructEnd()
  26151. def validate(self):
  26152. return
  26153. def __hash__(self):
  26154. value = 17
  26155. return value
  26156. def __repr__(self):
  26157. L = ['%s=%r' % (key, value)
  26158. for key, value in self.__dict__.iteritems()]
  26159. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26160. def __eq__(self, other):
  26161. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26162. def __ne__(self, other):
  26163. return not (self == other)
  26164. class get_role_names_result(object):
  26165. """
  26166. Attributes:
  26167. - success
  26168. - o1
  26169. """
  26170. thrift_spec = (
  26171. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  26172. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  26173. )
  26174. def __init__(self, success=None, o1=None,):
  26175. self.success = success
  26176. self.o1 = o1
  26177. def read(self, iprot):
  26178. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26179. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26180. return
  26181. iprot.readStructBegin()
  26182. while True:
  26183. (fname, ftype, fid) = iprot.readFieldBegin()
  26184. if ftype == TType.STOP:
  26185. break
  26186. if fid == 0:
  26187. if ftype == TType.LIST:
  26188. self.success = []
  26189. (_etype994, _size991) = iprot.readListBegin()
  26190. for _i995 in xrange(_size991):
  26191. _elem996 = iprot.readString()
  26192. self.success.append(_elem996)
  26193. iprot.readListEnd()
  26194. else:
  26195. iprot.skip(ftype)
  26196. elif fid == 1:
  26197. if ftype == TType.STRUCT:
  26198. self.o1 = MetaException()
  26199. self.o1.read(iprot)
  26200. else:
  26201. iprot.skip(ftype)
  26202. else:
  26203. iprot.skip(ftype)
  26204. iprot.readFieldEnd()
  26205. iprot.readStructEnd()
  26206. def write(self, oprot):
  26207. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26208. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26209. return
  26210. oprot.writeStructBegin('get_role_names_result')
  26211. if self.success is not None:
  26212. oprot.writeFieldBegin('success', TType.LIST, 0)
  26213. oprot.writeListBegin(TType.STRING, len(self.success))
  26214. for iter997 in self.success:
  26215. oprot.writeString(iter997)
  26216. oprot.writeListEnd()
  26217. oprot.writeFieldEnd()
  26218. if self.o1 is not None:
  26219. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26220. self.o1.write(oprot)
  26221. oprot.writeFieldEnd()
  26222. oprot.writeFieldStop()
  26223. oprot.writeStructEnd()
  26224. def validate(self):
  26225. return
  26226. def __hash__(self):
  26227. value = 17
  26228. value = (value * 31) ^ hash(self.success)
  26229. value = (value * 31) ^ hash(self.o1)
  26230. return value
  26231. def __repr__(self):
  26232. L = ['%s=%r' % (key, value)
  26233. for key, value in self.__dict__.iteritems()]
  26234. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26235. def __eq__(self, other):
  26236. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26237. def __ne__(self, other):
  26238. return not (self == other)
  26239. class grant_role_args(object):
  26240. """
  26241. Attributes:
  26242. - role_name
  26243. - principal_name
  26244. - principal_type
  26245. - grantor
  26246. - grantorType
  26247. - grant_option
  26248. """
  26249. thrift_spec = (
  26250. None, # 0
  26251. (1, TType.STRING, 'role_name', None, None, ), # 1
  26252. (2, TType.STRING, 'principal_name', None, None, ), # 2
  26253. (3, TType.I32, 'principal_type', None, None, ), # 3
  26254. (4, TType.STRING, 'grantor', None, None, ), # 4
  26255. (5, TType.I32, 'grantorType', None, None, ), # 5
  26256. (6, TType.BOOL, 'grant_option', None, None, ), # 6
  26257. )
  26258. def __init__(self, role_name=None, principal_name=None, principal_type=None, grantor=None, grantorType=None, grant_option=None,):
  26259. self.role_name = role_name
  26260. self.principal_name = principal_name
  26261. self.principal_type = principal_type
  26262. self.grantor = grantor
  26263. self.grantorType = grantorType
  26264. self.grant_option = grant_option
  26265. def read(self, iprot):
  26266. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26267. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26268. return
  26269. iprot.readStructBegin()
  26270. while True:
  26271. (fname, ftype, fid) = iprot.readFieldBegin()
  26272. if ftype == TType.STOP:
  26273. break
  26274. if fid == 1:
  26275. if ftype == TType.STRING:
  26276. self.role_name = iprot.readString()
  26277. else:
  26278. iprot.skip(ftype)
  26279. elif fid == 2:
  26280. if ftype == TType.STRING:
  26281. self.principal_name = iprot.readString()
  26282. else:
  26283. iprot.skip(ftype)
  26284. elif fid == 3:
  26285. if ftype == TType.I32:
  26286. self.principal_type = iprot.readI32()
  26287. else:
  26288. iprot.skip(ftype)
  26289. elif fid == 4:
  26290. if ftype == TType.STRING:
  26291. self.grantor = iprot.readString()
  26292. else:
  26293. iprot.skip(ftype)
  26294. elif fid == 5:
  26295. if ftype == TType.I32:
  26296. self.grantorType = iprot.readI32()
  26297. else:
  26298. iprot.skip(ftype)
  26299. elif fid == 6:
  26300. if ftype == TType.BOOL:
  26301. self.grant_option = iprot.readBool()
  26302. else:
  26303. iprot.skip(ftype)
  26304. else:
  26305. iprot.skip(ftype)
  26306. iprot.readFieldEnd()
  26307. iprot.readStructEnd()
  26308. def write(self, oprot):
  26309. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26310. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26311. return
  26312. oprot.writeStructBegin('grant_role_args')
  26313. if self.role_name is not None:
  26314. oprot.writeFieldBegin('role_name', TType.STRING, 1)
  26315. oprot.writeString(self.role_name)
  26316. oprot.writeFieldEnd()
  26317. if self.principal_name is not None:
  26318. oprot.writeFieldBegin('principal_name', TType.STRING, 2)
  26319. oprot.writeString(self.principal_name)
  26320. oprot.writeFieldEnd()
  26321. if self.principal_type is not None:
  26322. oprot.writeFieldBegin('principal_type', TType.I32, 3)
  26323. oprot.writeI32(self.principal_type)
  26324. oprot.writeFieldEnd()
  26325. if self.grantor is not None:
  26326. oprot.writeFieldBegin('grantor', TType.STRING, 4)
  26327. oprot.writeString(self.grantor)
  26328. oprot.writeFieldEnd()
  26329. if self.grantorType is not None:
  26330. oprot.writeFieldBegin('grantorType', TType.I32, 5)
  26331. oprot.writeI32(self.grantorType)
  26332. oprot.writeFieldEnd()
  26333. if self.grant_option is not None:
  26334. oprot.writeFieldBegin('grant_option', TType.BOOL, 6)
  26335. oprot.writeBool(self.grant_option)
  26336. oprot.writeFieldEnd()
  26337. oprot.writeFieldStop()
  26338. oprot.writeStructEnd()
  26339. def validate(self):
  26340. return
  26341. def __hash__(self):
  26342. value = 17
  26343. value = (value * 31) ^ hash(self.role_name)
  26344. value = (value * 31) ^ hash(self.principal_name)
  26345. value = (value * 31) ^ hash(self.principal_type)
  26346. value = (value * 31) ^ hash(self.grantor)
  26347. value = (value * 31) ^ hash(self.grantorType)
  26348. value = (value * 31) ^ hash(self.grant_option)
  26349. return value
  26350. def __repr__(self):
  26351. L = ['%s=%r' % (key, value)
  26352. for key, value in self.__dict__.iteritems()]
  26353. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26354. def __eq__(self, other):
  26355. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26356. def __ne__(self, other):
  26357. return not (self == other)
  26358. class grant_role_result(object):
  26359. """
  26360. Attributes:
  26361. - success
  26362. - o1
  26363. """
  26364. thrift_spec = (
  26365. (0, TType.BOOL, 'success', None, None, ), # 0
  26366. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  26367. )
  26368. def __init__(self, success=None, o1=None,):
  26369. self.success = success
  26370. self.o1 = o1
  26371. def read(self, iprot):
  26372. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26373. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26374. return
  26375. iprot.readStructBegin()
  26376. while True:
  26377. (fname, ftype, fid) = iprot.readFieldBegin()
  26378. if ftype == TType.STOP:
  26379. break
  26380. if fid == 0:
  26381. if ftype == TType.BOOL:
  26382. self.success = iprot.readBool()
  26383. else:
  26384. iprot.skip(ftype)
  26385. elif fid == 1:
  26386. if ftype == TType.STRUCT:
  26387. self.o1 = MetaException()
  26388. self.o1.read(iprot)
  26389. else:
  26390. iprot.skip(ftype)
  26391. else:
  26392. iprot.skip(ftype)
  26393. iprot.readFieldEnd()
  26394. iprot.readStructEnd()
  26395. def write(self, oprot):
  26396. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26397. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26398. return
  26399. oprot.writeStructBegin('grant_role_result')
  26400. if self.success is not None:
  26401. oprot.writeFieldBegin('success', TType.BOOL, 0)
  26402. oprot.writeBool(self.success)
  26403. oprot.writeFieldEnd()
  26404. if self.o1 is not None:
  26405. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26406. self.o1.write(oprot)
  26407. oprot.writeFieldEnd()
  26408. oprot.writeFieldStop()
  26409. oprot.writeStructEnd()
  26410. def validate(self):
  26411. return
  26412. def __hash__(self):
  26413. value = 17
  26414. value = (value * 31) ^ hash(self.success)
  26415. value = (value * 31) ^ hash(self.o1)
  26416. return value
  26417. def __repr__(self):
  26418. L = ['%s=%r' % (key, value)
  26419. for key, value in self.__dict__.iteritems()]
  26420. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26421. def __eq__(self, other):
  26422. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26423. def __ne__(self, other):
  26424. return not (self == other)
  26425. class revoke_role_args(object):
  26426. """
  26427. Attributes:
  26428. - role_name
  26429. - principal_name
  26430. - principal_type
  26431. """
  26432. thrift_spec = (
  26433. None, # 0
  26434. (1, TType.STRING, 'role_name', None, None, ), # 1
  26435. (2, TType.STRING, 'principal_name', None, None, ), # 2
  26436. (3, TType.I32, 'principal_type', None, None, ), # 3
  26437. )
  26438. def __init__(self, role_name=None, principal_name=None, principal_type=None,):
  26439. self.role_name = role_name
  26440. self.principal_name = principal_name
  26441. self.principal_type = principal_type
  26442. def read(self, iprot):
  26443. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26444. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26445. return
  26446. iprot.readStructBegin()
  26447. while True:
  26448. (fname, ftype, fid) = iprot.readFieldBegin()
  26449. if ftype == TType.STOP:
  26450. break
  26451. if fid == 1:
  26452. if ftype == TType.STRING:
  26453. self.role_name = iprot.readString()
  26454. else:
  26455. iprot.skip(ftype)
  26456. elif fid == 2:
  26457. if ftype == TType.STRING:
  26458. self.principal_name = iprot.readString()
  26459. else:
  26460. iprot.skip(ftype)
  26461. elif fid == 3:
  26462. if ftype == TType.I32:
  26463. self.principal_type = iprot.readI32()
  26464. else:
  26465. iprot.skip(ftype)
  26466. else:
  26467. iprot.skip(ftype)
  26468. iprot.readFieldEnd()
  26469. iprot.readStructEnd()
  26470. def write(self, oprot):
  26471. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26472. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26473. return
  26474. oprot.writeStructBegin('revoke_role_args')
  26475. if self.role_name is not None:
  26476. oprot.writeFieldBegin('role_name', TType.STRING, 1)
  26477. oprot.writeString(self.role_name)
  26478. oprot.writeFieldEnd()
  26479. if self.principal_name is not None:
  26480. oprot.writeFieldBegin('principal_name', TType.STRING, 2)
  26481. oprot.writeString(self.principal_name)
  26482. oprot.writeFieldEnd()
  26483. if self.principal_type is not None:
  26484. oprot.writeFieldBegin('principal_type', TType.I32, 3)
  26485. oprot.writeI32(self.principal_type)
  26486. oprot.writeFieldEnd()
  26487. oprot.writeFieldStop()
  26488. oprot.writeStructEnd()
  26489. def validate(self):
  26490. return
  26491. def __hash__(self):
  26492. value = 17
  26493. value = (value * 31) ^ hash(self.role_name)
  26494. value = (value * 31) ^ hash(self.principal_name)
  26495. value = (value * 31) ^ hash(self.principal_type)
  26496. return value
  26497. def __repr__(self):
  26498. L = ['%s=%r' % (key, value)
  26499. for key, value in self.__dict__.iteritems()]
  26500. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26501. def __eq__(self, other):
  26502. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26503. def __ne__(self, other):
  26504. return not (self == other)
  26505. class revoke_role_result(object):
  26506. """
  26507. Attributes:
  26508. - success
  26509. - o1
  26510. """
  26511. thrift_spec = (
  26512. (0, TType.BOOL, 'success', None, None, ), # 0
  26513. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  26514. )
  26515. def __init__(self, success=None, o1=None,):
  26516. self.success = success
  26517. self.o1 = o1
  26518. def read(self, iprot):
  26519. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26520. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26521. return
  26522. iprot.readStructBegin()
  26523. while True:
  26524. (fname, ftype, fid) = iprot.readFieldBegin()
  26525. if ftype == TType.STOP:
  26526. break
  26527. if fid == 0:
  26528. if ftype == TType.BOOL:
  26529. self.success = iprot.readBool()
  26530. else:
  26531. iprot.skip(ftype)
  26532. elif fid == 1:
  26533. if ftype == TType.STRUCT:
  26534. self.o1 = MetaException()
  26535. self.o1.read(iprot)
  26536. else:
  26537. iprot.skip(ftype)
  26538. else:
  26539. iprot.skip(ftype)
  26540. iprot.readFieldEnd()
  26541. iprot.readStructEnd()
  26542. def write(self, oprot):
  26543. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26544. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26545. return
  26546. oprot.writeStructBegin('revoke_role_result')
  26547. if self.success is not None:
  26548. oprot.writeFieldBegin('success', TType.BOOL, 0)
  26549. oprot.writeBool(self.success)
  26550. oprot.writeFieldEnd()
  26551. if self.o1 is not None:
  26552. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26553. self.o1.write(oprot)
  26554. oprot.writeFieldEnd()
  26555. oprot.writeFieldStop()
  26556. oprot.writeStructEnd()
  26557. def validate(self):
  26558. return
  26559. def __hash__(self):
  26560. value = 17
  26561. value = (value * 31) ^ hash(self.success)
  26562. value = (value * 31) ^ hash(self.o1)
  26563. return value
  26564. def __repr__(self):
  26565. L = ['%s=%r' % (key, value)
  26566. for key, value in self.__dict__.iteritems()]
  26567. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26568. def __eq__(self, other):
  26569. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26570. def __ne__(self, other):
  26571. return not (self == other)
  26572. class list_roles_args(object):
  26573. """
  26574. Attributes:
  26575. - principal_name
  26576. - principal_type
  26577. """
  26578. thrift_spec = (
  26579. None, # 0
  26580. (1, TType.STRING, 'principal_name', None, None, ), # 1
  26581. (2, TType.I32, 'principal_type', None, None, ), # 2
  26582. )
  26583. def __init__(self, principal_name=None, principal_type=None,):
  26584. self.principal_name = principal_name
  26585. self.principal_type = principal_type
  26586. def read(self, iprot):
  26587. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26588. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26589. return
  26590. iprot.readStructBegin()
  26591. while True:
  26592. (fname, ftype, fid) = iprot.readFieldBegin()
  26593. if ftype == TType.STOP:
  26594. break
  26595. if fid == 1:
  26596. if ftype == TType.STRING:
  26597. self.principal_name = iprot.readString()
  26598. else:
  26599. iprot.skip(ftype)
  26600. elif fid == 2:
  26601. if ftype == TType.I32:
  26602. self.principal_type = iprot.readI32()
  26603. else:
  26604. iprot.skip(ftype)
  26605. else:
  26606. iprot.skip(ftype)
  26607. iprot.readFieldEnd()
  26608. iprot.readStructEnd()
  26609. def write(self, oprot):
  26610. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26611. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26612. return
  26613. oprot.writeStructBegin('list_roles_args')
  26614. if self.principal_name is not None:
  26615. oprot.writeFieldBegin('principal_name', TType.STRING, 1)
  26616. oprot.writeString(self.principal_name)
  26617. oprot.writeFieldEnd()
  26618. if self.principal_type is not None:
  26619. oprot.writeFieldBegin('principal_type', TType.I32, 2)
  26620. oprot.writeI32(self.principal_type)
  26621. oprot.writeFieldEnd()
  26622. oprot.writeFieldStop()
  26623. oprot.writeStructEnd()
  26624. def validate(self):
  26625. return
  26626. def __hash__(self):
  26627. value = 17
  26628. value = (value * 31) ^ hash(self.principal_name)
  26629. value = (value * 31) ^ hash(self.principal_type)
  26630. return value
  26631. def __repr__(self):
  26632. L = ['%s=%r' % (key, value)
  26633. for key, value in self.__dict__.iteritems()]
  26634. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26635. def __eq__(self, other):
  26636. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26637. def __ne__(self, other):
  26638. return not (self == other)
  26639. class list_roles_result(object):
  26640. """
  26641. Attributes:
  26642. - success
  26643. - o1
  26644. """
  26645. thrift_spec = (
  26646. (0, TType.LIST, 'success', (TType.STRUCT,(Role, Role.thrift_spec)), None, ), # 0
  26647. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  26648. )
  26649. def __init__(self, success=None, o1=None,):
  26650. self.success = success
  26651. self.o1 = o1
  26652. def read(self, iprot):
  26653. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26654. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26655. return
  26656. iprot.readStructBegin()
  26657. while True:
  26658. (fname, ftype, fid) = iprot.readFieldBegin()
  26659. if ftype == TType.STOP:
  26660. break
  26661. if fid == 0:
  26662. if ftype == TType.LIST:
  26663. self.success = []
  26664. (_etype1001, _size998) = iprot.readListBegin()
  26665. for _i1002 in xrange(_size998):
  26666. _elem1003 = Role()
  26667. _elem1003.read(iprot)
  26668. self.success.append(_elem1003)
  26669. iprot.readListEnd()
  26670. else:
  26671. iprot.skip(ftype)
  26672. elif fid == 1:
  26673. if ftype == TType.STRUCT:
  26674. self.o1 = MetaException()
  26675. self.o1.read(iprot)
  26676. else:
  26677. iprot.skip(ftype)
  26678. else:
  26679. iprot.skip(ftype)
  26680. iprot.readFieldEnd()
  26681. iprot.readStructEnd()
  26682. def write(self, oprot):
  26683. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26684. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26685. return
  26686. oprot.writeStructBegin('list_roles_result')
  26687. if self.success is not None:
  26688. oprot.writeFieldBegin('success', TType.LIST, 0)
  26689. oprot.writeListBegin(TType.STRUCT, len(self.success))
  26690. for iter1004 in self.success:
  26691. iter1004.write(oprot)
  26692. oprot.writeListEnd()
  26693. oprot.writeFieldEnd()
  26694. if self.o1 is not None:
  26695. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26696. self.o1.write(oprot)
  26697. oprot.writeFieldEnd()
  26698. oprot.writeFieldStop()
  26699. oprot.writeStructEnd()
  26700. def validate(self):
  26701. return
  26702. def __hash__(self):
  26703. value = 17
  26704. value = (value * 31) ^ hash(self.success)
  26705. value = (value * 31) ^ hash(self.o1)
  26706. return value
  26707. def __repr__(self):
  26708. L = ['%s=%r' % (key, value)
  26709. for key, value in self.__dict__.iteritems()]
  26710. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26711. def __eq__(self, other):
  26712. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26713. def __ne__(self, other):
  26714. return not (self == other)
  26715. class grant_revoke_role_args(object):
  26716. """
  26717. Attributes:
  26718. - request
  26719. """
  26720. thrift_spec = (
  26721. None, # 0
  26722. (1, TType.STRUCT, 'request', (GrantRevokeRoleRequest, GrantRevokeRoleRequest.thrift_spec), None, ), # 1
  26723. )
  26724. def __init__(self, request=None,):
  26725. self.request = request
  26726. def read(self, iprot):
  26727. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26728. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26729. return
  26730. iprot.readStructBegin()
  26731. while True:
  26732. (fname, ftype, fid) = iprot.readFieldBegin()
  26733. if ftype == TType.STOP:
  26734. break
  26735. if fid == 1:
  26736. if ftype == TType.STRUCT:
  26737. self.request = GrantRevokeRoleRequest()
  26738. self.request.read(iprot)
  26739. else:
  26740. iprot.skip(ftype)
  26741. else:
  26742. iprot.skip(ftype)
  26743. iprot.readFieldEnd()
  26744. iprot.readStructEnd()
  26745. def write(self, oprot):
  26746. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26747. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26748. return
  26749. oprot.writeStructBegin('grant_revoke_role_args')
  26750. if self.request is not None:
  26751. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  26752. self.request.write(oprot)
  26753. oprot.writeFieldEnd()
  26754. oprot.writeFieldStop()
  26755. oprot.writeStructEnd()
  26756. def validate(self):
  26757. return
  26758. def __hash__(self):
  26759. value = 17
  26760. value = (value * 31) ^ hash(self.request)
  26761. return value
  26762. def __repr__(self):
  26763. L = ['%s=%r' % (key, value)
  26764. for key, value in self.__dict__.iteritems()]
  26765. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26766. def __eq__(self, other):
  26767. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26768. def __ne__(self, other):
  26769. return not (self == other)
  26770. class grant_revoke_role_result(object):
  26771. """
  26772. Attributes:
  26773. - success
  26774. - o1
  26775. """
  26776. thrift_spec = (
  26777. (0, TType.STRUCT, 'success', (GrantRevokeRoleResponse, GrantRevokeRoleResponse.thrift_spec), None, ), # 0
  26778. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  26779. )
  26780. def __init__(self, success=None, o1=None,):
  26781. self.success = success
  26782. self.o1 = o1
  26783. def read(self, iprot):
  26784. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26785. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26786. return
  26787. iprot.readStructBegin()
  26788. while True:
  26789. (fname, ftype, fid) = iprot.readFieldBegin()
  26790. if ftype == TType.STOP:
  26791. break
  26792. if fid == 0:
  26793. if ftype == TType.STRUCT:
  26794. self.success = GrantRevokeRoleResponse()
  26795. self.success.read(iprot)
  26796. else:
  26797. iprot.skip(ftype)
  26798. elif fid == 1:
  26799. if ftype == TType.STRUCT:
  26800. self.o1 = MetaException()
  26801. self.o1.read(iprot)
  26802. else:
  26803. iprot.skip(ftype)
  26804. else:
  26805. iprot.skip(ftype)
  26806. iprot.readFieldEnd()
  26807. iprot.readStructEnd()
  26808. def write(self, oprot):
  26809. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26810. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26811. return
  26812. oprot.writeStructBegin('grant_revoke_role_result')
  26813. if self.success is not None:
  26814. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  26815. self.success.write(oprot)
  26816. oprot.writeFieldEnd()
  26817. if self.o1 is not None:
  26818. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26819. self.o1.write(oprot)
  26820. oprot.writeFieldEnd()
  26821. oprot.writeFieldStop()
  26822. oprot.writeStructEnd()
  26823. def validate(self):
  26824. return
  26825. def __hash__(self):
  26826. value = 17
  26827. value = (value * 31) ^ hash(self.success)
  26828. value = (value * 31) ^ hash(self.o1)
  26829. return value
  26830. def __repr__(self):
  26831. L = ['%s=%r' % (key, value)
  26832. for key, value in self.__dict__.iteritems()]
  26833. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26834. def __eq__(self, other):
  26835. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26836. def __ne__(self, other):
  26837. return not (self == other)
  26838. class get_principals_in_role_args(object):
  26839. """
  26840. Attributes:
  26841. - request
  26842. """
  26843. thrift_spec = (
  26844. None, # 0
  26845. (1, TType.STRUCT, 'request', (GetPrincipalsInRoleRequest, GetPrincipalsInRoleRequest.thrift_spec), None, ), # 1
  26846. )
  26847. def __init__(self, request=None,):
  26848. self.request = request
  26849. def read(self, iprot):
  26850. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26851. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26852. return
  26853. iprot.readStructBegin()
  26854. while True:
  26855. (fname, ftype, fid) = iprot.readFieldBegin()
  26856. if ftype == TType.STOP:
  26857. break
  26858. if fid == 1:
  26859. if ftype == TType.STRUCT:
  26860. self.request = GetPrincipalsInRoleRequest()
  26861. self.request.read(iprot)
  26862. else:
  26863. iprot.skip(ftype)
  26864. else:
  26865. iprot.skip(ftype)
  26866. iprot.readFieldEnd()
  26867. iprot.readStructEnd()
  26868. def write(self, oprot):
  26869. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26870. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26871. return
  26872. oprot.writeStructBegin('get_principals_in_role_args')
  26873. if self.request is not None:
  26874. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  26875. self.request.write(oprot)
  26876. oprot.writeFieldEnd()
  26877. oprot.writeFieldStop()
  26878. oprot.writeStructEnd()
  26879. def validate(self):
  26880. return
  26881. def __hash__(self):
  26882. value = 17
  26883. value = (value * 31) ^ hash(self.request)
  26884. return value
  26885. def __repr__(self):
  26886. L = ['%s=%r' % (key, value)
  26887. for key, value in self.__dict__.iteritems()]
  26888. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26889. def __eq__(self, other):
  26890. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26891. def __ne__(self, other):
  26892. return not (self == other)
  26893. class get_principals_in_role_result(object):
  26894. """
  26895. Attributes:
  26896. - success
  26897. - o1
  26898. """
  26899. thrift_spec = (
  26900. (0, TType.STRUCT, 'success', (GetPrincipalsInRoleResponse, GetPrincipalsInRoleResponse.thrift_spec), None, ), # 0
  26901. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  26902. )
  26903. def __init__(self, success=None, o1=None,):
  26904. self.success = success
  26905. self.o1 = o1
  26906. def read(self, iprot):
  26907. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26908. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26909. return
  26910. iprot.readStructBegin()
  26911. while True:
  26912. (fname, ftype, fid) = iprot.readFieldBegin()
  26913. if ftype == TType.STOP:
  26914. break
  26915. if fid == 0:
  26916. if ftype == TType.STRUCT:
  26917. self.success = GetPrincipalsInRoleResponse()
  26918. self.success.read(iprot)
  26919. else:
  26920. iprot.skip(ftype)
  26921. elif fid == 1:
  26922. if ftype == TType.STRUCT:
  26923. self.o1 = MetaException()
  26924. self.o1.read(iprot)
  26925. else:
  26926. iprot.skip(ftype)
  26927. else:
  26928. iprot.skip(ftype)
  26929. iprot.readFieldEnd()
  26930. iprot.readStructEnd()
  26931. def write(self, oprot):
  26932. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26933. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26934. return
  26935. oprot.writeStructBegin('get_principals_in_role_result')
  26936. if self.success is not None:
  26937. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  26938. self.success.write(oprot)
  26939. oprot.writeFieldEnd()
  26940. if self.o1 is not None:
  26941. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26942. self.o1.write(oprot)
  26943. oprot.writeFieldEnd()
  26944. oprot.writeFieldStop()
  26945. oprot.writeStructEnd()
  26946. def validate(self):
  26947. return
  26948. def __hash__(self):
  26949. value = 17
  26950. value = (value * 31) ^ hash(self.success)
  26951. value = (value * 31) ^ hash(self.o1)
  26952. return value
  26953. def __repr__(self):
  26954. L = ['%s=%r' % (key, value)
  26955. for key, value in self.__dict__.iteritems()]
  26956. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26957. def __eq__(self, other):
  26958. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26959. def __ne__(self, other):
  26960. return not (self == other)
  26961. class get_role_grants_for_principal_args(object):
  26962. """
  26963. Attributes:
  26964. - request
  26965. """
  26966. thrift_spec = (
  26967. None, # 0
  26968. (1, TType.STRUCT, 'request', (GetRoleGrantsForPrincipalRequest, GetRoleGrantsForPrincipalRequest.thrift_spec), None, ), # 1
  26969. )
  26970. def __init__(self, request=None,):
  26971. self.request = request
  26972. def read(self, iprot):
  26973. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  26974. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  26975. return
  26976. iprot.readStructBegin()
  26977. while True:
  26978. (fname, ftype, fid) = iprot.readFieldBegin()
  26979. if ftype == TType.STOP:
  26980. break
  26981. if fid == 1:
  26982. if ftype == TType.STRUCT:
  26983. self.request = GetRoleGrantsForPrincipalRequest()
  26984. self.request.read(iprot)
  26985. else:
  26986. iprot.skip(ftype)
  26987. else:
  26988. iprot.skip(ftype)
  26989. iprot.readFieldEnd()
  26990. iprot.readStructEnd()
  26991. def write(self, oprot):
  26992. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  26993. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  26994. return
  26995. oprot.writeStructBegin('get_role_grants_for_principal_args')
  26996. if self.request is not None:
  26997. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  26998. self.request.write(oprot)
  26999. oprot.writeFieldEnd()
  27000. oprot.writeFieldStop()
  27001. oprot.writeStructEnd()
  27002. def validate(self):
  27003. return
  27004. def __hash__(self):
  27005. value = 17
  27006. value = (value * 31) ^ hash(self.request)
  27007. return value
  27008. def __repr__(self):
  27009. L = ['%s=%r' % (key, value)
  27010. for key, value in self.__dict__.iteritems()]
  27011. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27012. def __eq__(self, other):
  27013. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27014. def __ne__(self, other):
  27015. return not (self == other)
  27016. class get_role_grants_for_principal_result(object):
  27017. """
  27018. Attributes:
  27019. - success
  27020. - o1
  27021. """
  27022. thrift_spec = (
  27023. (0, TType.STRUCT, 'success', (GetRoleGrantsForPrincipalResponse, GetRoleGrantsForPrincipalResponse.thrift_spec), None, ), # 0
  27024. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  27025. )
  27026. def __init__(self, success=None, o1=None,):
  27027. self.success = success
  27028. self.o1 = o1
  27029. def read(self, iprot):
  27030. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27031. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27032. return
  27033. iprot.readStructBegin()
  27034. while True:
  27035. (fname, ftype, fid) = iprot.readFieldBegin()
  27036. if ftype == TType.STOP:
  27037. break
  27038. if fid == 0:
  27039. if ftype == TType.STRUCT:
  27040. self.success = GetRoleGrantsForPrincipalResponse()
  27041. self.success.read(iprot)
  27042. else:
  27043. iprot.skip(ftype)
  27044. elif fid == 1:
  27045. if ftype == TType.STRUCT:
  27046. self.o1 = MetaException()
  27047. self.o1.read(iprot)
  27048. else:
  27049. iprot.skip(ftype)
  27050. else:
  27051. iprot.skip(ftype)
  27052. iprot.readFieldEnd()
  27053. iprot.readStructEnd()
  27054. def write(self, oprot):
  27055. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27056. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27057. return
  27058. oprot.writeStructBegin('get_role_grants_for_principal_result')
  27059. if self.success is not None:
  27060. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  27061. self.success.write(oprot)
  27062. oprot.writeFieldEnd()
  27063. if self.o1 is not None:
  27064. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27065. self.o1.write(oprot)
  27066. oprot.writeFieldEnd()
  27067. oprot.writeFieldStop()
  27068. oprot.writeStructEnd()
  27069. def validate(self):
  27070. return
  27071. def __hash__(self):
  27072. value = 17
  27073. value = (value * 31) ^ hash(self.success)
  27074. value = (value * 31) ^ hash(self.o1)
  27075. return value
  27076. def __repr__(self):
  27077. L = ['%s=%r' % (key, value)
  27078. for key, value in self.__dict__.iteritems()]
  27079. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27080. def __eq__(self, other):
  27081. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27082. def __ne__(self, other):
  27083. return not (self == other)
  27084. class get_privilege_set_args(object):
  27085. """
  27086. Attributes:
  27087. - hiveObject
  27088. - user_name
  27089. - group_names
  27090. """
  27091. thrift_spec = (
  27092. None, # 0
  27093. (1, TType.STRUCT, 'hiveObject', (HiveObjectRef, HiveObjectRef.thrift_spec), None, ), # 1
  27094. (2, TType.STRING, 'user_name', None, None, ), # 2
  27095. (3, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 3
  27096. )
  27097. def __init__(self, hiveObject=None, user_name=None, group_names=None,):
  27098. self.hiveObject = hiveObject
  27099. self.user_name = user_name
  27100. self.group_names = group_names
  27101. def read(self, iprot):
  27102. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27103. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27104. return
  27105. iprot.readStructBegin()
  27106. while True:
  27107. (fname, ftype, fid) = iprot.readFieldBegin()
  27108. if ftype == TType.STOP:
  27109. break
  27110. if fid == 1:
  27111. if ftype == TType.STRUCT:
  27112. self.hiveObject = HiveObjectRef()
  27113. self.hiveObject.read(iprot)
  27114. else:
  27115. iprot.skip(ftype)
  27116. elif fid == 2:
  27117. if ftype == TType.STRING:
  27118. self.user_name = iprot.readString()
  27119. else:
  27120. iprot.skip(ftype)
  27121. elif fid == 3:
  27122. if ftype == TType.LIST:
  27123. self.group_names = []
  27124. (_etype1008, _size1005) = iprot.readListBegin()
  27125. for _i1009 in xrange(_size1005):
  27126. _elem1010 = iprot.readString()
  27127. self.group_names.append(_elem1010)
  27128. iprot.readListEnd()
  27129. else:
  27130. iprot.skip(ftype)
  27131. else:
  27132. iprot.skip(ftype)
  27133. iprot.readFieldEnd()
  27134. iprot.readStructEnd()
  27135. def write(self, oprot):
  27136. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27137. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27138. return
  27139. oprot.writeStructBegin('get_privilege_set_args')
  27140. if self.hiveObject is not None:
  27141. oprot.writeFieldBegin('hiveObject', TType.STRUCT, 1)
  27142. self.hiveObject.write(oprot)
  27143. oprot.writeFieldEnd()
  27144. if self.user_name is not None:
  27145. oprot.writeFieldBegin('user_name', TType.STRING, 2)
  27146. oprot.writeString(self.user_name)
  27147. oprot.writeFieldEnd()
  27148. if self.group_names is not None:
  27149. oprot.writeFieldBegin('group_names', TType.LIST, 3)
  27150. oprot.writeListBegin(TType.STRING, len(self.group_names))
  27151. for iter1011 in self.group_names:
  27152. oprot.writeString(iter1011)
  27153. oprot.writeListEnd()
  27154. oprot.writeFieldEnd()
  27155. oprot.writeFieldStop()
  27156. oprot.writeStructEnd()
  27157. def validate(self):
  27158. return
  27159. def __hash__(self):
  27160. value = 17
  27161. value = (value * 31) ^ hash(self.hiveObject)
  27162. value = (value * 31) ^ hash(self.user_name)
  27163. value = (value * 31) ^ hash(self.group_names)
  27164. return value
  27165. def __repr__(self):
  27166. L = ['%s=%r' % (key, value)
  27167. for key, value in self.__dict__.iteritems()]
  27168. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27169. def __eq__(self, other):
  27170. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27171. def __ne__(self, other):
  27172. return not (self == other)
  27173. class get_privilege_set_result(object):
  27174. """
  27175. Attributes:
  27176. - success
  27177. - o1
  27178. """
  27179. thrift_spec = (
  27180. (0, TType.STRUCT, 'success', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 0
  27181. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  27182. )
  27183. def __init__(self, success=None, o1=None,):
  27184. self.success = success
  27185. self.o1 = o1
  27186. def read(self, iprot):
  27187. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27188. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27189. return
  27190. iprot.readStructBegin()
  27191. while True:
  27192. (fname, ftype, fid) = iprot.readFieldBegin()
  27193. if ftype == TType.STOP:
  27194. break
  27195. if fid == 0:
  27196. if ftype == TType.STRUCT:
  27197. self.success = PrincipalPrivilegeSet()
  27198. self.success.read(iprot)
  27199. else:
  27200. iprot.skip(ftype)
  27201. elif fid == 1:
  27202. if ftype == TType.STRUCT:
  27203. self.o1 = MetaException()
  27204. self.o1.read(iprot)
  27205. else:
  27206. iprot.skip(ftype)
  27207. else:
  27208. iprot.skip(ftype)
  27209. iprot.readFieldEnd()
  27210. iprot.readStructEnd()
  27211. def write(self, oprot):
  27212. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27213. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27214. return
  27215. oprot.writeStructBegin('get_privilege_set_result')
  27216. if self.success is not None:
  27217. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  27218. self.success.write(oprot)
  27219. oprot.writeFieldEnd()
  27220. if self.o1 is not None:
  27221. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27222. self.o1.write(oprot)
  27223. oprot.writeFieldEnd()
  27224. oprot.writeFieldStop()
  27225. oprot.writeStructEnd()
  27226. def validate(self):
  27227. return
  27228. def __hash__(self):
  27229. value = 17
  27230. value = (value * 31) ^ hash(self.success)
  27231. value = (value * 31) ^ hash(self.o1)
  27232. return value
  27233. def __repr__(self):
  27234. L = ['%s=%r' % (key, value)
  27235. for key, value in self.__dict__.iteritems()]
  27236. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27237. def __eq__(self, other):
  27238. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27239. def __ne__(self, other):
  27240. return not (self == other)
  27241. class list_privileges_args(object):
  27242. """
  27243. Attributes:
  27244. - principal_name
  27245. - principal_type
  27246. - hiveObject
  27247. """
  27248. thrift_spec = (
  27249. None, # 0
  27250. (1, TType.STRING, 'principal_name', None, None, ), # 1
  27251. (2, TType.I32, 'principal_type', None, None, ), # 2
  27252. (3, TType.STRUCT, 'hiveObject', (HiveObjectRef, HiveObjectRef.thrift_spec), None, ), # 3
  27253. )
  27254. def __init__(self, principal_name=None, principal_type=None, hiveObject=None,):
  27255. self.principal_name = principal_name
  27256. self.principal_type = principal_type
  27257. self.hiveObject = hiveObject
  27258. def read(self, iprot):
  27259. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27260. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27261. return
  27262. iprot.readStructBegin()
  27263. while True:
  27264. (fname, ftype, fid) = iprot.readFieldBegin()
  27265. if ftype == TType.STOP:
  27266. break
  27267. if fid == 1:
  27268. if ftype == TType.STRING:
  27269. self.principal_name = iprot.readString()
  27270. else:
  27271. iprot.skip(ftype)
  27272. elif fid == 2:
  27273. if ftype == TType.I32:
  27274. self.principal_type = iprot.readI32()
  27275. else:
  27276. iprot.skip(ftype)
  27277. elif fid == 3:
  27278. if ftype == TType.STRUCT:
  27279. self.hiveObject = HiveObjectRef()
  27280. self.hiveObject.read(iprot)
  27281. else:
  27282. iprot.skip(ftype)
  27283. else:
  27284. iprot.skip(ftype)
  27285. iprot.readFieldEnd()
  27286. iprot.readStructEnd()
  27287. def write(self, oprot):
  27288. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27289. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27290. return
  27291. oprot.writeStructBegin('list_privileges_args')
  27292. if self.principal_name is not None:
  27293. oprot.writeFieldBegin('principal_name', TType.STRING, 1)
  27294. oprot.writeString(self.principal_name)
  27295. oprot.writeFieldEnd()
  27296. if self.principal_type is not None:
  27297. oprot.writeFieldBegin('principal_type', TType.I32, 2)
  27298. oprot.writeI32(self.principal_type)
  27299. oprot.writeFieldEnd()
  27300. if self.hiveObject is not None:
  27301. oprot.writeFieldBegin('hiveObject', TType.STRUCT, 3)
  27302. self.hiveObject.write(oprot)
  27303. oprot.writeFieldEnd()
  27304. oprot.writeFieldStop()
  27305. oprot.writeStructEnd()
  27306. def validate(self):
  27307. return
  27308. def __hash__(self):
  27309. value = 17
  27310. value = (value * 31) ^ hash(self.principal_name)
  27311. value = (value * 31) ^ hash(self.principal_type)
  27312. value = (value * 31) ^ hash(self.hiveObject)
  27313. return value
  27314. def __repr__(self):
  27315. L = ['%s=%r' % (key, value)
  27316. for key, value in self.__dict__.iteritems()]
  27317. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27318. def __eq__(self, other):
  27319. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27320. def __ne__(self, other):
  27321. return not (self == other)
  27322. class list_privileges_result(object):
  27323. """
  27324. Attributes:
  27325. - success
  27326. - o1
  27327. """
  27328. thrift_spec = (
  27329. (0, TType.LIST, 'success', (TType.STRUCT,(HiveObjectPrivilege, HiveObjectPrivilege.thrift_spec)), None, ), # 0
  27330. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  27331. )
  27332. def __init__(self, success=None, o1=None,):
  27333. self.success = success
  27334. self.o1 = o1
  27335. def read(self, iprot):
  27336. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27337. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27338. return
  27339. iprot.readStructBegin()
  27340. while True:
  27341. (fname, ftype, fid) = iprot.readFieldBegin()
  27342. if ftype == TType.STOP:
  27343. break
  27344. if fid == 0:
  27345. if ftype == TType.LIST:
  27346. self.success = []
  27347. (_etype1015, _size1012) = iprot.readListBegin()
  27348. for _i1016 in xrange(_size1012):
  27349. _elem1017 = HiveObjectPrivilege()
  27350. _elem1017.read(iprot)
  27351. self.success.append(_elem1017)
  27352. iprot.readListEnd()
  27353. else:
  27354. iprot.skip(ftype)
  27355. elif fid == 1:
  27356. if ftype == TType.STRUCT:
  27357. self.o1 = MetaException()
  27358. self.o1.read(iprot)
  27359. else:
  27360. iprot.skip(ftype)
  27361. else:
  27362. iprot.skip(ftype)
  27363. iprot.readFieldEnd()
  27364. iprot.readStructEnd()
  27365. def write(self, oprot):
  27366. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27367. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27368. return
  27369. oprot.writeStructBegin('list_privileges_result')
  27370. if self.success is not None:
  27371. oprot.writeFieldBegin('success', TType.LIST, 0)
  27372. oprot.writeListBegin(TType.STRUCT, len(self.success))
  27373. for iter1018 in self.success:
  27374. iter1018.write(oprot)
  27375. oprot.writeListEnd()
  27376. oprot.writeFieldEnd()
  27377. if self.o1 is not None:
  27378. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27379. self.o1.write(oprot)
  27380. oprot.writeFieldEnd()
  27381. oprot.writeFieldStop()
  27382. oprot.writeStructEnd()
  27383. def validate(self):
  27384. return
  27385. def __hash__(self):
  27386. value = 17
  27387. value = (value * 31) ^ hash(self.success)
  27388. value = (value * 31) ^ hash(self.o1)
  27389. return value
  27390. def __repr__(self):
  27391. L = ['%s=%r' % (key, value)
  27392. for key, value in self.__dict__.iteritems()]
  27393. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27394. def __eq__(self, other):
  27395. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27396. def __ne__(self, other):
  27397. return not (self == other)
  27398. class grant_privileges_args(object):
  27399. """
  27400. Attributes:
  27401. - privileges
  27402. """
  27403. thrift_spec = (
  27404. None, # 0
  27405. (1, TType.STRUCT, 'privileges', (PrivilegeBag, PrivilegeBag.thrift_spec), None, ), # 1
  27406. )
  27407. def __init__(self, privileges=None,):
  27408. self.privileges = privileges
  27409. def read(self, iprot):
  27410. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27411. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27412. return
  27413. iprot.readStructBegin()
  27414. while True:
  27415. (fname, ftype, fid) = iprot.readFieldBegin()
  27416. if ftype == TType.STOP:
  27417. break
  27418. if fid == 1:
  27419. if ftype == TType.STRUCT:
  27420. self.privileges = PrivilegeBag()
  27421. self.privileges.read(iprot)
  27422. else:
  27423. iprot.skip(ftype)
  27424. else:
  27425. iprot.skip(ftype)
  27426. iprot.readFieldEnd()
  27427. iprot.readStructEnd()
  27428. def write(self, oprot):
  27429. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27430. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27431. return
  27432. oprot.writeStructBegin('grant_privileges_args')
  27433. if self.privileges is not None:
  27434. oprot.writeFieldBegin('privileges', TType.STRUCT, 1)
  27435. self.privileges.write(oprot)
  27436. oprot.writeFieldEnd()
  27437. oprot.writeFieldStop()
  27438. oprot.writeStructEnd()
  27439. def validate(self):
  27440. return
  27441. def __hash__(self):
  27442. value = 17
  27443. value = (value * 31) ^ hash(self.privileges)
  27444. return value
  27445. def __repr__(self):
  27446. L = ['%s=%r' % (key, value)
  27447. for key, value in self.__dict__.iteritems()]
  27448. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27449. def __eq__(self, other):
  27450. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27451. def __ne__(self, other):
  27452. return not (self == other)
  27453. class grant_privileges_result(object):
  27454. """
  27455. Attributes:
  27456. - success
  27457. - o1
  27458. """
  27459. thrift_spec = (
  27460. (0, TType.BOOL, 'success', None, None, ), # 0
  27461. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  27462. )
  27463. def __init__(self, success=None, o1=None,):
  27464. self.success = success
  27465. self.o1 = o1
  27466. def read(self, iprot):
  27467. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27468. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27469. return
  27470. iprot.readStructBegin()
  27471. while True:
  27472. (fname, ftype, fid) = iprot.readFieldBegin()
  27473. if ftype == TType.STOP:
  27474. break
  27475. if fid == 0:
  27476. if ftype == TType.BOOL:
  27477. self.success = iprot.readBool()
  27478. else:
  27479. iprot.skip(ftype)
  27480. elif fid == 1:
  27481. if ftype == TType.STRUCT:
  27482. self.o1 = MetaException()
  27483. self.o1.read(iprot)
  27484. else:
  27485. iprot.skip(ftype)
  27486. else:
  27487. iprot.skip(ftype)
  27488. iprot.readFieldEnd()
  27489. iprot.readStructEnd()
  27490. def write(self, oprot):
  27491. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27492. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27493. return
  27494. oprot.writeStructBegin('grant_privileges_result')
  27495. if self.success is not None:
  27496. oprot.writeFieldBegin('success', TType.BOOL, 0)
  27497. oprot.writeBool(self.success)
  27498. oprot.writeFieldEnd()
  27499. if self.o1 is not None:
  27500. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27501. self.o1.write(oprot)
  27502. oprot.writeFieldEnd()
  27503. oprot.writeFieldStop()
  27504. oprot.writeStructEnd()
  27505. def validate(self):
  27506. return
  27507. def __hash__(self):
  27508. value = 17
  27509. value = (value * 31) ^ hash(self.success)
  27510. value = (value * 31) ^ hash(self.o1)
  27511. return value
  27512. def __repr__(self):
  27513. L = ['%s=%r' % (key, value)
  27514. for key, value in self.__dict__.iteritems()]
  27515. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27516. def __eq__(self, other):
  27517. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27518. def __ne__(self, other):
  27519. return not (self == other)
  27520. class revoke_privileges_args(object):
  27521. """
  27522. Attributes:
  27523. - privileges
  27524. """
  27525. thrift_spec = (
  27526. None, # 0
  27527. (1, TType.STRUCT, 'privileges', (PrivilegeBag, PrivilegeBag.thrift_spec), None, ), # 1
  27528. )
  27529. def __init__(self, privileges=None,):
  27530. self.privileges = privileges
  27531. def read(self, iprot):
  27532. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27533. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27534. return
  27535. iprot.readStructBegin()
  27536. while True:
  27537. (fname, ftype, fid) = iprot.readFieldBegin()
  27538. if ftype == TType.STOP:
  27539. break
  27540. if fid == 1:
  27541. if ftype == TType.STRUCT:
  27542. self.privileges = PrivilegeBag()
  27543. self.privileges.read(iprot)
  27544. else:
  27545. iprot.skip(ftype)
  27546. else:
  27547. iprot.skip(ftype)
  27548. iprot.readFieldEnd()
  27549. iprot.readStructEnd()
  27550. def write(self, oprot):
  27551. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27552. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27553. return
  27554. oprot.writeStructBegin('revoke_privileges_args')
  27555. if self.privileges is not None:
  27556. oprot.writeFieldBegin('privileges', TType.STRUCT, 1)
  27557. self.privileges.write(oprot)
  27558. oprot.writeFieldEnd()
  27559. oprot.writeFieldStop()
  27560. oprot.writeStructEnd()
  27561. def validate(self):
  27562. return
  27563. def __hash__(self):
  27564. value = 17
  27565. value = (value * 31) ^ hash(self.privileges)
  27566. return value
  27567. def __repr__(self):
  27568. L = ['%s=%r' % (key, value)
  27569. for key, value in self.__dict__.iteritems()]
  27570. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27571. def __eq__(self, other):
  27572. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27573. def __ne__(self, other):
  27574. return not (self == other)
  27575. class revoke_privileges_result(object):
  27576. """
  27577. Attributes:
  27578. - success
  27579. - o1
  27580. """
  27581. thrift_spec = (
  27582. (0, TType.BOOL, 'success', None, None, ), # 0
  27583. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  27584. )
  27585. def __init__(self, success=None, o1=None,):
  27586. self.success = success
  27587. self.o1 = o1
  27588. def read(self, iprot):
  27589. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27590. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27591. return
  27592. iprot.readStructBegin()
  27593. while True:
  27594. (fname, ftype, fid) = iprot.readFieldBegin()
  27595. if ftype == TType.STOP:
  27596. break
  27597. if fid == 0:
  27598. if ftype == TType.BOOL:
  27599. self.success = iprot.readBool()
  27600. else:
  27601. iprot.skip(ftype)
  27602. elif fid == 1:
  27603. if ftype == TType.STRUCT:
  27604. self.o1 = MetaException()
  27605. self.o1.read(iprot)
  27606. else:
  27607. iprot.skip(ftype)
  27608. else:
  27609. iprot.skip(ftype)
  27610. iprot.readFieldEnd()
  27611. iprot.readStructEnd()
  27612. def write(self, oprot):
  27613. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27614. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27615. return
  27616. oprot.writeStructBegin('revoke_privileges_result')
  27617. if self.success is not None:
  27618. oprot.writeFieldBegin('success', TType.BOOL, 0)
  27619. oprot.writeBool(self.success)
  27620. oprot.writeFieldEnd()
  27621. if self.o1 is not None:
  27622. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27623. self.o1.write(oprot)
  27624. oprot.writeFieldEnd()
  27625. oprot.writeFieldStop()
  27626. oprot.writeStructEnd()
  27627. def validate(self):
  27628. return
  27629. def __hash__(self):
  27630. value = 17
  27631. value = (value * 31) ^ hash(self.success)
  27632. value = (value * 31) ^ hash(self.o1)
  27633. return value
  27634. def __repr__(self):
  27635. L = ['%s=%r' % (key, value)
  27636. for key, value in self.__dict__.iteritems()]
  27637. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27638. def __eq__(self, other):
  27639. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27640. def __ne__(self, other):
  27641. return not (self == other)
  27642. class grant_revoke_privileges_args(object):
  27643. """
  27644. Attributes:
  27645. - request
  27646. """
  27647. thrift_spec = (
  27648. None, # 0
  27649. (1, TType.STRUCT, 'request', (GrantRevokePrivilegeRequest, GrantRevokePrivilegeRequest.thrift_spec), None, ), # 1
  27650. )
  27651. def __init__(self, request=None,):
  27652. self.request = request
  27653. def read(self, iprot):
  27654. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27655. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27656. return
  27657. iprot.readStructBegin()
  27658. while True:
  27659. (fname, ftype, fid) = iprot.readFieldBegin()
  27660. if ftype == TType.STOP:
  27661. break
  27662. if fid == 1:
  27663. if ftype == TType.STRUCT:
  27664. self.request = GrantRevokePrivilegeRequest()
  27665. self.request.read(iprot)
  27666. else:
  27667. iprot.skip(ftype)
  27668. else:
  27669. iprot.skip(ftype)
  27670. iprot.readFieldEnd()
  27671. iprot.readStructEnd()
  27672. def write(self, oprot):
  27673. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27674. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27675. return
  27676. oprot.writeStructBegin('grant_revoke_privileges_args')
  27677. if self.request is not None:
  27678. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  27679. self.request.write(oprot)
  27680. oprot.writeFieldEnd()
  27681. oprot.writeFieldStop()
  27682. oprot.writeStructEnd()
  27683. def validate(self):
  27684. return
  27685. def __hash__(self):
  27686. value = 17
  27687. value = (value * 31) ^ hash(self.request)
  27688. return value
  27689. def __repr__(self):
  27690. L = ['%s=%r' % (key, value)
  27691. for key, value in self.__dict__.iteritems()]
  27692. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27693. def __eq__(self, other):
  27694. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27695. def __ne__(self, other):
  27696. return not (self == other)
  27697. class grant_revoke_privileges_result(object):
  27698. """
  27699. Attributes:
  27700. - success
  27701. - o1
  27702. """
  27703. thrift_spec = (
  27704. (0, TType.STRUCT, 'success', (GrantRevokePrivilegeResponse, GrantRevokePrivilegeResponse.thrift_spec), None, ), # 0
  27705. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  27706. )
  27707. def __init__(self, success=None, o1=None,):
  27708. self.success = success
  27709. self.o1 = o1
  27710. def read(self, iprot):
  27711. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27712. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27713. return
  27714. iprot.readStructBegin()
  27715. while True:
  27716. (fname, ftype, fid) = iprot.readFieldBegin()
  27717. if ftype == TType.STOP:
  27718. break
  27719. if fid == 0:
  27720. if ftype == TType.STRUCT:
  27721. self.success = GrantRevokePrivilegeResponse()
  27722. self.success.read(iprot)
  27723. else:
  27724. iprot.skip(ftype)
  27725. elif fid == 1:
  27726. if ftype == TType.STRUCT:
  27727. self.o1 = MetaException()
  27728. self.o1.read(iprot)
  27729. else:
  27730. iprot.skip(ftype)
  27731. else:
  27732. iprot.skip(ftype)
  27733. iprot.readFieldEnd()
  27734. iprot.readStructEnd()
  27735. def write(self, oprot):
  27736. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27737. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27738. return
  27739. oprot.writeStructBegin('grant_revoke_privileges_result')
  27740. if self.success is not None:
  27741. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  27742. self.success.write(oprot)
  27743. oprot.writeFieldEnd()
  27744. if self.o1 is not None:
  27745. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27746. self.o1.write(oprot)
  27747. oprot.writeFieldEnd()
  27748. oprot.writeFieldStop()
  27749. oprot.writeStructEnd()
  27750. def validate(self):
  27751. return
  27752. def __hash__(self):
  27753. value = 17
  27754. value = (value * 31) ^ hash(self.success)
  27755. value = (value * 31) ^ hash(self.o1)
  27756. return value
  27757. def __repr__(self):
  27758. L = ['%s=%r' % (key, value)
  27759. for key, value in self.__dict__.iteritems()]
  27760. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27761. def __eq__(self, other):
  27762. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27763. def __ne__(self, other):
  27764. return not (self == other)
  27765. class set_ugi_args(object):
  27766. """
  27767. Attributes:
  27768. - user_name
  27769. - group_names
  27770. """
  27771. thrift_spec = (
  27772. None, # 0
  27773. (1, TType.STRING, 'user_name', None, None, ), # 1
  27774. (2, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 2
  27775. )
  27776. def __init__(self, user_name=None, group_names=None,):
  27777. self.user_name = user_name
  27778. self.group_names = group_names
  27779. def read(self, iprot):
  27780. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27781. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27782. return
  27783. iprot.readStructBegin()
  27784. while True:
  27785. (fname, ftype, fid) = iprot.readFieldBegin()
  27786. if ftype == TType.STOP:
  27787. break
  27788. if fid == 1:
  27789. if ftype == TType.STRING:
  27790. self.user_name = iprot.readString()
  27791. else:
  27792. iprot.skip(ftype)
  27793. elif fid == 2:
  27794. if ftype == TType.LIST:
  27795. self.group_names = []
  27796. (_etype1022, _size1019) = iprot.readListBegin()
  27797. for _i1023 in xrange(_size1019):
  27798. _elem1024 = iprot.readString()
  27799. self.group_names.append(_elem1024)
  27800. iprot.readListEnd()
  27801. else:
  27802. iprot.skip(ftype)
  27803. else:
  27804. iprot.skip(ftype)
  27805. iprot.readFieldEnd()
  27806. iprot.readStructEnd()
  27807. def write(self, oprot):
  27808. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27809. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27810. return
  27811. oprot.writeStructBegin('set_ugi_args')
  27812. if self.user_name is not None:
  27813. oprot.writeFieldBegin('user_name', TType.STRING, 1)
  27814. oprot.writeString(self.user_name)
  27815. oprot.writeFieldEnd()
  27816. if self.group_names is not None:
  27817. oprot.writeFieldBegin('group_names', TType.LIST, 2)
  27818. oprot.writeListBegin(TType.STRING, len(self.group_names))
  27819. for iter1025 in self.group_names:
  27820. oprot.writeString(iter1025)
  27821. oprot.writeListEnd()
  27822. oprot.writeFieldEnd()
  27823. oprot.writeFieldStop()
  27824. oprot.writeStructEnd()
  27825. def validate(self):
  27826. return
  27827. def __hash__(self):
  27828. value = 17
  27829. value = (value * 31) ^ hash(self.user_name)
  27830. value = (value * 31) ^ hash(self.group_names)
  27831. return value
  27832. def __repr__(self):
  27833. L = ['%s=%r' % (key, value)
  27834. for key, value in self.__dict__.iteritems()]
  27835. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27836. def __eq__(self, other):
  27837. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27838. def __ne__(self, other):
  27839. return not (self == other)
  27840. class set_ugi_result(object):
  27841. """
  27842. Attributes:
  27843. - success
  27844. - o1
  27845. """
  27846. thrift_spec = (
  27847. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  27848. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  27849. )
  27850. def __init__(self, success=None, o1=None,):
  27851. self.success = success
  27852. self.o1 = o1
  27853. def read(self, iprot):
  27854. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27855. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27856. return
  27857. iprot.readStructBegin()
  27858. while True:
  27859. (fname, ftype, fid) = iprot.readFieldBegin()
  27860. if ftype == TType.STOP:
  27861. break
  27862. if fid == 0:
  27863. if ftype == TType.LIST:
  27864. self.success = []
  27865. (_etype1029, _size1026) = iprot.readListBegin()
  27866. for _i1030 in xrange(_size1026):
  27867. _elem1031 = iprot.readString()
  27868. self.success.append(_elem1031)
  27869. iprot.readListEnd()
  27870. else:
  27871. iprot.skip(ftype)
  27872. elif fid == 1:
  27873. if ftype == TType.STRUCT:
  27874. self.o1 = MetaException()
  27875. self.o1.read(iprot)
  27876. else:
  27877. iprot.skip(ftype)
  27878. else:
  27879. iprot.skip(ftype)
  27880. iprot.readFieldEnd()
  27881. iprot.readStructEnd()
  27882. def write(self, oprot):
  27883. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27884. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27885. return
  27886. oprot.writeStructBegin('set_ugi_result')
  27887. if self.success is not None:
  27888. oprot.writeFieldBegin('success', TType.LIST, 0)
  27889. oprot.writeListBegin(TType.STRING, len(self.success))
  27890. for iter1032 in self.success:
  27891. oprot.writeString(iter1032)
  27892. oprot.writeListEnd()
  27893. oprot.writeFieldEnd()
  27894. if self.o1 is not None:
  27895. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27896. self.o1.write(oprot)
  27897. oprot.writeFieldEnd()
  27898. oprot.writeFieldStop()
  27899. oprot.writeStructEnd()
  27900. def validate(self):
  27901. return
  27902. def __hash__(self):
  27903. value = 17
  27904. value = (value * 31) ^ hash(self.success)
  27905. value = (value * 31) ^ hash(self.o1)
  27906. return value
  27907. def __repr__(self):
  27908. L = ['%s=%r' % (key, value)
  27909. for key, value in self.__dict__.iteritems()]
  27910. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27911. def __eq__(self, other):
  27912. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27913. def __ne__(self, other):
  27914. return not (self == other)
  27915. class get_delegation_token_args(object):
  27916. """
  27917. Attributes:
  27918. - token_owner
  27919. - renewer_kerberos_principal_name
  27920. """
  27921. thrift_spec = (
  27922. None, # 0
  27923. (1, TType.STRING, 'token_owner', None, None, ), # 1
  27924. (2, TType.STRING, 'renewer_kerberos_principal_name', None, None, ), # 2
  27925. )
  27926. def __init__(self, token_owner=None, renewer_kerberos_principal_name=None,):
  27927. self.token_owner = token_owner
  27928. self.renewer_kerberos_principal_name = renewer_kerberos_principal_name
  27929. def read(self, iprot):
  27930. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27931. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27932. return
  27933. iprot.readStructBegin()
  27934. while True:
  27935. (fname, ftype, fid) = iprot.readFieldBegin()
  27936. if ftype == TType.STOP:
  27937. break
  27938. if fid == 1:
  27939. if ftype == TType.STRING:
  27940. self.token_owner = iprot.readString()
  27941. else:
  27942. iprot.skip(ftype)
  27943. elif fid == 2:
  27944. if ftype == TType.STRING:
  27945. self.renewer_kerberos_principal_name = iprot.readString()
  27946. else:
  27947. iprot.skip(ftype)
  27948. else:
  27949. iprot.skip(ftype)
  27950. iprot.readFieldEnd()
  27951. iprot.readStructEnd()
  27952. def write(self, oprot):
  27953. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  27954. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  27955. return
  27956. oprot.writeStructBegin('get_delegation_token_args')
  27957. if self.token_owner is not None:
  27958. oprot.writeFieldBegin('token_owner', TType.STRING, 1)
  27959. oprot.writeString(self.token_owner)
  27960. oprot.writeFieldEnd()
  27961. if self.renewer_kerberos_principal_name is not None:
  27962. oprot.writeFieldBegin('renewer_kerberos_principal_name', TType.STRING, 2)
  27963. oprot.writeString(self.renewer_kerberos_principal_name)
  27964. oprot.writeFieldEnd()
  27965. oprot.writeFieldStop()
  27966. oprot.writeStructEnd()
  27967. def validate(self):
  27968. return
  27969. def __hash__(self):
  27970. value = 17
  27971. value = (value * 31) ^ hash(self.token_owner)
  27972. value = (value * 31) ^ hash(self.renewer_kerberos_principal_name)
  27973. return value
  27974. def __repr__(self):
  27975. L = ['%s=%r' % (key, value)
  27976. for key, value in self.__dict__.iteritems()]
  27977. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27978. def __eq__(self, other):
  27979. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27980. def __ne__(self, other):
  27981. return not (self == other)
  27982. class get_delegation_token_result(object):
  27983. """
  27984. Attributes:
  27985. - success
  27986. - o1
  27987. """
  27988. thrift_spec = (
  27989. (0, TType.STRING, 'success', None, None, ), # 0
  27990. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  27991. )
  27992. def __init__(self, success=None, o1=None,):
  27993. self.success = success
  27994. self.o1 = o1
  27995. def read(self, iprot):
  27996. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  27997. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  27998. return
  27999. iprot.readStructBegin()
  28000. while True:
  28001. (fname, ftype, fid) = iprot.readFieldBegin()
  28002. if ftype == TType.STOP:
  28003. break
  28004. if fid == 0:
  28005. if ftype == TType.STRING:
  28006. self.success = iprot.readString()
  28007. else:
  28008. iprot.skip(ftype)
  28009. elif fid == 1:
  28010. if ftype == TType.STRUCT:
  28011. self.o1 = MetaException()
  28012. self.o1.read(iprot)
  28013. else:
  28014. iprot.skip(ftype)
  28015. else:
  28016. iprot.skip(ftype)
  28017. iprot.readFieldEnd()
  28018. iprot.readStructEnd()
  28019. def write(self, oprot):
  28020. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28021. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28022. return
  28023. oprot.writeStructBegin('get_delegation_token_result')
  28024. if self.success is not None:
  28025. oprot.writeFieldBegin('success', TType.STRING, 0)
  28026. oprot.writeString(self.success)
  28027. oprot.writeFieldEnd()
  28028. if self.o1 is not None:
  28029. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  28030. self.o1.write(oprot)
  28031. oprot.writeFieldEnd()
  28032. oprot.writeFieldStop()
  28033. oprot.writeStructEnd()
  28034. def validate(self):
  28035. return
  28036. def __hash__(self):
  28037. value = 17
  28038. value = (value * 31) ^ hash(self.success)
  28039. value = (value * 31) ^ hash(self.o1)
  28040. return value
  28041. def __repr__(self):
  28042. L = ['%s=%r' % (key, value)
  28043. for key, value in self.__dict__.iteritems()]
  28044. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28045. def __eq__(self, other):
  28046. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28047. def __ne__(self, other):
  28048. return not (self == other)
  28049. class renew_delegation_token_args(object):
  28050. """
  28051. Attributes:
  28052. - token_str_form
  28053. """
  28054. thrift_spec = (
  28055. None, # 0
  28056. (1, TType.STRING, 'token_str_form', None, None, ), # 1
  28057. )
  28058. def __init__(self, token_str_form=None,):
  28059. self.token_str_form = token_str_form
  28060. def read(self, iprot):
  28061. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28062. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28063. return
  28064. iprot.readStructBegin()
  28065. while True:
  28066. (fname, ftype, fid) = iprot.readFieldBegin()
  28067. if ftype == TType.STOP:
  28068. break
  28069. if fid == 1:
  28070. if ftype == TType.STRING:
  28071. self.token_str_form = iprot.readString()
  28072. else:
  28073. iprot.skip(ftype)
  28074. else:
  28075. iprot.skip(ftype)
  28076. iprot.readFieldEnd()
  28077. iprot.readStructEnd()
  28078. def write(self, oprot):
  28079. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28080. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28081. return
  28082. oprot.writeStructBegin('renew_delegation_token_args')
  28083. if self.token_str_form is not None:
  28084. oprot.writeFieldBegin('token_str_form', TType.STRING, 1)
  28085. oprot.writeString(self.token_str_form)
  28086. oprot.writeFieldEnd()
  28087. oprot.writeFieldStop()
  28088. oprot.writeStructEnd()
  28089. def validate(self):
  28090. return
  28091. def __hash__(self):
  28092. value = 17
  28093. value = (value * 31) ^ hash(self.token_str_form)
  28094. return value
  28095. def __repr__(self):
  28096. L = ['%s=%r' % (key, value)
  28097. for key, value in self.__dict__.iteritems()]
  28098. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28099. def __eq__(self, other):
  28100. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28101. def __ne__(self, other):
  28102. return not (self == other)
  28103. class renew_delegation_token_result(object):
  28104. """
  28105. Attributes:
  28106. - success
  28107. - o1
  28108. """
  28109. thrift_spec = (
  28110. (0, TType.I64, 'success', None, None, ), # 0
  28111. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  28112. )
  28113. def __init__(self, success=None, o1=None,):
  28114. self.success = success
  28115. self.o1 = o1
  28116. def read(self, iprot):
  28117. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28118. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28119. return
  28120. iprot.readStructBegin()
  28121. while True:
  28122. (fname, ftype, fid) = iprot.readFieldBegin()
  28123. if ftype == TType.STOP:
  28124. break
  28125. if fid == 0:
  28126. if ftype == TType.I64:
  28127. self.success = iprot.readI64()
  28128. else:
  28129. iprot.skip(ftype)
  28130. elif fid == 1:
  28131. if ftype == TType.STRUCT:
  28132. self.o1 = MetaException()
  28133. self.o1.read(iprot)
  28134. else:
  28135. iprot.skip(ftype)
  28136. else:
  28137. iprot.skip(ftype)
  28138. iprot.readFieldEnd()
  28139. iprot.readStructEnd()
  28140. def write(self, oprot):
  28141. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28142. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28143. return
  28144. oprot.writeStructBegin('renew_delegation_token_result')
  28145. if self.success is not None:
  28146. oprot.writeFieldBegin('success', TType.I64, 0)
  28147. oprot.writeI64(self.success)
  28148. oprot.writeFieldEnd()
  28149. if self.o1 is not None:
  28150. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  28151. self.o1.write(oprot)
  28152. oprot.writeFieldEnd()
  28153. oprot.writeFieldStop()
  28154. oprot.writeStructEnd()
  28155. def validate(self):
  28156. return
  28157. def __hash__(self):
  28158. value = 17
  28159. value = (value * 31) ^ hash(self.success)
  28160. value = (value * 31) ^ hash(self.o1)
  28161. return value
  28162. def __repr__(self):
  28163. L = ['%s=%r' % (key, value)
  28164. for key, value in self.__dict__.iteritems()]
  28165. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28166. def __eq__(self, other):
  28167. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28168. def __ne__(self, other):
  28169. return not (self == other)
  28170. class cancel_delegation_token_args(object):
  28171. """
  28172. Attributes:
  28173. - token_str_form
  28174. """
  28175. thrift_spec = (
  28176. None, # 0
  28177. (1, TType.STRING, 'token_str_form', None, None, ), # 1
  28178. )
  28179. def __init__(self, token_str_form=None,):
  28180. self.token_str_form = token_str_form
  28181. def read(self, iprot):
  28182. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28183. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28184. return
  28185. iprot.readStructBegin()
  28186. while True:
  28187. (fname, ftype, fid) = iprot.readFieldBegin()
  28188. if ftype == TType.STOP:
  28189. break
  28190. if fid == 1:
  28191. if ftype == TType.STRING:
  28192. self.token_str_form = iprot.readString()
  28193. else:
  28194. iprot.skip(ftype)
  28195. else:
  28196. iprot.skip(ftype)
  28197. iprot.readFieldEnd()
  28198. iprot.readStructEnd()
  28199. def write(self, oprot):
  28200. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28201. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28202. return
  28203. oprot.writeStructBegin('cancel_delegation_token_args')
  28204. if self.token_str_form is not None:
  28205. oprot.writeFieldBegin('token_str_form', TType.STRING, 1)
  28206. oprot.writeString(self.token_str_form)
  28207. oprot.writeFieldEnd()
  28208. oprot.writeFieldStop()
  28209. oprot.writeStructEnd()
  28210. def validate(self):
  28211. return
  28212. def __hash__(self):
  28213. value = 17
  28214. value = (value * 31) ^ hash(self.token_str_form)
  28215. return value
  28216. def __repr__(self):
  28217. L = ['%s=%r' % (key, value)
  28218. for key, value in self.__dict__.iteritems()]
  28219. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28220. def __eq__(self, other):
  28221. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28222. def __ne__(self, other):
  28223. return not (self == other)
  28224. class cancel_delegation_token_result(object):
  28225. """
  28226. Attributes:
  28227. - o1
  28228. """
  28229. thrift_spec = (
  28230. None, # 0
  28231. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  28232. )
  28233. def __init__(self, o1=None,):
  28234. self.o1 = o1
  28235. def read(self, iprot):
  28236. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28237. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28238. return
  28239. iprot.readStructBegin()
  28240. while True:
  28241. (fname, ftype, fid) = iprot.readFieldBegin()
  28242. if ftype == TType.STOP:
  28243. break
  28244. if fid == 1:
  28245. if ftype == TType.STRUCT:
  28246. self.o1 = MetaException()
  28247. self.o1.read(iprot)
  28248. else:
  28249. iprot.skip(ftype)
  28250. else:
  28251. iprot.skip(ftype)
  28252. iprot.readFieldEnd()
  28253. iprot.readStructEnd()
  28254. def write(self, oprot):
  28255. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28256. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28257. return
  28258. oprot.writeStructBegin('cancel_delegation_token_result')
  28259. if self.o1 is not None:
  28260. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  28261. self.o1.write(oprot)
  28262. oprot.writeFieldEnd()
  28263. oprot.writeFieldStop()
  28264. oprot.writeStructEnd()
  28265. def validate(self):
  28266. return
  28267. def __hash__(self):
  28268. value = 17
  28269. value = (value * 31) ^ hash(self.o1)
  28270. return value
  28271. def __repr__(self):
  28272. L = ['%s=%r' % (key, value)
  28273. for key, value in self.__dict__.iteritems()]
  28274. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28275. def __eq__(self, other):
  28276. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28277. def __ne__(self, other):
  28278. return not (self == other)
  28279. class add_token_args(object):
  28280. """
  28281. Attributes:
  28282. - token_identifier
  28283. - delegation_token
  28284. """
  28285. thrift_spec = (
  28286. None, # 0
  28287. (1, TType.STRING, 'token_identifier', None, None, ), # 1
  28288. (2, TType.STRING, 'delegation_token', None, None, ), # 2
  28289. )
  28290. def __init__(self, token_identifier=None, delegation_token=None,):
  28291. self.token_identifier = token_identifier
  28292. self.delegation_token = delegation_token
  28293. def read(self, iprot):
  28294. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28295. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28296. return
  28297. iprot.readStructBegin()
  28298. while True:
  28299. (fname, ftype, fid) = iprot.readFieldBegin()
  28300. if ftype == TType.STOP:
  28301. break
  28302. if fid == 1:
  28303. if ftype == TType.STRING:
  28304. self.token_identifier = iprot.readString()
  28305. else:
  28306. iprot.skip(ftype)
  28307. elif fid == 2:
  28308. if ftype == TType.STRING:
  28309. self.delegation_token = iprot.readString()
  28310. else:
  28311. iprot.skip(ftype)
  28312. else:
  28313. iprot.skip(ftype)
  28314. iprot.readFieldEnd()
  28315. iprot.readStructEnd()
  28316. def write(self, oprot):
  28317. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28318. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28319. return
  28320. oprot.writeStructBegin('add_token_args')
  28321. if self.token_identifier is not None:
  28322. oprot.writeFieldBegin('token_identifier', TType.STRING, 1)
  28323. oprot.writeString(self.token_identifier)
  28324. oprot.writeFieldEnd()
  28325. if self.delegation_token is not None:
  28326. oprot.writeFieldBegin('delegation_token', TType.STRING, 2)
  28327. oprot.writeString(self.delegation_token)
  28328. oprot.writeFieldEnd()
  28329. oprot.writeFieldStop()
  28330. oprot.writeStructEnd()
  28331. def validate(self):
  28332. return
  28333. def __hash__(self):
  28334. value = 17
  28335. value = (value * 31) ^ hash(self.token_identifier)
  28336. value = (value * 31) ^ hash(self.delegation_token)
  28337. return value
  28338. def __repr__(self):
  28339. L = ['%s=%r' % (key, value)
  28340. for key, value in self.__dict__.iteritems()]
  28341. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28342. def __eq__(self, other):
  28343. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28344. def __ne__(self, other):
  28345. return not (self == other)
  28346. class add_token_result(object):
  28347. """
  28348. Attributes:
  28349. - success
  28350. """
  28351. thrift_spec = (
  28352. (0, TType.BOOL, 'success', None, None, ), # 0
  28353. )
  28354. def __init__(self, success=None,):
  28355. self.success = success
  28356. def read(self, iprot):
  28357. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28358. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28359. return
  28360. iprot.readStructBegin()
  28361. while True:
  28362. (fname, ftype, fid) = iprot.readFieldBegin()
  28363. if ftype == TType.STOP:
  28364. break
  28365. if fid == 0:
  28366. if ftype == TType.BOOL:
  28367. self.success = iprot.readBool()
  28368. else:
  28369. iprot.skip(ftype)
  28370. else:
  28371. iprot.skip(ftype)
  28372. iprot.readFieldEnd()
  28373. iprot.readStructEnd()
  28374. def write(self, oprot):
  28375. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28376. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28377. return
  28378. oprot.writeStructBegin('add_token_result')
  28379. if self.success is not None:
  28380. oprot.writeFieldBegin('success', TType.BOOL, 0)
  28381. oprot.writeBool(self.success)
  28382. oprot.writeFieldEnd()
  28383. oprot.writeFieldStop()
  28384. oprot.writeStructEnd()
  28385. def validate(self):
  28386. return
  28387. def __hash__(self):
  28388. value = 17
  28389. value = (value * 31) ^ hash(self.success)
  28390. return value
  28391. def __repr__(self):
  28392. L = ['%s=%r' % (key, value)
  28393. for key, value in self.__dict__.iteritems()]
  28394. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28395. def __eq__(self, other):
  28396. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28397. def __ne__(self, other):
  28398. return not (self == other)
  28399. class remove_token_args(object):
  28400. """
  28401. Attributes:
  28402. - token_identifier
  28403. """
  28404. thrift_spec = (
  28405. None, # 0
  28406. (1, TType.STRING, 'token_identifier', None, None, ), # 1
  28407. )
  28408. def __init__(self, token_identifier=None,):
  28409. self.token_identifier = token_identifier
  28410. def read(self, iprot):
  28411. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28412. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28413. return
  28414. iprot.readStructBegin()
  28415. while True:
  28416. (fname, ftype, fid) = iprot.readFieldBegin()
  28417. if ftype == TType.STOP:
  28418. break
  28419. if fid == 1:
  28420. if ftype == TType.STRING:
  28421. self.token_identifier = iprot.readString()
  28422. else:
  28423. iprot.skip(ftype)
  28424. else:
  28425. iprot.skip(ftype)
  28426. iprot.readFieldEnd()
  28427. iprot.readStructEnd()
  28428. def write(self, oprot):
  28429. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28430. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28431. return
  28432. oprot.writeStructBegin('remove_token_args')
  28433. if self.token_identifier is not None:
  28434. oprot.writeFieldBegin('token_identifier', TType.STRING, 1)
  28435. oprot.writeString(self.token_identifier)
  28436. oprot.writeFieldEnd()
  28437. oprot.writeFieldStop()
  28438. oprot.writeStructEnd()
  28439. def validate(self):
  28440. return
  28441. def __hash__(self):
  28442. value = 17
  28443. value = (value * 31) ^ hash(self.token_identifier)
  28444. return value
  28445. def __repr__(self):
  28446. L = ['%s=%r' % (key, value)
  28447. for key, value in self.__dict__.iteritems()]
  28448. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28449. def __eq__(self, other):
  28450. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28451. def __ne__(self, other):
  28452. return not (self == other)
  28453. class remove_token_result(object):
  28454. """
  28455. Attributes:
  28456. - success
  28457. """
  28458. thrift_spec = (
  28459. (0, TType.BOOL, 'success', None, None, ), # 0
  28460. )
  28461. def __init__(self, success=None,):
  28462. self.success = success
  28463. def read(self, iprot):
  28464. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28465. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28466. return
  28467. iprot.readStructBegin()
  28468. while True:
  28469. (fname, ftype, fid) = iprot.readFieldBegin()
  28470. if ftype == TType.STOP:
  28471. break
  28472. if fid == 0:
  28473. if ftype == TType.BOOL:
  28474. self.success = iprot.readBool()
  28475. else:
  28476. iprot.skip(ftype)
  28477. else:
  28478. iprot.skip(ftype)
  28479. iprot.readFieldEnd()
  28480. iprot.readStructEnd()
  28481. def write(self, oprot):
  28482. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28483. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28484. return
  28485. oprot.writeStructBegin('remove_token_result')
  28486. if self.success is not None:
  28487. oprot.writeFieldBegin('success', TType.BOOL, 0)
  28488. oprot.writeBool(self.success)
  28489. oprot.writeFieldEnd()
  28490. oprot.writeFieldStop()
  28491. oprot.writeStructEnd()
  28492. def validate(self):
  28493. return
  28494. def __hash__(self):
  28495. value = 17
  28496. value = (value * 31) ^ hash(self.success)
  28497. return value
  28498. def __repr__(self):
  28499. L = ['%s=%r' % (key, value)
  28500. for key, value in self.__dict__.iteritems()]
  28501. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28502. def __eq__(self, other):
  28503. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28504. def __ne__(self, other):
  28505. return not (self == other)
  28506. class get_token_args(object):
  28507. """
  28508. Attributes:
  28509. - token_identifier
  28510. """
  28511. thrift_spec = (
  28512. None, # 0
  28513. (1, TType.STRING, 'token_identifier', None, None, ), # 1
  28514. )
  28515. def __init__(self, token_identifier=None,):
  28516. self.token_identifier = token_identifier
  28517. def read(self, iprot):
  28518. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28519. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28520. return
  28521. iprot.readStructBegin()
  28522. while True:
  28523. (fname, ftype, fid) = iprot.readFieldBegin()
  28524. if ftype == TType.STOP:
  28525. break
  28526. if fid == 1:
  28527. if ftype == TType.STRING:
  28528. self.token_identifier = iprot.readString()
  28529. else:
  28530. iprot.skip(ftype)
  28531. else:
  28532. iprot.skip(ftype)
  28533. iprot.readFieldEnd()
  28534. iprot.readStructEnd()
  28535. def write(self, oprot):
  28536. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28537. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28538. return
  28539. oprot.writeStructBegin('get_token_args')
  28540. if self.token_identifier is not None:
  28541. oprot.writeFieldBegin('token_identifier', TType.STRING, 1)
  28542. oprot.writeString(self.token_identifier)
  28543. oprot.writeFieldEnd()
  28544. oprot.writeFieldStop()
  28545. oprot.writeStructEnd()
  28546. def validate(self):
  28547. return
  28548. def __hash__(self):
  28549. value = 17
  28550. value = (value * 31) ^ hash(self.token_identifier)
  28551. return value
  28552. def __repr__(self):
  28553. L = ['%s=%r' % (key, value)
  28554. for key, value in self.__dict__.iteritems()]
  28555. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28556. def __eq__(self, other):
  28557. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28558. def __ne__(self, other):
  28559. return not (self == other)
  28560. class get_token_result(object):
  28561. """
  28562. Attributes:
  28563. - success
  28564. """
  28565. thrift_spec = (
  28566. (0, TType.STRING, 'success', None, None, ), # 0
  28567. )
  28568. def __init__(self, success=None,):
  28569. self.success = success
  28570. def read(self, iprot):
  28571. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28572. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28573. return
  28574. iprot.readStructBegin()
  28575. while True:
  28576. (fname, ftype, fid) = iprot.readFieldBegin()
  28577. if ftype == TType.STOP:
  28578. break
  28579. if fid == 0:
  28580. if ftype == TType.STRING:
  28581. self.success = iprot.readString()
  28582. else:
  28583. iprot.skip(ftype)
  28584. else:
  28585. iprot.skip(ftype)
  28586. iprot.readFieldEnd()
  28587. iprot.readStructEnd()
  28588. def write(self, oprot):
  28589. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28590. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28591. return
  28592. oprot.writeStructBegin('get_token_result')
  28593. if self.success is not None:
  28594. oprot.writeFieldBegin('success', TType.STRING, 0)
  28595. oprot.writeString(self.success)
  28596. oprot.writeFieldEnd()
  28597. oprot.writeFieldStop()
  28598. oprot.writeStructEnd()
  28599. def validate(self):
  28600. return
  28601. def __hash__(self):
  28602. value = 17
  28603. value = (value * 31) ^ hash(self.success)
  28604. return value
  28605. def __repr__(self):
  28606. L = ['%s=%r' % (key, value)
  28607. for key, value in self.__dict__.iteritems()]
  28608. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28609. def __eq__(self, other):
  28610. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28611. def __ne__(self, other):
  28612. return not (self == other)
  28613. class get_all_token_identifiers_args(object):
  28614. thrift_spec = (
  28615. )
  28616. def read(self, iprot):
  28617. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28618. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28619. return
  28620. iprot.readStructBegin()
  28621. while True:
  28622. (fname, ftype, fid) = iprot.readFieldBegin()
  28623. if ftype == TType.STOP:
  28624. break
  28625. else:
  28626. iprot.skip(ftype)
  28627. iprot.readFieldEnd()
  28628. iprot.readStructEnd()
  28629. def write(self, oprot):
  28630. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28631. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28632. return
  28633. oprot.writeStructBegin('get_all_token_identifiers_args')
  28634. oprot.writeFieldStop()
  28635. oprot.writeStructEnd()
  28636. def validate(self):
  28637. return
  28638. def __hash__(self):
  28639. value = 17
  28640. return value
  28641. def __repr__(self):
  28642. L = ['%s=%r' % (key, value)
  28643. for key, value in self.__dict__.iteritems()]
  28644. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28645. def __eq__(self, other):
  28646. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28647. def __ne__(self, other):
  28648. return not (self == other)
  28649. class get_all_token_identifiers_result(object):
  28650. """
  28651. Attributes:
  28652. - success
  28653. """
  28654. thrift_spec = (
  28655. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  28656. )
  28657. def __init__(self, success=None,):
  28658. self.success = success
  28659. def read(self, iprot):
  28660. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28661. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28662. return
  28663. iprot.readStructBegin()
  28664. while True:
  28665. (fname, ftype, fid) = iprot.readFieldBegin()
  28666. if ftype == TType.STOP:
  28667. break
  28668. if fid == 0:
  28669. if ftype == TType.LIST:
  28670. self.success = []
  28671. (_etype1036, _size1033) = iprot.readListBegin()
  28672. for _i1037 in xrange(_size1033):
  28673. _elem1038 = iprot.readString()
  28674. self.success.append(_elem1038)
  28675. iprot.readListEnd()
  28676. else:
  28677. iprot.skip(ftype)
  28678. else:
  28679. iprot.skip(ftype)
  28680. iprot.readFieldEnd()
  28681. iprot.readStructEnd()
  28682. def write(self, oprot):
  28683. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28684. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28685. return
  28686. oprot.writeStructBegin('get_all_token_identifiers_result')
  28687. if self.success is not None:
  28688. oprot.writeFieldBegin('success', TType.LIST, 0)
  28689. oprot.writeListBegin(TType.STRING, len(self.success))
  28690. for iter1039 in self.success:
  28691. oprot.writeString(iter1039)
  28692. oprot.writeListEnd()
  28693. oprot.writeFieldEnd()
  28694. oprot.writeFieldStop()
  28695. oprot.writeStructEnd()
  28696. def validate(self):
  28697. return
  28698. def __hash__(self):
  28699. value = 17
  28700. value = (value * 31) ^ hash(self.success)
  28701. return value
  28702. def __repr__(self):
  28703. L = ['%s=%r' % (key, value)
  28704. for key, value in self.__dict__.iteritems()]
  28705. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28706. def __eq__(self, other):
  28707. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28708. def __ne__(self, other):
  28709. return not (self == other)
  28710. class add_master_key_args(object):
  28711. """
  28712. Attributes:
  28713. - key
  28714. """
  28715. thrift_spec = (
  28716. None, # 0
  28717. (1, TType.STRING, 'key', None, None, ), # 1
  28718. )
  28719. def __init__(self, key=None,):
  28720. self.key = key
  28721. def read(self, iprot):
  28722. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28723. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28724. return
  28725. iprot.readStructBegin()
  28726. while True:
  28727. (fname, ftype, fid) = iprot.readFieldBegin()
  28728. if ftype == TType.STOP:
  28729. break
  28730. if fid == 1:
  28731. if ftype == TType.STRING:
  28732. self.key = iprot.readString()
  28733. else:
  28734. iprot.skip(ftype)
  28735. else:
  28736. iprot.skip(ftype)
  28737. iprot.readFieldEnd()
  28738. iprot.readStructEnd()
  28739. def write(self, oprot):
  28740. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28741. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28742. return
  28743. oprot.writeStructBegin('add_master_key_args')
  28744. if self.key is not None:
  28745. oprot.writeFieldBegin('key', TType.STRING, 1)
  28746. oprot.writeString(self.key)
  28747. oprot.writeFieldEnd()
  28748. oprot.writeFieldStop()
  28749. oprot.writeStructEnd()
  28750. def validate(self):
  28751. return
  28752. def __hash__(self):
  28753. value = 17
  28754. value = (value * 31) ^ hash(self.key)
  28755. return value
  28756. def __repr__(self):
  28757. L = ['%s=%r' % (key, value)
  28758. for key, value in self.__dict__.iteritems()]
  28759. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28760. def __eq__(self, other):
  28761. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28762. def __ne__(self, other):
  28763. return not (self == other)
  28764. class add_master_key_result(object):
  28765. """
  28766. Attributes:
  28767. - success
  28768. - o1
  28769. """
  28770. thrift_spec = (
  28771. (0, TType.I32, 'success', None, None, ), # 0
  28772. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  28773. )
  28774. def __init__(self, success=None, o1=None,):
  28775. self.success = success
  28776. self.o1 = o1
  28777. def read(self, iprot):
  28778. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28779. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28780. return
  28781. iprot.readStructBegin()
  28782. while True:
  28783. (fname, ftype, fid) = iprot.readFieldBegin()
  28784. if ftype == TType.STOP:
  28785. break
  28786. if fid == 0:
  28787. if ftype == TType.I32:
  28788. self.success = iprot.readI32()
  28789. else:
  28790. iprot.skip(ftype)
  28791. elif fid == 1:
  28792. if ftype == TType.STRUCT:
  28793. self.o1 = MetaException()
  28794. self.o1.read(iprot)
  28795. else:
  28796. iprot.skip(ftype)
  28797. else:
  28798. iprot.skip(ftype)
  28799. iprot.readFieldEnd()
  28800. iprot.readStructEnd()
  28801. def write(self, oprot):
  28802. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28803. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28804. return
  28805. oprot.writeStructBegin('add_master_key_result')
  28806. if self.success is not None:
  28807. oprot.writeFieldBegin('success', TType.I32, 0)
  28808. oprot.writeI32(self.success)
  28809. oprot.writeFieldEnd()
  28810. if self.o1 is not None:
  28811. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  28812. self.o1.write(oprot)
  28813. oprot.writeFieldEnd()
  28814. oprot.writeFieldStop()
  28815. oprot.writeStructEnd()
  28816. def validate(self):
  28817. return
  28818. def __hash__(self):
  28819. value = 17
  28820. value = (value * 31) ^ hash(self.success)
  28821. value = (value * 31) ^ hash(self.o1)
  28822. return value
  28823. def __repr__(self):
  28824. L = ['%s=%r' % (key, value)
  28825. for key, value in self.__dict__.iteritems()]
  28826. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28827. def __eq__(self, other):
  28828. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28829. def __ne__(self, other):
  28830. return not (self == other)
  28831. class update_master_key_args(object):
  28832. """
  28833. Attributes:
  28834. - seq_number
  28835. - key
  28836. """
  28837. thrift_spec = (
  28838. None, # 0
  28839. (1, TType.I32, 'seq_number', None, None, ), # 1
  28840. (2, TType.STRING, 'key', None, None, ), # 2
  28841. )
  28842. def __init__(self, seq_number=None, key=None,):
  28843. self.seq_number = seq_number
  28844. self.key = key
  28845. def read(self, iprot):
  28846. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28847. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28848. return
  28849. iprot.readStructBegin()
  28850. while True:
  28851. (fname, ftype, fid) = iprot.readFieldBegin()
  28852. if ftype == TType.STOP:
  28853. break
  28854. if fid == 1:
  28855. if ftype == TType.I32:
  28856. self.seq_number = iprot.readI32()
  28857. else:
  28858. iprot.skip(ftype)
  28859. elif fid == 2:
  28860. if ftype == TType.STRING:
  28861. self.key = iprot.readString()
  28862. else:
  28863. iprot.skip(ftype)
  28864. else:
  28865. iprot.skip(ftype)
  28866. iprot.readFieldEnd()
  28867. iprot.readStructEnd()
  28868. def write(self, oprot):
  28869. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28870. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28871. return
  28872. oprot.writeStructBegin('update_master_key_args')
  28873. if self.seq_number is not None:
  28874. oprot.writeFieldBegin('seq_number', TType.I32, 1)
  28875. oprot.writeI32(self.seq_number)
  28876. oprot.writeFieldEnd()
  28877. if self.key is not None:
  28878. oprot.writeFieldBegin('key', TType.STRING, 2)
  28879. oprot.writeString(self.key)
  28880. oprot.writeFieldEnd()
  28881. oprot.writeFieldStop()
  28882. oprot.writeStructEnd()
  28883. def validate(self):
  28884. return
  28885. def __hash__(self):
  28886. value = 17
  28887. value = (value * 31) ^ hash(self.seq_number)
  28888. value = (value * 31) ^ hash(self.key)
  28889. return value
  28890. def __repr__(self):
  28891. L = ['%s=%r' % (key, value)
  28892. for key, value in self.__dict__.iteritems()]
  28893. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28894. def __eq__(self, other):
  28895. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28896. def __ne__(self, other):
  28897. return not (self == other)
  28898. class update_master_key_result(object):
  28899. """
  28900. Attributes:
  28901. - o1
  28902. - o2
  28903. """
  28904. thrift_spec = (
  28905. None, # 0
  28906. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  28907. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  28908. )
  28909. def __init__(self, o1=None, o2=None,):
  28910. self.o1 = o1
  28911. self.o2 = o2
  28912. def read(self, iprot):
  28913. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28914. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28915. return
  28916. iprot.readStructBegin()
  28917. while True:
  28918. (fname, ftype, fid) = iprot.readFieldBegin()
  28919. if ftype == TType.STOP:
  28920. break
  28921. if fid == 1:
  28922. if ftype == TType.STRUCT:
  28923. self.o1 = NoSuchObjectException()
  28924. self.o1.read(iprot)
  28925. else:
  28926. iprot.skip(ftype)
  28927. elif fid == 2:
  28928. if ftype == TType.STRUCT:
  28929. self.o2 = MetaException()
  28930. self.o2.read(iprot)
  28931. else:
  28932. iprot.skip(ftype)
  28933. else:
  28934. iprot.skip(ftype)
  28935. iprot.readFieldEnd()
  28936. iprot.readStructEnd()
  28937. def write(self, oprot):
  28938. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28939. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28940. return
  28941. oprot.writeStructBegin('update_master_key_result')
  28942. if self.o1 is not None:
  28943. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  28944. self.o1.write(oprot)
  28945. oprot.writeFieldEnd()
  28946. if self.o2 is not None:
  28947. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  28948. self.o2.write(oprot)
  28949. oprot.writeFieldEnd()
  28950. oprot.writeFieldStop()
  28951. oprot.writeStructEnd()
  28952. def validate(self):
  28953. return
  28954. def __hash__(self):
  28955. value = 17
  28956. value = (value * 31) ^ hash(self.o1)
  28957. value = (value * 31) ^ hash(self.o2)
  28958. return value
  28959. def __repr__(self):
  28960. L = ['%s=%r' % (key, value)
  28961. for key, value in self.__dict__.iteritems()]
  28962. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28963. def __eq__(self, other):
  28964. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28965. def __ne__(self, other):
  28966. return not (self == other)
  28967. class remove_master_key_args(object):
  28968. """
  28969. Attributes:
  28970. - key_seq
  28971. """
  28972. thrift_spec = (
  28973. None, # 0
  28974. (1, TType.I32, 'key_seq', None, None, ), # 1
  28975. )
  28976. def __init__(self, key_seq=None,):
  28977. self.key_seq = key_seq
  28978. def read(self, iprot):
  28979. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  28980. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  28981. return
  28982. iprot.readStructBegin()
  28983. while True:
  28984. (fname, ftype, fid) = iprot.readFieldBegin()
  28985. if ftype == TType.STOP:
  28986. break
  28987. if fid == 1:
  28988. if ftype == TType.I32:
  28989. self.key_seq = iprot.readI32()
  28990. else:
  28991. iprot.skip(ftype)
  28992. else:
  28993. iprot.skip(ftype)
  28994. iprot.readFieldEnd()
  28995. iprot.readStructEnd()
  28996. def write(self, oprot):
  28997. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  28998. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  28999. return
  29000. oprot.writeStructBegin('remove_master_key_args')
  29001. if self.key_seq is not None:
  29002. oprot.writeFieldBegin('key_seq', TType.I32, 1)
  29003. oprot.writeI32(self.key_seq)
  29004. oprot.writeFieldEnd()
  29005. oprot.writeFieldStop()
  29006. oprot.writeStructEnd()
  29007. def validate(self):
  29008. return
  29009. def __hash__(self):
  29010. value = 17
  29011. value = (value * 31) ^ hash(self.key_seq)
  29012. return value
  29013. def __repr__(self):
  29014. L = ['%s=%r' % (key, value)
  29015. for key, value in self.__dict__.iteritems()]
  29016. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29017. def __eq__(self, other):
  29018. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29019. def __ne__(self, other):
  29020. return not (self == other)
  29021. class remove_master_key_result(object):
  29022. """
  29023. Attributes:
  29024. - success
  29025. """
  29026. thrift_spec = (
  29027. (0, TType.BOOL, 'success', None, None, ), # 0
  29028. )
  29029. def __init__(self, success=None,):
  29030. self.success = success
  29031. def read(self, iprot):
  29032. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29033. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29034. return
  29035. iprot.readStructBegin()
  29036. while True:
  29037. (fname, ftype, fid) = iprot.readFieldBegin()
  29038. if ftype == TType.STOP:
  29039. break
  29040. if fid == 0:
  29041. if ftype == TType.BOOL:
  29042. self.success = iprot.readBool()
  29043. else:
  29044. iprot.skip(ftype)
  29045. else:
  29046. iprot.skip(ftype)
  29047. iprot.readFieldEnd()
  29048. iprot.readStructEnd()
  29049. def write(self, oprot):
  29050. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29051. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29052. return
  29053. oprot.writeStructBegin('remove_master_key_result')
  29054. if self.success is not None:
  29055. oprot.writeFieldBegin('success', TType.BOOL, 0)
  29056. oprot.writeBool(self.success)
  29057. oprot.writeFieldEnd()
  29058. oprot.writeFieldStop()
  29059. oprot.writeStructEnd()
  29060. def validate(self):
  29061. return
  29062. def __hash__(self):
  29063. value = 17
  29064. value = (value * 31) ^ hash(self.success)
  29065. return value
  29066. def __repr__(self):
  29067. L = ['%s=%r' % (key, value)
  29068. for key, value in self.__dict__.iteritems()]
  29069. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29070. def __eq__(self, other):
  29071. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29072. def __ne__(self, other):
  29073. return not (self == other)
  29074. class get_master_keys_args(object):
  29075. thrift_spec = (
  29076. )
  29077. def read(self, iprot):
  29078. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29079. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29080. return
  29081. iprot.readStructBegin()
  29082. while True:
  29083. (fname, ftype, fid) = iprot.readFieldBegin()
  29084. if ftype == TType.STOP:
  29085. break
  29086. else:
  29087. iprot.skip(ftype)
  29088. iprot.readFieldEnd()
  29089. iprot.readStructEnd()
  29090. def write(self, oprot):
  29091. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29092. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29093. return
  29094. oprot.writeStructBegin('get_master_keys_args')
  29095. oprot.writeFieldStop()
  29096. oprot.writeStructEnd()
  29097. def validate(self):
  29098. return
  29099. def __hash__(self):
  29100. value = 17
  29101. return value
  29102. def __repr__(self):
  29103. L = ['%s=%r' % (key, value)
  29104. for key, value in self.__dict__.iteritems()]
  29105. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29106. def __eq__(self, other):
  29107. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29108. def __ne__(self, other):
  29109. return not (self == other)
  29110. class get_master_keys_result(object):
  29111. """
  29112. Attributes:
  29113. - success
  29114. """
  29115. thrift_spec = (
  29116. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  29117. )
  29118. def __init__(self, success=None,):
  29119. self.success = success
  29120. def read(self, iprot):
  29121. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29122. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29123. return
  29124. iprot.readStructBegin()
  29125. while True:
  29126. (fname, ftype, fid) = iprot.readFieldBegin()
  29127. if ftype == TType.STOP:
  29128. break
  29129. if fid == 0:
  29130. if ftype == TType.LIST:
  29131. self.success = []
  29132. (_etype1043, _size1040) = iprot.readListBegin()
  29133. for _i1044 in xrange(_size1040):
  29134. _elem1045 = iprot.readString()
  29135. self.success.append(_elem1045)
  29136. iprot.readListEnd()
  29137. else:
  29138. iprot.skip(ftype)
  29139. else:
  29140. iprot.skip(ftype)
  29141. iprot.readFieldEnd()
  29142. iprot.readStructEnd()
  29143. def write(self, oprot):
  29144. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29145. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29146. return
  29147. oprot.writeStructBegin('get_master_keys_result')
  29148. if self.success is not None:
  29149. oprot.writeFieldBegin('success', TType.LIST, 0)
  29150. oprot.writeListBegin(TType.STRING, len(self.success))
  29151. for iter1046 in self.success:
  29152. oprot.writeString(iter1046)
  29153. oprot.writeListEnd()
  29154. oprot.writeFieldEnd()
  29155. oprot.writeFieldStop()
  29156. oprot.writeStructEnd()
  29157. def validate(self):
  29158. return
  29159. def __hash__(self):
  29160. value = 17
  29161. value = (value * 31) ^ hash(self.success)
  29162. return value
  29163. def __repr__(self):
  29164. L = ['%s=%r' % (key, value)
  29165. for key, value in self.__dict__.iteritems()]
  29166. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29167. def __eq__(self, other):
  29168. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29169. def __ne__(self, other):
  29170. return not (self == other)
  29171. class get_open_txns_args(object):
  29172. thrift_spec = (
  29173. )
  29174. def read(self, iprot):
  29175. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29176. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29177. return
  29178. iprot.readStructBegin()
  29179. while True:
  29180. (fname, ftype, fid) = iprot.readFieldBegin()
  29181. if ftype == TType.STOP:
  29182. break
  29183. else:
  29184. iprot.skip(ftype)
  29185. iprot.readFieldEnd()
  29186. iprot.readStructEnd()
  29187. def write(self, oprot):
  29188. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29189. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29190. return
  29191. oprot.writeStructBegin('get_open_txns_args')
  29192. oprot.writeFieldStop()
  29193. oprot.writeStructEnd()
  29194. def validate(self):
  29195. return
  29196. def __hash__(self):
  29197. value = 17
  29198. return value
  29199. def __repr__(self):
  29200. L = ['%s=%r' % (key, value)
  29201. for key, value in self.__dict__.iteritems()]
  29202. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29203. def __eq__(self, other):
  29204. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29205. def __ne__(self, other):
  29206. return not (self == other)
  29207. class get_open_txns_result(object):
  29208. """
  29209. Attributes:
  29210. - success
  29211. """
  29212. thrift_spec = (
  29213. (0, TType.STRUCT, 'success', (GetOpenTxnsResponse, GetOpenTxnsResponse.thrift_spec), None, ), # 0
  29214. )
  29215. def __init__(self, success=None,):
  29216. self.success = success
  29217. def read(self, iprot):
  29218. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29219. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29220. return
  29221. iprot.readStructBegin()
  29222. while True:
  29223. (fname, ftype, fid) = iprot.readFieldBegin()
  29224. if ftype == TType.STOP:
  29225. break
  29226. if fid == 0:
  29227. if ftype == TType.STRUCT:
  29228. self.success = GetOpenTxnsResponse()
  29229. self.success.read(iprot)
  29230. else:
  29231. iprot.skip(ftype)
  29232. else:
  29233. iprot.skip(ftype)
  29234. iprot.readFieldEnd()
  29235. iprot.readStructEnd()
  29236. def write(self, oprot):
  29237. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29238. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29239. return
  29240. oprot.writeStructBegin('get_open_txns_result')
  29241. if self.success is not None:
  29242. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  29243. self.success.write(oprot)
  29244. oprot.writeFieldEnd()
  29245. oprot.writeFieldStop()
  29246. oprot.writeStructEnd()
  29247. def validate(self):
  29248. return
  29249. def __hash__(self):
  29250. value = 17
  29251. value = (value * 31) ^ hash(self.success)
  29252. return value
  29253. def __repr__(self):
  29254. L = ['%s=%r' % (key, value)
  29255. for key, value in self.__dict__.iteritems()]
  29256. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29257. def __eq__(self, other):
  29258. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29259. def __ne__(self, other):
  29260. return not (self == other)
  29261. class get_open_txns_info_args(object):
  29262. thrift_spec = (
  29263. )
  29264. def read(self, iprot):
  29265. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29266. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29267. return
  29268. iprot.readStructBegin()
  29269. while True:
  29270. (fname, ftype, fid) = iprot.readFieldBegin()
  29271. if ftype == TType.STOP:
  29272. break
  29273. else:
  29274. iprot.skip(ftype)
  29275. iprot.readFieldEnd()
  29276. iprot.readStructEnd()
  29277. def write(self, oprot):
  29278. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29279. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29280. return
  29281. oprot.writeStructBegin('get_open_txns_info_args')
  29282. oprot.writeFieldStop()
  29283. oprot.writeStructEnd()
  29284. def validate(self):
  29285. return
  29286. def __hash__(self):
  29287. value = 17
  29288. return value
  29289. def __repr__(self):
  29290. L = ['%s=%r' % (key, value)
  29291. for key, value in self.__dict__.iteritems()]
  29292. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29293. def __eq__(self, other):
  29294. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29295. def __ne__(self, other):
  29296. return not (self == other)
  29297. class get_open_txns_info_result(object):
  29298. """
  29299. Attributes:
  29300. - success
  29301. """
  29302. thrift_spec = (
  29303. (0, TType.STRUCT, 'success', (GetOpenTxnsInfoResponse, GetOpenTxnsInfoResponse.thrift_spec), None, ), # 0
  29304. )
  29305. def __init__(self, success=None,):
  29306. self.success = success
  29307. def read(self, iprot):
  29308. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29309. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29310. return
  29311. iprot.readStructBegin()
  29312. while True:
  29313. (fname, ftype, fid) = iprot.readFieldBegin()
  29314. if ftype == TType.STOP:
  29315. break
  29316. if fid == 0:
  29317. if ftype == TType.STRUCT:
  29318. self.success = GetOpenTxnsInfoResponse()
  29319. self.success.read(iprot)
  29320. else:
  29321. iprot.skip(ftype)
  29322. else:
  29323. iprot.skip(ftype)
  29324. iprot.readFieldEnd()
  29325. iprot.readStructEnd()
  29326. def write(self, oprot):
  29327. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29328. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29329. return
  29330. oprot.writeStructBegin('get_open_txns_info_result')
  29331. if self.success is not None:
  29332. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  29333. self.success.write(oprot)
  29334. oprot.writeFieldEnd()
  29335. oprot.writeFieldStop()
  29336. oprot.writeStructEnd()
  29337. def validate(self):
  29338. return
  29339. def __hash__(self):
  29340. value = 17
  29341. value = (value * 31) ^ hash(self.success)
  29342. return value
  29343. def __repr__(self):
  29344. L = ['%s=%r' % (key, value)
  29345. for key, value in self.__dict__.iteritems()]
  29346. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29347. def __eq__(self, other):
  29348. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29349. def __ne__(self, other):
  29350. return not (self == other)
  29351. class open_txns_args(object):
  29352. """
  29353. Attributes:
  29354. - rqst
  29355. """
  29356. thrift_spec = (
  29357. None, # 0
  29358. (1, TType.STRUCT, 'rqst', (OpenTxnRequest, OpenTxnRequest.thrift_spec), None, ), # 1
  29359. )
  29360. def __init__(self, rqst=None,):
  29361. self.rqst = rqst
  29362. def read(self, iprot):
  29363. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29364. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29365. return
  29366. iprot.readStructBegin()
  29367. while True:
  29368. (fname, ftype, fid) = iprot.readFieldBegin()
  29369. if ftype == TType.STOP:
  29370. break
  29371. if fid == 1:
  29372. if ftype == TType.STRUCT:
  29373. self.rqst = OpenTxnRequest()
  29374. self.rqst.read(iprot)
  29375. else:
  29376. iprot.skip(ftype)
  29377. else:
  29378. iprot.skip(ftype)
  29379. iprot.readFieldEnd()
  29380. iprot.readStructEnd()
  29381. def write(self, oprot):
  29382. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29383. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29384. return
  29385. oprot.writeStructBegin('open_txns_args')
  29386. if self.rqst is not None:
  29387. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29388. self.rqst.write(oprot)
  29389. oprot.writeFieldEnd()
  29390. oprot.writeFieldStop()
  29391. oprot.writeStructEnd()
  29392. def validate(self):
  29393. return
  29394. def __hash__(self):
  29395. value = 17
  29396. value = (value * 31) ^ hash(self.rqst)
  29397. return value
  29398. def __repr__(self):
  29399. L = ['%s=%r' % (key, value)
  29400. for key, value in self.__dict__.iteritems()]
  29401. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29402. def __eq__(self, other):
  29403. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29404. def __ne__(self, other):
  29405. return not (self == other)
  29406. class open_txns_result(object):
  29407. """
  29408. Attributes:
  29409. - success
  29410. """
  29411. thrift_spec = (
  29412. (0, TType.STRUCT, 'success', (OpenTxnsResponse, OpenTxnsResponse.thrift_spec), None, ), # 0
  29413. )
  29414. def __init__(self, success=None,):
  29415. self.success = success
  29416. def read(self, iprot):
  29417. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29418. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29419. return
  29420. iprot.readStructBegin()
  29421. while True:
  29422. (fname, ftype, fid) = iprot.readFieldBegin()
  29423. if ftype == TType.STOP:
  29424. break
  29425. if fid == 0:
  29426. if ftype == TType.STRUCT:
  29427. self.success = OpenTxnsResponse()
  29428. self.success.read(iprot)
  29429. else:
  29430. iprot.skip(ftype)
  29431. else:
  29432. iprot.skip(ftype)
  29433. iprot.readFieldEnd()
  29434. iprot.readStructEnd()
  29435. def write(self, oprot):
  29436. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29437. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29438. return
  29439. oprot.writeStructBegin('open_txns_result')
  29440. if self.success is not None:
  29441. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  29442. self.success.write(oprot)
  29443. oprot.writeFieldEnd()
  29444. oprot.writeFieldStop()
  29445. oprot.writeStructEnd()
  29446. def validate(self):
  29447. return
  29448. def __hash__(self):
  29449. value = 17
  29450. value = (value * 31) ^ hash(self.success)
  29451. return value
  29452. def __repr__(self):
  29453. L = ['%s=%r' % (key, value)
  29454. for key, value in self.__dict__.iteritems()]
  29455. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29456. def __eq__(self, other):
  29457. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29458. def __ne__(self, other):
  29459. return not (self == other)
  29460. class abort_txn_args(object):
  29461. """
  29462. Attributes:
  29463. - rqst
  29464. """
  29465. thrift_spec = (
  29466. None, # 0
  29467. (1, TType.STRUCT, 'rqst', (AbortTxnRequest, AbortTxnRequest.thrift_spec), None, ), # 1
  29468. )
  29469. def __init__(self, rqst=None,):
  29470. self.rqst = rqst
  29471. def read(self, iprot):
  29472. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29473. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29474. return
  29475. iprot.readStructBegin()
  29476. while True:
  29477. (fname, ftype, fid) = iprot.readFieldBegin()
  29478. if ftype == TType.STOP:
  29479. break
  29480. if fid == 1:
  29481. if ftype == TType.STRUCT:
  29482. self.rqst = AbortTxnRequest()
  29483. self.rqst.read(iprot)
  29484. else:
  29485. iprot.skip(ftype)
  29486. else:
  29487. iprot.skip(ftype)
  29488. iprot.readFieldEnd()
  29489. iprot.readStructEnd()
  29490. def write(self, oprot):
  29491. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29492. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29493. return
  29494. oprot.writeStructBegin('abort_txn_args')
  29495. if self.rqst is not None:
  29496. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29497. self.rqst.write(oprot)
  29498. oprot.writeFieldEnd()
  29499. oprot.writeFieldStop()
  29500. oprot.writeStructEnd()
  29501. def validate(self):
  29502. return
  29503. def __hash__(self):
  29504. value = 17
  29505. value = (value * 31) ^ hash(self.rqst)
  29506. return value
  29507. def __repr__(self):
  29508. L = ['%s=%r' % (key, value)
  29509. for key, value in self.__dict__.iteritems()]
  29510. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29511. def __eq__(self, other):
  29512. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29513. def __ne__(self, other):
  29514. return not (self == other)
  29515. class abort_txn_result(object):
  29516. """
  29517. Attributes:
  29518. - o1
  29519. """
  29520. thrift_spec = (
  29521. None, # 0
  29522. (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1
  29523. )
  29524. def __init__(self, o1=None,):
  29525. self.o1 = o1
  29526. def read(self, iprot):
  29527. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29528. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29529. return
  29530. iprot.readStructBegin()
  29531. while True:
  29532. (fname, ftype, fid) = iprot.readFieldBegin()
  29533. if ftype == TType.STOP:
  29534. break
  29535. if fid == 1:
  29536. if ftype == TType.STRUCT:
  29537. self.o1 = NoSuchTxnException()
  29538. self.o1.read(iprot)
  29539. else:
  29540. iprot.skip(ftype)
  29541. else:
  29542. iprot.skip(ftype)
  29543. iprot.readFieldEnd()
  29544. iprot.readStructEnd()
  29545. def write(self, oprot):
  29546. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29547. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29548. return
  29549. oprot.writeStructBegin('abort_txn_result')
  29550. if self.o1 is not None:
  29551. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  29552. self.o1.write(oprot)
  29553. oprot.writeFieldEnd()
  29554. oprot.writeFieldStop()
  29555. oprot.writeStructEnd()
  29556. def validate(self):
  29557. return
  29558. def __hash__(self):
  29559. value = 17
  29560. value = (value * 31) ^ hash(self.o1)
  29561. return value
  29562. def __repr__(self):
  29563. L = ['%s=%r' % (key, value)
  29564. for key, value in self.__dict__.iteritems()]
  29565. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29566. def __eq__(self, other):
  29567. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29568. def __ne__(self, other):
  29569. return not (self == other)
  29570. class abort_txns_args(object):
  29571. """
  29572. Attributes:
  29573. - rqst
  29574. """
  29575. thrift_spec = (
  29576. None, # 0
  29577. (1, TType.STRUCT, 'rqst', (AbortTxnsRequest, AbortTxnsRequest.thrift_spec), None, ), # 1
  29578. )
  29579. def __init__(self, rqst=None,):
  29580. self.rqst = rqst
  29581. def read(self, iprot):
  29582. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29583. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29584. return
  29585. iprot.readStructBegin()
  29586. while True:
  29587. (fname, ftype, fid) = iprot.readFieldBegin()
  29588. if ftype == TType.STOP:
  29589. break
  29590. if fid == 1:
  29591. if ftype == TType.STRUCT:
  29592. self.rqst = AbortTxnsRequest()
  29593. self.rqst.read(iprot)
  29594. else:
  29595. iprot.skip(ftype)
  29596. else:
  29597. iprot.skip(ftype)
  29598. iprot.readFieldEnd()
  29599. iprot.readStructEnd()
  29600. def write(self, oprot):
  29601. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29602. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29603. return
  29604. oprot.writeStructBegin('abort_txns_args')
  29605. if self.rqst is not None:
  29606. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29607. self.rqst.write(oprot)
  29608. oprot.writeFieldEnd()
  29609. oprot.writeFieldStop()
  29610. oprot.writeStructEnd()
  29611. def validate(self):
  29612. return
  29613. def __hash__(self):
  29614. value = 17
  29615. value = (value * 31) ^ hash(self.rqst)
  29616. return value
  29617. def __repr__(self):
  29618. L = ['%s=%r' % (key, value)
  29619. for key, value in self.__dict__.iteritems()]
  29620. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29621. def __eq__(self, other):
  29622. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29623. def __ne__(self, other):
  29624. return not (self == other)
  29625. class abort_txns_result(object):
  29626. """
  29627. Attributes:
  29628. - o1
  29629. """
  29630. thrift_spec = (
  29631. None, # 0
  29632. (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1
  29633. )
  29634. def __init__(self, o1=None,):
  29635. self.o1 = o1
  29636. def read(self, iprot):
  29637. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29638. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29639. return
  29640. iprot.readStructBegin()
  29641. while True:
  29642. (fname, ftype, fid) = iprot.readFieldBegin()
  29643. if ftype == TType.STOP:
  29644. break
  29645. if fid == 1:
  29646. if ftype == TType.STRUCT:
  29647. self.o1 = NoSuchTxnException()
  29648. self.o1.read(iprot)
  29649. else:
  29650. iprot.skip(ftype)
  29651. else:
  29652. iprot.skip(ftype)
  29653. iprot.readFieldEnd()
  29654. iprot.readStructEnd()
  29655. def write(self, oprot):
  29656. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29657. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29658. return
  29659. oprot.writeStructBegin('abort_txns_result')
  29660. if self.o1 is not None:
  29661. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  29662. self.o1.write(oprot)
  29663. oprot.writeFieldEnd()
  29664. oprot.writeFieldStop()
  29665. oprot.writeStructEnd()
  29666. def validate(self):
  29667. return
  29668. def __hash__(self):
  29669. value = 17
  29670. value = (value * 31) ^ hash(self.o1)
  29671. return value
  29672. def __repr__(self):
  29673. L = ['%s=%r' % (key, value)
  29674. for key, value in self.__dict__.iteritems()]
  29675. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29676. def __eq__(self, other):
  29677. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29678. def __ne__(self, other):
  29679. return not (self == other)
  29680. class commit_txn_args(object):
  29681. """
  29682. Attributes:
  29683. - rqst
  29684. """
  29685. thrift_spec = (
  29686. None, # 0
  29687. (1, TType.STRUCT, 'rqst', (CommitTxnRequest, CommitTxnRequest.thrift_spec), None, ), # 1
  29688. )
  29689. def __init__(self, rqst=None,):
  29690. self.rqst = rqst
  29691. def read(self, iprot):
  29692. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29693. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29694. return
  29695. iprot.readStructBegin()
  29696. while True:
  29697. (fname, ftype, fid) = iprot.readFieldBegin()
  29698. if ftype == TType.STOP:
  29699. break
  29700. if fid == 1:
  29701. if ftype == TType.STRUCT:
  29702. self.rqst = CommitTxnRequest()
  29703. self.rqst.read(iprot)
  29704. else:
  29705. iprot.skip(ftype)
  29706. else:
  29707. iprot.skip(ftype)
  29708. iprot.readFieldEnd()
  29709. iprot.readStructEnd()
  29710. def write(self, oprot):
  29711. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29712. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29713. return
  29714. oprot.writeStructBegin('commit_txn_args')
  29715. if self.rqst is not None:
  29716. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29717. self.rqst.write(oprot)
  29718. oprot.writeFieldEnd()
  29719. oprot.writeFieldStop()
  29720. oprot.writeStructEnd()
  29721. def validate(self):
  29722. return
  29723. def __hash__(self):
  29724. value = 17
  29725. value = (value * 31) ^ hash(self.rqst)
  29726. return value
  29727. def __repr__(self):
  29728. L = ['%s=%r' % (key, value)
  29729. for key, value in self.__dict__.iteritems()]
  29730. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29731. def __eq__(self, other):
  29732. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29733. def __ne__(self, other):
  29734. return not (self == other)
  29735. class commit_txn_result(object):
  29736. """
  29737. Attributes:
  29738. - o1
  29739. - o2
  29740. """
  29741. thrift_spec = (
  29742. None, # 0
  29743. (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1
  29744. (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2
  29745. )
  29746. def __init__(self, o1=None, o2=None,):
  29747. self.o1 = o1
  29748. self.o2 = o2
  29749. def read(self, iprot):
  29750. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29751. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29752. return
  29753. iprot.readStructBegin()
  29754. while True:
  29755. (fname, ftype, fid) = iprot.readFieldBegin()
  29756. if ftype == TType.STOP:
  29757. break
  29758. if fid == 1:
  29759. if ftype == TType.STRUCT:
  29760. self.o1 = NoSuchTxnException()
  29761. self.o1.read(iprot)
  29762. else:
  29763. iprot.skip(ftype)
  29764. elif fid == 2:
  29765. if ftype == TType.STRUCT:
  29766. self.o2 = TxnAbortedException()
  29767. self.o2.read(iprot)
  29768. else:
  29769. iprot.skip(ftype)
  29770. else:
  29771. iprot.skip(ftype)
  29772. iprot.readFieldEnd()
  29773. iprot.readStructEnd()
  29774. def write(self, oprot):
  29775. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29776. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29777. return
  29778. oprot.writeStructBegin('commit_txn_result')
  29779. if self.o1 is not None:
  29780. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  29781. self.o1.write(oprot)
  29782. oprot.writeFieldEnd()
  29783. if self.o2 is not None:
  29784. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  29785. self.o2.write(oprot)
  29786. oprot.writeFieldEnd()
  29787. oprot.writeFieldStop()
  29788. oprot.writeStructEnd()
  29789. def validate(self):
  29790. return
  29791. def __hash__(self):
  29792. value = 17
  29793. value = (value * 31) ^ hash(self.o1)
  29794. value = (value * 31) ^ hash(self.o2)
  29795. return value
  29796. def __repr__(self):
  29797. L = ['%s=%r' % (key, value)
  29798. for key, value in self.__dict__.iteritems()]
  29799. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29800. def __eq__(self, other):
  29801. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29802. def __ne__(self, other):
  29803. return not (self == other)
  29804. class lock_args(object):
  29805. """
  29806. Attributes:
  29807. - rqst
  29808. """
  29809. thrift_spec = (
  29810. None, # 0
  29811. (1, TType.STRUCT, 'rqst', (LockRequest, LockRequest.thrift_spec), None, ), # 1
  29812. )
  29813. def __init__(self, rqst=None,):
  29814. self.rqst = rqst
  29815. def read(self, iprot):
  29816. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29817. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29818. return
  29819. iprot.readStructBegin()
  29820. while True:
  29821. (fname, ftype, fid) = iprot.readFieldBegin()
  29822. if ftype == TType.STOP:
  29823. break
  29824. if fid == 1:
  29825. if ftype == TType.STRUCT:
  29826. self.rqst = LockRequest()
  29827. self.rqst.read(iprot)
  29828. else:
  29829. iprot.skip(ftype)
  29830. else:
  29831. iprot.skip(ftype)
  29832. iprot.readFieldEnd()
  29833. iprot.readStructEnd()
  29834. def write(self, oprot):
  29835. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29836. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29837. return
  29838. oprot.writeStructBegin('lock_args')
  29839. if self.rqst is not None:
  29840. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29841. self.rqst.write(oprot)
  29842. oprot.writeFieldEnd()
  29843. oprot.writeFieldStop()
  29844. oprot.writeStructEnd()
  29845. def validate(self):
  29846. return
  29847. def __hash__(self):
  29848. value = 17
  29849. value = (value * 31) ^ hash(self.rqst)
  29850. return value
  29851. def __repr__(self):
  29852. L = ['%s=%r' % (key, value)
  29853. for key, value in self.__dict__.iteritems()]
  29854. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29855. def __eq__(self, other):
  29856. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29857. def __ne__(self, other):
  29858. return not (self == other)
  29859. class lock_result(object):
  29860. """
  29861. Attributes:
  29862. - success
  29863. - o1
  29864. - o2
  29865. """
  29866. thrift_spec = (
  29867. (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), None, ), # 0
  29868. (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1
  29869. (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2
  29870. )
  29871. def __init__(self, success=None, o1=None, o2=None,):
  29872. self.success = success
  29873. self.o1 = o1
  29874. self.o2 = o2
  29875. def read(self, iprot):
  29876. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29877. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29878. return
  29879. iprot.readStructBegin()
  29880. while True:
  29881. (fname, ftype, fid) = iprot.readFieldBegin()
  29882. if ftype == TType.STOP:
  29883. break
  29884. if fid == 0:
  29885. if ftype == TType.STRUCT:
  29886. self.success = LockResponse()
  29887. self.success.read(iprot)
  29888. else:
  29889. iprot.skip(ftype)
  29890. elif fid == 1:
  29891. if ftype == TType.STRUCT:
  29892. self.o1 = NoSuchTxnException()
  29893. self.o1.read(iprot)
  29894. else:
  29895. iprot.skip(ftype)
  29896. elif fid == 2:
  29897. if ftype == TType.STRUCT:
  29898. self.o2 = TxnAbortedException()
  29899. self.o2.read(iprot)
  29900. else:
  29901. iprot.skip(ftype)
  29902. else:
  29903. iprot.skip(ftype)
  29904. iprot.readFieldEnd()
  29905. iprot.readStructEnd()
  29906. def write(self, oprot):
  29907. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29908. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29909. return
  29910. oprot.writeStructBegin('lock_result')
  29911. if self.success is not None:
  29912. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  29913. self.success.write(oprot)
  29914. oprot.writeFieldEnd()
  29915. if self.o1 is not None:
  29916. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  29917. self.o1.write(oprot)
  29918. oprot.writeFieldEnd()
  29919. if self.o2 is not None:
  29920. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  29921. self.o2.write(oprot)
  29922. oprot.writeFieldEnd()
  29923. oprot.writeFieldStop()
  29924. oprot.writeStructEnd()
  29925. def validate(self):
  29926. return
  29927. def __hash__(self):
  29928. value = 17
  29929. value = (value * 31) ^ hash(self.success)
  29930. value = (value * 31) ^ hash(self.o1)
  29931. value = (value * 31) ^ hash(self.o2)
  29932. return value
  29933. def __repr__(self):
  29934. L = ['%s=%r' % (key, value)
  29935. for key, value in self.__dict__.iteritems()]
  29936. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29937. def __eq__(self, other):
  29938. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29939. def __ne__(self, other):
  29940. return not (self == other)
  29941. class check_lock_args(object):
  29942. """
  29943. Attributes:
  29944. - rqst
  29945. """
  29946. thrift_spec = (
  29947. None, # 0
  29948. (1, TType.STRUCT, 'rqst', (CheckLockRequest, CheckLockRequest.thrift_spec), None, ), # 1
  29949. )
  29950. def __init__(self, rqst=None,):
  29951. self.rqst = rqst
  29952. def read(self, iprot):
  29953. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  29954. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  29955. return
  29956. iprot.readStructBegin()
  29957. while True:
  29958. (fname, ftype, fid) = iprot.readFieldBegin()
  29959. if ftype == TType.STOP:
  29960. break
  29961. if fid == 1:
  29962. if ftype == TType.STRUCT:
  29963. self.rqst = CheckLockRequest()
  29964. self.rqst.read(iprot)
  29965. else:
  29966. iprot.skip(ftype)
  29967. else:
  29968. iprot.skip(ftype)
  29969. iprot.readFieldEnd()
  29970. iprot.readStructEnd()
  29971. def write(self, oprot):
  29972. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  29973. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  29974. return
  29975. oprot.writeStructBegin('check_lock_args')
  29976. if self.rqst is not None:
  29977. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29978. self.rqst.write(oprot)
  29979. oprot.writeFieldEnd()
  29980. oprot.writeFieldStop()
  29981. oprot.writeStructEnd()
  29982. def validate(self):
  29983. return
  29984. def __hash__(self):
  29985. value = 17
  29986. value = (value * 31) ^ hash(self.rqst)
  29987. return value
  29988. def __repr__(self):
  29989. L = ['%s=%r' % (key, value)
  29990. for key, value in self.__dict__.iteritems()]
  29991. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29992. def __eq__(self, other):
  29993. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29994. def __ne__(self, other):
  29995. return not (self == other)
  29996. class check_lock_result(object):
  29997. """
  29998. Attributes:
  29999. - success
  30000. - o1
  30001. - o2
  30002. - o3
  30003. """
  30004. thrift_spec = (
  30005. (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), None, ), # 0
  30006. (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1
  30007. (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2
  30008. (3, TType.STRUCT, 'o3', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 3
  30009. )
  30010. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  30011. self.success = success
  30012. self.o1 = o1
  30013. self.o2 = o2
  30014. self.o3 = o3
  30015. def read(self, iprot):
  30016. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30017. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30018. return
  30019. iprot.readStructBegin()
  30020. while True:
  30021. (fname, ftype, fid) = iprot.readFieldBegin()
  30022. if ftype == TType.STOP:
  30023. break
  30024. if fid == 0:
  30025. if ftype == TType.STRUCT:
  30026. self.success = LockResponse()
  30027. self.success.read(iprot)
  30028. else:
  30029. iprot.skip(ftype)
  30030. elif fid == 1:
  30031. if ftype == TType.STRUCT:
  30032. self.o1 = NoSuchTxnException()
  30033. self.o1.read(iprot)
  30034. else:
  30035. iprot.skip(ftype)
  30036. elif fid == 2:
  30037. if ftype == TType.STRUCT:
  30038. self.o2 = TxnAbortedException()
  30039. self.o2.read(iprot)
  30040. else:
  30041. iprot.skip(ftype)
  30042. elif fid == 3:
  30043. if ftype == TType.STRUCT:
  30044. self.o3 = NoSuchLockException()
  30045. self.o3.read(iprot)
  30046. else:
  30047. iprot.skip(ftype)
  30048. else:
  30049. iprot.skip(ftype)
  30050. iprot.readFieldEnd()
  30051. iprot.readStructEnd()
  30052. def write(self, oprot):
  30053. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30054. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30055. return
  30056. oprot.writeStructBegin('check_lock_result')
  30057. if self.success is not None:
  30058. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  30059. self.success.write(oprot)
  30060. oprot.writeFieldEnd()
  30061. if self.o1 is not None:
  30062. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  30063. self.o1.write(oprot)
  30064. oprot.writeFieldEnd()
  30065. if self.o2 is not None:
  30066. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  30067. self.o2.write(oprot)
  30068. oprot.writeFieldEnd()
  30069. if self.o3 is not None:
  30070. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  30071. self.o3.write(oprot)
  30072. oprot.writeFieldEnd()
  30073. oprot.writeFieldStop()
  30074. oprot.writeStructEnd()
  30075. def validate(self):
  30076. return
  30077. def __hash__(self):
  30078. value = 17
  30079. value = (value * 31) ^ hash(self.success)
  30080. value = (value * 31) ^ hash(self.o1)
  30081. value = (value * 31) ^ hash(self.o2)
  30082. value = (value * 31) ^ hash(self.o3)
  30083. return value
  30084. def __repr__(self):
  30085. L = ['%s=%r' % (key, value)
  30086. for key, value in self.__dict__.iteritems()]
  30087. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30088. def __eq__(self, other):
  30089. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30090. def __ne__(self, other):
  30091. return not (self == other)
  30092. class unlock_args(object):
  30093. """
  30094. Attributes:
  30095. - rqst
  30096. """
  30097. thrift_spec = (
  30098. None, # 0
  30099. (1, TType.STRUCT, 'rqst', (UnlockRequest, UnlockRequest.thrift_spec), None, ), # 1
  30100. )
  30101. def __init__(self, rqst=None,):
  30102. self.rqst = rqst
  30103. def read(self, iprot):
  30104. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30105. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30106. return
  30107. iprot.readStructBegin()
  30108. while True:
  30109. (fname, ftype, fid) = iprot.readFieldBegin()
  30110. if ftype == TType.STOP:
  30111. break
  30112. if fid == 1:
  30113. if ftype == TType.STRUCT:
  30114. self.rqst = UnlockRequest()
  30115. self.rqst.read(iprot)
  30116. else:
  30117. iprot.skip(ftype)
  30118. else:
  30119. iprot.skip(ftype)
  30120. iprot.readFieldEnd()
  30121. iprot.readStructEnd()
  30122. def write(self, oprot):
  30123. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30124. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30125. return
  30126. oprot.writeStructBegin('unlock_args')
  30127. if self.rqst is not None:
  30128. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  30129. self.rqst.write(oprot)
  30130. oprot.writeFieldEnd()
  30131. oprot.writeFieldStop()
  30132. oprot.writeStructEnd()
  30133. def validate(self):
  30134. return
  30135. def __hash__(self):
  30136. value = 17
  30137. value = (value * 31) ^ hash(self.rqst)
  30138. return value
  30139. def __repr__(self):
  30140. L = ['%s=%r' % (key, value)
  30141. for key, value in self.__dict__.iteritems()]
  30142. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30143. def __eq__(self, other):
  30144. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30145. def __ne__(self, other):
  30146. return not (self == other)
  30147. class unlock_result(object):
  30148. """
  30149. Attributes:
  30150. - o1
  30151. - o2
  30152. """
  30153. thrift_spec = (
  30154. None, # 0
  30155. (1, TType.STRUCT, 'o1', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 1
  30156. (2, TType.STRUCT, 'o2', (TxnOpenException, TxnOpenException.thrift_spec), None, ), # 2
  30157. )
  30158. def __init__(self, o1=None, o2=None,):
  30159. self.o1 = o1
  30160. self.o2 = o2
  30161. def read(self, iprot):
  30162. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30163. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30164. return
  30165. iprot.readStructBegin()
  30166. while True:
  30167. (fname, ftype, fid) = iprot.readFieldBegin()
  30168. if ftype == TType.STOP:
  30169. break
  30170. if fid == 1:
  30171. if ftype == TType.STRUCT:
  30172. self.o1 = NoSuchLockException()
  30173. self.o1.read(iprot)
  30174. else:
  30175. iprot.skip(ftype)
  30176. elif fid == 2:
  30177. if ftype == TType.STRUCT:
  30178. self.o2 = TxnOpenException()
  30179. self.o2.read(iprot)
  30180. else:
  30181. iprot.skip(ftype)
  30182. else:
  30183. iprot.skip(ftype)
  30184. iprot.readFieldEnd()
  30185. iprot.readStructEnd()
  30186. def write(self, oprot):
  30187. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30188. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30189. return
  30190. oprot.writeStructBegin('unlock_result')
  30191. if self.o1 is not None:
  30192. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  30193. self.o1.write(oprot)
  30194. oprot.writeFieldEnd()
  30195. if self.o2 is not None:
  30196. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  30197. self.o2.write(oprot)
  30198. oprot.writeFieldEnd()
  30199. oprot.writeFieldStop()
  30200. oprot.writeStructEnd()
  30201. def validate(self):
  30202. return
  30203. def __hash__(self):
  30204. value = 17
  30205. value = (value * 31) ^ hash(self.o1)
  30206. value = (value * 31) ^ hash(self.o2)
  30207. return value
  30208. def __repr__(self):
  30209. L = ['%s=%r' % (key, value)
  30210. for key, value in self.__dict__.iteritems()]
  30211. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30212. def __eq__(self, other):
  30213. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30214. def __ne__(self, other):
  30215. return not (self == other)
  30216. class show_locks_args(object):
  30217. """
  30218. Attributes:
  30219. - rqst
  30220. """
  30221. thrift_spec = (
  30222. None, # 0
  30223. (1, TType.STRUCT, 'rqst', (ShowLocksRequest, ShowLocksRequest.thrift_spec), None, ), # 1
  30224. )
  30225. def __init__(self, rqst=None,):
  30226. self.rqst = rqst
  30227. def read(self, iprot):
  30228. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30229. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30230. return
  30231. iprot.readStructBegin()
  30232. while True:
  30233. (fname, ftype, fid) = iprot.readFieldBegin()
  30234. if ftype == TType.STOP:
  30235. break
  30236. if fid == 1:
  30237. if ftype == TType.STRUCT:
  30238. self.rqst = ShowLocksRequest()
  30239. self.rqst.read(iprot)
  30240. else:
  30241. iprot.skip(ftype)
  30242. else:
  30243. iprot.skip(ftype)
  30244. iprot.readFieldEnd()
  30245. iprot.readStructEnd()
  30246. def write(self, oprot):
  30247. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30248. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30249. return
  30250. oprot.writeStructBegin('show_locks_args')
  30251. if self.rqst is not None:
  30252. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  30253. self.rqst.write(oprot)
  30254. oprot.writeFieldEnd()
  30255. oprot.writeFieldStop()
  30256. oprot.writeStructEnd()
  30257. def validate(self):
  30258. return
  30259. def __hash__(self):
  30260. value = 17
  30261. value = (value * 31) ^ hash(self.rqst)
  30262. return value
  30263. def __repr__(self):
  30264. L = ['%s=%r' % (key, value)
  30265. for key, value in self.__dict__.iteritems()]
  30266. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30267. def __eq__(self, other):
  30268. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30269. def __ne__(self, other):
  30270. return not (self == other)
  30271. class show_locks_result(object):
  30272. """
  30273. Attributes:
  30274. - success
  30275. """
  30276. thrift_spec = (
  30277. (0, TType.STRUCT, 'success', (ShowLocksResponse, ShowLocksResponse.thrift_spec), None, ), # 0
  30278. )
  30279. def __init__(self, success=None,):
  30280. self.success = success
  30281. def read(self, iprot):
  30282. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30283. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30284. return
  30285. iprot.readStructBegin()
  30286. while True:
  30287. (fname, ftype, fid) = iprot.readFieldBegin()
  30288. if ftype == TType.STOP:
  30289. break
  30290. if fid == 0:
  30291. if ftype == TType.STRUCT:
  30292. self.success = ShowLocksResponse()
  30293. self.success.read(iprot)
  30294. else:
  30295. iprot.skip(ftype)
  30296. else:
  30297. iprot.skip(ftype)
  30298. iprot.readFieldEnd()
  30299. iprot.readStructEnd()
  30300. def write(self, oprot):
  30301. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30302. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30303. return
  30304. oprot.writeStructBegin('show_locks_result')
  30305. if self.success is not None:
  30306. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  30307. self.success.write(oprot)
  30308. oprot.writeFieldEnd()
  30309. oprot.writeFieldStop()
  30310. oprot.writeStructEnd()
  30311. def validate(self):
  30312. return
  30313. def __hash__(self):
  30314. value = 17
  30315. value = (value * 31) ^ hash(self.success)
  30316. return value
  30317. def __repr__(self):
  30318. L = ['%s=%r' % (key, value)
  30319. for key, value in self.__dict__.iteritems()]
  30320. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30321. def __eq__(self, other):
  30322. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30323. def __ne__(self, other):
  30324. return not (self == other)
  30325. class heartbeat_args(object):
  30326. """
  30327. Attributes:
  30328. - ids
  30329. """
  30330. thrift_spec = (
  30331. None, # 0
  30332. (1, TType.STRUCT, 'ids', (HeartbeatRequest, HeartbeatRequest.thrift_spec), None, ), # 1
  30333. )
  30334. def __init__(self, ids=None,):
  30335. self.ids = ids
  30336. def read(self, iprot):
  30337. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30338. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30339. return
  30340. iprot.readStructBegin()
  30341. while True:
  30342. (fname, ftype, fid) = iprot.readFieldBegin()
  30343. if ftype == TType.STOP:
  30344. break
  30345. if fid == 1:
  30346. if ftype == TType.STRUCT:
  30347. self.ids = HeartbeatRequest()
  30348. self.ids.read(iprot)
  30349. else:
  30350. iprot.skip(ftype)
  30351. else:
  30352. iprot.skip(ftype)
  30353. iprot.readFieldEnd()
  30354. iprot.readStructEnd()
  30355. def write(self, oprot):
  30356. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30357. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30358. return
  30359. oprot.writeStructBegin('heartbeat_args')
  30360. if self.ids is not None:
  30361. oprot.writeFieldBegin('ids', TType.STRUCT, 1)
  30362. self.ids.write(oprot)
  30363. oprot.writeFieldEnd()
  30364. oprot.writeFieldStop()
  30365. oprot.writeStructEnd()
  30366. def validate(self):
  30367. return
  30368. def __hash__(self):
  30369. value = 17
  30370. value = (value * 31) ^ hash(self.ids)
  30371. return value
  30372. def __repr__(self):
  30373. L = ['%s=%r' % (key, value)
  30374. for key, value in self.__dict__.iteritems()]
  30375. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30376. def __eq__(self, other):
  30377. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30378. def __ne__(self, other):
  30379. return not (self == other)
  30380. class heartbeat_result(object):
  30381. """
  30382. Attributes:
  30383. - o1
  30384. - o2
  30385. - o3
  30386. """
  30387. thrift_spec = (
  30388. None, # 0
  30389. (1, TType.STRUCT, 'o1', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 1
  30390. (2, TType.STRUCT, 'o2', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 2
  30391. (3, TType.STRUCT, 'o3', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 3
  30392. )
  30393. def __init__(self, o1=None, o2=None, o3=None,):
  30394. self.o1 = o1
  30395. self.o2 = o2
  30396. self.o3 = o3
  30397. def read(self, iprot):
  30398. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30399. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30400. return
  30401. iprot.readStructBegin()
  30402. while True:
  30403. (fname, ftype, fid) = iprot.readFieldBegin()
  30404. if ftype == TType.STOP:
  30405. break
  30406. if fid == 1:
  30407. if ftype == TType.STRUCT:
  30408. self.o1 = NoSuchLockException()
  30409. self.o1.read(iprot)
  30410. else:
  30411. iprot.skip(ftype)
  30412. elif fid == 2:
  30413. if ftype == TType.STRUCT:
  30414. self.o2 = NoSuchTxnException()
  30415. self.o2.read(iprot)
  30416. else:
  30417. iprot.skip(ftype)
  30418. elif fid == 3:
  30419. if ftype == TType.STRUCT:
  30420. self.o3 = TxnAbortedException()
  30421. self.o3.read(iprot)
  30422. else:
  30423. iprot.skip(ftype)
  30424. else:
  30425. iprot.skip(ftype)
  30426. iprot.readFieldEnd()
  30427. iprot.readStructEnd()
  30428. def write(self, oprot):
  30429. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30430. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30431. return
  30432. oprot.writeStructBegin('heartbeat_result')
  30433. if self.o1 is not None:
  30434. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  30435. self.o1.write(oprot)
  30436. oprot.writeFieldEnd()
  30437. if self.o2 is not None:
  30438. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  30439. self.o2.write(oprot)
  30440. oprot.writeFieldEnd()
  30441. if self.o3 is not None:
  30442. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  30443. self.o3.write(oprot)
  30444. oprot.writeFieldEnd()
  30445. oprot.writeFieldStop()
  30446. oprot.writeStructEnd()
  30447. def validate(self):
  30448. return
  30449. def __hash__(self):
  30450. value = 17
  30451. value = (value * 31) ^ hash(self.o1)
  30452. value = (value * 31) ^ hash(self.o2)
  30453. value = (value * 31) ^ hash(self.o3)
  30454. return value
  30455. def __repr__(self):
  30456. L = ['%s=%r' % (key, value)
  30457. for key, value in self.__dict__.iteritems()]
  30458. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30459. def __eq__(self, other):
  30460. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30461. def __ne__(self, other):
  30462. return not (self == other)
  30463. class heartbeat_txn_range_args(object):
  30464. """
  30465. Attributes:
  30466. - txns
  30467. """
  30468. thrift_spec = (
  30469. None, # 0
  30470. (1, TType.STRUCT, 'txns', (HeartbeatTxnRangeRequest, HeartbeatTxnRangeRequest.thrift_spec), None, ), # 1
  30471. )
  30472. def __init__(self, txns=None,):
  30473. self.txns = txns
  30474. def read(self, iprot):
  30475. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30476. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30477. return
  30478. iprot.readStructBegin()
  30479. while True:
  30480. (fname, ftype, fid) = iprot.readFieldBegin()
  30481. if ftype == TType.STOP:
  30482. break
  30483. if fid == 1:
  30484. if ftype == TType.STRUCT:
  30485. self.txns = HeartbeatTxnRangeRequest()
  30486. self.txns.read(iprot)
  30487. else:
  30488. iprot.skip(ftype)
  30489. else:
  30490. iprot.skip(ftype)
  30491. iprot.readFieldEnd()
  30492. iprot.readStructEnd()
  30493. def write(self, oprot):
  30494. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30495. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30496. return
  30497. oprot.writeStructBegin('heartbeat_txn_range_args')
  30498. if self.txns is not None:
  30499. oprot.writeFieldBegin('txns', TType.STRUCT, 1)
  30500. self.txns.write(oprot)
  30501. oprot.writeFieldEnd()
  30502. oprot.writeFieldStop()
  30503. oprot.writeStructEnd()
  30504. def validate(self):
  30505. return
  30506. def __hash__(self):
  30507. value = 17
  30508. value = (value * 31) ^ hash(self.txns)
  30509. return value
  30510. def __repr__(self):
  30511. L = ['%s=%r' % (key, value)
  30512. for key, value in self.__dict__.iteritems()]
  30513. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30514. def __eq__(self, other):
  30515. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30516. def __ne__(self, other):
  30517. return not (self == other)
  30518. class heartbeat_txn_range_result(object):
  30519. """
  30520. Attributes:
  30521. - success
  30522. """
  30523. thrift_spec = (
  30524. (0, TType.STRUCT, 'success', (HeartbeatTxnRangeResponse, HeartbeatTxnRangeResponse.thrift_spec), None, ), # 0
  30525. )
  30526. def __init__(self, success=None,):
  30527. self.success = success
  30528. def read(self, iprot):
  30529. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30530. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30531. return
  30532. iprot.readStructBegin()
  30533. while True:
  30534. (fname, ftype, fid) = iprot.readFieldBegin()
  30535. if ftype == TType.STOP:
  30536. break
  30537. if fid == 0:
  30538. if ftype == TType.STRUCT:
  30539. self.success = HeartbeatTxnRangeResponse()
  30540. self.success.read(iprot)
  30541. else:
  30542. iprot.skip(ftype)
  30543. else:
  30544. iprot.skip(ftype)
  30545. iprot.readFieldEnd()
  30546. iprot.readStructEnd()
  30547. def write(self, oprot):
  30548. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30549. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30550. return
  30551. oprot.writeStructBegin('heartbeat_txn_range_result')
  30552. if self.success is not None:
  30553. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  30554. self.success.write(oprot)
  30555. oprot.writeFieldEnd()
  30556. oprot.writeFieldStop()
  30557. oprot.writeStructEnd()
  30558. def validate(self):
  30559. return
  30560. def __hash__(self):
  30561. value = 17
  30562. value = (value * 31) ^ hash(self.success)
  30563. return value
  30564. def __repr__(self):
  30565. L = ['%s=%r' % (key, value)
  30566. for key, value in self.__dict__.iteritems()]
  30567. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30568. def __eq__(self, other):
  30569. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30570. def __ne__(self, other):
  30571. return not (self == other)
  30572. class compact_args(object):
  30573. """
  30574. Attributes:
  30575. - rqst
  30576. """
  30577. thrift_spec = (
  30578. None, # 0
  30579. (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.thrift_spec), None, ), # 1
  30580. )
  30581. def __init__(self, rqst=None,):
  30582. self.rqst = rqst
  30583. def read(self, iprot):
  30584. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30585. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30586. return
  30587. iprot.readStructBegin()
  30588. while True:
  30589. (fname, ftype, fid) = iprot.readFieldBegin()
  30590. if ftype == TType.STOP:
  30591. break
  30592. if fid == 1:
  30593. if ftype == TType.STRUCT:
  30594. self.rqst = CompactionRequest()
  30595. self.rqst.read(iprot)
  30596. else:
  30597. iprot.skip(ftype)
  30598. else:
  30599. iprot.skip(ftype)
  30600. iprot.readFieldEnd()
  30601. iprot.readStructEnd()
  30602. def write(self, oprot):
  30603. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30604. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30605. return
  30606. oprot.writeStructBegin('compact_args')
  30607. if self.rqst is not None:
  30608. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  30609. self.rqst.write(oprot)
  30610. oprot.writeFieldEnd()
  30611. oprot.writeFieldStop()
  30612. oprot.writeStructEnd()
  30613. def validate(self):
  30614. return
  30615. def __hash__(self):
  30616. value = 17
  30617. value = (value * 31) ^ hash(self.rqst)
  30618. return value
  30619. def __repr__(self):
  30620. L = ['%s=%r' % (key, value)
  30621. for key, value in self.__dict__.iteritems()]
  30622. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30623. def __eq__(self, other):
  30624. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30625. def __ne__(self, other):
  30626. return not (self == other)
  30627. class compact_result(object):
  30628. thrift_spec = (
  30629. )
  30630. def read(self, iprot):
  30631. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30632. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30633. return
  30634. iprot.readStructBegin()
  30635. while True:
  30636. (fname, ftype, fid) = iprot.readFieldBegin()
  30637. if ftype == TType.STOP:
  30638. break
  30639. else:
  30640. iprot.skip(ftype)
  30641. iprot.readFieldEnd()
  30642. iprot.readStructEnd()
  30643. def write(self, oprot):
  30644. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30645. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30646. return
  30647. oprot.writeStructBegin('compact_result')
  30648. oprot.writeFieldStop()
  30649. oprot.writeStructEnd()
  30650. def validate(self):
  30651. return
  30652. def __hash__(self):
  30653. value = 17
  30654. return value
  30655. def __repr__(self):
  30656. L = ['%s=%r' % (key, value)
  30657. for key, value in self.__dict__.iteritems()]
  30658. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30659. def __eq__(self, other):
  30660. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30661. def __ne__(self, other):
  30662. return not (self == other)
  30663. class show_compact_args(object):
  30664. """
  30665. Attributes:
  30666. - rqst
  30667. """
  30668. thrift_spec = (
  30669. None, # 0
  30670. (1, TType.STRUCT, 'rqst', (ShowCompactRequest, ShowCompactRequest.thrift_spec), None, ), # 1
  30671. )
  30672. def __init__(self, rqst=None,):
  30673. self.rqst = rqst
  30674. def read(self, iprot):
  30675. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30676. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30677. return
  30678. iprot.readStructBegin()
  30679. while True:
  30680. (fname, ftype, fid) = iprot.readFieldBegin()
  30681. if ftype == TType.STOP:
  30682. break
  30683. if fid == 1:
  30684. if ftype == TType.STRUCT:
  30685. self.rqst = ShowCompactRequest()
  30686. self.rqst.read(iprot)
  30687. else:
  30688. iprot.skip(ftype)
  30689. else:
  30690. iprot.skip(ftype)
  30691. iprot.readFieldEnd()
  30692. iprot.readStructEnd()
  30693. def write(self, oprot):
  30694. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30695. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30696. return
  30697. oprot.writeStructBegin('show_compact_args')
  30698. if self.rqst is not None:
  30699. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  30700. self.rqst.write(oprot)
  30701. oprot.writeFieldEnd()
  30702. oprot.writeFieldStop()
  30703. oprot.writeStructEnd()
  30704. def validate(self):
  30705. return
  30706. def __hash__(self):
  30707. value = 17
  30708. value = (value * 31) ^ hash(self.rqst)
  30709. return value
  30710. def __repr__(self):
  30711. L = ['%s=%r' % (key, value)
  30712. for key, value in self.__dict__.iteritems()]
  30713. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30714. def __eq__(self, other):
  30715. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30716. def __ne__(self, other):
  30717. return not (self == other)
  30718. class show_compact_result(object):
  30719. """
  30720. Attributes:
  30721. - success
  30722. """
  30723. thrift_spec = (
  30724. (0, TType.STRUCT, 'success', (ShowCompactResponse, ShowCompactResponse.thrift_spec), None, ), # 0
  30725. )
  30726. def __init__(self, success=None,):
  30727. self.success = success
  30728. def read(self, iprot):
  30729. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30730. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30731. return
  30732. iprot.readStructBegin()
  30733. while True:
  30734. (fname, ftype, fid) = iprot.readFieldBegin()
  30735. if ftype == TType.STOP:
  30736. break
  30737. if fid == 0:
  30738. if ftype == TType.STRUCT:
  30739. self.success = ShowCompactResponse()
  30740. self.success.read(iprot)
  30741. else:
  30742. iprot.skip(ftype)
  30743. else:
  30744. iprot.skip(ftype)
  30745. iprot.readFieldEnd()
  30746. iprot.readStructEnd()
  30747. def write(self, oprot):
  30748. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30749. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30750. return
  30751. oprot.writeStructBegin('show_compact_result')
  30752. if self.success is not None:
  30753. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  30754. self.success.write(oprot)
  30755. oprot.writeFieldEnd()
  30756. oprot.writeFieldStop()
  30757. oprot.writeStructEnd()
  30758. def validate(self):
  30759. return
  30760. def __hash__(self):
  30761. value = 17
  30762. value = (value * 31) ^ hash(self.success)
  30763. return value
  30764. def __repr__(self):
  30765. L = ['%s=%r' % (key, value)
  30766. for key, value in self.__dict__.iteritems()]
  30767. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30768. def __eq__(self, other):
  30769. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30770. def __ne__(self, other):
  30771. return not (self == other)
  30772. class add_dynamic_partitions_args(object):
  30773. """
  30774. Attributes:
  30775. - rqst
  30776. """
  30777. thrift_spec = (
  30778. None, # 0
  30779. (1, TType.STRUCT, 'rqst', (AddDynamicPartitions, AddDynamicPartitions.thrift_spec), None, ), # 1
  30780. )
  30781. def __init__(self, rqst=None,):
  30782. self.rqst = rqst
  30783. def read(self, iprot):
  30784. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30785. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30786. return
  30787. iprot.readStructBegin()
  30788. while True:
  30789. (fname, ftype, fid) = iprot.readFieldBegin()
  30790. if ftype == TType.STOP:
  30791. break
  30792. if fid == 1:
  30793. if ftype == TType.STRUCT:
  30794. self.rqst = AddDynamicPartitions()
  30795. self.rqst.read(iprot)
  30796. else:
  30797. iprot.skip(ftype)
  30798. else:
  30799. iprot.skip(ftype)
  30800. iprot.readFieldEnd()
  30801. iprot.readStructEnd()
  30802. def write(self, oprot):
  30803. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30804. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30805. return
  30806. oprot.writeStructBegin('add_dynamic_partitions_args')
  30807. if self.rqst is not None:
  30808. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  30809. self.rqst.write(oprot)
  30810. oprot.writeFieldEnd()
  30811. oprot.writeFieldStop()
  30812. oprot.writeStructEnd()
  30813. def validate(self):
  30814. return
  30815. def __hash__(self):
  30816. value = 17
  30817. value = (value * 31) ^ hash(self.rqst)
  30818. return value
  30819. def __repr__(self):
  30820. L = ['%s=%r' % (key, value)
  30821. for key, value in self.__dict__.iteritems()]
  30822. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30823. def __eq__(self, other):
  30824. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30825. def __ne__(self, other):
  30826. return not (self == other)
  30827. class add_dynamic_partitions_result(object):
  30828. """
  30829. Attributes:
  30830. - o1
  30831. - o2
  30832. """
  30833. thrift_spec = (
  30834. None, # 0
  30835. (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1
  30836. (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2
  30837. )
  30838. def __init__(self, o1=None, o2=None,):
  30839. self.o1 = o1
  30840. self.o2 = o2
  30841. def read(self, iprot):
  30842. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30843. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30844. return
  30845. iprot.readStructBegin()
  30846. while True:
  30847. (fname, ftype, fid) = iprot.readFieldBegin()
  30848. if ftype == TType.STOP:
  30849. break
  30850. if fid == 1:
  30851. if ftype == TType.STRUCT:
  30852. self.o1 = NoSuchTxnException()
  30853. self.o1.read(iprot)
  30854. else:
  30855. iprot.skip(ftype)
  30856. elif fid == 2:
  30857. if ftype == TType.STRUCT:
  30858. self.o2 = TxnAbortedException()
  30859. self.o2.read(iprot)
  30860. else:
  30861. iprot.skip(ftype)
  30862. else:
  30863. iprot.skip(ftype)
  30864. iprot.readFieldEnd()
  30865. iprot.readStructEnd()
  30866. def write(self, oprot):
  30867. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30868. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30869. return
  30870. oprot.writeStructBegin('add_dynamic_partitions_result')
  30871. if self.o1 is not None:
  30872. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  30873. self.o1.write(oprot)
  30874. oprot.writeFieldEnd()
  30875. if self.o2 is not None:
  30876. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  30877. self.o2.write(oprot)
  30878. oprot.writeFieldEnd()
  30879. oprot.writeFieldStop()
  30880. oprot.writeStructEnd()
  30881. def validate(self):
  30882. return
  30883. def __hash__(self):
  30884. value = 17
  30885. value = (value * 31) ^ hash(self.o1)
  30886. value = (value * 31) ^ hash(self.o2)
  30887. return value
  30888. def __repr__(self):
  30889. L = ['%s=%r' % (key, value)
  30890. for key, value in self.__dict__.iteritems()]
  30891. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30892. def __eq__(self, other):
  30893. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30894. def __ne__(self, other):
  30895. return not (self == other)
  30896. class get_next_notification_args(object):
  30897. """
  30898. Attributes:
  30899. - rqst
  30900. """
  30901. thrift_spec = (
  30902. None, # 0
  30903. (1, TType.STRUCT, 'rqst', (NotificationEventRequest, NotificationEventRequest.thrift_spec), None, ), # 1
  30904. )
  30905. def __init__(self, rqst=None,):
  30906. self.rqst = rqst
  30907. def read(self, iprot):
  30908. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30909. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30910. return
  30911. iprot.readStructBegin()
  30912. while True:
  30913. (fname, ftype, fid) = iprot.readFieldBegin()
  30914. if ftype == TType.STOP:
  30915. break
  30916. if fid == 1:
  30917. if ftype == TType.STRUCT:
  30918. self.rqst = NotificationEventRequest()
  30919. self.rqst.read(iprot)
  30920. else:
  30921. iprot.skip(ftype)
  30922. else:
  30923. iprot.skip(ftype)
  30924. iprot.readFieldEnd()
  30925. iprot.readStructEnd()
  30926. def write(self, oprot):
  30927. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30928. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30929. return
  30930. oprot.writeStructBegin('get_next_notification_args')
  30931. if self.rqst is not None:
  30932. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  30933. self.rqst.write(oprot)
  30934. oprot.writeFieldEnd()
  30935. oprot.writeFieldStop()
  30936. oprot.writeStructEnd()
  30937. def validate(self):
  30938. return
  30939. def __hash__(self):
  30940. value = 17
  30941. value = (value * 31) ^ hash(self.rqst)
  30942. return value
  30943. def __repr__(self):
  30944. L = ['%s=%r' % (key, value)
  30945. for key, value in self.__dict__.iteritems()]
  30946. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30947. def __eq__(self, other):
  30948. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30949. def __ne__(self, other):
  30950. return not (self == other)
  30951. class get_next_notification_result(object):
  30952. """
  30953. Attributes:
  30954. - success
  30955. """
  30956. thrift_spec = (
  30957. (0, TType.STRUCT, 'success', (NotificationEventResponse, NotificationEventResponse.thrift_spec), None, ), # 0
  30958. )
  30959. def __init__(self, success=None,):
  30960. self.success = success
  30961. def read(self, iprot):
  30962. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  30963. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  30964. return
  30965. iprot.readStructBegin()
  30966. while True:
  30967. (fname, ftype, fid) = iprot.readFieldBegin()
  30968. if ftype == TType.STOP:
  30969. break
  30970. if fid == 0:
  30971. if ftype == TType.STRUCT:
  30972. self.success = NotificationEventResponse()
  30973. self.success.read(iprot)
  30974. else:
  30975. iprot.skip(ftype)
  30976. else:
  30977. iprot.skip(ftype)
  30978. iprot.readFieldEnd()
  30979. iprot.readStructEnd()
  30980. def write(self, oprot):
  30981. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  30982. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  30983. return
  30984. oprot.writeStructBegin('get_next_notification_result')
  30985. if self.success is not None:
  30986. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  30987. self.success.write(oprot)
  30988. oprot.writeFieldEnd()
  30989. oprot.writeFieldStop()
  30990. oprot.writeStructEnd()
  30991. def validate(self):
  30992. return
  30993. def __hash__(self):
  30994. value = 17
  30995. value = (value * 31) ^ hash(self.success)
  30996. return value
  30997. def __repr__(self):
  30998. L = ['%s=%r' % (key, value)
  30999. for key, value in self.__dict__.iteritems()]
  31000. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31001. def __eq__(self, other):
  31002. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31003. def __ne__(self, other):
  31004. return not (self == other)
  31005. class get_current_notificationEventId_args(object):
  31006. thrift_spec = (
  31007. )
  31008. def read(self, iprot):
  31009. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31010. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31011. return
  31012. iprot.readStructBegin()
  31013. while True:
  31014. (fname, ftype, fid) = iprot.readFieldBegin()
  31015. if ftype == TType.STOP:
  31016. break
  31017. else:
  31018. iprot.skip(ftype)
  31019. iprot.readFieldEnd()
  31020. iprot.readStructEnd()
  31021. def write(self, oprot):
  31022. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31023. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31024. return
  31025. oprot.writeStructBegin('get_current_notificationEventId_args')
  31026. oprot.writeFieldStop()
  31027. oprot.writeStructEnd()
  31028. def validate(self):
  31029. return
  31030. def __hash__(self):
  31031. value = 17
  31032. return value
  31033. def __repr__(self):
  31034. L = ['%s=%r' % (key, value)
  31035. for key, value in self.__dict__.iteritems()]
  31036. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31037. def __eq__(self, other):
  31038. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31039. def __ne__(self, other):
  31040. return not (self == other)
  31041. class get_current_notificationEventId_result(object):
  31042. """
  31043. Attributes:
  31044. - success
  31045. """
  31046. thrift_spec = (
  31047. (0, TType.STRUCT, 'success', (CurrentNotificationEventId, CurrentNotificationEventId.thrift_spec), None, ), # 0
  31048. )
  31049. def __init__(self, success=None,):
  31050. self.success = success
  31051. def read(self, iprot):
  31052. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31053. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31054. return
  31055. iprot.readStructBegin()
  31056. while True:
  31057. (fname, ftype, fid) = iprot.readFieldBegin()
  31058. if ftype == TType.STOP:
  31059. break
  31060. if fid == 0:
  31061. if ftype == TType.STRUCT:
  31062. self.success = CurrentNotificationEventId()
  31063. self.success.read(iprot)
  31064. else:
  31065. iprot.skip(ftype)
  31066. else:
  31067. iprot.skip(ftype)
  31068. iprot.readFieldEnd()
  31069. iprot.readStructEnd()
  31070. def write(self, oprot):
  31071. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31072. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31073. return
  31074. oprot.writeStructBegin('get_current_notificationEventId_result')
  31075. if self.success is not None:
  31076. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  31077. self.success.write(oprot)
  31078. oprot.writeFieldEnd()
  31079. oprot.writeFieldStop()
  31080. oprot.writeStructEnd()
  31081. def validate(self):
  31082. return
  31083. def __hash__(self):
  31084. value = 17
  31085. value = (value * 31) ^ hash(self.success)
  31086. return value
  31087. def __repr__(self):
  31088. L = ['%s=%r' % (key, value)
  31089. for key, value in self.__dict__.iteritems()]
  31090. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31091. def __eq__(self, other):
  31092. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31093. def __ne__(self, other):
  31094. return not (self == other)
  31095. class fire_listener_event_args(object):
  31096. """
  31097. Attributes:
  31098. - rqst
  31099. """
  31100. thrift_spec = (
  31101. None, # 0
  31102. (1, TType.STRUCT, 'rqst', (FireEventRequest, FireEventRequest.thrift_spec), None, ), # 1
  31103. )
  31104. def __init__(self, rqst=None,):
  31105. self.rqst = rqst
  31106. def read(self, iprot):
  31107. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31108. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31109. return
  31110. iprot.readStructBegin()
  31111. while True:
  31112. (fname, ftype, fid) = iprot.readFieldBegin()
  31113. if ftype == TType.STOP:
  31114. break
  31115. if fid == 1:
  31116. if ftype == TType.STRUCT:
  31117. self.rqst = FireEventRequest()
  31118. self.rqst.read(iprot)
  31119. else:
  31120. iprot.skip(ftype)
  31121. else:
  31122. iprot.skip(ftype)
  31123. iprot.readFieldEnd()
  31124. iprot.readStructEnd()
  31125. def write(self, oprot):
  31126. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31127. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31128. return
  31129. oprot.writeStructBegin('fire_listener_event_args')
  31130. if self.rqst is not None:
  31131. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  31132. self.rqst.write(oprot)
  31133. oprot.writeFieldEnd()
  31134. oprot.writeFieldStop()
  31135. oprot.writeStructEnd()
  31136. def validate(self):
  31137. return
  31138. def __hash__(self):
  31139. value = 17
  31140. value = (value * 31) ^ hash(self.rqst)
  31141. return value
  31142. def __repr__(self):
  31143. L = ['%s=%r' % (key, value)
  31144. for key, value in self.__dict__.iteritems()]
  31145. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31146. def __eq__(self, other):
  31147. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31148. def __ne__(self, other):
  31149. return not (self == other)
  31150. class fire_listener_event_result(object):
  31151. """
  31152. Attributes:
  31153. - success
  31154. """
  31155. thrift_spec = (
  31156. (0, TType.STRUCT, 'success', (FireEventResponse, FireEventResponse.thrift_spec), None, ), # 0
  31157. )
  31158. def __init__(self, success=None,):
  31159. self.success = success
  31160. def read(self, iprot):
  31161. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31162. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31163. return
  31164. iprot.readStructBegin()
  31165. while True:
  31166. (fname, ftype, fid) = iprot.readFieldBegin()
  31167. if ftype == TType.STOP:
  31168. break
  31169. if fid == 0:
  31170. if ftype == TType.STRUCT:
  31171. self.success = FireEventResponse()
  31172. self.success.read(iprot)
  31173. else:
  31174. iprot.skip(ftype)
  31175. else:
  31176. iprot.skip(ftype)
  31177. iprot.readFieldEnd()
  31178. iprot.readStructEnd()
  31179. def write(self, oprot):
  31180. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31181. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31182. return
  31183. oprot.writeStructBegin('fire_listener_event_result')
  31184. if self.success is not None:
  31185. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  31186. self.success.write(oprot)
  31187. oprot.writeFieldEnd()
  31188. oprot.writeFieldStop()
  31189. oprot.writeStructEnd()
  31190. def validate(self):
  31191. return
  31192. def __hash__(self):
  31193. value = 17
  31194. value = (value * 31) ^ hash(self.success)
  31195. return value
  31196. def __repr__(self):
  31197. L = ['%s=%r' % (key, value)
  31198. for key, value in self.__dict__.iteritems()]
  31199. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31200. def __eq__(self, other):
  31201. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31202. def __ne__(self, other):
  31203. return not (self == other)
  31204. class flushCache_args(object):
  31205. thrift_spec = (
  31206. )
  31207. def read(self, iprot):
  31208. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31209. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31210. return
  31211. iprot.readStructBegin()
  31212. while True:
  31213. (fname, ftype, fid) = iprot.readFieldBegin()
  31214. if ftype == TType.STOP:
  31215. break
  31216. else:
  31217. iprot.skip(ftype)
  31218. iprot.readFieldEnd()
  31219. iprot.readStructEnd()
  31220. def write(self, oprot):
  31221. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31222. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31223. return
  31224. oprot.writeStructBegin('flushCache_args')
  31225. oprot.writeFieldStop()
  31226. oprot.writeStructEnd()
  31227. def validate(self):
  31228. return
  31229. def __hash__(self):
  31230. value = 17
  31231. return value
  31232. def __repr__(self):
  31233. L = ['%s=%r' % (key, value)
  31234. for key, value in self.__dict__.iteritems()]
  31235. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31236. def __eq__(self, other):
  31237. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31238. def __ne__(self, other):
  31239. return not (self == other)
  31240. class flushCache_result(object):
  31241. thrift_spec = (
  31242. )
  31243. def read(self, iprot):
  31244. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31245. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31246. return
  31247. iprot.readStructBegin()
  31248. while True:
  31249. (fname, ftype, fid) = iprot.readFieldBegin()
  31250. if ftype == TType.STOP:
  31251. break
  31252. else:
  31253. iprot.skip(ftype)
  31254. iprot.readFieldEnd()
  31255. iprot.readStructEnd()
  31256. def write(self, oprot):
  31257. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31258. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31259. return
  31260. oprot.writeStructBegin('flushCache_result')
  31261. oprot.writeFieldStop()
  31262. oprot.writeStructEnd()
  31263. def validate(self):
  31264. return
  31265. def __hash__(self):
  31266. value = 17
  31267. return value
  31268. def __repr__(self):
  31269. L = ['%s=%r' % (key, value)
  31270. for key, value in self.__dict__.iteritems()]
  31271. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31272. def __eq__(self, other):
  31273. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31274. def __ne__(self, other):
  31275. return not (self == other)
  31276. class get_file_metadata_by_expr_args(object):
  31277. """
  31278. Attributes:
  31279. - req
  31280. """
  31281. thrift_spec = (
  31282. None, # 0
  31283. (1, TType.STRUCT, 'req', (GetFileMetadataByExprRequest, GetFileMetadataByExprRequest.thrift_spec), None, ), # 1
  31284. )
  31285. def __init__(self, req=None,):
  31286. self.req = req
  31287. def read(self, iprot):
  31288. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31289. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31290. return
  31291. iprot.readStructBegin()
  31292. while True:
  31293. (fname, ftype, fid) = iprot.readFieldBegin()
  31294. if ftype == TType.STOP:
  31295. break
  31296. if fid == 1:
  31297. if ftype == TType.STRUCT:
  31298. self.req = GetFileMetadataByExprRequest()
  31299. self.req.read(iprot)
  31300. else:
  31301. iprot.skip(ftype)
  31302. else:
  31303. iprot.skip(ftype)
  31304. iprot.readFieldEnd()
  31305. iprot.readStructEnd()
  31306. def write(self, oprot):
  31307. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31308. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31309. return
  31310. oprot.writeStructBegin('get_file_metadata_by_expr_args')
  31311. if self.req is not None:
  31312. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  31313. self.req.write(oprot)
  31314. oprot.writeFieldEnd()
  31315. oprot.writeFieldStop()
  31316. oprot.writeStructEnd()
  31317. def validate(self):
  31318. return
  31319. def __hash__(self):
  31320. value = 17
  31321. value = (value * 31) ^ hash(self.req)
  31322. return value
  31323. def __repr__(self):
  31324. L = ['%s=%r' % (key, value)
  31325. for key, value in self.__dict__.iteritems()]
  31326. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31327. def __eq__(self, other):
  31328. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31329. def __ne__(self, other):
  31330. return not (self == other)
  31331. class get_file_metadata_by_expr_result(object):
  31332. """
  31333. Attributes:
  31334. - success
  31335. """
  31336. thrift_spec = (
  31337. (0, TType.STRUCT, 'success', (GetFileMetadataByExprResult, GetFileMetadataByExprResult.thrift_spec), None, ), # 0
  31338. )
  31339. def __init__(self, success=None,):
  31340. self.success = success
  31341. def read(self, iprot):
  31342. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31343. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31344. return
  31345. iprot.readStructBegin()
  31346. while True:
  31347. (fname, ftype, fid) = iprot.readFieldBegin()
  31348. if ftype == TType.STOP:
  31349. break
  31350. if fid == 0:
  31351. if ftype == TType.STRUCT:
  31352. self.success = GetFileMetadataByExprResult()
  31353. self.success.read(iprot)
  31354. else:
  31355. iprot.skip(ftype)
  31356. else:
  31357. iprot.skip(ftype)
  31358. iprot.readFieldEnd()
  31359. iprot.readStructEnd()
  31360. def write(self, oprot):
  31361. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31362. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31363. return
  31364. oprot.writeStructBegin('get_file_metadata_by_expr_result')
  31365. if self.success is not None:
  31366. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  31367. self.success.write(oprot)
  31368. oprot.writeFieldEnd()
  31369. oprot.writeFieldStop()
  31370. oprot.writeStructEnd()
  31371. def validate(self):
  31372. return
  31373. def __hash__(self):
  31374. value = 17
  31375. value = (value * 31) ^ hash(self.success)
  31376. return value
  31377. def __repr__(self):
  31378. L = ['%s=%r' % (key, value)
  31379. for key, value in self.__dict__.iteritems()]
  31380. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31381. def __eq__(self, other):
  31382. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31383. def __ne__(self, other):
  31384. return not (self == other)
  31385. class get_file_metadata_args(object):
  31386. """
  31387. Attributes:
  31388. - req
  31389. """
  31390. thrift_spec = (
  31391. None, # 0
  31392. (1, TType.STRUCT, 'req', (GetFileMetadataRequest, GetFileMetadataRequest.thrift_spec), None, ), # 1
  31393. )
  31394. def __init__(self, req=None,):
  31395. self.req = req
  31396. def read(self, iprot):
  31397. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31398. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31399. return
  31400. iprot.readStructBegin()
  31401. while True:
  31402. (fname, ftype, fid) = iprot.readFieldBegin()
  31403. if ftype == TType.STOP:
  31404. break
  31405. if fid == 1:
  31406. if ftype == TType.STRUCT:
  31407. self.req = GetFileMetadataRequest()
  31408. self.req.read(iprot)
  31409. else:
  31410. iprot.skip(ftype)
  31411. else:
  31412. iprot.skip(ftype)
  31413. iprot.readFieldEnd()
  31414. iprot.readStructEnd()
  31415. def write(self, oprot):
  31416. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31417. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31418. return
  31419. oprot.writeStructBegin('get_file_metadata_args')
  31420. if self.req is not None:
  31421. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  31422. self.req.write(oprot)
  31423. oprot.writeFieldEnd()
  31424. oprot.writeFieldStop()
  31425. oprot.writeStructEnd()
  31426. def validate(self):
  31427. return
  31428. def __hash__(self):
  31429. value = 17
  31430. value = (value * 31) ^ hash(self.req)
  31431. return value
  31432. def __repr__(self):
  31433. L = ['%s=%r' % (key, value)
  31434. for key, value in self.__dict__.iteritems()]
  31435. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31436. def __eq__(self, other):
  31437. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31438. def __ne__(self, other):
  31439. return not (self == other)
  31440. class get_file_metadata_result(object):
  31441. """
  31442. Attributes:
  31443. - success
  31444. """
  31445. thrift_spec = (
  31446. (0, TType.STRUCT, 'success', (GetFileMetadataResult, GetFileMetadataResult.thrift_spec), None, ), # 0
  31447. )
  31448. def __init__(self, success=None,):
  31449. self.success = success
  31450. def read(self, iprot):
  31451. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31452. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31453. return
  31454. iprot.readStructBegin()
  31455. while True:
  31456. (fname, ftype, fid) = iprot.readFieldBegin()
  31457. if ftype == TType.STOP:
  31458. break
  31459. if fid == 0:
  31460. if ftype == TType.STRUCT:
  31461. self.success = GetFileMetadataResult()
  31462. self.success.read(iprot)
  31463. else:
  31464. iprot.skip(ftype)
  31465. else:
  31466. iprot.skip(ftype)
  31467. iprot.readFieldEnd()
  31468. iprot.readStructEnd()
  31469. def write(self, oprot):
  31470. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31471. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31472. return
  31473. oprot.writeStructBegin('get_file_metadata_result')
  31474. if self.success is not None:
  31475. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  31476. self.success.write(oprot)
  31477. oprot.writeFieldEnd()
  31478. oprot.writeFieldStop()
  31479. oprot.writeStructEnd()
  31480. def validate(self):
  31481. return
  31482. def __hash__(self):
  31483. value = 17
  31484. value = (value * 31) ^ hash(self.success)
  31485. return value
  31486. def __repr__(self):
  31487. L = ['%s=%r' % (key, value)
  31488. for key, value in self.__dict__.iteritems()]
  31489. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31490. def __eq__(self, other):
  31491. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31492. def __ne__(self, other):
  31493. return not (self == other)
  31494. class put_file_metadata_args(object):
  31495. """
  31496. Attributes:
  31497. - req
  31498. """
  31499. thrift_spec = (
  31500. None, # 0
  31501. (1, TType.STRUCT, 'req', (PutFileMetadataRequest, PutFileMetadataRequest.thrift_spec), None, ), # 1
  31502. )
  31503. def __init__(self, req=None,):
  31504. self.req = req
  31505. def read(self, iprot):
  31506. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31507. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31508. return
  31509. iprot.readStructBegin()
  31510. while True:
  31511. (fname, ftype, fid) = iprot.readFieldBegin()
  31512. if ftype == TType.STOP:
  31513. break
  31514. if fid == 1:
  31515. if ftype == TType.STRUCT:
  31516. self.req = PutFileMetadataRequest()
  31517. self.req.read(iprot)
  31518. else:
  31519. iprot.skip(ftype)
  31520. else:
  31521. iprot.skip(ftype)
  31522. iprot.readFieldEnd()
  31523. iprot.readStructEnd()
  31524. def write(self, oprot):
  31525. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31526. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31527. return
  31528. oprot.writeStructBegin('put_file_metadata_args')
  31529. if self.req is not None:
  31530. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  31531. self.req.write(oprot)
  31532. oprot.writeFieldEnd()
  31533. oprot.writeFieldStop()
  31534. oprot.writeStructEnd()
  31535. def validate(self):
  31536. return
  31537. def __hash__(self):
  31538. value = 17
  31539. value = (value * 31) ^ hash(self.req)
  31540. return value
  31541. def __repr__(self):
  31542. L = ['%s=%r' % (key, value)
  31543. for key, value in self.__dict__.iteritems()]
  31544. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31545. def __eq__(self, other):
  31546. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31547. def __ne__(self, other):
  31548. return not (self == other)
  31549. class put_file_metadata_result(object):
  31550. """
  31551. Attributes:
  31552. - success
  31553. """
  31554. thrift_spec = (
  31555. (0, TType.STRUCT, 'success', (PutFileMetadataResult, PutFileMetadataResult.thrift_spec), None, ), # 0
  31556. )
  31557. def __init__(self, success=None,):
  31558. self.success = success
  31559. def read(self, iprot):
  31560. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31561. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31562. return
  31563. iprot.readStructBegin()
  31564. while True:
  31565. (fname, ftype, fid) = iprot.readFieldBegin()
  31566. if ftype == TType.STOP:
  31567. break
  31568. if fid == 0:
  31569. if ftype == TType.STRUCT:
  31570. self.success = PutFileMetadataResult()
  31571. self.success.read(iprot)
  31572. else:
  31573. iprot.skip(ftype)
  31574. else:
  31575. iprot.skip(ftype)
  31576. iprot.readFieldEnd()
  31577. iprot.readStructEnd()
  31578. def write(self, oprot):
  31579. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31580. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31581. return
  31582. oprot.writeStructBegin('put_file_metadata_result')
  31583. if self.success is not None:
  31584. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  31585. self.success.write(oprot)
  31586. oprot.writeFieldEnd()
  31587. oprot.writeFieldStop()
  31588. oprot.writeStructEnd()
  31589. def validate(self):
  31590. return
  31591. def __hash__(self):
  31592. value = 17
  31593. value = (value * 31) ^ hash(self.success)
  31594. return value
  31595. def __repr__(self):
  31596. L = ['%s=%r' % (key, value)
  31597. for key, value in self.__dict__.iteritems()]
  31598. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31599. def __eq__(self, other):
  31600. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31601. def __ne__(self, other):
  31602. return not (self == other)
  31603. class clear_file_metadata_args(object):
  31604. """
  31605. Attributes:
  31606. - req
  31607. """
  31608. thrift_spec = (
  31609. None, # 0
  31610. (1, TType.STRUCT, 'req', (ClearFileMetadataRequest, ClearFileMetadataRequest.thrift_spec), None, ), # 1
  31611. )
  31612. def __init__(self, req=None,):
  31613. self.req = req
  31614. def read(self, iprot):
  31615. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31616. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31617. return
  31618. iprot.readStructBegin()
  31619. while True:
  31620. (fname, ftype, fid) = iprot.readFieldBegin()
  31621. if ftype == TType.STOP:
  31622. break
  31623. if fid == 1:
  31624. if ftype == TType.STRUCT:
  31625. self.req = ClearFileMetadataRequest()
  31626. self.req.read(iprot)
  31627. else:
  31628. iprot.skip(ftype)
  31629. else:
  31630. iprot.skip(ftype)
  31631. iprot.readFieldEnd()
  31632. iprot.readStructEnd()
  31633. def write(self, oprot):
  31634. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31635. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31636. return
  31637. oprot.writeStructBegin('clear_file_metadata_args')
  31638. if self.req is not None:
  31639. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  31640. self.req.write(oprot)
  31641. oprot.writeFieldEnd()
  31642. oprot.writeFieldStop()
  31643. oprot.writeStructEnd()
  31644. def validate(self):
  31645. return
  31646. def __hash__(self):
  31647. value = 17
  31648. value = (value * 31) ^ hash(self.req)
  31649. return value
  31650. def __repr__(self):
  31651. L = ['%s=%r' % (key, value)
  31652. for key, value in self.__dict__.iteritems()]
  31653. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31654. def __eq__(self, other):
  31655. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31656. def __ne__(self, other):
  31657. return not (self == other)
  31658. class clear_file_metadata_result(object):
  31659. """
  31660. Attributes:
  31661. - success
  31662. """
  31663. thrift_spec = (
  31664. (0, TType.STRUCT, 'success', (ClearFileMetadataResult, ClearFileMetadataResult.thrift_spec), None, ), # 0
  31665. )
  31666. def __init__(self, success=None,):
  31667. self.success = success
  31668. def read(self, iprot):
  31669. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31670. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31671. return
  31672. iprot.readStructBegin()
  31673. while True:
  31674. (fname, ftype, fid) = iprot.readFieldBegin()
  31675. if ftype == TType.STOP:
  31676. break
  31677. if fid == 0:
  31678. if ftype == TType.STRUCT:
  31679. self.success = ClearFileMetadataResult()
  31680. self.success.read(iprot)
  31681. else:
  31682. iprot.skip(ftype)
  31683. else:
  31684. iprot.skip(ftype)
  31685. iprot.readFieldEnd()
  31686. iprot.readStructEnd()
  31687. def write(self, oprot):
  31688. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31689. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31690. return
  31691. oprot.writeStructBegin('clear_file_metadata_result')
  31692. if self.success is not None:
  31693. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  31694. self.success.write(oprot)
  31695. oprot.writeFieldEnd()
  31696. oprot.writeFieldStop()
  31697. oprot.writeStructEnd()
  31698. def validate(self):
  31699. return
  31700. def __hash__(self):
  31701. value = 17
  31702. value = (value * 31) ^ hash(self.success)
  31703. return value
  31704. def __repr__(self):
  31705. L = ['%s=%r' % (key, value)
  31706. for key, value in self.__dict__.iteritems()]
  31707. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31708. def __eq__(self, other):
  31709. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31710. def __ne__(self, other):
  31711. return not (self == other)
  31712. class cache_file_metadata_args(object):
  31713. """
  31714. Attributes:
  31715. - req
  31716. """
  31717. thrift_spec = (
  31718. None, # 0
  31719. (1, TType.STRUCT, 'req', (CacheFileMetadataRequest, CacheFileMetadataRequest.thrift_spec), None, ), # 1
  31720. )
  31721. def __init__(self, req=None,):
  31722. self.req = req
  31723. def read(self, iprot):
  31724. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31725. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31726. return
  31727. iprot.readStructBegin()
  31728. while True:
  31729. (fname, ftype, fid) = iprot.readFieldBegin()
  31730. if ftype == TType.STOP:
  31731. break
  31732. if fid == 1:
  31733. if ftype == TType.STRUCT:
  31734. self.req = CacheFileMetadataRequest()
  31735. self.req.read(iprot)
  31736. else:
  31737. iprot.skip(ftype)
  31738. else:
  31739. iprot.skip(ftype)
  31740. iprot.readFieldEnd()
  31741. iprot.readStructEnd()
  31742. def write(self, oprot):
  31743. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31744. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31745. return
  31746. oprot.writeStructBegin('cache_file_metadata_args')
  31747. if self.req is not None:
  31748. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  31749. self.req.write(oprot)
  31750. oprot.writeFieldEnd()
  31751. oprot.writeFieldStop()
  31752. oprot.writeStructEnd()
  31753. def validate(self):
  31754. return
  31755. def __hash__(self):
  31756. value = 17
  31757. value = (value * 31) ^ hash(self.req)
  31758. return value
  31759. def __repr__(self):
  31760. L = ['%s=%r' % (key, value)
  31761. for key, value in self.__dict__.iteritems()]
  31762. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31763. def __eq__(self, other):
  31764. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31765. def __ne__(self, other):
  31766. return not (self == other)
  31767. class cache_file_metadata_result(object):
  31768. """
  31769. Attributes:
  31770. - success
  31771. """
  31772. thrift_spec = (
  31773. (0, TType.STRUCT, 'success', (CacheFileMetadataResult, CacheFileMetadataResult.thrift_spec), None, ), # 0
  31774. )
  31775. def __init__(self, success=None,):
  31776. self.success = success
  31777. def read(self, iprot):
  31778. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31779. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31780. return
  31781. iprot.readStructBegin()
  31782. while True:
  31783. (fname, ftype, fid) = iprot.readFieldBegin()
  31784. if ftype == TType.STOP:
  31785. break
  31786. if fid == 0:
  31787. if ftype == TType.STRUCT:
  31788. self.success = CacheFileMetadataResult()
  31789. self.success.read(iprot)
  31790. else:
  31791. iprot.skip(ftype)
  31792. else:
  31793. iprot.skip(ftype)
  31794. iprot.readFieldEnd()
  31795. iprot.readStructEnd()
  31796. def write(self, oprot):
  31797. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31798. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31799. return
  31800. oprot.writeStructBegin('cache_file_metadata_result')
  31801. if self.success is not None:
  31802. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  31803. self.success.write(oprot)
  31804. oprot.writeFieldEnd()
  31805. oprot.writeFieldStop()
  31806. oprot.writeStructEnd()
  31807. def validate(self):
  31808. return
  31809. def __hash__(self):
  31810. value = 17
  31811. value = (value * 31) ^ hash(self.success)
  31812. return value
  31813. def __repr__(self):
  31814. L = ['%s=%r' % (key, value)
  31815. for key, value in self.__dict__.iteritems()]
  31816. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31817. def __eq__(self, other):
  31818. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31819. def __ne__(self, other):
  31820. return not (self == other)
  31821. class get_metastore_db_uuid_args(object):
  31822. thrift_spec = (
  31823. )
  31824. def read(self, iprot):
  31825. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31826. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31827. return
  31828. iprot.readStructBegin()
  31829. while True:
  31830. (fname, ftype, fid) = iprot.readFieldBegin()
  31831. if ftype == TType.STOP:
  31832. break
  31833. else:
  31834. iprot.skip(ftype)
  31835. iprot.readFieldEnd()
  31836. iprot.readStructEnd()
  31837. def write(self, oprot):
  31838. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31839. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31840. return
  31841. oprot.writeStructBegin('get_metastore_db_uuid_args')
  31842. oprot.writeFieldStop()
  31843. oprot.writeStructEnd()
  31844. def validate(self):
  31845. return
  31846. def __hash__(self):
  31847. value = 17
  31848. return value
  31849. def __repr__(self):
  31850. L = ['%s=%r' % (key, value)
  31851. for key, value in self.__dict__.iteritems()]
  31852. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31853. def __eq__(self, other):
  31854. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31855. def __ne__(self, other):
  31856. return not (self == other)
  31857. class get_metastore_db_uuid_result(object):
  31858. """
  31859. Attributes:
  31860. - success
  31861. - o1
  31862. """
  31863. thrift_spec = (
  31864. (0, TType.STRING, 'success', None, None, ), # 0
  31865. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  31866. )
  31867. def __init__(self, success=None, o1=None,):
  31868. self.success = success
  31869. self.o1 = o1
  31870. def read(self, iprot):
  31871. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31872. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31873. return
  31874. iprot.readStructBegin()
  31875. while True:
  31876. (fname, ftype, fid) = iprot.readFieldBegin()
  31877. if ftype == TType.STOP:
  31878. break
  31879. if fid == 0:
  31880. if ftype == TType.STRING:
  31881. self.success = iprot.readString()
  31882. else:
  31883. iprot.skip(ftype)
  31884. elif fid == 1:
  31885. if ftype == TType.STRUCT:
  31886. self.o1 = MetaException()
  31887. self.o1.read(iprot)
  31888. else:
  31889. iprot.skip(ftype)
  31890. else:
  31891. iprot.skip(ftype)
  31892. iprot.readFieldEnd()
  31893. iprot.readStructEnd()
  31894. def write(self, oprot):
  31895. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31896. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31897. return
  31898. oprot.writeStructBegin('get_metastore_db_uuid_result')
  31899. if self.success is not None:
  31900. oprot.writeFieldBegin('success', TType.STRING, 0)
  31901. oprot.writeString(self.success)
  31902. oprot.writeFieldEnd()
  31903. if self.o1 is not None:
  31904. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  31905. self.o1.write(oprot)
  31906. oprot.writeFieldEnd()
  31907. oprot.writeFieldStop()
  31908. oprot.writeStructEnd()
  31909. def validate(self):
  31910. return
  31911. def __hash__(self):
  31912. value = 17
  31913. value = (value * 31) ^ hash(self.success)
  31914. value = (value * 31) ^ hash(self.o1)
  31915. return value
  31916. def __repr__(self):
  31917. L = ['%s=%r' % (key, value)
  31918. for key, value in self.__dict__.iteritems()]
  31919. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31920. def __eq__(self, other):
  31921. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31922. def __ne__(self, other):
  31923. return not (self == other)
  31924. class get_partitions_with_specs_args(object):
  31925. """
  31926. Attributes:
  31927. - request
  31928. """
  31929. thrift_spec = (
  31930. None, # 0
  31931. (1, TType.STRUCT, 'request', (GetPartitionsRequest, GetPartitionsRequest.thrift_spec), None, ), # 1
  31932. )
  31933. def __init__(self, request=None,):
  31934. self.request = request
  31935. def read(self, iprot):
  31936. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31937. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31938. return
  31939. iprot.readStructBegin()
  31940. while True:
  31941. (fname, ftype, fid) = iprot.readFieldBegin()
  31942. if ftype == TType.STOP:
  31943. break
  31944. if fid == 1:
  31945. if ftype == TType.STRUCT:
  31946. self.request = GetPartitionsRequest()
  31947. self.request.read(iprot)
  31948. else:
  31949. iprot.skip(ftype)
  31950. else:
  31951. iprot.skip(ftype)
  31952. iprot.readFieldEnd()
  31953. iprot.readStructEnd()
  31954. def write(self, oprot):
  31955. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  31956. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  31957. return
  31958. oprot.writeStructBegin('get_partitions_with_specs_args')
  31959. if self.request is not None:
  31960. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  31961. self.request.write(oprot)
  31962. oprot.writeFieldEnd()
  31963. oprot.writeFieldStop()
  31964. oprot.writeStructEnd()
  31965. def validate(self):
  31966. return
  31967. def __hash__(self):
  31968. value = 17
  31969. value = (value * 31) ^ hash(self.request)
  31970. return value
  31971. def __repr__(self):
  31972. L = ['%s=%r' % (key, value)
  31973. for key, value in self.__dict__.iteritems()]
  31974. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31975. def __eq__(self, other):
  31976. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31977. def __ne__(self, other):
  31978. return not (self == other)
  31979. class get_partitions_with_specs_result(object):
  31980. """
  31981. Attributes:
  31982. - success
  31983. - o1
  31984. """
  31985. thrift_spec = (
  31986. (0, TType.STRUCT, 'success', (GetPartitionsResponse, GetPartitionsResponse.thrift_spec), None, ), # 0
  31987. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  31988. )
  31989. def __init__(self, success=None, o1=None,):
  31990. self.success = success
  31991. self.o1 = o1
  31992. def read(self, iprot):
  31993. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  31994. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  31995. return
  31996. iprot.readStructBegin()
  31997. while True:
  31998. (fname, ftype, fid) = iprot.readFieldBegin()
  31999. if ftype == TType.STOP:
  32000. break
  32001. if fid == 0:
  32002. if ftype == TType.STRUCT:
  32003. self.success = GetPartitionsResponse()
  32004. self.success.read(iprot)
  32005. else:
  32006. iprot.skip(ftype)
  32007. elif fid == 1:
  32008. if ftype == TType.STRUCT:
  32009. self.o1 = MetaException()
  32010. self.o1.read(iprot)
  32011. else:
  32012. iprot.skip(ftype)
  32013. else:
  32014. iprot.skip(ftype)
  32015. iprot.readFieldEnd()
  32016. iprot.readStructEnd()
  32017. def write(self, oprot):
  32018. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  32019. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  32020. return
  32021. oprot.writeStructBegin('get_partitions_with_specs_result')
  32022. if self.success is not None:
  32023. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  32024. self.success.write(oprot)
  32025. oprot.writeFieldEnd()
  32026. if self.o1 is not None:
  32027. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  32028. self.o1.write(oprot)
  32029. oprot.writeFieldEnd()
  32030. oprot.writeFieldStop()
  32031. oprot.writeStructEnd()
  32032. def validate(self):
  32033. return
  32034. def __hash__(self):
  32035. value = 17
  32036. value = (value * 31) ^ hash(self.success)
  32037. value = (value * 31) ^ hash(self.o1)
  32038. return value
  32039. def __repr__(self):
  32040. L = ['%s=%r' % (key, value)
  32041. for key, value in self.__dict__.iteritems()]
  32042. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  32043. def __eq__(self, other):
  32044. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  32045. def __ne__(self, other):
  32046. return not (self == other)