ThriftHiveMetastore.py 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698
  1. #
  2. # Autogenerated by Thrift Compiler (0.13.0)
  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, TFrozenDict, TException, TApplicationException
  9. from thrift.protocol.TProtocol import TProtocolException
  10. from thrift.TRecursive import fix_spec
  11. import sys
  12. import fb303.FacebookService
  13. import logging
  14. from .ttypes import *
  15. from thrift.Thrift import TProcessor
  16. from thrift.transport import TTransport
  17. all_structs = []
  18. class Iface(fb303.FacebookService.Iface):
  19. """
  20. This interface is live.
  21. """
  22. def getMetaConf(self, key):
  23. """
  24. Parameters:
  25. - key
  26. """
  27. pass
  28. def setMetaConf(self, key, value):
  29. """
  30. Parameters:
  31. - key
  32. - value
  33. """
  34. pass
  35. def create_database(self, database):
  36. """
  37. Parameters:
  38. - database
  39. """
  40. pass
  41. def get_database(self, name):
  42. """
  43. Parameters:
  44. - name
  45. """
  46. pass
  47. def drop_database(self, name, deleteData, cascade):
  48. """
  49. Parameters:
  50. - name
  51. - deleteData
  52. - cascade
  53. """
  54. pass
  55. def get_databases(self, pattern):
  56. """
  57. Parameters:
  58. - pattern
  59. """
  60. pass
  61. def get_all_databases(self):
  62. pass
  63. def alter_database(self, dbname, db):
  64. """
  65. Parameters:
  66. - dbname
  67. - db
  68. """
  69. pass
  70. def get_type(self, name):
  71. """
  72. Parameters:
  73. - name
  74. """
  75. pass
  76. def create_type(self, type):
  77. """
  78. Parameters:
  79. - type
  80. """
  81. pass
  82. def drop_type(self, type):
  83. """
  84. Parameters:
  85. - type
  86. """
  87. pass
  88. def get_type_all(self, name):
  89. """
  90. Parameters:
  91. - name
  92. """
  93. pass
  94. def get_fields(self, db_name, table_name):
  95. """
  96. Parameters:
  97. - db_name
  98. - table_name
  99. """
  100. pass
  101. def get_fields_with_environment_context(self, db_name, table_name, environment_context):
  102. """
  103. Parameters:
  104. - db_name
  105. - table_name
  106. - environment_context
  107. """
  108. pass
  109. def get_schema(self, db_name, table_name):
  110. """
  111. Parameters:
  112. - db_name
  113. - table_name
  114. """
  115. pass
  116. def get_schema_with_environment_context(self, db_name, table_name, environment_context):
  117. """
  118. Parameters:
  119. - db_name
  120. - table_name
  121. - environment_context
  122. """
  123. pass
  124. def create_table(self, tbl):
  125. """
  126. Parameters:
  127. - tbl
  128. """
  129. pass
  130. def create_table_with_environment_context(self, tbl, environment_context):
  131. """
  132. Parameters:
  133. - tbl
  134. - environment_context
  135. """
  136. pass
  137. def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys):
  138. """
  139. Parameters:
  140. - tbl
  141. - primaryKeys
  142. - foreignKeys
  143. """
  144. pass
  145. def drop_constraint(self, req):
  146. """
  147. Parameters:
  148. - req
  149. """
  150. pass
  151. def add_primary_key(self, req):
  152. """
  153. Parameters:
  154. - req
  155. """
  156. pass
  157. def add_foreign_key(self, req):
  158. """
  159. Parameters:
  160. - req
  161. """
  162. pass
  163. def drop_table(self, dbname, name, deleteData):
  164. """
  165. Parameters:
  166. - dbname
  167. - name
  168. - deleteData
  169. """
  170. pass
  171. def drop_table_with_environment_context(self, dbname, name, deleteData, environment_context):
  172. """
  173. Parameters:
  174. - dbname
  175. - name
  176. - deleteData
  177. - environment_context
  178. """
  179. pass
  180. def get_tables(self, db_name, pattern):
  181. """
  182. Parameters:
  183. - db_name
  184. - pattern
  185. """
  186. pass
  187. def get_table_meta(self, db_patterns, tbl_patterns, tbl_types):
  188. """
  189. Parameters:
  190. - db_patterns
  191. - tbl_patterns
  192. - tbl_types
  193. """
  194. pass
  195. def get_all_tables(self, db_name):
  196. """
  197. Parameters:
  198. - db_name
  199. """
  200. pass
  201. def get_table(self, dbname, tbl_name):
  202. """
  203. Parameters:
  204. - dbname
  205. - tbl_name
  206. """
  207. pass
  208. def get_table_objects_by_name(self, dbname, tbl_names):
  209. """
  210. Parameters:
  211. - dbname
  212. - tbl_names
  213. """
  214. pass
  215. def get_table_names_by_filter(self, dbname, filter, max_tables):
  216. """
  217. Parameters:
  218. - dbname
  219. - filter
  220. - max_tables
  221. """
  222. pass
  223. def alter_table(self, dbname, tbl_name, new_tbl):
  224. """
  225. Parameters:
  226. - dbname
  227. - tbl_name
  228. - new_tbl
  229. """
  230. pass
  231. def alter_table_with_environment_context(self, dbname, tbl_name, new_tbl, environment_context):
  232. """
  233. Parameters:
  234. - dbname
  235. - tbl_name
  236. - new_tbl
  237. - environment_context
  238. """
  239. pass
  240. def alter_table_with_cascade(self, dbname, tbl_name, new_tbl, cascade):
  241. """
  242. Parameters:
  243. - dbname
  244. - tbl_name
  245. - new_tbl
  246. - cascade
  247. """
  248. pass
  249. def add_partition(self, new_part):
  250. """
  251. Parameters:
  252. - new_part
  253. """
  254. pass
  255. def add_partition_with_environment_context(self, new_part, environment_context):
  256. """
  257. Parameters:
  258. - new_part
  259. - environment_context
  260. """
  261. pass
  262. def add_partitions(self, new_parts):
  263. """
  264. Parameters:
  265. - new_parts
  266. """
  267. pass
  268. def add_partitions_pspec(self, new_parts):
  269. """
  270. Parameters:
  271. - new_parts
  272. """
  273. pass
  274. def append_partition(self, db_name, tbl_name, part_vals):
  275. """
  276. Parameters:
  277. - db_name
  278. - tbl_name
  279. - part_vals
  280. """
  281. pass
  282. def add_partitions_req(self, request):
  283. """
  284. Parameters:
  285. - request
  286. """
  287. pass
  288. def append_partition_with_environment_context(self, db_name, tbl_name, part_vals, environment_context):
  289. """
  290. Parameters:
  291. - db_name
  292. - tbl_name
  293. - part_vals
  294. - environment_context
  295. """
  296. pass
  297. def append_partition_by_name(self, db_name, tbl_name, part_name):
  298. """
  299. Parameters:
  300. - db_name
  301. - tbl_name
  302. - part_name
  303. """
  304. pass
  305. def append_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, environment_context):
  306. """
  307. Parameters:
  308. - db_name
  309. - tbl_name
  310. - part_name
  311. - environment_context
  312. """
  313. pass
  314. def drop_partition(self, db_name, tbl_name, part_vals, deleteData):
  315. """
  316. Parameters:
  317. - db_name
  318. - tbl_name
  319. - part_vals
  320. - deleteData
  321. """
  322. pass
  323. def drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context):
  324. """
  325. Parameters:
  326. - db_name
  327. - tbl_name
  328. - part_vals
  329. - deleteData
  330. - environment_context
  331. """
  332. pass
  333. def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
  334. """
  335. Parameters:
  336. - db_name
  337. - tbl_name
  338. - part_name
  339. - deleteData
  340. """
  341. pass
  342. def drop_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, deleteData, environment_context):
  343. """
  344. Parameters:
  345. - db_name
  346. - tbl_name
  347. - part_name
  348. - deleteData
  349. - environment_context
  350. """
  351. pass
  352. def drop_partitions_req(self, req):
  353. """
  354. Parameters:
  355. - req
  356. """
  357. pass
  358. def get_partition(self, db_name, tbl_name, part_vals):
  359. """
  360. Parameters:
  361. - db_name
  362. - tbl_name
  363. - part_vals
  364. """
  365. pass
  366. def exchange_partition(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name):
  367. """
  368. Parameters:
  369. - partitionSpecs
  370. - source_db
  371. - source_table_name
  372. - dest_db
  373. - dest_table_name
  374. """
  375. pass
  376. def exchange_partitions(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name):
  377. """
  378. Parameters:
  379. - partitionSpecs
  380. - source_db
  381. - source_table_name
  382. - dest_db
  383. - dest_table_name
  384. """
  385. pass
  386. def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
  387. """
  388. Parameters:
  389. - db_name
  390. - tbl_name
  391. - part_vals
  392. - user_name
  393. - group_names
  394. """
  395. pass
  396. def get_partition_by_name(self, db_name, tbl_name, part_name):
  397. """
  398. Parameters:
  399. - db_name
  400. - tbl_name
  401. - part_name
  402. """
  403. pass
  404. def get_partitions(self, db_name, tbl_name, max_parts):
  405. """
  406. Parameters:
  407. - db_name
  408. - tbl_name
  409. - max_parts
  410. """
  411. pass
  412. def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
  413. """
  414. Parameters:
  415. - db_name
  416. - tbl_name
  417. - max_parts
  418. - user_name
  419. - group_names
  420. """
  421. pass
  422. def get_partitions_pspec(self, db_name, tbl_name, max_parts):
  423. """
  424. Parameters:
  425. - db_name
  426. - tbl_name
  427. - max_parts
  428. """
  429. pass
  430. def get_partition_names(self, db_name, tbl_name, max_parts):
  431. """
  432. Parameters:
  433. - db_name
  434. - tbl_name
  435. - max_parts
  436. """
  437. pass
  438. def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
  439. """
  440. Parameters:
  441. - db_name
  442. - tbl_name
  443. - part_vals
  444. - max_parts
  445. """
  446. pass
  447. def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
  448. """
  449. Parameters:
  450. - db_name
  451. - tbl_name
  452. - part_vals
  453. - max_parts
  454. - user_name
  455. - group_names
  456. """
  457. pass
  458. def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
  459. """
  460. Parameters:
  461. - db_name
  462. - tbl_name
  463. - part_vals
  464. - max_parts
  465. """
  466. pass
  467. def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
  468. """
  469. Parameters:
  470. - db_name
  471. - tbl_name
  472. - filter
  473. - max_parts
  474. """
  475. pass
  476. def get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts):
  477. """
  478. Parameters:
  479. - db_name
  480. - tbl_name
  481. - filter
  482. - max_parts
  483. """
  484. pass
  485. def get_partitions_by_expr(self, req):
  486. """
  487. Parameters:
  488. - req
  489. """
  490. pass
  491. def get_num_partitions_by_filter(self, db_name, tbl_name, filter):
  492. """
  493. Parameters:
  494. - db_name
  495. - tbl_name
  496. - filter
  497. """
  498. pass
  499. def get_partitions_by_names(self, db_name, tbl_name, names):
  500. """
  501. Parameters:
  502. - db_name
  503. - tbl_name
  504. - names
  505. """
  506. pass
  507. def alter_partition(self, db_name, tbl_name, new_part):
  508. """
  509. Parameters:
  510. - db_name
  511. - tbl_name
  512. - new_part
  513. """
  514. pass
  515. def alter_partitions(self, db_name, tbl_name, new_parts):
  516. """
  517. Parameters:
  518. - db_name
  519. - tbl_name
  520. - new_parts
  521. """
  522. pass
  523. def alter_partitions_with_environment_context(self, db_name, tbl_name, new_parts, environment_context):
  524. """
  525. Parameters:
  526. - db_name
  527. - tbl_name
  528. - new_parts
  529. - environment_context
  530. """
  531. pass
  532. def alter_partition_with_environment_context(self, db_name, tbl_name, new_part, environment_context):
  533. """
  534. Parameters:
  535. - db_name
  536. - tbl_name
  537. - new_part
  538. - environment_context
  539. """
  540. pass
  541. def rename_partition(self, db_name, tbl_name, part_vals, new_part):
  542. """
  543. Parameters:
  544. - db_name
  545. - tbl_name
  546. - part_vals
  547. - new_part
  548. """
  549. pass
  550. def partition_name_has_valid_characters(self, part_vals, throw_exception):
  551. """
  552. Parameters:
  553. - part_vals
  554. - throw_exception
  555. """
  556. pass
  557. def get_config_value(self, name, defaultValue):
  558. """
  559. Parameters:
  560. - name
  561. - defaultValue
  562. """
  563. pass
  564. def partition_name_to_vals(self, part_name):
  565. """
  566. Parameters:
  567. - part_name
  568. """
  569. pass
  570. def partition_name_to_spec(self, part_name):
  571. """
  572. Parameters:
  573. - part_name
  574. """
  575. pass
  576. def markPartitionForEvent(self, db_name, tbl_name, part_vals, eventType):
  577. """
  578. Parameters:
  579. - db_name
  580. - tbl_name
  581. - part_vals
  582. - eventType
  583. """
  584. pass
  585. def isPartitionMarkedForEvent(self, db_name, tbl_name, part_vals, eventType):
  586. """
  587. Parameters:
  588. - db_name
  589. - tbl_name
  590. - part_vals
  591. - eventType
  592. """
  593. pass
  594. def add_index(self, new_index, index_table):
  595. """
  596. Parameters:
  597. - new_index
  598. - index_table
  599. """
  600. pass
  601. def alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
  602. """
  603. Parameters:
  604. - dbname
  605. - base_tbl_name
  606. - idx_name
  607. - new_idx
  608. """
  609. pass
  610. def drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
  611. """
  612. Parameters:
  613. - db_name
  614. - tbl_name
  615. - index_name
  616. - deleteData
  617. """
  618. pass
  619. def get_index_by_name(self, db_name, tbl_name, index_name):
  620. """
  621. Parameters:
  622. - db_name
  623. - tbl_name
  624. - index_name
  625. """
  626. pass
  627. def get_indexes(self, db_name, tbl_name, max_indexes):
  628. """
  629. Parameters:
  630. - db_name
  631. - tbl_name
  632. - max_indexes
  633. """
  634. pass
  635. def get_index_names(self, db_name, tbl_name, max_indexes):
  636. """
  637. Parameters:
  638. - db_name
  639. - tbl_name
  640. - max_indexes
  641. """
  642. pass
  643. def get_primary_keys(self, request):
  644. """
  645. Parameters:
  646. - request
  647. """
  648. pass
  649. def get_foreign_keys(self, request):
  650. """
  651. Parameters:
  652. - request
  653. """
  654. pass
  655. def update_table_column_statistics(self, stats_obj):
  656. """
  657. Parameters:
  658. - stats_obj
  659. """
  660. pass
  661. def update_partition_column_statistics(self, stats_obj):
  662. """
  663. Parameters:
  664. - stats_obj
  665. """
  666. pass
  667. def get_table_column_statistics(self, db_name, tbl_name, col_name):
  668. """
  669. Parameters:
  670. - db_name
  671. - tbl_name
  672. - col_name
  673. """
  674. pass
  675. def get_partition_column_statistics(self, db_name, tbl_name, part_name, col_name):
  676. """
  677. Parameters:
  678. - db_name
  679. - tbl_name
  680. - part_name
  681. - col_name
  682. """
  683. pass
  684. def get_table_statistics_req(self, request):
  685. """
  686. Parameters:
  687. - request
  688. """
  689. pass
  690. def get_partitions_statistics_req(self, request):
  691. """
  692. Parameters:
  693. - request
  694. """
  695. pass
  696. def get_aggr_stats_for(self, request):
  697. """
  698. Parameters:
  699. - request
  700. """
  701. pass
  702. def set_aggr_stats_for(self, request):
  703. """
  704. Parameters:
  705. - request
  706. """
  707. pass
  708. def delete_partition_column_statistics(self, db_name, tbl_name, part_name, col_name):
  709. """
  710. Parameters:
  711. - db_name
  712. - tbl_name
  713. - part_name
  714. - col_name
  715. """
  716. pass
  717. def delete_table_column_statistics(self, db_name, tbl_name, col_name):
  718. """
  719. Parameters:
  720. - db_name
  721. - tbl_name
  722. - col_name
  723. """
  724. pass
  725. def create_function(self, func):
  726. """
  727. Parameters:
  728. - func
  729. """
  730. pass
  731. def drop_function(self, dbName, funcName):
  732. """
  733. Parameters:
  734. - dbName
  735. - funcName
  736. """
  737. pass
  738. def alter_function(self, dbName, funcName, newFunc):
  739. """
  740. Parameters:
  741. - dbName
  742. - funcName
  743. - newFunc
  744. """
  745. pass
  746. def get_functions(self, dbName, pattern):
  747. """
  748. Parameters:
  749. - dbName
  750. - pattern
  751. """
  752. pass
  753. def get_function(self, dbName, funcName):
  754. """
  755. Parameters:
  756. - dbName
  757. - funcName
  758. """
  759. pass
  760. def get_all_functions(self):
  761. pass
  762. def create_role(self, role):
  763. """
  764. Parameters:
  765. - role
  766. """
  767. pass
  768. def drop_role(self, role_name):
  769. """
  770. Parameters:
  771. - role_name
  772. """
  773. pass
  774. def get_role_names(self):
  775. pass
  776. def grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
  777. """
  778. Parameters:
  779. - role_name
  780. - principal_name
  781. - principal_type
  782. - grantor
  783. - grantorType
  784. - grant_option
  785. """
  786. pass
  787. def revoke_role(self, role_name, principal_name, principal_type):
  788. """
  789. Parameters:
  790. - role_name
  791. - principal_name
  792. - principal_type
  793. """
  794. pass
  795. def list_roles(self, principal_name, principal_type):
  796. """
  797. Parameters:
  798. - principal_name
  799. - principal_type
  800. """
  801. pass
  802. def grant_revoke_role(self, request):
  803. """
  804. Parameters:
  805. - request
  806. """
  807. pass
  808. def get_principals_in_role(self, request):
  809. """
  810. Parameters:
  811. - request
  812. """
  813. pass
  814. def get_role_grants_for_principal(self, request):
  815. """
  816. Parameters:
  817. - request
  818. """
  819. pass
  820. def get_privilege_set(self, hiveObject, user_name, group_names):
  821. """
  822. Parameters:
  823. - hiveObject
  824. - user_name
  825. - group_names
  826. """
  827. pass
  828. def list_privileges(self, principal_name, principal_type, hiveObject):
  829. """
  830. Parameters:
  831. - principal_name
  832. - principal_type
  833. - hiveObject
  834. """
  835. pass
  836. def grant_privileges(self, privileges):
  837. """
  838. Parameters:
  839. - privileges
  840. """
  841. pass
  842. def revoke_privileges(self, privileges):
  843. """
  844. Parameters:
  845. - privileges
  846. """
  847. pass
  848. def grant_revoke_privileges(self, request):
  849. """
  850. Parameters:
  851. - request
  852. """
  853. pass
  854. def set_ugi(self, user_name, group_names):
  855. """
  856. Parameters:
  857. - user_name
  858. - group_names
  859. """
  860. pass
  861. def get_delegation_token(self, token_owner, renewer_kerberos_principal_name):
  862. """
  863. Parameters:
  864. - token_owner
  865. - renewer_kerberos_principal_name
  866. """
  867. pass
  868. def renew_delegation_token(self, token_str_form):
  869. """
  870. Parameters:
  871. - token_str_form
  872. """
  873. pass
  874. def cancel_delegation_token(self, token_str_form):
  875. """
  876. Parameters:
  877. - token_str_form
  878. """
  879. pass
  880. def add_token(self, token_identifier, delegation_token):
  881. """
  882. Parameters:
  883. - token_identifier
  884. - delegation_token
  885. """
  886. pass
  887. def remove_token(self, token_identifier):
  888. """
  889. Parameters:
  890. - token_identifier
  891. """
  892. pass
  893. def get_token(self, token_identifier):
  894. """
  895. Parameters:
  896. - token_identifier
  897. """
  898. pass
  899. def get_all_token_identifiers(self):
  900. pass
  901. def add_master_key(self, key):
  902. """
  903. Parameters:
  904. - key
  905. """
  906. pass
  907. def update_master_key(self, seq_number, key):
  908. """
  909. Parameters:
  910. - seq_number
  911. - key
  912. """
  913. pass
  914. def remove_master_key(self, key_seq):
  915. """
  916. Parameters:
  917. - key_seq
  918. """
  919. pass
  920. def get_master_keys(self):
  921. pass
  922. def get_open_txns(self):
  923. pass
  924. def get_open_txns_info(self):
  925. pass
  926. def open_txns(self, rqst):
  927. """
  928. Parameters:
  929. - rqst
  930. """
  931. pass
  932. def abort_txn(self, rqst):
  933. """
  934. Parameters:
  935. - rqst
  936. """
  937. pass
  938. def abort_txns(self, rqst):
  939. """
  940. Parameters:
  941. - rqst
  942. """
  943. pass
  944. def commit_txn(self, rqst):
  945. """
  946. Parameters:
  947. - rqst
  948. """
  949. pass
  950. def lock(self, rqst):
  951. """
  952. Parameters:
  953. - rqst
  954. """
  955. pass
  956. def check_lock(self, rqst):
  957. """
  958. Parameters:
  959. - rqst
  960. """
  961. pass
  962. def unlock(self, rqst):
  963. """
  964. Parameters:
  965. - rqst
  966. """
  967. pass
  968. def show_locks(self, rqst):
  969. """
  970. Parameters:
  971. - rqst
  972. """
  973. pass
  974. def heartbeat(self, ids):
  975. """
  976. Parameters:
  977. - ids
  978. """
  979. pass
  980. def heartbeat_txn_range(self, txns):
  981. """
  982. Parameters:
  983. - txns
  984. """
  985. pass
  986. def compact(self, rqst):
  987. """
  988. Parameters:
  989. - rqst
  990. """
  991. pass
  992. def show_compact(self, rqst):
  993. """
  994. Parameters:
  995. - rqst
  996. """
  997. pass
  998. def add_dynamic_partitions(self, rqst):
  999. """
  1000. Parameters:
  1001. - rqst
  1002. """
  1003. pass
  1004. def get_next_notification(self, rqst):
  1005. """
  1006. Parameters:
  1007. - rqst
  1008. """
  1009. pass
  1010. def get_current_notificationEventId(self):
  1011. pass
  1012. def fire_listener_event(self, rqst):
  1013. """
  1014. Parameters:
  1015. - rqst
  1016. """
  1017. pass
  1018. def flushCache(self):
  1019. pass
  1020. def get_file_metadata_by_expr(self, req):
  1021. """
  1022. Parameters:
  1023. - req
  1024. """
  1025. pass
  1026. def get_file_metadata(self, req):
  1027. """
  1028. Parameters:
  1029. - req
  1030. """
  1031. pass
  1032. def put_file_metadata(self, req):
  1033. """
  1034. Parameters:
  1035. - req
  1036. """
  1037. pass
  1038. def clear_file_metadata(self, req):
  1039. """
  1040. Parameters:
  1041. - req
  1042. """
  1043. pass
  1044. def cache_file_metadata(self, req):
  1045. """
  1046. Parameters:
  1047. - req
  1048. """
  1049. pass
  1050. def get_metastore_db_uuid(self):
  1051. pass
  1052. def get_partitions_with_specs(self, request):
  1053. """
  1054. Parameters:
  1055. - request
  1056. """
  1057. pass
  1058. class Client(fb303.FacebookService.Client, Iface):
  1059. """
  1060. This interface is live.
  1061. """
  1062. def __init__(self, iprot, oprot=None):
  1063. fb303.FacebookService.Client.__init__(self, iprot, oprot)
  1064. def getMetaConf(self, key):
  1065. """
  1066. Parameters:
  1067. - key
  1068. """
  1069. self.send_getMetaConf(key)
  1070. return self.recv_getMetaConf()
  1071. def send_getMetaConf(self, key):
  1072. self._oprot.writeMessageBegin('getMetaConf', TMessageType.CALL, self._seqid)
  1073. args = getMetaConf_args()
  1074. args.key = key
  1075. args.write(self._oprot)
  1076. self._oprot.writeMessageEnd()
  1077. self._oprot.trans.flush()
  1078. def recv_getMetaConf(self):
  1079. iprot = self._iprot
  1080. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1081. if mtype == TMessageType.EXCEPTION:
  1082. x = TApplicationException()
  1083. x.read(iprot)
  1084. iprot.readMessageEnd()
  1085. raise x
  1086. result = getMetaConf_result()
  1087. result.read(iprot)
  1088. iprot.readMessageEnd()
  1089. if result.success is not None:
  1090. return result.success
  1091. if result.o1 is not None:
  1092. raise result.o1
  1093. raise TApplicationException(TApplicationException.MISSING_RESULT, "getMetaConf failed: unknown result")
  1094. def setMetaConf(self, key, value):
  1095. """
  1096. Parameters:
  1097. - key
  1098. - value
  1099. """
  1100. self.send_setMetaConf(key, value)
  1101. self.recv_setMetaConf()
  1102. def send_setMetaConf(self, key, value):
  1103. self._oprot.writeMessageBegin('setMetaConf', TMessageType.CALL, self._seqid)
  1104. args = setMetaConf_args()
  1105. args.key = key
  1106. args.value = value
  1107. args.write(self._oprot)
  1108. self._oprot.writeMessageEnd()
  1109. self._oprot.trans.flush()
  1110. def recv_setMetaConf(self):
  1111. iprot = self._iprot
  1112. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1113. if mtype == TMessageType.EXCEPTION:
  1114. x = TApplicationException()
  1115. x.read(iprot)
  1116. iprot.readMessageEnd()
  1117. raise x
  1118. result = setMetaConf_result()
  1119. result.read(iprot)
  1120. iprot.readMessageEnd()
  1121. if result.o1 is not None:
  1122. raise result.o1
  1123. return
  1124. def create_database(self, database):
  1125. """
  1126. Parameters:
  1127. - database
  1128. """
  1129. self.send_create_database(database)
  1130. self.recv_create_database()
  1131. def send_create_database(self, database):
  1132. self._oprot.writeMessageBegin('create_database', TMessageType.CALL, self._seqid)
  1133. args = create_database_args()
  1134. args.database = database
  1135. args.write(self._oprot)
  1136. self._oprot.writeMessageEnd()
  1137. self._oprot.trans.flush()
  1138. def recv_create_database(self):
  1139. iprot = self._iprot
  1140. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1141. if mtype == TMessageType.EXCEPTION:
  1142. x = TApplicationException()
  1143. x.read(iprot)
  1144. iprot.readMessageEnd()
  1145. raise x
  1146. result = create_database_result()
  1147. result.read(iprot)
  1148. iprot.readMessageEnd()
  1149. if result.o1 is not None:
  1150. raise result.o1
  1151. if result.o2 is not None:
  1152. raise result.o2
  1153. if result.o3 is not None:
  1154. raise result.o3
  1155. return
  1156. def get_database(self, name):
  1157. """
  1158. Parameters:
  1159. - name
  1160. """
  1161. self.send_get_database(name)
  1162. return self.recv_get_database()
  1163. def send_get_database(self, name):
  1164. self._oprot.writeMessageBegin('get_database', TMessageType.CALL, self._seqid)
  1165. args = get_database_args()
  1166. args.name = name
  1167. args.write(self._oprot)
  1168. self._oprot.writeMessageEnd()
  1169. self._oprot.trans.flush()
  1170. def recv_get_database(self):
  1171. iprot = self._iprot
  1172. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1173. if mtype == TMessageType.EXCEPTION:
  1174. x = TApplicationException()
  1175. x.read(iprot)
  1176. iprot.readMessageEnd()
  1177. raise x
  1178. result = get_database_result()
  1179. result.read(iprot)
  1180. iprot.readMessageEnd()
  1181. if result.success is not None:
  1182. return result.success
  1183. if result.o1 is not None:
  1184. raise result.o1
  1185. if result.o2 is not None:
  1186. raise result.o2
  1187. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result")
  1188. def drop_database(self, name, deleteData, cascade):
  1189. """
  1190. Parameters:
  1191. - name
  1192. - deleteData
  1193. - cascade
  1194. """
  1195. self.send_drop_database(name, deleteData, cascade)
  1196. self.recv_drop_database()
  1197. def send_drop_database(self, name, deleteData, cascade):
  1198. self._oprot.writeMessageBegin('drop_database', TMessageType.CALL, self._seqid)
  1199. args = drop_database_args()
  1200. args.name = name
  1201. args.deleteData = deleteData
  1202. args.cascade = cascade
  1203. args.write(self._oprot)
  1204. self._oprot.writeMessageEnd()
  1205. self._oprot.trans.flush()
  1206. def recv_drop_database(self):
  1207. iprot = self._iprot
  1208. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1209. if mtype == TMessageType.EXCEPTION:
  1210. x = TApplicationException()
  1211. x.read(iprot)
  1212. iprot.readMessageEnd()
  1213. raise x
  1214. result = drop_database_result()
  1215. result.read(iprot)
  1216. iprot.readMessageEnd()
  1217. if result.o1 is not None:
  1218. raise result.o1
  1219. if result.o2 is not None:
  1220. raise result.o2
  1221. if result.o3 is not None:
  1222. raise result.o3
  1223. return
  1224. def get_databases(self, pattern):
  1225. """
  1226. Parameters:
  1227. - pattern
  1228. """
  1229. self.send_get_databases(pattern)
  1230. return self.recv_get_databases()
  1231. def send_get_databases(self, pattern):
  1232. self._oprot.writeMessageBegin('get_databases', TMessageType.CALL, self._seqid)
  1233. args = get_databases_args()
  1234. args.pattern = pattern
  1235. args.write(self._oprot)
  1236. self._oprot.writeMessageEnd()
  1237. self._oprot.trans.flush()
  1238. def recv_get_databases(self):
  1239. iprot = self._iprot
  1240. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1241. if mtype == TMessageType.EXCEPTION:
  1242. x = TApplicationException()
  1243. x.read(iprot)
  1244. iprot.readMessageEnd()
  1245. raise x
  1246. result = get_databases_result()
  1247. result.read(iprot)
  1248. iprot.readMessageEnd()
  1249. if result.success is not None:
  1250. return result.success
  1251. if result.o1 is not None:
  1252. raise result.o1
  1253. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result")
  1254. def get_all_databases(self):
  1255. self.send_get_all_databases()
  1256. return self.recv_get_all_databases()
  1257. def send_get_all_databases(self):
  1258. self._oprot.writeMessageBegin('get_all_databases', TMessageType.CALL, self._seqid)
  1259. args = get_all_databases_args()
  1260. args.write(self._oprot)
  1261. self._oprot.writeMessageEnd()
  1262. self._oprot.trans.flush()
  1263. def recv_get_all_databases(self):
  1264. iprot = self._iprot
  1265. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1266. if mtype == TMessageType.EXCEPTION:
  1267. x = TApplicationException()
  1268. x.read(iprot)
  1269. iprot.readMessageEnd()
  1270. raise x
  1271. result = get_all_databases_result()
  1272. result.read(iprot)
  1273. iprot.readMessageEnd()
  1274. if result.success is not None:
  1275. return result.success
  1276. if result.o1 is not None:
  1277. raise result.o1
  1278. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result")
  1279. def alter_database(self, dbname, db):
  1280. """
  1281. Parameters:
  1282. - dbname
  1283. - db
  1284. """
  1285. self.send_alter_database(dbname, db)
  1286. self.recv_alter_database()
  1287. def send_alter_database(self, dbname, db):
  1288. self._oprot.writeMessageBegin('alter_database', TMessageType.CALL, self._seqid)
  1289. args = alter_database_args()
  1290. args.dbname = dbname
  1291. args.db = db
  1292. args.write(self._oprot)
  1293. self._oprot.writeMessageEnd()
  1294. self._oprot.trans.flush()
  1295. def recv_alter_database(self):
  1296. iprot = self._iprot
  1297. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1298. if mtype == TMessageType.EXCEPTION:
  1299. x = TApplicationException()
  1300. x.read(iprot)
  1301. iprot.readMessageEnd()
  1302. raise x
  1303. result = alter_database_result()
  1304. result.read(iprot)
  1305. iprot.readMessageEnd()
  1306. if result.o1 is not None:
  1307. raise result.o1
  1308. if result.o2 is not None:
  1309. raise result.o2
  1310. return
  1311. def get_type(self, name):
  1312. """
  1313. Parameters:
  1314. - name
  1315. """
  1316. self.send_get_type(name)
  1317. return self.recv_get_type()
  1318. def send_get_type(self, name):
  1319. self._oprot.writeMessageBegin('get_type', TMessageType.CALL, self._seqid)
  1320. args = get_type_args()
  1321. args.name = name
  1322. args.write(self._oprot)
  1323. self._oprot.writeMessageEnd()
  1324. self._oprot.trans.flush()
  1325. def recv_get_type(self):
  1326. iprot = self._iprot
  1327. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1328. if mtype == TMessageType.EXCEPTION:
  1329. x = TApplicationException()
  1330. x.read(iprot)
  1331. iprot.readMessageEnd()
  1332. raise x
  1333. result = get_type_result()
  1334. result.read(iprot)
  1335. iprot.readMessageEnd()
  1336. if result.success is not None:
  1337. return result.success
  1338. if result.o1 is not None:
  1339. raise result.o1
  1340. if result.o2 is not None:
  1341. raise result.o2
  1342. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type failed: unknown result")
  1343. def create_type(self, type):
  1344. """
  1345. Parameters:
  1346. - type
  1347. """
  1348. self.send_create_type(type)
  1349. return self.recv_create_type()
  1350. def send_create_type(self, type):
  1351. self._oprot.writeMessageBegin('create_type', TMessageType.CALL, self._seqid)
  1352. args = create_type_args()
  1353. args.type = type
  1354. args.write(self._oprot)
  1355. self._oprot.writeMessageEnd()
  1356. self._oprot.trans.flush()
  1357. def recv_create_type(self):
  1358. iprot = self._iprot
  1359. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1360. if mtype == TMessageType.EXCEPTION:
  1361. x = TApplicationException()
  1362. x.read(iprot)
  1363. iprot.readMessageEnd()
  1364. raise x
  1365. result = create_type_result()
  1366. result.read(iprot)
  1367. iprot.readMessageEnd()
  1368. if result.success is not None:
  1369. return result.success
  1370. if result.o1 is not None:
  1371. raise result.o1
  1372. if result.o2 is not None:
  1373. raise result.o2
  1374. if result.o3 is not None:
  1375. raise result.o3
  1376. raise TApplicationException(TApplicationException.MISSING_RESULT, "create_type failed: unknown result")
  1377. def drop_type(self, type):
  1378. """
  1379. Parameters:
  1380. - type
  1381. """
  1382. self.send_drop_type(type)
  1383. return self.recv_drop_type()
  1384. def send_drop_type(self, type):
  1385. self._oprot.writeMessageBegin('drop_type', TMessageType.CALL, self._seqid)
  1386. args = drop_type_args()
  1387. args.type = type
  1388. args.write(self._oprot)
  1389. self._oprot.writeMessageEnd()
  1390. self._oprot.trans.flush()
  1391. def recv_drop_type(self):
  1392. iprot = self._iprot
  1393. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1394. if mtype == TMessageType.EXCEPTION:
  1395. x = TApplicationException()
  1396. x.read(iprot)
  1397. iprot.readMessageEnd()
  1398. raise x
  1399. result = drop_type_result()
  1400. result.read(iprot)
  1401. iprot.readMessageEnd()
  1402. if result.success is not None:
  1403. return result.success
  1404. if result.o1 is not None:
  1405. raise result.o1
  1406. if result.o2 is not None:
  1407. raise result.o2
  1408. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_type failed: unknown result")
  1409. def get_type_all(self, name):
  1410. """
  1411. Parameters:
  1412. - name
  1413. """
  1414. self.send_get_type_all(name)
  1415. return self.recv_get_type_all()
  1416. def send_get_type_all(self, name):
  1417. self._oprot.writeMessageBegin('get_type_all', TMessageType.CALL, self._seqid)
  1418. args = get_type_all_args()
  1419. args.name = name
  1420. args.write(self._oprot)
  1421. self._oprot.writeMessageEnd()
  1422. self._oprot.trans.flush()
  1423. def recv_get_type_all(self):
  1424. iprot = self._iprot
  1425. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1426. if mtype == TMessageType.EXCEPTION:
  1427. x = TApplicationException()
  1428. x.read(iprot)
  1429. iprot.readMessageEnd()
  1430. raise x
  1431. result = get_type_all_result()
  1432. result.read(iprot)
  1433. iprot.readMessageEnd()
  1434. if result.success is not None:
  1435. return result.success
  1436. if result.o2 is not None:
  1437. raise result.o2
  1438. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result")
  1439. def get_fields(self, db_name, table_name):
  1440. """
  1441. Parameters:
  1442. - db_name
  1443. - table_name
  1444. """
  1445. self.send_get_fields(db_name, table_name)
  1446. return self.recv_get_fields()
  1447. def send_get_fields(self, db_name, table_name):
  1448. self._oprot.writeMessageBegin('get_fields', TMessageType.CALL, self._seqid)
  1449. args = get_fields_args()
  1450. args.db_name = db_name
  1451. args.table_name = table_name
  1452. args.write(self._oprot)
  1453. self._oprot.writeMessageEnd()
  1454. self._oprot.trans.flush()
  1455. def recv_get_fields(self):
  1456. iprot = self._iprot
  1457. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1458. if mtype == TMessageType.EXCEPTION:
  1459. x = TApplicationException()
  1460. x.read(iprot)
  1461. iprot.readMessageEnd()
  1462. raise x
  1463. result = get_fields_result()
  1464. result.read(iprot)
  1465. iprot.readMessageEnd()
  1466. if result.success is not None:
  1467. return result.success
  1468. if result.o1 is not None:
  1469. raise result.o1
  1470. if result.o2 is not None:
  1471. raise result.o2
  1472. if result.o3 is not None:
  1473. raise result.o3
  1474. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields failed: unknown result")
  1475. def get_fields_with_environment_context(self, db_name, table_name, environment_context):
  1476. """
  1477. Parameters:
  1478. - db_name
  1479. - table_name
  1480. - environment_context
  1481. """
  1482. self.send_get_fields_with_environment_context(db_name, table_name, environment_context)
  1483. return self.recv_get_fields_with_environment_context()
  1484. def send_get_fields_with_environment_context(self, db_name, table_name, environment_context):
  1485. self._oprot.writeMessageBegin('get_fields_with_environment_context', TMessageType.CALL, self._seqid)
  1486. args = get_fields_with_environment_context_args()
  1487. args.db_name = db_name
  1488. args.table_name = table_name
  1489. args.environment_context = environment_context
  1490. args.write(self._oprot)
  1491. self._oprot.writeMessageEnd()
  1492. self._oprot.trans.flush()
  1493. def recv_get_fields_with_environment_context(self):
  1494. iprot = self._iprot
  1495. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1496. if mtype == TMessageType.EXCEPTION:
  1497. x = TApplicationException()
  1498. x.read(iprot)
  1499. iprot.readMessageEnd()
  1500. raise x
  1501. result = get_fields_with_environment_context_result()
  1502. result.read(iprot)
  1503. iprot.readMessageEnd()
  1504. if result.success is not None:
  1505. return result.success
  1506. if result.o1 is not None:
  1507. raise result.o1
  1508. if result.o2 is not None:
  1509. raise result.o2
  1510. if result.o3 is not None:
  1511. raise result.o3
  1512. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields_with_environment_context failed: unknown result")
  1513. def get_schema(self, db_name, table_name):
  1514. """
  1515. Parameters:
  1516. - db_name
  1517. - table_name
  1518. """
  1519. self.send_get_schema(db_name, table_name)
  1520. return self.recv_get_schema()
  1521. def send_get_schema(self, db_name, table_name):
  1522. self._oprot.writeMessageBegin('get_schema', TMessageType.CALL, self._seqid)
  1523. args = get_schema_args()
  1524. args.db_name = db_name
  1525. args.table_name = table_name
  1526. args.write(self._oprot)
  1527. self._oprot.writeMessageEnd()
  1528. self._oprot.trans.flush()
  1529. def recv_get_schema(self):
  1530. iprot = self._iprot
  1531. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1532. if mtype == TMessageType.EXCEPTION:
  1533. x = TApplicationException()
  1534. x.read(iprot)
  1535. iprot.readMessageEnd()
  1536. raise x
  1537. result = get_schema_result()
  1538. result.read(iprot)
  1539. iprot.readMessageEnd()
  1540. if result.success is not None:
  1541. return result.success
  1542. if result.o1 is not None:
  1543. raise result.o1
  1544. if result.o2 is not None:
  1545. raise result.o2
  1546. if result.o3 is not None:
  1547. raise result.o3
  1548. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema failed: unknown result")
  1549. def get_schema_with_environment_context(self, db_name, table_name, environment_context):
  1550. """
  1551. Parameters:
  1552. - db_name
  1553. - table_name
  1554. - environment_context
  1555. """
  1556. self.send_get_schema_with_environment_context(db_name, table_name, environment_context)
  1557. return self.recv_get_schema_with_environment_context()
  1558. def send_get_schema_with_environment_context(self, db_name, table_name, environment_context):
  1559. self._oprot.writeMessageBegin('get_schema_with_environment_context', TMessageType.CALL, self._seqid)
  1560. args = get_schema_with_environment_context_args()
  1561. args.db_name = db_name
  1562. args.table_name = table_name
  1563. args.environment_context = environment_context
  1564. args.write(self._oprot)
  1565. self._oprot.writeMessageEnd()
  1566. self._oprot.trans.flush()
  1567. def recv_get_schema_with_environment_context(self):
  1568. iprot = self._iprot
  1569. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1570. if mtype == TMessageType.EXCEPTION:
  1571. x = TApplicationException()
  1572. x.read(iprot)
  1573. iprot.readMessageEnd()
  1574. raise x
  1575. result = get_schema_with_environment_context_result()
  1576. result.read(iprot)
  1577. iprot.readMessageEnd()
  1578. if result.success is not None:
  1579. return result.success
  1580. if result.o1 is not None:
  1581. raise result.o1
  1582. if result.o2 is not None:
  1583. raise result.o2
  1584. if result.o3 is not None:
  1585. raise result.o3
  1586. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema_with_environment_context failed: unknown result")
  1587. def create_table(self, tbl):
  1588. """
  1589. Parameters:
  1590. - tbl
  1591. """
  1592. self.send_create_table(tbl)
  1593. self.recv_create_table()
  1594. def send_create_table(self, tbl):
  1595. self._oprot.writeMessageBegin('create_table', TMessageType.CALL, self._seqid)
  1596. args = create_table_args()
  1597. args.tbl = tbl
  1598. args.write(self._oprot)
  1599. self._oprot.writeMessageEnd()
  1600. self._oprot.trans.flush()
  1601. def recv_create_table(self):
  1602. iprot = self._iprot
  1603. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1604. if mtype == TMessageType.EXCEPTION:
  1605. x = TApplicationException()
  1606. x.read(iprot)
  1607. iprot.readMessageEnd()
  1608. raise x
  1609. result = create_table_result()
  1610. result.read(iprot)
  1611. iprot.readMessageEnd()
  1612. if result.o1 is not None:
  1613. raise result.o1
  1614. if result.o2 is not None:
  1615. raise result.o2
  1616. if result.o3 is not None:
  1617. raise result.o3
  1618. if result.o4 is not None:
  1619. raise result.o4
  1620. return
  1621. def create_table_with_environment_context(self, tbl, environment_context):
  1622. """
  1623. Parameters:
  1624. - tbl
  1625. - environment_context
  1626. """
  1627. self.send_create_table_with_environment_context(tbl, environment_context)
  1628. self.recv_create_table_with_environment_context()
  1629. def send_create_table_with_environment_context(self, tbl, environment_context):
  1630. self._oprot.writeMessageBegin('create_table_with_environment_context', TMessageType.CALL, self._seqid)
  1631. args = create_table_with_environment_context_args()
  1632. args.tbl = tbl
  1633. args.environment_context = environment_context
  1634. args.write(self._oprot)
  1635. self._oprot.writeMessageEnd()
  1636. self._oprot.trans.flush()
  1637. def recv_create_table_with_environment_context(self):
  1638. iprot = self._iprot
  1639. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1640. if mtype == TMessageType.EXCEPTION:
  1641. x = TApplicationException()
  1642. x.read(iprot)
  1643. iprot.readMessageEnd()
  1644. raise x
  1645. result = create_table_with_environment_context_result()
  1646. result.read(iprot)
  1647. iprot.readMessageEnd()
  1648. if result.o1 is not None:
  1649. raise result.o1
  1650. if result.o2 is not None:
  1651. raise result.o2
  1652. if result.o3 is not None:
  1653. raise result.o3
  1654. if result.o4 is not None:
  1655. raise result.o4
  1656. return
  1657. def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys):
  1658. """
  1659. Parameters:
  1660. - tbl
  1661. - primaryKeys
  1662. - foreignKeys
  1663. """
  1664. self.send_create_table_with_constraints(tbl, primaryKeys, foreignKeys)
  1665. self.recv_create_table_with_constraints()
  1666. def send_create_table_with_constraints(self, tbl, primaryKeys, foreignKeys):
  1667. self._oprot.writeMessageBegin('create_table_with_constraints', TMessageType.CALL, self._seqid)
  1668. args = create_table_with_constraints_args()
  1669. args.tbl = tbl
  1670. args.primaryKeys = primaryKeys
  1671. args.foreignKeys = foreignKeys
  1672. args.write(self._oprot)
  1673. self._oprot.writeMessageEnd()
  1674. self._oprot.trans.flush()
  1675. def recv_create_table_with_constraints(self):
  1676. iprot = self._iprot
  1677. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1678. if mtype == TMessageType.EXCEPTION:
  1679. x = TApplicationException()
  1680. x.read(iprot)
  1681. iprot.readMessageEnd()
  1682. raise x
  1683. result = create_table_with_constraints_result()
  1684. result.read(iprot)
  1685. iprot.readMessageEnd()
  1686. if result.o1 is not None:
  1687. raise result.o1
  1688. if result.o2 is not None:
  1689. raise result.o2
  1690. if result.o3 is not None:
  1691. raise result.o3
  1692. if result.o4 is not None:
  1693. raise result.o4
  1694. return
  1695. def drop_constraint(self, req):
  1696. """
  1697. Parameters:
  1698. - req
  1699. """
  1700. self.send_drop_constraint(req)
  1701. self.recv_drop_constraint()
  1702. def send_drop_constraint(self, req):
  1703. self._oprot.writeMessageBegin('drop_constraint', TMessageType.CALL, self._seqid)
  1704. args = drop_constraint_args()
  1705. args.req = req
  1706. args.write(self._oprot)
  1707. self._oprot.writeMessageEnd()
  1708. self._oprot.trans.flush()
  1709. def recv_drop_constraint(self):
  1710. iprot = self._iprot
  1711. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1712. if mtype == TMessageType.EXCEPTION:
  1713. x = TApplicationException()
  1714. x.read(iprot)
  1715. iprot.readMessageEnd()
  1716. raise x
  1717. result = drop_constraint_result()
  1718. result.read(iprot)
  1719. iprot.readMessageEnd()
  1720. if result.o1 is not None:
  1721. raise result.o1
  1722. if result.o3 is not None:
  1723. raise result.o3
  1724. return
  1725. def add_primary_key(self, req):
  1726. """
  1727. Parameters:
  1728. - req
  1729. """
  1730. self.send_add_primary_key(req)
  1731. self.recv_add_primary_key()
  1732. def send_add_primary_key(self, req):
  1733. self._oprot.writeMessageBegin('add_primary_key', TMessageType.CALL, self._seqid)
  1734. args = add_primary_key_args()
  1735. args.req = req
  1736. args.write(self._oprot)
  1737. self._oprot.writeMessageEnd()
  1738. self._oprot.trans.flush()
  1739. def recv_add_primary_key(self):
  1740. iprot = self._iprot
  1741. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1742. if mtype == TMessageType.EXCEPTION:
  1743. x = TApplicationException()
  1744. x.read(iprot)
  1745. iprot.readMessageEnd()
  1746. raise x
  1747. result = add_primary_key_result()
  1748. result.read(iprot)
  1749. iprot.readMessageEnd()
  1750. if result.o1 is not None:
  1751. raise result.o1
  1752. if result.o2 is not None:
  1753. raise result.o2
  1754. return
  1755. def add_foreign_key(self, req):
  1756. """
  1757. Parameters:
  1758. - req
  1759. """
  1760. self.send_add_foreign_key(req)
  1761. self.recv_add_foreign_key()
  1762. def send_add_foreign_key(self, req):
  1763. self._oprot.writeMessageBegin('add_foreign_key', TMessageType.CALL, self._seqid)
  1764. args = add_foreign_key_args()
  1765. args.req = req
  1766. args.write(self._oprot)
  1767. self._oprot.writeMessageEnd()
  1768. self._oprot.trans.flush()
  1769. def recv_add_foreign_key(self):
  1770. iprot = self._iprot
  1771. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1772. if mtype == TMessageType.EXCEPTION:
  1773. x = TApplicationException()
  1774. x.read(iprot)
  1775. iprot.readMessageEnd()
  1776. raise x
  1777. result = add_foreign_key_result()
  1778. result.read(iprot)
  1779. iprot.readMessageEnd()
  1780. if result.o1 is not None:
  1781. raise result.o1
  1782. if result.o2 is not None:
  1783. raise result.o2
  1784. return
  1785. def drop_table(self, dbname, name, deleteData):
  1786. """
  1787. Parameters:
  1788. - dbname
  1789. - name
  1790. - deleteData
  1791. """
  1792. self.send_drop_table(dbname, name, deleteData)
  1793. self.recv_drop_table()
  1794. def send_drop_table(self, dbname, name, deleteData):
  1795. self._oprot.writeMessageBegin('drop_table', TMessageType.CALL, self._seqid)
  1796. args = drop_table_args()
  1797. args.dbname = dbname
  1798. args.name = name
  1799. args.deleteData = deleteData
  1800. args.write(self._oprot)
  1801. self._oprot.writeMessageEnd()
  1802. self._oprot.trans.flush()
  1803. def recv_drop_table(self):
  1804. iprot = self._iprot
  1805. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1806. if mtype == TMessageType.EXCEPTION:
  1807. x = TApplicationException()
  1808. x.read(iprot)
  1809. iprot.readMessageEnd()
  1810. raise x
  1811. result = drop_table_result()
  1812. result.read(iprot)
  1813. iprot.readMessageEnd()
  1814. if result.o1 is not None:
  1815. raise result.o1
  1816. if result.o3 is not None:
  1817. raise result.o3
  1818. return
  1819. def drop_table_with_environment_context(self, dbname, name, deleteData, environment_context):
  1820. """
  1821. Parameters:
  1822. - dbname
  1823. - name
  1824. - deleteData
  1825. - environment_context
  1826. """
  1827. self.send_drop_table_with_environment_context(dbname, name, deleteData, environment_context)
  1828. self.recv_drop_table_with_environment_context()
  1829. def send_drop_table_with_environment_context(self, dbname, name, deleteData, environment_context):
  1830. self._oprot.writeMessageBegin('drop_table_with_environment_context', TMessageType.CALL, self._seqid)
  1831. args = drop_table_with_environment_context_args()
  1832. args.dbname = dbname
  1833. args.name = name
  1834. args.deleteData = deleteData
  1835. args.environment_context = environment_context
  1836. args.write(self._oprot)
  1837. self._oprot.writeMessageEnd()
  1838. self._oprot.trans.flush()
  1839. def recv_drop_table_with_environment_context(self):
  1840. iprot = self._iprot
  1841. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1842. if mtype == TMessageType.EXCEPTION:
  1843. x = TApplicationException()
  1844. x.read(iprot)
  1845. iprot.readMessageEnd()
  1846. raise x
  1847. result = drop_table_with_environment_context_result()
  1848. result.read(iprot)
  1849. iprot.readMessageEnd()
  1850. if result.o1 is not None:
  1851. raise result.o1
  1852. if result.o3 is not None:
  1853. raise result.o3
  1854. return
  1855. def get_tables(self, db_name, pattern):
  1856. """
  1857. Parameters:
  1858. - db_name
  1859. - pattern
  1860. """
  1861. self.send_get_tables(db_name, pattern)
  1862. return self.recv_get_tables()
  1863. def send_get_tables(self, db_name, pattern):
  1864. self._oprot.writeMessageBegin('get_tables', TMessageType.CALL, self._seqid)
  1865. args = get_tables_args()
  1866. args.db_name = db_name
  1867. args.pattern = pattern
  1868. args.write(self._oprot)
  1869. self._oprot.writeMessageEnd()
  1870. self._oprot.trans.flush()
  1871. def recv_get_tables(self):
  1872. iprot = self._iprot
  1873. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1874. if mtype == TMessageType.EXCEPTION:
  1875. x = TApplicationException()
  1876. x.read(iprot)
  1877. iprot.readMessageEnd()
  1878. raise x
  1879. result = get_tables_result()
  1880. result.read(iprot)
  1881. iprot.readMessageEnd()
  1882. if result.success is not None:
  1883. return result.success
  1884. if result.o1 is not None:
  1885. raise result.o1
  1886. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result")
  1887. def get_table_meta(self, db_patterns, tbl_patterns, tbl_types):
  1888. """
  1889. Parameters:
  1890. - db_patterns
  1891. - tbl_patterns
  1892. - tbl_types
  1893. """
  1894. self.send_get_table_meta(db_patterns, tbl_patterns, tbl_types)
  1895. return self.recv_get_table_meta()
  1896. def send_get_table_meta(self, db_patterns, tbl_patterns, tbl_types):
  1897. self._oprot.writeMessageBegin('get_table_meta', TMessageType.CALL, self._seqid)
  1898. args = get_table_meta_args()
  1899. args.db_patterns = db_patterns
  1900. args.tbl_patterns = tbl_patterns
  1901. args.tbl_types = tbl_types
  1902. args.write(self._oprot)
  1903. self._oprot.writeMessageEnd()
  1904. self._oprot.trans.flush()
  1905. def recv_get_table_meta(self):
  1906. iprot = self._iprot
  1907. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1908. if mtype == TMessageType.EXCEPTION:
  1909. x = TApplicationException()
  1910. x.read(iprot)
  1911. iprot.readMessageEnd()
  1912. raise x
  1913. result = get_table_meta_result()
  1914. result.read(iprot)
  1915. iprot.readMessageEnd()
  1916. if result.success is not None:
  1917. return result.success
  1918. if result.o1 is not None:
  1919. raise result.o1
  1920. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_meta failed: unknown result")
  1921. def get_all_tables(self, db_name):
  1922. """
  1923. Parameters:
  1924. - db_name
  1925. """
  1926. self.send_get_all_tables(db_name)
  1927. return self.recv_get_all_tables()
  1928. def send_get_all_tables(self, db_name):
  1929. self._oprot.writeMessageBegin('get_all_tables', TMessageType.CALL, self._seqid)
  1930. args = get_all_tables_args()
  1931. args.db_name = db_name
  1932. args.write(self._oprot)
  1933. self._oprot.writeMessageEnd()
  1934. self._oprot.trans.flush()
  1935. def recv_get_all_tables(self):
  1936. iprot = self._iprot
  1937. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1938. if mtype == TMessageType.EXCEPTION:
  1939. x = TApplicationException()
  1940. x.read(iprot)
  1941. iprot.readMessageEnd()
  1942. raise x
  1943. result = get_all_tables_result()
  1944. result.read(iprot)
  1945. iprot.readMessageEnd()
  1946. if result.success is not None:
  1947. return result.success
  1948. if result.o1 is not None:
  1949. raise result.o1
  1950. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result")
  1951. def get_table(self, dbname, tbl_name):
  1952. """
  1953. Parameters:
  1954. - dbname
  1955. - tbl_name
  1956. """
  1957. self.send_get_table(dbname, tbl_name)
  1958. return self.recv_get_table()
  1959. def send_get_table(self, dbname, tbl_name):
  1960. self._oprot.writeMessageBegin('get_table', TMessageType.CALL, self._seqid)
  1961. args = get_table_args()
  1962. args.dbname = dbname
  1963. args.tbl_name = tbl_name
  1964. args.write(self._oprot)
  1965. self._oprot.writeMessageEnd()
  1966. self._oprot.trans.flush()
  1967. def recv_get_table(self):
  1968. iprot = self._iprot
  1969. (fname, mtype, rseqid) = iprot.readMessageBegin()
  1970. if mtype == TMessageType.EXCEPTION:
  1971. x = TApplicationException()
  1972. x.read(iprot)
  1973. iprot.readMessageEnd()
  1974. raise x
  1975. result = get_table_result()
  1976. result.read(iprot)
  1977. iprot.readMessageEnd()
  1978. if result.success is not None:
  1979. return result.success
  1980. if result.o1 is not None:
  1981. raise result.o1
  1982. if result.o2 is not None:
  1983. raise result.o2
  1984. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table failed: unknown result")
  1985. def get_table_objects_by_name(self, dbname, tbl_names):
  1986. """
  1987. Parameters:
  1988. - dbname
  1989. - tbl_names
  1990. """
  1991. self.send_get_table_objects_by_name(dbname, tbl_names)
  1992. return self.recv_get_table_objects_by_name()
  1993. def send_get_table_objects_by_name(self, dbname, tbl_names):
  1994. self._oprot.writeMessageBegin('get_table_objects_by_name', TMessageType.CALL, self._seqid)
  1995. args = get_table_objects_by_name_args()
  1996. args.dbname = dbname
  1997. args.tbl_names = tbl_names
  1998. args.write(self._oprot)
  1999. self._oprot.writeMessageEnd()
  2000. self._oprot.trans.flush()
  2001. def recv_get_table_objects_by_name(self):
  2002. iprot = self._iprot
  2003. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2004. if mtype == TMessageType.EXCEPTION:
  2005. x = TApplicationException()
  2006. x.read(iprot)
  2007. iprot.readMessageEnd()
  2008. raise x
  2009. result = get_table_objects_by_name_result()
  2010. result.read(iprot)
  2011. iprot.readMessageEnd()
  2012. if result.success is not None:
  2013. return result.success
  2014. if result.o1 is not None:
  2015. raise result.o1
  2016. if result.o2 is not None:
  2017. raise result.o2
  2018. if result.o3 is not None:
  2019. raise result.o3
  2020. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_objects_by_name failed: unknown result")
  2021. def get_table_names_by_filter(self, dbname, filter, max_tables):
  2022. """
  2023. Parameters:
  2024. - dbname
  2025. - filter
  2026. - max_tables
  2027. """
  2028. self.send_get_table_names_by_filter(dbname, filter, max_tables)
  2029. return self.recv_get_table_names_by_filter()
  2030. def send_get_table_names_by_filter(self, dbname, filter, max_tables):
  2031. self._oprot.writeMessageBegin('get_table_names_by_filter', TMessageType.CALL, self._seqid)
  2032. args = get_table_names_by_filter_args()
  2033. args.dbname = dbname
  2034. args.filter = filter
  2035. args.max_tables = max_tables
  2036. args.write(self._oprot)
  2037. self._oprot.writeMessageEnd()
  2038. self._oprot.trans.flush()
  2039. def recv_get_table_names_by_filter(self):
  2040. iprot = self._iprot
  2041. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2042. if mtype == TMessageType.EXCEPTION:
  2043. x = TApplicationException()
  2044. x.read(iprot)
  2045. iprot.readMessageEnd()
  2046. raise x
  2047. result = get_table_names_by_filter_result()
  2048. result.read(iprot)
  2049. iprot.readMessageEnd()
  2050. if result.success is not None:
  2051. return result.success
  2052. if result.o1 is not None:
  2053. raise result.o1
  2054. if result.o2 is not None:
  2055. raise result.o2
  2056. if result.o3 is not None:
  2057. raise result.o3
  2058. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_names_by_filter failed: unknown result")
  2059. def alter_table(self, dbname, tbl_name, new_tbl):
  2060. """
  2061. Parameters:
  2062. - dbname
  2063. - tbl_name
  2064. - new_tbl
  2065. """
  2066. self.send_alter_table(dbname, tbl_name, new_tbl)
  2067. self.recv_alter_table()
  2068. def send_alter_table(self, dbname, tbl_name, new_tbl):
  2069. self._oprot.writeMessageBegin('alter_table', TMessageType.CALL, self._seqid)
  2070. args = alter_table_args()
  2071. args.dbname = dbname
  2072. args.tbl_name = tbl_name
  2073. args.new_tbl = new_tbl
  2074. args.write(self._oprot)
  2075. self._oprot.writeMessageEnd()
  2076. self._oprot.trans.flush()
  2077. def recv_alter_table(self):
  2078. iprot = self._iprot
  2079. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2080. if mtype == TMessageType.EXCEPTION:
  2081. x = TApplicationException()
  2082. x.read(iprot)
  2083. iprot.readMessageEnd()
  2084. raise x
  2085. result = alter_table_result()
  2086. result.read(iprot)
  2087. iprot.readMessageEnd()
  2088. if result.o1 is not None:
  2089. raise result.o1
  2090. if result.o2 is not None:
  2091. raise result.o2
  2092. return
  2093. def alter_table_with_environment_context(self, dbname, tbl_name, new_tbl, environment_context):
  2094. """
  2095. Parameters:
  2096. - dbname
  2097. - tbl_name
  2098. - new_tbl
  2099. - environment_context
  2100. """
  2101. self.send_alter_table_with_environment_context(dbname, tbl_name, new_tbl, environment_context)
  2102. self.recv_alter_table_with_environment_context()
  2103. def send_alter_table_with_environment_context(self, dbname, tbl_name, new_tbl, environment_context):
  2104. self._oprot.writeMessageBegin('alter_table_with_environment_context', TMessageType.CALL, self._seqid)
  2105. args = alter_table_with_environment_context_args()
  2106. args.dbname = dbname
  2107. args.tbl_name = tbl_name
  2108. args.new_tbl = new_tbl
  2109. args.environment_context = environment_context
  2110. args.write(self._oprot)
  2111. self._oprot.writeMessageEnd()
  2112. self._oprot.trans.flush()
  2113. def recv_alter_table_with_environment_context(self):
  2114. iprot = self._iprot
  2115. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2116. if mtype == TMessageType.EXCEPTION:
  2117. x = TApplicationException()
  2118. x.read(iprot)
  2119. iprot.readMessageEnd()
  2120. raise x
  2121. result = alter_table_with_environment_context_result()
  2122. result.read(iprot)
  2123. iprot.readMessageEnd()
  2124. if result.o1 is not None:
  2125. raise result.o1
  2126. if result.o2 is not None:
  2127. raise result.o2
  2128. return
  2129. def alter_table_with_cascade(self, dbname, tbl_name, new_tbl, cascade):
  2130. """
  2131. Parameters:
  2132. - dbname
  2133. - tbl_name
  2134. - new_tbl
  2135. - cascade
  2136. """
  2137. self.send_alter_table_with_cascade(dbname, tbl_name, new_tbl, cascade)
  2138. self.recv_alter_table_with_cascade()
  2139. def send_alter_table_with_cascade(self, dbname, tbl_name, new_tbl, cascade):
  2140. self._oprot.writeMessageBegin('alter_table_with_cascade', TMessageType.CALL, self._seqid)
  2141. args = alter_table_with_cascade_args()
  2142. args.dbname = dbname
  2143. args.tbl_name = tbl_name
  2144. args.new_tbl = new_tbl
  2145. args.cascade = cascade
  2146. args.write(self._oprot)
  2147. self._oprot.writeMessageEnd()
  2148. self._oprot.trans.flush()
  2149. def recv_alter_table_with_cascade(self):
  2150. iprot = self._iprot
  2151. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2152. if mtype == TMessageType.EXCEPTION:
  2153. x = TApplicationException()
  2154. x.read(iprot)
  2155. iprot.readMessageEnd()
  2156. raise x
  2157. result = alter_table_with_cascade_result()
  2158. result.read(iprot)
  2159. iprot.readMessageEnd()
  2160. if result.o1 is not None:
  2161. raise result.o1
  2162. if result.o2 is not None:
  2163. raise result.o2
  2164. return
  2165. def add_partition(self, new_part):
  2166. """
  2167. Parameters:
  2168. - new_part
  2169. """
  2170. self.send_add_partition(new_part)
  2171. return self.recv_add_partition()
  2172. def send_add_partition(self, new_part):
  2173. self._oprot.writeMessageBegin('add_partition', TMessageType.CALL, self._seqid)
  2174. args = add_partition_args()
  2175. args.new_part = new_part
  2176. args.write(self._oprot)
  2177. self._oprot.writeMessageEnd()
  2178. self._oprot.trans.flush()
  2179. def recv_add_partition(self):
  2180. iprot = self._iprot
  2181. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2182. if mtype == TMessageType.EXCEPTION:
  2183. x = TApplicationException()
  2184. x.read(iprot)
  2185. iprot.readMessageEnd()
  2186. raise x
  2187. result = add_partition_result()
  2188. result.read(iprot)
  2189. iprot.readMessageEnd()
  2190. if result.success is not None:
  2191. return result.success
  2192. if result.o1 is not None:
  2193. raise result.o1
  2194. if result.o2 is not None:
  2195. raise result.o2
  2196. if result.o3 is not None:
  2197. raise result.o3
  2198. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition failed: unknown result")
  2199. def add_partition_with_environment_context(self, new_part, environment_context):
  2200. """
  2201. Parameters:
  2202. - new_part
  2203. - environment_context
  2204. """
  2205. self.send_add_partition_with_environment_context(new_part, environment_context)
  2206. return self.recv_add_partition_with_environment_context()
  2207. def send_add_partition_with_environment_context(self, new_part, environment_context):
  2208. self._oprot.writeMessageBegin('add_partition_with_environment_context', TMessageType.CALL, self._seqid)
  2209. args = add_partition_with_environment_context_args()
  2210. args.new_part = new_part
  2211. args.environment_context = environment_context
  2212. args.write(self._oprot)
  2213. self._oprot.writeMessageEnd()
  2214. self._oprot.trans.flush()
  2215. def recv_add_partition_with_environment_context(self):
  2216. iprot = self._iprot
  2217. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2218. if mtype == TMessageType.EXCEPTION:
  2219. x = TApplicationException()
  2220. x.read(iprot)
  2221. iprot.readMessageEnd()
  2222. raise x
  2223. result = add_partition_with_environment_context_result()
  2224. result.read(iprot)
  2225. iprot.readMessageEnd()
  2226. if result.success is not None:
  2227. return result.success
  2228. if result.o1 is not None:
  2229. raise result.o1
  2230. if result.o2 is not None:
  2231. raise result.o2
  2232. if result.o3 is not None:
  2233. raise result.o3
  2234. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition_with_environment_context failed: unknown result")
  2235. def add_partitions(self, new_parts):
  2236. """
  2237. Parameters:
  2238. - new_parts
  2239. """
  2240. self.send_add_partitions(new_parts)
  2241. return self.recv_add_partitions()
  2242. def send_add_partitions(self, new_parts):
  2243. self._oprot.writeMessageBegin('add_partitions', TMessageType.CALL, self._seqid)
  2244. args = add_partitions_args()
  2245. args.new_parts = new_parts
  2246. args.write(self._oprot)
  2247. self._oprot.writeMessageEnd()
  2248. self._oprot.trans.flush()
  2249. def recv_add_partitions(self):
  2250. iprot = self._iprot
  2251. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2252. if mtype == TMessageType.EXCEPTION:
  2253. x = TApplicationException()
  2254. x.read(iprot)
  2255. iprot.readMessageEnd()
  2256. raise x
  2257. result = add_partitions_result()
  2258. result.read(iprot)
  2259. iprot.readMessageEnd()
  2260. if result.success is not None:
  2261. return result.success
  2262. if result.o1 is not None:
  2263. raise result.o1
  2264. if result.o2 is not None:
  2265. raise result.o2
  2266. if result.o3 is not None:
  2267. raise result.o3
  2268. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions failed: unknown result")
  2269. def add_partitions_pspec(self, new_parts):
  2270. """
  2271. Parameters:
  2272. - new_parts
  2273. """
  2274. self.send_add_partitions_pspec(new_parts)
  2275. return self.recv_add_partitions_pspec()
  2276. def send_add_partitions_pspec(self, new_parts):
  2277. self._oprot.writeMessageBegin('add_partitions_pspec', TMessageType.CALL, self._seqid)
  2278. args = add_partitions_pspec_args()
  2279. args.new_parts = new_parts
  2280. args.write(self._oprot)
  2281. self._oprot.writeMessageEnd()
  2282. self._oprot.trans.flush()
  2283. def recv_add_partitions_pspec(self):
  2284. iprot = self._iprot
  2285. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2286. if mtype == TMessageType.EXCEPTION:
  2287. x = TApplicationException()
  2288. x.read(iprot)
  2289. iprot.readMessageEnd()
  2290. raise x
  2291. result = add_partitions_pspec_result()
  2292. result.read(iprot)
  2293. iprot.readMessageEnd()
  2294. if result.success is not None:
  2295. return result.success
  2296. if result.o1 is not None:
  2297. raise result.o1
  2298. if result.o2 is not None:
  2299. raise result.o2
  2300. if result.o3 is not None:
  2301. raise result.o3
  2302. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions_pspec failed: unknown result")
  2303. def append_partition(self, db_name, tbl_name, part_vals):
  2304. """
  2305. Parameters:
  2306. - db_name
  2307. - tbl_name
  2308. - part_vals
  2309. """
  2310. self.send_append_partition(db_name, tbl_name, part_vals)
  2311. return self.recv_append_partition()
  2312. def send_append_partition(self, db_name, tbl_name, part_vals):
  2313. self._oprot.writeMessageBegin('append_partition', TMessageType.CALL, self._seqid)
  2314. args = append_partition_args()
  2315. args.db_name = db_name
  2316. args.tbl_name = tbl_name
  2317. args.part_vals = part_vals
  2318. args.write(self._oprot)
  2319. self._oprot.writeMessageEnd()
  2320. self._oprot.trans.flush()
  2321. def recv_append_partition(self):
  2322. iprot = self._iprot
  2323. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2324. if mtype == TMessageType.EXCEPTION:
  2325. x = TApplicationException()
  2326. x.read(iprot)
  2327. iprot.readMessageEnd()
  2328. raise x
  2329. result = append_partition_result()
  2330. result.read(iprot)
  2331. iprot.readMessageEnd()
  2332. if result.success is not None:
  2333. return result.success
  2334. if result.o1 is not None:
  2335. raise result.o1
  2336. if result.o2 is not None:
  2337. raise result.o2
  2338. if result.o3 is not None:
  2339. raise result.o3
  2340. raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition failed: unknown result")
  2341. def add_partitions_req(self, request):
  2342. """
  2343. Parameters:
  2344. - request
  2345. """
  2346. self.send_add_partitions_req(request)
  2347. return self.recv_add_partitions_req()
  2348. def send_add_partitions_req(self, request):
  2349. self._oprot.writeMessageBegin('add_partitions_req', TMessageType.CALL, self._seqid)
  2350. args = add_partitions_req_args()
  2351. args.request = request
  2352. args.write(self._oprot)
  2353. self._oprot.writeMessageEnd()
  2354. self._oprot.trans.flush()
  2355. def recv_add_partitions_req(self):
  2356. iprot = self._iprot
  2357. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2358. if mtype == TMessageType.EXCEPTION:
  2359. x = TApplicationException()
  2360. x.read(iprot)
  2361. iprot.readMessageEnd()
  2362. raise x
  2363. result = add_partitions_req_result()
  2364. result.read(iprot)
  2365. iprot.readMessageEnd()
  2366. if result.success is not None:
  2367. return result.success
  2368. if result.o1 is not None:
  2369. raise result.o1
  2370. if result.o2 is not None:
  2371. raise result.o2
  2372. if result.o3 is not None:
  2373. raise result.o3
  2374. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions_req failed: unknown result")
  2375. def append_partition_with_environment_context(self, db_name, tbl_name, part_vals, environment_context):
  2376. """
  2377. Parameters:
  2378. - db_name
  2379. - tbl_name
  2380. - part_vals
  2381. - environment_context
  2382. """
  2383. self.send_append_partition_with_environment_context(db_name, tbl_name, part_vals, environment_context)
  2384. return self.recv_append_partition_with_environment_context()
  2385. def send_append_partition_with_environment_context(self, db_name, tbl_name, part_vals, environment_context):
  2386. self._oprot.writeMessageBegin('append_partition_with_environment_context', TMessageType.CALL, self._seqid)
  2387. args = append_partition_with_environment_context_args()
  2388. args.db_name = db_name
  2389. args.tbl_name = tbl_name
  2390. args.part_vals = part_vals
  2391. args.environment_context = environment_context
  2392. args.write(self._oprot)
  2393. self._oprot.writeMessageEnd()
  2394. self._oprot.trans.flush()
  2395. def recv_append_partition_with_environment_context(self):
  2396. iprot = self._iprot
  2397. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2398. if mtype == TMessageType.EXCEPTION:
  2399. x = TApplicationException()
  2400. x.read(iprot)
  2401. iprot.readMessageEnd()
  2402. raise x
  2403. result = append_partition_with_environment_context_result()
  2404. result.read(iprot)
  2405. iprot.readMessageEnd()
  2406. if result.success is not None:
  2407. return result.success
  2408. if result.o1 is not None:
  2409. raise result.o1
  2410. if result.o2 is not None:
  2411. raise result.o2
  2412. if result.o3 is not None:
  2413. raise result.o3
  2414. raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_with_environment_context failed: unknown result")
  2415. def append_partition_by_name(self, db_name, tbl_name, part_name):
  2416. """
  2417. Parameters:
  2418. - db_name
  2419. - tbl_name
  2420. - part_name
  2421. """
  2422. self.send_append_partition_by_name(db_name, tbl_name, part_name)
  2423. return self.recv_append_partition_by_name()
  2424. def send_append_partition_by_name(self, db_name, tbl_name, part_name):
  2425. self._oprot.writeMessageBegin('append_partition_by_name', TMessageType.CALL, self._seqid)
  2426. args = append_partition_by_name_args()
  2427. args.db_name = db_name
  2428. args.tbl_name = tbl_name
  2429. args.part_name = part_name
  2430. args.write(self._oprot)
  2431. self._oprot.writeMessageEnd()
  2432. self._oprot.trans.flush()
  2433. def recv_append_partition_by_name(self):
  2434. iprot = self._iprot
  2435. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2436. if mtype == TMessageType.EXCEPTION:
  2437. x = TApplicationException()
  2438. x.read(iprot)
  2439. iprot.readMessageEnd()
  2440. raise x
  2441. result = append_partition_by_name_result()
  2442. result.read(iprot)
  2443. iprot.readMessageEnd()
  2444. if result.success is not None:
  2445. return result.success
  2446. if result.o1 is not None:
  2447. raise result.o1
  2448. if result.o2 is not None:
  2449. raise result.o2
  2450. if result.o3 is not None:
  2451. raise result.o3
  2452. raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name failed: unknown result")
  2453. def append_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, environment_context):
  2454. """
  2455. Parameters:
  2456. - db_name
  2457. - tbl_name
  2458. - part_name
  2459. - environment_context
  2460. """
  2461. self.send_append_partition_by_name_with_environment_context(db_name, tbl_name, part_name, environment_context)
  2462. return self.recv_append_partition_by_name_with_environment_context()
  2463. def send_append_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, environment_context):
  2464. self._oprot.writeMessageBegin('append_partition_by_name_with_environment_context', TMessageType.CALL, self._seqid)
  2465. args = append_partition_by_name_with_environment_context_args()
  2466. args.db_name = db_name
  2467. args.tbl_name = tbl_name
  2468. args.part_name = part_name
  2469. args.environment_context = environment_context
  2470. args.write(self._oprot)
  2471. self._oprot.writeMessageEnd()
  2472. self._oprot.trans.flush()
  2473. def recv_append_partition_by_name_with_environment_context(self):
  2474. iprot = self._iprot
  2475. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2476. if mtype == TMessageType.EXCEPTION:
  2477. x = TApplicationException()
  2478. x.read(iprot)
  2479. iprot.readMessageEnd()
  2480. raise x
  2481. result = append_partition_by_name_with_environment_context_result()
  2482. result.read(iprot)
  2483. iprot.readMessageEnd()
  2484. if result.success is not None:
  2485. return result.success
  2486. if result.o1 is not None:
  2487. raise result.o1
  2488. if result.o2 is not None:
  2489. raise result.o2
  2490. if result.o3 is not None:
  2491. raise result.o3
  2492. raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name_with_environment_context failed: unknown result")
  2493. def drop_partition(self, db_name, tbl_name, part_vals, deleteData):
  2494. """
  2495. Parameters:
  2496. - db_name
  2497. - tbl_name
  2498. - part_vals
  2499. - deleteData
  2500. """
  2501. self.send_drop_partition(db_name, tbl_name, part_vals, deleteData)
  2502. return self.recv_drop_partition()
  2503. def send_drop_partition(self, db_name, tbl_name, part_vals, deleteData):
  2504. self._oprot.writeMessageBegin('drop_partition', TMessageType.CALL, self._seqid)
  2505. args = drop_partition_args()
  2506. args.db_name = db_name
  2507. args.tbl_name = tbl_name
  2508. args.part_vals = part_vals
  2509. args.deleteData = deleteData
  2510. args.write(self._oprot)
  2511. self._oprot.writeMessageEnd()
  2512. self._oprot.trans.flush()
  2513. def recv_drop_partition(self):
  2514. iprot = self._iprot
  2515. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2516. if mtype == TMessageType.EXCEPTION:
  2517. x = TApplicationException()
  2518. x.read(iprot)
  2519. iprot.readMessageEnd()
  2520. raise x
  2521. result = drop_partition_result()
  2522. result.read(iprot)
  2523. iprot.readMessageEnd()
  2524. if result.success is not None:
  2525. return result.success
  2526. if result.o1 is not None:
  2527. raise result.o1
  2528. if result.o2 is not None:
  2529. raise result.o2
  2530. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition failed: unknown result")
  2531. def drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context):
  2532. """
  2533. Parameters:
  2534. - db_name
  2535. - tbl_name
  2536. - part_vals
  2537. - deleteData
  2538. - environment_context
  2539. """
  2540. self.send_drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context)
  2541. return self.recv_drop_partition_with_environment_context()
  2542. def send_drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context):
  2543. self._oprot.writeMessageBegin('drop_partition_with_environment_context', TMessageType.CALL, self._seqid)
  2544. args = drop_partition_with_environment_context_args()
  2545. args.db_name = db_name
  2546. args.tbl_name = tbl_name
  2547. args.part_vals = part_vals
  2548. args.deleteData = deleteData
  2549. args.environment_context = environment_context
  2550. args.write(self._oprot)
  2551. self._oprot.writeMessageEnd()
  2552. self._oprot.trans.flush()
  2553. def recv_drop_partition_with_environment_context(self):
  2554. iprot = self._iprot
  2555. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2556. if mtype == TMessageType.EXCEPTION:
  2557. x = TApplicationException()
  2558. x.read(iprot)
  2559. iprot.readMessageEnd()
  2560. raise x
  2561. result = drop_partition_with_environment_context_result()
  2562. result.read(iprot)
  2563. iprot.readMessageEnd()
  2564. if result.success is not None:
  2565. return result.success
  2566. if result.o1 is not None:
  2567. raise result.o1
  2568. if result.o2 is not None:
  2569. raise result.o2
  2570. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_with_environment_context failed: unknown result")
  2571. def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
  2572. """
  2573. Parameters:
  2574. - db_name
  2575. - tbl_name
  2576. - part_name
  2577. - deleteData
  2578. """
  2579. self.send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
  2580. return self.recv_drop_partition_by_name()
  2581. def send_drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
  2582. self._oprot.writeMessageBegin('drop_partition_by_name', TMessageType.CALL, self._seqid)
  2583. args = drop_partition_by_name_args()
  2584. args.db_name = db_name
  2585. args.tbl_name = tbl_name
  2586. args.part_name = part_name
  2587. args.deleteData = deleteData
  2588. args.write(self._oprot)
  2589. self._oprot.writeMessageEnd()
  2590. self._oprot.trans.flush()
  2591. def recv_drop_partition_by_name(self):
  2592. iprot = self._iprot
  2593. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2594. if mtype == TMessageType.EXCEPTION:
  2595. x = TApplicationException()
  2596. x.read(iprot)
  2597. iprot.readMessageEnd()
  2598. raise x
  2599. result = drop_partition_by_name_result()
  2600. result.read(iprot)
  2601. iprot.readMessageEnd()
  2602. if result.success is not None:
  2603. return result.success
  2604. if result.o1 is not None:
  2605. raise result.o1
  2606. if result.o2 is not None:
  2607. raise result.o2
  2608. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name failed: unknown result")
  2609. def drop_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, deleteData, environment_context):
  2610. """
  2611. Parameters:
  2612. - db_name
  2613. - tbl_name
  2614. - part_name
  2615. - deleteData
  2616. - environment_context
  2617. """
  2618. self.send_drop_partition_by_name_with_environment_context(db_name, tbl_name, part_name, deleteData, environment_context)
  2619. return self.recv_drop_partition_by_name_with_environment_context()
  2620. def send_drop_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, deleteData, environment_context):
  2621. self._oprot.writeMessageBegin('drop_partition_by_name_with_environment_context', TMessageType.CALL, self._seqid)
  2622. args = drop_partition_by_name_with_environment_context_args()
  2623. args.db_name = db_name
  2624. args.tbl_name = tbl_name
  2625. args.part_name = part_name
  2626. args.deleteData = deleteData
  2627. args.environment_context = environment_context
  2628. args.write(self._oprot)
  2629. self._oprot.writeMessageEnd()
  2630. self._oprot.trans.flush()
  2631. def recv_drop_partition_by_name_with_environment_context(self):
  2632. iprot = self._iprot
  2633. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2634. if mtype == TMessageType.EXCEPTION:
  2635. x = TApplicationException()
  2636. x.read(iprot)
  2637. iprot.readMessageEnd()
  2638. raise x
  2639. result = drop_partition_by_name_with_environment_context_result()
  2640. result.read(iprot)
  2641. iprot.readMessageEnd()
  2642. if result.success is not None:
  2643. return result.success
  2644. if result.o1 is not None:
  2645. raise result.o1
  2646. if result.o2 is not None:
  2647. raise result.o2
  2648. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name_with_environment_context failed: unknown result")
  2649. def drop_partitions_req(self, req):
  2650. """
  2651. Parameters:
  2652. - req
  2653. """
  2654. self.send_drop_partitions_req(req)
  2655. return self.recv_drop_partitions_req()
  2656. def send_drop_partitions_req(self, req):
  2657. self._oprot.writeMessageBegin('drop_partitions_req', TMessageType.CALL, self._seqid)
  2658. args = drop_partitions_req_args()
  2659. args.req = req
  2660. args.write(self._oprot)
  2661. self._oprot.writeMessageEnd()
  2662. self._oprot.trans.flush()
  2663. def recv_drop_partitions_req(self):
  2664. iprot = self._iprot
  2665. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2666. if mtype == TMessageType.EXCEPTION:
  2667. x = TApplicationException()
  2668. x.read(iprot)
  2669. iprot.readMessageEnd()
  2670. raise x
  2671. result = drop_partitions_req_result()
  2672. result.read(iprot)
  2673. iprot.readMessageEnd()
  2674. if result.success is not None:
  2675. return result.success
  2676. if result.o1 is not None:
  2677. raise result.o1
  2678. if result.o2 is not None:
  2679. raise result.o2
  2680. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partitions_req failed: unknown result")
  2681. def get_partition(self, db_name, tbl_name, part_vals):
  2682. """
  2683. Parameters:
  2684. - db_name
  2685. - tbl_name
  2686. - part_vals
  2687. """
  2688. self.send_get_partition(db_name, tbl_name, part_vals)
  2689. return self.recv_get_partition()
  2690. def send_get_partition(self, db_name, tbl_name, part_vals):
  2691. self._oprot.writeMessageBegin('get_partition', TMessageType.CALL, self._seqid)
  2692. args = get_partition_args()
  2693. args.db_name = db_name
  2694. args.tbl_name = tbl_name
  2695. args.part_vals = part_vals
  2696. args.write(self._oprot)
  2697. self._oprot.writeMessageEnd()
  2698. self._oprot.trans.flush()
  2699. def recv_get_partition(self):
  2700. iprot = self._iprot
  2701. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2702. if mtype == TMessageType.EXCEPTION:
  2703. x = TApplicationException()
  2704. x.read(iprot)
  2705. iprot.readMessageEnd()
  2706. raise x
  2707. result = get_partition_result()
  2708. result.read(iprot)
  2709. iprot.readMessageEnd()
  2710. if result.success is not None:
  2711. return result.success
  2712. if result.o1 is not None:
  2713. raise result.o1
  2714. if result.o2 is not None:
  2715. raise result.o2
  2716. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition failed: unknown result")
  2717. def exchange_partition(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name):
  2718. """
  2719. Parameters:
  2720. - partitionSpecs
  2721. - source_db
  2722. - source_table_name
  2723. - dest_db
  2724. - dest_table_name
  2725. """
  2726. self.send_exchange_partition(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name)
  2727. return self.recv_exchange_partition()
  2728. def send_exchange_partition(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name):
  2729. self._oprot.writeMessageBegin('exchange_partition', TMessageType.CALL, self._seqid)
  2730. args = exchange_partition_args()
  2731. args.partitionSpecs = partitionSpecs
  2732. args.source_db = source_db
  2733. args.source_table_name = source_table_name
  2734. args.dest_db = dest_db
  2735. args.dest_table_name = dest_table_name
  2736. args.write(self._oprot)
  2737. self._oprot.writeMessageEnd()
  2738. self._oprot.trans.flush()
  2739. def recv_exchange_partition(self):
  2740. iprot = self._iprot
  2741. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2742. if mtype == TMessageType.EXCEPTION:
  2743. x = TApplicationException()
  2744. x.read(iprot)
  2745. iprot.readMessageEnd()
  2746. raise x
  2747. result = exchange_partition_result()
  2748. result.read(iprot)
  2749. iprot.readMessageEnd()
  2750. if result.success is not None:
  2751. return result.success
  2752. if result.o1 is not None:
  2753. raise result.o1
  2754. if result.o2 is not None:
  2755. raise result.o2
  2756. if result.o3 is not None:
  2757. raise result.o3
  2758. if result.o4 is not None:
  2759. raise result.o4
  2760. raise TApplicationException(TApplicationException.MISSING_RESULT, "exchange_partition failed: unknown result")
  2761. def exchange_partitions(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name):
  2762. """
  2763. Parameters:
  2764. - partitionSpecs
  2765. - source_db
  2766. - source_table_name
  2767. - dest_db
  2768. - dest_table_name
  2769. """
  2770. self.send_exchange_partitions(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name)
  2771. return self.recv_exchange_partitions()
  2772. def send_exchange_partitions(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name):
  2773. self._oprot.writeMessageBegin('exchange_partitions', TMessageType.CALL, self._seqid)
  2774. args = exchange_partitions_args()
  2775. args.partitionSpecs = partitionSpecs
  2776. args.source_db = source_db
  2777. args.source_table_name = source_table_name
  2778. args.dest_db = dest_db
  2779. args.dest_table_name = dest_table_name
  2780. args.write(self._oprot)
  2781. self._oprot.writeMessageEnd()
  2782. self._oprot.trans.flush()
  2783. def recv_exchange_partitions(self):
  2784. iprot = self._iprot
  2785. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2786. if mtype == TMessageType.EXCEPTION:
  2787. x = TApplicationException()
  2788. x.read(iprot)
  2789. iprot.readMessageEnd()
  2790. raise x
  2791. result = exchange_partitions_result()
  2792. result.read(iprot)
  2793. iprot.readMessageEnd()
  2794. if result.success is not None:
  2795. return result.success
  2796. if result.o1 is not None:
  2797. raise result.o1
  2798. if result.o2 is not None:
  2799. raise result.o2
  2800. if result.o3 is not None:
  2801. raise result.o3
  2802. if result.o4 is not None:
  2803. raise result.o4
  2804. raise TApplicationException(TApplicationException.MISSING_RESULT, "exchange_partitions failed: unknown result")
  2805. def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
  2806. """
  2807. Parameters:
  2808. - db_name
  2809. - tbl_name
  2810. - part_vals
  2811. - user_name
  2812. - group_names
  2813. """
  2814. self.send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
  2815. return self.recv_get_partition_with_auth()
  2816. def send_get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
  2817. self._oprot.writeMessageBegin('get_partition_with_auth', TMessageType.CALL, self._seqid)
  2818. args = get_partition_with_auth_args()
  2819. args.db_name = db_name
  2820. args.tbl_name = tbl_name
  2821. args.part_vals = part_vals
  2822. args.user_name = user_name
  2823. args.group_names = group_names
  2824. args.write(self._oprot)
  2825. self._oprot.writeMessageEnd()
  2826. self._oprot.trans.flush()
  2827. def recv_get_partition_with_auth(self):
  2828. iprot = self._iprot
  2829. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2830. if mtype == TMessageType.EXCEPTION:
  2831. x = TApplicationException()
  2832. x.read(iprot)
  2833. iprot.readMessageEnd()
  2834. raise x
  2835. result = get_partition_with_auth_result()
  2836. result.read(iprot)
  2837. iprot.readMessageEnd()
  2838. if result.success is not None:
  2839. return result.success
  2840. if result.o1 is not None:
  2841. raise result.o1
  2842. if result.o2 is not None:
  2843. raise result.o2
  2844. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_with_auth failed: unknown result")
  2845. def get_partition_by_name(self, db_name, tbl_name, part_name):
  2846. """
  2847. Parameters:
  2848. - db_name
  2849. - tbl_name
  2850. - part_name
  2851. """
  2852. self.send_get_partition_by_name(db_name, tbl_name, part_name)
  2853. return self.recv_get_partition_by_name()
  2854. def send_get_partition_by_name(self, db_name, tbl_name, part_name):
  2855. self._oprot.writeMessageBegin('get_partition_by_name', TMessageType.CALL, self._seqid)
  2856. args = get_partition_by_name_args()
  2857. args.db_name = db_name
  2858. args.tbl_name = tbl_name
  2859. args.part_name = part_name
  2860. args.write(self._oprot)
  2861. self._oprot.writeMessageEnd()
  2862. self._oprot.trans.flush()
  2863. def recv_get_partition_by_name(self):
  2864. iprot = self._iprot
  2865. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2866. if mtype == TMessageType.EXCEPTION:
  2867. x = TApplicationException()
  2868. x.read(iprot)
  2869. iprot.readMessageEnd()
  2870. raise x
  2871. result = get_partition_by_name_result()
  2872. result.read(iprot)
  2873. iprot.readMessageEnd()
  2874. if result.success is not None:
  2875. return result.success
  2876. if result.o1 is not None:
  2877. raise result.o1
  2878. if result.o2 is not None:
  2879. raise result.o2
  2880. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_by_name failed: unknown result")
  2881. def get_partitions(self, db_name, tbl_name, max_parts):
  2882. """
  2883. Parameters:
  2884. - db_name
  2885. - tbl_name
  2886. - max_parts
  2887. """
  2888. self.send_get_partitions(db_name, tbl_name, max_parts)
  2889. return self.recv_get_partitions()
  2890. def send_get_partitions(self, db_name, tbl_name, max_parts):
  2891. self._oprot.writeMessageBegin('get_partitions', TMessageType.CALL, self._seqid)
  2892. args = get_partitions_args()
  2893. args.db_name = db_name
  2894. args.tbl_name = tbl_name
  2895. args.max_parts = max_parts
  2896. args.write(self._oprot)
  2897. self._oprot.writeMessageEnd()
  2898. self._oprot.trans.flush()
  2899. def recv_get_partitions(self):
  2900. iprot = self._iprot
  2901. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2902. if mtype == TMessageType.EXCEPTION:
  2903. x = TApplicationException()
  2904. x.read(iprot)
  2905. iprot.readMessageEnd()
  2906. raise x
  2907. result = get_partitions_result()
  2908. result.read(iprot)
  2909. iprot.readMessageEnd()
  2910. if result.success is not None:
  2911. return result.success
  2912. if result.o1 is not None:
  2913. raise result.o1
  2914. if result.o2 is not None:
  2915. raise result.o2
  2916. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions failed: unknown result")
  2917. def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
  2918. """
  2919. Parameters:
  2920. - db_name
  2921. - tbl_name
  2922. - max_parts
  2923. - user_name
  2924. - group_names
  2925. """
  2926. self.send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
  2927. return self.recv_get_partitions_with_auth()
  2928. def send_get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
  2929. self._oprot.writeMessageBegin('get_partitions_with_auth', TMessageType.CALL, self._seqid)
  2930. args = get_partitions_with_auth_args()
  2931. args.db_name = db_name
  2932. args.tbl_name = tbl_name
  2933. args.max_parts = max_parts
  2934. args.user_name = user_name
  2935. args.group_names = group_names
  2936. args.write(self._oprot)
  2937. self._oprot.writeMessageEnd()
  2938. self._oprot.trans.flush()
  2939. def recv_get_partitions_with_auth(self):
  2940. iprot = self._iprot
  2941. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2942. if mtype == TMessageType.EXCEPTION:
  2943. x = TApplicationException()
  2944. x.read(iprot)
  2945. iprot.readMessageEnd()
  2946. raise x
  2947. result = get_partitions_with_auth_result()
  2948. result.read(iprot)
  2949. iprot.readMessageEnd()
  2950. if result.success is not None:
  2951. return result.success
  2952. if result.o1 is not None:
  2953. raise result.o1
  2954. if result.o2 is not None:
  2955. raise result.o2
  2956. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_with_auth failed: unknown result")
  2957. def get_partitions_pspec(self, db_name, tbl_name, max_parts):
  2958. """
  2959. Parameters:
  2960. - db_name
  2961. - tbl_name
  2962. - max_parts
  2963. """
  2964. self.send_get_partitions_pspec(db_name, tbl_name, max_parts)
  2965. return self.recv_get_partitions_pspec()
  2966. def send_get_partitions_pspec(self, db_name, tbl_name, max_parts):
  2967. self._oprot.writeMessageBegin('get_partitions_pspec', TMessageType.CALL, self._seqid)
  2968. args = get_partitions_pspec_args()
  2969. args.db_name = db_name
  2970. args.tbl_name = tbl_name
  2971. args.max_parts = max_parts
  2972. args.write(self._oprot)
  2973. self._oprot.writeMessageEnd()
  2974. self._oprot.trans.flush()
  2975. def recv_get_partitions_pspec(self):
  2976. iprot = self._iprot
  2977. (fname, mtype, rseqid) = iprot.readMessageBegin()
  2978. if mtype == TMessageType.EXCEPTION:
  2979. x = TApplicationException()
  2980. x.read(iprot)
  2981. iprot.readMessageEnd()
  2982. raise x
  2983. result = get_partitions_pspec_result()
  2984. result.read(iprot)
  2985. iprot.readMessageEnd()
  2986. if result.success is not None:
  2987. return result.success
  2988. if result.o1 is not None:
  2989. raise result.o1
  2990. if result.o2 is not None:
  2991. raise result.o2
  2992. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_pspec failed: unknown result")
  2993. def get_partition_names(self, db_name, tbl_name, max_parts):
  2994. """
  2995. Parameters:
  2996. - db_name
  2997. - tbl_name
  2998. - max_parts
  2999. """
  3000. self.send_get_partition_names(db_name, tbl_name, max_parts)
  3001. return self.recv_get_partition_names()
  3002. def send_get_partition_names(self, db_name, tbl_name, max_parts):
  3003. self._oprot.writeMessageBegin('get_partition_names', TMessageType.CALL, self._seqid)
  3004. args = get_partition_names_args()
  3005. args.db_name = db_name
  3006. args.tbl_name = tbl_name
  3007. args.max_parts = max_parts
  3008. args.write(self._oprot)
  3009. self._oprot.writeMessageEnd()
  3010. self._oprot.trans.flush()
  3011. def recv_get_partition_names(self):
  3012. iprot = self._iprot
  3013. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3014. if mtype == TMessageType.EXCEPTION:
  3015. x = TApplicationException()
  3016. x.read(iprot)
  3017. iprot.readMessageEnd()
  3018. raise x
  3019. result = get_partition_names_result()
  3020. result.read(iprot)
  3021. iprot.readMessageEnd()
  3022. if result.success is not None:
  3023. return result.success
  3024. if result.o1 is not None:
  3025. raise result.o1
  3026. if result.o2 is not None:
  3027. raise result.o2
  3028. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result")
  3029. def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
  3030. """
  3031. Parameters:
  3032. - db_name
  3033. - tbl_name
  3034. - part_vals
  3035. - max_parts
  3036. """
  3037. self.send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
  3038. return self.recv_get_partitions_ps()
  3039. def send_get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
  3040. self._oprot.writeMessageBegin('get_partitions_ps', TMessageType.CALL, self._seqid)
  3041. args = get_partitions_ps_args()
  3042. args.db_name = db_name
  3043. args.tbl_name = tbl_name
  3044. args.part_vals = part_vals
  3045. args.max_parts = max_parts
  3046. args.write(self._oprot)
  3047. self._oprot.writeMessageEnd()
  3048. self._oprot.trans.flush()
  3049. def recv_get_partitions_ps(self):
  3050. iprot = self._iprot
  3051. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3052. if mtype == TMessageType.EXCEPTION:
  3053. x = TApplicationException()
  3054. x.read(iprot)
  3055. iprot.readMessageEnd()
  3056. raise x
  3057. result = get_partitions_ps_result()
  3058. result.read(iprot)
  3059. iprot.readMessageEnd()
  3060. if result.success is not None:
  3061. return result.success
  3062. if result.o1 is not None:
  3063. raise result.o1
  3064. if result.o2 is not None:
  3065. raise result.o2
  3066. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps failed: unknown result")
  3067. def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
  3068. """
  3069. Parameters:
  3070. - db_name
  3071. - tbl_name
  3072. - part_vals
  3073. - max_parts
  3074. - user_name
  3075. - group_names
  3076. """
  3077. self.send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
  3078. return self.recv_get_partitions_ps_with_auth()
  3079. def send_get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
  3080. self._oprot.writeMessageBegin('get_partitions_ps_with_auth', TMessageType.CALL, self._seqid)
  3081. args = get_partitions_ps_with_auth_args()
  3082. args.db_name = db_name
  3083. args.tbl_name = tbl_name
  3084. args.part_vals = part_vals
  3085. args.max_parts = max_parts
  3086. args.user_name = user_name
  3087. args.group_names = group_names
  3088. args.write(self._oprot)
  3089. self._oprot.writeMessageEnd()
  3090. self._oprot.trans.flush()
  3091. def recv_get_partitions_ps_with_auth(self):
  3092. iprot = self._iprot
  3093. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3094. if mtype == TMessageType.EXCEPTION:
  3095. x = TApplicationException()
  3096. x.read(iprot)
  3097. iprot.readMessageEnd()
  3098. raise x
  3099. result = get_partitions_ps_with_auth_result()
  3100. result.read(iprot)
  3101. iprot.readMessageEnd()
  3102. if result.success is not None:
  3103. return result.success
  3104. if result.o1 is not None:
  3105. raise result.o1
  3106. if result.o2 is not None:
  3107. raise result.o2
  3108. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result")
  3109. def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
  3110. """
  3111. Parameters:
  3112. - db_name
  3113. - tbl_name
  3114. - part_vals
  3115. - max_parts
  3116. """
  3117. self.send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
  3118. return self.recv_get_partition_names_ps()
  3119. def send_get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
  3120. self._oprot.writeMessageBegin('get_partition_names_ps', TMessageType.CALL, self._seqid)
  3121. args = get_partition_names_ps_args()
  3122. args.db_name = db_name
  3123. args.tbl_name = tbl_name
  3124. args.part_vals = part_vals
  3125. args.max_parts = max_parts
  3126. args.write(self._oprot)
  3127. self._oprot.writeMessageEnd()
  3128. self._oprot.trans.flush()
  3129. def recv_get_partition_names_ps(self):
  3130. iprot = self._iprot
  3131. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3132. if mtype == TMessageType.EXCEPTION:
  3133. x = TApplicationException()
  3134. x.read(iprot)
  3135. iprot.readMessageEnd()
  3136. raise x
  3137. result = get_partition_names_ps_result()
  3138. result.read(iprot)
  3139. iprot.readMessageEnd()
  3140. if result.success is not None:
  3141. return result.success
  3142. if result.o1 is not None:
  3143. raise result.o1
  3144. if result.o2 is not None:
  3145. raise result.o2
  3146. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names_ps failed: unknown result")
  3147. def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
  3148. """
  3149. Parameters:
  3150. - db_name
  3151. - tbl_name
  3152. - filter
  3153. - max_parts
  3154. """
  3155. self.send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
  3156. return self.recv_get_partitions_by_filter()
  3157. def send_get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
  3158. self._oprot.writeMessageBegin('get_partitions_by_filter', TMessageType.CALL, self._seqid)
  3159. args = get_partitions_by_filter_args()
  3160. args.db_name = db_name
  3161. args.tbl_name = tbl_name
  3162. args.filter = filter
  3163. args.max_parts = max_parts
  3164. args.write(self._oprot)
  3165. self._oprot.writeMessageEnd()
  3166. self._oprot.trans.flush()
  3167. def recv_get_partitions_by_filter(self):
  3168. iprot = self._iprot
  3169. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3170. if mtype == TMessageType.EXCEPTION:
  3171. x = TApplicationException()
  3172. x.read(iprot)
  3173. iprot.readMessageEnd()
  3174. raise x
  3175. result = get_partitions_by_filter_result()
  3176. result.read(iprot)
  3177. iprot.readMessageEnd()
  3178. if result.success is not None:
  3179. return result.success
  3180. if result.o1 is not None:
  3181. raise result.o1
  3182. if result.o2 is not None:
  3183. raise result.o2
  3184. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_filter failed: unknown result")
  3185. def get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts):
  3186. """
  3187. Parameters:
  3188. - db_name
  3189. - tbl_name
  3190. - filter
  3191. - max_parts
  3192. """
  3193. self.send_get_part_specs_by_filter(db_name, tbl_name, filter, max_parts)
  3194. return self.recv_get_part_specs_by_filter()
  3195. def send_get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts):
  3196. self._oprot.writeMessageBegin('get_part_specs_by_filter', TMessageType.CALL, self._seqid)
  3197. args = get_part_specs_by_filter_args()
  3198. args.db_name = db_name
  3199. args.tbl_name = tbl_name
  3200. args.filter = filter
  3201. args.max_parts = max_parts
  3202. args.write(self._oprot)
  3203. self._oprot.writeMessageEnd()
  3204. self._oprot.trans.flush()
  3205. def recv_get_part_specs_by_filter(self):
  3206. iprot = self._iprot
  3207. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3208. if mtype == TMessageType.EXCEPTION:
  3209. x = TApplicationException()
  3210. x.read(iprot)
  3211. iprot.readMessageEnd()
  3212. raise x
  3213. result = get_part_specs_by_filter_result()
  3214. result.read(iprot)
  3215. iprot.readMessageEnd()
  3216. if result.success is not None:
  3217. return result.success
  3218. if result.o1 is not None:
  3219. raise result.o1
  3220. if result.o2 is not None:
  3221. raise result.o2
  3222. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_part_specs_by_filter failed: unknown result")
  3223. def get_partitions_by_expr(self, req):
  3224. """
  3225. Parameters:
  3226. - req
  3227. """
  3228. self.send_get_partitions_by_expr(req)
  3229. return self.recv_get_partitions_by_expr()
  3230. def send_get_partitions_by_expr(self, req):
  3231. self._oprot.writeMessageBegin('get_partitions_by_expr', TMessageType.CALL, self._seqid)
  3232. args = get_partitions_by_expr_args()
  3233. args.req = req
  3234. args.write(self._oprot)
  3235. self._oprot.writeMessageEnd()
  3236. self._oprot.trans.flush()
  3237. def recv_get_partitions_by_expr(self):
  3238. iprot = self._iprot
  3239. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3240. if mtype == TMessageType.EXCEPTION:
  3241. x = TApplicationException()
  3242. x.read(iprot)
  3243. iprot.readMessageEnd()
  3244. raise x
  3245. result = get_partitions_by_expr_result()
  3246. result.read(iprot)
  3247. iprot.readMessageEnd()
  3248. if result.success is not None:
  3249. return result.success
  3250. if result.o1 is not None:
  3251. raise result.o1
  3252. if result.o2 is not None:
  3253. raise result.o2
  3254. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_expr failed: unknown result")
  3255. def get_num_partitions_by_filter(self, db_name, tbl_name, filter):
  3256. """
  3257. Parameters:
  3258. - db_name
  3259. - tbl_name
  3260. - filter
  3261. """
  3262. self.send_get_num_partitions_by_filter(db_name, tbl_name, filter)
  3263. return self.recv_get_num_partitions_by_filter()
  3264. def send_get_num_partitions_by_filter(self, db_name, tbl_name, filter):
  3265. self._oprot.writeMessageBegin('get_num_partitions_by_filter', TMessageType.CALL, self._seqid)
  3266. args = get_num_partitions_by_filter_args()
  3267. args.db_name = db_name
  3268. args.tbl_name = tbl_name
  3269. args.filter = filter
  3270. args.write(self._oprot)
  3271. self._oprot.writeMessageEnd()
  3272. self._oprot.trans.flush()
  3273. def recv_get_num_partitions_by_filter(self):
  3274. iprot = self._iprot
  3275. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3276. if mtype == TMessageType.EXCEPTION:
  3277. x = TApplicationException()
  3278. x.read(iprot)
  3279. iprot.readMessageEnd()
  3280. raise x
  3281. result = get_num_partitions_by_filter_result()
  3282. result.read(iprot)
  3283. iprot.readMessageEnd()
  3284. if result.success is not None:
  3285. return result.success
  3286. if result.o1 is not None:
  3287. raise result.o1
  3288. if result.o2 is not None:
  3289. raise result.o2
  3290. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_num_partitions_by_filter failed: unknown result")
  3291. def get_partitions_by_names(self, db_name, tbl_name, names):
  3292. """
  3293. Parameters:
  3294. - db_name
  3295. - tbl_name
  3296. - names
  3297. """
  3298. self.send_get_partitions_by_names(db_name, tbl_name, names)
  3299. return self.recv_get_partitions_by_names()
  3300. def send_get_partitions_by_names(self, db_name, tbl_name, names):
  3301. self._oprot.writeMessageBegin('get_partitions_by_names', TMessageType.CALL, self._seqid)
  3302. args = get_partitions_by_names_args()
  3303. args.db_name = db_name
  3304. args.tbl_name = tbl_name
  3305. args.names = names
  3306. args.write(self._oprot)
  3307. self._oprot.writeMessageEnd()
  3308. self._oprot.trans.flush()
  3309. def recv_get_partitions_by_names(self):
  3310. iprot = self._iprot
  3311. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3312. if mtype == TMessageType.EXCEPTION:
  3313. x = TApplicationException()
  3314. x.read(iprot)
  3315. iprot.readMessageEnd()
  3316. raise x
  3317. result = get_partitions_by_names_result()
  3318. result.read(iprot)
  3319. iprot.readMessageEnd()
  3320. if result.success is not None:
  3321. return result.success
  3322. if result.o1 is not None:
  3323. raise result.o1
  3324. if result.o2 is not None:
  3325. raise result.o2
  3326. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_names failed: unknown result")
  3327. def alter_partition(self, db_name, tbl_name, new_part):
  3328. """
  3329. Parameters:
  3330. - db_name
  3331. - tbl_name
  3332. - new_part
  3333. """
  3334. self.send_alter_partition(db_name, tbl_name, new_part)
  3335. self.recv_alter_partition()
  3336. def send_alter_partition(self, db_name, tbl_name, new_part):
  3337. self._oprot.writeMessageBegin('alter_partition', TMessageType.CALL, self._seqid)
  3338. args = alter_partition_args()
  3339. args.db_name = db_name
  3340. args.tbl_name = tbl_name
  3341. args.new_part = new_part
  3342. args.write(self._oprot)
  3343. self._oprot.writeMessageEnd()
  3344. self._oprot.trans.flush()
  3345. def recv_alter_partition(self):
  3346. iprot = self._iprot
  3347. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3348. if mtype == TMessageType.EXCEPTION:
  3349. x = TApplicationException()
  3350. x.read(iprot)
  3351. iprot.readMessageEnd()
  3352. raise x
  3353. result = alter_partition_result()
  3354. result.read(iprot)
  3355. iprot.readMessageEnd()
  3356. if result.o1 is not None:
  3357. raise result.o1
  3358. if result.o2 is not None:
  3359. raise result.o2
  3360. return
  3361. def alter_partitions(self, db_name, tbl_name, new_parts):
  3362. """
  3363. Parameters:
  3364. - db_name
  3365. - tbl_name
  3366. - new_parts
  3367. """
  3368. self.send_alter_partitions(db_name, tbl_name, new_parts)
  3369. self.recv_alter_partitions()
  3370. def send_alter_partitions(self, db_name, tbl_name, new_parts):
  3371. self._oprot.writeMessageBegin('alter_partitions', TMessageType.CALL, self._seqid)
  3372. args = alter_partitions_args()
  3373. args.db_name = db_name
  3374. args.tbl_name = tbl_name
  3375. args.new_parts = new_parts
  3376. args.write(self._oprot)
  3377. self._oprot.writeMessageEnd()
  3378. self._oprot.trans.flush()
  3379. def recv_alter_partitions(self):
  3380. iprot = self._iprot
  3381. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3382. if mtype == TMessageType.EXCEPTION:
  3383. x = TApplicationException()
  3384. x.read(iprot)
  3385. iprot.readMessageEnd()
  3386. raise x
  3387. result = alter_partitions_result()
  3388. result.read(iprot)
  3389. iprot.readMessageEnd()
  3390. if result.o1 is not None:
  3391. raise result.o1
  3392. if result.o2 is not None:
  3393. raise result.o2
  3394. return
  3395. def alter_partitions_with_environment_context(self, db_name, tbl_name, new_parts, environment_context):
  3396. """
  3397. Parameters:
  3398. - db_name
  3399. - tbl_name
  3400. - new_parts
  3401. - environment_context
  3402. """
  3403. self.send_alter_partitions_with_environment_context(db_name, tbl_name, new_parts, environment_context)
  3404. self.recv_alter_partitions_with_environment_context()
  3405. def send_alter_partitions_with_environment_context(self, db_name, tbl_name, new_parts, environment_context):
  3406. self._oprot.writeMessageBegin('alter_partitions_with_environment_context', TMessageType.CALL, self._seqid)
  3407. args = alter_partitions_with_environment_context_args()
  3408. args.db_name = db_name
  3409. args.tbl_name = tbl_name
  3410. args.new_parts = new_parts
  3411. args.environment_context = environment_context
  3412. args.write(self._oprot)
  3413. self._oprot.writeMessageEnd()
  3414. self._oprot.trans.flush()
  3415. def recv_alter_partitions_with_environment_context(self):
  3416. iprot = self._iprot
  3417. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3418. if mtype == TMessageType.EXCEPTION:
  3419. x = TApplicationException()
  3420. x.read(iprot)
  3421. iprot.readMessageEnd()
  3422. raise x
  3423. result = alter_partitions_with_environment_context_result()
  3424. result.read(iprot)
  3425. iprot.readMessageEnd()
  3426. if result.o1 is not None:
  3427. raise result.o1
  3428. if result.o2 is not None:
  3429. raise result.o2
  3430. return
  3431. def alter_partition_with_environment_context(self, db_name, tbl_name, new_part, environment_context):
  3432. """
  3433. Parameters:
  3434. - db_name
  3435. - tbl_name
  3436. - new_part
  3437. - environment_context
  3438. """
  3439. self.send_alter_partition_with_environment_context(db_name, tbl_name, new_part, environment_context)
  3440. self.recv_alter_partition_with_environment_context()
  3441. def send_alter_partition_with_environment_context(self, db_name, tbl_name, new_part, environment_context):
  3442. self._oprot.writeMessageBegin('alter_partition_with_environment_context', TMessageType.CALL, self._seqid)
  3443. args = alter_partition_with_environment_context_args()
  3444. args.db_name = db_name
  3445. args.tbl_name = tbl_name
  3446. args.new_part = new_part
  3447. args.environment_context = environment_context
  3448. args.write(self._oprot)
  3449. self._oprot.writeMessageEnd()
  3450. self._oprot.trans.flush()
  3451. def recv_alter_partition_with_environment_context(self):
  3452. iprot = self._iprot
  3453. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3454. if mtype == TMessageType.EXCEPTION:
  3455. x = TApplicationException()
  3456. x.read(iprot)
  3457. iprot.readMessageEnd()
  3458. raise x
  3459. result = alter_partition_with_environment_context_result()
  3460. result.read(iprot)
  3461. iprot.readMessageEnd()
  3462. if result.o1 is not None:
  3463. raise result.o1
  3464. if result.o2 is not None:
  3465. raise result.o2
  3466. return
  3467. def rename_partition(self, db_name, tbl_name, part_vals, new_part):
  3468. """
  3469. Parameters:
  3470. - db_name
  3471. - tbl_name
  3472. - part_vals
  3473. - new_part
  3474. """
  3475. self.send_rename_partition(db_name, tbl_name, part_vals, new_part)
  3476. self.recv_rename_partition()
  3477. def send_rename_partition(self, db_name, tbl_name, part_vals, new_part):
  3478. self._oprot.writeMessageBegin('rename_partition', TMessageType.CALL, self._seqid)
  3479. args = rename_partition_args()
  3480. args.db_name = db_name
  3481. args.tbl_name = tbl_name
  3482. args.part_vals = part_vals
  3483. args.new_part = new_part
  3484. args.write(self._oprot)
  3485. self._oprot.writeMessageEnd()
  3486. self._oprot.trans.flush()
  3487. def recv_rename_partition(self):
  3488. iprot = self._iprot
  3489. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3490. if mtype == TMessageType.EXCEPTION:
  3491. x = TApplicationException()
  3492. x.read(iprot)
  3493. iprot.readMessageEnd()
  3494. raise x
  3495. result = rename_partition_result()
  3496. result.read(iprot)
  3497. iprot.readMessageEnd()
  3498. if result.o1 is not None:
  3499. raise result.o1
  3500. if result.o2 is not None:
  3501. raise result.o2
  3502. return
  3503. def partition_name_has_valid_characters(self, part_vals, throw_exception):
  3504. """
  3505. Parameters:
  3506. - part_vals
  3507. - throw_exception
  3508. """
  3509. self.send_partition_name_has_valid_characters(part_vals, throw_exception)
  3510. return self.recv_partition_name_has_valid_characters()
  3511. def send_partition_name_has_valid_characters(self, part_vals, throw_exception):
  3512. self._oprot.writeMessageBegin('partition_name_has_valid_characters', TMessageType.CALL, self._seqid)
  3513. args = partition_name_has_valid_characters_args()
  3514. args.part_vals = part_vals
  3515. args.throw_exception = throw_exception
  3516. args.write(self._oprot)
  3517. self._oprot.writeMessageEnd()
  3518. self._oprot.trans.flush()
  3519. def recv_partition_name_has_valid_characters(self):
  3520. iprot = self._iprot
  3521. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3522. if mtype == TMessageType.EXCEPTION:
  3523. x = TApplicationException()
  3524. x.read(iprot)
  3525. iprot.readMessageEnd()
  3526. raise x
  3527. result = partition_name_has_valid_characters_result()
  3528. result.read(iprot)
  3529. iprot.readMessageEnd()
  3530. if result.success is not None:
  3531. return result.success
  3532. if result.o1 is not None:
  3533. raise result.o1
  3534. raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_has_valid_characters failed: unknown result")
  3535. def get_config_value(self, name, defaultValue):
  3536. """
  3537. Parameters:
  3538. - name
  3539. - defaultValue
  3540. """
  3541. self.send_get_config_value(name, defaultValue)
  3542. return self.recv_get_config_value()
  3543. def send_get_config_value(self, name, defaultValue):
  3544. self._oprot.writeMessageBegin('get_config_value', TMessageType.CALL, self._seqid)
  3545. args = get_config_value_args()
  3546. args.name = name
  3547. args.defaultValue = defaultValue
  3548. args.write(self._oprot)
  3549. self._oprot.writeMessageEnd()
  3550. self._oprot.trans.flush()
  3551. def recv_get_config_value(self):
  3552. iprot = self._iprot
  3553. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3554. if mtype == TMessageType.EXCEPTION:
  3555. x = TApplicationException()
  3556. x.read(iprot)
  3557. iprot.readMessageEnd()
  3558. raise x
  3559. result = get_config_value_result()
  3560. result.read(iprot)
  3561. iprot.readMessageEnd()
  3562. if result.success is not None:
  3563. return result.success
  3564. if result.o1 is not None:
  3565. raise result.o1
  3566. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_config_value failed: unknown result")
  3567. def partition_name_to_vals(self, part_name):
  3568. """
  3569. Parameters:
  3570. - part_name
  3571. """
  3572. self.send_partition_name_to_vals(part_name)
  3573. return self.recv_partition_name_to_vals()
  3574. def send_partition_name_to_vals(self, part_name):
  3575. self._oprot.writeMessageBegin('partition_name_to_vals', TMessageType.CALL, self._seqid)
  3576. args = partition_name_to_vals_args()
  3577. args.part_name = part_name
  3578. args.write(self._oprot)
  3579. self._oprot.writeMessageEnd()
  3580. self._oprot.trans.flush()
  3581. def recv_partition_name_to_vals(self):
  3582. iprot = self._iprot
  3583. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3584. if mtype == TMessageType.EXCEPTION:
  3585. x = TApplicationException()
  3586. x.read(iprot)
  3587. iprot.readMessageEnd()
  3588. raise x
  3589. result = partition_name_to_vals_result()
  3590. result.read(iprot)
  3591. iprot.readMessageEnd()
  3592. if result.success is not None:
  3593. return result.success
  3594. if result.o1 is not None:
  3595. raise result.o1
  3596. raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_vals failed: unknown result")
  3597. def partition_name_to_spec(self, part_name):
  3598. """
  3599. Parameters:
  3600. - part_name
  3601. """
  3602. self.send_partition_name_to_spec(part_name)
  3603. return self.recv_partition_name_to_spec()
  3604. def send_partition_name_to_spec(self, part_name):
  3605. self._oprot.writeMessageBegin('partition_name_to_spec', TMessageType.CALL, self._seqid)
  3606. args = partition_name_to_spec_args()
  3607. args.part_name = part_name
  3608. args.write(self._oprot)
  3609. self._oprot.writeMessageEnd()
  3610. self._oprot.trans.flush()
  3611. def recv_partition_name_to_spec(self):
  3612. iprot = self._iprot
  3613. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3614. if mtype == TMessageType.EXCEPTION:
  3615. x = TApplicationException()
  3616. x.read(iprot)
  3617. iprot.readMessageEnd()
  3618. raise x
  3619. result = partition_name_to_spec_result()
  3620. result.read(iprot)
  3621. iprot.readMessageEnd()
  3622. if result.success is not None:
  3623. return result.success
  3624. if result.o1 is not None:
  3625. raise result.o1
  3626. raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_spec failed: unknown result")
  3627. def markPartitionForEvent(self, db_name, tbl_name, part_vals, eventType):
  3628. """
  3629. Parameters:
  3630. - db_name
  3631. - tbl_name
  3632. - part_vals
  3633. - eventType
  3634. """
  3635. self.send_markPartitionForEvent(db_name, tbl_name, part_vals, eventType)
  3636. self.recv_markPartitionForEvent()
  3637. def send_markPartitionForEvent(self, db_name, tbl_name, part_vals, eventType):
  3638. self._oprot.writeMessageBegin('markPartitionForEvent', TMessageType.CALL, self._seqid)
  3639. args = markPartitionForEvent_args()
  3640. args.db_name = db_name
  3641. args.tbl_name = tbl_name
  3642. args.part_vals = part_vals
  3643. args.eventType = eventType
  3644. args.write(self._oprot)
  3645. self._oprot.writeMessageEnd()
  3646. self._oprot.trans.flush()
  3647. def recv_markPartitionForEvent(self):
  3648. iprot = self._iprot
  3649. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3650. if mtype == TMessageType.EXCEPTION:
  3651. x = TApplicationException()
  3652. x.read(iprot)
  3653. iprot.readMessageEnd()
  3654. raise x
  3655. result = markPartitionForEvent_result()
  3656. result.read(iprot)
  3657. iprot.readMessageEnd()
  3658. if result.o1 is not None:
  3659. raise result.o1
  3660. if result.o2 is not None:
  3661. raise result.o2
  3662. if result.o3 is not None:
  3663. raise result.o3
  3664. if result.o4 is not None:
  3665. raise result.o4
  3666. if result.o5 is not None:
  3667. raise result.o5
  3668. if result.o6 is not None:
  3669. raise result.o6
  3670. return
  3671. def isPartitionMarkedForEvent(self, db_name, tbl_name, part_vals, eventType):
  3672. """
  3673. Parameters:
  3674. - db_name
  3675. - tbl_name
  3676. - part_vals
  3677. - eventType
  3678. """
  3679. self.send_isPartitionMarkedForEvent(db_name, tbl_name, part_vals, eventType)
  3680. return self.recv_isPartitionMarkedForEvent()
  3681. def send_isPartitionMarkedForEvent(self, db_name, tbl_name, part_vals, eventType):
  3682. self._oprot.writeMessageBegin('isPartitionMarkedForEvent', TMessageType.CALL, self._seqid)
  3683. args = isPartitionMarkedForEvent_args()
  3684. args.db_name = db_name
  3685. args.tbl_name = tbl_name
  3686. args.part_vals = part_vals
  3687. args.eventType = eventType
  3688. args.write(self._oprot)
  3689. self._oprot.writeMessageEnd()
  3690. self._oprot.trans.flush()
  3691. def recv_isPartitionMarkedForEvent(self):
  3692. iprot = self._iprot
  3693. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3694. if mtype == TMessageType.EXCEPTION:
  3695. x = TApplicationException()
  3696. x.read(iprot)
  3697. iprot.readMessageEnd()
  3698. raise x
  3699. result = isPartitionMarkedForEvent_result()
  3700. result.read(iprot)
  3701. iprot.readMessageEnd()
  3702. if result.success is not None:
  3703. return result.success
  3704. if result.o1 is not None:
  3705. raise result.o1
  3706. if result.o2 is not None:
  3707. raise result.o2
  3708. if result.o3 is not None:
  3709. raise result.o3
  3710. if result.o4 is not None:
  3711. raise result.o4
  3712. if result.o5 is not None:
  3713. raise result.o5
  3714. if result.o6 is not None:
  3715. raise result.o6
  3716. raise TApplicationException(TApplicationException.MISSING_RESULT, "isPartitionMarkedForEvent failed: unknown result")
  3717. def add_index(self, new_index, index_table):
  3718. """
  3719. Parameters:
  3720. - new_index
  3721. - index_table
  3722. """
  3723. self.send_add_index(new_index, index_table)
  3724. return self.recv_add_index()
  3725. def send_add_index(self, new_index, index_table):
  3726. self._oprot.writeMessageBegin('add_index', TMessageType.CALL, self._seqid)
  3727. args = add_index_args()
  3728. args.new_index = new_index
  3729. args.index_table = index_table
  3730. args.write(self._oprot)
  3731. self._oprot.writeMessageEnd()
  3732. self._oprot.trans.flush()
  3733. def recv_add_index(self):
  3734. iprot = self._iprot
  3735. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3736. if mtype == TMessageType.EXCEPTION:
  3737. x = TApplicationException()
  3738. x.read(iprot)
  3739. iprot.readMessageEnd()
  3740. raise x
  3741. result = add_index_result()
  3742. result.read(iprot)
  3743. iprot.readMessageEnd()
  3744. if result.success is not None:
  3745. return result.success
  3746. if result.o1 is not None:
  3747. raise result.o1
  3748. if result.o2 is not None:
  3749. raise result.o2
  3750. if result.o3 is not None:
  3751. raise result.o3
  3752. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_index failed: unknown result")
  3753. def alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
  3754. """
  3755. Parameters:
  3756. - dbname
  3757. - base_tbl_name
  3758. - idx_name
  3759. - new_idx
  3760. """
  3761. self.send_alter_index(dbname, base_tbl_name, idx_name, new_idx)
  3762. self.recv_alter_index()
  3763. def send_alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
  3764. self._oprot.writeMessageBegin('alter_index', TMessageType.CALL, self._seqid)
  3765. args = alter_index_args()
  3766. args.dbname = dbname
  3767. args.base_tbl_name = base_tbl_name
  3768. args.idx_name = idx_name
  3769. args.new_idx = new_idx
  3770. args.write(self._oprot)
  3771. self._oprot.writeMessageEnd()
  3772. self._oprot.trans.flush()
  3773. def recv_alter_index(self):
  3774. iprot = self._iprot
  3775. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3776. if mtype == TMessageType.EXCEPTION:
  3777. x = TApplicationException()
  3778. x.read(iprot)
  3779. iprot.readMessageEnd()
  3780. raise x
  3781. result = alter_index_result()
  3782. result.read(iprot)
  3783. iprot.readMessageEnd()
  3784. if result.o1 is not None:
  3785. raise result.o1
  3786. if result.o2 is not None:
  3787. raise result.o2
  3788. return
  3789. def drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
  3790. """
  3791. Parameters:
  3792. - db_name
  3793. - tbl_name
  3794. - index_name
  3795. - deleteData
  3796. """
  3797. self.send_drop_index_by_name(db_name, tbl_name, index_name, deleteData)
  3798. return self.recv_drop_index_by_name()
  3799. def send_drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
  3800. self._oprot.writeMessageBegin('drop_index_by_name', TMessageType.CALL, self._seqid)
  3801. args = drop_index_by_name_args()
  3802. args.db_name = db_name
  3803. args.tbl_name = tbl_name
  3804. args.index_name = index_name
  3805. args.deleteData = deleteData
  3806. args.write(self._oprot)
  3807. self._oprot.writeMessageEnd()
  3808. self._oprot.trans.flush()
  3809. def recv_drop_index_by_name(self):
  3810. iprot = self._iprot
  3811. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3812. if mtype == TMessageType.EXCEPTION:
  3813. x = TApplicationException()
  3814. x.read(iprot)
  3815. iprot.readMessageEnd()
  3816. raise x
  3817. result = drop_index_by_name_result()
  3818. result.read(iprot)
  3819. iprot.readMessageEnd()
  3820. if result.success is not None:
  3821. return result.success
  3822. if result.o1 is not None:
  3823. raise result.o1
  3824. if result.o2 is not None:
  3825. raise result.o2
  3826. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_index_by_name failed: unknown result")
  3827. def get_index_by_name(self, db_name, tbl_name, index_name):
  3828. """
  3829. Parameters:
  3830. - db_name
  3831. - tbl_name
  3832. - index_name
  3833. """
  3834. self.send_get_index_by_name(db_name, tbl_name, index_name)
  3835. return self.recv_get_index_by_name()
  3836. def send_get_index_by_name(self, db_name, tbl_name, index_name):
  3837. self._oprot.writeMessageBegin('get_index_by_name', TMessageType.CALL, self._seqid)
  3838. args = get_index_by_name_args()
  3839. args.db_name = db_name
  3840. args.tbl_name = tbl_name
  3841. args.index_name = index_name
  3842. args.write(self._oprot)
  3843. self._oprot.writeMessageEnd()
  3844. self._oprot.trans.flush()
  3845. def recv_get_index_by_name(self):
  3846. iprot = self._iprot
  3847. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3848. if mtype == TMessageType.EXCEPTION:
  3849. x = TApplicationException()
  3850. x.read(iprot)
  3851. iprot.readMessageEnd()
  3852. raise x
  3853. result = get_index_by_name_result()
  3854. result.read(iprot)
  3855. iprot.readMessageEnd()
  3856. if result.success is not None:
  3857. return result.success
  3858. if result.o1 is not None:
  3859. raise result.o1
  3860. if result.o2 is not None:
  3861. raise result.o2
  3862. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_by_name failed: unknown result")
  3863. def get_indexes(self, db_name, tbl_name, max_indexes):
  3864. """
  3865. Parameters:
  3866. - db_name
  3867. - tbl_name
  3868. - max_indexes
  3869. """
  3870. self.send_get_indexes(db_name, tbl_name, max_indexes)
  3871. return self.recv_get_indexes()
  3872. def send_get_indexes(self, db_name, tbl_name, max_indexes):
  3873. self._oprot.writeMessageBegin('get_indexes', TMessageType.CALL, self._seqid)
  3874. args = get_indexes_args()
  3875. args.db_name = db_name
  3876. args.tbl_name = tbl_name
  3877. args.max_indexes = max_indexes
  3878. args.write(self._oprot)
  3879. self._oprot.writeMessageEnd()
  3880. self._oprot.trans.flush()
  3881. def recv_get_indexes(self):
  3882. iprot = self._iprot
  3883. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3884. if mtype == TMessageType.EXCEPTION:
  3885. x = TApplicationException()
  3886. x.read(iprot)
  3887. iprot.readMessageEnd()
  3888. raise x
  3889. result = get_indexes_result()
  3890. result.read(iprot)
  3891. iprot.readMessageEnd()
  3892. if result.success is not None:
  3893. return result.success
  3894. if result.o1 is not None:
  3895. raise result.o1
  3896. if result.o2 is not None:
  3897. raise result.o2
  3898. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_indexes failed: unknown result")
  3899. def get_index_names(self, db_name, tbl_name, max_indexes):
  3900. """
  3901. Parameters:
  3902. - db_name
  3903. - tbl_name
  3904. - max_indexes
  3905. """
  3906. self.send_get_index_names(db_name, tbl_name, max_indexes)
  3907. return self.recv_get_index_names()
  3908. def send_get_index_names(self, db_name, tbl_name, max_indexes):
  3909. self._oprot.writeMessageBegin('get_index_names', TMessageType.CALL, self._seqid)
  3910. args = get_index_names_args()
  3911. args.db_name = db_name
  3912. args.tbl_name = tbl_name
  3913. args.max_indexes = max_indexes
  3914. args.write(self._oprot)
  3915. self._oprot.writeMessageEnd()
  3916. self._oprot.trans.flush()
  3917. def recv_get_index_names(self):
  3918. iprot = self._iprot
  3919. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3920. if mtype == TMessageType.EXCEPTION:
  3921. x = TApplicationException()
  3922. x.read(iprot)
  3923. iprot.readMessageEnd()
  3924. raise x
  3925. result = get_index_names_result()
  3926. result.read(iprot)
  3927. iprot.readMessageEnd()
  3928. if result.success is not None:
  3929. return result.success
  3930. if result.o2 is not None:
  3931. raise result.o2
  3932. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_names failed: unknown result")
  3933. def get_primary_keys(self, request):
  3934. """
  3935. Parameters:
  3936. - request
  3937. """
  3938. self.send_get_primary_keys(request)
  3939. return self.recv_get_primary_keys()
  3940. def send_get_primary_keys(self, request):
  3941. self._oprot.writeMessageBegin('get_primary_keys', TMessageType.CALL, self._seqid)
  3942. args = get_primary_keys_args()
  3943. args.request = request
  3944. args.write(self._oprot)
  3945. self._oprot.writeMessageEnd()
  3946. self._oprot.trans.flush()
  3947. def recv_get_primary_keys(self):
  3948. iprot = self._iprot
  3949. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3950. if mtype == TMessageType.EXCEPTION:
  3951. x = TApplicationException()
  3952. x.read(iprot)
  3953. iprot.readMessageEnd()
  3954. raise x
  3955. result = get_primary_keys_result()
  3956. result.read(iprot)
  3957. iprot.readMessageEnd()
  3958. if result.success is not None:
  3959. return result.success
  3960. if result.o1 is not None:
  3961. raise result.o1
  3962. if result.o2 is not None:
  3963. raise result.o2
  3964. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_primary_keys failed: unknown result")
  3965. def get_foreign_keys(self, request):
  3966. """
  3967. Parameters:
  3968. - request
  3969. """
  3970. self.send_get_foreign_keys(request)
  3971. return self.recv_get_foreign_keys()
  3972. def send_get_foreign_keys(self, request):
  3973. self._oprot.writeMessageBegin('get_foreign_keys', TMessageType.CALL, self._seqid)
  3974. args = get_foreign_keys_args()
  3975. args.request = request
  3976. args.write(self._oprot)
  3977. self._oprot.writeMessageEnd()
  3978. self._oprot.trans.flush()
  3979. def recv_get_foreign_keys(self):
  3980. iprot = self._iprot
  3981. (fname, mtype, rseqid) = iprot.readMessageBegin()
  3982. if mtype == TMessageType.EXCEPTION:
  3983. x = TApplicationException()
  3984. x.read(iprot)
  3985. iprot.readMessageEnd()
  3986. raise x
  3987. result = get_foreign_keys_result()
  3988. result.read(iprot)
  3989. iprot.readMessageEnd()
  3990. if result.success is not None:
  3991. return result.success
  3992. if result.o1 is not None:
  3993. raise result.o1
  3994. if result.o2 is not None:
  3995. raise result.o2
  3996. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_foreign_keys failed: unknown result")
  3997. def update_table_column_statistics(self, stats_obj):
  3998. """
  3999. Parameters:
  4000. - stats_obj
  4001. """
  4002. self.send_update_table_column_statistics(stats_obj)
  4003. return self.recv_update_table_column_statistics()
  4004. def send_update_table_column_statistics(self, stats_obj):
  4005. self._oprot.writeMessageBegin('update_table_column_statistics', TMessageType.CALL, self._seqid)
  4006. args = update_table_column_statistics_args()
  4007. args.stats_obj = stats_obj
  4008. args.write(self._oprot)
  4009. self._oprot.writeMessageEnd()
  4010. self._oprot.trans.flush()
  4011. def recv_update_table_column_statistics(self):
  4012. iprot = self._iprot
  4013. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4014. if mtype == TMessageType.EXCEPTION:
  4015. x = TApplicationException()
  4016. x.read(iprot)
  4017. iprot.readMessageEnd()
  4018. raise x
  4019. result = update_table_column_statistics_result()
  4020. result.read(iprot)
  4021. iprot.readMessageEnd()
  4022. if result.success is not None:
  4023. return result.success
  4024. if result.o1 is not None:
  4025. raise result.o1
  4026. if result.o2 is not None:
  4027. raise result.o2
  4028. if result.o3 is not None:
  4029. raise result.o3
  4030. if result.o4 is not None:
  4031. raise result.o4
  4032. raise TApplicationException(TApplicationException.MISSING_RESULT, "update_table_column_statistics failed: unknown result")
  4033. def update_partition_column_statistics(self, stats_obj):
  4034. """
  4035. Parameters:
  4036. - stats_obj
  4037. """
  4038. self.send_update_partition_column_statistics(stats_obj)
  4039. return self.recv_update_partition_column_statistics()
  4040. def send_update_partition_column_statistics(self, stats_obj):
  4041. self._oprot.writeMessageBegin('update_partition_column_statistics', TMessageType.CALL, self._seqid)
  4042. args = update_partition_column_statistics_args()
  4043. args.stats_obj = stats_obj
  4044. args.write(self._oprot)
  4045. self._oprot.writeMessageEnd()
  4046. self._oprot.trans.flush()
  4047. def recv_update_partition_column_statistics(self):
  4048. iprot = self._iprot
  4049. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4050. if mtype == TMessageType.EXCEPTION:
  4051. x = TApplicationException()
  4052. x.read(iprot)
  4053. iprot.readMessageEnd()
  4054. raise x
  4055. result = update_partition_column_statistics_result()
  4056. result.read(iprot)
  4057. iprot.readMessageEnd()
  4058. if result.success is not None:
  4059. return result.success
  4060. if result.o1 is not None:
  4061. raise result.o1
  4062. if result.o2 is not None:
  4063. raise result.o2
  4064. if result.o3 is not None:
  4065. raise result.o3
  4066. if result.o4 is not None:
  4067. raise result.o4
  4068. raise TApplicationException(TApplicationException.MISSING_RESULT, "update_partition_column_statistics failed: unknown result")
  4069. def get_table_column_statistics(self, db_name, tbl_name, col_name):
  4070. """
  4071. Parameters:
  4072. - db_name
  4073. - tbl_name
  4074. - col_name
  4075. """
  4076. self.send_get_table_column_statistics(db_name, tbl_name, col_name)
  4077. return self.recv_get_table_column_statistics()
  4078. def send_get_table_column_statistics(self, db_name, tbl_name, col_name):
  4079. self._oprot.writeMessageBegin('get_table_column_statistics', TMessageType.CALL, self._seqid)
  4080. args = get_table_column_statistics_args()
  4081. args.db_name = db_name
  4082. args.tbl_name = tbl_name
  4083. args.col_name = col_name
  4084. args.write(self._oprot)
  4085. self._oprot.writeMessageEnd()
  4086. self._oprot.trans.flush()
  4087. def recv_get_table_column_statistics(self):
  4088. iprot = self._iprot
  4089. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4090. if mtype == TMessageType.EXCEPTION:
  4091. x = TApplicationException()
  4092. x.read(iprot)
  4093. iprot.readMessageEnd()
  4094. raise x
  4095. result = get_table_column_statistics_result()
  4096. result.read(iprot)
  4097. iprot.readMessageEnd()
  4098. if result.success is not None:
  4099. return result.success
  4100. if result.o1 is not None:
  4101. raise result.o1
  4102. if result.o2 is not None:
  4103. raise result.o2
  4104. if result.o3 is not None:
  4105. raise result.o3
  4106. if result.o4 is not None:
  4107. raise result.o4
  4108. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_column_statistics failed: unknown result")
  4109. def get_partition_column_statistics(self, db_name, tbl_name, part_name, col_name):
  4110. """
  4111. Parameters:
  4112. - db_name
  4113. - tbl_name
  4114. - part_name
  4115. - col_name
  4116. """
  4117. self.send_get_partition_column_statistics(db_name, tbl_name, part_name, col_name)
  4118. return self.recv_get_partition_column_statistics()
  4119. def send_get_partition_column_statistics(self, db_name, tbl_name, part_name, col_name):
  4120. self._oprot.writeMessageBegin('get_partition_column_statistics', TMessageType.CALL, self._seqid)
  4121. args = get_partition_column_statistics_args()
  4122. args.db_name = db_name
  4123. args.tbl_name = tbl_name
  4124. args.part_name = part_name
  4125. args.col_name = col_name
  4126. args.write(self._oprot)
  4127. self._oprot.writeMessageEnd()
  4128. self._oprot.trans.flush()
  4129. def recv_get_partition_column_statistics(self):
  4130. iprot = self._iprot
  4131. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4132. if mtype == TMessageType.EXCEPTION:
  4133. x = TApplicationException()
  4134. x.read(iprot)
  4135. iprot.readMessageEnd()
  4136. raise x
  4137. result = get_partition_column_statistics_result()
  4138. result.read(iprot)
  4139. iprot.readMessageEnd()
  4140. if result.success is not None:
  4141. return result.success
  4142. if result.o1 is not None:
  4143. raise result.o1
  4144. if result.o2 is not None:
  4145. raise result.o2
  4146. if result.o3 is not None:
  4147. raise result.o3
  4148. if result.o4 is not None:
  4149. raise result.o4
  4150. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_column_statistics failed: unknown result")
  4151. def get_table_statistics_req(self, request):
  4152. """
  4153. Parameters:
  4154. - request
  4155. """
  4156. self.send_get_table_statistics_req(request)
  4157. return self.recv_get_table_statistics_req()
  4158. def send_get_table_statistics_req(self, request):
  4159. self._oprot.writeMessageBegin('get_table_statistics_req', TMessageType.CALL, self._seqid)
  4160. args = get_table_statistics_req_args()
  4161. args.request = request
  4162. args.write(self._oprot)
  4163. self._oprot.writeMessageEnd()
  4164. self._oprot.trans.flush()
  4165. def recv_get_table_statistics_req(self):
  4166. iprot = self._iprot
  4167. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4168. if mtype == TMessageType.EXCEPTION:
  4169. x = TApplicationException()
  4170. x.read(iprot)
  4171. iprot.readMessageEnd()
  4172. raise x
  4173. result = get_table_statistics_req_result()
  4174. result.read(iprot)
  4175. iprot.readMessageEnd()
  4176. if result.success is not None:
  4177. return result.success
  4178. if result.o1 is not None:
  4179. raise result.o1
  4180. if result.o2 is not None:
  4181. raise result.o2
  4182. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_statistics_req failed: unknown result")
  4183. def get_partitions_statistics_req(self, request):
  4184. """
  4185. Parameters:
  4186. - request
  4187. """
  4188. self.send_get_partitions_statistics_req(request)
  4189. return self.recv_get_partitions_statistics_req()
  4190. def send_get_partitions_statistics_req(self, request):
  4191. self._oprot.writeMessageBegin('get_partitions_statistics_req', TMessageType.CALL, self._seqid)
  4192. args = get_partitions_statistics_req_args()
  4193. args.request = request
  4194. args.write(self._oprot)
  4195. self._oprot.writeMessageEnd()
  4196. self._oprot.trans.flush()
  4197. def recv_get_partitions_statistics_req(self):
  4198. iprot = self._iprot
  4199. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4200. if mtype == TMessageType.EXCEPTION:
  4201. x = TApplicationException()
  4202. x.read(iprot)
  4203. iprot.readMessageEnd()
  4204. raise x
  4205. result = get_partitions_statistics_req_result()
  4206. result.read(iprot)
  4207. iprot.readMessageEnd()
  4208. if result.success is not None:
  4209. return result.success
  4210. if result.o1 is not None:
  4211. raise result.o1
  4212. if result.o2 is not None:
  4213. raise result.o2
  4214. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_statistics_req failed: unknown result")
  4215. def get_aggr_stats_for(self, request):
  4216. """
  4217. Parameters:
  4218. - request
  4219. """
  4220. self.send_get_aggr_stats_for(request)
  4221. return self.recv_get_aggr_stats_for()
  4222. def send_get_aggr_stats_for(self, request):
  4223. self._oprot.writeMessageBegin('get_aggr_stats_for', TMessageType.CALL, self._seqid)
  4224. args = get_aggr_stats_for_args()
  4225. args.request = request
  4226. args.write(self._oprot)
  4227. self._oprot.writeMessageEnd()
  4228. self._oprot.trans.flush()
  4229. def recv_get_aggr_stats_for(self):
  4230. iprot = self._iprot
  4231. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4232. if mtype == TMessageType.EXCEPTION:
  4233. x = TApplicationException()
  4234. x.read(iprot)
  4235. iprot.readMessageEnd()
  4236. raise x
  4237. result = get_aggr_stats_for_result()
  4238. result.read(iprot)
  4239. iprot.readMessageEnd()
  4240. if result.success is not None:
  4241. return result.success
  4242. if result.o1 is not None:
  4243. raise result.o1
  4244. if result.o2 is not None:
  4245. raise result.o2
  4246. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_aggr_stats_for failed: unknown result")
  4247. def set_aggr_stats_for(self, request):
  4248. """
  4249. Parameters:
  4250. - request
  4251. """
  4252. self.send_set_aggr_stats_for(request)
  4253. return self.recv_set_aggr_stats_for()
  4254. def send_set_aggr_stats_for(self, request):
  4255. self._oprot.writeMessageBegin('set_aggr_stats_for', TMessageType.CALL, self._seqid)
  4256. args = set_aggr_stats_for_args()
  4257. args.request = request
  4258. args.write(self._oprot)
  4259. self._oprot.writeMessageEnd()
  4260. self._oprot.trans.flush()
  4261. def recv_set_aggr_stats_for(self):
  4262. iprot = self._iprot
  4263. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4264. if mtype == TMessageType.EXCEPTION:
  4265. x = TApplicationException()
  4266. x.read(iprot)
  4267. iprot.readMessageEnd()
  4268. raise x
  4269. result = set_aggr_stats_for_result()
  4270. result.read(iprot)
  4271. iprot.readMessageEnd()
  4272. if result.success is not None:
  4273. return result.success
  4274. if result.o1 is not None:
  4275. raise result.o1
  4276. if result.o2 is not None:
  4277. raise result.o2
  4278. if result.o3 is not None:
  4279. raise result.o3
  4280. if result.o4 is not None:
  4281. raise result.o4
  4282. raise TApplicationException(TApplicationException.MISSING_RESULT, "set_aggr_stats_for failed: unknown result")
  4283. def delete_partition_column_statistics(self, db_name, tbl_name, part_name, col_name):
  4284. """
  4285. Parameters:
  4286. - db_name
  4287. - tbl_name
  4288. - part_name
  4289. - col_name
  4290. """
  4291. self.send_delete_partition_column_statistics(db_name, tbl_name, part_name, col_name)
  4292. return self.recv_delete_partition_column_statistics()
  4293. def send_delete_partition_column_statistics(self, db_name, tbl_name, part_name, col_name):
  4294. self._oprot.writeMessageBegin('delete_partition_column_statistics', TMessageType.CALL, self._seqid)
  4295. args = delete_partition_column_statistics_args()
  4296. args.db_name = db_name
  4297. args.tbl_name = tbl_name
  4298. args.part_name = part_name
  4299. args.col_name = col_name
  4300. args.write(self._oprot)
  4301. self._oprot.writeMessageEnd()
  4302. self._oprot.trans.flush()
  4303. def recv_delete_partition_column_statistics(self):
  4304. iprot = self._iprot
  4305. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4306. if mtype == TMessageType.EXCEPTION:
  4307. x = TApplicationException()
  4308. x.read(iprot)
  4309. iprot.readMessageEnd()
  4310. raise x
  4311. result = delete_partition_column_statistics_result()
  4312. result.read(iprot)
  4313. iprot.readMessageEnd()
  4314. if result.success is not None:
  4315. return result.success
  4316. if result.o1 is not None:
  4317. raise result.o1
  4318. if result.o2 is not None:
  4319. raise result.o2
  4320. if result.o3 is not None:
  4321. raise result.o3
  4322. if result.o4 is not None:
  4323. raise result.o4
  4324. raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_partition_column_statistics failed: unknown result")
  4325. def delete_table_column_statistics(self, db_name, tbl_name, col_name):
  4326. """
  4327. Parameters:
  4328. - db_name
  4329. - tbl_name
  4330. - col_name
  4331. """
  4332. self.send_delete_table_column_statistics(db_name, tbl_name, col_name)
  4333. return self.recv_delete_table_column_statistics()
  4334. def send_delete_table_column_statistics(self, db_name, tbl_name, col_name):
  4335. self._oprot.writeMessageBegin('delete_table_column_statistics', TMessageType.CALL, self._seqid)
  4336. args = delete_table_column_statistics_args()
  4337. args.db_name = db_name
  4338. args.tbl_name = tbl_name
  4339. args.col_name = col_name
  4340. args.write(self._oprot)
  4341. self._oprot.writeMessageEnd()
  4342. self._oprot.trans.flush()
  4343. def recv_delete_table_column_statistics(self):
  4344. iprot = self._iprot
  4345. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4346. if mtype == TMessageType.EXCEPTION:
  4347. x = TApplicationException()
  4348. x.read(iprot)
  4349. iprot.readMessageEnd()
  4350. raise x
  4351. result = delete_table_column_statistics_result()
  4352. result.read(iprot)
  4353. iprot.readMessageEnd()
  4354. if result.success is not None:
  4355. return result.success
  4356. if result.o1 is not None:
  4357. raise result.o1
  4358. if result.o2 is not None:
  4359. raise result.o2
  4360. if result.o3 is not None:
  4361. raise result.o3
  4362. if result.o4 is not None:
  4363. raise result.o4
  4364. raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_table_column_statistics failed: unknown result")
  4365. def create_function(self, func):
  4366. """
  4367. Parameters:
  4368. - func
  4369. """
  4370. self.send_create_function(func)
  4371. self.recv_create_function()
  4372. def send_create_function(self, func):
  4373. self._oprot.writeMessageBegin('create_function', TMessageType.CALL, self._seqid)
  4374. args = create_function_args()
  4375. args.func = func
  4376. args.write(self._oprot)
  4377. self._oprot.writeMessageEnd()
  4378. self._oprot.trans.flush()
  4379. def recv_create_function(self):
  4380. iprot = self._iprot
  4381. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4382. if mtype == TMessageType.EXCEPTION:
  4383. x = TApplicationException()
  4384. x.read(iprot)
  4385. iprot.readMessageEnd()
  4386. raise x
  4387. result = create_function_result()
  4388. result.read(iprot)
  4389. iprot.readMessageEnd()
  4390. if result.o1 is not None:
  4391. raise result.o1
  4392. if result.o2 is not None:
  4393. raise result.o2
  4394. if result.o3 is not None:
  4395. raise result.o3
  4396. if result.o4 is not None:
  4397. raise result.o4
  4398. return
  4399. def drop_function(self, dbName, funcName):
  4400. """
  4401. Parameters:
  4402. - dbName
  4403. - funcName
  4404. """
  4405. self.send_drop_function(dbName, funcName)
  4406. self.recv_drop_function()
  4407. def send_drop_function(self, dbName, funcName):
  4408. self._oprot.writeMessageBegin('drop_function', TMessageType.CALL, self._seqid)
  4409. args = drop_function_args()
  4410. args.dbName = dbName
  4411. args.funcName = funcName
  4412. args.write(self._oprot)
  4413. self._oprot.writeMessageEnd()
  4414. self._oprot.trans.flush()
  4415. def recv_drop_function(self):
  4416. iprot = self._iprot
  4417. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4418. if mtype == TMessageType.EXCEPTION:
  4419. x = TApplicationException()
  4420. x.read(iprot)
  4421. iprot.readMessageEnd()
  4422. raise x
  4423. result = drop_function_result()
  4424. result.read(iprot)
  4425. iprot.readMessageEnd()
  4426. if result.o1 is not None:
  4427. raise result.o1
  4428. if result.o3 is not None:
  4429. raise result.o3
  4430. return
  4431. def alter_function(self, dbName, funcName, newFunc):
  4432. """
  4433. Parameters:
  4434. - dbName
  4435. - funcName
  4436. - newFunc
  4437. """
  4438. self.send_alter_function(dbName, funcName, newFunc)
  4439. self.recv_alter_function()
  4440. def send_alter_function(self, dbName, funcName, newFunc):
  4441. self._oprot.writeMessageBegin('alter_function', TMessageType.CALL, self._seqid)
  4442. args = alter_function_args()
  4443. args.dbName = dbName
  4444. args.funcName = funcName
  4445. args.newFunc = newFunc
  4446. args.write(self._oprot)
  4447. self._oprot.writeMessageEnd()
  4448. self._oprot.trans.flush()
  4449. def recv_alter_function(self):
  4450. iprot = self._iprot
  4451. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4452. if mtype == TMessageType.EXCEPTION:
  4453. x = TApplicationException()
  4454. x.read(iprot)
  4455. iprot.readMessageEnd()
  4456. raise x
  4457. result = alter_function_result()
  4458. result.read(iprot)
  4459. iprot.readMessageEnd()
  4460. if result.o1 is not None:
  4461. raise result.o1
  4462. if result.o2 is not None:
  4463. raise result.o2
  4464. return
  4465. def get_functions(self, dbName, pattern):
  4466. """
  4467. Parameters:
  4468. - dbName
  4469. - pattern
  4470. """
  4471. self.send_get_functions(dbName, pattern)
  4472. return self.recv_get_functions()
  4473. def send_get_functions(self, dbName, pattern):
  4474. self._oprot.writeMessageBegin('get_functions', TMessageType.CALL, self._seqid)
  4475. args = get_functions_args()
  4476. args.dbName = dbName
  4477. args.pattern = pattern
  4478. args.write(self._oprot)
  4479. self._oprot.writeMessageEnd()
  4480. self._oprot.trans.flush()
  4481. def recv_get_functions(self):
  4482. iprot = self._iprot
  4483. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4484. if mtype == TMessageType.EXCEPTION:
  4485. x = TApplicationException()
  4486. x.read(iprot)
  4487. iprot.readMessageEnd()
  4488. raise x
  4489. result = get_functions_result()
  4490. result.read(iprot)
  4491. iprot.readMessageEnd()
  4492. if result.success is not None:
  4493. return result.success
  4494. if result.o1 is not None:
  4495. raise result.o1
  4496. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_functions failed: unknown result")
  4497. def get_function(self, dbName, funcName):
  4498. """
  4499. Parameters:
  4500. - dbName
  4501. - funcName
  4502. """
  4503. self.send_get_function(dbName, funcName)
  4504. return self.recv_get_function()
  4505. def send_get_function(self, dbName, funcName):
  4506. self._oprot.writeMessageBegin('get_function', TMessageType.CALL, self._seqid)
  4507. args = get_function_args()
  4508. args.dbName = dbName
  4509. args.funcName = funcName
  4510. args.write(self._oprot)
  4511. self._oprot.writeMessageEnd()
  4512. self._oprot.trans.flush()
  4513. def recv_get_function(self):
  4514. iprot = self._iprot
  4515. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4516. if mtype == TMessageType.EXCEPTION:
  4517. x = TApplicationException()
  4518. x.read(iprot)
  4519. iprot.readMessageEnd()
  4520. raise x
  4521. result = get_function_result()
  4522. result.read(iprot)
  4523. iprot.readMessageEnd()
  4524. if result.success is not None:
  4525. return result.success
  4526. if result.o1 is not None:
  4527. raise result.o1
  4528. if result.o2 is not None:
  4529. raise result.o2
  4530. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_function failed: unknown result")
  4531. def get_all_functions(self):
  4532. self.send_get_all_functions()
  4533. return self.recv_get_all_functions()
  4534. def send_get_all_functions(self):
  4535. self._oprot.writeMessageBegin('get_all_functions', TMessageType.CALL, self._seqid)
  4536. args = get_all_functions_args()
  4537. args.write(self._oprot)
  4538. self._oprot.writeMessageEnd()
  4539. self._oprot.trans.flush()
  4540. def recv_get_all_functions(self):
  4541. iprot = self._iprot
  4542. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4543. if mtype == TMessageType.EXCEPTION:
  4544. x = TApplicationException()
  4545. x.read(iprot)
  4546. iprot.readMessageEnd()
  4547. raise x
  4548. result = get_all_functions_result()
  4549. result.read(iprot)
  4550. iprot.readMessageEnd()
  4551. if result.success is not None:
  4552. return result.success
  4553. if result.o1 is not None:
  4554. raise result.o1
  4555. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_functions failed: unknown result")
  4556. def create_role(self, role):
  4557. """
  4558. Parameters:
  4559. - role
  4560. """
  4561. self.send_create_role(role)
  4562. return self.recv_create_role()
  4563. def send_create_role(self, role):
  4564. self._oprot.writeMessageBegin('create_role', TMessageType.CALL, self._seqid)
  4565. args = create_role_args()
  4566. args.role = role
  4567. args.write(self._oprot)
  4568. self._oprot.writeMessageEnd()
  4569. self._oprot.trans.flush()
  4570. def recv_create_role(self):
  4571. iprot = self._iprot
  4572. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4573. if mtype == TMessageType.EXCEPTION:
  4574. x = TApplicationException()
  4575. x.read(iprot)
  4576. iprot.readMessageEnd()
  4577. raise x
  4578. result = create_role_result()
  4579. result.read(iprot)
  4580. iprot.readMessageEnd()
  4581. if result.success is not None:
  4582. return result.success
  4583. if result.o1 is not None:
  4584. raise result.o1
  4585. raise TApplicationException(TApplicationException.MISSING_RESULT, "create_role failed: unknown result")
  4586. def drop_role(self, role_name):
  4587. """
  4588. Parameters:
  4589. - role_name
  4590. """
  4591. self.send_drop_role(role_name)
  4592. return self.recv_drop_role()
  4593. def send_drop_role(self, role_name):
  4594. self._oprot.writeMessageBegin('drop_role', TMessageType.CALL, self._seqid)
  4595. args = drop_role_args()
  4596. args.role_name = role_name
  4597. args.write(self._oprot)
  4598. self._oprot.writeMessageEnd()
  4599. self._oprot.trans.flush()
  4600. def recv_drop_role(self):
  4601. iprot = self._iprot
  4602. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4603. if mtype == TMessageType.EXCEPTION:
  4604. x = TApplicationException()
  4605. x.read(iprot)
  4606. iprot.readMessageEnd()
  4607. raise x
  4608. result = drop_role_result()
  4609. result.read(iprot)
  4610. iprot.readMessageEnd()
  4611. if result.success is not None:
  4612. return result.success
  4613. if result.o1 is not None:
  4614. raise result.o1
  4615. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_role failed: unknown result")
  4616. def get_role_names(self):
  4617. self.send_get_role_names()
  4618. return self.recv_get_role_names()
  4619. def send_get_role_names(self):
  4620. self._oprot.writeMessageBegin('get_role_names', TMessageType.CALL, self._seqid)
  4621. args = get_role_names_args()
  4622. args.write(self._oprot)
  4623. self._oprot.writeMessageEnd()
  4624. self._oprot.trans.flush()
  4625. def recv_get_role_names(self):
  4626. iprot = self._iprot
  4627. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4628. if mtype == TMessageType.EXCEPTION:
  4629. x = TApplicationException()
  4630. x.read(iprot)
  4631. iprot.readMessageEnd()
  4632. raise x
  4633. result = get_role_names_result()
  4634. result.read(iprot)
  4635. iprot.readMessageEnd()
  4636. if result.success is not None:
  4637. return result.success
  4638. if result.o1 is not None:
  4639. raise result.o1
  4640. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_role_names failed: unknown result")
  4641. def grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
  4642. """
  4643. Parameters:
  4644. - role_name
  4645. - principal_name
  4646. - principal_type
  4647. - grantor
  4648. - grantorType
  4649. - grant_option
  4650. """
  4651. self.send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
  4652. return self.recv_grant_role()
  4653. def send_grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
  4654. self._oprot.writeMessageBegin('grant_role', TMessageType.CALL, self._seqid)
  4655. args = grant_role_args()
  4656. args.role_name = role_name
  4657. args.principal_name = principal_name
  4658. args.principal_type = principal_type
  4659. args.grantor = grantor
  4660. args.grantorType = grantorType
  4661. args.grant_option = grant_option
  4662. args.write(self._oprot)
  4663. self._oprot.writeMessageEnd()
  4664. self._oprot.trans.flush()
  4665. def recv_grant_role(self):
  4666. iprot = self._iprot
  4667. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4668. if mtype == TMessageType.EXCEPTION:
  4669. x = TApplicationException()
  4670. x.read(iprot)
  4671. iprot.readMessageEnd()
  4672. raise x
  4673. result = grant_role_result()
  4674. result.read(iprot)
  4675. iprot.readMessageEnd()
  4676. if result.success is not None:
  4677. return result.success
  4678. if result.o1 is not None:
  4679. raise result.o1
  4680. raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_role failed: unknown result")
  4681. def revoke_role(self, role_name, principal_name, principal_type):
  4682. """
  4683. Parameters:
  4684. - role_name
  4685. - principal_name
  4686. - principal_type
  4687. """
  4688. self.send_revoke_role(role_name, principal_name, principal_type)
  4689. return self.recv_revoke_role()
  4690. def send_revoke_role(self, role_name, principal_name, principal_type):
  4691. self._oprot.writeMessageBegin('revoke_role', TMessageType.CALL, self._seqid)
  4692. args = revoke_role_args()
  4693. args.role_name = role_name
  4694. args.principal_name = principal_name
  4695. args.principal_type = principal_type
  4696. args.write(self._oprot)
  4697. self._oprot.writeMessageEnd()
  4698. self._oprot.trans.flush()
  4699. def recv_revoke_role(self):
  4700. iprot = self._iprot
  4701. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4702. if mtype == TMessageType.EXCEPTION:
  4703. x = TApplicationException()
  4704. x.read(iprot)
  4705. iprot.readMessageEnd()
  4706. raise x
  4707. result = revoke_role_result()
  4708. result.read(iprot)
  4709. iprot.readMessageEnd()
  4710. if result.success is not None:
  4711. return result.success
  4712. if result.o1 is not None:
  4713. raise result.o1
  4714. raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_role failed: unknown result")
  4715. def list_roles(self, principal_name, principal_type):
  4716. """
  4717. Parameters:
  4718. - principal_name
  4719. - principal_type
  4720. """
  4721. self.send_list_roles(principal_name, principal_type)
  4722. return self.recv_list_roles()
  4723. def send_list_roles(self, principal_name, principal_type):
  4724. self._oprot.writeMessageBegin('list_roles', TMessageType.CALL, self._seqid)
  4725. args = list_roles_args()
  4726. args.principal_name = principal_name
  4727. args.principal_type = principal_type
  4728. args.write(self._oprot)
  4729. self._oprot.writeMessageEnd()
  4730. self._oprot.trans.flush()
  4731. def recv_list_roles(self):
  4732. iprot = self._iprot
  4733. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4734. if mtype == TMessageType.EXCEPTION:
  4735. x = TApplicationException()
  4736. x.read(iprot)
  4737. iprot.readMessageEnd()
  4738. raise x
  4739. result = list_roles_result()
  4740. result.read(iprot)
  4741. iprot.readMessageEnd()
  4742. if result.success is not None:
  4743. return result.success
  4744. if result.o1 is not None:
  4745. raise result.o1
  4746. raise TApplicationException(TApplicationException.MISSING_RESULT, "list_roles failed: unknown result")
  4747. def grant_revoke_role(self, request):
  4748. """
  4749. Parameters:
  4750. - request
  4751. """
  4752. self.send_grant_revoke_role(request)
  4753. return self.recv_grant_revoke_role()
  4754. def send_grant_revoke_role(self, request):
  4755. self._oprot.writeMessageBegin('grant_revoke_role', TMessageType.CALL, self._seqid)
  4756. args = grant_revoke_role_args()
  4757. args.request = request
  4758. args.write(self._oprot)
  4759. self._oprot.writeMessageEnd()
  4760. self._oprot.trans.flush()
  4761. def recv_grant_revoke_role(self):
  4762. iprot = self._iprot
  4763. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4764. if mtype == TMessageType.EXCEPTION:
  4765. x = TApplicationException()
  4766. x.read(iprot)
  4767. iprot.readMessageEnd()
  4768. raise x
  4769. result = grant_revoke_role_result()
  4770. result.read(iprot)
  4771. iprot.readMessageEnd()
  4772. if result.success is not None:
  4773. return result.success
  4774. if result.o1 is not None:
  4775. raise result.o1
  4776. raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_revoke_role failed: unknown result")
  4777. def get_principals_in_role(self, request):
  4778. """
  4779. Parameters:
  4780. - request
  4781. """
  4782. self.send_get_principals_in_role(request)
  4783. return self.recv_get_principals_in_role()
  4784. def send_get_principals_in_role(self, request):
  4785. self._oprot.writeMessageBegin('get_principals_in_role', TMessageType.CALL, self._seqid)
  4786. args = get_principals_in_role_args()
  4787. args.request = request
  4788. args.write(self._oprot)
  4789. self._oprot.writeMessageEnd()
  4790. self._oprot.trans.flush()
  4791. def recv_get_principals_in_role(self):
  4792. iprot = self._iprot
  4793. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4794. if mtype == TMessageType.EXCEPTION:
  4795. x = TApplicationException()
  4796. x.read(iprot)
  4797. iprot.readMessageEnd()
  4798. raise x
  4799. result = get_principals_in_role_result()
  4800. result.read(iprot)
  4801. iprot.readMessageEnd()
  4802. if result.success is not None:
  4803. return result.success
  4804. if result.o1 is not None:
  4805. raise result.o1
  4806. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_principals_in_role failed: unknown result")
  4807. def get_role_grants_for_principal(self, request):
  4808. """
  4809. Parameters:
  4810. - request
  4811. """
  4812. self.send_get_role_grants_for_principal(request)
  4813. return self.recv_get_role_grants_for_principal()
  4814. def send_get_role_grants_for_principal(self, request):
  4815. self._oprot.writeMessageBegin('get_role_grants_for_principal', TMessageType.CALL, self._seqid)
  4816. args = get_role_grants_for_principal_args()
  4817. args.request = request
  4818. args.write(self._oprot)
  4819. self._oprot.writeMessageEnd()
  4820. self._oprot.trans.flush()
  4821. def recv_get_role_grants_for_principal(self):
  4822. iprot = self._iprot
  4823. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4824. if mtype == TMessageType.EXCEPTION:
  4825. x = TApplicationException()
  4826. x.read(iprot)
  4827. iprot.readMessageEnd()
  4828. raise x
  4829. result = get_role_grants_for_principal_result()
  4830. result.read(iprot)
  4831. iprot.readMessageEnd()
  4832. if result.success is not None:
  4833. return result.success
  4834. if result.o1 is not None:
  4835. raise result.o1
  4836. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_role_grants_for_principal failed: unknown result")
  4837. def get_privilege_set(self, hiveObject, user_name, group_names):
  4838. """
  4839. Parameters:
  4840. - hiveObject
  4841. - user_name
  4842. - group_names
  4843. """
  4844. self.send_get_privilege_set(hiveObject, user_name, group_names)
  4845. return self.recv_get_privilege_set()
  4846. def send_get_privilege_set(self, hiveObject, user_name, group_names):
  4847. self._oprot.writeMessageBegin('get_privilege_set', TMessageType.CALL, self._seqid)
  4848. args = get_privilege_set_args()
  4849. args.hiveObject = hiveObject
  4850. args.user_name = user_name
  4851. args.group_names = group_names
  4852. args.write(self._oprot)
  4853. self._oprot.writeMessageEnd()
  4854. self._oprot.trans.flush()
  4855. def recv_get_privilege_set(self):
  4856. iprot = self._iprot
  4857. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4858. if mtype == TMessageType.EXCEPTION:
  4859. x = TApplicationException()
  4860. x.read(iprot)
  4861. iprot.readMessageEnd()
  4862. raise x
  4863. result = get_privilege_set_result()
  4864. result.read(iprot)
  4865. iprot.readMessageEnd()
  4866. if result.success is not None:
  4867. return result.success
  4868. if result.o1 is not None:
  4869. raise result.o1
  4870. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_privilege_set failed: unknown result")
  4871. def list_privileges(self, principal_name, principal_type, hiveObject):
  4872. """
  4873. Parameters:
  4874. - principal_name
  4875. - principal_type
  4876. - hiveObject
  4877. """
  4878. self.send_list_privileges(principal_name, principal_type, hiveObject)
  4879. return self.recv_list_privileges()
  4880. def send_list_privileges(self, principal_name, principal_type, hiveObject):
  4881. self._oprot.writeMessageBegin('list_privileges', TMessageType.CALL, self._seqid)
  4882. args = list_privileges_args()
  4883. args.principal_name = principal_name
  4884. args.principal_type = principal_type
  4885. args.hiveObject = hiveObject
  4886. args.write(self._oprot)
  4887. self._oprot.writeMessageEnd()
  4888. self._oprot.trans.flush()
  4889. def recv_list_privileges(self):
  4890. iprot = self._iprot
  4891. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4892. if mtype == TMessageType.EXCEPTION:
  4893. x = TApplicationException()
  4894. x.read(iprot)
  4895. iprot.readMessageEnd()
  4896. raise x
  4897. result = list_privileges_result()
  4898. result.read(iprot)
  4899. iprot.readMessageEnd()
  4900. if result.success is not None:
  4901. return result.success
  4902. if result.o1 is not None:
  4903. raise result.o1
  4904. raise TApplicationException(TApplicationException.MISSING_RESULT, "list_privileges failed: unknown result")
  4905. def grant_privileges(self, privileges):
  4906. """
  4907. Parameters:
  4908. - privileges
  4909. """
  4910. self.send_grant_privileges(privileges)
  4911. return self.recv_grant_privileges()
  4912. def send_grant_privileges(self, privileges):
  4913. self._oprot.writeMessageBegin('grant_privileges', TMessageType.CALL, self._seqid)
  4914. args = grant_privileges_args()
  4915. args.privileges = privileges
  4916. args.write(self._oprot)
  4917. self._oprot.writeMessageEnd()
  4918. self._oprot.trans.flush()
  4919. def recv_grant_privileges(self):
  4920. iprot = self._iprot
  4921. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4922. if mtype == TMessageType.EXCEPTION:
  4923. x = TApplicationException()
  4924. x.read(iprot)
  4925. iprot.readMessageEnd()
  4926. raise x
  4927. result = grant_privileges_result()
  4928. result.read(iprot)
  4929. iprot.readMessageEnd()
  4930. if result.success is not None:
  4931. return result.success
  4932. if result.o1 is not None:
  4933. raise result.o1
  4934. raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_privileges failed: unknown result")
  4935. def revoke_privileges(self, privileges):
  4936. """
  4937. Parameters:
  4938. - privileges
  4939. """
  4940. self.send_revoke_privileges(privileges)
  4941. return self.recv_revoke_privileges()
  4942. def send_revoke_privileges(self, privileges):
  4943. self._oprot.writeMessageBegin('revoke_privileges', TMessageType.CALL, self._seqid)
  4944. args = revoke_privileges_args()
  4945. args.privileges = privileges
  4946. args.write(self._oprot)
  4947. self._oprot.writeMessageEnd()
  4948. self._oprot.trans.flush()
  4949. def recv_revoke_privileges(self):
  4950. iprot = self._iprot
  4951. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4952. if mtype == TMessageType.EXCEPTION:
  4953. x = TApplicationException()
  4954. x.read(iprot)
  4955. iprot.readMessageEnd()
  4956. raise x
  4957. result = revoke_privileges_result()
  4958. result.read(iprot)
  4959. iprot.readMessageEnd()
  4960. if result.success is not None:
  4961. return result.success
  4962. if result.o1 is not None:
  4963. raise result.o1
  4964. raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_privileges failed: unknown result")
  4965. def grant_revoke_privileges(self, request):
  4966. """
  4967. Parameters:
  4968. - request
  4969. """
  4970. self.send_grant_revoke_privileges(request)
  4971. return self.recv_grant_revoke_privileges()
  4972. def send_grant_revoke_privileges(self, request):
  4973. self._oprot.writeMessageBegin('grant_revoke_privileges', TMessageType.CALL, self._seqid)
  4974. args = grant_revoke_privileges_args()
  4975. args.request = request
  4976. args.write(self._oprot)
  4977. self._oprot.writeMessageEnd()
  4978. self._oprot.trans.flush()
  4979. def recv_grant_revoke_privileges(self):
  4980. iprot = self._iprot
  4981. (fname, mtype, rseqid) = iprot.readMessageBegin()
  4982. if mtype == TMessageType.EXCEPTION:
  4983. x = TApplicationException()
  4984. x.read(iprot)
  4985. iprot.readMessageEnd()
  4986. raise x
  4987. result = grant_revoke_privileges_result()
  4988. result.read(iprot)
  4989. iprot.readMessageEnd()
  4990. if result.success is not None:
  4991. return result.success
  4992. if result.o1 is not None:
  4993. raise result.o1
  4994. raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_revoke_privileges failed: unknown result")
  4995. def set_ugi(self, user_name, group_names):
  4996. """
  4997. Parameters:
  4998. - user_name
  4999. - group_names
  5000. """
  5001. self.send_set_ugi(user_name, group_names)
  5002. return self.recv_set_ugi()
  5003. def send_set_ugi(self, user_name, group_names):
  5004. self._oprot.writeMessageBegin('set_ugi', TMessageType.CALL, self._seqid)
  5005. args = set_ugi_args()
  5006. args.user_name = user_name
  5007. args.group_names = group_names
  5008. args.write(self._oprot)
  5009. self._oprot.writeMessageEnd()
  5010. self._oprot.trans.flush()
  5011. def recv_set_ugi(self):
  5012. iprot = self._iprot
  5013. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5014. if mtype == TMessageType.EXCEPTION:
  5015. x = TApplicationException()
  5016. x.read(iprot)
  5017. iprot.readMessageEnd()
  5018. raise x
  5019. result = set_ugi_result()
  5020. result.read(iprot)
  5021. iprot.readMessageEnd()
  5022. if result.success is not None:
  5023. return result.success
  5024. if result.o1 is not None:
  5025. raise result.o1
  5026. raise TApplicationException(TApplicationException.MISSING_RESULT, "set_ugi failed: unknown result")
  5027. def get_delegation_token(self, token_owner, renewer_kerberos_principal_name):
  5028. """
  5029. Parameters:
  5030. - token_owner
  5031. - renewer_kerberos_principal_name
  5032. """
  5033. self.send_get_delegation_token(token_owner, renewer_kerberos_principal_name)
  5034. return self.recv_get_delegation_token()
  5035. def send_get_delegation_token(self, token_owner, renewer_kerberos_principal_name):
  5036. self._oprot.writeMessageBegin('get_delegation_token', TMessageType.CALL, self._seqid)
  5037. args = get_delegation_token_args()
  5038. args.token_owner = token_owner
  5039. args.renewer_kerberos_principal_name = renewer_kerberos_principal_name
  5040. args.write(self._oprot)
  5041. self._oprot.writeMessageEnd()
  5042. self._oprot.trans.flush()
  5043. def recv_get_delegation_token(self):
  5044. iprot = self._iprot
  5045. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5046. if mtype == TMessageType.EXCEPTION:
  5047. x = TApplicationException()
  5048. x.read(iprot)
  5049. iprot.readMessageEnd()
  5050. raise x
  5051. result = get_delegation_token_result()
  5052. result.read(iprot)
  5053. iprot.readMessageEnd()
  5054. if result.success is not None:
  5055. return result.success
  5056. if result.o1 is not None:
  5057. raise result.o1
  5058. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_delegation_token failed: unknown result")
  5059. def renew_delegation_token(self, token_str_form):
  5060. """
  5061. Parameters:
  5062. - token_str_form
  5063. """
  5064. self.send_renew_delegation_token(token_str_form)
  5065. return self.recv_renew_delegation_token()
  5066. def send_renew_delegation_token(self, token_str_form):
  5067. self._oprot.writeMessageBegin('renew_delegation_token', TMessageType.CALL, self._seqid)
  5068. args = renew_delegation_token_args()
  5069. args.token_str_form = token_str_form
  5070. args.write(self._oprot)
  5071. self._oprot.writeMessageEnd()
  5072. self._oprot.trans.flush()
  5073. def recv_renew_delegation_token(self):
  5074. iprot = self._iprot
  5075. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5076. if mtype == TMessageType.EXCEPTION:
  5077. x = TApplicationException()
  5078. x.read(iprot)
  5079. iprot.readMessageEnd()
  5080. raise x
  5081. result = renew_delegation_token_result()
  5082. result.read(iprot)
  5083. iprot.readMessageEnd()
  5084. if result.success is not None:
  5085. return result.success
  5086. if result.o1 is not None:
  5087. raise result.o1
  5088. raise TApplicationException(TApplicationException.MISSING_RESULT, "renew_delegation_token failed: unknown result")
  5089. def cancel_delegation_token(self, token_str_form):
  5090. """
  5091. Parameters:
  5092. - token_str_form
  5093. """
  5094. self.send_cancel_delegation_token(token_str_form)
  5095. self.recv_cancel_delegation_token()
  5096. def send_cancel_delegation_token(self, token_str_form):
  5097. self._oprot.writeMessageBegin('cancel_delegation_token', TMessageType.CALL, self._seqid)
  5098. args = cancel_delegation_token_args()
  5099. args.token_str_form = token_str_form
  5100. args.write(self._oprot)
  5101. self._oprot.writeMessageEnd()
  5102. self._oprot.trans.flush()
  5103. def recv_cancel_delegation_token(self):
  5104. iprot = self._iprot
  5105. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5106. if mtype == TMessageType.EXCEPTION:
  5107. x = TApplicationException()
  5108. x.read(iprot)
  5109. iprot.readMessageEnd()
  5110. raise x
  5111. result = cancel_delegation_token_result()
  5112. result.read(iprot)
  5113. iprot.readMessageEnd()
  5114. if result.o1 is not None:
  5115. raise result.o1
  5116. return
  5117. def add_token(self, token_identifier, delegation_token):
  5118. """
  5119. Parameters:
  5120. - token_identifier
  5121. - delegation_token
  5122. """
  5123. self.send_add_token(token_identifier, delegation_token)
  5124. return self.recv_add_token()
  5125. def send_add_token(self, token_identifier, delegation_token):
  5126. self._oprot.writeMessageBegin('add_token', TMessageType.CALL, self._seqid)
  5127. args = add_token_args()
  5128. args.token_identifier = token_identifier
  5129. args.delegation_token = delegation_token
  5130. args.write(self._oprot)
  5131. self._oprot.writeMessageEnd()
  5132. self._oprot.trans.flush()
  5133. def recv_add_token(self):
  5134. iprot = self._iprot
  5135. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5136. if mtype == TMessageType.EXCEPTION:
  5137. x = TApplicationException()
  5138. x.read(iprot)
  5139. iprot.readMessageEnd()
  5140. raise x
  5141. result = add_token_result()
  5142. result.read(iprot)
  5143. iprot.readMessageEnd()
  5144. if result.success is not None:
  5145. return result.success
  5146. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_token failed: unknown result")
  5147. def remove_token(self, token_identifier):
  5148. """
  5149. Parameters:
  5150. - token_identifier
  5151. """
  5152. self.send_remove_token(token_identifier)
  5153. return self.recv_remove_token()
  5154. def send_remove_token(self, token_identifier):
  5155. self._oprot.writeMessageBegin('remove_token', TMessageType.CALL, self._seqid)
  5156. args = remove_token_args()
  5157. args.token_identifier = token_identifier
  5158. args.write(self._oprot)
  5159. self._oprot.writeMessageEnd()
  5160. self._oprot.trans.flush()
  5161. def recv_remove_token(self):
  5162. iprot = self._iprot
  5163. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5164. if mtype == TMessageType.EXCEPTION:
  5165. x = TApplicationException()
  5166. x.read(iprot)
  5167. iprot.readMessageEnd()
  5168. raise x
  5169. result = remove_token_result()
  5170. result.read(iprot)
  5171. iprot.readMessageEnd()
  5172. if result.success is not None:
  5173. return result.success
  5174. raise TApplicationException(TApplicationException.MISSING_RESULT, "remove_token failed: unknown result")
  5175. def get_token(self, token_identifier):
  5176. """
  5177. Parameters:
  5178. - token_identifier
  5179. """
  5180. self.send_get_token(token_identifier)
  5181. return self.recv_get_token()
  5182. def send_get_token(self, token_identifier):
  5183. self._oprot.writeMessageBegin('get_token', TMessageType.CALL, self._seqid)
  5184. args = get_token_args()
  5185. args.token_identifier = token_identifier
  5186. args.write(self._oprot)
  5187. self._oprot.writeMessageEnd()
  5188. self._oprot.trans.flush()
  5189. def recv_get_token(self):
  5190. iprot = self._iprot
  5191. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5192. if mtype == TMessageType.EXCEPTION:
  5193. x = TApplicationException()
  5194. x.read(iprot)
  5195. iprot.readMessageEnd()
  5196. raise x
  5197. result = get_token_result()
  5198. result.read(iprot)
  5199. iprot.readMessageEnd()
  5200. if result.success is not None:
  5201. return result.success
  5202. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_token failed: unknown result")
  5203. def get_all_token_identifiers(self):
  5204. self.send_get_all_token_identifiers()
  5205. return self.recv_get_all_token_identifiers()
  5206. def send_get_all_token_identifiers(self):
  5207. self._oprot.writeMessageBegin('get_all_token_identifiers', TMessageType.CALL, self._seqid)
  5208. args = get_all_token_identifiers_args()
  5209. args.write(self._oprot)
  5210. self._oprot.writeMessageEnd()
  5211. self._oprot.trans.flush()
  5212. def recv_get_all_token_identifiers(self):
  5213. iprot = self._iprot
  5214. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5215. if mtype == TMessageType.EXCEPTION:
  5216. x = TApplicationException()
  5217. x.read(iprot)
  5218. iprot.readMessageEnd()
  5219. raise x
  5220. result = get_all_token_identifiers_result()
  5221. result.read(iprot)
  5222. iprot.readMessageEnd()
  5223. if result.success is not None:
  5224. return result.success
  5225. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_token_identifiers failed: unknown result")
  5226. def add_master_key(self, key):
  5227. """
  5228. Parameters:
  5229. - key
  5230. """
  5231. self.send_add_master_key(key)
  5232. return self.recv_add_master_key()
  5233. def send_add_master_key(self, key):
  5234. self._oprot.writeMessageBegin('add_master_key', TMessageType.CALL, self._seqid)
  5235. args = add_master_key_args()
  5236. args.key = key
  5237. args.write(self._oprot)
  5238. self._oprot.writeMessageEnd()
  5239. self._oprot.trans.flush()
  5240. def recv_add_master_key(self):
  5241. iprot = self._iprot
  5242. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5243. if mtype == TMessageType.EXCEPTION:
  5244. x = TApplicationException()
  5245. x.read(iprot)
  5246. iprot.readMessageEnd()
  5247. raise x
  5248. result = add_master_key_result()
  5249. result.read(iprot)
  5250. iprot.readMessageEnd()
  5251. if result.success is not None:
  5252. return result.success
  5253. if result.o1 is not None:
  5254. raise result.o1
  5255. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_master_key failed: unknown result")
  5256. def update_master_key(self, seq_number, key):
  5257. """
  5258. Parameters:
  5259. - seq_number
  5260. - key
  5261. """
  5262. self.send_update_master_key(seq_number, key)
  5263. self.recv_update_master_key()
  5264. def send_update_master_key(self, seq_number, key):
  5265. self._oprot.writeMessageBegin('update_master_key', TMessageType.CALL, self._seqid)
  5266. args = update_master_key_args()
  5267. args.seq_number = seq_number
  5268. args.key = key
  5269. args.write(self._oprot)
  5270. self._oprot.writeMessageEnd()
  5271. self._oprot.trans.flush()
  5272. def recv_update_master_key(self):
  5273. iprot = self._iprot
  5274. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5275. if mtype == TMessageType.EXCEPTION:
  5276. x = TApplicationException()
  5277. x.read(iprot)
  5278. iprot.readMessageEnd()
  5279. raise x
  5280. result = update_master_key_result()
  5281. result.read(iprot)
  5282. iprot.readMessageEnd()
  5283. if result.o1 is not None:
  5284. raise result.o1
  5285. if result.o2 is not None:
  5286. raise result.o2
  5287. return
  5288. def remove_master_key(self, key_seq):
  5289. """
  5290. Parameters:
  5291. - key_seq
  5292. """
  5293. self.send_remove_master_key(key_seq)
  5294. return self.recv_remove_master_key()
  5295. def send_remove_master_key(self, key_seq):
  5296. self._oprot.writeMessageBegin('remove_master_key', TMessageType.CALL, self._seqid)
  5297. args = remove_master_key_args()
  5298. args.key_seq = key_seq
  5299. args.write(self._oprot)
  5300. self._oprot.writeMessageEnd()
  5301. self._oprot.trans.flush()
  5302. def recv_remove_master_key(self):
  5303. iprot = self._iprot
  5304. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5305. if mtype == TMessageType.EXCEPTION:
  5306. x = TApplicationException()
  5307. x.read(iprot)
  5308. iprot.readMessageEnd()
  5309. raise x
  5310. result = remove_master_key_result()
  5311. result.read(iprot)
  5312. iprot.readMessageEnd()
  5313. if result.success is not None:
  5314. return result.success
  5315. raise TApplicationException(TApplicationException.MISSING_RESULT, "remove_master_key failed: unknown result")
  5316. def get_master_keys(self):
  5317. self.send_get_master_keys()
  5318. return self.recv_get_master_keys()
  5319. def send_get_master_keys(self):
  5320. self._oprot.writeMessageBegin('get_master_keys', TMessageType.CALL, self._seqid)
  5321. args = get_master_keys_args()
  5322. args.write(self._oprot)
  5323. self._oprot.writeMessageEnd()
  5324. self._oprot.trans.flush()
  5325. def recv_get_master_keys(self):
  5326. iprot = self._iprot
  5327. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5328. if mtype == TMessageType.EXCEPTION:
  5329. x = TApplicationException()
  5330. x.read(iprot)
  5331. iprot.readMessageEnd()
  5332. raise x
  5333. result = get_master_keys_result()
  5334. result.read(iprot)
  5335. iprot.readMessageEnd()
  5336. if result.success is not None:
  5337. return result.success
  5338. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_master_keys failed: unknown result")
  5339. def get_open_txns(self):
  5340. self.send_get_open_txns()
  5341. return self.recv_get_open_txns()
  5342. def send_get_open_txns(self):
  5343. self._oprot.writeMessageBegin('get_open_txns', TMessageType.CALL, self._seqid)
  5344. args = get_open_txns_args()
  5345. args.write(self._oprot)
  5346. self._oprot.writeMessageEnd()
  5347. self._oprot.trans.flush()
  5348. def recv_get_open_txns(self):
  5349. iprot = self._iprot
  5350. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5351. if mtype == TMessageType.EXCEPTION:
  5352. x = TApplicationException()
  5353. x.read(iprot)
  5354. iprot.readMessageEnd()
  5355. raise x
  5356. result = get_open_txns_result()
  5357. result.read(iprot)
  5358. iprot.readMessageEnd()
  5359. if result.success is not None:
  5360. return result.success
  5361. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_open_txns failed: unknown result")
  5362. def get_open_txns_info(self):
  5363. self.send_get_open_txns_info()
  5364. return self.recv_get_open_txns_info()
  5365. def send_get_open_txns_info(self):
  5366. self._oprot.writeMessageBegin('get_open_txns_info', TMessageType.CALL, self._seqid)
  5367. args = get_open_txns_info_args()
  5368. args.write(self._oprot)
  5369. self._oprot.writeMessageEnd()
  5370. self._oprot.trans.flush()
  5371. def recv_get_open_txns_info(self):
  5372. iprot = self._iprot
  5373. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5374. if mtype == TMessageType.EXCEPTION:
  5375. x = TApplicationException()
  5376. x.read(iprot)
  5377. iprot.readMessageEnd()
  5378. raise x
  5379. result = get_open_txns_info_result()
  5380. result.read(iprot)
  5381. iprot.readMessageEnd()
  5382. if result.success is not None:
  5383. return result.success
  5384. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_open_txns_info failed: unknown result")
  5385. def open_txns(self, rqst):
  5386. """
  5387. Parameters:
  5388. - rqst
  5389. """
  5390. self.send_open_txns(rqst)
  5391. return self.recv_open_txns()
  5392. def send_open_txns(self, rqst):
  5393. self._oprot.writeMessageBegin('open_txns', TMessageType.CALL, self._seqid)
  5394. args = open_txns_args()
  5395. args.rqst = rqst
  5396. args.write(self._oprot)
  5397. self._oprot.writeMessageEnd()
  5398. self._oprot.trans.flush()
  5399. def recv_open_txns(self):
  5400. iprot = self._iprot
  5401. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5402. if mtype == TMessageType.EXCEPTION:
  5403. x = TApplicationException()
  5404. x.read(iprot)
  5405. iprot.readMessageEnd()
  5406. raise x
  5407. result = open_txns_result()
  5408. result.read(iprot)
  5409. iprot.readMessageEnd()
  5410. if result.success is not None:
  5411. return result.success
  5412. raise TApplicationException(TApplicationException.MISSING_RESULT, "open_txns failed: unknown result")
  5413. def abort_txn(self, rqst):
  5414. """
  5415. Parameters:
  5416. - rqst
  5417. """
  5418. self.send_abort_txn(rqst)
  5419. self.recv_abort_txn()
  5420. def send_abort_txn(self, rqst):
  5421. self._oprot.writeMessageBegin('abort_txn', TMessageType.CALL, self._seqid)
  5422. args = abort_txn_args()
  5423. args.rqst = rqst
  5424. args.write(self._oprot)
  5425. self._oprot.writeMessageEnd()
  5426. self._oprot.trans.flush()
  5427. def recv_abort_txn(self):
  5428. iprot = self._iprot
  5429. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5430. if mtype == TMessageType.EXCEPTION:
  5431. x = TApplicationException()
  5432. x.read(iprot)
  5433. iprot.readMessageEnd()
  5434. raise x
  5435. result = abort_txn_result()
  5436. result.read(iprot)
  5437. iprot.readMessageEnd()
  5438. if result.o1 is not None:
  5439. raise result.o1
  5440. return
  5441. def abort_txns(self, rqst):
  5442. """
  5443. Parameters:
  5444. - rqst
  5445. """
  5446. self.send_abort_txns(rqst)
  5447. self.recv_abort_txns()
  5448. def send_abort_txns(self, rqst):
  5449. self._oprot.writeMessageBegin('abort_txns', TMessageType.CALL, self._seqid)
  5450. args = abort_txns_args()
  5451. args.rqst = rqst
  5452. args.write(self._oprot)
  5453. self._oprot.writeMessageEnd()
  5454. self._oprot.trans.flush()
  5455. def recv_abort_txns(self):
  5456. iprot = self._iprot
  5457. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5458. if mtype == TMessageType.EXCEPTION:
  5459. x = TApplicationException()
  5460. x.read(iprot)
  5461. iprot.readMessageEnd()
  5462. raise x
  5463. result = abort_txns_result()
  5464. result.read(iprot)
  5465. iprot.readMessageEnd()
  5466. if result.o1 is not None:
  5467. raise result.o1
  5468. return
  5469. def commit_txn(self, rqst):
  5470. """
  5471. Parameters:
  5472. - rqst
  5473. """
  5474. self.send_commit_txn(rqst)
  5475. self.recv_commit_txn()
  5476. def send_commit_txn(self, rqst):
  5477. self._oprot.writeMessageBegin('commit_txn', TMessageType.CALL, self._seqid)
  5478. args = commit_txn_args()
  5479. args.rqst = rqst
  5480. args.write(self._oprot)
  5481. self._oprot.writeMessageEnd()
  5482. self._oprot.trans.flush()
  5483. def recv_commit_txn(self):
  5484. iprot = self._iprot
  5485. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5486. if mtype == TMessageType.EXCEPTION:
  5487. x = TApplicationException()
  5488. x.read(iprot)
  5489. iprot.readMessageEnd()
  5490. raise x
  5491. result = commit_txn_result()
  5492. result.read(iprot)
  5493. iprot.readMessageEnd()
  5494. if result.o1 is not None:
  5495. raise result.o1
  5496. if result.o2 is not None:
  5497. raise result.o2
  5498. return
  5499. def lock(self, rqst):
  5500. """
  5501. Parameters:
  5502. - rqst
  5503. """
  5504. self.send_lock(rqst)
  5505. return self.recv_lock()
  5506. def send_lock(self, rqst):
  5507. self._oprot.writeMessageBegin('lock', TMessageType.CALL, self._seqid)
  5508. args = lock_args()
  5509. args.rqst = rqst
  5510. args.write(self._oprot)
  5511. self._oprot.writeMessageEnd()
  5512. self._oprot.trans.flush()
  5513. def recv_lock(self):
  5514. iprot = self._iprot
  5515. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5516. if mtype == TMessageType.EXCEPTION:
  5517. x = TApplicationException()
  5518. x.read(iprot)
  5519. iprot.readMessageEnd()
  5520. raise x
  5521. result = lock_result()
  5522. result.read(iprot)
  5523. iprot.readMessageEnd()
  5524. if result.success is not None:
  5525. return result.success
  5526. if result.o1 is not None:
  5527. raise result.o1
  5528. if result.o2 is not None:
  5529. raise result.o2
  5530. raise TApplicationException(TApplicationException.MISSING_RESULT, "lock failed: unknown result")
  5531. def check_lock(self, rqst):
  5532. """
  5533. Parameters:
  5534. - rqst
  5535. """
  5536. self.send_check_lock(rqst)
  5537. return self.recv_check_lock()
  5538. def send_check_lock(self, rqst):
  5539. self._oprot.writeMessageBegin('check_lock', TMessageType.CALL, self._seqid)
  5540. args = check_lock_args()
  5541. args.rqst = rqst
  5542. args.write(self._oprot)
  5543. self._oprot.writeMessageEnd()
  5544. self._oprot.trans.flush()
  5545. def recv_check_lock(self):
  5546. iprot = self._iprot
  5547. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5548. if mtype == TMessageType.EXCEPTION:
  5549. x = TApplicationException()
  5550. x.read(iprot)
  5551. iprot.readMessageEnd()
  5552. raise x
  5553. result = check_lock_result()
  5554. result.read(iprot)
  5555. iprot.readMessageEnd()
  5556. if result.success is not None:
  5557. return result.success
  5558. if result.o1 is not None:
  5559. raise result.o1
  5560. if result.o2 is not None:
  5561. raise result.o2
  5562. if result.o3 is not None:
  5563. raise result.o3
  5564. raise TApplicationException(TApplicationException.MISSING_RESULT, "check_lock failed: unknown result")
  5565. def unlock(self, rqst):
  5566. """
  5567. Parameters:
  5568. - rqst
  5569. """
  5570. self.send_unlock(rqst)
  5571. self.recv_unlock()
  5572. def send_unlock(self, rqst):
  5573. self._oprot.writeMessageBegin('unlock', TMessageType.CALL, self._seqid)
  5574. args = unlock_args()
  5575. args.rqst = rqst
  5576. args.write(self._oprot)
  5577. self._oprot.writeMessageEnd()
  5578. self._oprot.trans.flush()
  5579. def recv_unlock(self):
  5580. iprot = self._iprot
  5581. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5582. if mtype == TMessageType.EXCEPTION:
  5583. x = TApplicationException()
  5584. x.read(iprot)
  5585. iprot.readMessageEnd()
  5586. raise x
  5587. result = unlock_result()
  5588. result.read(iprot)
  5589. iprot.readMessageEnd()
  5590. if result.o1 is not None:
  5591. raise result.o1
  5592. if result.o2 is not None:
  5593. raise result.o2
  5594. return
  5595. def show_locks(self, rqst):
  5596. """
  5597. Parameters:
  5598. - rqst
  5599. """
  5600. self.send_show_locks(rqst)
  5601. return self.recv_show_locks()
  5602. def send_show_locks(self, rqst):
  5603. self._oprot.writeMessageBegin('show_locks', TMessageType.CALL, self._seqid)
  5604. args = show_locks_args()
  5605. args.rqst = rqst
  5606. args.write(self._oprot)
  5607. self._oprot.writeMessageEnd()
  5608. self._oprot.trans.flush()
  5609. def recv_show_locks(self):
  5610. iprot = self._iprot
  5611. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5612. if mtype == TMessageType.EXCEPTION:
  5613. x = TApplicationException()
  5614. x.read(iprot)
  5615. iprot.readMessageEnd()
  5616. raise x
  5617. result = show_locks_result()
  5618. result.read(iprot)
  5619. iprot.readMessageEnd()
  5620. if result.success is not None:
  5621. return result.success
  5622. raise TApplicationException(TApplicationException.MISSING_RESULT, "show_locks failed: unknown result")
  5623. def heartbeat(self, ids):
  5624. """
  5625. Parameters:
  5626. - ids
  5627. """
  5628. self.send_heartbeat(ids)
  5629. self.recv_heartbeat()
  5630. def send_heartbeat(self, ids):
  5631. self._oprot.writeMessageBegin('heartbeat', TMessageType.CALL, self._seqid)
  5632. args = heartbeat_args()
  5633. args.ids = ids
  5634. args.write(self._oprot)
  5635. self._oprot.writeMessageEnd()
  5636. self._oprot.trans.flush()
  5637. def recv_heartbeat(self):
  5638. iprot = self._iprot
  5639. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5640. if mtype == TMessageType.EXCEPTION:
  5641. x = TApplicationException()
  5642. x.read(iprot)
  5643. iprot.readMessageEnd()
  5644. raise x
  5645. result = heartbeat_result()
  5646. result.read(iprot)
  5647. iprot.readMessageEnd()
  5648. if result.o1 is not None:
  5649. raise result.o1
  5650. if result.o2 is not None:
  5651. raise result.o2
  5652. if result.o3 is not None:
  5653. raise result.o3
  5654. return
  5655. def heartbeat_txn_range(self, txns):
  5656. """
  5657. Parameters:
  5658. - txns
  5659. """
  5660. self.send_heartbeat_txn_range(txns)
  5661. return self.recv_heartbeat_txn_range()
  5662. def send_heartbeat_txn_range(self, txns):
  5663. self._oprot.writeMessageBegin('heartbeat_txn_range', TMessageType.CALL, self._seqid)
  5664. args = heartbeat_txn_range_args()
  5665. args.txns = txns
  5666. args.write(self._oprot)
  5667. self._oprot.writeMessageEnd()
  5668. self._oprot.trans.flush()
  5669. def recv_heartbeat_txn_range(self):
  5670. iprot = self._iprot
  5671. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5672. if mtype == TMessageType.EXCEPTION:
  5673. x = TApplicationException()
  5674. x.read(iprot)
  5675. iprot.readMessageEnd()
  5676. raise x
  5677. result = heartbeat_txn_range_result()
  5678. result.read(iprot)
  5679. iprot.readMessageEnd()
  5680. if result.success is not None:
  5681. return result.success
  5682. raise TApplicationException(TApplicationException.MISSING_RESULT, "heartbeat_txn_range failed: unknown result")
  5683. def compact(self, rqst):
  5684. """
  5685. Parameters:
  5686. - rqst
  5687. """
  5688. self.send_compact(rqst)
  5689. self.recv_compact()
  5690. def send_compact(self, rqst):
  5691. self._oprot.writeMessageBegin('compact', TMessageType.CALL, self._seqid)
  5692. args = compact_args()
  5693. args.rqst = rqst
  5694. args.write(self._oprot)
  5695. self._oprot.writeMessageEnd()
  5696. self._oprot.trans.flush()
  5697. def recv_compact(self):
  5698. iprot = self._iprot
  5699. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5700. if mtype == TMessageType.EXCEPTION:
  5701. x = TApplicationException()
  5702. x.read(iprot)
  5703. iprot.readMessageEnd()
  5704. raise x
  5705. result = compact_result()
  5706. result.read(iprot)
  5707. iprot.readMessageEnd()
  5708. return
  5709. def show_compact(self, rqst):
  5710. """
  5711. Parameters:
  5712. - rqst
  5713. """
  5714. self.send_show_compact(rqst)
  5715. return self.recv_show_compact()
  5716. def send_show_compact(self, rqst):
  5717. self._oprot.writeMessageBegin('show_compact', TMessageType.CALL, self._seqid)
  5718. args = show_compact_args()
  5719. args.rqst = rqst
  5720. args.write(self._oprot)
  5721. self._oprot.writeMessageEnd()
  5722. self._oprot.trans.flush()
  5723. def recv_show_compact(self):
  5724. iprot = self._iprot
  5725. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5726. if mtype == TMessageType.EXCEPTION:
  5727. x = TApplicationException()
  5728. x.read(iprot)
  5729. iprot.readMessageEnd()
  5730. raise x
  5731. result = show_compact_result()
  5732. result.read(iprot)
  5733. iprot.readMessageEnd()
  5734. if result.success is not None:
  5735. return result.success
  5736. raise TApplicationException(TApplicationException.MISSING_RESULT, "show_compact failed: unknown result")
  5737. def add_dynamic_partitions(self, rqst):
  5738. """
  5739. Parameters:
  5740. - rqst
  5741. """
  5742. self.send_add_dynamic_partitions(rqst)
  5743. self.recv_add_dynamic_partitions()
  5744. def send_add_dynamic_partitions(self, rqst):
  5745. self._oprot.writeMessageBegin('add_dynamic_partitions', TMessageType.CALL, self._seqid)
  5746. args = add_dynamic_partitions_args()
  5747. args.rqst = rqst
  5748. args.write(self._oprot)
  5749. self._oprot.writeMessageEnd()
  5750. self._oprot.trans.flush()
  5751. def recv_add_dynamic_partitions(self):
  5752. iprot = self._iprot
  5753. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5754. if mtype == TMessageType.EXCEPTION:
  5755. x = TApplicationException()
  5756. x.read(iprot)
  5757. iprot.readMessageEnd()
  5758. raise x
  5759. result = add_dynamic_partitions_result()
  5760. result.read(iprot)
  5761. iprot.readMessageEnd()
  5762. if result.o1 is not None:
  5763. raise result.o1
  5764. if result.o2 is not None:
  5765. raise result.o2
  5766. return
  5767. def get_next_notification(self, rqst):
  5768. """
  5769. Parameters:
  5770. - rqst
  5771. """
  5772. self.send_get_next_notification(rqst)
  5773. return self.recv_get_next_notification()
  5774. def send_get_next_notification(self, rqst):
  5775. self._oprot.writeMessageBegin('get_next_notification', TMessageType.CALL, self._seqid)
  5776. args = get_next_notification_args()
  5777. args.rqst = rqst
  5778. args.write(self._oprot)
  5779. self._oprot.writeMessageEnd()
  5780. self._oprot.trans.flush()
  5781. def recv_get_next_notification(self):
  5782. iprot = self._iprot
  5783. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5784. if mtype == TMessageType.EXCEPTION:
  5785. x = TApplicationException()
  5786. x.read(iprot)
  5787. iprot.readMessageEnd()
  5788. raise x
  5789. result = get_next_notification_result()
  5790. result.read(iprot)
  5791. iprot.readMessageEnd()
  5792. if result.success is not None:
  5793. return result.success
  5794. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_next_notification failed: unknown result")
  5795. def get_current_notificationEventId(self):
  5796. self.send_get_current_notificationEventId()
  5797. return self.recv_get_current_notificationEventId()
  5798. def send_get_current_notificationEventId(self):
  5799. self._oprot.writeMessageBegin('get_current_notificationEventId', TMessageType.CALL, self._seqid)
  5800. args = get_current_notificationEventId_args()
  5801. args.write(self._oprot)
  5802. self._oprot.writeMessageEnd()
  5803. self._oprot.trans.flush()
  5804. def recv_get_current_notificationEventId(self):
  5805. iprot = self._iprot
  5806. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5807. if mtype == TMessageType.EXCEPTION:
  5808. x = TApplicationException()
  5809. x.read(iprot)
  5810. iprot.readMessageEnd()
  5811. raise x
  5812. result = get_current_notificationEventId_result()
  5813. result.read(iprot)
  5814. iprot.readMessageEnd()
  5815. if result.success is not None:
  5816. return result.success
  5817. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_current_notificationEventId failed: unknown result")
  5818. def fire_listener_event(self, rqst):
  5819. """
  5820. Parameters:
  5821. - rqst
  5822. """
  5823. self.send_fire_listener_event(rqst)
  5824. return self.recv_fire_listener_event()
  5825. def send_fire_listener_event(self, rqst):
  5826. self._oprot.writeMessageBegin('fire_listener_event', TMessageType.CALL, self._seqid)
  5827. args = fire_listener_event_args()
  5828. args.rqst = rqst
  5829. args.write(self._oprot)
  5830. self._oprot.writeMessageEnd()
  5831. self._oprot.trans.flush()
  5832. def recv_fire_listener_event(self):
  5833. iprot = self._iprot
  5834. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5835. if mtype == TMessageType.EXCEPTION:
  5836. x = TApplicationException()
  5837. x.read(iprot)
  5838. iprot.readMessageEnd()
  5839. raise x
  5840. result = fire_listener_event_result()
  5841. result.read(iprot)
  5842. iprot.readMessageEnd()
  5843. if result.success is not None:
  5844. return result.success
  5845. raise TApplicationException(TApplicationException.MISSING_RESULT, "fire_listener_event failed: unknown result")
  5846. def flushCache(self):
  5847. self.send_flushCache()
  5848. self.recv_flushCache()
  5849. def send_flushCache(self):
  5850. self._oprot.writeMessageBegin('flushCache', TMessageType.CALL, self._seqid)
  5851. args = flushCache_args()
  5852. args.write(self._oprot)
  5853. self._oprot.writeMessageEnd()
  5854. self._oprot.trans.flush()
  5855. def recv_flushCache(self):
  5856. iprot = self._iprot
  5857. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5858. if mtype == TMessageType.EXCEPTION:
  5859. x = TApplicationException()
  5860. x.read(iprot)
  5861. iprot.readMessageEnd()
  5862. raise x
  5863. result = flushCache_result()
  5864. result.read(iprot)
  5865. iprot.readMessageEnd()
  5866. return
  5867. def get_file_metadata_by_expr(self, req):
  5868. """
  5869. Parameters:
  5870. - req
  5871. """
  5872. self.send_get_file_metadata_by_expr(req)
  5873. return self.recv_get_file_metadata_by_expr()
  5874. def send_get_file_metadata_by_expr(self, req):
  5875. self._oprot.writeMessageBegin('get_file_metadata_by_expr', TMessageType.CALL, self._seqid)
  5876. args = get_file_metadata_by_expr_args()
  5877. args.req = req
  5878. args.write(self._oprot)
  5879. self._oprot.writeMessageEnd()
  5880. self._oprot.trans.flush()
  5881. def recv_get_file_metadata_by_expr(self):
  5882. iprot = self._iprot
  5883. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5884. if mtype == TMessageType.EXCEPTION:
  5885. x = TApplicationException()
  5886. x.read(iprot)
  5887. iprot.readMessageEnd()
  5888. raise x
  5889. result = get_file_metadata_by_expr_result()
  5890. result.read(iprot)
  5891. iprot.readMessageEnd()
  5892. if result.success is not None:
  5893. return result.success
  5894. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_file_metadata_by_expr failed: unknown result")
  5895. def get_file_metadata(self, req):
  5896. """
  5897. Parameters:
  5898. - req
  5899. """
  5900. self.send_get_file_metadata(req)
  5901. return self.recv_get_file_metadata()
  5902. def send_get_file_metadata(self, req):
  5903. self._oprot.writeMessageBegin('get_file_metadata', TMessageType.CALL, self._seqid)
  5904. args = get_file_metadata_args()
  5905. args.req = req
  5906. args.write(self._oprot)
  5907. self._oprot.writeMessageEnd()
  5908. self._oprot.trans.flush()
  5909. def recv_get_file_metadata(self):
  5910. iprot = self._iprot
  5911. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5912. if mtype == TMessageType.EXCEPTION:
  5913. x = TApplicationException()
  5914. x.read(iprot)
  5915. iprot.readMessageEnd()
  5916. raise x
  5917. result = get_file_metadata_result()
  5918. result.read(iprot)
  5919. iprot.readMessageEnd()
  5920. if result.success is not None:
  5921. return result.success
  5922. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_file_metadata failed: unknown result")
  5923. def put_file_metadata(self, req):
  5924. """
  5925. Parameters:
  5926. - req
  5927. """
  5928. self.send_put_file_metadata(req)
  5929. return self.recv_put_file_metadata()
  5930. def send_put_file_metadata(self, req):
  5931. self._oprot.writeMessageBegin('put_file_metadata', TMessageType.CALL, self._seqid)
  5932. args = put_file_metadata_args()
  5933. args.req = req
  5934. args.write(self._oprot)
  5935. self._oprot.writeMessageEnd()
  5936. self._oprot.trans.flush()
  5937. def recv_put_file_metadata(self):
  5938. iprot = self._iprot
  5939. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5940. if mtype == TMessageType.EXCEPTION:
  5941. x = TApplicationException()
  5942. x.read(iprot)
  5943. iprot.readMessageEnd()
  5944. raise x
  5945. result = put_file_metadata_result()
  5946. result.read(iprot)
  5947. iprot.readMessageEnd()
  5948. if result.success is not None:
  5949. return result.success
  5950. raise TApplicationException(TApplicationException.MISSING_RESULT, "put_file_metadata failed: unknown result")
  5951. def clear_file_metadata(self, req):
  5952. """
  5953. Parameters:
  5954. - req
  5955. """
  5956. self.send_clear_file_metadata(req)
  5957. return self.recv_clear_file_metadata()
  5958. def send_clear_file_metadata(self, req):
  5959. self._oprot.writeMessageBegin('clear_file_metadata', TMessageType.CALL, self._seqid)
  5960. args = clear_file_metadata_args()
  5961. args.req = req
  5962. args.write(self._oprot)
  5963. self._oprot.writeMessageEnd()
  5964. self._oprot.trans.flush()
  5965. def recv_clear_file_metadata(self):
  5966. iprot = self._iprot
  5967. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5968. if mtype == TMessageType.EXCEPTION:
  5969. x = TApplicationException()
  5970. x.read(iprot)
  5971. iprot.readMessageEnd()
  5972. raise x
  5973. result = clear_file_metadata_result()
  5974. result.read(iprot)
  5975. iprot.readMessageEnd()
  5976. if result.success is not None:
  5977. return result.success
  5978. raise TApplicationException(TApplicationException.MISSING_RESULT, "clear_file_metadata failed: unknown result")
  5979. def cache_file_metadata(self, req):
  5980. """
  5981. Parameters:
  5982. - req
  5983. """
  5984. self.send_cache_file_metadata(req)
  5985. return self.recv_cache_file_metadata()
  5986. def send_cache_file_metadata(self, req):
  5987. self._oprot.writeMessageBegin('cache_file_metadata', TMessageType.CALL, self._seqid)
  5988. args = cache_file_metadata_args()
  5989. args.req = req
  5990. args.write(self._oprot)
  5991. self._oprot.writeMessageEnd()
  5992. self._oprot.trans.flush()
  5993. def recv_cache_file_metadata(self):
  5994. iprot = self._iprot
  5995. (fname, mtype, rseqid) = iprot.readMessageBegin()
  5996. if mtype == TMessageType.EXCEPTION:
  5997. x = TApplicationException()
  5998. x.read(iprot)
  5999. iprot.readMessageEnd()
  6000. raise x
  6001. result = cache_file_metadata_result()
  6002. result.read(iprot)
  6003. iprot.readMessageEnd()
  6004. if result.success is not None:
  6005. return result.success
  6006. raise TApplicationException(TApplicationException.MISSING_RESULT, "cache_file_metadata failed: unknown result")
  6007. def get_metastore_db_uuid(self):
  6008. self.send_get_metastore_db_uuid()
  6009. return self.recv_get_metastore_db_uuid()
  6010. def send_get_metastore_db_uuid(self):
  6011. self._oprot.writeMessageBegin('get_metastore_db_uuid', TMessageType.CALL, self._seqid)
  6012. args = get_metastore_db_uuid_args()
  6013. args.write(self._oprot)
  6014. self._oprot.writeMessageEnd()
  6015. self._oprot.trans.flush()
  6016. def recv_get_metastore_db_uuid(self):
  6017. iprot = self._iprot
  6018. (fname, mtype, rseqid) = iprot.readMessageBegin()
  6019. if mtype == TMessageType.EXCEPTION:
  6020. x = TApplicationException()
  6021. x.read(iprot)
  6022. iprot.readMessageEnd()
  6023. raise x
  6024. result = get_metastore_db_uuid_result()
  6025. result.read(iprot)
  6026. iprot.readMessageEnd()
  6027. if result.success is not None:
  6028. return result.success
  6029. if result.o1 is not None:
  6030. raise result.o1
  6031. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_metastore_db_uuid failed: unknown result")
  6032. def get_partitions_with_specs(self, request):
  6033. """
  6034. Parameters:
  6035. - request
  6036. """
  6037. self.send_get_partitions_with_specs(request)
  6038. return self.recv_get_partitions_with_specs()
  6039. def send_get_partitions_with_specs(self, request):
  6040. self._oprot.writeMessageBegin('get_partitions_with_specs', TMessageType.CALL, self._seqid)
  6041. args = get_partitions_with_specs_args()
  6042. args.request = request
  6043. args.write(self._oprot)
  6044. self._oprot.writeMessageEnd()
  6045. self._oprot.trans.flush()
  6046. def recv_get_partitions_with_specs(self):
  6047. iprot = self._iprot
  6048. (fname, mtype, rseqid) = iprot.readMessageBegin()
  6049. if mtype == TMessageType.EXCEPTION:
  6050. x = TApplicationException()
  6051. x.read(iprot)
  6052. iprot.readMessageEnd()
  6053. raise x
  6054. result = get_partitions_with_specs_result()
  6055. result.read(iprot)
  6056. iprot.readMessageEnd()
  6057. if result.success is not None:
  6058. return result.success
  6059. if result.o1 is not None:
  6060. raise result.o1
  6061. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_with_specs failed: unknown result")
  6062. class Processor(fb303.FacebookService.Processor, Iface, TProcessor):
  6063. def __init__(self, handler):
  6064. fb303.FacebookService.Processor.__init__(self, handler)
  6065. self._processMap["getMetaConf"] = Processor.process_getMetaConf
  6066. self._processMap["setMetaConf"] = Processor.process_setMetaConf
  6067. self._processMap["create_database"] = Processor.process_create_database
  6068. self._processMap["get_database"] = Processor.process_get_database
  6069. self._processMap["drop_database"] = Processor.process_drop_database
  6070. self._processMap["get_databases"] = Processor.process_get_databases
  6071. self._processMap["get_all_databases"] = Processor.process_get_all_databases
  6072. self._processMap["alter_database"] = Processor.process_alter_database
  6073. self._processMap["get_type"] = Processor.process_get_type
  6074. self._processMap["create_type"] = Processor.process_create_type
  6075. self._processMap["drop_type"] = Processor.process_drop_type
  6076. self._processMap["get_type_all"] = Processor.process_get_type_all
  6077. self._processMap["get_fields"] = Processor.process_get_fields
  6078. self._processMap["get_fields_with_environment_context"] = Processor.process_get_fields_with_environment_context
  6079. self._processMap["get_schema"] = Processor.process_get_schema
  6080. self._processMap["get_schema_with_environment_context"] = Processor.process_get_schema_with_environment_context
  6081. self._processMap["create_table"] = Processor.process_create_table
  6082. self._processMap["create_table_with_environment_context"] = Processor.process_create_table_with_environment_context
  6083. self._processMap["create_table_with_constraints"] = Processor.process_create_table_with_constraints
  6084. self._processMap["drop_constraint"] = Processor.process_drop_constraint
  6085. self._processMap["add_primary_key"] = Processor.process_add_primary_key
  6086. self._processMap["add_foreign_key"] = Processor.process_add_foreign_key
  6087. self._processMap["drop_table"] = Processor.process_drop_table
  6088. self._processMap["drop_table_with_environment_context"] = Processor.process_drop_table_with_environment_context
  6089. self._processMap["get_tables"] = Processor.process_get_tables
  6090. self._processMap["get_table_meta"] = Processor.process_get_table_meta
  6091. self._processMap["get_all_tables"] = Processor.process_get_all_tables
  6092. self._processMap["get_table"] = Processor.process_get_table
  6093. self._processMap["get_table_objects_by_name"] = Processor.process_get_table_objects_by_name
  6094. self._processMap["get_table_names_by_filter"] = Processor.process_get_table_names_by_filter
  6095. self._processMap["alter_table"] = Processor.process_alter_table
  6096. self._processMap["alter_table_with_environment_context"] = Processor.process_alter_table_with_environment_context
  6097. self._processMap["alter_table_with_cascade"] = Processor.process_alter_table_with_cascade
  6098. self._processMap["add_partition"] = Processor.process_add_partition
  6099. self._processMap["add_partition_with_environment_context"] = Processor.process_add_partition_with_environment_context
  6100. self._processMap["add_partitions"] = Processor.process_add_partitions
  6101. self._processMap["add_partitions_pspec"] = Processor.process_add_partitions_pspec
  6102. self._processMap["append_partition"] = Processor.process_append_partition
  6103. self._processMap["add_partitions_req"] = Processor.process_add_partitions_req
  6104. self._processMap["append_partition_with_environment_context"] = Processor.process_append_partition_with_environment_context
  6105. self._processMap["append_partition_by_name"] = Processor.process_append_partition_by_name
  6106. self._processMap["append_partition_by_name_with_environment_context"] = Processor.process_append_partition_by_name_with_environment_context
  6107. self._processMap["drop_partition"] = Processor.process_drop_partition
  6108. self._processMap["drop_partition_with_environment_context"] = Processor.process_drop_partition_with_environment_context
  6109. self._processMap["drop_partition_by_name"] = Processor.process_drop_partition_by_name
  6110. self._processMap["drop_partition_by_name_with_environment_context"] = Processor.process_drop_partition_by_name_with_environment_context
  6111. self._processMap["drop_partitions_req"] = Processor.process_drop_partitions_req
  6112. self._processMap["get_partition"] = Processor.process_get_partition
  6113. self._processMap["exchange_partition"] = Processor.process_exchange_partition
  6114. self._processMap["exchange_partitions"] = Processor.process_exchange_partitions
  6115. self._processMap["get_partition_with_auth"] = Processor.process_get_partition_with_auth
  6116. self._processMap["get_partition_by_name"] = Processor.process_get_partition_by_name
  6117. self._processMap["get_partitions"] = Processor.process_get_partitions
  6118. self._processMap["get_partitions_with_auth"] = Processor.process_get_partitions_with_auth
  6119. self._processMap["get_partitions_pspec"] = Processor.process_get_partitions_pspec
  6120. self._processMap["get_partition_names"] = Processor.process_get_partition_names
  6121. self._processMap["get_partitions_ps"] = Processor.process_get_partitions_ps
  6122. self._processMap["get_partitions_ps_with_auth"] = Processor.process_get_partitions_ps_with_auth
  6123. self._processMap["get_partition_names_ps"] = Processor.process_get_partition_names_ps
  6124. self._processMap["get_partitions_by_filter"] = Processor.process_get_partitions_by_filter
  6125. self._processMap["get_part_specs_by_filter"] = Processor.process_get_part_specs_by_filter
  6126. self._processMap["get_partitions_by_expr"] = Processor.process_get_partitions_by_expr
  6127. self._processMap["get_num_partitions_by_filter"] = Processor.process_get_num_partitions_by_filter
  6128. self._processMap["get_partitions_by_names"] = Processor.process_get_partitions_by_names
  6129. self._processMap["alter_partition"] = Processor.process_alter_partition
  6130. self._processMap["alter_partitions"] = Processor.process_alter_partitions
  6131. self._processMap["alter_partitions_with_environment_context"] = Processor.process_alter_partitions_with_environment_context
  6132. self._processMap["alter_partition_with_environment_context"] = Processor.process_alter_partition_with_environment_context
  6133. self._processMap["rename_partition"] = Processor.process_rename_partition
  6134. self._processMap["partition_name_has_valid_characters"] = Processor.process_partition_name_has_valid_characters
  6135. self._processMap["get_config_value"] = Processor.process_get_config_value
  6136. self._processMap["partition_name_to_vals"] = Processor.process_partition_name_to_vals
  6137. self._processMap["partition_name_to_spec"] = Processor.process_partition_name_to_spec
  6138. self._processMap["markPartitionForEvent"] = Processor.process_markPartitionForEvent
  6139. self._processMap["isPartitionMarkedForEvent"] = Processor.process_isPartitionMarkedForEvent
  6140. self._processMap["add_index"] = Processor.process_add_index
  6141. self._processMap["alter_index"] = Processor.process_alter_index
  6142. self._processMap["drop_index_by_name"] = Processor.process_drop_index_by_name
  6143. self._processMap["get_index_by_name"] = Processor.process_get_index_by_name
  6144. self._processMap["get_indexes"] = Processor.process_get_indexes
  6145. self._processMap["get_index_names"] = Processor.process_get_index_names
  6146. self._processMap["get_primary_keys"] = Processor.process_get_primary_keys
  6147. self._processMap["get_foreign_keys"] = Processor.process_get_foreign_keys
  6148. self._processMap["update_table_column_statistics"] = Processor.process_update_table_column_statistics
  6149. self._processMap["update_partition_column_statistics"] = Processor.process_update_partition_column_statistics
  6150. self._processMap["get_table_column_statistics"] = Processor.process_get_table_column_statistics
  6151. self._processMap["get_partition_column_statistics"] = Processor.process_get_partition_column_statistics
  6152. self._processMap["get_table_statistics_req"] = Processor.process_get_table_statistics_req
  6153. self._processMap["get_partitions_statistics_req"] = Processor.process_get_partitions_statistics_req
  6154. self._processMap["get_aggr_stats_for"] = Processor.process_get_aggr_stats_for
  6155. self._processMap["set_aggr_stats_for"] = Processor.process_set_aggr_stats_for
  6156. self._processMap["delete_partition_column_statistics"] = Processor.process_delete_partition_column_statistics
  6157. self._processMap["delete_table_column_statistics"] = Processor.process_delete_table_column_statistics
  6158. self._processMap["create_function"] = Processor.process_create_function
  6159. self._processMap["drop_function"] = Processor.process_drop_function
  6160. self._processMap["alter_function"] = Processor.process_alter_function
  6161. self._processMap["get_functions"] = Processor.process_get_functions
  6162. self._processMap["get_function"] = Processor.process_get_function
  6163. self._processMap["get_all_functions"] = Processor.process_get_all_functions
  6164. self._processMap["create_role"] = Processor.process_create_role
  6165. self._processMap["drop_role"] = Processor.process_drop_role
  6166. self._processMap["get_role_names"] = Processor.process_get_role_names
  6167. self._processMap["grant_role"] = Processor.process_grant_role
  6168. self._processMap["revoke_role"] = Processor.process_revoke_role
  6169. self._processMap["list_roles"] = Processor.process_list_roles
  6170. self._processMap["grant_revoke_role"] = Processor.process_grant_revoke_role
  6171. self._processMap["get_principals_in_role"] = Processor.process_get_principals_in_role
  6172. self._processMap["get_role_grants_for_principal"] = Processor.process_get_role_grants_for_principal
  6173. self._processMap["get_privilege_set"] = Processor.process_get_privilege_set
  6174. self._processMap["list_privileges"] = Processor.process_list_privileges
  6175. self._processMap["grant_privileges"] = Processor.process_grant_privileges
  6176. self._processMap["revoke_privileges"] = Processor.process_revoke_privileges
  6177. self._processMap["grant_revoke_privileges"] = Processor.process_grant_revoke_privileges
  6178. self._processMap["set_ugi"] = Processor.process_set_ugi
  6179. self._processMap["get_delegation_token"] = Processor.process_get_delegation_token
  6180. self._processMap["renew_delegation_token"] = Processor.process_renew_delegation_token
  6181. self._processMap["cancel_delegation_token"] = Processor.process_cancel_delegation_token
  6182. self._processMap["add_token"] = Processor.process_add_token
  6183. self._processMap["remove_token"] = Processor.process_remove_token
  6184. self._processMap["get_token"] = Processor.process_get_token
  6185. self._processMap["get_all_token_identifiers"] = Processor.process_get_all_token_identifiers
  6186. self._processMap["add_master_key"] = Processor.process_add_master_key
  6187. self._processMap["update_master_key"] = Processor.process_update_master_key
  6188. self._processMap["remove_master_key"] = Processor.process_remove_master_key
  6189. self._processMap["get_master_keys"] = Processor.process_get_master_keys
  6190. self._processMap["get_open_txns"] = Processor.process_get_open_txns
  6191. self._processMap["get_open_txns_info"] = Processor.process_get_open_txns_info
  6192. self._processMap["open_txns"] = Processor.process_open_txns
  6193. self._processMap["abort_txn"] = Processor.process_abort_txn
  6194. self._processMap["abort_txns"] = Processor.process_abort_txns
  6195. self._processMap["commit_txn"] = Processor.process_commit_txn
  6196. self._processMap["lock"] = Processor.process_lock
  6197. self._processMap["check_lock"] = Processor.process_check_lock
  6198. self._processMap["unlock"] = Processor.process_unlock
  6199. self._processMap["show_locks"] = Processor.process_show_locks
  6200. self._processMap["heartbeat"] = Processor.process_heartbeat
  6201. self._processMap["heartbeat_txn_range"] = Processor.process_heartbeat_txn_range
  6202. self._processMap["compact"] = Processor.process_compact
  6203. self._processMap["show_compact"] = Processor.process_show_compact
  6204. self._processMap["add_dynamic_partitions"] = Processor.process_add_dynamic_partitions
  6205. self._processMap["get_next_notification"] = Processor.process_get_next_notification
  6206. self._processMap["get_current_notificationEventId"] = Processor.process_get_current_notificationEventId
  6207. self._processMap["fire_listener_event"] = Processor.process_fire_listener_event
  6208. self._processMap["flushCache"] = Processor.process_flushCache
  6209. self._processMap["get_file_metadata_by_expr"] = Processor.process_get_file_metadata_by_expr
  6210. self._processMap["get_file_metadata"] = Processor.process_get_file_metadata
  6211. self._processMap["put_file_metadata"] = Processor.process_put_file_metadata
  6212. self._processMap["clear_file_metadata"] = Processor.process_clear_file_metadata
  6213. self._processMap["cache_file_metadata"] = Processor.process_cache_file_metadata
  6214. self._processMap["get_metastore_db_uuid"] = Processor.process_get_metastore_db_uuid
  6215. self._processMap["get_partitions_with_specs"] = Processor.process_get_partitions_with_specs
  6216. self._on_message_begin = None
  6217. def on_message_begin(self, func):
  6218. self._on_message_begin = func
  6219. def process(self, iprot, oprot):
  6220. (name, type, seqid) = iprot.readMessageBegin()
  6221. if self._on_message_begin:
  6222. self._on_message_begin(name, type, seqid)
  6223. if name not in self._processMap:
  6224. iprot.skip(TType.STRUCT)
  6225. iprot.readMessageEnd()
  6226. x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
  6227. oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
  6228. x.write(oprot)
  6229. oprot.writeMessageEnd()
  6230. oprot.trans.flush()
  6231. return
  6232. else:
  6233. self._processMap[name](self, seqid, iprot, oprot)
  6234. return True
  6235. def process_getMetaConf(self, seqid, iprot, oprot):
  6236. args = getMetaConf_args()
  6237. args.read(iprot)
  6238. iprot.readMessageEnd()
  6239. result = getMetaConf_result()
  6240. try:
  6241. result.success = self._handler.getMetaConf(args.key)
  6242. msg_type = TMessageType.REPLY
  6243. except TTransport.TTransportException:
  6244. raise
  6245. except MetaException as o1:
  6246. msg_type = TMessageType.REPLY
  6247. result.o1 = o1
  6248. except TApplicationException as ex:
  6249. logging.exception('TApplication exception in handler')
  6250. msg_type = TMessageType.EXCEPTION
  6251. result = ex
  6252. except Exception:
  6253. logging.exception('Unexpected exception in handler')
  6254. msg_type = TMessageType.EXCEPTION
  6255. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6256. oprot.writeMessageBegin("getMetaConf", msg_type, seqid)
  6257. result.write(oprot)
  6258. oprot.writeMessageEnd()
  6259. oprot.trans.flush()
  6260. def process_setMetaConf(self, seqid, iprot, oprot):
  6261. args = setMetaConf_args()
  6262. args.read(iprot)
  6263. iprot.readMessageEnd()
  6264. result = setMetaConf_result()
  6265. try:
  6266. self._handler.setMetaConf(args.key, args.value)
  6267. msg_type = TMessageType.REPLY
  6268. except TTransport.TTransportException:
  6269. raise
  6270. except MetaException as o1:
  6271. msg_type = TMessageType.REPLY
  6272. result.o1 = o1
  6273. except TApplicationException as ex:
  6274. logging.exception('TApplication exception in handler')
  6275. msg_type = TMessageType.EXCEPTION
  6276. result = ex
  6277. except Exception:
  6278. logging.exception('Unexpected exception in handler')
  6279. msg_type = TMessageType.EXCEPTION
  6280. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6281. oprot.writeMessageBegin("setMetaConf", msg_type, seqid)
  6282. result.write(oprot)
  6283. oprot.writeMessageEnd()
  6284. oprot.trans.flush()
  6285. def process_create_database(self, seqid, iprot, oprot):
  6286. args = create_database_args()
  6287. args.read(iprot)
  6288. iprot.readMessageEnd()
  6289. result = create_database_result()
  6290. try:
  6291. self._handler.create_database(args.database)
  6292. msg_type = TMessageType.REPLY
  6293. except TTransport.TTransportException:
  6294. raise
  6295. except AlreadyExistsException as o1:
  6296. msg_type = TMessageType.REPLY
  6297. result.o1 = o1
  6298. except InvalidObjectException as o2:
  6299. msg_type = TMessageType.REPLY
  6300. result.o2 = o2
  6301. except MetaException as o3:
  6302. msg_type = TMessageType.REPLY
  6303. result.o3 = o3
  6304. except TApplicationException as ex:
  6305. logging.exception('TApplication exception in handler')
  6306. msg_type = TMessageType.EXCEPTION
  6307. result = ex
  6308. except Exception:
  6309. logging.exception('Unexpected exception in handler')
  6310. msg_type = TMessageType.EXCEPTION
  6311. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6312. oprot.writeMessageBegin("create_database", msg_type, seqid)
  6313. result.write(oprot)
  6314. oprot.writeMessageEnd()
  6315. oprot.trans.flush()
  6316. def process_get_database(self, seqid, iprot, oprot):
  6317. args = get_database_args()
  6318. args.read(iprot)
  6319. iprot.readMessageEnd()
  6320. result = get_database_result()
  6321. try:
  6322. result.success = self._handler.get_database(args.name)
  6323. msg_type = TMessageType.REPLY
  6324. except TTransport.TTransportException:
  6325. raise
  6326. except NoSuchObjectException as o1:
  6327. msg_type = TMessageType.REPLY
  6328. result.o1 = o1
  6329. except MetaException as o2:
  6330. msg_type = TMessageType.REPLY
  6331. result.o2 = o2
  6332. except TApplicationException as ex:
  6333. logging.exception('TApplication exception in handler')
  6334. msg_type = TMessageType.EXCEPTION
  6335. result = ex
  6336. except Exception:
  6337. logging.exception('Unexpected exception in handler')
  6338. msg_type = TMessageType.EXCEPTION
  6339. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6340. oprot.writeMessageBegin("get_database", msg_type, seqid)
  6341. result.write(oprot)
  6342. oprot.writeMessageEnd()
  6343. oprot.trans.flush()
  6344. def process_drop_database(self, seqid, iprot, oprot):
  6345. args = drop_database_args()
  6346. args.read(iprot)
  6347. iprot.readMessageEnd()
  6348. result = drop_database_result()
  6349. try:
  6350. self._handler.drop_database(args.name, args.deleteData, args.cascade)
  6351. msg_type = TMessageType.REPLY
  6352. except TTransport.TTransportException:
  6353. raise
  6354. except NoSuchObjectException as o1:
  6355. msg_type = TMessageType.REPLY
  6356. result.o1 = o1
  6357. except InvalidOperationException as o2:
  6358. msg_type = TMessageType.REPLY
  6359. result.o2 = o2
  6360. except MetaException as o3:
  6361. msg_type = TMessageType.REPLY
  6362. result.o3 = o3
  6363. except TApplicationException as ex:
  6364. logging.exception('TApplication exception in handler')
  6365. msg_type = TMessageType.EXCEPTION
  6366. result = ex
  6367. except Exception:
  6368. logging.exception('Unexpected exception in handler')
  6369. msg_type = TMessageType.EXCEPTION
  6370. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6371. oprot.writeMessageBegin("drop_database", msg_type, seqid)
  6372. result.write(oprot)
  6373. oprot.writeMessageEnd()
  6374. oprot.trans.flush()
  6375. def process_get_databases(self, seqid, iprot, oprot):
  6376. args = get_databases_args()
  6377. args.read(iprot)
  6378. iprot.readMessageEnd()
  6379. result = get_databases_result()
  6380. try:
  6381. result.success = self._handler.get_databases(args.pattern)
  6382. msg_type = TMessageType.REPLY
  6383. except TTransport.TTransportException:
  6384. raise
  6385. except MetaException as o1:
  6386. msg_type = TMessageType.REPLY
  6387. result.o1 = o1
  6388. except TApplicationException as ex:
  6389. logging.exception('TApplication exception in handler')
  6390. msg_type = TMessageType.EXCEPTION
  6391. result = ex
  6392. except Exception:
  6393. logging.exception('Unexpected exception in handler')
  6394. msg_type = TMessageType.EXCEPTION
  6395. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6396. oprot.writeMessageBegin("get_databases", msg_type, seqid)
  6397. result.write(oprot)
  6398. oprot.writeMessageEnd()
  6399. oprot.trans.flush()
  6400. def process_get_all_databases(self, seqid, iprot, oprot):
  6401. args = get_all_databases_args()
  6402. args.read(iprot)
  6403. iprot.readMessageEnd()
  6404. result = get_all_databases_result()
  6405. try:
  6406. result.success = self._handler.get_all_databases()
  6407. msg_type = TMessageType.REPLY
  6408. except TTransport.TTransportException:
  6409. raise
  6410. except MetaException as o1:
  6411. msg_type = TMessageType.REPLY
  6412. result.o1 = o1
  6413. except TApplicationException as ex:
  6414. logging.exception('TApplication exception in handler')
  6415. msg_type = TMessageType.EXCEPTION
  6416. result = ex
  6417. except Exception:
  6418. logging.exception('Unexpected exception in handler')
  6419. msg_type = TMessageType.EXCEPTION
  6420. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6421. oprot.writeMessageBegin("get_all_databases", msg_type, seqid)
  6422. result.write(oprot)
  6423. oprot.writeMessageEnd()
  6424. oprot.trans.flush()
  6425. def process_alter_database(self, seqid, iprot, oprot):
  6426. args = alter_database_args()
  6427. args.read(iprot)
  6428. iprot.readMessageEnd()
  6429. result = alter_database_result()
  6430. try:
  6431. self._handler.alter_database(args.dbname, args.db)
  6432. msg_type = TMessageType.REPLY
  6433. except TTransport.TTransportException:
  6434. raise
  6435. except MetaException as o1:
  6436. msg_type = TMessageType.REPLY
  6437. result.o1 = o1
  6438. except NoSuchObjectException as o2:
  6439. msg_type = TMessageType.REPLY
  6440. result.o2 = o2
  6441. except TApplicationException as ex:
  6442. logging.exception('TApplication exception in handler')
  6443. msg_type = TMessageType.EXCEPTION
  6444. result = ex
  6445. except Exception:
  6446. logging.exception('Unexpected exception in handler')
  6447. msg_type = TMessageType.EXCEPTION
  6448. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6449. oprot.writeMessageBegin("alter_database", msg_type, seqid)
  6450. result.write(oprot)
  6451. oprot.writeMessageEnd()
  6452. oprot.trans.flush()
  6453. def process_get_type(self, seqid, iprot, oprot):
  6454. args = get_type_args()
  6455. args.read(iprot)
  6456. iprot.readMessageEnd()
  6457. result = get_type_result()
  6458. try:
  6459. result.success = self._handler.get_type(args.name)
  6460. msg_type = TMessageType.REPLY
  6461. except TTransport.TTransportException:
  6462. raise
  6463. except MetaException as o1:
  6464. msg_type = TMessageType.REPLY
  6465. result.o1 = o1
  6466. except NoSuchObjectException as o2:
  6467. msg_type = TMessageType.REPLY
  6468. result.o2 = o2
  6469. except TApplicationException as ex:
  6470. logging.exception('TApplication exception in handler')
  6471. msg_type = TMessageType.EXCEPTION
  6472. result = ex
  6473. except Exception:
  6474. logging.exception('Unexpected exception in handler')
  6475. msg_type = TMessageType.EXCEPTION
  6476. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6477. oprot.writeMessageBegin("get_type", msg_type, seqid)
  6478. result.write(oprot)
  6479. oprot.writeMessageEnd()
  6480. oprot.trans.flush()
  6481. def process_create_type(self, seqid, iprot, oprot):
  6482. args = create_type_args()
  6483. args.read(iprot)
  6484. iprot.readMessageEnd()
  6485. result = create_type_result()
  6486. try:
  6487. result.success = self._handler.create_type(args.type)
  6488. msg_type = TMessageType.REPLY
  6489. except TTransport.TTransportException:
  6490. raise
  6491. except AlreadyExistsException as o1:
  6492. msg_type = TMessageType.REPLY
  6493. result.o1 = o1
  6494. except InvalidObjectException as o2:
  6495. msg_type = TMessageType.REPLY
  6496. result.o2 = o2
  6497. except MetaException as o3:
  6498. msg_type = TMessageType.REPLY
  6499. result.o3 = o3
  6500. except TApplicationException as ex:
  6501. logging.exception('TApplication exception in handler')
  6502. msg_type = TMessageType.EXCEPTION
  6503. result = ex
  6504. except Exception:
  6505. logging.exception('Unexpected exception in handler')
  6506. msg_type = TMessageType.EXCEPTION
  6507. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6508. oprot.writeMessageBegin("create_type", msg_type, seqid)
  6509. result.write(oprot)
  6510. oprot.writeMessageEnd()
  6511. oprot.trans.flush()
  6512. def process_drop_type(self, seqid, iprot, oprot):
  6513. args = drop_type_args()
  6514. args.read(iprot)
  6515. iprot.readMessageEnd()
  6516. result = drop_type_result()
  6517. try:
  6518. result.success = self._handler.drop_type(args.type)
  6519. msg_type = TMessageType.REPLY
  6520. except TTransport.TTransportException:
  6521. raise
  6522. except MetaException as o1:
  6523. msg_type = TMessageType.REPLY
  6524. result.o1 = o1
  6525. except NoSuchObjectException as o2:
  6526. msg_type = TMessageType.REPLY
  6527. result.o2 = o2
  6528. except TApplicationException as ex:
  6529. logging.exception('TApplication exception in handler')
  6530. msg_type = TMessageType.EXCEPTION
  6531. result = ex
  6532. except Exception:
  6533. logging.exception('Unexpected exception in handler')
  6534. msg_type = TMessageType.EXCEPTION
  6535. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6536. oprot.writeMessageBegin("drop_type", msg_type, seqid)
  6537. result.write(oprot)
  6538. oprot.writeMessageEnd()
  6539. oprot.trans.flush()
  6540. def process_get_type_all(self, seqid, iprot, oprot):
  6541. args = get_type_all_args()
  6542. args.read(iprot)
  6543. iprot.readMessageEnd()
  6544. result = get_type_all_result()
  6545. try:
  6546. result.success = self._handler.get_type_all(args.name)
  6547. msg_type = TMessageType.REPLY
  6548. except TTransport.TTransportException:
  6549. raise
  6550. except MetaException as o2:
  6551. msg_type = TMessageType.REPLY
  6552. result.o2 = o2
  6553. except TApplicationException as ex:
  6554. logging.exception('TApplication exception in handler')
  6555. msg_type = TMessageType.EXCEPTION
  6556. result = ex
  6557. except Exception:
  6558. logging.exception('Unexpected exception in handler')
  6559. msg_type = TMessageType.EXCEPTION
  6560. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6561. oprot.writeMessageBegin("get_type_all", msg_type, seqid)
  6562. result.write(oprot)
  6563. oprot.writeMessageEnd()
  6564. oprot.trans.flush()
  6565. def process_get_fields(self, seqid, iprot, oprot):
  6566. args = get_fields_args()
  6567. args.read(iprot)
  6568. iprot.readMessageEnd()
  6569. result = get_fields_result()
  6570. try:
  6571. result.success = self._handler.get_fields(args.db_name, args.table_name)
  6572. msg_type = TMessageType.REPLY
  6573. except TTransport.TTransportException:
  6574. raise
  6575. except MetaException as o1:
  6576. msg_type = TMessageType.REPLY
  6577. result.o1 = o1
  6578. except UnknownTableException as o2:
  6579. msg_type = TMessageType.REPLY
  6580. result.o2 = o2
  6581. except UnknownDBException as o3:
  6582. msg_type = TMessageType.REPLY
  6583. result.o3 = o3
  6584. except TApplicationException as ex:
  6585. logging.exception('TApplication exception in handler')
  6586. msg_type = TMessageType.EXCEPTION
  6587. result = ex
  6588. except Exception:
  6589. logging.exception('Unexpected exception in handler')
  6590. msg_type = TMessageType.EXCEPTION
  6591. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6592. oprot.writeMessageBegin("get_fields", msg_type, seqid)
  6593. result.write(oprot)
  6594. oprot.writeMessageEnd()
  6595. oprot.trans.flush()
  6596. def process_get_fields_with_environment_context(self, seqid, iprot, oprot):
  6597. args = get_fields_with_environment_context_args()
  6598. args.read(iprot)
  6599. iprot.readMessageEnd()
  6600. result = get_fields_with_environment_context_result()
  6601. try:
  6602. result.success = self._handler.get_fields_with_environment_context(args.db_name, args.table_name, args.environment_context)
  6603. msg_type = TMessageType.REPLY
  6604. except TTransport.TTransportException:
  6605. raise
  6606. except MetaException as o1:
  6607. msg_type = TMessageType.REPLY
  6608. result.o1 = o1
  6609. except UnknownTableException as o2:
  6610. msg_type = TMessageType.REPLY
  6611. result.o2 = o2
  6612. except UnknownDBException as o3:
  6613. msg_type = TMessageType.REPLY
  6614. result.o3 = o3
  6615. except TApplicationException as ex:
  6616. logging.exception('TApplication exception in handler')
  6617. msg_type = TMessageType.EXCEPTION
  6618. result = ex
  6619. except Exception:
  6620. logging.exception('Unexpected exception in handler')
  6621. msg_type = TMessageType.EXCEPTION
  6622. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6623. oprot.writeMessageBegin("get_fields_with_environment_context", msg_type, seqid)
  6624. result.write(oprot)
  6625. oprot.writeMessageEnd()
  6626. oprot.trans.flush()
  6627. def process_get_schema(self, seqid, iprot, oprot):
  6628. args = get_schema_args()
  6629. args.read(iprot)
  6630. iprot.readMessageEnd()
  6631. result = get_schema_result()
  6632. try:
  6633. result.success = self._handler.get_schema(args.db_name, args.table_name)
  6634. msg_type = TMessageType.REPLY
  6635. except TTransport.TTransportException:
  6636. raise
  6637. except MetaException as o1:
  6638. msg_type = TMessageType.REPLY
  6639. result.o1 = o1
  6640. except UnknownTableException as o2:
  6641. msg_type = TMessageType.REPLY
  6642. result.o2 = o2
  6643. except UnknownDBException as o3:
  6644. msg_type = TMessageType.REPLY
  6645. result.o3 = o3
  6646. except TApplicationException as ex:
  6647. logging.exception('TApplication exception in handler')
  6648. msg_type = TMessageType.EXCEPTION
  6649. result = ex
  6650. except Exception:
  6651. logging.exception('Unexpected exception in handler')
  6652. msg_type = TMessageType.EXCEPTION
  6653. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6654. oprot.writeMessageBegin("get_schema", msg_type, seqid)
  6655. result.write(oprot)
  6656. oprot.writeMessageEnd()
  6657. oprot.trans.flush()
  6658. def process_get_schema_with_environment_context(self, seqid, iprot, oprot):
  6659. args = get_schema_with_environment_context_args()
  6660. args.read(iprot)
  6661. iprot.readMessageEnd()
  6662. result = get_schema_with_environment_context_result()
  6663. try:
  6664. result.success = self._handler.get_schema_with_environment_context(args.db_name, args.table_name, args.environment_context)
  6665. msg_type = TMessageType.REPLY
  6666. except TTransport.TTransportException:
  6667. raise
  6668. except MetaException as o1:
  6669. msg_type = TMessageType.REPLY
  6670. result.o1 = o1
  6671. except UnknownTableException as o2:
  6672. msg_type = TMessageType.REPLY
  6673. result.o2 = o2
  6674. except UnknownDBException as o3:
  6675. msg_type = TMessageType.REPLY
  6676. result.o3 = o3
  6677. except TApplicationException as ex:
  6678. logging.exception('TApplication exception in handler')
  6679. msg_type = TMessageType.EXCEPTION
  6680. result = ex
  6681. except Exception:
  6682. logging.exception('Unexpected exception in handler')
  6683. msg_type = TMessageType.EXCEPTION
  6684. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6685. oprot.writeMessageBegin("get_schema_with_environment_context", msg_type, seqid)
  6686. result.write(oprot)
  6687. oprot.writeMessageEnd()
  6688. oprot.trans.flush()
  6689. def process_create_table(self, seqid, iprot, oprot):
  6690. args = create_table_args()
  6691. args.read(iprot)
  6692. iprot.readMessageEnd()
  6693. result = create_table_result()
  6694. try:
  6695. self._handler.create_table(args.tbl)
  6696. msg_type = TMessageType.REPLY
  6697. except TTransport.TTransportException:
  6698. raise
  6699. except AlreadyExistsException as o1:
  6700. msg_type = TMessageType.REPLY
  6701. result.o1 = o1
  6702. except InvalidObjectException as o2:
  6703. msg_type = TMessageType.REPLY
  6704. result.o2 = o2
  6705. except MetaException as o3:
  6706. msg_type = TMessageType.REPLY
  6707. result.o3 = o3
  6708. except NoSuchObjectException as o4:
  6709. msg_type = TMessageType.REPLY
  6710. result.o4 = o4
  6711. except TApplicationException as ex:
  6712. logging.exception('TApplication exception in handler')
  6713. msg_type = TMessageType.EXCEPTION
  6714. result = ex
  6715. except Exception:
  6716. logging.exception('Unexpected exception in handler')
  6717. msg_type = TMessageType.EXCEPTION
  6718. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6719. oprot.writeMessageBegin("create_table", msg_type, seqid)
  6720. result.write(oprot)
  6721. oprot.writeMessageEnd()
  6722. oprot.trans.flush()
  6723. def process_create_table_with_environment_context(self, seqid, iprot, oprot):
  6724. args = create_table_with_environment_context_args()
  6725. args.read(iprot)
  6726. iprot.readMessageEnd()
  6727. result = create_table_with_environment_context_result()
  6728. try:
  6729. self._handler.create_table_with_environment_context(args.tbl, args.environment_context)
  6730. msg_type = TMessageType.REPLY
  6731. except TTransport.TTransportException:
  6732. raise
  6733. except AlreadyExistsException as o1:
  6734. msg_type = TMessageType.REPLY
  6735. result.o1 = o1
  6736. except InvalidObjectException as o2:
  6737. msg_type = TMessageType.REPLY
  6738. result.o2 = o2
  6739. except MetaException as o3:
  6740. msg_type = TMessageType.REPLY
  6741. result.o3 = o3
  6742. except NoSuchObjectException as o4:
  6743. msg_type = TMessageType.REPLY
  6744. result.o4 = o4
  6745. except TApplicationException as ex:
  6746. logging.exception('TApplication exception in handler')
  6747. msg_type = TMessageType.EXCEPTION
  6748. result = ex
  6749. except Exception:
  6750. logging.exception('Unexpected exception in handler')
  6751. msg_type = TMessageType.EXCEPTION
  6752. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6753. oprot.writeMessageBegin("create_table_with_environment_context", msg_type, seqid)
  6754. result.write(oprot)
  6755. oprot.writeMessageEnd()
  6756. oprot.trans.flush()
  6757. def process_create_table_with_constraints(self, seqid, iprot, oprot):
  6758. args = create_table_with_constraints_args()
  6759. args.read(iprot)
  6760. iprot.readMessageEnd()
  6761. result = create_table_with_constraints_result()
  6762. try:
  6763. self._handler.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys)
  6764. msg_type = TMessageType.REPLY
  6765. except TTransport.TTransportException:
  6766. raise
  6767. except AlreadyExistsException as o1:
  6768. msg_type = TMessageType.REPLY
  6769. result.o1 = o1
  6770. except InvalidObjectException as o2:
  6771. msg_type = TMessageType.REPLY
  6772. result.o2 = o2
  6773. except MetaException as o3:
  6774. msg_type = TMessageType.REPLY
  6775. result.o3 = o3
  6776. except NoSuchObjectException as o4:
  6777. msg_type = TMessageType.REPLY
  6778. result.o4 = o4
  6779. except TApplicationException as ex:
  6780. logging.exception('TApplication exception in handler')
  6781. msg_type = TMessageType.EXCEPTION
  6782. result = ex
  6783. except Exception:
  6784. logging.exception('Unexpected exception in handler')
  6785. msg_type = TMessageType.EXCEPTION
  6786. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6787. oprot.writeMessageBegin("create_table_with_constraints", msg_type, seqid)
  6788. result.write(oprot)
  6789. oprot.writeMessageEnd()
  6790. oprot.trans.flush()
  6791. def process_drop_constraint(self, seqid, iprot, oprot):
  6792. args = drop_constraint_args()
  6793. args.read(iprot)
  6794. iprot.readMessageEnd()
  6795. result = drop_constraint_result()
  6796. try:
  6797. self._handler.drop_constraint(args.req)
  6798. msg_type = TMessageType.REPLY
  6799. except TTransport.TTransportException:
  6800. raise
  6801. except NoSuchObjectException as o1:
  6802. msg_type = TMessageType.REPLY
  6803. result.o1 = o1
  6804. except MetaException as o3:
  6805. msg_type = TMessageType.REPLY
  6806. result.o3 = o3
  6807. except TApplicationException as ex:
  6808. logging.exception('TApplication exception in handler')
  6809. msg_type = TMessageType.EXCEPTION
  6810. result = ex
  6811. except Exception:
  6812. logging.exception('Unexpected exception in handler')
  6813. msg_type = TMessageType.EXCEPTION
  6814. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6815. oprot.writeMessageBegin("drop_constraint", msg_type, seqid)
  6816. result.write(oprot)
  6817. oprot.writeMessageEnd()
  6818. oprot.trans.flush()
  6819. def process_add_primary_key(self, seqid, iprot, oprot):
  6820. args = add_primary_key_args()
  6821. args.read(iprot)
  6822. iprot.readMessageEnd()
  6823. result = add_primary_key_result()
  6824. try:
  6825. self._handler.add_primary_key(args.req)
  6826. msg_type = TMessageType.REPLY
  6827. except TTransport.TTransportException:
  6828. raise
  6829. except NoSuchObjectException as o1:
  6830. msg_type = TMessageType.REPLY
  6831. result.o1 = o1
  6832. except MetaException as o2:
  6833. msg_type = TMessageType.REPLY
  6834. result.o2 = o2
  6835. except TApplicationException as ex:
  6836. logging.exception('TApplication exception in handler')
  6837. msg_type = TMessageType.EXCEPTION
  6838. result = ex
  6839. except Exception:
  6840. logging.exception('Unexpected exception in handler')
  6841. msg_type = TMessageType.EXCEPTION
  6842. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6843. oprot.writeMessageBegin("add_primary_key", msg_type, seqid)
  6844. result.write(oprot)
  6845. oprot.writeMessageEnd()
  6846. oprot.trans.flush()
  6847. def process_add_foreign_key(self, seqid, iprot, oprot):
  6848. args = add_foreign_key_args()
  6849. args.read(iprot)
  6850. iprot.readMessageEnd()
  6851. result = add_foreign_key_result()
  6852. try:
  6853. self._handler.add_foreign_key(args.req)
  6854. msg_type = TMessageType.REPLY
  6855. except TTransport.TTransportException:
  6856. raise
  6857. except NoSuchObjectException as o1:
  6858. msg_type = TMessageType.REPLY
  6859. result.o1 = o1
  6860. except MetaException as o2:
  6861. msg_type = TMessageType.REPLY
  6862. result.o2 = o2
  6863. except TApplicationException as ex:
  6864. logging.exception('TApplication exception in handler')
  6865. msg_type = TMessageType.EXCEPTION
  6866. result = ex
  6867. except Exception:
  6868. logging.exception('Unexpected exception in handler')
  6869. msg_type = TMessageType.EXCEPTION
  6870. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6871. oprot.writeMessageBegin("add_foreign_key", msg_type, seqid)
  6872. result.write(oprot)
  6873. oprot.writeMessageEnd()
  6874. oprot.trans.flush()
  6875. def process_drop_table(self, seqid, iprot, oprot):
  6876. args = drop_table_args()
  6877. args.read(iprot)
  6878. iprot.readMessageEnd()
  6879. result = drop_table_result()
  6880. try:
  6881. self._handler.drop_table(args.dbname, args.name, args.deleteData)
  6882. msg_type = TMessageType.REPLY
  6883. except TTransport.TTransportException:
  6884. raise
  6885. except NoSuchObjectException as o1:
  6886. msg_type = TMessageType.REPLY
  6887. result.o1 = o1
  6888. except MetaException as o3:
  6889. msg_type = TMessageType.REPLY
  6890. result.o3 = o3
  6891. except TApplicationException as ex:
  6892. logging.exception('TApplication exception in handler')
  6893. msg_type = TMessageType.EXCEPTION
  6894. result = ex
  6895. except Exception:
  6896. logging.exception('Unexpected exception in handler')
  6897. msg_type = TMessageType.EXCEPTION
  6898. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6899. oprot.writeMessageBegin("drop_table", msg_type, seqid)
  6900. result.write(oprot)
  6901. oprot.writeMessageEnd()
  6902. oprot.trans.flush()
  6903. def process_drop_table_with_environment_context(self, seqid, iprot, oprot):
  6904. args = drop_table_with_environment_context_args()
  6905. args.read(iprot)
  6906. iprot.readMessageEnd()
  6907. result = drop_table_with_environment_context_result()
  6908. try:
  6909. self._handler.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context)
  6910. msg_type = TMessageType.REPLY
  6911. except TTransport.TTransportException:
  6912. raise
  6913. except NoSuchObjectException as o1:
  6914. msg_type = TMessageType.REPLY
  6915. result.o1 = o1
  6916. except MetaException as o3:
  6917. msg_type = TMessageType.REPLY
  6918. result.o3 = o3
  6919. except TApplicationException as ex:
  6920. logging.exception('TApplication exception in handler')
  6921. msg_type = TMessageType.EXCEPTION
  6922. result = ex
  6923. except Exception:
  6924. logging.exception('Unexpected exception in handler')
  6925. msg_type = TMessageType.EXCEPTION
  6926. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6927. oprot.writeMessageBegin("drop_table_with_environment_context", msg_type, seqid)
  6928. result.write(oprot)
  6929. oprot.writeMessageEnd()
  6930. oprot.trans.flush()
  6931. def process_get_tables(self, seqid, iprot, oprot):
  6932. args = get_tables_args()
  6933. args.read(iprot)
  6934. iprot.readMessageEnd()
  6935. result = get_tables_result()
  6936. try:
  6937. result.success = self._handler.get_tables(args.db_name, args.pattern)
  6938. msg_type = TMessageType.REPLY
  6939. except TTransport.TTransportException:
  6940. raise
  6941. except MetaException as o1:
  6942. msg_type = TMessageType.REPLY
  6943. result.o1 = o1
  6944. except TApplicationException as ex:
  6945. logging.exception('TApplication exception in handler')
  6946. msg_type = TMessageType.EXCEPTION
  6947. result = ex
  6948. except Exception:
  6949. logging.exception('Unexpected exception in handler')
  6950. msg_type = TMessageType.EXCEPTION
  6951. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6952. oprot.writeMessageBegin("get_tables", msg_type, seqid)
  6953. result.write(oprot)
  6954. oprot.writeMessageEnd()
  6955. oprot.trans.flush()
  6956. def process_get_table_meta(self, seqid, iprot, oprot):
  6957. args = get_table_meta_args()
  6958. args.read(iprot)
  6959. iprot.readMessageEnd()
  6960. result = get_table_meta_result()
  6961. try:
  6962. result.success = self._handler.get_table_meta(args.db_patterns, args.tbl_patterns, args.tbl_types)
  6963. msg_type = TMessageType.REPLY
  6964. except TTransport.TTransportException:
  6965. raise
  6966. except MetaException as o1:
  6967. msg_type = TMessageType.REPLY
  6968. result.o1 = o1
  6969. except TApplicationException as ex:
  6970. logging.exception('TApplication exception in handler')
  6971. msg_type = TMessageType.EXCEPTION
  6972. result = ex
  6973. except Exception:
  6974. logging.exception('Unexpected exception in handler')
  6975. msg_type = TMessageType.EXCEPTION
  6976. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  6977. oprot.writeMessageBegin("get_table_meta", msg_type, seqid)
  6978. result.write(oprot)
  6979. oprot.writeMessageEnd()
  6980. oprot.trans.flush()
  6981. def process_get_all_tables(self, seqid, iprot, oprot):
  6982. args = get_all_tables_args()
  6983. args.read(iprot)
  6984. iprot.readMessageEnd()
  6985. result = get_all_tables_result()
  6986. try:
  6987. result.success = self._handler.get_all_tables(args.db_name)
  6988. msg_type = TMessageType.REPLY
  6989. except TTransport.TTransportException:
  6990. raise
  6991. except MetaException as o1:
  6992. msg_type = TMessageType.REPLY
  6993. result.o1 = o1
  6994. except TApplicationException as ex:
  6995. logging.exception('TApplication exception in handler')
  6996. msg_type = TMessageType.EXCEPTION
  6997. result = ex
  6998. except Exception:
  6999. logging.exception('Unexpected exception in handler')
  7000. msg_type = TMessageType.EXCEPTION
  7001. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7002. oprot.writeMessageBegin("get_all_tables", msg_type, seqid)
  7003. result.write(oprot)
  7004. oprot.writeMessageEnd()
  7005. oprot.trans.flush()
  7006. def process_get_table(self, seqid, iprot, oprot):
  7007. args = get_table_args()
  7008. args.read(iprot)
  7009. iprot.readMessageEnd()
  7010. result = get_table_result()
  7011. try:
  7012. result.success = self._handler.get_table(args.dbname, args.tbl_name)
  7013. msg_type = TMessageType.REPLY
  7014. except TTransport.TTransportException:
  7015. raise
  7016. except MetaException as o1:
  7017. msg_type = TMessageType.REPLY
  7018. result.o1 = o1
  7019. except NoSuchObjectException as o2:
  7020. msg_type = TMessageType.REPLY
  7021. result.o2 = o2
  7022. except TApplicationException as ex:
  7023. logging.exception('TApplication exception in handler')
  7024. msg_type = TMessageType.EXCEPTION
  7025. result = ex
  7026. except Exception:
  7027. logging.exception('Unexpected exception in handler')
  7028. msg_type = TMessageType.EXCEPTION
  7029. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7030. oprot.writeMessageBegin("get_table", msg_type, seqid)
  7031. result.write(oprot)
  7032. oprot.writeMessageEnd()
  7033. oprot.trans.flush()
  7034. def process_get_table_objects_by_name(self, seqid, iprot, oprot):
  7035. args = get_table_objects_by_name_args()
  7036. args.read(iprot)
  7037. iprot.readMessageEnd()
  7038. result = get_table_objects_by_name_result()
  7039. try:
  7040. result.success = self._handler.get_table_objects_by_name(args.dbname, args.tbl_names)
  7041. msg_type = TMessageType.REPLY
  7042. except TTransport.TTransportException:
  7043. raise
  7044. except MetaException as o1:
  7045. msg_type = TMessageType.REPLY
  7046. result.o1 = o1
  7047. except InvalidOperationException as o2:
  7048. msg_type = TMessageType.REPLY
  7049. result.o2 = o2
  7050. except UnknownDBException as o3:
  7051. msg_type = TMessageType.REPLY
  7052. result.o3 = o3
  7053. except TApplicationException as ex:
  7054. logging.exception('TApplication exception in handler')
  7055. msg_type = TMessageType.EXCEPTION
  7056. result = ex
  7057. except Exception:
  7058. logging.exception('Unexpected exception in handler')
  7059. msg_type = TMessageType.EXCEPTION
  7060. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7061. oprot.writeMessageBegin("get_table_objects_by_name", msg_type, seqid)
  7062. result.write(oprot)
  7063. oprot.writeMessageEnd()
  7064. oprot.trans.flush()
  7065. def process_get_table_names_by_filter(self, seqid, iprot, oprot):
  7066. args = get_table_names_by_filter_args()
  7067. args.read(iprot)
  7068. iprot.readMessageEnd()
  7069. result = get_table_names_by_filter_result()
  7070. try:
  7071. result.success = self._handler.get_table_names_by_filter(args.dbname, args.filter, args.max_tables)
  7072. msg_type = TMessageType.REPLY
  7073. except TTransport.TTransportException:
  7074. raise
  7075. except MetaException as o1:
  7076. msg_type = TMessageType.REPLY
  7077. result.o1 = o1
  7078. except InvalidOperationException as o2:
  7079. msg_type = TMessageType.REPLY
  7080. result.o2 = o2
  7081. except UnknownDBException as o3:
  7082. msg_type = TMessageType.REPLY
  7083. result.o3 = o3
  7084. except TApplicationException as ex:
  7085. logging.exception('TApplication exception in handler')
  7086. msg_type = TMessageType.EXCEPTION
  7087. result = ex
  7088. except Exception:
  7089. logging.exception('Unexpected exception in handler')
  7090. msg_type = TMessageType.EXCEPTION
  7091. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7092. oprot.writeMessageBegin("get_table_names_by_filter", msg_type, seqid)
  7093. result.write(oprot)
  7094. oprot.writeMessageEnd()
  7095. oprot.trans.flush()
  7096. def process_alter_table(self, seqid, iprot, oprot):
  7097. args = alter_table_args()
  7098. args.read(iprot)
  7099. iprot.readMessageEnd()
  7100. result = alter_table_result()
  7101. try:
  7102. self._handler.alter_table(args.dbname, args.tbl_name, args.new_tbl)
  7103. msg_type = TMessageType.REPLY
  7104. except TTransport.TTransportException:
  7105. raise
  7106. except InvalidOperationException as o1:
  7107. msg_type = TMessageType.REPLY
  7108. result.o1 = o1
  7109. except MetaException as o2:
  7110. msg_type = TMessageType.REPLY
  7111. result.o2 = o2
  7112. except TApplicationException as ex:
  7113. logging.exception('TApplication exception in handler')
  7114. msg_type = TMessageType.EXCEPTION
  7115. result = ex
  7116. except Exception:
  7117. logging.exception('Unexpected exception in handler')
  7118. msg_type = TMessageType.EXCEPTION
  7119. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7120. oprot.writeMessageBegin("alter_table", msg_type, seqid)
  7121. result.write(oprot)
  7122. oprot.writeMessageEnd()
  7123. oprot.trans.flush()
  7124. def process_alter_table_with_environment_context(self, seqid, iprot, oprot):
  7125. args = alter_table_with_environment_context_args()
  7126. args.read(iprot)
  7127. iprot.readMessageEnd()
  7128. result = alter_table_with_environment_context_result()
  7129. try:
  7130. self._handler.alter_table_with_environment_context(args.dbname, args.tbl_name, args.new_tbl, args.environment_context)
  7131. msg_type = TMessageType.REPLY
  7132. except TTransport.TTransportException:
  7133. raise
  7134. except InvalidOperationException as o1:
  7135. msg_type = TMessageType.REPLY
  7136. result.o1 = o1
  7137. except MetaException as o2:
  7138. msg_type = TMessageType.REPLY
  7139. result.o2 = o2
  7140. except TApplicationException as ex:
  7141. logging.exception('TApplication exception in handler')
  7142. msg_type = TMessageType.EXCEPTION
  7143. result = ex
  7144. except Exception:
  7145. logging.exception('Unexpected exception in handler')
  7146. msg_type = TMessageType.EXCEPTION
  7147. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7148. oprot.writeMessageBegin("alter_table_with_environment_context", msg_type, seqid)
  7149. result.write(oprot)
  7150. oprot.writeMessageEnd()
  7151. oprot.trans.flush()
  7152. def process_alter_table_with_cascade(self, seqid, iprot, oprot):
  7153. args = alter_table_with_cascade_args()
  7154. args.read(iprot)
  7155. iprot.readMessageEnd()
  7156. result = alter_table_with_cascade_result()
  7157. try:
  7158. self._handler.alter_table_with_cascade(args.dbname, args.tbl_name, args.new_tbl, args.cascade)
  7159. msg_type = TMessageType.REPLY
  7160. except TTransport.TTransportException:
  7161. raise
  7162. except InvalidOperationException as o1:
  7163. msg_type = TMessageType.REPLY
  7164. result.o1 = o1
  7165. except MetaException as o2:
  7166. msg_type = TMessageType.REPLY
  7167. result.o2 = o2
  7168. except TApplicationException as ex:
  7169. logging.exception('TApplication exception in handler')
  7170. msg_type = TMessageType.EXCEPTION
  7171. result = ex
  7172. except Exception:
  7173. logging.exception('Unexpected exception in handler')
  7174. msg_type = TMessageType.EXCEPTION
  7175. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7176. oprot.writeMessageBegin("alter_table_with_cascade", msg_type, seqid)
  7177. result.write(oprot)
  7178. oprot.writeMessageEnd()
  7179. oprot.trans.flush()
  7180. def process_add_partition(self, seqid, iprot, oprot):
  7181. args = add_partition_args()
  7182. args.read(iprot)
  7183. iprot.readMessageEnd()
  7184. result = add_partition_result()
  7185. try:
  7186. result.success = self._handler.add_partition(args.new_part)
  7187. msg_type = TMessageType.REPLY
  7188. except TTransport.TTransportException:
  7189. raise
  7190. except InvalidObjectException as o1:
  7191. msg_type = TMessageType.REPLY
  7192. result.o1 = o1
  7193. except AlreadyExistsException as o2:
  7194. msg_type = TMessageType.REPLY
  7195. result.o2 = o2
  7196. except MetaException as o3:
  7197. msg_type = TMessageType.REPLY
  7198. result.o3 = o3
  7199. except TApplicationException as ex:
  7200. logging.exception('TApplication exception in handler')
  7201. msg_type = TMessageType.EXCEPTION
  7202. result = ex
  7203. except Exception:
  7204. logging.exception('Unexpected exception in handler')
  7205. msg_type = TMessageType.EXCEPTION
  7206. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7207. oprot.writeMessageBegin("add_partition", msg_type, seqid)
  7208. result.write(oprot)
  7209. oprot.writeMessageEnd()
  7210. oprot.trans.flush()
  7211. def process_add_partition_with_environment_context(self, seqid, iprot, oprot):
  7212. args = add_partition_with_environment_context_args()
  7213. args.read(iprot)
  7214. iprot.readMessageEnd()
  7215. result = add_partition_with_environment_context_result()
  7216. try:
  7217. result.success = self._handler.add_partition_with_environment_context(args.new_part, args.environment_context)
  7218. msg_type = TMessageType.REPLY
  7219. except TTransport.TTransportException:
  7220. raise
  7221. except InvalidObjectException as o1:
  7222. msg_type = TMessageType.REPLY
  7223. result.o1 = o1
  7224. except AlreadyExistsException as o2:
  7225. msg_type = TMessageType.REPLY
  7226. result.o2 = o2
  7227. except MetaException as o3:
  7228. msg_type = TMessageType.REPLY
  7229. result.o3 = o3
  7230. except TApplicationException as ex:
  7231. logging.exception('TApplication exception in handler')
  7232. msg_type = TMessageType.EXCEPTION
  7233. result = ex
  7234. except Exception:
  7235. logging.exception('Unexpected exception in handler')
  7236. msg_type = TMessageType.EXCEPTION
  7237. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7238. oprot.writeMessageBegin("add_partition_with_environment_context", msg_type, seqid)
  7239. result.write(oprot)
  7240. oprot.writeMessageEnd()
  7241. oprot.trans.flush()
  7242. def process_add_partitions(self, seqid, iprot, oprot):
  7243. args = add_partitions_args()
  7244. args.read(iprot)
  7245. iprot.readMessageEnd()
  7246. result = add_partitions_result()
  7247. try:
  7248. result.success = self._handler.add_partitions(args.new_parts)
  7249. msg_type = TMessageType.REPLY
  7250. except TTransport.TTransportException:
  7251. raise
  7252. except InvalidObjectException as o1:
  7253. msg_type = TMessageType.REPLY
  7254. result.o1 = o1
  7255. except AlreadyExistsException as o2:
  7256. msg_type = TMessageType.REPLY
  7257. result.o2 = o2
  7258. except MetaException as o3:
  7259. msg_type = TMessageType.REPLY
  7260. result.o3 = o3
  7261. except TApplicationException as ex:
  7262. logging.exception('TApplication exception in handler')
  7263. msg_type = TMessageType.EXCEPTION
  7264. result = ex
  7265. except Exception:
  7266. logging.exception('Unexpected exception in handler')
  7267. msg_type = TMessageType.EXCEPTION
  7268. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7269. oprot.writeMessageBegin("add_partitions", msg_type, seqid)
  7270. result.write(oprot)
  7271. oprot.writeMessageEnd()
  7272. oprot.trans.flush()
  7273. def process_add_partitions_pspec(self, seqid, iprot, oprot):
  7274. args = add_partitions_pspec_args()
  7275. args.read(iprot)
  7276. iprot.readMessageEnd()
  7277. result = add_partitions_pspec_result()
  7278. try:
  7279. result.success = self._handler.add_partitions_pspec(args.new_parts)
  7280. msg_type = TMessageType.REPLY
  7281. except TTransport.TTransportException:
  7282. raise
  7283. except InvalidObjectException as o1:
  7284. msg_type = TMessageType.REPLY
  7285. result.o1 = o1
  7286. except AlreadyExistsException as o2:
  7287. msg_type = TMessageType.REPLY
  7288. result.o2 = o2
  7289. except MetaException as o3:
  7290. msg_type = TMessageType.REPLY
  7291. result.o3 = o3
  7292. except TApplicationException as ex:
  7293. logging.exception('TApplication exception in handler')
  7294. msg_type = TMessageType.EXCEPTION
  7295. result = ex
  7296. except Exception:
  7297. logging.exception('Unexpected exception in handler')
  7298. msg_type = TMessageType.EXCEPTION
  7299. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7300. oprot.writeMessageBegin("add_partitions_pspec", msg_type, seqid)
  7301. result.write(oprot)
  7302. oprot.writeMessageEnd()
  7303. oprot.trans.flush()
  7304. def process_append_partition(self, seqid, iprot, oprot):
  7305. args = append_partition_args()
  7306. args.read(iprot)
  7307. iprot.readMessageEnd()
  7308. result = append_partition_result()
  7309. try:
  7310. result.success = self._handler.append_partition(args.db_name, args.tbl_name, args.part_vals)
  7311. msg_type = TMessageType.REPLY
  7312. except TTransport.TTransportException:
  7313. raise
  7314. except InvalidObjectException as o1:
  7315. msg_type = TMessageType.REPLY
  7316. result.o1 = o1
  7317. except AlreadyExistsException as o2:
  7318. msg_type = TMessageType.REPLY
  7319. result.o2 = o2
  7320. except MetaException as o3:
  7321. msg_type = TMessageType.REPLY
  7322. result.o3 = o3
  7323. except TApplicationException as ex:
  7324. logging.exception('TApplication exception in handler')
  7325. msg_type = TMessageType.EXCEPTION
  7326. result = ex
  7327. except Exception:
  7328. logging.exception('Unexpected exception in handler')
  7329. msg_type = TMessageType.EXCEPTION
  7330. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7331. oprot.writeMessageBegin("append_partition", msg_type, seqid)
  7332. result.write(oprot)
  7333. oprot.writeMessageEnd()
  7334. oprot.trans.flush()
  7335. def process_add_partitions_req(self, seqid, iprot, oprot):
  7336. args = add_partitions_req_args()
  7337. args.read(iprot)
  7338. iprot.readMessageEnd()
  7339. result = add_partitions_req_result()
  7340. try:
  7341. result.success = self._handler.add_partitions_req(args.request)
  7342. msg_type = TMessageType.REPLY
  7343. except TTransport.TTransportException:
  7344. raise
  7345. except InvalidObjectException as o1:
  7346. msg_type = TMessageType.REPLY
  7347. result.o1 = o1
  7348. except AlreadyExistsException as o2:
  7349. msg_type = TMessageType.REPLY
  7350. result.o2 = o2
  7351. except MetaException as o3:
  7352. msg_type = TMessageType.REPLY
  7353. result.o3 = o3
  7354. except TApplicationException as ex:
  7355. logging.exception('TApplication exception in handler')
  7356. msg_type = TMessageType.EXCEPTION
  7357. result = ex
  7358. except Exception:
  7359. logging.exception('Unexpected exception in handler')
  7360. msg_type = TMessageType.EXCEPTION
  7361. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7362. oprot.writeMessageBegin("add_partitions_req", msg_type, seqid)
  7363. result.write(oprot)
  7364. oprot.writeMessageEnd()
  7365. oprot.trans.flush()
  7366. def process_append_partition_with_environment_context(self, seqid, iprot, oprot):
  7367. args = append_partition_with_environment_context_args()
  7368. args.read(iprot)
  7369. iprot.readMessageEnd()
  7370. result = append_partition_with_environment_context_result()
  7371. try:
  7372. result.success = self._handler.append_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.environment_context)
  7373. msg_type = TMessageType.REPLY
  7374. except TTransport.TTransportException:
  7375. raise
  7376. except InvalidObjectException as o1:
  7377. msg_type = TMessageType.REPLY
  7378. result.o1 = o1
  7379. except AlreadyExistsException as o2:
  7380. msg_type = TMessageType.REPLY
  7381. result.o2 = o2
  7382. except MetaException as o3:
  7383. msg_type = TMessageType.REPLY
  7384. result.o3 = o3
  7385. except TApplicationException as ex:
  7386. logging.exception('TApplication exception in handler')
  7387. msg_type = TMessageType.EXCEPTION
  7388. result = ex
  7389. except Exception:
  7390. logging.exception('Unexpected exception in handler')
  7391. msg_type = TMessageType.EXCEPTION
  7392. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7393. oprot.writeMessageBegin("append_partition_with_environment_context", msg_type, seqid)
  7394. result.write(oprot)
  7395. oprot.writeMessageEnd()
  7396. oprot.trans.flush()
  7397. def process_append_partition_by_name(self, seqid, iprot, oprot):
  7398. args = append_partition_by_name_args()
  7399. args.read(iprot)
  7400. iprot.readMessageEnd()
  7401. result = append_partition_by_name_result()
  7402. try:
  7403. result.success = self._handler.append_partition_by_name(args.db_name, args.tbl_name, args.part_name)
  7404. msg_type = TMessageType.REPLY
  7405. except TTransport.TTransportException:
  7406. raise
  7407. except InvalidObjectException as o1:
  7408. msg_type = TMessageType.REPLY
  7409. result.o1 = o1
  7410. except AlreadyExistsException as o2:
  7411. msg_type = TMessageType.REPLY
  7412. result.o2 = o2
  7413. except MetaException as o3:
  7414. msg_type = TMessageType.REPLY
  7415. result.o3 = o3
  7416. except TApplicationException as ex:
  7417. logging.exception('TApplication exception in handler')
  7418. msg_type = TMessageType.EXCEPTION
  7419. result = ex
  7420. except Exception:
  7421. logging.exception('Unexpected exception in handler')
  7422. msg_type = TMessageType.EXCEPTION
  7423. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7424. oprot.writeMessageBegin("append_partition_by_name", msg_type, seqid)
  7425. result.write(oprot)
  7426. oprot.writeMessageEnd()
  7427. oprot.trans.flush()
  7428. def process_append_partition_by_name_with_environment_context(self, seqid, iprot, oprot):
  7429. args = append_partition_by_name_with_environment_context_args()
  7430. args.read(iprot)
  7431. iprot.readMessageEnd()
  7432. result = append_partition_by_name_with_environment_context_result()
  7433. try:
  7434. result.success = self._handler.append_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.environment_context)
  7435. msg_type = TMessageType.REPLY
  7436. except TTransport.TTransportException:
  7437. raise
  7438. except InvalidObjectException as o1:
  7439. msg_type = TMessageType.REPLY
  7440. result.o1 = o1
  7441. except AlreadyExistsException as o2:
  7442. msg_type = TMessageType.REPLY
  7443. result.o2 = o2
  7444. except MetaException as o3:
  7445. msg_type = TMessageType.REPLY
  7446. result.o3 = o3
  7447. except TApplicationException as ex:
  7448. logging.exception('TApplication exception in handler')
  7449. msg_type = TMessageType.EXCEPTION
  7450. result = ex
  7451. except Exception:
  7452. logging.exception('Unexpected exception in handler')
  7453. msg_type = TMessageType.EXCEPTION
  7454. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7455. oprot.writeMessageBegin("append_partition_by_name_with_environment_context", msg_type, seqid)
  7456. result.write(oprot)
  7457. oprot.writeMessageEnd()
  7458. oprot.trans.flush()
  7459. def process_drop_partition(self, seqid, iprot, oprot):
  7460. args = drop_partition_args()
  7461. args.read(iprot)
  7462. iprot.readMessageEnd()
  7463. result = drop_partition_result()
  7464. try:
  7465. result.success = self._handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData)
  7466. msg_type = TMessageType.REPLY
  7467. except TTransport.TTransportException:
  7468. raise
  7469. except NoSuchObjectException as o1:
  7470. msg_type = TMessageType.REPLY
  7471. result.o1 = o1
  7472. except MetaException as o2:
  7473. msg_type = TMessageType.REPLY
  7474. result.o2 = o2
  7475. except TApplicationException as ex:
  7476. logging.exception('TApplication exception in handler')
  7477. msg_type = TMessageType.EXCEPTION
  7478. result = ex
  7479. except Exception:
  7480. logging.exception('Unexpected exception in handler')
  7481. msg_type = TMessageType.EXCEPTION
  7482. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7483. oprot.writeMessageBegin("drop_partition", msg_type, seqid)
  7484. result.write(oprot)
  7485. oprot.writeMessageEnd()
  7486. oprot.trans.flush()
  7487. def process_drop_partition_with_environment_context(self, seqid, iprot, oprot):
  7488. args = drop_partition_with_environment_context_args()
  7489. args.read(iprot)
  7490. iprot.readMessageEnd()
  7491. result = drop_partition_with_environment_context_result()
  7492. try:
  7493. result.success = self._handler.drop_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context)
  7494. msg_type = TMessageType.REPLY
  7495. except TTransport.TTransportException:
  7496. raise
  7497. except NoSuchObjectException as o1:
  7498. msg_type = TMessageType.REPLY
  7499. result.o1 = o1
  7500. except MetaException as o2:
  7501. msg_type = TMessageType.REPLY
  7502. result.o2 = o2
  7503. except TApplicationException as ex:
  7504. logging.exception('TApplication exception in handler')
  7505. msg_type = TMessageType.EXCEPTION
  7506. result = ex
  7507. except Exception:
  7508. logging.exception('Unexpected exception in handler')
  7509. msg_type = TMessageType.EXCEPTION
  7510. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7511. oprot.writeMessageBegin("drop_partition_with_environment_context", msg_type, seqid)
  7512. result.write(oprot)
  7513. oprot.writeMessageEnd()
  7514. oprot.trans.flush()
  7515. def process_drop_partition_by_name(self, seqid, iprot, oprot):
  7516. args = drop_partition_by_name_args()
  7517. args.read(iprot)
  7518. iprot.readMessageEnd()
  7519. result = drop_partition_by_name_result()
  7520. try:
  7521. result.success = self._handler.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData)
  7522. msg_type = TMessageType.REPLY
  7523. except TTransport.TTransportException:
  7524. raise
  7525. except NoSuchObjectException as o1:
  7526. msg_type = TMessageType.REPLY
  7527. result.o1 = o1
  7528. except MetaException as o2:
  7529. msg_type = TMessageType.REPLY
  7530. result.o2 = o2
  7531. except TApplicationException as ex:
  7532. logging.exception('TApplication exception in handler')
  7533. msg_type = TMessageType.EXCEPTION
  7534. result = ex
  7535. except Exception:
  7536. logging.exception('Unexpected exception in handler')
  7537. msg_type = TMessageType.EXCEPTION
  7538. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7539. oprot.writeMessageBegin("drop_partition_by_name", msg_type, seqid)
  7540. result.write(oprot)
  7541. oprot.writeMessageEnd()
  7542. oprot.trans.flush()
  7543. def process_drop_partition_by_name_with_environment_context(self, seqid, iprot, oprot):
  7544. args = drop_partition_by_name_with_environment_context_args()
  7545. args.read(iprot)
  7546. iprot.readMessageEnd()
  7547. result = drop_partition_by_name_with_environment_context_result()
  7548. try:
  7549. 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)
  7550. msg_type = TMessageType.REPLY
  7551. except TTransport.TTransportException:
  7552. raise
  7553. except NoSuchObjectException as o1:
  7554. msg_type = TMessageType.REPLY
  7555. result.o1 = o1
  7556. except MetaException as o2:
  7557. msg_type = TMessageType.REPLY
  7558. result.o2 = o2
  7559. except TApplicationException as ex:
  7560. logging.exception('TApplication exception in handler')
  7561. msg_type = TMessageType.EXCEPTION
  7562. result = ex
  7563. except Exception:
  7564. logging.exception('Unexpected exception in handler')
  7565. msg_type = TMessageType.EXCEPTION
  7566. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7567. oprot.writeMessageBegin("drop_partition_by_name_with_environment_context", msg_type, seqid)
  7568. result.write(oprot)
  7569. oprot.writeMessageEnd()
  7570. oprot.trans.flush()
  7571. def process_drop_partitions_req(self, seqid, iprot, oprot):
  7572. args = drop_partitions_req_args()
  7573. args.read(iprot)
  7574. iprot.readMessageEnd()
  7575. result = drop_partitions_req_result()
  7576. try:
  7577. result.success = self._handler.drop_partitions_req(args.req)
  7578. msg_type = TMessageType.REPLY
  7579. except TTransport.TTransportException:
  7580. raise
  7581. except NoSuchObjectException as o1:
  7582. msg_type = TMessageType.REPLY
  7583. result.o1 = o1
  7584. except MetaException as o2:
  7585. msg_type = TMessageType.REPLY
  7586. result.o2 = o2
  7587. except TApplicationException as ex:
  7588. logging.exception('TApplication exception in handler')
  7589. msg_type = TMessageType.EXCEPTION
  7590. result = ex
  7591. except Exception:
  7592. logging.exception('Unexpected exception in handler')
  7593. msg_type = TMessageType.EXCEPTION
  7594. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7595. oprot.writeMessageBegin("drop_partitions_req", msg_type, seqid)
  7596. result.write(oprot)
  7597. oprot.writeMessageEnd()
  7598. oprot.trans.flush()
  7599. def process_get_partition(self, seqid, iprot, oprot):
  7600. args = get_partition_args()
  7601. args.read(iprot)
  7602. iprot.readMessageEnd()
  7603. result = get_partition_result()
  7604. try:
  7605. result.success = self._handler.get_partition(args.db_name, args.tbl_name, args.part_vals)
  7606. msg_type = TMessageType.REPLY
  7607. except TTransport.TTransportException:
  7608. raise
  7609. except MetaException as o1:
  7610. msg_type = TMessageType.REPLY
  7611. result.o1 = o1
  7612. except NoSuchObjectException as o2:
  7613. msg_type = TMessageType.REPLY
  7614. result.o2 = o2
  7615. except TApplicationException as ex:
  7616. logging.exception('TApplication exception in handler')
  7617. msg_type = TMessageType.EXCEPTION
  7618. result = ex
  7619. except Exception:
  7620. logging.exception('Unexpected exception in handler')
  7621. msg_type = TMessageType.EXCEPTION
  7622. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7623. oprot.writeMessageBegin("get_partition", msg_type, seqid)
  7624. result.write(oprot)
  7625. oprot.writeMessageEnd()
  7626. oprot.trans.flush()
  7627. def process_exchange_partition(self, seqid, iprot, oprot):
  7628. args = exchange_partition_args()
  7629. args.read(iprot)
  7630. iprot.readMessageEnd()
  7631. result = exchange_partition_result()
  7632. try:
  7633. result.success = self._handler.exchange_partition(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name)
  7634. msg_type = TMessageType.REPLY
  7635. except TTransport.TTransportException:
  7636. raise
  7637. except MetaException as o1:
  7638. msg_type = TMessageType.REPLY
  7639. result.o1 = o1
  7640. except NoSuchObjectException as o2:
  7641. msg_type = TMessageType.REPLY
  7642. result.o2 = o2
  7643. except InvalidObjectException as o3:
  7644. msg_type = TMessageType.REPLY
  7645. result.o3 = o3
  7646. except InvalidInputException as o4:
  7647. msg_type = TMessageType.REPLY
  7648. result.o4 = o4
  7649. except TApplicationException as ex:
  7650. logging.exception('TApplication exception in handler')
  7651. msg_type = TMessageType.EXCEPTION
  7652. result = ex
  7653. except Exception:
  7654. logging.exception('Unexpected exception in handler')
  7655. msg_type = TMessageType.EXCEPTION
  7656. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7657. oprot.writeMessageBegin("exchange_partition", msg_type, seqid)
  7658. result.write(oprot)
  7659. oprot.writeMessageEnd()
  7660. oprot.trans.flush()
  7661. def process_exchange_partitions(self, seqid, iprot, oprot):
  7662. args = exchange_partitions_args()
  7663. args.read(iprot)
  7664. iprot.readMessageEnd()
  7665. result = exchange_partitions_result()
  7666. try:
  7667. result.success = self._handler.exchange_partitions(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name)
  7668. msg_type = TMessageType.REPLY
  7669. except TTransport.TTransportException:
  7670. raise
  7671. except MetaException as o1:
  7672. msg_type = TMessageType.REPLY
  7673. result.o1 = o1
  7674. except NoSuchObjectException as o2:
  7675. msg_type = TMessageType.REPLY
  7676. result.o2 = o2
  7677. except InvalidObjectException as o3:
  7678. msg_type = TMessageType.REPLY
  7679. result.o3 = o3
  7680. except InvalidInputException as o4:
  7681. msg_type = TMessageType.REPLY
  7682. result.o4 = o4
  7683. except TApplicationException as ex:
  7684. logging.exception('TApplication exception in handler')
  7685. msg_type = TMessageType.EXCEPTION
  7686. result = ex
  7687. except Exception:
  7688. logging.exception('Unexpected exception in handler')
  7689. msg_type = TMessageType.EXCEPTION
  7690. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7691. oprot.writeMessageBegin("exchange_partitions", msg_type, seqid)
  7692. result.write(oprot)
  7693. oprot.writeMessageEnd()
  7694. oprot.trans.flush()
  7695. def process_get_partition_with_auth(self, seqid, iprot, oprot):
  7696. args = get_partition_with_auth_args()
  7697. args.read(iprot)
  7698. iprot.readMessageEnd()
  7699. result = get_partition_with_auth_result()
  7700. try:
  7701. result.success = self._handler.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names)
  7702. msg_type = TMessageType.REPLY
  7703. except TTransport.TTransportException:
  7704. raise
  7705. except MetaException as o1:
  7706. msg_type = TMessageType.REPLY
  7707. result.o1 = o1
  7708. except NoSuchObjectException as o2:
  7709. msg_type = TMessageType.REPLY
  7710. result.o2 = o2
  7711. except TApplicationException as ex:
  7712. logging.exception('TApplication exception in handler')
  7713. msg_type = TMessageType.EXCEPTION
  7714. result = ex
  7715. except Exception:
  7716. logging.exception('Unexpected exception in handler')
  7717. msg_type = TMessageType.EXCEPTION
  7718. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7719. oprot.writeMessageBegin("get_partition_with_auth", msg_type, seqid)
  7720. result.write(oprot)
  7721. oprot.writeMessageEnd()
  7722. oprot.trans.flush()
  7723. def process_get_partition_by_name(self, seqid, iprot, oprot):
  7724. args = get_partition_by_name_args()
  7725. args.read(iprot)
  7726. iprot.readMessageEnd()
  7727. result = get_partition_by_name_result()
  7728. try:
  7729. result.success = self._handler.get_partition_by_name(args.db_name, args.tbl_name, args.part_name)
  7730. msg_type = TMessageType.REPLY
  7731. except TTransport.TTransportException:
  7732. raise
  7733. except MetaException as o1:
  7734. msg_type = TMessageType.REPLY
  7735. result.o1 = o1
  7736. except NoSuchObjectException as o2:
  7737. msg_type = TMessageType.REPLY
  7738. result.o2 = o2
  7739. except TApplicationException as ex:
  7740. logging.exception('TApplication exception in handler')
  7741. msg_type = TMessageType.EXCEPTION
  7742. result = ex
  7743. except Exception:
  7744. logging.exception('Unexpected exception in handler')
  7745. msg_type = TMessageType.EXCEPTION
  7746. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7747. oprot.writeMessageBegin("get_partition_by_name", msg_type, seqid)
  7748. result.write(oprot)
  7749. oprot.writeMessageEnd()
  7750. oprot.trans.flush()
  7751. def process_get_partitions(self, seqid, iprot, oprot):
  7752. args = get_partitions_args()
  7753. args.read(iprot)
  7754. iprot.readMessageEnd()
  7755. result = get_partitions_result()
  7756. try:
  7757. result.success = self._handler.get_partitions(args.db_name, args.tbl_name, args.max_parts)
  7758. msg_type = TMessageType.REPLY
  7759. except TTransport.TTransportException:
  7760. raise
  7761. except NoSuchObjectException as o1:
  7762. msg_type = TMessageType.REPLY
  7763. result.o1 = o1
  7764. except MetaException as o2:
  7765. msg_type = TMessageType.REPLY
  7766. result.o2 = o2
  7767. except TApplicationException as ex:
  7768. logging.exception('TApplication exception in handler')
  7769. msg_type = TMessageType.EXCEPTION
  7770. result = ex
  7771. except Exception:
  7772. logging.exception('Unexpected exception in handler')
  7773. msg_type = TMessageType.EXCEPTION
  7774. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7775. oprot.writeMessageBegin("get_partitions", msg_type, seqid)
  7776. result.write(oprot)
  7777. oprot.writeMessageEnd()
  7778. oprot.trans.flush()
  7779. def process_get_partitions_with_auth(self, seqid, iprot, oprot):
  7780. args = get_partitions_with_auth_args()
  7781. args.read(iprot)
  7782. iprot.readMessageEnd()
  7783. result = get_partitions_with_auth_result()
  7784. try:
  7785. result.success = self._handler.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names)
  7786. msg_type = TMessageType.REPLY
  7787. except TTransport.TTransportException:
  7788. raise
  7789. except NoSuchObjectException as o1:
  7790. msg_type = TMessageType.REPLY
  7791. result.o1 = o1
  7792. except MetaException as o2:
  7793. msg_type = TMessageType.REPLY
  7794. result.o2 = o2
  7795. except TApplicationException as ex:
  7796. logging.exception('TApplication exception in handler')
  7797. msg_type = TMessageType.EXCEPTION
  7798. result = ex
  7799. except Exception:
  7800. logging.exception('Unexpected exception in handler')
  7801. msg_type = TMessageType.EXCEPTION
  7802. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7803. oprot.writeMessageBegin("get_partitions_with_auth", msg_type, seqid)
  7804. result.write(oprot)
  7805. oprot.writeMessageEnd()
  7806. oprot.trans.flush()
  7807. def process_get_partitions_pspec(self, seqid, iprot, oprot):
  7808. args = get_partitions_pspec_args()
  7809. args.read(iprot)
  7810. iprot.readMessageEnd()
  7811. result = get_partitions_pspec_result()
  7812. try:
  7813. result.success = self._handler.get_partitions_pspec(args.db_name, args.tbl_name, args.max_parts)
  7814. msg_type = TMessageType.REPLY
  7815. except TTransport.TTransportException:
  7816. raise
  7817. except NoSuchObjectException as o1:
  7818. msg_type = TMessageType.REPLY
  7819. result.o1 = o1
  7820. except MetaException as o2:
  7821. msg_type = TMessageType.REPLY
  7822. result.o2 = o2
  7823. except TApplicationException as ex:
  7824. logging.exception('TApplication exception in handler')
  7825. msg_type = TMessageType.EXCEPTION
  7826. result = ex
  7827. except Exception:
  7828. logging.exception('Unexpected exception in handler')
  7829. msg_type = TMessageType.EXCEPTION
  7830. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7831. oprot.writeMessageBegin("get_partitions_pspec", msg_type, seqid)
  7832. result.write(oprot)
  7833. oprot.writeMessageEnd()
  7834. oprot.trans.flush()
  7835. def process_get_partition_names(self, seqid, iprot, oprot):
  7836. args = get_partition_names_args()
  7837. args.read(iprot)
  7838. iprot.readMessageEnd()
  7839. result = get_partition_names_result()
  7840. try:
  7841. result.success = self._handler.get_partition_names(args.db_name, args.tbl_name, args.max_parts)
  7842. msg_type = TMessageType.REPLY
  7843. except TTransport.TTransportException:
  7844. raise
  7845. except NoSuchObjectException as o1:
  7846. msg_type = TMessageType.REPLY
  7847. result.o1 = o1
  7848. except MetaException as o2:
  7849. msg_type = TMessageType.REPLY
  7850. result.o2 = o2
  7851. except TApplicationException as ex:
  7852. logging.exception('TApplication exception in handler')
  7853. msg_type = TMessageType.EXCEPTION
  7854. result = ex
  7855. except Exception:
  7856. logging.exception('Unexpected exception in handler')
  7857. msg_type = TMessageType.EXCEPTION
  7858. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7859. oprot.writeMessageBegin("get_partition_names", msg_type, seqid)
  7860. result.write(oprot)
  7861. oprot.writeMessageEnd()
  7862. oprot.trans.flush()
  7863. def process_get_partitions_ps(self, seqid, iprot, oprot):
  7864. args = get_partitions_ps_args()
  7865. args.read(iprot)
  7866. iprot.readMessageEnd()
  7867. result = get_partitions_ps_result()
  7868. try:
  7869. result.success = self._handler.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
  7870. msg_type = TMessageType.REPLY
  7871. except TTransport.TTransportException:
  7872. raise
  7873. except MetaException as o1:
  7874. msg_type = TMessageType.REPLY
  7875. result.o1 = o1
  7876. except NoSuchObjectException as o2:
  7877. msg_type = TMessageType.REPLY
  7878. result.o2 = o2
  7879. except TApplicationException as ex:
  7880. logging.exception('TApplication exception in handler')
  7881. msg_type = TMessageType.EXCEPTION
  7882. result = ex
  7883. except Exception:
  7884. logging.exception('Unexpected exception in handler')
  7885. msg_type = TMessageType.EXCEPTION
  7886. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7887. oprot.writeMessageBegin("get_partitions_ps", msg_type, seqid)
  7888. result.write(oprot)
  7889. oprot.writeMessageEnd()
  7890. oprot.trans.flush()
  7891. def process_get_partitions_ps_with_auth(self, seqid, iprot, oprot):
  7892. args = get_partitions_ps_with_auth_args()
  7893. args.read(iprot)
  7894. iprot.readMessageEnd()
  7895. result = get_partitions_ps_with_auth_result()
  7896. try:
  7897. 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)
  7898. msg_type = TMessageType.REPLY
  7899. except TTransport.TTransportException:
  7900. raise
  7901. except NoSuchObjectException as o1:
  7902. msg_type = TMessageType.REPLY
  7903. result.o1 = o1
  7904. except MetaException as o2:
  7905. msg_type = TMessageType.REPLY
  7906. result.o2 = o2
  7907. except TApplicationException as ex:
  7908. logging.exception('TApplication exception in handler')
  7909. msg_type = TMessageType.EXCEPTION
  7910. result = ex
  7911. except Exception:
  7912. logging.exception('Unexpected exception in handler')
  7913. msg_type = TMessageType.EXCEPTION
  7914. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7915. oprot.writeMessageBegin("get_partitions_ps_with_auth", msg_type, seqid)
  7916. result.write(oprot)
  7917. oprot.writeMessageEnd()
  7918. oprot.trans.flush()
  7919. def process_get_partition_names_ps(self, seqid, iprot, oprot):
  7920. args = get_partition_names_ps_args()
  7921. args.read(iprot)
  7922. iprot.readMessageEnd()
  7923. result = get_partition_names_ps_result()
  7924. try:
  7925. result.success = self._handler.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
  7926. msg_type = TMessageType.REPLY
  7927. except TTransport.TTransportException:
  7928. raise
  7929. except MetaException as o1:
  7930. msg_type = TMessageType.REPLY
  7931. result.o1 = o1
  7932. except NoSuchObjectException as o2:
  7933. msg_type = TMessageType.REPLY
  7934. result.o2 = o2
  7935. except TApplicationException as ex:
  7936. logging.exception('TApplication exception in handler')
  7937. msg_type = TMessageType.EXCEPTION
  7938. result = ex
  7939. except Exception:
  7940. logging.exception('Unexpected exception in handler')
  7941. msg_type = TMessageType.EXCEPTION
  7942. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7943. oprot.writeMessageBegin("get_partition_names_ps", msg_type, seqid)
  7944. result.write(oprot)
  7945. oprot.writeMessageEnd()
  7946. oprot.trans.flush()
  7947. def process_get_partitions_by_filter(self, seqid, iprot, oprot):
  7948. args = get_partitions_by_filter_args()
  7949. args.read(iprot)
  7950. iprot.readMessageEnd()
  7951. result = get_partitions_by_filter_result()
  7952. try:
  7953. result.success = self._handler.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts)
  7954. msg_type = TMessageType.REPLY
  7955. except TTransport.TTransportException:
  7956. raise
  7957. except MetaException as o1:
  7958. msg_type = TMessageType.REPLY
  7959. result.o1 = o1
  7960. except NoSuchObjectException as o2:
  7961. msg_type = TMessageType.REPLY
  7962. result.o2 = o2
  7963. except TApplicationException as ex:
  7964. logging.exception('TApplication exception in handler')
  7965. msg_type = TMessageType.EXCEPTION
  7966. result = ex
  7967. except Exception:
  7968. logging.exception('Unexpected exception in handler')
  7969. msg_type = TMessageType.EXCEPTION
  7970. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7971. oprot.writeMessageBegin("get_partitions_by_filter", msg_type, seqid)
  7972. result.write(oprot)
  7973. oprot.writeMessageEnd()
  7974. oprot.trans.flush()
  7975. def process_get_part_specs_by_filter(self, seqid, iprot, oprot):
  7976. args = get_part_specs_by_filter_args()
  7977. args.read(iprot)
  7978. iprot.readMessageEnd()
  7979. result = get_part_specs_by_filter_result()
  7980. try:
  7981. result.success = self._handler.get_part_specs_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts)
  7982. msg_type = TMessageType.REPLY
  7983. except TTransport.TTransportException:
  7984. raise
  7985. except MetaException as o1:
  7986. msg_type = TMessageType.REPLY
  7987. result.o1 = o1
  7988. except NoSuchObjectException as o2:
  7989. msg_type = TMessageType.REPLY
  7990. result.o2 = o2
  7991. except TApplicationException as ex:
  7992. logging.exception('TApplication exception in handler')
  7993. msg_type = TMessageType.EXCEPTION
  7994. result = ex
  7995. except Exception:
  7996. logging.exception('Unexpected exception in handler')
  7997. msg_type = TMessageType.EXCEPTION
  7998. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  7999. oprot.writeMessageBegin("get_part_specs_by_filter", msg_type, seqid)
  8000. result.write(oprot)
  8001. oprot.writeMessageEnd()
  8002. oprot.trans.flush()
  8003. def process_get_partitions_by_expr(self, seqid, iprot, oprot):
  8004. args = get_partitions_by_expr_args()
  8005. args.read(iprot)
  8006. iprot.readMessageEnd()
  8007. result = get_partitions_by_expr_result()
  8008. try:
  8009. result.success = self._handler.get_partitions_by_expr(args.req)
  8010. msg_type = TMessageType.REPLY
  8011. except TTransport.TTransportException:
  8012. raise
  8013. except MetaException as o1:
  8014. msg_type = TMessageType.REPLY
  8015. result.o1 = o1
  8016. except NoSuchObjectException as o2:
  8017. msg_type = TMessageType.REPLY
  8018. result.o2 = o2
  8019. except TApplicationException as ex:
  8020. logging.exception('TApplication exception in handler')
  8021. msg_type = TMessageType.EXCEPTION
  8022. result = ex
  8023. except Exception:
  8024. logging.exception('Unexpected exception in handler')
  8025. msg_type = TMessageType.EXCEPTION
  8026. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8027. oprot.writeMessageBegin("get_partitions_by_expr", msg_type, seqid)
  8028. result.write(oprot)
  8029. oprot.writeMessageEnd()
  8030. oprot.trans.flush()
  8031. def process_get_num_partitions_by_filter(self, seqid, iprot, oprot):
  8032. args = get_num_partitions_by_filter_args()
  8033. args.read(iprot)
  8034. iprot.readMessageEnd()
  8035. result = get_num_partitions_by_filter_result()
  8036. try:
  8037. result.success = self._handler.get_num_partitions_by_filter(args.db_name, args.tbl_name, args.filter)
  8038. msg_type = TMessageType.REPLY
  8039. except TTransport.TTransportException:
  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 TApplicationException as ex:
  8048. logging.exception('TApplication exception in handler')
  8049. msg_type = TMessageType.EXCEPTION
  8050. result = ex
  8051. except Exception:
  8052. logging.exception('Unexpected exception in handler')
  8053. msg_type = TMessageType.EXCEPTION
  8054. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8055. oprot.writeMessageBegin("get_num_partitions_by_filter", msg_type, seqid)
  8056. result.write(oprot)
  8057. oprot.writeMessageEnd()
  8058. oprot.trans.flush()
  8059. def process_get_partitions_by_names(self, seqid, iprot, oprot):
  8060. args = get_partitions_by_names_args()
  8061. args.read(iprot)
  8062. iprot.readMessageEnd()
  8063. result = get_partitions_by_names_result()
  8064. try:
  8065. result.success = self._handler.get_partitions_by_names(args.db_name, args.tbl_name, args.names)
  8066. msg_type = TMessageType.REPLY
  8067. except TTransport.TTransportException:
  8068. raise
  8069. except MetaException as o1:
  8070. msg_type = TMessageType.REPLY
  8071. result.o1 = o1
  8072. except NoSuchObjectException as o2:
  8073. msg_type = TMessageType.REPLY
  8074. result.o2 = o2
  8075. except TApplicationException as ex:
  8076. logging.exception('TApplication exception in handler')
  8077. msg_type = TMessageType.EXCEPTION
  8078. result = ex
  8079. except Exception:
  8080. logging.exception('Unexpected exception in handler')
  8081. msg_type = TMessageType.EXCEPTION
  8082. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8083. oprot.writeMessageBegin("get_partitions_by_names", msg_type, seqid)
  8084. result.write(oprot)
  8085. oprot.writeMessageEnd()
  8086. oprot.trans.flush()
  8087. def process_alter_partition(self, seqid, iprot, oprot):
  8088. args = alter_partition_args()
  8089. args.read(iprot)
  8090. iprot.readMessageEnd()
  8091. result = alter_partition_result()
  8092. try:
  8093. self._handler.alter_partition(args.db_name, args.tbl_name, args.new_part)
  8094. msg_type = TMessageType.REPLY
  8095. except TTransport.TTransportException:
  8096. raise
  8097. except InvalidOperationException as o1:
  8098. msg_type = TMessageType.REPLY
  8099. result.o1 = o1
  8100. except MetaException as o2:
  8101. msg_type = TMessageType.REPLY
  8102. result.o2 = o2
  8103. except TApplicationException as ex:
  8104. logging.exception('TApplication exception in handler')
  8105. msg_type = TMessageType.EXCEPTION
  8106. result = ex
  8107. except Exception:
  8108. logging.exception('Unexpected exception in handler')
  8109. msg_type = TMessageType.EXCEPTION
  8110. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8111. oprot.writeMessageBegin("alter_partition", msg_type, seqid)
  8112. result.write(oprot)
  8113. oprot.writeMessageEnd()
  8114. oprot.trans.flush()
  8115. def process_alter_partitions(self, seqid, iprot, oprot):
  8116. args = alter_partitions_args()
  8117. args.read(iprot)
  8118. iprot.readMessageEnd()
  8119. result = alter_partitions_result()
  8120. try:
  8121. self._handler.alter_partitions(args.db_name, args.tbl_name, args.new_parts)
  8122. msg_type = TMessageType.REPLY
  8123. except TTransport.TTransportException:
  8124. raise
  8125. except InvalidOperationException as o1:
  8126. msg_type = TMessageType.REPLY
  8127. result.o1 = o1
  8128. except MetaException as o2:
  8129. msg_type = TMessageType.REPLY
  8130. result.o2 = o2
  8131. except TApplicationException as ex:
  8132. logging.exception('TApplication exception in handler')
  8133. msg_type = TMessageType.EXCEPTION
  8134. result = ex
  8135. except Exception:
  8136. logging.exception('Unexpected exception in handler')
  8137. msg_type = TMessageType.EXCEPTION
  8138. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8139. oprot.writeMessageBegin("alter_partitions", msg_type, seqid)
  8140. result.write(oprot)
  8141. oprot.writeMessageEnd()
  8142. oprot.trans.flush()
  8143. def process_alter_partitions_with_environment_context(self, seqid, iprot, oprot):
  8144. args = alter_partitions_with_environment_context_args()
  8145. args.read(iprot)
  8146. iprot.readMessageEnd()
  8147. result = alter_partitions_with_environment_context_result()
  8148. try:
  8149. self._handler.alter_partitions_with_environment_context(args.db_name, args.tbl_name, args.new_parts, args.environment_context)
  8150. msg_type = TMessageType.REPLY
  8151. except TTransport.TTransportException:
  8152. raise
  8153. except InvalidOperationException as o1:
  8154. msg_type = TMessageType.REPLY
  8155. result.o1 = o1
  8156. except MetaException as o2:
  8157. msg_type = TMessageType.REPLY
  8158. result.o2 = o2
  8159. except TApplicationException as ex:
  8160. logging.exception('TApplication exception in handler')
  8161. msg_type = TMessageType.EXCEPTION
  8162. result = ex
  8163. except Exception:
  8164. logging.exception('Unexpected exception in handler')
  8165. msg_type = TMessageType.EXCEPTION
  8166. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8167. oprot.writeMessageBegin("alter_partitions_with_environment_context", msg_type, seqid)
  8168. result.write(oprot)
  8169. oprot.writeMessageEnd()
  8170. oprot.trans.flush()
  8171. def process_alter_partition_with_environment_context(self, seqid, iprot, oprot):
  8172. args = alter_partition_with_environment_context_args()
  8173. args.read(iprot)
  8174. iprot.readMessageEnd()
  8175. result = alter_partition_with_environment_context_result()
  8176. try:
  8177. self._handler.alter_partition_with_environment_context(args.db_name, args.tbl_name, args.new_part, args.environment_context)
  8178. msg_type = TMessageType.REPLY
  8179. except TTransport.TTransportException:
  8180. raise
  8181. except InvalidOperationException as o1:
  8182. msg_type = TMessageType.REPLY
  8183. result.o1 = o1
  8184. except MetaException as o2:
  8185. msg_type = TMessageType.REPLY
  8186. result.o2 = o2
  8187. except TApplicationException as ex:
  8188. logging.exception('TApplication exception in handler')
  8189. msg_type = TMessageType.EXCEPTION
  8190. result = ex
  8191. except Exception:
  8192. logging.exception('Unexpected exception in handler')
  8193. msg_type = TMessageType.EXCEPTION
  8194. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8195. oprot.writeMessageBegin("alter_partition_with_environment_context", msg_type, seqid)
  8196. result.write(oprot)
  8197. oprot.writeMessageEnd()
  8198. oprot.trans.flush()
  8199. def process_rename_partition(self, seqid, iprot, oprot):
  8200. args = rename_partition_args()
  8201. args.read(iprot)
  8202. iprot.readMessageEnd()
  8203. result = rename_partition_result()
  8204. try:
  8205. self._handler.rename_partition(args.db_name, args.tbl_name, args.part_vals, args.new_part)
  8206. msg_type = TMessageType.REPLY
  8207. except TTransport.TTransportException:
  8208. raise
  8209. except InvalidOperationException as o1:
  8210. msg_type = TMessageType.REPLY
  8211. result.o1 = o1
  8212. except MetaException as o2:
  8213. msg_type = TMessageType.REPLY
  8214. result.o2 = o2
  8215. except TApplicationException as ex:
  8216. logging.exception('TApplication exception in handler')
  8217. msg_type = TMessageType.EXCEPTION
  8218. result = ex
  8219. except Exception:
  8220. logging.exception('Unexpected exception in handler')
  8221. msg_type = TMessageType.EXCEPTION
  8222. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8223. oprot.writeMessageBegin("rename_partition", msg_type, seqid)
  8224. result.write(oprot)
  8225. oprot.writeMessageEnd()
  8226. oprot.trans.flush()
  8227. def process_partition_name_has_valid_characters(self, seqid, iprot, oprot):
  8228. args = partition_name_has_valid_characters_args()
  8229. args.read(iprot)
  8230. iprot.readMessageEnd()
  8231. result = partition_name_has_valid_characters_result()
  8232. try:
  8233. result.success = self._handler.partition_name_has_valid_characters(args.part_vals, args.throw_exception)
  8234. msg_type = TMessageType.REPLY
  8235. except TTransport.TTransportException:
  8236. raise
  8237. except MetaException as o1:
  8238. msg_type = TMessageType.REPLY
  8239. result.o1 = o1
  8240. except TApplicationException as ex:
  8241. logging.exception('TApplication exception in handler')
  8242. msg_type = TMessageType.EXCEPTION
  8243. result = ex
  8244. except Exception:
  8245. logging.exception('Unexpected exception in handler')
  8246. msg_type = TMessageType.EXCEPTION
  8247. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8248. oprot.writeMessageBegin("partition_name_has_valid_characters", msg_type, seqid)
  8249. result.write(oprot)
  8250. oprot.writeMessageEnd()
  8251. oprot.trans.flush()
  8252. def process_get_config_value(self, seqid, iprot, oprot):
  8253. args = get_config_value_args()
  8254. args.read(iprot)
  8255. iprot.readMessageEnd()
  8256. result = get_config_value_result()
  8257. try:
  8258. result.success = self._handler.get_config_value(args.name, args.defaultValue)
  8259. msg_type = TMessageType.REPLY
  8260. except TTransport.TTransportException:
  8261. raise
  8262. except ConfigValSecurityException as o1:
  8263. msg_type = TMessageType.REPLY
  8264. result.o1 = o1
  8265. except TApplicationException as ex:
  8266. logging.exception('TApplication exception in handler')
  8267. msg_type = TMessageType.EXCEPTION
  8268. result = ex
  8269. except Exception:
  8270. logging.exception('Unexpected exception in handler')
  8271. msg_type = TMessageType.EXCEPTION
  8272. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8273. oprot.writeMessageBegin("get_config_value", msg_type, seqid)
  8274. result.write(oprot)
  8275. oprot.writeMessageEnd()
  8276. oprot.trans.flush()
  8277. def process_partition_name_to_vals(self, seqid, iprot, oprot):
  8278. args = partition_name_to_vals_args()
  8279. args.read(iprot)
  8280. iprot.readMessageEnd()
  8281. result = partition_name_to_vals_result()
  8282. try:
  8283. result.success = self._handler.partition_name_to_vals(args.part_name)
  8284. msg_type = TMessageType.REPLY
  8285. except TTransport.TTransportException:
  8286. raise
  8287. except MetaException as o1:
  8288. msg_type = TMessageType.REPLY
  8289. result.o1 = o1
  8290. except TApplicationException as ex:
  8291. logging.exception('TApplication exception in handler')
  8292. msg_type = TMessageType.EXCEPTION
  8293. result = ex
  8294. except Exception:
  8295. logging.exception('Unexpected exception in handler')
  8296. msg_type = TMessageType.EXCEPTION
  8297. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8298. oprot.writeMessageBegin("partition_name_to_vals", msg_type, seqid)
  8299. result.write(oprot)
  8300. oprot.writeMessageEnd()
  8301. oprot.trans.flush()
  8302. def process_partition_name_to_spec(self, seqid, iprot, oprot):
  8303. args = partition_name_to_spec_args()
  8304. args.read(iprot)
  8305. iprot.readMessageEnd()
  8306. result = partition_name_to_spec_result()
  8307. try:
  8308. result.success = self._handler.partition_name_to_spec(args.part_name)
  8309. msg_type = TMessageType.REPLY
  8310. except TTransport.TTransportException:
  8311. raise
  8312. except MetaException as o1:
  8313. msg_type = TMessageType.REPLY
  8314. result.o1 = o1
  8315. except TApplicationException as ex:
  8316. logging.exception('TApplication exception in handler')
  8317. msg_type = TMessageType.EXCEPTION
  8318. result = ex
  8319. except Exception:
  8320. logging.exception('Unexpected exception in handler')
  8321. msg_type = TMessageType.EXCEPTION
  8322. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8323. oprot.writeMessageBegin("partition_name_to_spec", msg_type, seqid)
  8324. result.write(oprot)
  8325. oprot.writeMessageEnd()
  8326. oprot.trans.flush()
  8327. def process_markPartitionForEvent(self, seqid, iprot, oprot):
  8328. args = markPartitionForEvent_args()
  8329. args.read(iprot)
  8330. iprot.readMessageEnd()
  8331. result = markPartitionForEvent_result()
  8332. try:
  8333. self._handler.markPartitionForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType)
  8334. msg_type = TMessageType.REPLY
  8335. except TTransport.TTransportException:
  8336. raise
  8337. except MetaException as o1:
  8338. msg_type = TMessageType.REPLY
  8339. result.o1 = o1
  8340. except NoSuchObjectException as o2:
  8341. msg_type = TMessageType.REPLY
  8342. result.o2 = o2
  8343. except UnknownDBException as o3:
  8344. msg_type = TMessageType.REPLY
  8345. result.o3 = o3
  8346. except UnknownTableException as o4:
  8347. msg_type = TMessageType.REPLY
  8348. result.o4 = o4
  8349. except UnknownPartitionException as o5:
  8350. msg_type = TMessageType.REPLY
  8351. result.o5 = o5
  8352. except InvalidPartitionException as o6:
  8353. msg_type = TMessageType.REPLY
  8354. result.o6 = o6
  8355. except TApplicationException as ex:
  8356. logging.exception('TApplication exception in handler')
  8357. msg_type = TMessageType.EXCEPTION
  8358. result = ex
  8359. except Exception:
  8360. logging.exception('Unexpected exception in handler')
  8361. msg_type = TMessageType.EXCEPTION
  8362. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8363. oprot.writeMessageBegin("markPartitionForEvent", msg_type, seqid)
  8364. result.write(oprot)
  8365. oprot.writeMessageEnd()
  8366. oprot.trans.flush()
  8367. def process_isPartitionMarkedForEvent(self, seqid, iprot, oprot):
  8368. args = isPartitionMarkedForEvent_args()
  8369. args.read(iprot)
  8370. iprot.readMessageEnd()
  8371. result = isPartitionMarkedForEvent_result()
  8372. try:
  8373. result.success = self._handler.isPartitionMarkedForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType)
  8374. msg_type = TMessageType.REPLY
  8375. except TTransport.TTransportException:
  8376. raise
  8377. except MetaException as o1:
  8378. msg_type = TMessageType.REPLY
  8379. result.o1 = o1
  8380. except NoSuchObjectException as o2:
  8381. msg_type = TMessageType.REPLY
  8382. result.o2 = o2
  8383. except UnknownDBException as o3:
  8384. msg_type = TMessageType.REPLY
  8385. result.o3 = o3
  8386. except UnknownTableException as o4:
  8387. msg_type = TMessageType.REPLY
  8388. result.o4 = o4
  8389. except UnknownPartitionException as o5:
  8390. msg_type = TMessageType.REPLY
  8391. result.o5 = o5
  8392. except InvalidPartitionException as o6:
  8393. msg_type = TMessageType.REPLY
  8394. result.o6 = o6
  8395. except TApplicationException as ex:
  8396. logging.exception('TApplication exception in handler')
  8397. msg_type = TMessageType.EXCEPTION
  8398. result = ex
  8399. except Exception:
  8400. logging.exception('Unexpected exception in handler')
  8401. msg_type = TMessageType.EXCEPTION
  8402. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8403. oprot.writeMessageBegin("isPartitionMarkedForEvent", msg_type, seqid)
  8404. result.write(oprot)
  8405. oprot.writeMessageEnd()
  8406. oprot.trans.flush()
  8407. def process_add_index(self, seqid, iprot, oprot):
  8408. args = add_index_args()
  8409. args.read(iprot)
  8410. iprot.readMessageEnd()
  8411. result = add_index_result()
  8412. try:
  8413. result.success = self._handler.add_index(args.new_index, args.index_table)
  8414. msg_type = TMessageType.REPLY
  8415. except TTransport.TTransportException:
  8416. raise
  8417. except InvalidObjectException as o1:
  8418. msg_type = TMessageType.REPLY
  8419. result.o1 = o1
  8420. except AlreadyExistsException as o2:
  8421. msg_type = TMessageType.REPLY
  8422. result.o2 = o2
  8423. except MetaException as o3:
  8424. msg_type = TMessageType.REPLY
  8425. result.o3 = o3
  8426. except TApplicationException as ex:
  8427. logging.exception('TApplication exception in handler')
  8428. msg_type = TMessageType.EXCEPTION
  8429. result = ex
  8430. except Exception:
  8431. logging.exception('Unexpected exception in handler')
  8432. msg_type = TMessageType.EXCEPTION
  8433. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8434. oprot.writeMessageBegin("add_index", msg_type, seqid)
  8435. result.write(oprot)
  8436. oprot.writeMessageEnd()
  8437. oprot.trans.flush()
  8438. def process_alter_index(self, seqid, iprot, oprot):
  8439. args = alter_index_args()
  8440. args.read(iprot)
  8441. iprot.readMessageEnd()
  8442. result = alter_index_result()
  8443. try:
  8444. self._handler.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx)
  8445. msg_type = TMessageType.REPLY
  8446. except TTransport.TTransportException:
  8447. raise
  8448. except InvalidOperationException as o1:
  8449. msg_type = TMessageType.REPLY
  8450. result.o1 = o1
  8451. except MetaException as o2:
  8452. msg_type = TMessageType.REPLY
  8453. result.o2 = o2
  8454. except TApplicationException as ex:
  8455. logging.exception('TApplication exception in handler')
  8456. msg_type = TMessageType.EXCEPTION
  8457. result = ex
  8458. except Exception:
  8459. logging.exception('Unexpected exception in handler')
  8460. msg_type = TMessageType.EXCEPTION
  8461. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8462. oprot.writeMessageBegin("alter_index", msg_type, seqid)
  8463. result.write(oprot)
  8464. oprot.writeMessageEnd()
  8465. oprot.trans.flush()
  8466. def process_drop_index_by_name(self, seqid, iprot, oprot):
  8467. args = drop_index_by_name_args()
  8468. args.read(iprot)
  8469. iprot.readMessageEnd()
  8470. result = drop_index_by_name_result()
  8471. try:
  8472. result.success = self._handler.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData)
  8473. msg_type = TMessageType.REPLY
  8474. except TTransport.TTransportException:
  8475. raise
  8476. except NoSuchObjectException as o1:
  8477. msg_type = TMessageType.REPLY
  8478. result.o1 = o1
  8479. except MetaException as o2:
  8480. msg_type = TMessageType.REPLY
  8481. result.o2 = o2
  8482. except TApplicationException as ex:
  8483. logging.exception('TApplication exception in handler')
  8484. msg_type = TMessageType.EXCEPTION
  8485. result = ex
  8486. except Exception:
  8487. logging.exception('Unexpected exception in handler')
  8488. msg_type = TMessageType.EXCEPTION
  8489. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8490. oprot.writeMessageBegin("drop_index_by_name", msg_type, seqid)
  8491. result.write(oprot)
  8492. oprot.writeMessageEnd()
  8493. oprot.trans.flush()
  8494. def process_get_index_by_name(self, seqid, iprot, oprot):
  8495. args = get_index_by_name_args()
  8496. args.read(iprot)
  8497. iprot.readMessageEnd()
  8498. result = get_index_by_name_result()
  8499. try:
  8500. result.success = self._handler.get_index_by_name(args.db_name, args.tbl_name, args.index_name)
  8501. msg_type = TMessageType.REPLY
  8502. except TTransport.TTransportException:
  8503. raise
  8504. except MetaException as o1:
  8505. msg_type = TMessageType.REPLY
  8506. result.o1 = o1
  8507. except NoSuchObjectException as o2:
  8508. msg_type = TMessageType.REPLY
  8509. result.o2 = o2
  8510. except TApplicationException as ex:
  8511. logging.exception('TApplication exception in handler')
  8512. msg_type = TMessageType.EXCEPTION
  8513. result = ex
  8514. except Exception:
  8515. logging.exception('Unexpected exception in handler')
  8516. msg_type = TMessageType.EXCEPTION
  8517. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8518. oprot.writeMessageBegin("get_index_by_name", msg_type, seqid)
  8519. result.write(oprot)
  8520. oprot.writeMessageEnd()
  8521. oprot.trans.flush()
  8522. def process_get_indexes(self, seqid, iprot, oprot):
  8523. args = get_indexes_args()
  8524. args.read(iprot)
  8525. iprot.readMessageEnd()
  8526. result = get_indexes_result()
  8527. try:
  8528. result.success = self._handler.get_indexes(args.db_name, args.tbl_name, args.max_indexes)
  8529. msg_type = TMessageType.REPLY
  8530. except TTransport.TTransportException:
  8531. raise
  8532. except NoSuchObjectException as o1:
  8533. msg_type = TMessageType.REPLY
  8534. result.o1 = o1
  8535. except MetaException as o2:
  8536. msg_type = TMessageType.REPLY
  8537. result.o2 = o2
  8538. except TApplicationException as ex:
  8539. logging.exception('TApplication exception in handler')
  8540. msg_type = TMessageType.EXCEPTION
  8541. result = ex
  8542. except Exception:
  8543. logging.exception('Unexpected exception in handler')
  8544. msg_type = TMessageType.EXCEPTION
  8545. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8546. oprot.writeMessageBegin("get_indexes", msg_type, seqid)
  8547. result.write(oprot)
  8548. oprot.writeMessageEnd()
  8549. oprot.trans.flush()
  8550. def process_get_index_names(self, seqid, iprot, oprot):
  8551. args = get_index_names_args()
  8552. args.read(iprot)
  8553. iprot.readMessageEnd()
  8554. result = get_index_names_result()
  8555. try:
  8556. result.success = self._handler.get_index_names(args.db_name, args.tbl_name, args.max_indexes)
  8557. msg_type = TMessageType.REPLY
  8558. except TTransport.TTransportException:
  8559. raise
  8560. except MetaException as o2:
  8561. msg_type = TMessageType.REPLY
  8562. result.o2 = o2
  8563. except TApplicationException as ex:
  8564. logging.exception('TApplication exception in handler')
  8565. msg_type = TMessageType.EXCEPTION
  8566. result = ex
  8567. except Exception:
  8568. logging.exception('Unexpected exception in handler')
  8569. msg_type = TMessageType.EXCEPTION
  8570. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8571. oprot.writeMessageBegin("get_index_names", msg_type, seqid)
  8572. result.write(oprot)
  8573. oprot.writeMessageEnd()
  8574. oprot.trans.flush()
  8575. def process_get_primary_keys(self, seqid, iprot, oprot):
  8576. args = get_primary_keys_args()
  8577. args.read(iprot)
  8578. iprot.readMessageEnd()
  8579. result = get_primary_keys_result()
  8580. try:
  8581. result.success = self._handler.get_primary_keys(args.request)
  8582. msg_type = TMessageType.REPLY
  8583. except TTransport.TTransportException:
  8584. raise
  8585. except MetaException as o1:
  8586. msg_type = TMessageType.REPLY
  8587. result.o1 = o1
  8588. except NoSuchObjectException as o2:
  8589. msg_type = TMessageType.REPLY
  8590. result.o2 = o2
  8591. except TApplicationException as ex:
  8592. logging.exception('TApplication exception in handler')
  8593. msg_type = TMessageType.EXCEPTION
  8594. result = ex
  8595. except Exception:
  8596. logging.exception('Unexpected exception in handler')
  8597. msg_type = TMessageType.EXCEPTION
  8598. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8599. oprot.writeMessageBegin("get_primary_keys", msg_type, seqid)
  8600. result.write(oprot)
  8601. oprot.writeMessageEnd()
  8602. oprot.trans.flush()
  8603. def process_get_foreign_keys(self, seqid, iprot, oprot):
  8604. args = get_foreign_keys_args()
  8605. args.read(iprot)
  8606. iprot.readMessageEnd()
  8607. result = get_foreign_keys_result()
  8608. try:
  8609. result.success = self._handler.get_foreign_keys(args.request)
  8610. msg_type = TMessageType.REPLY
  8611. except TTransport.TTransportException:
  8612. raise
  8613. except MetaException as o1:
  8614. msg_type = TMessageType.REPLY
  8615. result.o1 = o1
  8616. except NoSuchObjectException as o2:
  8617. msg_type = TMessageType.REPLY
  8618. result.o2 = o2
  8619. except TApplicationException as ex:
  8620. logging.exception('TApplication exception in handler')
  8621. msg_type = TMessageType.EXCEPTION
  8622. result = ex
  8623. except Exception:
  8624. logging.exception('Unexpected exception in handler')
  8625. msg_type = TMessageType.EXCEPTION
  8626. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8627. oprot.writeMessageBegin("get_foreign_keys", msg_type, seqid)
  8628. result.write(oprot)
  8629. oprot.writeMessageEnd()
  8630. oprot.trans.flush()
  8631. def process_update_table_column_statistics(self, seqid, iprot, oprot):
  8632. args = update_table_column_statistics_args()
  8633. args.read(iprot)
  8634. iprot.readMessageEnd()
  8635. result = update_table_column_statistics_result()
  8636. try:
  8637. result.success = self._handler.update_table_column_statistics(args.stats_obj)
  8638. msg_type = TMessageType.REPLY
  8639. except TTransport.TTransportException:
  8640. raise
  8641. except NoSuchObjectException as o1:
  8642. msg_type = TMessageType.REPLY
  8643. result.o1 = o1
  8644. except InvalidObjectException as o2:
  8645. msg_type = TMessageType.REPLY
  8646. result.o2 = o2
  8647. except MetaException as o3:
  8648. msg_type = TMessageType.REPLY
  8649. result.o3 = o3
  8650. except InvalidInputException as o4:
  8651. msg_type = TMessageType.REPLY
  8652. result.o4 = o4
  8653. except TApplicationException as ex:
  8654. logging.exception('TApplication exception in handler')
  8655. msg_type = TMessageType.EXCEPTION
  8656. result = ex
  8657. except Exception:
  8658. logging.exception('Unexpected exception in handler')
  8659. msg_type = TMessageType.EXCEPTION
  8660. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8661. oprot.writeMessageBegin("update_table_column_statistics", msg_type, seqid)
  8662. result.write(oprot)
  8663. oprot.writeMessageEnd()
  8664. oprot.trans.flush()
  8665. def process_update_partition_column_statistics(self, seqid, iprot, oprot):
  8666. args = update_partition_column_statistics_args()
  8667. args.read(iprot)
  8668. iprot.readMessageEnd()
  8669. result = update_partition_column_statistics_result()
  8670. try:
  8671. result.success = self._handler.update_partition_column_statistics(args.stats_obj)
  8672. msg_type = TMessageType.REPLY
  8673. except TTransport.TTransportException:
  8674. raise
  8675. except NoSuchObjectException as o1:
  8676. msg_type = TMessageType.REPLY
  8677. result.o1 = o1
  8678. except InvalidObjectException as o2:
  8679. msg_type = TMessageType.REPLY
  8680. result.o2 = o2
  8681. except MetaException as o3:
  8682. msg_type = TMessageType.REPLY
  8683. result.o3 = o3
  8684. except InvalidInputException as o4:
  8685. msg_type = TMessageType.REPLY
  8686. result.o4 = o4
  8687. except TApplicationException as ex:
  8688. logging.exception('TApplication exception in handler')
  8689. msg_type = TMessageType.EXCEPTION
  8690. result = ex
  8691. except Exception:
  8692. logging.exception('Unexpected exception in handler')
  8693. msg_type = TMessageType.EXCEPTION
  8694. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8695. oprot.writeMessageBegin("update_partition_column_statistics", msg_type, seqid)
  8696. result.write(oprot)
  8697. oprot.writeMessageEnd()
  8698. oprot.trans.flush()
  8699. def process_get_table_column_statistics(self, seqid, iprot, oprot):
  8700. args = get_table_column_statistics_args()
  8701. args.read(iprot)
  8702. iprot.readMessageEnd()
  8703. result = get_table_column_statistics_result()
  8704. try:
  8705. result.success = self._handler.get_table_column_statistics(args.db_name, args.tbl_name, args.col_name)
  8706. msg_type = TMessageType.REPLY
  8707. except TTransport.TTransportException:
  8708. raise
  8709. except NoSuchObjectException as o1:
  8710. msg_type = TMessageType.REPLY
  8711. result.o1 = o1
  8712. except MetaException as o2:
  8713. msg_type = TMessageType.REPLY
  8714. result.o2 = o2
  8715. except InvalidInputException as o3:
  8716. msg_type = TMessageType.REPLY
  8717. result.o3 = o3
  8718. except InvalidObjectException as o4:
  8719. msg_type = TMessageType.REPLY
  8720. result.o4 = o4
  8721. except TApplicationException as ex:
  8722. logging.exception('TApplication exception in handler')
  8723. msg_type = TMessageType.EXCEPTION
  8724. result = ex
  8725. except Exception:
  8726. logging.exception('Unexpected exception in handler')
  8727. msg_type = TMessageType.EXCEPTION
  8728. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8729. oprot.writeMessageBegin("get_table_column_statistics", msg_type, seqid)
  8730. result.write(oprot)
  8731. oprot.writeMessageEnd()
  8732. oprot.trans.flush()
  8733. def process_get_partition_column_statistics(self, seqid, iprot, oprot):
  8734. args = get_partition_column_statistics_args()
  8735. args.read(iprot)
  8736. iprot.readMessageEnd()
  8737. result = get_partition_column_statistics_result()
  8738. try:
  8739. result.success = self._handler.get_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name)
  8740. msg_type = TMessageType.REPLY
  8741. except TTransport.TTransportException:
  8742. raise
  8743. except NoSuchObjectException as o1:
  8744. msg_type = TMessageType.REPLY
  8745. result.o1 = o1
  8746. except MetaException as o2:
  8747. msg_type = TMessageType.REPLY
  8748. result.o2 = o2
  8749. except InvalidInputException as o3:
  8750. msg_type = TMessageType.REPLY
  8751. result.o3 = o3
  8752. except InvalidObjectException as o4:
  8753. msg_type = TMessageType.REPLY
  8754. result.o4 = o4
  8755. except TApplicationException as ex:
  8756. logging.exception('TApplication exception in handler')
  8757. msg_type = TMessageType.EXCEPTION
  8758. result = ex
  8759. except Exception:
  8760. logging.exception('Unexpected exception in handler')
  8761. msg_type = TMessageType.EXCEPTION
  8762. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8763. oprot.writeMessageBegin("get_partition_column_statistics", msg_type, seqid)
  8764. result.write(oprot)
  8765. oprot.writeMessageEnd()
  8766. oprot.trans.flush()
  8767. def process_get_table_statistics_req(self, seqid, iprot, oprot):
  8768. args = get_table_statistics_req_args()
  8769. args.read(iprot)
  8770. iprot.readMessageEnd()
  8771. result = get_table_statistics_req_result()
  8772. try:
  8773. result.success = self._handler.get_table_statistics_req(args.request)
  8774. msg_type = TMessageType.REPLY
  8775. except TTransport.TTransportException:
  8776. raise
  8777. except NoSuchObjectException as o1:
  8778. msg_type = TMessageType.REPLY
  8779. result.o1 = o1
  8780. except MetaException as o2:
  8781. msg_type = TMessageType.REPLY
  8782. result.o2 = o2
  8783. except TApplicationException as ex:
  8784. logging.exception('TApplication exception in handler')
  8785. msg_type = TMessageType.EXCEPTION
  8786. result = ex
  8787. except Exception:
  8788. logging.exception('Unexpected exception in handler')
  8789. msg_type = TMessageType.EXCEPTION
  8790. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8791. oprot.writeMessageBegin("get_table_statistics_req", msg_type, seqid)
  8792. result.write(oprot)
  8793. oprot.writeMessageEnd()
  8794. oprot.trans.flush()
  8795. def process_get_partitions_statistics_req(self, seqid, iprot, oprot):
  8796. args = get_partitions_statistics_req_args()
  8797. args.read(iprot)
  8798. iprot.readMessageEnd()
  8799. result = get_partitions_statistics_req_result()
  8800. try:
  8801. result.success = self._handler.get_partitions_statistics_req(args.request)
  8802. msg_type = TMessageType.REPLY
  8803. except TTransport.TTransportException:
  8804. raise
  8805. except NoSuchObjectException as o1:
  8806. msg_type = TMessageType.REPLY
  8807. result.o1 = o1
  8808. except MetaException as o2:
  8809. msg_type = TMessageType.REPLY
  8810. result.o2 = o2
  8811. except TApplicationException as ex:
  8812. logging.exception('TApplication exception in handler')
  8813. msg_type = TMessageType.EXCEPTION
  8814. result = ex
  8815. except Exception:
  8816. logging.exception('Unexpected exception in handler')
  8817. msg_type = TMessageType.EXCEPTION
  8818. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8819. oprot.writeMessageBegin("get_partitions_statistics_req", msg_type, seqid)
  8820. result.write(oprot)
  8821. oprot.writeMessageEnd()
  8822. oprot.trans.flush()
  8823. def process_get_aggr_stats_for(self, seqid, iprot, oprot):
  8824. args = get_aggr_stats_for_args()
  8825. args.read(iprot)
  8826. iprot.readMessageEnd()
  8827. result = get_aggr_stats_for_result()
  8828. try:
  8829. result.success = self._handler.get_aggr_stats_for(args.request)
  8830. msg_type = TMessageType.REPLY
  8831. except TTransport.TTransportException:
  8832. raise
  8833. except NoSuchObjectException as o1:
  8834. msg_type = TMessageType.REPLY
  8835. result.o1 = o1
  8836. except MetaException as o2:
  8837. msg_type = TMessageType.REPLY
  8838. result.o2 = o2
  8839. except TApplicationException as ex:
  8840. logging.exception('TApplication exception in handler')
  8841. msg_type = TMessageType.EXCEPTION
  8842. result = ex
  8843. except Exception:
  8844. logging.exception('Unexpected exception in handler')
  8845. msg_type = TMessageType.EXCEPTION
  8846. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8847. oprot.writeMessageBegin("get_aggr_stats_for", msg_type, seqid)
  8848. result.write(oprot)
  8849. oprot.writeMessageEnd()
  8850. oprot.trans.flush()
  8851. def process_set_aggr_stats_for(self, seqid, iprot, oprot):
  8852. args = set_aggr_stats_for_args()
  8853. args.read(iprot)
  8854. iprot.readMessageEnd()
  8855. result = set_aggr_stats_for_result()
  8856. try:
  8857. result.success = self._handler.set_aggr_stats_for(args.request)
  8858. msg_type = TMessageType.REPLY
  8859. except TTransport.TTransportException:
  8860. raise
  8861. except NoSuchObjectException as o1:
  8862. msg_type = TMessageType.REPLY
  8863. result.o1 = o1
  8864. except InvalidObjectException as o2:
  8865. msg_type = TMessageType.REPLY
  8866. result.o2 = o2
  8867. except MetaException as o3:
  8868. msg_type = TMessageType.REPLY
  8869. result.o3 = o3
  8870. except InvalidInputException as o4:
  8871. msg_type = TMessageType.REPLY
  8872. result.o4 = o4
  8873. except TApplicationException as ex:
  8874. logging.exception('TApplication exception in handler')
  8875. msg_type = TMessageType.EXCEPTION
  8876. result = ex
  8877. except Exception:
  8878. logging.exception('Unexpected exception in handler')
  8879. msg_type = TMessageType.EXCEPTION
  8880. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8881. oprot.writeMessageBegin("set_aggr_stats_for", msg_type, seqid)
  8882. result.write(oprot)
  8883. oprot.writeMessageEnd()
  8884. oprot.trans.flush()
  8885. def process_delete_partition_column_statistics(self, seqid, iprot, oprot):
  8886. args = delete_partition_column_statistics_args()
  8887. args.read(iprot)
  8888. iprot.readMessageEnd()
  8889. result = delete_partition_column_statistics_result()
  8890. try:
  8891. result.success = self._handler.delete_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name)
  8892. msg_type = TMessageType.REPLY
  8893. except TTransport.TTransportException:
  8894. raise
  8895. except NoSuchObjectException as o1:
  8896. msg_type = TMessageType.REPLY
  8897. result.o1 = o1
  8898. except MetaException as o2:
  8899. msg_type = TMessageType.REPLY
  8900. result.o2 = o2
  8901. except InvalidObjectException as o3:
  8902. msg_type = TMessageType.REPLY
  8903. result.o3 = o3
  8904. except InvalidInputException as o4:
  8905. msg_type = TMessageType.REPLY
  8906. result.o4 = o4
  8907. except TApplicationException as ex:
  8908. logging.exception('TApplication exception in handler')
  8909. msg_type = TMessageType.EXCEPTION
  8910. result = ex
  8911. except Exception:
  8912. logging.exception('Unexpected exception in handler')
  8913. msg_type = TMessageType.EXCEPTION
  8914. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8915. oprot.writeMessageBegin("delete_partition_column_statistics", msg_type, seqid)
  8916. result.write(oprot)
  8917. oprot.writeMessageEnd()
  8918. oprot.trans.flush()
  8919. def process_delete_table_column_statistics(self, seqid, iprot, oprot):
  8920. args = delete_table_column_statistics_args()
  8921. args.read(iprot)
  8922. iprot.readMessageEnd()
  8923. result = delete_table_column_statistics_result()
  8924. try:
  8925. result.success = self._handler.delete_table_column_statistics(args.db_name, args.tbl_name, args.col_name)
  8926. msg_type = TMessageType.REPLY
  8927. except TTransport.TTransportException:
  8928. raise
  8929. except NoSuchObjectException as o1:
  8930. msg_type = TMessageType.REPLY
  8931. result.o1 = o1
  8932. except MetaException as o2:
  8933. msg_type = TMessageType.REPLY
  8934. result.o2 = o2
  8935. except InvalidObjectException as o3:
  8936. msg_type = TMessageType.REPLY
  8937. result.o3 = o3
  8938. except InvalidInputException as o4:
  8939. msg_type = TMessageType.REPLY
  8940. result.o4 = o4
  8941. except TApplicationException as ex:
  8942. logging.exception('TApplication exception in handler')
  8943. msg_type = TMessageType.EXCEPTION
  8944. result = ex
  8945. except Exception:
  8946. logging.exception('Unexpected exception in handler')
  8947. msg_type = TMessageType.EXCEPTION
  8948. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8949. oprot.writeMessageBegin("delete_table_column_statistics", msg_type, seqid)
  8950. result.write(oprot)
  8951. oprot.writeMessageEnd()
  8952. oprot.trans.flush()
  8953. def process_create_function(self, seqid, iprot, oprot):
  8954. args = create_function_args()
  8955. args.read(iprot)
  8956. iprot.readMessageEnd()
  8957. result = create_function_result()
  8958. try:
  8959. self._handler.create_function(args.func)
  8960. msg_type = TMessageType.REPLY
  8961. except TTransport.TTransportException:
  8962. raise
  8963. except AlreadyExistsException as o1:
  8964. msg_type = TMessageType.REPLY
  8965. result.o1 = o1
  8966. except InvalidObjectException as o2:
  8967. msg_type = TMessageType.REPLY
  8968. result.o2 = o2
  8969. except MetaException as o3:
  8970. msg_type = TMessageType.REPLY
  8971. result.o3 = o3
  8972. except NoSuchObjectException as o4:
  8973. msg_type = TMessageType.REPLY
  8974. result.o4 = o4
  8975. except TApplicationException as ex:
  8976. logging.exception('TApplication exception in handler')
  8977. msg_type = TMessageType.EXCEPTION
  8978. result = ex
  8979. except Exception:
  8980. logging.exception('Unexpected exception in handler')
  8981. msg_type = TMessageType.EXCEPTION
  8982. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  8983. oprot.writeMessageBegin("create_function", msg_type, seqid)
  8984. result.write(oprot)
  8985. oprot.writeMessageEnd()
  8986. oprot.trans.flush()
  8987. def process_drop_function(self, seqid, iprot, oprot):
  8988. args = drop_function_args()
  8989. args.read(iprot)
  8990. iprot.readMessageEnd()
  8991. result = drop_function_result()
  8992. try:
  8993. self._handler.drop_function(args.dbName, args.funcName)
  8994. msg_type = TMessageType.REPLY
  8995. except TTransport.TTransportException:
  8996. raise
  8997. except NoSuchObjectException as o1:
  8998. msg_type = TMessageType.REPLY
  8999. result.o1 = o1
  9000. except MetaException as o3:
  9001. msg_type = TMessageType.REPLY
  9002. result.o3 = o3
  9003. except TApplicationException as ex:
  9004. logging.exception('TApplication exception in handler')
  9005. msg_type = TMessageType.EXCEPTION
  9006. result = ex
  9007. except Exception:
  9008. logging.exception('Unexpected exception in handler')
  9009. msg_type = TMessageType.EXCEPTION
  9010. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9011. oprot.writeMessageBegin("drop_function", msg_type, seqid)
  9012. result.write(oprot)
  9013. oprot.writeMessageEnd()
  9014. oprot.trans.flush()
  9015. def process_alter_function(self, seqid, iprot, oprot):
  9016. args = alter_function_args()
  9017. args.read(iprot)
  9018. iprot.readMessageEnd()
  9019. result = alter_function_result()
  9020. try:
  9021. self._handler.alter_function(args.dbName, args.funcName, args.newFunc)
  9022. msg_type = TMessageType.REPLY
  9023. except TTransport.TTransportException:
  9024. raise
  9025. except InvalidOperationException as o1:
  9026. msg_type = TMessageType.REPLY
  9027. result.o1 = o1
  9028. except MetaException as o2:
  9029. msg_type = TMessageType.REPLY
  9030. result.o2 = o2
  9031. except TApplicationException as ex:
  9032. logging.exception('TApplication exception in handler')
  9033. msg_type = TMessageType.EXCEPTION
  9034. result = ex
  9035. except Exception:
  9036. logging.exception('Unexpected exception in handler')
  9037. msg_type = TMessageType.EXCEPTION
  9038. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9039. oprot.writeMessageBegin("alter_function", msg_type, seqid)
  9040. result.write(oprot)
  9041. oprot.writeMessageEnd()
  9042. oprot.trans.flush()
  9043. def process_get_functions(self, seqid, iprot, oprot):
  9044. args = get_functions_args()
  9045. args.read(iprot)
  9046. iprot.readMessageEnd()
  9047. result = get_functions_result()
  9048. try:
  9049. result.success = self._handler.get_functions(args.dbName, args.pattern)
  9050. msg_type = TMessageType.REPLY
  9051. except TTransport.TTransportException:
  9052. raise
  9053. except MetaException as o1:
  9054. msg_type = TMessageType.REPLY
  9055. result.o1 = o1
  9056. except TApplicationException as ex:
  9057. logging.exception('TApplication exception in handler')
  9058. msg_type = TMessageType.EXCEPTION
  9059. result = ex
  9060. except Exception:
  9061. logging.exception('Unexpected exception in handler')
  9062. msg_type = TMessageType.EXCEPTION
  9063. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9064. oprot.writeMessageBegin("get_functions", msg_type, seqid)
  9065. result.write(oprot)
  9066. oprot.writeMessageEnd()
  9067. oprot.trans.flush()
  9068. def process_get_function(self, seqid, iprot, oprot):
  9069. args = get_function_args()
  9070. args.read(iprot)
  9071. iprot.readMessageEnd()
  9072. result = get_function_result()
  9073. try:
  9074. result.success = self._handler.get_function(args.dbName, args.funcName)
  9075. msg_type = TMessageType.REPLY
  9076. except TTransport.TTransportException:
  9077. raise
  9078. except MetaException as o1:
  9079. msg_type = TMessageType.REPLY
  9080. result.o1 = o1
  9081. except NoSuchObjectException as o2:
  9082. msg_type = TMessageType.REPLY
  9083. result.o2 = o2
  9084. except TApplicationException as ex:
  9085. logging.exception('TApplication exception in handler')
  9086. msg_type = TMessageType.EXCEPTION
  9087. result = ex
  9088. except Exception:
  9089. logging.exception('Unexpected exception in handler')
  9090. msg_type = TMessageType.EXCEPTION
  9091. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9092. oprot.writeMessageBegin("get_function", msg_type, seqid)
  9093. result.write(oprot)
  9094. oprot.writeMessageEnd()
  9095. oprot.trans.flush()
  9096. def process_get_all_functions(self, seqid, iprot, oprot):
  9097. args = get_all_functions_args()
  9098. args.read(iprot)
  9099. iprot.readMessageEnd()
  9100. result = get_all_functions_result()
  9101. try:
  9102. result.success = self._handler.get_all_functions()
  9103. msg_type = TMessageType.REPLY
  9104. except TTransport.TTransportException:
  9105. raise
  9106. except MetaException as o1:
  9107. msg_type = TMessageType.REPLY
  9108. result.o1 = o1
  9109. except TApplicationException as ex:
  9110. logging.exception('TApplication exception in handler')
  9111. msg_type = TMessageType.EXCEPTION
  9112. result = ex
  9113. except Exception:
  9114. logging.exception('Unexpected exception in handler')
  9115. msg_type = TMessageType.EXCEPTION
  9116. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9117. oprot.writeMessageBegin("get_all_functions", msg_type, seqid)
  9118. result.write(oprot)
  9119. oprot.writeMessageEnd()
  9120. oprot.trans.flush()
  9121. def process_create_role(self, seqid, iprot, oprot):
  9122. args = create_role_args()
  9123. args.read(iprot)
  9124. iprot.readMessageEnd()
  9125. result = create_role_result()
  9126. try:
  9127. result.success = self._handler.create_role(args.role)
  9128. msg_type = TMessageType.REPLY
  9129. except TTransport.TTransportException:
  9130. raise
  9131. except MetaException as o1:
  9132. msg_type = TMessageType.REPLY
  9133. result.o1 = o1
  9134. except TApplicationException as ex:
  9135. logging.exception('TApplication exception in handler')
  9136. msg_type = TMessageType.EXCEPTION
  9137. result = ex
  9138. except Exception:
  9139. logging.exception('Unexpected exception in handler')
  9140. msg_type = TMessageType.EXCEPTION
  9141. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9142. oprot.writeMessageBegin("create_role", msg_type, seqid)
  9143. result.write(oprot)
  9144. oprot.writeMessageEnd()
  9145. oprot.trans.flush()
  9146. def process_drop_role(self, seqid, iprot, oprot):
  9147. args = drop_role_args()
  9148. args.read(iprot)
  9149. iprot.readMessageEnd()
  9150. result = drop_role_result()
  9151. try:
  9152. result.success = self._handler.drop_role(args.role_name)
  9153. msg_type = TMessageType.REPLY
  9154. except TTransport.TTransportException:
  9155. raise
  9156. except MetaException as o1:
  9157. msg_type = TMessageType.REPLY
  9158. result.o1 = o1
  9159. except TApplicationException as ex:
  9160. logging.exception('TApplication exception in handler')
  9161. msg_type = TMessageType.EXCEPTION
  9162. result = ex
  9163. except Exception:
  9164. logging.exception('Unexpected exception in handler')
  9165. msg_type = TMessageType.EXCEPTION
  9166. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9167. oprot.writeMessageBegin("drop_role", msg_type, seqid)
  9168. result.write(oprot)
  9169. oprot.writeMessageEnd()
  9170. oprot.trans.flush()
  9171. def process_get_role_names(self, seqid, iprot, oprot):
  9172. args = get_role_names_args()
  9173. args.read(iprot)
  9174. iprot.readMessageEnd()
  9175. result = get_role_names_result()
  9176. try:
  9177. result.success = self._handler.get_role_names()
  9178. msg_type = TMessageType.REPLY
  9179. except TTransport.TTransportException:
  9180. raise
  9181. except MetaException as o1:
  9182. msg_type = TMessageType.REPLY
  9183. result.o1 = o1
  9184. except TApplicationException as ex:
  9185. logging.exception('TApplication exception in handler')
  9186. msg_type = TMessageType.EXCEPTION
  9187. result = ex
  9188. except Exception:
  9189. logging.exception('Unexpected exception in handler')
  9190. msg_type = TMessageType.EXCEPTION
  9191. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9192. oprot.writeMessageBegin("get_role_names", msg_type, seqid)
  9193. result.write(oprot)
  9194. oprot.writeMessageEnd()
  9195. oprot.trans.flush()
  9196. def process_grant_role(self, seqid, iprot, oprot):
  9197. args = grant_role_args()
  9198. args.read(iprot)
  9199. iprot.readMessageEnd()
  9200. result = grant_role_result()
  9201. try:
  9202. result.success = self._handler.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option)
  9203. msg_type = TMessageType.REPLY
  9204. except TTransport.TTransportException:
  9205. raise
  9206. except MetaException as o1:
  9207. msg_type = TMessageType.REPLY
  9208. result.o1 = o1
  9209. except TApplicationException as ex:
  9210. logging.exception('TApplication exception in handler')
  9211. msg_type = TMessageType.EXCEPTION
  9212. result = ex
  9213. except Exception:
  9214. logging.exception('Unexpected exception in handler')
  9215. msg_type = TMessageType.EXCEPTION
  9216. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9217. oprot.writeMessageBegin("grant_role", msg_type, seqid)
  9218. result.write(oprot)
  9219. oprot.writeMessageEnd()
  9220. oprot.trans.flush()
  9221. def process_revoke_role(self, seqid, iprot, oprot):
  9222. args = revoke_role_args()
  9223. args.read(iprot)
  9224. iprot.readMessageEnd()
  9225. result = revoke_role_result()
  9226. try:
  9227. result.success = self._handler.revoke_role(args.role_name, args.principal_name, args.principal_type)
  9228. msg_type = TMessageType.REPLY
  9229. except TTransport.TTransportException:
  9230. raise
  9231. except MetaException as o1:
  9232. msg_type = TMessageType.REPLY
  9233. result.o1 = o1
  9234. except TApplicationException as ex:
  9235. logging.exception('TApplication exception in handler')
  9236. msg_type = TMessageType.EXCEPTION
  9237. result = ex
  9238. except Exception:
  9239. logging.exception('Unexpected exception in handler')
  9240. msg_type = TMessageType.EXCEPTION
  9241. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9242. oprot.writeMessageBegin("revoke_role", msg_type, seqid)
  9243. result.write(oprot)
  9244. oprot.writeMessageEnd()
  9245. oprot.trans.flush()
  9246. def process_list_roles(self, seqid, iprot, oprot):
  9247. args = list_roles_args()
  9248. args.read(iprot)
  9249. iprot.readMessageEnd()
  9250. result = list_roles_result()
  9251. try:
  9252. result.success = self._handler.list_roles(args.principal_name, args.principal_type)
  9253. msg_type = TMessageType.REPLY
  9254. except TTransport.TTransportException:
  9255. raise
  9256. except MetaException as o1:
  9257. msg_type = TMessageType.REPLY
  9258. result.o1 = o1
  9259. except TApplicationException as ex:
  9260. logging.exception('TApplication exception in handler')
  9261. msg_type = TMessageType.EXCEPTION
  9262. result = ex
  9263. except Exception:
  9264. logging.exception('Unexpected exception in handler')
  9265. msg_type = TMessageType.EXCEPTION
  9266. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9267. oprot.writeMessageBegin("list_roles", msg_type, seqid)
  9268. result.write(oprot)
  9269. oprot.writeMessageEnd()
  9270. oprot.trans.flush()
  9271. def process_grant_revoke_role(self, seqid, iprot, oprot):
  9272. args = grant_revoke_role_args()
  9273. args.read(iprot)
  9274. iprot.readMessageEnd()
  9275. result = grant_revoke_role_result()
  9276. try:
  9277. result.success = self._handler.grant_revoke_role(args.request)
  9278. msg_type = TMessageType.REPLY
  9279. except TTransport.TTransportException:
  9280. raise
  9281. except MetaException as o1:
  9282. msg_type = TMessageType.REPLY
  9283. result.o1 = o1
  9284. except TApplicationException as ex:
  9285. logging.exception('TApplication exception in handler')
  9286. msg_type = TMessageType.EXCEPTION
  9287. result = ex
  9288. except Exception:
  9289. logging.exception('Unexpected exception in handler')
  9290. msg_type = TMessageType.EXCEPTION
  9291. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9292. oprot.writeMessageBegin("grant_revoke_role", msg_type, seqid)
  9293. result.write(oprot)
  9294. oprot.writeMessageEnd()
  9295. oprot.trans.flush()
  9296. def process_get_principals_in_role(self, seqid, iprot, oprot):
  9297. args = get_principals_in_role_args()
  9298. args.read(iprot)
  9299. iprot.readMessageEnd()
  9300. result = get_principals_in_role_result()
  9301. try:
  9302. result.success = self._handler.get_principals_in_role(args.request)
  9303. msg_type = TMessageType.REPLY
  9304. except TTransport.TTransportException:
  9305. raise
  9306. except MetaException as o1:
  9307. msg_type = TMessageType.REPLY
  9308. result.o1 = o1
  9309. except TApplicationException as ex:
  9310. logging.exception('TApplication exception in handler')
  9311. msg_type = TMessageType.EXCEPTION
  9312. result = ex
  9313. except Exception:
  9314. logging.exception('Unexpected exception in handler')
  9315. msg_type = TMessageType.EXCEPTION
  9316. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9317. oprot.writeMessageBegin("get_principals_in_role", msg_type, seqid)
  9318. result.write(oprot)
  9319. oprot.writeMessageEnd()
  9320. oprot.trans.flush()
  9321. def process_get_role_grants_for_principal(self, seqid, iprot, oprot):
  9322. args = get_role_grants_for_principal_args()
  9323. args.read(iprot)
  9324. iprot.readMessageEnd()
  9325. result = get_role_grants_for_principal_result()
  9326. try:
  9327. result.success = self._handler.get_role_grants_for_principal(args.request)
  9328. msg_type = TMessageType.REPLY
  9329. except TTransport.TTransportException:
  9330. raise
  9331. except MetaException as o1:
  9332. msg_type = TMessageType.REPLY
  9333. result.o1 = o1
  9334. except TApplicationException as ex:
  9335. logging.exception('TApplication exception in handler')
  9336. msg_type = TMessageType.EXCEPTION
  9337. result = ex
  9338. except Exception:
  9339. logging.exception('Unexpected exception in handler')
  9340. msg_type = TMessageType.EXCEPTION
  9341. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9342. oprot.writeMessageBegin("get_role_grants_for_principal", msg_type, seqid)
  9343. result.write(oprot)
  9344. oprot.writeMessageEnd()
  9345. oprot.trans.flush()
  9346. def process_get_privilege_set(self, seqid, iprot, oprot):
  9347. args = get_privilege_set_args()
  9348. args.read(iprot)
  9349. iprot.readMessageEnd()
  9350. result = get_privilege_set_result()
  9351. try:
  9352. result.success = self._handler.get_privilege_set(args.hiveObject, args.user_name, args.group_names)
  9353. msg_type = TMessageType.REPLY
  9354. except TTransport.TTransportException:
  9355. raise
  9356. except MetaException as o1:
  9357. msg_type = TMessageType.REPLY
  9358. result.o1 = o1
  9359. except TApplicationException as ex:
  9360. logging.exception('TApplication exception in handler')
  9361. msg_type = TMessageType.EXCEPTION
  9362. result = ex
  9363. except Exception:
  9364. logging.exception('Unexpected exception in handler')
  9365. msg_type = TMessageType.EXCEPTION
  9366. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9367. oprot.writeMessageBegin("get_privilege_set", msg_type, seqid)
  9368. result.write(oprot)
  9369. oprot.writeMessageEnd()
  9370. oprot.trans.flush()
  9371. def process_list_privileges(self, seqid, iprot, oprot):
  9372. args = list_privileges_args()
  9373. args.read(iprot)
  9374. iprot.readMessageEnd()
  9375. result = list_privileges_result()
  9376. try:
  9377. result.success = self._handler.list_privileges(args.principal_name, args.principal_type, args.hiveObject)
  9378. msg_type = TMessageType.REPLY
  9379. except TTransport.TTransportException:
  9380. raise
  9381. except MetaException as o1:
  9382. msg_type = TMessageType.REPLY
  9383. result.o1 = o1
  9384. except TApplicationException as ex:
  9385. logging.exception('TApplication exception in handler')
  9386. msg_type = TMessageType.EXCEPTION
  9387. result = ex
  9388. except Exception:
  9389. logging.exception('Unexpected exception in handler')
  9390. msg_type = TMessageType.EXCEPTION
  9391. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9392. oprot.writeMessageBegin("list_privileges", msg_type, seqid)
  9393. result.write(oprot)
  9394. oprot.writeMessageEnd()
  9395. oprot.trans.flush()
  9396. def process_grant_privileges(self, seqid, iprot, oprot):
  9397. args = grant_privileges_args()
  9398. args.read(iprot)
  9399. iprot.readMessageEnd()
  9400. result = grant_privileges_result()
  9401. try:
  9402. result.success = self._handler.grant_privileges(args.privileges)
  9403. msg_type = TMessageType.REPLY
  9404. except TTransport.TTransportException:
  9405. raise
  9406. except MetaException as o1:
  9407. msg_type = TMessageType.REPLY
  9408. result.o1 = o1
  9409. except TApplicationException as ex:
  9410. logging.exception('TApplication exception in handler')
  9411. msg_type = TMessageType.EXCEPTION
  9412. result = ex
  9413. except Exception:
  9414. logging.exception('Unexpected exception in handler')
  9415. msg_type = TMessageType.EXCEPTION
  9416. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9417. oprot.writeMessageBegin("grant_privileges", msg_type, seqid)
  9418. result.write(oprot)
  9419. oprot.writeMessageEnd()
  9420. oprot.trans.flush()
  9421. def process_revoke_privileges(self, seqid, iprot, oprot):
  9422. args = revoke_privileges_args()
  9423. args.read(iprot)
  9424. iprot.readMessageEnd()
  9425. result = revoke_privileges_result()
  9426. try:
  9427. result.success = self._handler.revoke_privileges(args.privileges)
  9428. msg_type = TMessageType.REPLY
  9429. except TTransport.TTransportException:
  9430. raise
  9431. except MetaException as o1:
  9432. msg_type = TMessageType.REPLY
  9433. result.o1 = o1
  9434. except TApplicationException as ex:
  9435. logging.exception('TApplication exception in handler')
  9436. msg_type = TMessageType.EXCEPTION
  9437. result = ex
  9438. except Exception:
  9439. logging.exception('Unexpected exception in handler')
  9440. msg_type = TMessageType.EXCEPTION
  9441. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9442. oprot.writeMessageBegin("revoke_privileges", msg_type, seqid)
  9443. result.write(oprot)
  9444. oprot.writeMessageEnd()
  9445. oprot.trans.flush()
  9446. def process_grant_revoke_privileges(self, seqid, iprot, oprot):
  9447. args = grant_revoke_privileges_args()
  9448. args.read(iprot)
  9449. iprot.readMessageEnd()
  9450. result = grant_revoke_privileges_result()
  9451. try:
  9452. result.success = self._handler.grant_revoke_privileges(args.request)
  9453. msg_type = TMessageType.REPLY
  9454. except TTransport.TTransportException:
  9455. raise
  9456. except MetaException as o1:
  9457. msg_type = TMessageType.REPLY
  9458. result.o1 = o1
  9459. except TApplicationException as ex:
  9460. logging.exception('TApplication exception in handler')
  9461. msg_type = TMessageType.EXCEPTION
  9462. result = ex
  9463. except Exception:
  9464. logging.exception('Unexpected exception in handler')
  9465. msg_type = TMessageType.EXCEPTION
  9466. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9467. oprot.writeMessageBegin("grant_revoke_privileges", msg_type, seqid)
  9468. result.write(oprot)
  9469. oprot.writeMessageEnd()
  9470. oprot.trans.flush()
  9471. def process_set_ugi(self, seqid, iprot, oprot):
  9472. args = set_ugi_args()
  9473. args.read(iprot)
  9474. iprot.readMessageEnd()
  9475. result = set_ugi_result()
  9476. try:
  9477. result.success = self._handler.set_ugi(args.user_name, args.group_names)
  9478. msg_type = TMessageType.REPLY
  9479. except TTransport.TTransportException:
  9480. raise
  9481. except MetaException as o1:
  9482. msg_type = TMessageType.REPLY
  9483. result.o1 = o1
  9484. except TApplicationException as ex:
  9485. logging.exception('TApplication exception in handler')
  9486. msg_type = TMessageType.EXCEPTION
  9487. result = ex
  9488. except Exception:
  9489. logging.exception('Unexpected exception in handler')
  9490. msg_type = TMessageType.EXCEPTION
  9491. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9492. oprot.writeMessageBegin("set_ugi", msg_type, seqid)
  9493. result.write(oprot)
  9494. oprot.writeMessageEnd()
  9495. oprot.trans.flush()
  9496. def process_get_delegation_token(self, seqid, iprot, oprot):
  9497. args = get_delegation_token_args()
  9498. args.read(iprot)
  9499. iprot.readMessageEnd()
  9500. result = get_delegation_token_result()
  9501. try:
  9502. result.success = self._handler.get_delegation_token(args.token_owner, args.renewer_kerberos_principal_name)
  9503. msg_type = TMessageType.REPLY
  9504. except TTransport.TTransportException:
  9505. raise
  9506. except MetaException as o1:
  9507. msg_type = TMessageType.REPLY
  9508. result.o1 = o1
  9509. except TApplicationException as ex:
  9510. logging.exception('TApplication exception in handler')
  9511. msg_type = TMessageType.EXCEPTION
  9512. result = ex
  9513. except Exception:
  9514. logging.exception('Unexpected exception in handler')
  9515. msg_type = TMessageType.EXCEPTION
  9516. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9517. oprot.writeMessageBegin("get_delegation_token", msg_type, seqid)
  9518. result.write(oprot)
  9519. oprot.writeMessageEnd()
  9520. oprot.trans.flush()
  9521. def process_renew_delegation_token(self, seqid, iprot, oprot):
  9522. args = renew_delegation_token_args()
  9523. args.read(iprot)
  9524. iprot.readMessageEnd()
  9525. result = renew_delegation_token_result()
  9526. try:
  9527. result.success = self._handler.renew_delegation_token(args.token_str_form)
  9528. msg_type = TMessageType.REPLY
  9529. except TTransport.TTransportException:
  9530. raise
  9531. except MetaException as o1:
  9532. msg_type = TMessageType.REPLY
  9533. result.o1 = o1
  9534. except TApplicationException as ex:
  9535. logging.exception('TApplication exception in handler')
  9536. msg_type = TMessageType.EXCEPTION
  9537. result = ex
  9538. except Exception:
  9539. logging.exception('Unexpected exception in handler')
  9540. msg_type = TMessageType.EXCEPTION
  9541. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9542. oprot.writeMessageBegin("renew_delegation_token", msg_type, seqid)
  9543. result.write(oprot)
  9544. oprot.writeMessageEnd()
  9545. oprot.trans.flush()
  9546. def process_cancel_delegation_token(self, seqid, iprot, oprot):
  9547. args = cancel_delegation_token_args()
  9548. args.read(iprot)
  9549. iprot.readMessageEnd()
  9550. result = cancel_delegation_token_result()
  9551. try:
  9552. self._handler.cancel_delegation_token(args.token_str_form)
  9553. msg_type = TMessageType.REPLY
  9554. except TTransport.TTransportException:
  9555. raise
  9556. except MetaException as o1:
  9557. msg_type = TMessageType.REPLY
  9558. result.o1 = o1
  9559. except TApplicationException as ex:
  9560. logging.exception('TApplication exception in handler')
  9561. msg_type = TMessageType.EXCEPTION
  9562. result = ex
  9563. except Exception:
  9564. logging.exception('Unexpected exception in handler')
  9565. msg_type = TMessageType.EXCEPTION
  9566. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9567. oprot.writeMessageBegin("cancel_delegation_token", msg_type, seqid)
  9568. result.write(oprot)
  9569. oprot.writeMessageEnd()
  9570. oprot.trans.flush()
  9571. def process_add_token(self, seqid, iprot, oprot):
  9572. args = add_token_args()
  9573. args.read(iprot)
  9574. iprot.readMessageEnd()
  9575. result = add_token_result()
  9576. try:
  9577. result.success = self._handler.add_token(args.token_identifier, args.delegation_token)
  9578. msg_type = TMessageType.REPLY
  9579. except TTransport.TTransportException:
  9580. raise
  9581. except TApplicationException as ex:
  9582. logging.exception('TApplication exception in handler')
  9583. msg_type = TMessageType.EXCEPTION
  9584. result = ex
  9585. except Exception:
  9586. logging.exception('Unexpected exception in handler')
  9587. msg_type = TMessageType.EXCEPTION
  9588. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9589. oprot.writeMessageBegin("add_token", msg_type, seqid)
  9590. result.write(oprot)
  9591. oprot.writeMessageEnd()
  9592. oprot.trans.flush()
  9593. def process_remove_token(self, seqid, iprot, oprot):
  9594. args = remove_token_args()
  9595. args.read(iprot)
  9596. iprot.readMessageEnd()
  9597. result = remove_token_result()
  9598. try:
  9599. result.success = self._handler.remove_token(args.token_identifier)
  9600. msg_type = TMessageType.REPLY
  9601. except TTransport.TTransportException:
  9602. raise
  9603. except TApplicationException as ex:
  9604. logging.exception('TApplication exception in handler')
  9605. msg_type = TMessageType.EXCEPTION
  9606. result = ex
  9607. except Exception:
  9608. logging.exception('Unexpected exception in handler')
  9609. msg_type = TMessageType.EXCEPTION
  9610. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9611. oprot.writeMessageBegin("remove_token", msg_type, seqid)
  9612. result.write(oprot)
  9613. oprot.writeMessageEnd()
  9614. oprot.trans.flush()
  9615. def process_get_token(self, seqid, iprot, oprot):
  9616. args = get_token_args()
  9617. args.read(iprot)
  9618. iprot.readMessageEnd()
  9619. result = get_token_result()
  9620. try:
  9621. result.success = self._handler.get_token(args.token_identifier)
  9622. msg_type = TMessageType.REPLY
  9623. except TTransport.TTransportException:
  9624. raise
  9625. except TApplicationException as ex:
  9626. logging.exception('TApplication exception in handler')
  9627. msg_type = TMessageType.EXCEPTION
  9628. result = ex
  9629. except Exception:
  9630. logging.exception('Unexpected exception in handler')
  9631. msg_type = TMessageType.EXCEPTION
  9632. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9633. oprot.writeMessageBegin("get_token", msg_type, seqid)
  9634. result.write(oprot)
  9635. oprot.writeMessageEnd()
  9636. oprot.trans.flush()
  9637. def process_get_all_token_identifiers(self, seqid, iprot, oprot):
  9638. args = get_all_token_identifiers_args()
  9639. args.read(iprot)
  9640. iprot.readMessageEnd()
  9641. result = get_all_token_identifiers_result()
  9642. try:
  9643. result.success = self._handler.get_all_token_identifiers()
  9644. msg_type = TMessageType.REPLY
  9645. except TTransport.TTransportException:
  9646. raise
  9647. except TApplicationException as ex:
  9648. logging.exception('TApplication exception in handler')
  9649. msg_type = TMessageType.EXCEPTION
  9650. result = ex
  9651. except Exception:
  9652. logging.exception('Unexpected exception in handler')
  9653. msg_type = TMessageType.EXCEPTION
  9654. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9655. oprot.writeMessageBegin("get_all_token_identifiers", msg_type, seqid)
  9656. result.write(oprot)
  9657. oprot.writeMessageEnd()
  9658. oprot.trans.flush()
  9659. def process_add_master_key(self, seqid, iprot, oprot):
  9660. args = add_master_key_args()
  9661. args.read(iprot)
  9662. iprot.readMessageEnd()
  9663. result = add_master_key_result()
  9664. try:
  9665. result.success = self._handler.add_master_key(args.key)
  9666. msg_type = TMessageType.REPLY
  9667. except TTransport.TTransportException:
  9668. raise
  9669. except MetaException as o1:
  9670. msg_type = TMessageType.REPLY
  9671. result.o1 = o1
  9672. except TApplicationException as ex:
  9673. logging.exception('TApplication exception in handler')
  9674. msg_type = TMessageType.EXCEPTION
  9675. result = ex
  9676. except Exception:
  9677. logging.exception('Unexpected exception in handler')
  9678. msg_type = TMessageType.EXCEPTION
  9679. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9680. oprot.writeMessageBegin("add_master_key", msg_type, seqid)
  9681. result.write(oprot)
  9682. oprot.writeMessageEnd()
  9683. oprot.trans.flush()
  9684. def process_update_master_key(self, seqid, iprot, oprot):
  9685. args = update_master_key_args()
  9686. args.read(iprot)
  9687. iprot.readMessageEnd()
  9688. result = update_master_key_result()
  9689. try:
  9690. self._handler.update_master_key(args.seq_number, args.key)
  9691. msg_type = TMessageType.REPLY
  9692. except TTransport.TTransportException:
  9693. raise
  9694. except NoSuchObjectException as o1:
  9695. msg_type = TMessageType.REPLY
  9696. result.o1 = o1
  9697. except MetaException as o2:
  9698. msg_type = TMessageType.REPLY
  9699. result.o2 = o2
  9700. except TApplicationException as ex:
  9701. logging.exception('TApplication exception in handler')
  9702. msg_type = TMessageType.EXCEPTION
  9703. result = ex
  9704. except Exception:
  9705. logging.exception('Unexpected exception in handler')
  9706. msg_type = TMessageType.EXCEPTION
  9707. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9708. oprot.writeMessageBegin("update_master_key", msg_type, seqid)
  9709. result.write(oprot)
  9710. oprot.writeMessageEnd()
  9711. oprot.trans.flush()
  9712. def process_remove_master_key(self, seqid, iprot, oprot):
  9713. args = remove_master_key_args()
  9714. args.read(iprot)
  9715. iprot.readMessageEnd()
  9716. result = remove_master_key_result()
  9717. try:
  9718. result.success = self._handler.remove_master_key(args.key_seq)
  9719. msg_type = TMessageType.REPLY
  9720. except TTransport.TTransportException:
  9721. raise
  9722. except TApplicationException as ex:
  9723. logging.exception('TApplication exception in handler')
  9724. msg_type = TMessageType.EXCEPTION
  9725. result = ex
  9726. except Exception:
  9727. logging.exception('Unexpected exception in handler')
  9728. msg_type = TMessageType.EXCEPTION
  9729. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9730. oprot.writeMessageBegin("remove_master_key", msg_type, seqid)
  9731. result.write(oprot)
  9732. oprot.writeMessageEnd()
  9733. oprot.trans.flush()
  9734. def process_get_master_keys(self, seqid, iprot, oprot):
  9735. args = get_master_keys_args()
  9736. args.read(iprot)
  9737. iprot.readMessageEnd()
  9738. result = get_master_keys_result()
  9739. try:
  9740. result.success = self._handler.get_master_keys()
  9741. msg_type = TMessageType.REPLY
  9742. except TTransport.TTransportException:
  9743. raise
  9744. except TApplicationException as ex:
  9745. logging.exception('TApplication exception in handler')
  9746. msg_type = TMessageType.EXCEPTION
  9747. result = ex
  9748. except Exception:
  9749. logging.exception('Unexpected exception in handler')
  9750. msg_type = TMessageType.EXCEPTION
  9751. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9752. oprot.writeMessageBegin("get_master_keys", msg_type, seqid)
  9753. result.write(oprot)
  9754. oprot.writeMessageEnd()
  9755. oprot.trans.flush()
  9756. def process_get_open_txns(self, seqid, iprot, oprot):
  9757. args = get_open_txns_args()
  9758. args.read(iprot)
  9759. iprot.readMessageEnd()
  9760. result = get_open_txns_result()
  9761. try:
  9762. result.success = self._handler.get_open_txns()
  9763. msg_type = TMessageType.REPLY
  9764. except TTransport.TTransportException:
  9765. raise
  9766. except TApplicationException as ex:
  9767. logging.exception('TApplication exception in handler')
  9768. msg_type = TMessageType.EXCEPTION
  9769. result = ex
  9770. except Exception:
  9771. logging.exception('Unexpected exception in handler')
  9772. msg_type = TMessageType.EXCEPTION
  9773. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9774. oprot.writeMessageBegin("get_open_txns", msg_type, seqid)
  9775. result.write(oprot)
  9776. oprot.writeMessageEnd()
  9777. oprot.trans.flush()
  9778. def process_get_open_txns_info(self, seqid, iprot, oprot):
  9779. args = get_open_txns_info_args()
  9780. args.read(iprot)
  9781. iprot.readMessageEnd()
  9782. result = get_open_txns_info_result()
  9783. try:
  9784. result.success = self._handler.get_open_txns_info()
  9785. msg_type = TMessageType.REPLY
  9786. except TTransport.TTransportException:
  9787. raise
  9788. except TApplicationException as ex:
  9789. logging.exception('TApplication exception in handler')
  9790. msg_type = TMessageType.EXCEPTION
  9791. result = ex
  9792. except Exception:
  9793. logging.exception('Unexpected exception in handler')
  9794. msg_type = TMessageType.EXCEPTION
  9795. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9796. oprot.writeMessageBegin("get_open_txns_info", msg_type, seqid)
  9797. result.write(oprot)
  9798. oprot.writeMessageEnd()
  9799. oprot.trans.flush()
  9800. def process_open_txns(self, seqid, iprot, oprot):
  9801. args = open_txns_args()
  9802. args.read(iprot)
  9803. iprot.readMessageEnd()
  9804. result = open_txns_result()
  9805. try:
  9806. result.success = self._handler.open_txns(args.rqst)
  9807. msg_type = TMessageType.REPLY
  9808. except TTransport.TTransportException:
  9809. raise
  9810. except TApplicationException as ex:
  9811. logging.exception('TApplication exception in handler')
  9812. msg_type = TMessageType.EXCEPTION
  9813. result = ex
  9814. except Exception:
  9815. logging.exception('Unexpected exception in handler')
  9816. msg_type = TMessageType.EXCEPTION
  9817. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9818. oprot.writeMessageBegin("open_txns", msg_type, seqid)
  9819. result.write(oprot)
  9820. oprot.writeMessageEnd()
  9821. oprot.trans.flush()
  9822. def process_abort_txn(self, seqid, iprot, oprot):
  9823. args = abort_txn_args()
  9824. args.read(iprot)
  9825. iprot.readMessageEnd()
  9826. result = abort_txn_result()
  9827. try:
  9828. self._handler.abort_txn(args.rqst)
  9829. msg_type = TMessageType.REPLY
  9830. except TTransport.TTransportException:
  9831. raise
  9832. except NoSuchTxnException as o1:
  9833. msg_type = TMessageType.REPLY
  9834. result.o1 = o1
  9835. except TApplicationException as ex:
  9836. logging.exception('TApplication exception in handler')
  9837. msg_type = TMessageType.EXCEPTION
  9838. result = ex
  9839. except Exception:
  9840. logging.exception('Unexpected exception in handler')
  9841. msg_type = TMessageType.EXCEPTION
  9842. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9843. oprot.writeMessageBegin("abort_txn", msg_type, seqid)
  9844. result.write(oprot)
  9845. oprot.writeMessageEnd()
  9846. oprot.trans.flush()
  9847. def process_abort_txns(self, seqid, iprot, oprot):
  9848. args = abort_txns_args()
  9849. args.read(iprot)
  9850. iprot.readMessageEnd()
  9851. result = abort_txns_result()
  9852. try:
  9853. self._handler.abort_txns(args.rqst)
  9854. msg_type = TMessageType.REPLY
  9855. except TTransport.TTransportException:
  9856. raise
  9857. except NoSuchTxnException as o1:
  9858. msg_type = TMessageType.REPLY
  9859. result.o1 = o1
  9860. except TApplicationException as ex:
  9861. logging.exception('TApplication exception in handler')
  9862. msg_type = TMessageType.EXCEPTION
  9863. result = ex
  9864. except Exception:
  9865. logging.exception('Unexpected exception in handler')
  9866. msg_type = TMessageType.EXCEPTION
  9867. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9868. oprot.writeMessageBegin("abort_txns", msg_type, seqid)
  9869. result.write(oprot)
  9870. oprot.writeMessageEnd()
  9871. oprot.trans.flush()
  9872. def process_commit_txn(self, seqid, iprot, oprot):
  9873. args = commit_txn_args()
  9874. args.read(iprot)
  9875. iprot.readMessageEnd()
  9876. result = commit_txn_result()
  9877. try:
  9878. self._handler.commit_txn(args.rqst)
  9879. msg_type = TMessageType.REPLY
  9880. except TTransport.TTransportException:
  9881. raise
  9882. except NoSuchTxnException as o1:
  9883. msg_type = TMessageType.REPLY
  9884. result.o1 = o1
  9885. except TxnAbortedException as o2:
  9886. msg_type = TMessageType.REPLY
  9887. result.o2 = o2
  9888. except TApplicationException as ex:
  9889. logging.exception('TApplication exception in handler')
  9890. msg_type = TMessageType.EXCEPTION
  9891. result = ex
  9892. except Exception:
  9893. logging.exception('Unexpected exception in handler')
  9894. msg_type = TMessageType.EXCEPTION
  9895. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9896. oprot.writeMessageBegin("commit_txn", msg_type, seqid)
  9897. result.write(oprot)
  9898. oprot.writeMessageEnd()
  9899. oprot.trans.flush()
  9900. def process_lock(self, seqid, iprot, oprot):
  9901. args = lock_args()
  9902. args.read(iprot)
  9903. iprot.readMessageEnd()
  9904. result = lock_result()
  9905. try:
  9906. result.success = self._handler.lock(args.rqst)
  9907. msg_type = TMessageType.REPLY
  9908. except TTransport.TTransportException:
  9909. raise
  9910. except NoSuchTxnException as o1:
  9911. msg_type = TMessageType.REPLY
  9912. result.o1 = o1
  9913. except TxnAbortedException as o2:
  9914. msg_type = TMessageType.REPLY
  9915. result.o2 = o2
  9916. except TApplicationException as ex:
  9917. logging.exception('TApplication exception in handler')
  9918. msg_type = TMessageType.EXCEPTION
  9919. result = ex
  9920. except Exception:
  9921. logging.exception('Unexpected exception in handler')
  9922. msg_type = TMessageType.EXCEPTION
  9923. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9924. oprot.writeMessageBegin("lock", msg_type, seqid)
  9925. result.write(oprot)
  9926. oprot.writeMessageEnd()
  9927. oprot.trans.flush()
  9928. def process_check_lock(self, seqid, iprot, oprot):
  9929. args = check_lock_args()
  9930. args.read(iprot)
  9931. iprot.readMessageEnd()
  9932. result = check_lock_result()
  9933. try:
  9934. result.success = self._handler.check_lock(args.rqst)
  9935. msg_type = TMessageType.REPLY
  9936. except TTransport.TTransportException:
  9937. raise
  9938. except NoSuchTxnException as o1:
  9939. msg_type = TMessageType.REPLY
  9940. result.o1 = o1
  9941. except TxnAbortedException as o2:
  9942. msg_type = TMessageType.REPLY
  9943. result.o2 = o2
  9944. except NoSuchLockException as o3:
  9945. msg_type = TMessageType.REPLY
  9946. result.o3 = o3
  9947. except TApplicationException as ex:
  9948. logging.exception('TApplication exception in handler')
  9949. msg_type = TMessageType.EXCEPTION
  9950. result = ex
  9951. except Exception:
  9952. logging.exception('Unexpected exception in handler')
  9953. msg_type = TMessageType.EXCEPTION
  9954. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9955. oprot.writeMessageBegin("check_lock", msg_type, seqid)
  9956. result.write(oprot)
  9957. oprot.writeMessageEnd()
  9958. oprot.trans.flush()
  9959. def process_unlock(self, seqid, iprot, oprot):
  9960. args = unlock_args()
  9961. args.read(iprot)
  9962. iprot.readMessageEnd()
  9963. result = unlock_result()
  9964. try:
  9965. self._handler.unlock(args.rqst)
  9966. msg_type = TMessageType.REPLY
  9967. except TTransport.TTransportException:
  9968. raise
  9969. except NoSuchLockException as o1:
  9970. msg_type = TMessageType.REPLY
  9971. result.o1 = o1
  9972. except TxnOpenException as o2:
  9973. msg_type = TMessageType.REPLY
  9974. result.o2 = o2
  9975. except TApplicationException as ex:
  9976. logging.exception('TApplication exception in handler')
  9977. msg_type = TMessageType.EXCEPTION
  9978. result = ex
  9979. except Exception:
  9980. logging.exception('Unexpected exception in handler')
  9981. msg_type = TMessageType.EXCEPTION
  9982. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  9983. oprot.writeMessageBegin("unlock", msg_type, seqid)
  9984. result.write(oprot)
  9985. oprot.writeMessageEnd()
  9986. oprot.trans.flush()
  9987. def process_show_locks(self, seqid, iprot, oprot):
  9988. args = show_locks_args()
  9989. args.read(iprot)
  9990. iprot.readMessageEnd()
  9991. result = show_locks_result()
  9992. try:
  9993. result.success = self._handler.show_locks(args.rqst)
  9994. msg_type = TMessageType.REPLY
  9995. except TTransport.TTransportException:
  9996. raise
  9997. except TApplicationException as ex:
  9998. logging.exception('TApplication exception in handler')
  9999. msg_type = TMessageType.EXCEPTION
  10000. result = ex
  10001. except Exception:
  10002. logging.exception('Unexpected exception in handler')
  10003. msg_type = TMessageType.EXCEPTION
  10004. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10005. oprot.writeMessageBegin("show_locks", msg_type, seqid)
  10006. result.write(oprot)
  10007. oprot.writeMessageEnd()
  10008. oprot.trans.flush()
  10009. def process_heartbeat(self, seqid, iprot, oprot):
  10010. args = heartbeat_args()
  10011. args.read(iprot)
  10012. iprot.readMessageEnd()
  10013. result = heartbeat_result()
  10014. try:
  10015. self._handler.heartbeat(args.ids)
  10016. msg_type = TMessageType.REPLY
  10017. except TTransport.TTransportException:
  10018. raise
  10019. except NoSuchLockException as o1:
  10020. msg_type = TMessageType.REPLY
  10021. result.o1 = o1
  10022. except NoSuchTxnException as o2:
  10023. msg_type = TMessageType.REPLY
  10024. result.o2 = o2
  10025. except TxnAbortedException as o3:
  10026. msg_type = TMessageType.REPLY
  10027. result.o3 = o3
  10028. except TApplicationException as ex:
  10029. logging.exception('TApplication exception in handler')
  10030. msg_type = TMessageType.EXCEPTION
  10031. result = ex
  10032. except Exception:
  10033. logging.exception('Unexpected exception in handler')
  10034. msg_type = TMessageType.EXCEPTION
  10035. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10036. oprot.writeMessageBegin("heartbeat", msg_type, seqid)
  10037. result.write(oprot)
  10038. oprot.writeMessageEnd()
  10039. oprot.trans.flush()
  10040. def process_heartbeat_txn_range(self, seqid, iprot, oprot):
  10041. args = heartbeat_txn_range_args()
  10042. args.read(iprot)
  10043. iprot.readMessageEnd()
  10044. result = heartbeat_txn_range_result()
  10045. try:
  10046. result.success = self._handler.heartbeat_txn_range(args.txns)
  10047. msg_type = TMessageType.REPLY
  10048. except TTransport.TTransportException:
  10049. raise
  10050. except TApplicationException as ex:
  10051. logging.exception('TApplication exception in handler')
  10052. msg_type = TMessageType.EXCEPTION
  10053. result = ex
  10054. except Exception:
  10055. logging.exception('Unexpected exception in handler')
  10056. msg_type = TMessageType.EXCEPTION
  10057. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10058. oprot.writeMessageBegin("heartbeat_txn_range", msg_type, seqid)
  10059. result.write(oprot)
  10060. oprot.writeMessageEnd()
  10061. oprot.trans.flush()
  10062. def process_compact(self, seqid, iprot, oprot):
  10063. args = compact_args()
  10064. args.read(iprot)
  10065. iprot.readMessageEnd()
  10066. result = compact_result()
  10067. try:
  10068. self._handler.compact(args.rqst)
  10069. msg_type = TMessageType.REPLY
  10070. except TTransport.TTransportException:
  10071. raise
  10072. except TApplicationException as ex:
  10073. logging.exception('TApplication exception in handler')
  10074. msg_type = TMessageType.EXCEPTION
  10075. result = ex
  10076. except Exception:
  10077. logging.exception('Unexpected exception in handler')
  10078. msg_type = TMessageType.EXCEPTION
  10079. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10080. oprot.writeMessageBegin("compact", msg_type, seqid)
  10081. result.write(oprot)
  10082. oprot.writeMessageEnd()
  10083. oprot.trans.flush()
  10084. def process_show_compact(self, seqid, iprot, oprot):
  10085. args = show_compact_args()
  10086. args.read(iprot)
  10087. iprot.readMessageEnd()
  10088. result = show_compact_result()
  10089. try:
  10090. result.success = self._handler.show_compact(args.rqst)
  10091. msg_type = TMessageType.REPLY
  10092. except TTransport.TTransportException:
  10093. raise
  10094. except TApplicationException as ex:
  10095. logging.exception('TApplication exception in handler')
  10096. msg_type = TMessageType.EXCEPTION
  10097. result = ex
  10098. except Exception:
  10099. logging.exception('Unexpected exception in handler')
  10100. msg_type = TMessageType.EXCEPTION
  10101. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10102. oprot.writeMessageBegin("show_compact", msg_type, seqid)
  10103. result.write(oprot)
  10104. oprot.writeMessageEnd()
  10105. oprot.trans.flush()
  10106. def process_add_dynamic_partitions(self, seqid, iprot, oprot):
  10107. args = add_dynamic_partitions_args()
  10108. args.read(iprot)
  10109. iprot.readMessageEnd()
  10110. result = add_dynamic_partitions_result()
  10111. try:
  10112. self._handler.add_dynamic_partitions(args.rqst)
  10113. msg_type = TMessageType.REPLY
  10114. except TTransport.TTransportException:
  10115. raise
  10116. except NoSuchTxnException as o1:
  10117. msg_type = TMessageType.REPLY
  10118. result.o1 = o1
  10119. except TxnAbortedException as o2:
  10120. msg_type = TMessageType.REPLY
  10121. result.o2 = o2
  10122. except TApplicationException as ex:
  10123. logging.exception('TApplication exception in handler')
  10124. msg_type = TMessageType.EXCEPTION
  10125. result = ex
  10126. except Exception:
  10127. logging.exception('Unexpected exception in handler')
  10128. msg_type = TMessageType.EXCEPTION
  10129. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10130. oprot.writeMessageBegin("add_dynamic_partitions", msg_type, seqid)
  10131. result.write(oprot)
  10132. oprot.writeMessageEnd()
  10133. oprot.trans.flush()
  10134. def process_get_next_notification(self, seqid, iprot, oprot):
  10135. args = get_next_notification_args()
  10136. args.read(iprot)
  10137. iprot.readMessageEnd()
  10138. result = get_next_notification_result()
  10139. try:
  10140. result.success = self._handler.get_next_notification(args.rqst)
  10141. msg_type = TMessageType.REPLY
  10142. except TTransport.TTransportException:
  10143. raise
  10144. except TApplicationException as ex:
  10145. logging.exception('TApplication exception in handler')
  10146. msg_type = TMessageType.EXCEPTION
  10147. result = ex
  10148. except Exception:
  10149. logging.exception('Unexpected exception in handler')
  10150. msg_type = TMessageType.EXCEPTION
  10151. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10152. oprot.writeMessageBegin("get_next_notification", msg_type, seqid)
  10153. result.write(oprot)
  10154. oprot.writeMessageEnd()
  10155. oprot.trans.flush()
  10156. def process_get_current_notificationEventId(self, seqid, iprot, oprot):
  10157. args = get_current_notificationEventId_args()
  10158. args.read(iprot)
  10159. iprot.readMessageEnd()
  10160. result = get_current_notificationEventId_result()
  10161. try:
  10162. result.success = self._handler.get_current_notificationEventId()
  10163. msg_type = TMessageType.REPLY
  10164. except TTransport.TTransportException:
  10165. raise
  10166. except TApplicationException as ex:
  10167. logging.exception('TApplication exception in handler')
  10168. msg_type = TMessageType.EXCEPTION
  10169. result = ex
  10170. except Exception:
  10171. logging.exception('Unexpected exception in handler')
  10172. msg_type = TMessageType.EXCEPTION
  10173. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10174. oprot.writeMessageBegin("get_current_notificationEventId", msg_type, seqid)
  10175. result.write(oprot)
  10176. oprot.writeMessageEnd()
  10177. oprot.trans.flush()
  10178. def process_fire_listener_event(self, seqid, iprot, oprot):
  10179. args = fire_listener_event_args()
  10180. args.read(iprot)
  10181. iprot.readMessageEnd()
  10182. result = fire_listener_event_result()
  10183. try:
  10184. result.success = self._handler.fire_listener_event(args.rqst)
  10185. msg_type = TMessageType.REPLY
  10186. except TTransport.TTransportException:
  10187. raise
  10188. except TApplicationException as ex:
  10189. logging.exception('TApplication exception in handler')
  10190. msg_type = TMessageType.EXCEPTION
  10191. result = ex
  10192. except Exception:
  10193. logging.exception('Unexpected exception in handler')
  10194. msg_type = TMessageType.EXCEPTION
  10195. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10196. oprot.writeMessageBegin("fire_listener_event", msg_type, seqid)
  10197. result.write(oprot)
  10198. oprot.writeMessageEnd()
  10199. oprot.trans.flush()
  10200. def process_flushCache(self, seqid, iprot, oprot):
  10201. args = flushCache_args()
  10202. args.read(iprot)
  10203. iprot.readMessageEnd()
  10204. result = flushCache_result()
  10205. try:
  10206. self._handler.flushCache()
  10207. msg_type = TMessageType.REPLY
  10208. except TTransport.TTransportException:
  10209. raise
  10210. except TApplicationException as ex:
  10211. logging.exception('TApplication exception in handler')
  10212. msg_type = TMessageType.EXCEPTION
  10213. result = ex
  10214. except Exception:
  10215. logging.exception('Unexpected exception in handler')
  10216. msg_type = TMessageType.EXCEPTION
  10217. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10218. oprot.writeMessageBegin("flushCache", msg_type, seqid)
  10219. result.write(oprot)
  10220. oprot.writeMessageEnd()
  10221. oprot.trans.flush()
  10222. def process_get_file_metadata_by_expr(self, seqid, iprot, oprot):
  10223. args = get_file_metadata_by_expr_args()
  10224. args.read(iprot)
  10225. iprot.readMessageEnd()
  10226. result = get_file_metadata_by_expr_result()
  10227. try:
  10228. result.success = self._handler.get_file_metadata_by_expr(args.req)
  10229. msg_type = TMessageType.REPLY
  10230. except TTransport.TTransportException:
  10231. raise
  10232. except TApplicationException as ex:
  10233. logging.exception('TApplication exception in handler')
  10234. msg_type = TMessageType.EXCEPTION
  10235. result = ex
  10236. except Exception:
  10237. logging.exception('Unexpected exception in handler')
  10238. msg_type = TMessageType.EXCEPTION
  10239. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10240. oprot.writeMessageBegin("get_file_metadata_by_expr", msg_type, seqid)
  10241. result.write(oprot)
  10242. oprot.writeMessageEnd()
  10243. oprot.trans.flush()
  10244. def process_get_file_metadata(self, seqid, iprot, oprot):
  10245. args = get_file_metadata_args()
  10246. args.read(iprot)
  10247. iprot.readMessageEnd()
  10248. result = get_file_metadata_result()
  10249. try:
  10250. result.success = self._handler.get_file_metadata(args.req)
  10251. msg_type = TMessageType.REPLY
  10252. except TTransport.TTransportException:
  10253. raise
  10254. except TApplicationException as ex:
  10255. logging.exception('TApplication exception in handler')
  10256. msg_type = TMessageType.EXCEPTION
  10257. result = ex
  10258. except Exception:
  10259. logging.exception('Unexpected exception in handler')
  10260. msg_type = TMessageType.EXCEPTION
  10261. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10262. oprot.writeMessageBegin("get_file_metadata", msg_type, seqid)
  10263. result.write(oprot)
  10264. oprot.writeMessageEnd()
  10265. oprot.trans.flush()
  10266. def process_put_file_metadata(self, seqid, iprot, oprot):
  10267. args = put_file_metadata_args()
  10268. args.read(iprot)
  10269. iprot.readMessageEnd()
  10270. result = put_file_metadata_result()
  10271. try:
  10272. result.success = self._handler.put_file_metadata(args.req)
  10273. msg_type = TMessageType.REPLY
  10274. except TTransport.TTransportException:
  10275. raise
  10276. except TApplicationException as ex:
  10277. logging.exception('TApplication exception in handler')
  10278. msg_type = TMessageType.EXCEPTION
  10279. result = ex
  10280. except Exception:
  10281. logging.exception('Unexpected exception in handler')
  10282. msg_type = TMessageType.EXCEPTION
  10283. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10284. oprot.writeMessageBegin("put_file_metadata", msg_type, seqid)
  10285. result.write(oprot)
  10286. oprot.writeMessageEnd()
  10287. oprot.trans.flush()
  10288. def process_clear_file_metadata(self, seqid, iprot, oprot):
  10289. args = clear_file_metadata_args()
  10290. args.read(iprot)
  10291. iprot.readMessageEnd()
  10292. result = clear_file_metadata_result()
  10293. try:
  10294. result.success = self._handler.clear_file_metadata(args.req)
  10295. msg_type = TMessageType.REPLY
  10296. except TTransport.TTransportException:
  10297. raise
  10298. except TApplicationException as ex:
  10299. logging.exception('TApplication exception in handler')
  10300. msg_type = TMessageType.EXCEPTION
  10301. result = ex
  10302. except Exception:
  10303. logging.exception('Unexpected exception in handler')
  10304. msg_type = TMessageType.EXCEPTION
  10305. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10306. oprot.writeMessageBegin("clear_file_metadata", msg_type, seqid)
  10307. result.write(oprot)
  10308. oprot.writeMessageEnd()
  10309. oprot.trans.flush()
  10310. def process_cache_file_metadata(self, seqid, iprot, oprot):
  10311. args = cache_file_metadata_args()
  10312. args.read(iprot)
  10313. iprot.readMessageEnd()
  10314. result = cache_file_metadata_result()
  10315. try:
  10316. result.success = self._handler.cache_file_metadata(args.req)
  10317. msg_type = TMessageType.REPLY
  10318. except TTransport.TTransportException:
  10319. raise
  10320. except TApplicationException as ex:
  10321. logging.exception('TApplication exception in handler')
  10322. msg_type = TMessageType.EXCEPTION
  10323. result = ex
  10324. except Exception:
  10325. logging.exception('Unexpected exception in handler')
  10326. msg_type = TMessageType.EXCEPTION
  10327. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10328. oprot.writeMessageBegin("cache_file_metadata", msg_type, seqid)
  10329. result.write(oprot)
  10330. oprot.writeMessageEnd()
  10331. oprot.trans.flush()
  10332. def process_get_metastore_db_uuid(self, seqid, iprot, oprot):
  10333. args = get_metastore_db_uuid_args()
  10334. args.read(iprot)
  10335. iprot.readMessageEnd()
  10336. result = get_metastore_db_uuid_result()
  10337. try:
  10338. result.success = self._handler.get_metastore_db_uuid()
  10339. msg_type = TMessageType.REPLY
  10340. except TTransport.TTransportException:
  10341. raise
  10342. except MetaException as o1:
  10343. msg_type = TMessageType.REPLY
  10344. result.o1 = o1
  10345. except TApplicationException as ex:
  10346. logging.exception('TApplication exception in handler')
  10347. msg_type = TMessageType.EXCEPTION
  10348. result = ex
  10349. except Exception:
  10350. logging.exception('Unexpected exception in handler')
  10351. msg_type = TMessageType.EXCEPTION
  10352. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10353. oprot.writeMessageBegin("get_metastore_db_uuid", msg_type, seqid)
  10354. result.write(oprot)
  10355. oprot.writeMessageEnd()
  10356. oprot.trans.flush()
  10357. def process_get_partitions_with_specs(self, seqid, iprot, oprot):
  10358. args = get_partitions_with_specs_args()
  10359. args.read(iprot)
  10360. iprot.readMessageEnd()
  10361. result = get_partitions_with_specs_result()
  10362. try:
  10363. result.success = self._handler.get_partitions_with_specs(args.request)
  10364. msg_type = TMessageType.REPLY
  10365. except TTransport.TTransportException:
  10366. raise
  10367. except MetaException as o1:
  10368. msg_type = TMessageType.REPLY
  10369. result.o1 = o1
  10370. except TApplicationException as ex:
  10371. logging.exception('TApplication exception in handler')
  10372. msg_type = TMessageType.EXCEPTION
  10373. result = ex
  10374. except Exception:
  10375. logging.exception('Unexpected exception in handler')
  10376. msg_type = TMessageType.EXCEPTION
  10377. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  10378. oprot.writeMessageBegin("get_partitions_with_specs", msg_type, seqid)
  10379. result.write(oprot)
  10380. oprot.writeMessageEnd()
  10381. oprot.trans.flush()
  10382. # HELPER FUNCTIONS AND STRUCTURES
  10383. class getMetaConf_args(object):
  10384. """
  10385. Attributes:
  10386. - key
  10387. """
  10388. def __init__(self, key=None,):
  10389. self.key = key
  10390. def read(self, iprot):
  10391. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  10392. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  10393. return
  10394. iprot.readStructBegin()
  10395. while True:
  10396. (fname, ftype, fid) = iprot.readFieldBegin()
  10397. if ftype == TType.STOP:
  10398. break
  10399. if fid == 1:
  10400. if ftype == TType.STRING:
  10401. self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  10402. else:
  10403. iprot.skip(ftype)
  10404. else:
  10405. iprot.skip(ftype)
  10406. iprot.readFieldEnd()
  10407. iprot.readStructEnd()
  10408. def write(self, oprot):
  10409. if oprot._fast_encode is not None and self.thrift_spec is not None:
  10410. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  10411. return
  10412. oprot.writeStructBegin('getMetaConf_args')
  10413. if self.key is not None:
  10414. oprot.writeFieldBegin('key', TType.STRING, 1)
  10415. oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
  10416. oprot.writeFieldEnd()
  10417. oprot.writeFieldStop()
  10418. oprot.writeStructEnd()
  10419. def validate(self):
  10420. return
  10421. def __repr__(self):
  10422. L = ['%s=%r' % (key, value)
  10423. for key, value in self.__dict__.items()]
  10424. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10425. def __eq__(self, other):
  10426. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10427. def __ne__(self, other):
  10428. return not (self == other)
  10429. all_structs.append(getMetaConf_args)
  10430. getMetaConf_args.thrift_spec = (
  10431. None, # 0
  10432. (1, TType.STRING, 'key', 'UTF8', None, ), # 1
  10433. )
  10434. class getMetaConf_result(object):
  10435. """
  10436. Attributes:
  10437. - success
  10438. - o1
  10439. """
  10440. def __init__(self, success=None, o1=None,):
  10441. self.success = success
  10442. self.o1 = o1
  10443. def read(self, iprot):
  10444. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  10445. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  10446. return
  10447. iprot.readStructBegin()
  10448. while True:
  10449. (fname, ftype, fid) = iprot.readFieldBegin()
  10450. if ftype == TType.STOP:
  10451. break
  10452. if fid == 0:
  10453. if ftype == TType.STRING:
  10454. self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  10455. else:
  10456. iprot.skip(ftype)
  10457. elif fid == 1:
  10458. if ftype == TType.STRUCT:
  10459. self.o1 = MetaException()
  10460. self.o1.read(iprot)
  10461. else:
  10462. iprot.skip(ftype)
  10463. else:
  10464. iprot.skip(ftype)
  10465. iprot.readFieldEnd()
  10466. iprot.readStructEnd()
  10467. def write(self, oprot):
  10468. if oprot._fast_encode is not None and self.thrift_spec is not None:
  10469. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  10470. return
  10471. oprot.writeStructBegin('getMetaConf_result')
  10472. if self.success is not None:
  10473. oprot.writeFieldBegin('success', TType.STRING, 0)
  10474. oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
  10475. oprot.writeFieldEnd()
  10476. if self.o1 is not None:
  10477. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10478. self.o1.write(oprot)
  10479. oprot.writeFieldEnd()
  10480. oprot.writeFieldStop()
  10481. oprot.writeStructEnd()
  10482. def validate(self):
  10483. return
  10484. def __repr__(self):
  10485. L = ['%s=%r' % (key, value)
  10486. for key, value in self.__dict__.items()]
  10487. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10488. def __eq__(self, other):
  10489. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10490. def __ne__(self, other):
  10491. return not (self == other)
  10492. all_structs.append(getMetaConf_result)
  10493. getMetaConf_result.thrift_spec = (
  10494. (0, TType.STRING, 'success', 'UTF8', None, ), # 0
  10495. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  10496. )
  10497. class setMetaConf_args(object):
  10498. """
  10499. Attributes:
  10500. - key
  10501. - value
  10502. """
  10503. def __init__(self, key=None, value=None,):
  10504. self.key = key
  10505. self.value = value
  10506. def read(self, iprot):
  10507. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  10508. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  10509. return
  10510. iprot.readStructBegin()
  10511. while True:
  10512. (fname, ftype, fid) = iprot.readFieldBegin()
  10513. if ftype == TType.STOP:
  10514. break
  10515. if fid == 1:
  10516. if ftype == TType.STRING:
  10517. self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  10518. else:
  10519. iprot.skip(ftype)
  10520. elif fid == 2:
  10521. if ftype == TType.STRING:
  10522. self.value = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  10523. else:
  10524. iprot.skip(ftype)
  10525. else:
  10526. iprot.skip(ftype)
  10527. iprot.readFieldEnd()
  10528. iprot.readStructEnd()
  10529. def write(self, oprot):
  10530. if oprot._fast_encode is not None and self.thrift_spec is not None:
  10531. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  10532. return
  10533. oprot.writeStructBegin('setMetaConf_args')
  10534. if self.key is not None:
  10535. oprot.writeFieldBegin('key', TType.STRING, 1)
  10536. oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
  10537. oprot.writeFieldEnd()
  10538. if self.value is not None:
  10539. oprot.writeFieldBegin('value', TType.STRING, 2)
  10540. oprot.writeString(self.value.encode('utf-8') if sys.version_info[0] == 2 else self.value)
  10541. oprot.writeFieldEnd()
  10542. oprot.writeFieldStop()
  10543. oprot.writeStructEnd()
  10544. def validate(self):
  10545. return
  10546. def __repr__(self):
  10547. L = ['%s=%r' % (key, value)
  10548. for key, value in self.__dict__.items()]
  10549. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10550. def __eq__(self, other):
  10551. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10552. def __ne__(self, other):
  10553. return not (self == other)
  10554. all_structs.append(setMetaConf_args)
  10555. setMetaConf_args.thrift_spec = (
  10556. None, # 0
  10557. (1, TType.STRING, 'key', 'UTF8', None, ), # 1
  10558. (2, TType.STRING, 'value', 'UTF8', None, ), # 2
  10559. )
  10560. class setMetaConf_result(object):
  10561. """
  10562. Attributes:
  10563. - o1
  10564. """
  10565. def __init__(self, o1=None,):
  10566. self.o1 = o1
  10567. def read(self, iprot):
  10568. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  10569. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  10570. return
  10571. iprot.readStructBegin()
  10572. while True:
  10573. (fname, ftype, fid) = iprot.readFieldBegin()
  10574. if ftype == TType.STOP:
  10575. break
  10576. if fid == 1:
  10577. if ftype == TType.STRUCT:
  10578. self.o1 = MetaException()
  10579. self.o1.read(iprot)
  10580. else:
  10581. iprot.skip(ftype)
  10582. else:
  10583. iprot.skip(ftype)
  10584. iprot.readFieldEnd()
  10585. iprot.readStructEnd()
  10586. def write(self, oprot):
  10587. if oprot._fast_encode is not None and self.thrift_spec is not None:
  10588. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  10589. return
  10590. oprot.writeStructBegin('setMetaConf_result')
  10591. if self.o1 is not None:
  10592. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10593. self.o1.write(oprot)
  10594. oprot.writeFieldEnd()
  10595. oprot.writeFieldStop()
  10596. oprot.writeStructEnd()
  10597. def validate(self):
  10598. return
  10599. def __repr__(self):
  10600. L = ['%s=%r' % (key, value)
  10601. for key, value in self.__dict__.items()]
  10602. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10603. def __eq__(self, other):
  10604. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10605. def __ne__(self, other):
  10606. return not (self == other)
  10607. all_structs.append(setMetaConf_result)
  10608. setMetaConf_result.thrift_spec = (
  10609. None, # 0
  10610. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  10611. )
  10612. class create_database_args(object):
  10613. """
  10614. Attributes:
  10615. - database
  10616. """
  10617. def __init__(self, database=None,):
  10618. self.database = database
  10619. def read(self, iprot):
  10620. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  10621. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  10622. return
  10623. iprot.readStructBegin()
  10624. while True:
  10625. (fname, ftype, fid) = iprot.readFieldBegin()
  10626. if ftype == TType.STOP:
  10627. break
  10628. if fid == 1:
  10629. if ftype == TType.STRUCT:
  10630. self.database = Database()
  10631. self.database.read(iprot)
  10632. else:
  10633. iprot.skip(ftype)
  10634. else:
  10635. iprot.skip(ftype)
  10636. iprot.readFieldEnd()
  10637. iprot.readStructEnd()
  10638. def write(self, oprot):
  10639. if oprot._fast_encode is not None and self.thrift_spec is not None:
  10640. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  10641. return
  10642. oprot.writeStructBegin('create_database_args')
  10643. if self.database is not None:
  10644. oprot.writeFieldBegin('database', TType.STRUCT, 1)
  10645. self.database.write(oprot)
  10646. oprot.writeFieldEnd()
  10647. oprot.writeFieldStop()
  10648. oprot.writeStructEnd()
  10649. def validate(self):
  10650. return
  10651. def __repr__(self):
  10652. L = ['%s=%r' % (key, value)
  10653. for key, value in self.__dict__.items()]
  10654. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10655. def __eq__(self, other):
  10656. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10657. def __ne__(self, other):
  10658. return not (self == other)
  10659. all_structs.append(create_database_args)
  10660. create_database_args.thrift_spec = (
  10661. None, # 0
  10662. (1, TType.STRUCT, 'database', [Database, None], None, ), # 1
  10663. )
  10664. class create_database_result(object):
  10665. """
  10666. Attributes:
  10667. - o1
  10668. - o2
  10669. - o3
  10670. """
  10671. def __init__(self, o1=None, o2=None, o3=None,):
  10672. self.o1 = o1
  10673. self.o2 = o2
  10674. self.o3 = o3
  10675. def read(self, iprot):
  10676. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  10677. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  10678. return
  10679. iprot.readStructBegin()
  10680. while True:
  10681. (fname, ftype, fid) = iprot.readFieldBegin()
  10682. if ftype == TType.STOP:
  10683. break
  10684. if fid == 1:
  10685. if ftype == TType.STRUCT:
  10686. self.o1 = AlreadyExistsException()
  10687. self.o1.read(iprot)
  10688. else:
  10689. iprot.skip(ftype)
  10690. elif fid == 2:
  10691. if ftype == TType.STRUCT:
  10692. self.o2 = InvalidObjectException()
  10693. self.o2.read(iprot)
  10694. else:
  10695. iprot.skip(ftype)
  10696. elif fid == 3:
  10697. if ftype == TType.STRUCT:
  10698. self.o3 = MetaException()
  10699. self.o3.read(iprot)
  10700. else:
  10701. iprot.skip(ftype)
  10702. else:
  10703. iprot.skip(ftype)
  10704. iprot.readFieldEnd()
  10705. iprot.readStructEnd()
  10706. def write(self, oprot):
  10707. if oprot._fast_encode is not None and self.thrift_spec is not None:
  10708. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  10709. return
  10710. oprot.writeStructBegin('create_database_result')
  10711. if self.o1 is not None:
  10712. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10713. self.o1.write(oprot)
  10714. oprot.writeFieldEnd()
  10715. if self.o2 is not None:
  10716. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  10717. self.o2.write(oprot)
  10718. oprot.writeFieldEnd()
  10719. if self.o3 is not None:
  10720. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  10721. self.o3.write(oprot)
  10722. oprot.writeFieldEnd()
  10723. oprot.writeFieldStop()
  10724. oprot.writeStructEnd()
  10725. def validate(self):
  10726. return
  10727. def __repr__(self):
  10728. L = ['%s=%r' % (key, value)
  10729. for key, value in self.__dict__.items()]
  10730. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10731. def __eq__(self, other):
  10732. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10733. def __ne__(self, other):
  10734. return not (self == other)
  10735. all_structs.append(create_database_result)
  10736. create_database_result.thrift_spec = (
  10737. None, # 0
  10738. (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1
  10739. (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2
  10740. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  10741. )
  10742. class get_database_args(object):
  10743. """
  10744. Attributes:
  10745. - name
  10746. """
  10747. def __init__(self, name=None,):
  10748. self.name = name
  10749. def read(self, iprot):
  10750. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  10751. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  10752. return
  10753. iprot.readStructBegin()
  10754. while True:
  10755. (fname, ftype, fid) = iprot.readFieldBegin()
  10756. if ftype == TType.STOP:
  10757. break
  10758. if fid == 1:
  10759. if ftype == TType.STRING:
  10760. self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  10761. else:
  10762. iprot.skip(ftype)
  10763. else:
  10764. iprot.skip(ftype)
  10765. iprot.readFieldEnd()
  10766. iprot.readStructEnd()
  10767. def write(self, oprot):
  10768. if oprot._fast_encode is not None and self.thrift_spec is not None:
  10769. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  10770. return
  10771. oprot.writeStructBegin('get_database_args')
  10772. if self.name is not None:
  10773. oprot.writeFieldBegin('name', TType.STRING, 1)
  10774. oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
  10775. oprot.writeFieldEnd()
  10776. oprot.writeFieldStop()
  10777. oprot.writeStructEnd()
  10778. def validate(self):
  10779. return
  10780. def __repr__(self):
  10781. L = ['%s=%r' % (key, value)
  10782. for key, value in self.__dict__.items()]
  10783. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10784. def __eq__(self, other):
  10785. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10786. def __ne__(self, other):
  10787. return not (self == other)
  10788. all_structs.append(get_database_args)
  10789. get_database_args.thrift_spec = (
  10790. None, # 0
  10791. (1, TType.STRING, 'name', 'UTF8', None, ), # 1
  10792. )
  10793. class get_database_result(object):
  10794. """
  10795. Attributes:
  10796. - success
  10797. - o1
  10798. - o2
  10799. """
  10800. def __init__(self, success=None, o1=None, o2=None,):
  10801. self.success = success
  10802. self.o1 = o1
  10803. self.o2 = o2
  10804. def read(self, iprot):
  10805. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  10806. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  10807. return
  10808. iprot.readStructBegin()
  10809. while True:
  10810. (fname, ftype, fid) = iprot.readFieldBegin()
  10811. if ftype == TType.STOP:
  10812. break
  10813. if fid == 0:
  10814. if ftype == TType.STRUCT:
  10815. self.success = Database()
  10816. self.success.read(iprot)
  10817. else:
  10818. iprot.skip(ftype)
  10819. elif fid == 1:
  10820. if ftype == TType.STRUCT:
  10821. self.o1 = NoSuchObjectException()
  10822. self.o1.read(iprot)
  10823. else:
  10824. iprot.skip(ftype)
  10825. elif fid == 2:
  10826. if ftype == TType.STRUCT:
  10827. self.o2 = MetaException()
  10828. self.o2.read(iprot)
  10829. else:
  10830. iprot.skip(ftype)
  10831. else:
  10832. iprot.skip(ftype)
  10833. iprot.readFieldEnd()
  10834. iprot.readStructEnd()
  10835. def write(self, oprot):
  10836. if oprot._fast_encode is not None and self.thrift_spec is not None:
  10837. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  10838. return
  10839. oprot.writeStructBegin('get_database_result')
  10840. if self.success is not None:
  10841. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  10842. self.success.write(oprot)
  10843. oprot.writeFieldEnd()
  10844. if self.o1 is not None:
  10845. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10846. self.o1.write(oprot)
  10847. oprot.writeFieldEnd()
  10848. if self.o2 is not None:
  10849. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  10850. self.o2.write(oprot)
  10851. oprot.writeFieldEnd()
  10852. oprot.writeFieldStop()
  10853. oprot.writeStructEnd()
  10854. def validate(self):
  10855. return
  10856. def __repr__(self):
  10857. L = ['%s=%r' % (key, value)
  10858. for key, value in self.__dict__.items()]
  10859. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10860. def __eq__(self, other):
  10861. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10862. def __ne__(self, other):
  10863. return not (self == other)
  10864. all_structs.append(get_database_result)
  10865. get_database_result.thrift_spec = (
  10866. (0, TType.STRUCT, 'success', [Database, None], None, ), # 0
  10867. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  10868. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  10869. )
  10870. class drop_database_args(object):
  10871. """
  10872. Attributes:
  10873. - name
  10874. - deleteData
  10875. - cascade
  10876. """
  10877. def __init__(self, name=None, deleteData=None, cascade=None,):
  10878. self.name = name
  10879. self.deleteData = deleteData
  10880. self.cascade = cascade
  10881. def read(self, iprot):
  10882. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  10883. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  10884. return
  10885. iprot.readStructBegin()
  10886. while True:
  10887. (fname, ftype, fid) = iprot.readFieldBegin()
  10888. if ftype == TType.STOP:
  10889. break
  10890. if fid == 1:
  10891. if ftype == TType.STRING:
  10892. self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  10893. else:
  10894. iprot.skip(ftype)
  10895. elif fid == 2:
  10896. if ftype == TType.BOOL:
  10897. self.deleteData = iprot.readBool()
  10898. else:
  10899. iprot.skip(ftype)
  10900. elif fid == 3:
  10901. if ftype == TType.BOOL:
  10902. self.cascade = iprot.readBool()
  10903. else:
  10904. iprot.skip(ftype)
  10905. else:
  10906. iprot.skip(ftype)
  10907. iprot.readFieldEnd()
  10908. iprot.readStructEnd()
  10909. def write(self, oprot):
  10910. if oprot._fast_encode is not None and self.thrift_spec is not None:
  10911. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  10912. return
  10913. oprot.writeStructBegin('drop_database_args')
  10914. if self.name is not None:
  10915. oprot.writeFieldBegin('name', TType.STRING, 1)
  10916. oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
  10917. oprot.writeFieldEnd()
  10918. if self.deleteData is not None:
  10919. oprot.writeFieldBegin('deleteData', TType.BOOL, 2)
  10920. oprot.writeBool(self.deleteData)
  10921. oprot.writeFieldEnd()
  10922. if self.cascade is not None:
  10923. oprot.writeFieldBegin('cascade', TType.BOOL, 3)
  10924. oprot.writeBool(self.cascade)
  10925. oprot.writeFieldEnd()
  10926. oprot.writeFieldStop()
  10927. oprot.writeStructEnd()
  10928. def validate(self):
  10929. return
  10930. def __repr__(self):
  10931. L = ['%s=%r' % (key, value)
  10932. for key, value in self.__dict__.items()]
  10933. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10934. def __eq__(self, other):
  10935. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10936. def __ne__(self, other):
  10937. return not (self == other)
  10938. all_structs.append(drop_database_args)
  10939. drop_database_args.thrift_spec = (
  10940. None, # 0
  10941. (1, TType.STRING, 'name', 'UTF8', None, ), # 1
  10942. (2, TType.BOOL, 'deleteData', None, None, ), # 2
  10943. (3, TType.BOOL, 'cascade', None, None, ), # 3
  10944. )
  10945. class drop_database_result(object):
  10946. """
  10947. Attributes:
  10948. - o1
  10949. - o2
  10950. - o3
  10951. """
  10952. def __init__(self, o1=None, o2=None, o3=None,):
  10953. self.o1 = o1
  10954. self.o2 = o2
  10955. self.o3 = o3
  10956. def read(self, iprot):
  10957. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  10958. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  10959. return
  10960. iprot.readStructBegin()
  10961. while True:
  10962. (fname, ftype, fid) = iprot.readFieldBegin()
  10963. if ftype == TType.STOP:
  10964. break
  10965. if fid == 1:
  10966. if ftype == TType.STRUCT:
  10967. self.o1 = NoSuchObjectException()
  10968. self.o1.read(iprot)
  10969. else:
  10970. iprot.skip(ftype)
  10971. elif fid == 2:
  10972. if ftype == TType.STRUCT:
  10973. self.o2 = InvalidOperationException()
  10974. self.o2.read(iprot)
  10975. else:
  10976. iprot.skip(ftype)
  10977. elif fid == 3:
  10978. if ftype == TType.STRUCT:
  10979. self.o3 = MetaException()
  10980. self.o3.read(iprot)
  10981. else:
  10982. iprot.skip(ftype)
  10983. else:
  10984. iprot.skip(ftype)
  10985. iprot.readFieldEnd()
  10986. iprot.readStructEnd()
  10987. def write(self, oprot):
  10988. if oprot._fast_encode is not None and self.thrift_spec is not None:
  10989. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  10990. return
  10991. oprot.writeStructBegin('drop_database_result')
  10992. if self.o1 is not None:
  10993. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10994. self.o1.write(oprot)
  10995. oprot.writeFieldEnd()
  10996. if self.o2 is not None:
  10997. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  10998. self.o2.write(oprot)
  10999. oprot.writeFieldEnd()
  11000. if self.o3 is not None:
  11001. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  11002. self.o3.write(oprot)
  11003. oprot.writeFieldEnd()
  11004. oprot.writeFieldStop()
  11005. oprot.writeStructEnd()
  11006. def validate(self):
  11007. return
  11008. def __repr__(self):
  11009. L = ['%s=%r' % (key, value)
  11010. for key, value in self.__dict__.items()]
  11011. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11012. def __eq__(self, other):
  11013. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11014. def __ne__(self, other):
  11015. return not (self == other)
  11016. all_structs.append(drop_database_result)
  11017. drop_database_result.thrift_spec = (
  11018. None, # 0
  11019. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  11020. (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2
  11021. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  11022. )
  11023. class get_databases_args(object):
  11024. """
  11025. Attributes:
  11026. - pattern
  11027. """
  11028. def __init__(self, pattern=None,):
  11029. self.pattern = pattern
  11030. def read(self, iprot):
  11031. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11032. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11033. return
  11034. iprot.readStructBegin()
  11035. while True:
  11036. (fname, ftype, fid) = iprot.readFieldBegin()
  11037. if ftype == TType.STOP:
  11038. break
  11039. if fid == 1:
  11040. if ftype == TType.STRING:
  11041. self.pattern = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  11042. else:
  11043. iprot.skip(ftype)
  11044. else:
  11045. iprot.skip(ftype)
  11046. iprot.readFieldEnd()
  11047. iprot.readStructEnd()
  11048. def write(self, oprot):
  11049. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11050. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11051. return
  11052. oprot.writeStructBegin('get_databases_args')
  11053. if self.pattern is not None:
  11054. oprot.writeFieldBegin('pattern', TType.STRING, 1)
  11055. oprot.writeString(self.pattern.encode('utf-8') if sys.version_info[0] == 2 else self.pattern)
  11056. oprot.writeFieldEnd()
  11057. oprot.writeFieldStop()
  11058. oprot.writeStructEnd()
  11059. def validate(self):
  11060. return
  11061. def __repr__(self):
  11062. L = ['%s=%r' % (key, value)
  11063. for key, value in self.__dict__.items()]
  11064. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11065. def __eq__(self, other):
  11066. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11067. def __ne__(self, other):
  11068. return not (self == other)
  11069. all_structs.append(get_databases_args)
  11070. get_databases_args.thrift_spec = (
  11071. None, # 0
  11072. (1, TType.STRING, 'pattern', 'UTF8', None, ), # 1
  11073. )
  11074. class get_databases_result(object):
  11075. """
  11076. Attributes:
  11077. - success
  11078. - o1
  11079. """
  11080. def __init__(self, success=None, o1=None,):
  11081. self.success = success
  11082. self.o1 = o1
  11083. def read(self, iprot):
  11084. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11085. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11086. return
  11087. iprot.readStructBegin()
  11088. while True:
  11089. (fname, ftype, fid) = iprot.readFieldBegin()
  11090. if ftype == TType.STOP:
  11091. break
  11092. if fid == 0:
  11093. if ftype == TType.LIST:
  11094. self.success = []
  11095. (_etype597, _size594) = iprot.readListBegin()
  11096. for _i598 in range(_size594):
  11097. _elem599 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  11098. self.success.append(_elem599)
  11099. iprot.readListEnd()
  11100. else:
  11101. iprot.skip(ftype)
  11102. elif fid == 1:
  11103. if ftype == TType.STRUCT:
  11104. self.o1 = MetaException()
  11105. self.o1.read(iprot)
  11106. else:
  11107. iprot.skip(ftype)
  11108. else:
  11109. iprot.skip(ftype)
  11110. iprot.readFieldEnd()
  11111. iprot.readStructEnd()
  11112. def write(self, oprot):
  11113. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11114. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11115. return
  11116. oprot.writeStructBegin('get_databases_result')
  11117. if self.success is not None:
  11118. oprot.writeFieldBegin('success', TType.LIST, 0)
  11119. oprot.writeListBegin(TType.STRING, len(self.success))
  11120. for iter600 in self.success:
  11121. oprot.writeString(iter600.encode('utf-8') if sys.version_info[0] == 2 else iter600)
  11122. oprot.writeListEnd()
  11123. oprot.writeFieldEnd()
  11124. if self.o1 is not None:
  11125. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11126. self.o1.write(oprot)
  11127. oprot.writeFieldEnd()
  11128. oprot.writeFieldStop()
  11129. oprot.writeStructEnd()
  11130. def validate(self):
  11131. return
  11132. def __repr__(self):
  11133. L = ['%s=%r' % (key, value)
  11134. for key, value in self.__dict__.items()]
  11135. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11136. def __eq__(self, other):
  11137. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11138. def __ne__(self, other):
  11139. return not (self == other)
  11140. all_structs.append(get_databases_result)
  11141. get_databases_result.thrift_spec = (
  11142. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  11143. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  11144. )
  11145. class get_all_databases_args(object):
  11146. def read(self, iprot):
  11147. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11148. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11149. return
  11150. iprot.readStructBegin()
  11151. while True:
  11152. (fname, ftype, fid) = iprot.readFieldBegin()
  11153. if ftype == TType.STOP:
  11154. break
  11155. else:
  11156. iprot.skip(ftype)
  11157. iprot.readFieldEnd()
  11158. iprot.readStructEnd()
  11159. def write(self, oprot):
  11160. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11161. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11162. return
  11163. oprot.writeStructBegin('get_all_databases_args')
  11164. oprot.writeFieldStop()
  11165. oprot.writeStructEnd()
  11166. def validate(self):
  11167. return
  11168. def __repr__(self):
  11169. L = ['%s=%r' % (key, value)
  11170. for key, value in self.__dict__.items()]
  11171. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11172. def __eq__(self, other):
  11173. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11174. def __ne__(self, other):
  11175. return not (self == other)
  11176. all_structs.append(get_all_databases_args)
  11177. get_all_databases_args.thrift_spec = (
  11178. )
  11179. class get_all_databases_result(object):
  11180. """
  11181. Attributes:
  11182. - success
  11183. - o1
  11184. """
  11185. def __init__(self, success=None, o1=None,):
  11186. self.success = success
  11187. self.o1 = o1
  11188. def read(self, iprot):
  11189. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11190. iprot._fast_decode(self, iprot, [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.LIST:
  11199. self.success = []
  11200. (_etype604, _size601) = iprot.readListBegin()
  11201. for _i605 in range(_size601):
  11202. _elem606 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  11203. self.success.append(_elem606)
  11204. iprot.readListEnd()
  11205. else:
  11206. iprot.skip(ftype)
  11207. elif fid == 1:
  11208. if ftype == TType.STRUCT:
  11209. self.o1 = MetaException()
  11210. self.o1.read(iprot)
  11211. else:
  11212. iprot.skip(ftype)
  11213. else:
  11214. iprot.skip(ftype)
  11215. iprot.readFieldEnd()
  11216. iprot.readStructEnd()
  11217. def write(self, oprot):
  11218. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11219. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11220. return
  11221. oprot.writeStructBegin('get_all_databases_result')
  11222. if self.success is not None:
  11223. oprot.writeFieldBegin('success', TType.LIST, 0)
  11224. oprot.writeListBegin(TType.STRING, len(self.success))
  11225. for iter607 in self.success:
  11226. oprot.writeString(iter607.encode('utf-8') if sys.version_info[0] == 2 else iter607)
  11227. oprot.writeListEnd()
  11228. oprot.writeFieldEnd()
  11229. if self.o1 is not None:
  11230. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11231. self.o1.write(oprot)
  11232. oprot.writeFieldEnd()
  11233. oprot.writeFieldStop()
  11234. oprot.writeStructEnd()
  11235. def validate(self):
  11236. return
  11237. def __repr__(self):
  11238. L = ['%s=%r' % (key, value)
  11239. for key, value in self.__dict__.items()]
  11240. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11241. def __eq__(self, other):
  11242. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11243. def __ne__(self, other):
  11244. return not (self == other)
  11245. all_structs.append(get_all_databases_result)
  11246. get_all_databases_result.thrift_spec = (
  11247. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  11248. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  11249. )
  11250. class alter_database_args(object):
  11251. """
  11252. Attributes:
  11253. - dbname
  11254. - db
  11255. """
  11256. def __init__(self, dbname=None, db=None,):
  11257. self.dbname = dbname
  11258. self.db = db
  11259. def read(self, iprot):
  11260. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11261. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11262. return
  11263. iprot.readStructBegin()
  11264. while True:
  11265. (fname, ftype, fid) = iprot.readFieldBegin()
  11266. if ftype == TType.STOP:
  11267. break
  11268. if fid == 1:
  11269. if ftype == TType.STRING:
  11270. self.dbname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  11271. else:
  11272. iprot.skip(ftype)
  11273. elif fid == 2:
  11274. if ftype == TType.STRUCT:
  11275. self.db = Database()
  11276. self.db.read(iprot)
  11277. else:
  11278. iprot.skip(ftype)
  11279. else:
  11280. iprot.skip(ftype)
  11281. iprot.readFieldEnd()
  11282. iprot.readStructEnd()
  11283. def write(self, oprot):
  11284. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11285. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11286. return
  11287. oprot.writeStructBegin('alter_database_args')
  11288. if self.dbname is not None:
  11289. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  11290. oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
  11291. oprot.writeFieldEnd()
  11292. if self.db is not None:
  11293. oprot.writeFieldBegin('db', TType.STRUCT, 2)
  11294. self.db.write(oprot)
  11295. oprot.writeFieldEnd()
  11296. oprot.writeFieldStop()
  11297. oprot.writeStructEnd()
  11298. def validate(self):
  11299. return
  11300. def __repr__(self):
  11301. L = ['%s=%r' % (key, value)
  11302. for key, value in self.__dict__.items()]
  11303. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11304. def __eq__(self, other):
  11305. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11306. def __ne__(self, other):
  11307. return not (self == other)
  11308. all_structs.append(alter_database_args)
  11309. alter_database_args.thrift_spec = (
  11310. None, # 0
  11311. (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1
  11312. (2, TType.STRUCT, 'db', [Database, None], None, ), # 2
  11313. )
  11314. class alter_database_result(object):
  11315. """
  11316. Attributes:
  11317. - o1
  11318. - o2
  11319. """
  11320. def __init__(self, o1=None, o2=None,):
  11321. self.o1 = o1
  11322. self.o2 = o2
  11323. def read(self, iprot):
  11324. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11325. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11326. return
  11327. iprot.readStructBegin()
  11328. while True:
  11329. (fname, ftype, fid) = iprot.readFieldBegin()
  11330. if ftype == TType.STOP:
  11331. break
  11332. if fid == 1:
  11333. if ftype == TType.STRUCT:
  11334. self.o1 = MetaException()
  11335. self.o1.read(iprot)
  11336. else:
  11337. iprot.skip(ftype)
  11338. elif fid == 2:
  11339. if ftype == TType.STRUCT:
  11340. self.o2 = NoSuchObjectException()
  11341. self.o2.read(iprot)
  11342. else:
  11343. iprot.skip(ftype)
  11344. else:
  11345. iprot.skip(ftype)
  11346. iprot.readFieldEnd()
  11347. iprot.readStructEnd()
  11348. def write(self, oprot):
  11349. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11350. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11351. return
  11352. oprot.writeStructBegin('alter_database_result')
  11353. if self.o1 is not None:
  11354. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11355. self.o1.write(oprot)
  11356. oprot.writeFieldEnd()
  11357. if self.o2 is not None:
  11358. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  11359. self.o2.write(oprot)
  11360. oprot.writeFieldEnd()
  11361. oprot.writeFieldStop()
  11362. oprot.writeStructEnd()
  11363. def validate(self):
  11364. return
  11365. def __repr__(self):
  11366. L = ['%s=%r' % (key, value)
  11367. for key, value in self.__dict__.items()]
  11368. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11369. def __eq__(self, other):
  11370. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11371. def __ne__(self, other):
  11372. return not (self == other)
  11373. all_structs.append(alter_database_result)
  11374. alter_database_result.thrift_spec = (
  11375. None, # 0
  11376. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  11377. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  11378. )
  11379. class get_type_args(object):
  11380. """
  11381. Attributes:
  11382. - name
  11383. """
  11384. def __init__(self, name=None,):
  11385. self.name = name
  11386. def read(self, iprot):
  11387. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11388. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11389. return
  11390. iprot.readStructBegin()
  11391. while True:
  11392. (fname, ftype, fid) = iprot.readFieldBegin()
  11393. if ftype == TType.STOP:
  11394. break
  11395. if fid == 1:
  11396. if ftype == TType.STRING:
  11397. self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  11398. else:
  11399. iprot.skip(ftype)
  11400. else:
  11401. iprot.skip(ftype)
  11402. iprot.readFieldEnd()
  11403. iprot.readStructEnd()
  11404. def write(self, oprot):
  11405. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11406. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11407. return
  11408. oprot.writeStructBegin('get_type_args')
  11409. if self.name is not None:
  11410. oprot.writeFieldBegin('name', TType.STRING, 1)
  11411. oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
  11412. oprot.writeFieldEnd()
  11413. oprot.writeFieldStop()
  11414. oprot.writeStructEnd()
  11415. def validate(self):
  11416. return
  11417. def __repr__(self):
  11418. L = ['%s=%r' % (key, value)
  11419. for key, value in self.__dict__.items()]
  11420. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11421. def __eq__(self, other):
  11422. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11423. def __ne__(self, other):
  11424. return not (self == other)
  11425. all_structs.append(get_type_args)
  11426. get_type_args.thrift_spec = (
  11427. None, # 0
  11428. (1, TType.STRING, 'name', 'UTF8', None, ), # 1
  11429. )
  11430. class get_type_result(object):
  11431. """
  11432. Attributes:
  11433. - success
  11434. - o1
  11435. - o2
  11436. """
  11437. def __init__(self, success=None, o1=None, o2=None,):
  11438. self.success = success
  11439. self.o1 = o1
  11440. self.o2 = o2
  11441. def read(self, iprot):
  11442. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11443. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11444. return
  11445. iprot.readStructBegin()
  11446. while True:
  11447. (fname, ftype, fid) = iprot.readFieldBegin()
  11448. if ftype == TType.STOP:
  11449. break
  11450. if fid == 0:
  11451. if ftype == TType.STRUCT:
  11452. self.success = Type()
  11453. self.success.read(iprot)
  11454. else:
  11455. iprot.skip(ftype)
  11456. elif fid == 1:
  11457. if ftype == TType.STRUCT:
  11458. self.o1 = MetaException()
  11459. self.o1.read(iprot)
  11460. else:
  11461. iprot.skip(ftype)
  11462. elif fid == 2:
  11463. if ftype == TType.STRUCT:
  11464. self.o2 = NoSuchObjectException()
  11465. self.o2.read(iprot)
  11466. else:
  11467. iprot.skip(ftype)
  11468. else:
  11469. iprot.skip(ftype)
  11470. iprot.readFieldEnd()
  11471. iprot.readStructEnd()
  11472. def write(self, oprot):
  11473. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11474. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11475. return
  11476. oprot.writeStructBegin('get_type_result')
  11477. if self.success is not None:
  11478. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  11479. self.success.write(oprot)
  11480. oprot.writeFieldEnd()
  11481. if self.o1 is not None:
  11482. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11483. self.o1.write(oprot)
  11484. oprot.writeFieldEnd()
  11485. if self.o2 is not None:
  11486. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  11487. self.o2.write(oprot)
  11488. oprot.writeFieldEnd()
  11489. oprot.writeFieldStop()
  11490. oprot.writeStructEnd()
  11491. def validate(self):
  11492. return
  11493. def __repr__(self):
  11494. L = ['%s=%r' % (key, value)
  11495. for key, value in self.__dict__.items()]
  11496. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11497. def __eq__(self, other):
  11498. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11499. def __ne__(self, other):
  11500. return not (self == other)
  11501. all_structs.append(get_type_result)
  11502. get_type_result.thrift_spec = (
  11503. (0, TType.STRUCT, 'success', [Type, None], None, ), # 0
  11504. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  11505. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  11506. )
  11507. class create_type_args(object):
  11508. """
  11509. Attributes:
  11510. - type
  11511. """
  11512. def __init__(self, type=None,):
  11513. self.type = type
  11514. def read(self, iprot):
  11515. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11516. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11517. return
  11518. iprot.readStructBegin()
  11519. while True:
  11520. (fname, ftype, fid) = iprot.readFieldBegin()
  11521. if ftype == TType.STOP:
  11522. break
  11523. if fid == 1:
  11524. if ftype == TType.STRUCT:
  11525. self.type = Type()
  11526. self.type.read(iprot)
  11527. else:
  11528. iprot.skip(ftype)
  11529. else:
  11530. iprot.skip(ftype)
  11531. iprot.readFieldEnd()
  11532. iprot.readStructEnd()
  11533. def write(self, oprot):
  11534. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11535. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11536. return
  11537. oprot.writeStructBegin('create_type_args')
  11538. if self.type is not None:
  11539. oprot.writeFieldBegin('type', TType.STRUCT, 1)
  11540. self.type.write(oprot)
  11541. oprot.writeFieldEnd()
  11542. oprot.writeFieldStop()
  11543. oprot.writeStructEnd()
  11544. def validate(self):
  11545. return
  11546. def __repr__(self):
  11547. L = ['%s=%r' % (key, value)
  11548. for key, value in self.__dict__.items()]
  11549. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11550. def __eq__(self, other):
  11551. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11552. def __ne__(self, other):
  11553. return not (self == other)
  11554. all_structs.append(create_type_args)
  11555. create_type_args.thrift_spec = (
  11556. None, # 0
  11557. (1, TType.STRUCT, 'type', [Type, None], None, ), # 1
  11558. )
  11559. class create_type_result(object):
  11560. """
  11561. Attributes:
  11562. - success
  11563. - o1
  11564. - o2
  11565. - o3
  11566. """
  11567. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  11568. self.success = success
  11569. self.o1 = o1
  11570. self.o2 = o2
  11571. self.o3 = o3
  11572. def read(self, iprot):
  11573. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11574. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11575. return
  11576. iprot.readStructBegin()
  11577. while True:
  11578. (fname, ftype, fid) = iprot.readFieldBegin()
  11579. if ftype == TType.STOP:
  11580. break
  11581. if fid == 0:
  11582. if ftype == TType.BOOL:
  11583. self.success = iprot.readBool()
  11584. else:
  11585. iprot.skip(ftype)
  11586. elif fid == 1:
  11587. if ftype == TType.STRUCT:
  11588. self.o1 = AlreadyExistsException()
  11589. self.o1.read(iprot)
  11590. else:
  11591. iprot.skip(ftype)
  11592. elif fid == 2:
  11593. if ftype == TType.STRUCT:
  11594. self.o2 = InvalidObjectException()
  11595. self.o2.read(iprot)
  11596. else:
  11597. iprot.skip(ftype)
  11598. elif fid == 3:
  11599. if ftype == TType.STRUCT:
  11600. self.o3 = MetaException()
  11601. self.o3.read(iprot)
  11602. else:
  11603. iprot.skip(ftype)
  11604. else:
  11605. iprot.skip(ftype)
  11606. iprot.readFieldEnd()
  11607. iprot.readStructEnd()
  11608. def write(self, oprot):
  11609. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11610. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11611. return
  11612. oprot.writeStructBegin('create_type_result')
  11613. if self.success is not None:
  11614. oprot.writeFieldBegin('success', TType.BOOL, 0)
  11615. oprot.writeBool(self.success)
  11616. oprot.writeFieldEnd()
  11617. if self.o1 is not None:
  11618. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11619. self.o1.write(oprot)
  11620. oprot.writeFieldEnd()
  11621. if self.o2 is not None:
  11622. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  11623. self.o2.write(oprot)
  11624. oprot.writeFieldEnd()
  11625. if self.o3 is not None:
  11626. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  11627. self.o3.write(oprot)
  11628. oprot.writeFieldEnd()
  11629. oprot.writeFieldStop()
  11630. oprot.writeStructEnd()
  11631. def validate(self):
  11632. return
  11633. def __repr__(self):
  11634. L = ['%s=%r' % (key, value)
  11635. for key, value in self.__dict__.items()]
  11636. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11637. def __eq__(self, other):
  11638. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11639. def __ne__(self, other):
  11640. return not (self == other)
  11641. all_structs.append(create_type_result)
  11642. create_type_result.thrift_spec = (
  11643. (0, TType.BOOL, 'success', None, None, ), # 0
  11644. (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1
  11645. (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2
  11646. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  11647. )
  11648. class drop_type_args(object):
  11649. """
  11650. Attributes:
  11651. - type
  11652. """
  11653. def __init__(self, type=None,):
  11654. self.type = type
  11655. def read(self, iprot):
  11656. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11657. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11658. return
  11659. iprot.readStructBegin()
  11660. while True:
  11661. (fname, ftype, fid) = iprot.readFieldBegin()
  11662. if ftype == TType.STOP:
  11663. break
  11664. if fid == 1:
  11665. if ftype == TType.STRING:
  11666. self.type = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  11667. else:
  11668. iprot.skip(ftype)
  11669. else:
  11670. iprot.skip(ftype)
  11671. iprot.readFieldEnd()
  11672. iprot.readStructEnd()
  11673. def write(self, oprot):
  11674. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11675. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11676. return
  11677. oprot.writeStructBegin('drop_type_args')
  11678. if self.type is not None:
  11679. oprot.writeFieldBegin('type', TType.STRING, 1)
  11680. oprot.writeString(self.type.encode('utf-8') if sys.version_info[0] == 2 else self.type)
  11681. oprot.writeFieldEnd()
  11682. oprot.writeFieldStop()
  11683. oprot.writeStructEnd()
  11684. def validate(self):
  11685. return
  11686. def __repr__(self):
  11687. L = ['%s=%r' % (key, value)
  11688. for key, value in self.__dict__.items()]
  11689. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11690. def __eq__(self, other):
  11691. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11692. def __ne__(self, other):
  11693. return not (self == other)
  11694. all_structs.append(drop_type_args)
  11695. drop_type_args.thrift_spec = (
  11696. None, # 0
  11697. (1, TType.STRING, 'type', 'UTF8', None, ), # 1
  11698. )
  11699. class drop_type_result(object):
  11700. """
  11701. Attributes:
  11702. - success
  11703. - o1
  11704. - o2
  11705. """
  11706. def __init__(self, success=None, o1=None, o2=None,):
  11707. self.success = success
  11708. self.o1 = o1
  11709. self.o2 = o2
  11710. def read(self, iprot):
  11711. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11712. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11713. return
  11714. iprot.readStructBegin()
  11715. while True:
  11716. (fname, ftype, fid) = iprot.readFieldBegin()
  11717. if ftype == TType.STOP:
  11718. break
  11719. if fid == 0:
  11720. if ftype == TType.BOOL:
  11721. self.success = iprot.readBool()
  11722. else:
  11723. iprot.skip(ftype)
  11724. elif fid == 1:
  11725. if ftype == TType.STRUCT:
  11726. self.o1 = MetaException()
  11727. self.o1.read(iprot)
  11728. else:
  11729. iprot.skip(ftype)
  11730. elif fid == 2:
  11731. if ftype == TType.STRUCT:
  11732. self.o2 = NoSuchObjectException()
  11733. self.o2.read(iprot)
  11734. else:
  11735. iprot.skip(ftype)
  11736. else:
  11737. iprot.skip(ftype)
  11738. iprot.readFieldEnd()
  11739. iprot.readStructEnd()
  11740. def write(self, oprot):
  11741. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11742. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11743. return
  11744. oprot.writeStructBegin('drop_type_result')
  11745. if self.success is not None:
  11746. oprot.writeFieldBegin('success', TType.BOOL, 0)
  11747. oprot.writeBool(self.success)
  11748. oprot.writeFieldEnd()
  11749. if self.o1 is not None:
  11750. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11751. self.o1.write(oprot)
  11752. oprot.writeFieldEnd()
  11753. if self.o2 is not None:
  11754. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  11755. self.o2.write(oprot)
  11756. oprot.writeFieldEnd()
  11757. oprot.writeFieldStop()
  11758. oprot.writeStructEnd()
  11759. def validate(self):
  11760. return
  11761. def __repr__(self):
  11762. L = ['%s=%r' % (key, value)
  11763. for key, value in self.__dict__.items()]
  11764. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11765. def __eq__(self, other):
  11766. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11767. def __ne__(self, other):
  11768. return not (self == other)
  11769. all_structs.append(drop_type_result)
  11770. drop_type_result.thrift_spec = (
  11771. (0, TType.BOOL, 'success', None, None, ), # 0
  11772. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  11773. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  11774. )
  11775. class get_type_all_args(object):
  11776. """
  11777. Attributes:
  11778. - name
  11779. """
  11780. def __init__(self, name=None,):
  11781. self.name = name
  11782. def read(self, iprot):
  11783. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11784. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11785. return
  11786. iprot.readStructBegin()
  11787. while True:
  11788. (fname, ftype, fid) = iprot.readFieldBegin()
  11789. if ftype == TType.STOP:
  11790. break
  11791. if fid == 1:
  11792. if ftype == TType.STRING:
  11793. self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  11794. else:
  11795. iprot.skip(ftype)
  11796. else:
  11797. iprot.skip(ftype)
  11798. iprot.readFieldEnd()
  11799. iprot.readStructEnd()
  11800. def write(self, oprot):
  11801. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11802. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11803. return
  11804. oprot.writeStructBegin('get_type_all_args')
  11805. if self.name is not None:
  11806. oprot.writeFieldBegin('name', TType.STRING, 1)
  11807. oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
  11808. oprot.writeFieldEnd()
  11809. oprot.writeFieldStop()
  11810. oprot.writeStructEnd()
  11811. def validate(self):
  11812. return
  11813. def __repr__(self):
  11814. L = ['%s=%r' % (key, value)
  11815. for key, value in self.__dict__.items()]
  11816. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11817. def __eq__(self, other):
  11818. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11819. def __ne__(self, other):
  11820. return not (self == other)
  11821. all_structs.append(get_type_all_args)
  11822. get_type_all_args.thrift_spec = (
  11823. None, # 0
  11824. (1, TType.STRING, 'name', 'UTF8', None, ), # 1
  11825. )
  11826. class get_type_all_result(object):
  11827. """
  11828. Attributes:
  11829. - success
  11830. - o2
  11831. """
  11832. def __init__(self, success=None, o2=None,):
  11833. self.success = success
  11834. self.o2 = o2
  11835. def read(self, iprot):
  11836. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11837. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11838. return
  11839. iprot.readStructBegin()
  11840. while True:
  11841. (fname, ftype, fid) = iprot.readFieldBegin()
  11842. if ftype == TType.STOP:
  11843. break
  11844. if fid == 0:
  11845. if ftype == TType.MAP:
  11846. self.success = {}
  11847. (_ktype609, _vtype610, _size608) = iprot.readMapBegin()
  11848. for _i612 in range(_size608):
  11849. _key613 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  11850. _val614 = Type()
  11851. _val614.read(iprot)
  11852. self.success[_key613] = _val614
  11853. iprot.readMapEnd()
  11854. else:
  11855. iprot.skip(ftype)
  11856. elif fid == 1:
  11857. if ftype == TType.STRUCT:
  11858. self.o2 = MetaException()
  11859. self.o2.read(iprot)
  11860. else:
  11861. iprot.skip(ftype)
  11862. else:
  11863. iprot.skip(ftype)
  11864. iprot.readFieldEnd()
  11865. iprot.readStructEnd()
  11866. def write(self, oprot):
  11867. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11868. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11869. return
  11870. oprot.writeStructBegin('get_type_all_result')
  11871. if self.success is not None:
  11872. oprot.writeFieldBegin('success', TType.MAP, 0)
  11873. oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
  11874. for kiter615, viter616 in self.success.items():
  11875. oprot.writeString(kiter615.encode('utf-8') if sys.version_info[0] == 2 else kiter615)
  11876. viter616.write(oprot)
  11877. oprot.writeMapEnd()
  11878. oprot.writeFieldEnd()
  11879. if self.o2 is not None:
  11880. oprot.writeFieldBegin('o2', TType.STRUCT, 1)
  11881. self.o2.write(oprot)
  11882. oprot.writeFieldEnd()
  11883. oprot.writeFieldStop()
  11884. oprot.writeStructEnd()
  11885. def validate(self):
  11886. return
  11887. def __repr__(self):
  11888. L = ['%s=%r' % (key, value)
  11889. for key, value in self.__dict__.items()]
  11890. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11891. def __eq__(self, other):
  11892. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11893. def __ne__(self, other):
  11894. return not (self == other)
  11895. all_structs.append(get_type_all_result)
  11896. get_type_all_result.thrift_spec = (
  11897. (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRUCT, [Type, None], False), None, ), # 0
  11898. (1, TType.STRUCT, 'o2', [MetaException, None], None, ), # 1
  11899. )
  11900. class get_fields_args(object):
  11901. """
  11902. Attributes:
  11903. - db_name
  11904. - table_name
  11905. """
  11906. def __init__(self, db_name=None, table_name=None,):
  11907. self.db_name = db_name
  11908. self.table_name = table_name
  11909. def read(self, iprot):
  11910. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11911. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11912. return
  11913. iprot.readStructBegin()
  11914. while True:
  11915. (fname, ftype, fid) = iprot.readFieldBegin()
  11916. if ftype == TType.STOP:
  11917. break
  11918. if fid == 1:
  11919. if ftype == TType.STRING:
  11920. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  11921. else:
  11922. iprot.skip(ftype)
  11923. elif fid == 2:
  11924. if ftype == TType.STRING:
  11925. self.table_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  11926. else:
  11927. iprot.skip(ftype)
  11928. else:
  11929. iprot.skip(ftype)
  11930. iprot.readFieldEnd()
  11931. iprot.readStructEnd()
  11932. def write(self, oprot):
  11933. if oprot._fast_encode is not None and self.thrift_spec is not None:
  11934. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  11935. return
  11936. oprot.writeStructBegin('get_fields_args')
  11937. if self.db_name is not None:
  11938. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  11939. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  11940. oprot.writeFieldEnd()
  11941. if self.table_name is not None:
  11942. oprot.writeFieldBegin('table_name', TType.STRING, 2)
  11943. oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
  11944. oprot.writeFieldEnd()
  11945. oprot.writeFieldStop()
  11946. oprot.writeStructEnd()
  11947. def validate(self):
  11948. return
  11949. def __repr__(self):
  11950. L = ['%s=%r' % (key, value)
  11951. for key, value in self.__dict__.items()]
  11952. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11953. def __eq__(self, other):
  11954. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11955. def __ne__(self, other):
  11956. return not (self == other)
  11957. all_structs.append(get_fields_args)
  11958. get_fields_args.thrift_spec = (
  11959. None, # 0
  11960. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  11961. (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
  11962. )
  11963. class get_fields_result(object):
  11964. """
  11965. Attributes:
  11966. - success
  11967. - o1
  11968. - o2
  11969. - o3
  11970. """
  11971. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  11972. self.success = success
  11973. self.o1 = o1
  11974. self.o2 = o2
  11975. self.o3 = o3
  11976. def read(self, iprot):
  11977. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  11978. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  11979. return
  11980. iprot.readStructBegin()
  11981. while True:
  11982. (fname, ftype, fid) = iprot.readFieldBegin()
  11983. if ftype == TType.STOP:
  11984. break
  11985. if fid == 0:
  11986. if ftype == TType.LIST:
  11987. self.success = []
  11988. (_etype620, _size617) = iprot.readListBegin()
  11989. for _i621 in range(_size617):
  11990. _elem622 = FieldSchema()
  11991. _elem622.read(iprot)
  11992. self.success.append(_elem622)
  11993. iprot.readListEnd()
  11994. else:
  11995. iprot.skip(ftype)
  11996. elif fid == 1:
  11997. if ftype == TType.STRUCT:
  11998. self.o1 = MetaException()
  11999. self.o1.read(iprot)
  12000. else:
  12001. iprot.skip(ftype)
  12002. elif fid == 2:
  12003. if ftype == TType.STRUCT:
  12004. self.o2 = UnknownTableException()
  12005. self.o2.read(iprot)
  12006. else:
  12007. iprot.skip(ftype)
  12008. elif fid == 3:
  12009. if ftype == TType.STRUCT:
  12010. self.o3 = UnknownDBException()
  12011. self.o3.read(iprot)
  12012. else:
  12013. iprot.skip(ftype)
  12014. else:
  12015. iprot.skip(ftype)
  12016. iprot.readFieldEnd()
  12017. iprot.readStructEnd()
  12018. def write(self, oprot):
  12019. if oprot._fast_encode is not None and self.thrift_spec is not None:
  12020. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  12021. return
  12022. oprot.writeStructBegin('get_fields_result')
  12023. if self.success is not None:
  12024. oprot.writeFieldBegin('success', TType.LIST, 0)
  12025. oprot.writeListBegin(TType.STRUCT, len(self.success))
  12026. for iter623 in self.success:
  12027. iter623.write(oprot)
  12028. oprot.writeListEnd()
  12029. oprot.writeFieldEnd()
  12030. if self.o1 is not None:
  12031. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12032. self.o1.write(oprot)
  12033. oprot.writeFieldEnd()
  12034. if self.o2 is not None:
  12035. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  12036. self.o2.write(oprot)
  12037. oprot.writeFieldEnd()
  12038. if self.o3 is not None:
  12039. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  12040. self.o3.write(oprot)
  12041. oprot.writeFieldEnd()
  12042. oprot.writeFieldStop()
  12043. oprot.writeStructEnd()
  12044. def validate(self):
  12045. return
  12046. def __repr__(self):
  12047. L = ['%s=%r' % (key, value)
  12048. for key, value in self.__dict__.items()]
  12049. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12050. def __eq__(self, other):
  12051. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12052. def __ne__(self, other):
  12053. return not (self == other)
  12054. all_structs.append(get_fields_result)
  12055. get_fields_result.thrift_spec = (
  12056. (0, TType.LIST, 'success', (TType.STRUCT, [FieldSchema, None], False), None, ), # 0
  12057. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  12058. (2, TType.STRUCT, 'o2', [UnknownTableException, None], None, ), # 2
  12059. (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3
  12060. )
  12061. class get_fields_with_environment_context_args(object):
  12062. """
  12063. Attributes:
  12064. - db_name
  12065. - table_name
  12066. - environment_context
  12067. """
  12068. def __init__(self, db_name=None, table_name=None, environment_context=None,):
  12069. self.db_name = db_name
  12070. self.table_name = table_name
  12071. self.environment_context = environment_context
  12072. def read(self, iprot):
  12073. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  12074. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  12075. return
  12076. iprot.readStructBegin()
  12077. while True:
  12078. (fname, ftype, fid) = iprot.readFieldBegin()
  12079. if ftype == TType.STOP:
  12080. break
  12081. if fid == 1:
  12082. if ftype == TType.STRING:
  12083. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  12084. else:
  12085. iprot.skip(ftype)
  12086. elif fid == 2:
  12087. if ftype == TType.STRING:
  12088. self.table_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  12089. else:
  12090. iprot.skip(ftype)
  12091. elif fid == 3:
  12092. if ftype == TType.STRUCT:
  12093. self.environment_context = EnvironmentContext()
  12094. self.environment_context.read(iprot)
  12095. else:
  12096. iprot.skip(ftype)
  12097. else:
  12098. iprot.skip(ftype)
  12099. iprot.readFieldEnd()
  12100. iprot.readStructEnd()
  12101. def write(self, oprot):
  12102. if oprot._fast_encode is not None and self.thrift_spec is not None:
  12103. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  12104. return
  12105. oprot.writeStructBegin('get_fields_with_environment_context_args')
  12106. if self.db_name is not None:
  12107. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  12108. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  12109. oprot.writeFieldEnd()
  12110. if self.table_name is not None:
  12111. oprot.writeFieldBegin('table_name', TType.STRING, 2)
  12112. oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
  12113. oprot.writeFieldEnd()
  12114. if self.environment_context is not None:
  12115. oprot.writeFieldBegin('environment_context', TType.STRUCT, 3)
  12116. self.environment_context.write(oprot)
  12117. oprot.writeFieldEnd()
  12118. oprot.writeFieldStop()
  12119. oprot.writeStructEnd()
  12120. def validate(self):
  12121. return
  12122. def __repr__(self):
  12123. L = ['%s=%r' % (key, value)
  12124. for key, value in self.__dict__.items()]
  12125. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12126. def __eq__(self, other):
  12127. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12128. def __ne__(self, other):
  12129. return not (self == other)
  12130. all_structs.append(get_fields_with_environment_context_args)
  12131. get_fields_with_environment_context_args.thrift_spec = (
  12132. None, # 0
  12133. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  12134. (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
  12135. (3, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 3
  12136. )
  12137. class get_fields_with_environment_context_result(object):
  12138. """
  12139. Attributes:
  12140. - success
  12141. - o1
  12142. - o2
  12143. - o3
  12144. """
  12145. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  12146. self.success = success
  12147. self.o1 = o1
  12148. self.o2 = o2
  12149. self.o3 = o3
  12150. def read(self, iprot):
  12151. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  12152. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  12153. return
  12154. iprot.readStructBegin()
  12155. while True:
  12156. (fname, ftype, fid) = iprot.readFieldBegin()
  12157. if ftype == TType.STOP:
  12158. break
  12159. if fid == 0:
  12160. if ftype == TType.LIST:
  12161. self.success = []
  12162. (_etype627, _size624) = iprot.readListBegin()
  12163. for _i628 in range(_size624):
  12164. _elem629 = FieldSchema()
  12165. _elem629.read(iprot)
  12166. self.success.append(_elem629)
  12167. iprot.readListEnd()
  12168. else:
  12169. iprot.skip(ftype)
  12170. elif fid == 1:
  12171. if ftype == TType.STRUCT:
  12172. self.o1 = MetaException()
  12173. self.o1.read(iprot)
  12174. else:
  12175. iprot.skip(ftype)
  12176. elif fid == 2:
  12177. if ftype == TType.STRUCT:
  12178. self.o2 = UnknownTableException()
  12179. self.o2.read(iprot)
  12180. else:
  12181. iprot.skip(ftype)
  12182. elif fid == 3:
  12183. if ftype == TType.STRUCT:
  12184. self.o3 = UnknownDBException()
  12185. self.o3.read(iprot)
  12186. else:
  12187. iprot.skip(ftype)
  12188. else:
  12189. iprot.skip(ftype)
  12190. iprot.readFieldEnd()
  12191. iprot.readStructEnd()
  12192. def write(self, oprot):
  12193. if oprot._fast_encode is not None and self.thrift_spec is not None:
  12194. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  12195. return
  12196. oprot.writeStructBegin('get_fields_with_environment_context_result')
  12197. if self.success is not None:
  12198. oprot.writeFieldBegin('success', TType.LIST, 0)
  12199. oprot.writeListBegin(TType.STRUCT, len(self.success))
  12200. for iter630 in self.success:
  12201. iter630.write(oprot)
  12202. oprot.writeListEnd()
  12203. oprot.writeFieldEnd()
  12204. if self.o1 is not None:
  12205. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12206. self.o1.write(oprot)
  12207. oprot.writeFieldEnd()
  12208. if self.o2 is not None:
  12209. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  12210. self.o2.write(oprot)
  12211. oprot.writeFieldEnd()
  12212. if self.o3 is not None:
  12213. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  12214. self.o3.write(oprot)
  12215. oprot.writeFieldEnd()
  12216. oprot.writeFieldStop()
  12217. oprot.writeStructEnd()
  12218. def validate(self):
  12219. return
  12220. def __repr__(self):
  12221. L = ['%s=%r' % (key, value)
  12222. for key, value in self.__dict__.items()]
  12223. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12224. def __eq__(self, other):
  12225. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12226. def __ne__(self, other):
  12227. return not (self == other)
  12228. all_structs.append(get_fields_with_environment_context_result)
  12229. get_fields_with_environment_context_result.thrift_spec = (
  12230. (0, TType.LIST, 'success', (TType.STRUCT, [FieldSchema, None], False), None, ), # 0
  12231. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  12232. (2, TType.STRUCT, 'o2', [UnknownTableException, None], None, ), # 2
  12233. (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3
  12234. )
  12235. class get_schema_args(object):
  12236. """
  12237. Attributes:
  12238. - db_name
  12239. - table_name
  12240. """
  12241. def __init__(self, db_name=None, table_name=None,):
  12242. self.db_name = db_name
  12243. self.table_name = table_name
  12244. def read(self, iprot):
  12245. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  12246. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  12247. return
  12248. iprot.readStructBegin()
  12249. while True:
  12250. (fname, ftype, fid) = iprot.readFieldBegin()
  12251. if ftype == TType.STOP:
  12252. break
  12253. if fid == 1:
  12254. if ftype == TType.STRING:
  12255. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  12256. else:
  12257. iprot.skip(ftype)
  12258. elif fid == 2:
  12259. if ftype == TType.STRING:
  12260. self.table_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  12261. else:
  12262. iprot.skip(ftype)
  12263. else:
  12264. iprot.skip(ftype)
  12265. iprot.readFieldEnd()
  12266. iprot.readStructEnd()
  12267. def write(self, oprot):
  12268. if oprot._fast_encode is not None and self.thrift_spec is not None:
  12269. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  12270. return
  12271. oprot.writeStructBegin('get_schema_args')
  12272. if self.db_name is not None:
  12273. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  12274. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  12275. oprot.writeFieldEnd()
  12276. if self.table_name is not None:
  12277. oprot.writeFieldBegin('table_name', TType.STRING, 2)
  12278. oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
  12279. oprot.writeFieldEnd()
  12280. oprot.writeFieldStop()
  12281. oprot.writeStructEnd()
  12282. def validate(self):
  12283. return
  12284. def __repr__(self):
  12285. L = ['%s=%r' % (key, value)
  12286. for key, value in self.__dict__.items()]
  12287. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12288. def __eq__(self, other):
  12289. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12290. def __ne__(self, other):
  12291. return not (self == other)
  12292. all_structs.append(get_schema_args)
  12293. get_schema_args.thrift_spec = (
  12294. None, # 0
  12295. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  12296. (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
  12297. )
  12298. class get_schema_result(object):
  12299. """
  12300. Attributes:
  12301. - success
  12302. - o1
  12303. - o2
  12304. - o3
  12305. """
  12306. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  12307. self.success = success
  12308. self.o1 = o1
  12309. self.o2 = o2
  12310. self.o3 = o3
  12311. def read(self, iprot):
  12312. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  12313. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  12314. return
  12315. iprot.readStructBegin()
  12316. while True:
  12317. (fname, ftype, fid) = iprot.readFieldBegin()
  12318. if ftype == TType.STOP:
  12319. break
  12320. if fid == 0:
  12321. if ftype == TType.LIST:
  12322. self.success = []
  12323. (_etype634, _size631) = iprot.readListBegin()
  12324. for _i635 in range(_size631):
  12325. _elem636 = FieldSchema()
  12326. _elem636.read(iprot)
  12327. self.success.append(_elem636)
  12328. iprot.readListEnd()
  12329. else:
  12330. iprot.skip(ftype)
  12331. elif fid == 1:
  12332. if ftype == TType.STRUCT:
  12333. self.o1 = MetaException()
  12334. self.o1.read(iprot)
  12335. else:
  12336. iprot.skip(ftype)
  12337. elif fid == 2:
  12338. if ftype == TType.STRUCT:
  12339. self.o2 = UnknownTableException()
  12340. self.o2.read(iprot)
  12341. else:
  12342. iprot.skip(ftype)
  12343. elif fid == 3:
  12344. if ftype == TType.STRUCT:
  12345. self.o3 = UnknownDBException()
  12346. self.o3.read(iprot)
  12347. else:
  12348. iprot.skip(ftype)
  12349. else:
  12350. iprot.skip(ftype)
  12351. iprot.readFieldEnd()
  12352. iprot.readStructEnd()
  12353. def write(self, oprot):
  12354. if oprot._fast_encode is not None and self.thrift_spec is not None:
  12355. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  12356. return
  12357. oprot.writeStructBegin('get_schema_result')
  12358. if self.success is not None:
  12359. oprot.writeFieldBegin('success', TType.LIST, 0)
  12360. oprot.writeListBegin(TType.STRUCT, len(self.success))
  12361. for iter637 in self.success:
  12362. iter637.write(oprot)
  12363. oprot.writeListEnd()
  12364. oprot.writeFieldEnd()
  12365. if self.o1 is not None:
  12366. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12367. self.o1.write(oprot)
  12368. oprot.writeFieldEnd()
  12369. if self.o2 is not None:
  12370. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  12371. self.o2.write(oprot)
  12372. oprot.writeFieldEnd()
  12373. if self.o3 is not None:
  12374. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  12375. self.o3.write(oprot)
  12376. oprot.writeFieldEnd()
  12377. oprot.writeFieldStop()
  12378. oprot.writeStructEnd()
  12379. def validate(self):
  12380. return
  12381. def __repr__(self):
  12382. L = ['%s=%r' % (key, value)
  12383. for key, value in self.__dict__.items()]
  12384. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12385. def __eq__(self, other):
  12386. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12387. def __ne__(self, other):
  12388. return not (self == other)
  12389. all_structs.append(get_schema_result)
  12390. get_schema_result.thrift_spec = (
  12391. (0, TType.LIST, 'success', (TType.STRUCT, [FieldSchema, None], False), None, ), # 0
  12392. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  12393. (2, TType.STRUCT, 'o2', [UnknownTableException, None], None, ), # 2
  12394. (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3
  12395. )
  12396. class get_schema_with_environment_context_args(object):
  12397. """
  12398. Attributes:
  12399. - db_name
  12400. - table_name
  12401. - environment_context
  12402. """
  12403. def __init__(self, db_name=None, table_name=None, environment_context=None,):
  12404. self.db_name = db_name
  12405. self.table_name = table_name
  12406. self.environment_context = environment_context
  12407. def read(self, iprot):
  12408. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  12409. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  12410. return
  12411. iprot.readStructBegin()
  12412. while True:
  12413. (fname, ftype, fid) = iprot.readFieldBegin()
  12414. if ftype == TType.STOP:
  12415. break
  12416. if fid == 1:
  12417. if ftype == TType.STRING:
  12418. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  12419. else:
  12420. iprot.skip(ftype)
  12421. elif fid == 2:
  12422. if ftype == TType.STRING:
  12423. self.table_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  12424. else:
  12425. iprot.skip(ftype)
  12426. elif fid == 3:
  12427. if ftype == TType.STRUCT:
  12428. self.environment_context = EnvironmentContext()
  12429. self.environment_context.read(iprot)
  12430. else:
  12431. iprot.skip(ftype)
  12432. else:
  12433. iprot.skip(ftype)
  12434. iprot.readFieldEnd()
  12435. iprot.readStructEnd()
  12436. def write(self, oprot):
  12437. if oprot._fast_encode is not None and self.thrift_spec is not None:
  12438. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  12439. return
  12440. oprot.writeStructBegin('get_schema_with_environment_context_args')
  12441. if self.db_name is not None:
  12442. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  12443. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  12444. oprot.writeFieldEnd()
  12445. if self.table_name is not None:
  12446. oprot.writeFieldBegin('table_name', TType.STRING, 2)
  12447. oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
  12448. oprot.writeFieldEnd()
  12449. if self.environment_context is not None:
  12450. oprot.writeFieldBegin('environment_context', TType.STRUCT, 3)
  12451. self.environment_context.write(oprot)
  12452. oprot.writeFieldEnd()
  12453. oprot.writeFieldStop()
  12454. oprot.writeStructEnd()
  12455. def validate(self):
  12456. return
  12457. def __repr__(self):
  12458. L = ['%s=%r' % (key, value)
  12459. for key, value in self.__dict__.items()]
  12460. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12461. def __eq__(self, other):
  12462. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12463. def __ne__(self, other):
  12464. return not (self == other)
  12465. all_structs.append(get_schema_with_environment_context_args)
  12466. get_schema_with_environment_context_args.thrift_spec = (
  12467. None, # 0
  12468. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  12469. (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
  12470. (3, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 3
  12471. )
  12472. class get_schema_with_environment_context_result(object):
  12473. """
  12474. Attributes:
  12475. - success
  12476. - o1
  12477. - o2
  12478. - o3
  12479. """
  12480. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  12481. self.success = success
  12482. self.o1 = o1
  12483. self.o2 = o2
  12484. self.o3 = o3
  12485. def read(self, iprot):
  12486. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  12487. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  12488. return
  12489. iprot.readStructBegin()
  12490. while True:
  12491. (fname, ftype, fid) = iprot.readFieldBegin()
  12492. if ftype == TType.STOP:
  12493. break
  12494. if fid == 0:
  12495. if ftype == TType.LIST:
  12496. self.success = []
  12497. (_etype641, _size638) = iprot.readListBegin()
  12498. for _i642 in range(_size638):
  12499. _elem643 = FieldSchema()
  12500. _elem643.read(iprot)
  12501. self.success.append(_elem643)
  12502. iprot.readListEnd()
  12503. else:
  12504. iprot.skip(ftype)
  12505. elif fid == 1:
  12506. if ftype == TType.STRUCT:
  12507. self.o1 = MetaException()
  12508. self.o1.read(iprot)
  12509. else:
  12510. iprot.skip(ftype)
  12511. elif fid == 2:
  12512. if ftype == TType.STRUCT:
  12513. self.o2 = UnknownTableException()
  12514. self.o2.read(iprot)
  12515. else:
  12516. iprot.skip(ftype)
  12517. elif fid == 3:
  12518. if ftype == TType.STRUCT:
  12519. self.o3 = UnknownDBException()
  12520. self.o3.read(iprot)
  12521. else:
  12522. iprot.skip(ftype)
  12523. else:
  12524. iprot.skip(ftype)
  12525. iprot.readFieldEnd()
  12526. iprot.readStructEnd()
  12527. def write(self, oprot):
  12528. if oprot._fast_encode is not None and self.thrift_spec is not None:
  12529. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  12530. return
  12531. oprot.writeStructBegin('get_schema_with_environment_context_result')
  12532. if self.success is not None:
  12533. oprot.writeFieldBegin('success', TType.LIST, 0)
  12534. oprot.writeListBegin(TType.STRUCT, len(self.success))
  12535. for iter644 in self.success:
  12536. iter644.write(oprot)
  12537. oprot.writeListEnd()
  12538. oprot.writeFieldEnd()
  12539. if self.o1 is not None:
  12540. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12541. self.o1.write(oprot)
  12542. oprot.writeFieldEnd()
  12543. if self.o2 is not None:
  12544. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  12545. self.o2.write(oprot)
  12546. oprot.writeFieldEnd()
  12547. if self.o3 is not None:
  12548. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  12549. self.o3.write(oprot)
  12550. oprot.writeFieldEnd()
  12551. oprot.writeFieldStop()
  12552. oprot.writeStructEnd()
  12553. def validate(self):
  12554. return
  12555. def __repr__(self):
  12556. L = ['%s=%r' % (key, value)
  12557. for key, value in self.__dict__.items()]
  12558. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12559. def __eq__(self, other):
  12560. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12561. def __ne__(self, other):
  12562. return not (self == other)
  12563. all_structs.append(get_schema_with_environment_context_result)
  12564. get_schema_with_environment_context_result.thrift_spec = (
  12565. (0, TType.LIST, 'success', (TType.STRUCT, [FieldSchema, None], False), None, ), # 0
  12566. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  12567. (2, TType.STRUCT, 'o2', [UnknownTableException, None], None, ), # 2
  12568. (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3
  12569. )
  12570. class create_table_args(object):
  12571. """
  12572. Attributes:
  12573. - tbl
  12574. """
  12575. def __init__(self, tbl=None,):
  12576. self.tbl = tbl
  12577. def read(self, iprot):
  12578. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  12579. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  12580. return
  12581. iprot.readStructBegin()
  12582. while True:
  12583. (fname, ftype, fid) = iprot.readFieldBegin()
  12584. if ftype == TType.STOP:
  12585. break
  12586. if fid == 1:
  12587. if ftype == TType.STRUCT:
  12588. self.tbl = Table()
  12589. self.tbl.read(iprot)
  12590. else:
  12591. iprot.skip(ftype)
  12592. else:
  12593. iprot.skip(ftype)
  12594. iprot.readFieldEnd()
  12595. iprot.readStructEnd()
  12596. def write(self, oprot):
  12597. if oprot._fast_encode is not None and self.thrift_spec is not None:
  12598. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  12599. return
  12600. oprot.writeStructBegin('create_table_args')
  12601. if self.tbl is not None:
  12602. oprot.writeFieldBegin('tbl', TType.STRUCT, 1)
  12603. self.tbl.write(oprot)
  12604. oprot.writeFieldEnd()
  12605. oprot.writeFieldStop()
  12606. oprot.writeStructEnd()
  12607. def validate(self):
  12608. return
  12609. def __repr__(self):
  12610. L = ['%s=%r' % (key, value)
  12611. for key, value in self.__dict__.items()]
  12612. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12613. def __eq__(self, other):
  12614. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12615. def __ne__(self, other):
  12616. return not (self == other)
  12617. all_structs.append(create_table_args)
  12618. create_table_args.thrift_spec = (
  12619. None, # 0
  12620. (1, TType.STRUCT, 'tbl', [Table, None], None, ), # 1
  12621. )
  12622. class create_table_result(object):
  12623. """
  12624. Attributes:
  12625. - o1
  12626. - o2
  12627. - o3
  12628. - o4
  12629. """
  12630. def __init__(self, o1=None, o2=None, o3=None, o4=None,):
  12631. self.o1 = o1
  12632. self.o2 = o2
  12633. self.o3 = o3
  12634. self.o4 = o4
  12635. def read(self, iprot):
  12636. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  12637. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  12638. return
  12639. iprot.readStructBegin()
  12640. while True:
  12641. (fname, ftype, fid) = iprot.readFieldBegin()
  12642. if ftype == TType.STOP:
  12643. break
  12644. if fid == 1:
  12645. if ftype == TType.STRUCT:
  12646. self.o1 = AlreadyExistsException()
  12647. self.o1.read(iprot)
  12648. else:
  12649. iprot.skip(ftype)
  12650. elif fid == 2:
  12651. if ftype == TType.STRUCT:
  12652. self.o2 = InvalidObjectException()
  12653. self.o2.read(iprot)
  12654. else:
  12655. iprot.skip(ftype)
  12656. elif fid == 3:
  12657. if ftype == TType.STRUCT:
  12658. self.o3 = MetaException()
  12659. self.o3.read(iprot)
  12660. else:
  12661. iprot.skip(ftype)
  12662. elif fid == 4:
  12663. if ftype == TType.STRUCT:
  12664. self.o4 = NoSuchObjectException()
  12665. self.o4.read(iprot)
  12666. else:
  12667. iprot.skip(ftype)
  12668. else:
  12669. iprot.skip(ftype)
  12670. iprot.readFieldEnd()
  12671. iprot.readStructEnd()
  12672. def write(self, oprot):
  12673. if oprot._fast_encode is not None and self.thrift_spec is not None:
  12674. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  12675. return
  12676. oprot.writeStructBegin('create_table_result')
  12677. if self.o1 is not None:
  12678. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12679. self.o1.write(oprot)
  12680. oprot.writeFieldEnd()
  12681. if self.o2 is not None:
  12682. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  12683. self.o2.write(oprot)
  12684. oprot.writeFieldEnd()
  12685. if self.o3 is not None:
  12686. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  12687. self.o3.write(oprot)
  12688. oprot.writeFieldEnd()
  12689. if self.o4 is not None:
  12690. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  12691. self.o4.write(oprot)
  12692. oprot.writeFieldEnd()
  12693. oprot.writeFieldStop()
  12694. oprot.writeStructEnd()
  12695. def validate(self):
  12696. return
  12697. def __repr__(self):
  12698. L = ['%s=%r' % (key, value)
  12699. for key, value in self.__dict__.items()]
  12700. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12701. def __eq__(self, other):
  12702. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12703. def __ne__(self, other):
  12704. return not (self == other)
  12705. all_structs.append(create_table_result)
  12706. create_table_result.thrift_spec = (
  12707. None, # 0
  12708. (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1
  12709. (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2
  12710. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  12711. (4, TType.STRUCT, 'o4', [NoSuchObjectException, None], None, ), # 4
  12712. )
  12713. class create_table_with_environment_context_args(object):
  12714. """
  12715. Attributes:
  12716. - tbl
  12717. - environment_context
  12718. """
  12719. def __init__(self, tbl=None, environment_context=None,):
  12720. self.tbl = tbl
  12721. self.environment_context = environment_context
  12722. def read(self, iprot):
  12723. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  12724. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  12725. return
  12726. iprot.readStructBegin()
  12727. while True:
  12728. (fname, ftype, fid) = iprot.readFieldBegin()
  12729. if ftype == TType.STOP:
  12730. break
  12731. if fid == 1:
  12732. if ftype == TType.STRUCT:
  12733. self.tbl = Table()
  12734. self.tbl.read(iprot)
  12735. else:
  12736. iprot.skip(ftype)
  12737. elif fid == 2:
  12738. if ftype == TType.STRUCT:
  12739. self.environment_context = EnvironmentContext()
  12740. self.environment_context.read(iprot)
  12741. else:
  12742. iprot.skip(ftype)
  12743. else:
  12744. iprot.skip(ftype)
  12745. iprot.readFieldEnd()
  12746. iprot.readStructEnd()
  12747. def write(self, oprot):
  12748. if oprot._fast_encode is not None and self.thrift_spec is not None:
  12749. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  12750. return
  12751. oprot.writeStructBegin('create_table_with_environment_context_args')
  12752. if self.tbl is not None:
  12753. oprot.writeFieldBegin('tbl', TType.STRUCT, 1)
  12754. self.tbl.write(oprot)
  12755. oprot.writeFieldEnd()
  12756. if self.environment_context is not None:
  12757. oprot.writeFieldBegin('environment_context', TType.STRUCT, 2)
  12758. self.environment_context.write(oprot)
  12759. oprot.writeFieldEnd()
  12760. oprot.writeFieldStop()
  12761. oprot.writeStructEnd()
  12762. def validate(self):
  12763. return
  12764. def __repr__(self):
  12765. L = ['%s=%r' % (key, value)
  12766. for key, value in self.__dict__.items()]
  12767. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12768. def __eq__(self, other):
  12769. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12770. def __ne__(self, other):
  12771. return not (self == other)
  12772. all_structs.append(create_table_with_environment_context_args)
  12773. create_table_with_environment_context_args.thrift_spec = (
  12774. None, # 0
  12775. (1, TType.STRUCT, 'tbl', [Table, None], None, ), # 1
  12776. (2, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 2
  12777. )
  12778. class create_table_with_environment_context_result(object):
  12779. """
  12780. Attributes:
  12781. - o1
  12782. - o2
  12783. - o3
  12784. - o4
  12785. """
  12786. def __init__(self, o1=None, o2=None, o3=None, o4=None,):
  12787. self.o1 = o1
  12788. self.o2 = o2
  12789. self.o3 = o3
  12790. self.o4 = o4
  12791. def read(self, iprot):
  12792. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  12793. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  12794. return
  12795. iprot.readStructBegin()
  12796. while True:
  12797. (fname, ftype, fid) = iprot.readFieldBegin()
  12798. if ftype == TType.STOP:
  12799. break
  12800. if fid == 1:
  12801. if ftype == TType.STRUCT:
  12802. self.o1 = AlreadyExistsException()
  12803. self.o1.read(iprot)
  12804. else:
  12805. iprot.skip(ftype)
  12806. elif fid == 2:
  12807. if ftype == TType.STRUCT:
  12808. self.o2 = InvalidObjectException()
  12809. self.o2.read(iprot)
  12810. else:
  12811. iprot.skip(ftype)
  12812. elif fid == 3:
  12813. if ftype == TType.STRUCT:
  12814. self.o3 = MetaException()
  12815. self.o3.read(iprot)
  12816. else:
  12817. iprot.skip(ftype)
  12818. elif fid == 4:
  12819. if ftype == TType.STRUCT:
  12820. self.o4 = NoSuchObjectException()
  12821. self.o4.read(iprot)
  12822. else:
  12823. iprot.skip(ftype)
  12824. else:
  12825. iprot.skip(ftype)
  12826. iprot.readFieldEnd()
  12827. iprot.readStructEnd()
  12828. def write(self, oprot):
  12829. if oprot._fast_encode is not None and self.thrift_spec is not None:
  12830. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  12831. return
  12832. oprot.writeStructBegin('create_table_with_environment_context_result')
  12833. if self.o1 is not None:
  12834. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  12835. self.o1.write(oprot)
  12836. oprot.writeFieldEnd()
  12837. if self.o2 is not None:
  12838. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  12839. self.o2.write(oprot)
  12840. oprot.writeFieldEnd()
  12841. if self.o3 is not None:
  12842. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  12843. self.o3.write(oprot)
  12844. oprot.writeFieldEnd()
  12845. if self.o4 is not None:
  12846. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  12847. self.o4.write(oprot)
  12848. oprot.writeFieldEnd()
  12849. oprot.writeFieldStop()
  12850. oprot.writeStructEnd()
  12851. def validate(self):
  12852. return
  12853. def __repr__(self):
  12854. L = ['%s=%r' % (key, value)
  12855. for key, value in self.__dict__.items()]
  12856. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12857. def __eq__(self, other):
  12858. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12859. def __ne__(self, other):
  12860. return not (self == other)
  12861. all_structs.append(create_table_with_environment_context_result)
  12862. create_table_with_environment_context_result.thrift_spec = (
  12863. None, # 0
  12864. (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1
  12865. (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2
  12866. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  12867. (4, TType.STRUCT, 'o4', [NoSuchObjectException, None], None, ), # 4
  12868. )
  12869. class create_table_with_constraints_args(object):
  12870. """
  12871. Attributes:
  12872. - tbl
  12873. - primaryKeys
  12874. - foreignKeys
  12875. """
  12876. def __init__(self, tbl=None, primaryKeys=None, foreignKeys=None,):
  12877. self.tbl = tbl
  12878. self.primaryKeys = primaryKeys
  12879. self.foreignKeys = foreignKeys
  12880. def read(self, iprot):
  12881. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  12882. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  12883. return
  12884. iprot.readStructBegin()
  12885. while True:
  12886. (fname, ftype, fid) = iprot.readFieldBegin()
  12887. if ftype == TType.STOP:
  12888. break
  12889. if fid == 1:
  12890. if ftype == TType.STRUCT:
  12891. self.tbl = Table()
  12892. self.tbl.read(iprot)
  12893. else:
  12894. iprot.skip(ftype)
  12895. elif fid == 2:
  12896. if ftype == TType.LIST:
  12897. self.primaryKeys = []
  12898. (_etype648, _size645) = iprot.readListBegin()
  12899. for _i649 in range(_size645):
  12900. _elem650 = SQLPrimaryKey()
  12901. _elem650.read(iprot)
  12902. self.primaryKeys.append(_elem650)
  12903. iprot.readListEnd()
  12904. else:
  12905. iprot.skip(ftype)
  12906. elif fid == 3:
  12907. if ftype == TType.LIST:
  12908. self.foreignKeys = []
  12909. (_etype654, _size651) = iprot.readListBegin()
  12910. for _i655 in range(_size651):
  12911. _elem656 = SQLForeignKey()
  12912. _elem656.read(iprot)
  12913. self.foreignKeys.append(_elem656)
  12914. iprot.readListEnd()
  12915. else:
  12916. iprot.skip(ftype)
  12917. else:
  12918. iprot.skip(ftype)
  12919. iprot.readFieldEnd()
  12920. iprot.readStructEnd()
  12921. def write(self, oprot):
  12922. if oprot._fast_encode is not None and self.thrift_spec is not None:
  12923. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  12924. return
  12925. oprot.writeStructBegin('create_table_with_constraints_args')
  12926. if self.tbl is not None:
  12927. oprot.writeFieldBegin('tbl', TType.STRUCT, 1)
  12928. self.tbl.write(oprot)
  12929. oprot.writeFieldEnd()
  12930. if self.primaryKeys is not None:
  12931. oprot.writeFieldBegin('primaryKeys', TType.LIST, 2)
  12932. oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys))
  12933. for iter657 in self.primaryKeys:
  12934. iter657.write(oprot)
  12935. oprot.writeListEnd()
  12936. oprot.writeFieldEnd()
  12937. if self.foreignKeys is not None:
  12938. oprot.writeFieldBegin('foreignKeys', TType.LIST, 3)
  12939. oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys))
  12940. for iter658 in self.foreignKeys:
  12941. iter658.write(oprot)
  12942. oprot.writeListEnd()
  12943. oprot.writeFieldEnd()
  12944. oprot.writeFieldStop()
  12945. oprot.writeStructEnd()
  12946. def validate(self):
  12947. return
  12948. def __repr__(self):
  12949. L = ['%s=%r' % (key, value)
  12950. for key, value in self.__dict__.items()]
  12951. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  12952. def __eq__(self, other):
  12953. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  12954. def __ne__(self, other):
  12955. return not (self == other)
  12956. all_structs.append(create_table_with_constraints_args)
  12957. create_table_with_constraints_args.thrift_spec = (
  12958. None, # 0
  12959. (1, TType.STRUCT, 'tbl', [Table, None], None, ), # 1
  12960. (2, TType.LIST, 'primaryKeys', (TType.STRUCT, [SQLPrimaryKey, None], False), None, ), # 2
  12961. (3, TType.LIST, 'foreignKeys', (TType.STRUCT, [SQLForeignKey, None], False), None, ), # 3
  12962. )
  12963. class create_table_with_constraints_result(object):
  12964. """
  12965. Attributes:
  12966. - o1
  12967. - o2
  12968. - o3
  12969. - o4
  12970. """
  12971. def __init__(self, o1=None, o2=None, o3=None, o4=None,):
  12972. self.o1 = o1
  12973. self.o2 = o2
  12974. self.o3 = o3
  12975. self.o4 = o4
  12976. def read(self, iprot):
  12977. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  12978. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  12979. return
  12980. iprot.readStructBegin()
  12981. while True:
  12982. (fname, ftype, fid) = iprot.readFieldBegin()
  12983. if ftype == TType.STOP:
  12984. break
  12985. if fid == 1:
  12986. if ftype == TType.STRUCT:
  12987. self.o1 = AlreadyExistsException()
  12988. self.o1.read(iprot)
  12989. else:
  12990. iprot.skip(ftype)
  12991. elif fid == 2:
  12992. if ftype == TType.STRUCT:
  12993. self.o2 = InvalidObjectException()
  12994. self.o2.read(iprot)
  12995. else:
  12996. iprot.skip(ftype)
  12997. elif fid == 3:
  12998. if ftype == TType.STRUCT:
  12999. self.o3 = MetaException()
  13000. self.o3.read(iprot)
  13001. else:
  13002. iprot.skip(ftype)
  13003. elif fid == 4:
  13004. if ftype == TType.STRUCT:
  13005. self.o4 = NoSuchObjectException()
  13006. self.o4.read(iprot)
  13007. else:
  13008. iprot.skip(ftype)
  13009. else:
  13010. iprot.skip(ftype)
  13011. iprot.readFieldEnd()
  13012. iprot.readStructEnd()
  13013. def write(self, oprot):
  13014. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13015. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13016. return
  13017. oprot.writeStructBegin('create_table_with_constraints_result')
  13018. if self.o1 is not None:
  13019. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13020. self.o1.write(oprot)
  13021. oprot.writeFieldEnd()
  13022. if self.o2 is not None:
  13023. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  13024. self.o2.write(oprot)
  13025. oprot.writeFieldEnd()
  13026. if self.o3 is not None:
  13027. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  13028. self.o3.write(oprot)
  13029. oprot.writeFieldEnd()
  13030. if self.o4 is not None:
  13031. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  13032. self.o4.write(oprot)
  13033. oprot.writeFieldEnd()
  13034. oprot.writeFieldStop()
  13035. oprot.writeStructEnd()
  13036. def validate(self):
  13037. return
  13038. def __repr__(self):
  13039. L = ['%s=%r' % (key, value)
  13040. for key, value in self.__dict__.items()]
  13041. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13042. def __eq__(self, other):
  13043. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13044. def __ne__(self, other):
  13045. return not (self == other)
  13046. all_structs.append(create_table_with_constraints_result)
  13047. create_table_with_constraints_result.thrift_spec = (
  13048. None, # 0
  13049. (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1
  13050. (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2
  13051. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  13052. (4, TType.STRUCT, 'o4', [NoSuchObjectException, None], None, ), # 4
  13053. )
  13054. class drop_constraint_args(object):
  13055. """
  13056. Attributes:
  13057. - req
  13058. """
  13059. def __init__(self, req=None,):
  13060. self.req = req
  13061. def read(self, iprot):
  13062. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13063. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13064. return
  13065. iprot.readStructBegin()
  13066. while True:
  13067. (fname, ftype, fid) = iprot.readFieldBegin()
  13068. if ftype == TType.STOP:
  13069. break
  13070. if fid == 1:
  13071. if ftype == TType.STRUCT:
  13072. self.req = DropConstraintRequest()
  13073. self.req.read(iprot)
  13074. else:
  13075. iprot.skip(ftype)
  13076. else:
  13077. iprot.skip(ftype)
  13078. iprot.readFieldEnd()
  13079. iprot.readStructEnd()
  13080. def write(self, oprot):
  13081. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13082. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13083. return
  13084. oprot.writeStructBegin('drop_constraint_args')
  13085. if self.req is not None:
  13086. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  13087. self.req.write(oprot)
  13088. oprot.writeFieldEnd()
  13089. oprot.writeFieldStop()
  13090. oprot.writeStructEnd()
  13091. def validate(self):
  13092. return
  13093. def __repr__(self):
  13094. L = ['%s=%r' % (key, value)
  13095. for key, value in self.__dict__.items()]
  13096. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13097. def __eq__(self, other):
  13098. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13099. def __ne__(self, other):
  13100. return not (self == other)
  13101. all_structs.append(drop_constraint_args)
  13102. drop_constraint_args.thrift_spec = (
  13103. None, # 0
  13104. (1, TType.STRUCT, 'req', [DropConstraintRequest, None], None, ), # 1
  13105. )
  13106. class drop_constraint_result(object):
  13107. """
  13108. Attributes:
  13109. - o1
  13110. - o3
  13111. """
  13112. def __init__(self, o1=None, o3=None,):
  13113. self.o1 = o1
  13114. self.o3 = o3
  13115. def read(self, iprot):
  13116. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13117. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13118. return
  13119. iprot.readStructBegin()
  13120. while True:
  13121. (fname, ftype, fid) = iprot.readFieldBegin()
  13122. if ftype == TType.STOP:
  13123. break
  13124. if fid == 1:
  13125. if ftype == TType.STRUCT:
  13126. self.o1 = NoSuchObjectException()
  13127. self.o1.read(iprot)
  13128. else:
  13129. iprot.skip(ftype)
  13130. elif fid == 2:
  13131. if ftype == TType.STRUCT:
  13132. self.o3 = MetaException()
  13133. self.o3.read(iprot)
  13134. else:
  13135. iprot.skip(ftype)
  13136. else:
  13137. iprot.skip(ftype)
  13138. iprot.readFieldEnd()
  13139. iprot.readStructEnd()
  13140. def write(self, oprot):
  13141. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13142. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13143. return
  13144. oprot.writeStructBegin('drop_constraint_result')
  13145. if self.o1 is not None:
  13146. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13147. self.o1.write(oprot)
  13148. oprot.writeFieldEnd()
  13149. if self.o3 is not None:
  13150. oprot.writeFieldBegin('o3', TType.STRUCT, 2)
  13151. self.o3.write(oprot)
  13152. oprot.writeFieldEnd()
  13153. oprot.writeFieldStop()
  13154. oprot.writeStructEnd()
  13155. def validate(self):
  13156. return
  13157. def __repr__(self):
  13158. L = ['%s=%r' % (key, value)
  13159. for key, value in self.__dict__.items()]
  13160. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13161. def __eq__(self, other):
  13162. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13163. def __ne__(self, other):
  13164. return not (self == other)
  13165. all_structs.append(drop_constraint_result)
  13166. drop_constraint_result.thrift_spec = (
  13167. None, # 0
  13168. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  13169. (2, TType.STRUCT, 'o3', [MetaException, None], None, ), # 2
  13170. )
  13171. class add_primary_key_args(object):
  13172. """
  13173. Attributes:
  13174. - req
  13175. """
  13176. def __init__(self, req=None,):
  13177. self.req = req
  13178. def read(self, iprot):
  13179. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13180. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13181. return
  13182. iprot.readStructBegin()
  13183. while True:
  13184. (fname, ftype, fid) = iprot.readFieldBegin()
  13185. if ftype == TType.STOP:
  13186. break
  13187. if fid == 1:
  13188. if ftype == TType.STRUCT:
  13189. self.req = AddPrimaryKeyRequest()
  13190. self.req.read(iprot)
  13191. else:
  13192. iprot.skip(ftype)
  13193. else:
  13194. iprot.skip(ftype)
  13195. iprot.readFieldEnd()
  13196. iprot.readStructEnd()
  13197. def write(self, oprot):
  13198. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13199. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13200. return
  13201. oprot.writeStructBegin('add_primary_key_args')
  13202. if self.req is not None:
  13203. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  13204. self.req.write(oprot)
  13205. oprot.writeFieldEnd()
  13206. oprot.writeFieldStop()
  13207. oprot.writeStructEnd()
  13208. def validate(self):
  13209. return
  13210. def __repr__(self):
  13211. L = ['%s=%r' % (key, value)
  13212. for key, value in self.__dict__.items()]
  13213. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13214. def __eq__(self, other):
  13215. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13216. def __ne__(self, other):
  13217. return not (self == other)
  13218. all_structs.append(add_primary_key_args)
  13219. add_primary_key_args.thrift_spec = (
  13220. None, # 0
  13221. (1, TType.STRUCT, 'req', [AddPrimaryKeyRequest, None], None, ), # 1
  13222. )
  13223. class add_primary_key_result(object):
  13224. """
  13225. Attributes:
  13226. - o1
  13227. - o2
  13228. """
  13229. def __init__(self, o1=None, o2=None,):
  13230. self.o1 = o1
  13231. self.o2 = o2
  13232. def read(self, iprot):
  13233. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13234. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13235. return
  13236. iprot.readStructBegin()
  13237. while True:
  13238. (fname, ftype, fid) = iprot.readFieldBegin()
  13239. if ftype == TType.STOP:
  13240. break
  13241. if fid == 1:
  13242. if ftype == TType.STRUCT:
  13243. self.o1 = NoSuchObjectException()
  13244. self.o1.read(iprot)
  13245. else:
  13246. iprot.skip(ftype)
  13247. elif fid == 2:
  13248. if ftype == TType.STRUCT:
  13249. self.o2 = MetaException()
  13250. self.o2.read(iprot)
  13251. else:
  13252. iprot.skip(ftype)
  13253. else:
  13254. iprot.skip(ftype)
  13255. iprot.readFieldEnd()
  13256. iprot.readStructEnd()
  13257. def write(self, oprot):
  13258. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13259. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13260. return
  13261. oprot.writeStructBegin('add_primary_key_result')
  13262. if self.o1 is not None:
  13263. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13264. self.o1.write(oprot)
  13265. oprot.writeFieldEnd()
  13266. if self.o2 is not None:
  13267. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  13268. self.o2.write(oprot)
  13269. oprot.writeFieldEnd()
  13270. oprot.writeFieldStop()
  13271. oprot.writeStructEnd()
  13272. def validate(self):
  13273. return
  13274. def __repr__(self):
  13275. L = ['%s=%r' % (key, value)
  13276. for key, value in self.__dict__.items()]
  13277. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13278. def __eq__(self, other):
  13279. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13280. def __ne__(self, other):
  13281. return not (self == other)
  13282. all_structs.append(add_primary_key_result)
  13283. add_primary_key_result.thrift_spec = (
  13284. None, # 0
  13285. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  13286. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  13287. )
  13288. class add_foreign_key_args(object):
  13289. """
  13290. Attributes:
  13291. - req
  13292. """
  13293. def __init__(self, req=None,):
  13294. self.req = req
  13295. def read(self, iprot):
  13296. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13297. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13298. return
  13299. iprot.readStructBegin()
  13300. while True:
  13301. (fname, ftype, fid) = iprot.readFieldBegin()
  13302. if ftype == TType.STOP:
  13303. break
  13304. if fid == 1:
  13305. if ftype == TType.STRUCT:
  13306. self.req = AddForeignKeyRequest()
  13307. self.req.read(iprot)
  13308. else:
  13309. iprot.skip(ftype)
  13310. else:
  13311. iprot.skip(ftype)
  13312. iprot.readFieldEnd()
  13313. iprot.readStructEnd()
  13314. def write(self, oprot):
  13315. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13316. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13317. return
  13318. oprot.writeStructBegin('add_foreign_key_args')
  13319. if self.req is not None:
  13320. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  13321. self.req.write(oprot)
  13322. oprot.writeFieldEnd()
  13323. oprot.writeFieldStop()
  13324. oprot.writeStructEnd()
  13325. def validate(self):
  13326. return
  13327. def __repr__(self):
  13328. L = ['%s=%r' % (key, value)
  13329. for key, value in self.__dict__.items()]
  13330. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13331. def __eq__(self, other):
  13332. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13333. def __ne__(self, other):
  13334. return not (self == other)
  13335. all_structs.append(add_foreign_key_args)
  13336. add_foreign_key_args.thrift_spec = (
  13337. None, # 0
  13338. (1, TType.STRUCT, 'req', [AddForeignKeyRequest, None], None, ), # 1
  13339. )
  13340. class add_foreign_key_result(object):
  13341. """
  13342. Attributes:
  13343. - o1
  13344. - o2
  13345. """
  13346. def __init__(self, o1=None, o2=None,):
  13347. self.o1 = o1
  13348. self.o2 = o2
  13349. def read(self, iprot):
  13350. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13351. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13352. return
  13353. iprot.readStructBegin()
  13354. while True:
  13355. (fname, ftype, fid) = iprot.readFieldBegin()
  13356. if ftype == TType.STOP:
  13357. break
  13358. if fid == 1:
  13359. if ftype == TType.STRUCT:
  13360. self.o1 = NoSuchObjectException()
  13361. self.o1.read(iprot)
  13362. else:
  13363. iprot.skip(ftype)
  13364. elif fid == 2:
  13365. if ftype == TType.STRUCT:
  13366. self.o2 = MetaException()
  13367. self.o2.read(iprot)
  13368. else:
  13369. iprot.skip(ftype)
  13370. else:
  13371. iprot.skip(ftype)
  13372. iprot.readFieldEnd()
  13373. iprot.readStructEnd()
  13374. def write(self, oprot):
  13375. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13376. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13377. return
  13378. oprot.writeStructBegin('add_foreign_key_result')
  13379. if self.o1 is not None:
  13380. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13381. self.o1.write(oprot)
  13382. oprot.writeFieldEnd()
  13383. if self.o2 is not None:
  13384. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  13385. self.o2.write(oprot)
  13386. oprot.writeFieldEnd()
  13387. oprot.writeFieldStop()
  13388. oprot.writeStructEnd()
  13389. def validate(self):
  13390. return
  13391. def __repr__(self):
  13392. L = ['%s=%r' % (key, value)
  13393. for key, value in self.__dict__.items()]
  13394. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13395. def __eq__(self, other):
  13396. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13397. def __ne__(self, other):
  13398. return not (self == other)
  13399. all_structs.append(add_foreign_key_result)
  13400. add_foreign_key_result.thrift_spec = (
  13401. None, # 0
  13402. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  13403. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  13404. )
  13405. class drop_table_args(object):
  13406. """
  13407. Attributes:
  13408. - dbname
  13409. - name
  13410. - deleteData
  13411. """
  13412. def __init__(self, dbname=None, name=None, deleteData=None,):
  13413. self.dbname = dbname
  13414. self.name = name
  13415. self.deleteData = deleteData
  13416. def read(self, iprot):
  13417. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13418. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13419. return
  13420. iprot.readStructBegin()
  13421. while True:
  13422. (fname, ftype, fid) = iprot.readFieldBegin()
  13423. if ftype == TType.STOP:
  13424. break
  13425. if fid == 1:
  13426. if ftype == TType.STRING:
  13427. self.dbname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  13428. else:
  13429. iprot.skip(ftype)
  13430. elif fid == 2:
  13431. if ftype == TType.STRING:
  13432. self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  13433. else:
  13434. iprot.skip(ftype)
  13435. elif fid == 3:
  13436. if ftype == TType.BOOL:
  13437. self.deleteData = iprot.readBool()
  13438. else:
  13439. iprot.skip(ftype)
  13440. else:
  13441. iprot.skip(ftype)
  13442. iprot.readFieldEnd()
  13443. iprot.readStructEnd()
  13444. def write(self, oprot):
  13445. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13446. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13447. return
  13448. oprot.writeStructBegin('drop_table_args')
  13449. if self.dbname is not None:
  13450. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  13451. oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
  13452. oprot.writeFieldEnd()
  13453. if self.name is not None:
  13454. oprot.writeFieldBegin('name', TType.STRING, 2)
  13455. oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
  13456. oprot.writeFieldEnd()
  13457. if self.deleteData is not None:
  13458. oprot.writeFieldBegin('deleteData', TType.BOOL, 3)
  13459. oprot.writeBool(self.deleteData)
  13460. oprot.writeFieldEnd()
  13461. oprot.writeFieldStop()
  13462. oprot.writeStructEnd()
  13463. def validate(self):
  13464. return
  13465. def __repr__(self):
  13466. L = ['%s=%r' % (key, value)
  13467. for key, value in self.__dict__.items()]
  13468. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13469. def __eq__(self, other):
  13470. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13471. def __ne__(self, other):
  13472. return not (self == other)
  13473. all_structs.append(drop_table_args)
  13474. drop_table_args.thrift_spec = (
  13475. None, # 0
  13476. (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1
  13477. (2, TType.STRING, 'name', 'UTF8', None, ), # 2
  13478. (3, TType.BOOL, 'deleteData', None, None, ), # 3
  13479. )
  13480. class drop_table_result(object):
  13481. """
  13482. Attributes:
  13483. - o1
  13484. - o3
  13485. """
  13486. def __init__(self, o1=None, o3=None,):
  13487. self.o1 = o1
  13488. self.o3 = o3
  13489. def read(self, iprot):
  13490. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13491. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13492. return
  13493. iprot.readStructBegin()
  13494. while True:
  13495. (fname, ftype, fid) = iprot.readFieldBegin()
  13496. if ftype == TType.STOP:
  13497. break
  13498. if fid == 1:
  13499. if ftype == TType.STRUCT:
  13500. self.o1 = NoSuchObjectException()
  13501. self.o1.read(iprot)
  13502. else:
  13503. iprot.skip(ftype)
  13504. elif fid == 2:
  13505. if ftype == TType.STRUCT:
  13506. self.o3 = MetaException()
  13507. self.o3.read(iprot)
  13508. else:
  13509. iprot.skip(ftype)
  13510. else:
  13511. iprot.skip(ftype)
  13512. iprot.readFieldEnd()
  13513. iprot.readStructEnd()
  13514. def write(self, oprot):
  13515. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13516. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13517. return
  13518. oprot.writeStructBegin('drop_table_result')
  13519. if self.o1 is not None:
  13520. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13521. self.o1.write(oprot)
  13522. oprot.writeFieldEnd()
  13523. if self.o3 is not None:
  13524. oprot.writeFieldBegin('o3', TType.STRUCT, 2)
  13525. self.o3.write(oprot)
  13526. oprot.writeFieldEnd()
  13527. oprot.writeFieldStop()
  13528. oprot.writeStructEnd()
  13529. def validate(self):
  13530. return
  13531. def __repr__(self):
  13532. L = ['%s=%r' % (key, value)
  13533. for key, value in self.__dict__.items()]
  13534. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13535. def __eq__(self, other):
  13536. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13537. def __ne__(self, other):
  13538. return not (self == other)
  13539. all_structs.append(drop_table_result)
  13540. drop_table_result.thrift_spec = (
  13541. None, # 0
  13542. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  13543. (2, TType.STRUCT, 'o3', [MetaException, None], None, ), # 2
  13544. )
  13545. class drop_table_with_environment_context_args(object):
  13546. """
  13547. Attributes:
  13548. - dbname
  13549. - name
  13550. - deleteData
  13551. - environment_context
  13552. """
  13553. def __init__(self, dbname=None, name=None, deleteData=None, environment_context=None,):
  13554. self.dbname = dbname
  13555. self.name = name
  13556. self.deleteData = deleteData
  13557. self.environment_context = environment_context
  13558. def read(self, iprot):
  13559. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13560. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13561. return
  13562. iprot.readStructBegin()
  13563. while True:
  13564. (fname, ftype, fid) = iprot.readFieldBegin()
  13565. if ftype == TType.STOP:
  13566. break
  13567. if fid == 1:
  13568. if ftype == TType.STRING:
  13569. self.dbname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  13570. else:
  13571. iprot.skip(ftype)
  13572. elif fid == 2:
  13573. if ftype == TType.STRING:
  13574. self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  13575. else:
  13576. iprot.skip(ftype)
  13577. elif fid == 3:
  13578. if ftype == TType.BOOL:
  13579. self.deleteData = iprot.readBool()
  13580. else:
  13581. iprot.skip(ftype)
  13582. elif fid == 4:
  13583. if ftype == TType.STRUCT:
  13584. self.environment_context = EnvironmentContext()
  13585. self.environment_context.read(iprot)
  13586. else:
  13587. iprot.skip(ftype)
  13588. else:
  13589. iprot.skip(ftype)
  13590. iprot.readFieldEnd()
  13591. iprot.readStructEnd()
  13592. def write(self, oprot):
  13593. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13594. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13595. return
  13596. oprot.writeStructBegin('drop_table_with_environment_context_args')
  13597. if self.dbname is not None:
  13598. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  13599. oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
  13600. oprot.writeFieldEnd()
  13601. if self.name is not None:
  13602. oprot.writeFieldBegin('name', TType.STRING, 2)
  13603. oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
  13604. oprot.writeFieldEnd()
  13605. if self.deleteData is not None:
  13606. oprot.writeFieldBegin('deleteData', TType.BOOL, 3)
  13607. oprot.writeBool(self.deleteData)
  13608. oprot.writeFieldEnd()
  13609. if self.environment_context is not None:
  13610. oprot.writeFieldBegin('environment_context', TType.STRUCT, 4)
  13611. self.environment_context.write(oprot)
  13612. oprot.writeFieldEnd()
  13613. oprot.writeFieldStop()
  13614. oprot.writeStructEnd()
  13615. def validate(self):
  13616. return
  13617. def __repr__(self):
  13618. L = ['%s=%r' % (key, value)
  13619. for key, value in self.__dict__.items()]
  13620. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13621. def __eq__(self, other):
  13622. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13623. def __ne__(self, other):
  13624. return not (self == other)
  13625. all_structs.append(drop_table_with_environment_context_args)
  13626. drop_table_with_environment_context_args.thrift_spec = (
  13627. None, # 0
  13628. (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1
  13629. (2, TType.STRING, 'name', 'UTF8', None, ), # 2
  13630. (3, TType.BOOL, 'deleteData', None, None, ), # 3
  13631. (4, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 4
  13632. )
  13633. class drop_table_with_environment_context_result(object):
  13634. """
  13635. Attributes:
  13636. - o1
  13637. - o3
  13638. """
  13639. def __init__(self, o1=None, o3=None,):
  13640. self.o1 = o1
  13641. self.o3 = o3
  13642. def read(self, iprot):
  13643. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13644. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13645. return
  13646. iprot.readStructBegin()
  13647. while True:
  13648. (fname, ftype, fid) = iprot.readFieldBegin()
  13649. if ftype == TType.STOP:
  13650. break
  13651. if fid == 1:
  13652. if ftype == TType.STRUCT:
  13653. self.o1 = NoSuchObjectException()
  13654. self.o1.read(iprot)
  13655. else:
  13656. iprot.skip(ftype)
  13657. elif fid == 2:
  13658. if ftype == TType.STRUCT:
  13659. self.o3 = MetaException()
  13660. self.o3.read(iprot)
  13661. else:
  13662. iprot.skip(ftype)
  13663. else:
  13664. iprot.skip(ftype)
  13665. iprot.readFieldEnd()
  13666. iprot.readStructEnd()
  13667. def write(self, oprot):
  13668. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13669. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13670. return
  13671. oprot.writeStructBegin('drop_table_with_environment_context_result')
  13672. if self.o1 is not None:
  13673. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13674. self.o1.write(oprot)
  13675. oprot.writeFieldEnd()
  13676. if self.o3 is not None:
  13677. oprot.writeFieldBegin('o3', TType.STRUCT, 2)
  13678. self.o3.write(oprot)
  13679. oprot.writeFieldEnd()
  13680. oprot.writeFieldStop()
  13681. oprot.writeStructEnd()
  13682. def validate(self):
  13683. return
  13684. def __repr__(self):
  13685. L = ['%s=%r' % (key, value)
  13686. for key, value in self.__dict__.items()]
  13687. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13688. def __eq__(self, other):
  13689. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13690. def __ne__(self, other):
  13691. return not (self == other)
  13692. all_structs.append(drop_table_with_environment_context_result)
  13693. drop_table_with_environment_context_result.thrift_spec = (
  13694. None, # 0
  13695. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  13696. (2, TType.STRUCT, 'o3', [MetaException, None], None, ), # 2
  13697. )
  13698. class get_tables_args(object):
  13699. """
  13700. Attributes:
  13701. - db_name
  13702. - pattern
  13703. """
  13704. def __init__(self, db_name=None, pattern=None,):
  13705. self.db_name = db_name
  13706. self.pattern = pattern
  13707. def read(self, iprot):
  13708. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13709. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13710. return
  13711. iprot.readStructBegin()
  13712. while True:
  13713. (fname, ftype, fid) = iprot.readFieldBegin()
  13714. if ftype == TType.STOP:
  13715. break
  13716. if fid == 1:
  13717. if ftype == TType.STRING:
  13718. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  13719. else:
  13720. iprot.skip(ftype)
  13721. elif fid == 2:
  13722. if ftype == TType.STRING:
  13723. self.pattern = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  13724. else:
  13725. iprot.skip(ftype)
  13726. else:
  13727. iprot.skip(ftype)
  13728. iprot.readFieldEnd()
  13729. iprot.readStructEnd()
  13730. def write(self, oprot):
  13731. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13732. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13733. return
  13734. oprot.writeStructBegin('get_tables_args')
  13735. if self.db_name is not None:
  13736. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  13737. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  13738. oprot.writeFieldEnd()
  13739. if self.pattern is not None:
  13740. oprot.writeFieldBegin('pattern', TType.STRING, 2)
  13741. oprot.writeString(self.pattern.encode('utf-8') if sys.version_info[0] == 2 else self.pattern)
  13742. oprot.writeFieldEnd()
  13743. oprot.writeFieldStop()
  13744. oprot.writeStructEnd()
  13745. def validate(self):
  13746. return
  13747. def __repr__(self):
  13748. L = ['%s=%r' % (key, value)
  13749. for key, value in self.__dict__.items()]
  13750. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13751. def __eq__(self, other):
  13752. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13753. def __ne__(self, other):
  13754. return not (self == other)
  13755. all_structs.append(get_tables_args)
  13756. get_tables_args.thrift_spec = (
  13757. None, # 0
  13758. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  13759. (2, TType.STRING, 'pattern', 'UTF8', None, ), # 2
  13760. )
  13761. class get_tables_result(object):
  13762. """
  13763. Attributes:
  13764. - success
  13765. - o1
  13766. """
  13767. def __init__(self, success=None, o1=None,):
  13768. self.success = success
  13769. self.o1 = o1
  13770. def read(self, iprot):
  13771. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13772. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13773. return
  13774. iprot.readStructBegin()
  13775. while True:
  13776. (fname, ftype, fid) = iprot.readFieldBegin()
  13777. if ftype == TType.STOP:
  13778. break
  13779. if fid == 0:
  13780. if ftype == TType.LIST:
  13781. self.success = []
  13782. (_etype662, _size659) = iprot.readListBegin()
  13783. for _i663 in range(_size659):
  13784. _elem664 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  13785. self.success.append(_elem664)
  13786. iprot.readListEnd()
  13787. else:
  13788. iprot.skip(ftype)
  13789. elif fid == 1:
  13790. if ftype == TType.STRUCT:
  13791. self.o1 = MetaException()
  13792. self.o1.read(iprot)
  13793. else:
  13794. iprot.skip(ftype)
  13795. else:
  13796. iprot.skip(ftype)
  13797. iprot.readFieldEnd()
  13798. iprot.readStructEnd()
  13799. def write(self, oprot):
  13800. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13801. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13802. return
  13803. oprot.writeStructBegin('get_tables_result')
  13804. if self.success is not None:
  13805. oprot.writeFieldBegin('success', TType.LIST, 0)
  13806. oprot.writeListBegin(TType.STRING, len(self.success))
  13807. for iter665 in self.success:
  13808. oprot.writeString(iter665.encode('utf-8') if sys.version_info[0] == 2 else iter665)
  13809. oprot.writeListEnd()
  13810. oprot.writeFieldEnd()
  13811. if self.o1 is not None:
  13812. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13813. self.o1.write(oprot)
  13814. oprot.writeFieldEnd()
  13815. oprot.writeFieldStop()
  13816. oprot.writeStructEnd()
  13817. def validate(self):
  13818. return
  13819. def __repr__(self):
  13820. L = ['%s=%r' % (key, value)
  13821. for key, value in self.__dict__.items()]
  13822. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13823. def __eq__(self, other):
  13824. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13825. def __ne__(self, other):
  13826. return not (self == other)
  13827. all_structs.append(get_tables_result)
  13828. get_tables_result.thrift_spec = (
  13829. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  13830. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  13831. )
  13832. class get_table_meta_args(object):
  13833. """
  13834. Attributes:
  13835. - db_patterns
  13836. - tbl_patterns
  13837. - tbl_types
  13838. """
  13839. def __init__(self, db_patterns=None, tbl_patterns=None, tbl_types=None,):
  13840. self.db_patterns = db_patterns
  13841. self.tbl_patterns = tbl_patterns
  13842. self.tbl_types = tbl_types
  13843. def read(self, iprot):
  13844. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13845. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13846. return
  13847. iprot.readStructBegin()
  13848. while True:
  13849. (fname, ftype, fid) = iprot.readFieldBegin()
  13850. if ftype == TType.STOP:
  13851. break
  13852. if fid == 1:
  13853. if ftype == TType.STRING:
  13854. self.db_patterns = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  13855. else:
  13856. iprot.skip(ftype)
  13857. elif fid == 2:
  13858. if ftype == TType.STRING:
  13859. self.tbl_patterns = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  13860. else:
  13861. iprot.skip(ftype)
  13862. elif fid == 3:
  13863. if ftype == TType.LIST:
  13864. self.tbl_types = []
  13865. (_etype669, _size666) = iprot.readListBegin()
  13866. for _i670 in range(_size666):
  13867. _elem671 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  13868. self.tbl_types.append(_elem671)
  13869. iprot.readListEnd()
  13870. else:
  13871. iprot.skip(ftype)
  13872. else:
  13873. iprot.skip(ftype)
  13874. iprot.readFieldEnd()
  13875. iprot.readStructEnd()
  13876. def write(self, oprot):
  13877. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13878. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13879. return
  13880. oprot.writeStructBegin('get_table_meta_args')
  13881. if self.db_patterns is not None:
  13882. oprot.writeFieldBegin('db_patterns', TType.STRING, 1)
  13883. oprot.writeString(self.db_patterns.encode('utf-8') if sys.version_info[0] == 2 else self.db_patterns)
  13884. oprot.writeFieldEnd()
  13885. if self.tbl_patterns is not None:
  13886. oprot.writeFieldBegin('tbl_patterns', TType.STRING, 2)
  13887. oprot.writeString(self.tbl_patterns.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_patterns)
  13888. oprot.writeFieldEnd()
  13889. if self.tbl_types is not None:
  13890. oprot.writeFieldBegin('tbl_types', TType.LIST, 3)
  13891. oprot.writeListBegin(TType.STRING, len(self.tbl_types))
  13892. for iter672 in self.tbl_types:
  13893. oprot.writeString(iter672.encode('utf-8') if sys.version_info[0] == 2 else iter672)
  13894. oprot.writeListEnd()
  13895. oprot.writeFieldEnd()
  13896. oprot.writeFieldStop()
  13897. oprot.writeStructEnd()
  13898. def validate(self):
  13899. return
  13900. def __repr__(self):
  13901. L = ['%s=%r' % (key, value)
  13902. for key, value in self.__dict__.items()]
  13903. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13904. def __eq__(self, other):
  13905. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13906. def __ne__(self, other):
  13907. return not (self == other)
  13908. all_structs.append(get_table_meta_args)
  13909. get_table_meta_args.thrift_spec = (
  13910. None, # 0
  13911. (1, TType.STRING, 'db_patterns', 'UTF8', None, ), # 1
  13912. (2, TType.STRING, 'tbl_patterns', 'UTF8', None, ), # 2
  13913. (3, TType.LIST, 'tbl_types', (TType.STRING, 'UTF8', False), None, ), # 3
  13914. )
  13915. class get_table_meta_result(object):
  13916. """
  13917. Attributes:
  13918. - success
  13919. - o1
  13920. """
  13921. def __init__(self, success=None, o1=None,):
  13922. self.success = success
  13923. self.o1 = o1
  13924. def read(self, iprot):
  13925. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13926. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13927. return
  13928. iprot.readStructBegin()
  13929. while True:
  13930. (fname, ftype, fid) = iprot.readFieldBegin()
  13931. if ftype == TType.STOP:
  13932. break
  13933. if fid == 0:
  13934. if ftype == TType.LIST:
  13935. self.success = []
  13936. (_etype676, _size673) = iprot.readListBegin()
  13937. for _i677 in range(_size673):
  13938. _elem678 = TableMeta()
  13939. _elem678.read(iprot)
  13940. self.success.append(_elem678)
  13941. iprot.readListEnd()
  13942. else:
  13943. iprot.skip(ftype)
  13944. elif fid == 1:
  13945. if ftype == TType.STRUCT:
  13946. self.o1 = MetaException()
  13947. self.o1.read(iprot)
  13948. else:
  13949. iprot.skip(ftype)
  13950. else:
  13951. iprot.skip(ftype)
  13952. iprot.readFieldEnd()
  13953. iprot.readStructEnd()
  13954. def write(self, oprot):
  13955. if oprot._fast_encode is not None and self.thrift_spec is not None:
  13956. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  13957. return
  13958. oprot.writeStructBegin('get_table_meta_result')
  13959. if self.success is not None:
  13960. oprot.writeFieldBegin('success', TType.LIST, 0)
  13961. oprot.writeListBegin(TType.STRUCT, len(self.success))
  13962. for iter679 in self.success:
  13963. iter679.write(oprot)
  13964. oprot.writeListEnd()
  13965. oprot.writeFieldEnd()
  13966. if self.o1 is not None:
  13967. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  13968. self.o1.write(oprot)
  13969. oprot.writeFieldEnd()
  13970. oprot.writeFieldStop()
  13971. oprot.writeStructEnd()
  13972. def validate(self):
  13973. return
  13974. def __repr__(self):
  13975. L = ['%s=%r' % (key, value)
  13976. for key, value in self.__dict__.items()]
  13977. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  13978. def __eq__(self, other):
  13979. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  13980. def __ne__(self, other):
  13981. return not (self == other)
  13982. all_structs.append(get_table_meta_result)
  13983. get_table_meta_result.thrift_spec = (
  13984. (0, TType.LIST, 'success', (TType.STRUCT, [TableMeta, None], False), None, ), # 0
  13985. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  13986. )
  13987. class get_all_tables_args(object):
  13988. """
  13989. Attributes:
  13990. - db_name
  13991. """
  13992. def __init__(self, db_name=None,):
  13993. self.db_name = db_name
  13994. def read(self, iprot):
  13995. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  13996. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  13997. return
  13998. iprot.readStructBegin()
  13999. while True:
  14000. (fname, ftype, fid) = iprot.readFieldBegin()
  14001. if ftype == TType.STOP:
  14002. break
  14003. if fid == 1:
  14004. if ftype == TType.STRING:
  14005. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14006. else:
  14007. iprot.skip(ftype)
  14008. else:
  14009. iprot.skip(ftype)
  14010. iprot.readFieldEnd()
  14011. iprot.readStructEnd()
  14012. def write(self, oprot):
  14013. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14014. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14015. return
  14016. oprot.writeStructBegin('get_all_tables_args')
  14017. if self.db_name is not None:
  14018. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  14019. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  14020. oprot.writeFieldEnd()
  14021. oprot.writeFieldStop()
  14022. oprot.writeStructEnd()
  14023. def validate(self):
  14024. return
  14025. def __repr__(self):
  14026. L = ['%s=%r' % (key, value)
  14027. for key, value in self.__dict__.items()]
  14028. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14029. def __eq__(self, other):
  14030. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14031. def __ne__(self, other):
  14032. return not (self == other)
  14033. all_structs.append(get_all_tables_args)
  14034. get_all_tables_args.thrift_spec = (
  14035. None, # 0
  14036. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  14037. )
  14038. class get_all_tables_result(object):
  14039. """
  14040. Attributes:
  14041. - success
  14042. - o1
  14043. """
  14044. def __init__(self, success=None, o1=None,):
  14045. self.success = success
  14046. self.o1 = o1
  14047. def read(self, iprot):
  14048. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14049. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  14050. return
  14051. iprot.readStructBegin()
  14052. while True:
  14053. (fname, ftype, fid) = iprot.readFieldBegin()
  14054. if ftype == TType.STOP:
  14055. break
  14056. if fid == 0:
  14057. if ftype == TType.LIST:
  14058. self.success = []
  14059. (_etype683, _size680) = iprot.readListBegin()
  14060. for _i684 in range(_size680):
  14061. _elem685 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14062. self.success.append(_elem685)
  14063. iprot.readListEnd()
  14064. else:
  14065. iprot.skip(ftype)
  14066. elif fid == 1:
  14067. if ftype == TType.STRUCT:
  14068. self.o1 = MetaException()
  14069. self.o1.read(iprot)
  14070. else:
  14071. iprot.skip(ftype)
  14072. else:
  14073. iprot.skip(ftype)
  14074. iprot.readFieldEnd()
  14075. iprot.readStructEnd()
  14076. def write(self, oprot):
  14077. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14078. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14079. return
  14080. oprot.writeStructBegin('get_all_tables_result')
  14081. if self.success is not None:
  14082. oprot.writeFieldBegin('success', TType.LIST, 0)
  14083. oprot.writeListBegin(TType.STRING, len(self.success))
  14084. for iter686 in self.success:
  14085. oprot.writeString(iter686.encode('utf-8') if sys.version_info[0] == 2 else iter686)
  14086. oprot.writeListEnd()
  14087. oprot.writeFieldEnd()
  14088. if self.o1 is not None:
  14089. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  14090. self.o1.write(oprot)
  14091. oprot.writeFieldEnd()
  14092. oprot.writeFieldStop()
  14093. oprot.writeStructEnd()
  14094. def validate(self):
  14095. return
  14096. def __repr__(self):
  14097. L = ['%s=%r' % (key, value)
  14098. for key, value in self.__dict__.items()]
  14099. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14100. def __eq__(self, other):
  14101. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14102. def __ne__(self, other):
  14103. return not (self == other)
  14104. all_structs.append(get_all_tables_result)
  14105. get_all_tables_result.thrift_spec = (
  14106. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  14107. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  14108. )
  14109. class get_table_args(object):
  14110. """
  14111. Attributes:
  14112. - dbname
  14113. - tbl_name
  14114. """
  14115. def __init__(self, dbname=None, tbl_name=None,):
  14116. self.dbname = dbname
  14117. self.tbl_name = tbl_name
  14118. def read(self, iprot):
  14119. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14120. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  14121. return
  14122. iprot.readStructBegin()
  14123. while True:
  14124. (fname, ftype, fid) = iprot.readFieldBegin()
  14125. if ftype == TType.STOP:
  14126. break
  14127. if fid == 1:
  14128. if ftype == TType.STRING:
  14129. self.dbname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14130. else:
  14131. iprot.skip(ftype)
  14132. elif fid == 2:
  14133. if ftype == TType.STRING:
  14134. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14135. else:
  14136. iprot.skip(ftype)
  14137. else:
  14138. iprot.skip(ftype)
  14139. iprot.readFieldEnd()
  14140. iprot.readStructEnd()
  14141. def write(self, oprot):
  14142. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14143. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14144. return
  14145. oprot.writeStructBegin('get_table_args')
  14146. if self.dbname is not None:
  14147. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  14148. oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
  14149. oprot.writeFieldEnd()
  14150. if self.tbl_name is not None:
  14151. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  14152. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  14153. oprot.writeFieldEnd()
  14154. oprot.writeFieldStop()
  14155. oprot.writeStructEnd()
  14156. def validate(self):
  14157. return
  14158. def __repr__(self):
  14159. L = ['%s=%r' % (key, value)
  14160. for key, value in self.__dict__.items()]
  14161. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14162. def __eq__(self, other):
  14163. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14164. def __ne__(self, other):
  14165. return not (self == other)
  14166. all_structs.append(get_table_args)
  14167. get_table_args.thrift_spec = (
  14168. None, # 0
  14169. (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1
  14170. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  14171. )
  14172. class get_table_result(object):
  14173. """
  14174. Attributes:
  14175. - success
  14176. - o1
  14177. - o2
  14178. """
  14179. def __init__(self, success=None, o1=None, o2=None,):
  14180. self.success = success
  14181. self.o1 = o1
  14182. self.o2 = o2
  14183. def read(self, iprot):
  14184. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14185. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  14186. return
  14187. iprot.readStructBegin()
  14188. while True:
  14189. (fname, ftype, fid) = iprot.readFieldBegin()
  14190. if ftype == TType.STOP:
  14191. break
  14192. if fid == 0:
  14193. if ftype == TType.STRUCT:
  14194. self.success = Table()
  14195. self.success.read(iprot)
  14196. else:
  14197. iprot.skip(ftype)
  14198. elif fid == 1:
  14199. if ftype == TType.STRUCT:
  14200. self.o1 = MetaException()
  14201. self.o1.read(iprot)
  14202. else:
  14203. iprot.skip(ftype)
  14204. elif fid == 2:
  14205. if ftype == TType.STRUCT:
  14206. self.o2 = NoSuchObjectException()
  14207. self.o2.read(iprot)
  14208. else:
  14209. iprot.skip(ftype)
  14210. else:
  14211. iprot.skip(ftype)
  14212. iprot.readFieldEnd()
  14213. iprot.readStructEnd()
  14214. def write(self, oprot):
  14215. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14216. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14217. return
  14218. oprot.writeStructBegin('get_table_result')
  14219. if self.success is not None:
  14220. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  14221. self.success.write(oprot)
  14222. oprot.writeFieldEnd()
  14223. if self.o1 is not None:
  14224. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  14225. self.o1.write(oprot)
  14226. oprot.writeFieldEnd()
  14227. if self.o2 is not None:
  14228. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  14229. self.o2.write(oprot)
  14230. oprot.writeFieldEnd()
  14231. oprot.writeFieldStop()
  14232. oprot.writeStructEnd()
  14233. def validate(self):
  14234. return
  14235. def __repr__(self):
  14236. L = ['%s=%r' % (key, value)
  14237. for key, value in self.__dict__.items()]
  14238. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14239. def __eq__(self, other):
  14240. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14241. def __ne__(self, other):
  14242. return not (self == other)
  14243. all_structs.append(get_table_result)
  14244. get_table_result.thrift_spec = (
  14245. (0, TType.STRUCT, 'success', [Table, None], None, ), # 0
  14246. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  14247. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  14248. )
  14249. class get_table_objects_by_name_args(object):
  14250. """
  14251. Attributes:
  14252. - dbname
  14253. - tbl_names
  14254. """
  14255. def __init__(self, dbname=None, tbl_names=None,):
  14256. self.dbname = dbname
  14257. self.tbl_names = tbl_names
  14258. def read(self, iprot):
  14259. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14260. iprot._fast_decode(self, iprot, [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().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14270. else:
  14271. iprot.skip(ftype)
  14272. elif fid == 2:
  14273. if ftype == TType.LIST:
  14274. self.tbl_names = []
  14275. (_etype690, _size687) = iprot.readListBegin()
  14276. for _i691 in range(_size687):
  14277. _elem692 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14278. self.tbl_names.append(_elem692)
  14279. iprot.readListEnd()
  14280. else:
  14281. iprot.skip(ftype)
  14282. else:
  14283. iprot.skip(ftype)
  14284. iprot.readFieldEnd()
  14285. iprot.readStructEnd()
  14286. def write(self, oprot):
  14287. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14288. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14289. return
  14290. oprot.writeStructBegin('get_table_objects_by_name_args')
  14291. if self.dbname is not None:
  14292. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  14293. oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
  14294. oprot.writeFieldEnd()
  14295. if self.tbl_names is not None:
  14296. oprot.writeFieldBegin('tbl_names', TType.LIST, 2)
  14297. oprot.writeListBegin(TType.STRING, len(self.tbl_names))
  14298. for iter693 in self.tbl_names:
  14299. oprot.writeString(iter693.encode('utf-8') if sys.version_info[0] == 2 else iter693)
  14300. oprot.writeListEnd()
  14301. oprot.writeFieldEnd()
  14302. oprot.writeFieldStop()
  14303. oprot.writeStructEnd()
  14304. def validate(self):
  14305. return
  14306. def __repr__(self):
  14307. L = ['%s=%r' % (key, value)
  14308. for key, value in self.__dict__.items()]
  14309. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14310. def __eq__(self, other):
  14311. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14312. def __ne__(self, other):
  14313. return not (self == other)
  14314. all_structs.append(get_table_objects_by_name_args)
  14315. get_table_objects_by_name_args.thrift_spec = (
  14316. None, # 0
  14317. (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1
  14318. (2, TType.LIST, 'tbl_names', (TType.STRING, 'UTF8', False), None, ), # 2
  14319. )
  14320. class get_table_objects_by_name_result(object):
  14321. """
  14322. Attributes:
  14323. - success
  14324. - o1
  14325. - o2
  14326. - o3
  14327. """
  14328. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  14329. self.success = success
  14330. self.o1 = o1
  14331. self.o2 = o2
  14332. self.o3 = o3
  14333. def read(self, iprot):
  14334. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14335. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  14336. return
  14337. iprot.readStructBegin()
  14338. while True:
  14339. (fname, ftype, fid) = iprot.readFieldBegin()
  14340. if ftype == TType.STOP:
  14341. break
  14342. if fid == 0:
  14343. if ftype == TType.LIST:
  14344. self.success = []
  14345. (_etype697, _size694) = iprot.readListBegin()
  14346. for _i698 in range(_size694):
  14347. _elem699 = Table()
  14348. _elem699.read(iprot)
  14349. self.success.append(_elem699)
  14350. iprot.readListEnd()
  14351. else:
  14352. iprot.skip(ftype)
  14353. elif fid == 1:
  14354. if ftype == TType.STRUCT:
  14355. self.o1 = MetaException()
  14356. self.o1.read(iprot)
  14357. else:
  14358. iprot.skip(ftype)
  14359. elif fid == 2:
  14360. if ftype == TType.STRUCT:
  14361. self.o2 = InvalidOperationException()
  14362. self.o2.read(iprot)
  14363. else:
  14364. iprot.skip(ftype)
  14365. elif fid == 3:
  14366. if ftype == TType.STRUCT:
  14367. self.o3 = UnknownDBException()
  14368. self.o3.read(iprot)
  14369. else:
  14370. iprot.skip(ftype)
  14371. else:
  14372. iprot.skip(ftype)
  14373. iprot.readFieldEnd()
  14374. iprot.readStructEnd()
  14375. def write(self, oprot):
  14376. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14377. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14378. return
  14379. oprot.writeStructBegin('get_table_objects_by_name_result')
  14380. if self.success is not None:
  14381. oprot.writeFieldBegin('success', TType.LIST, 0)
  14382. oprot.writeListBegin(TType.STRUCT, len(self.success))
  14383. for iter700 in self.success:
  14384. iter700.write(oprot)
  14385. oprot.writeListEnd()
  14386. oprot.writeFieldEnd()
  14387. if self.o1 is not None:
  14388. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  14389. self.o1.write(oprot)
  14390. oprot.writeFieldEnd()
  14391. if self.o2 is not None:
  14392. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  14393. self.o2.write(oprot)
  14394. oprot.writeFieldEnd()
  14395. if self.o3 is not None:
  14396. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  14397. self.o3.write(oprot)
  14398. oprot.writeFieldEnd()
  14399. oprot.writeFieldStop()
  14400. oprot.writeStructEnd()
  14401. def validate(self):
  14402. return
  14403. def __repr__(self):
  14404. L = ['%s=%r' % (key, value)
  14405. for key, value in self.__dict__.items()]
  14406. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14407. def __eq__(self, other):
  14408. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14409. def __ne__(self, other):
  14410. return not (self == other)
  14411. all_structs.append(get_table_objects_by_name_result)
  14412. get_table_objects_by_name_result.thrift_spec = (
  14413. (0, TType.LIST, 'success', (TType.STRUCT, [Table, None], False), None, ), # 0
  14414. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  14415. (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2
  14416. (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3
  14417. )
  14418. class get_table_names_by_filter_args(object):
  14419. """
  14420. Attributes:
  14421. - dbname
  14422. - filter
  14423. - max_tables
  14424. """
  14425. def __init__(self, dbname=None, filter=None, max_tables=-1,):
  14426. self.dbname = dbname
  14427. self.filter = filter
  14428. self.max_tables = max_tables
  14429. def read(self, iprot):
  14430. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14431. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  14432. return
  14433. iprot.readStructBegin()
  14434. while True:
  14435. (fname, ftype, fid) = iprot.readFieldBegin()
  14436. if ftype == TType.STOP:
  14437. break
  14438. if fid == 1:
  14439. if ftype == TType.STRING:
  14440. self.dbname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14441. else:
  14442. iprot.skip(ftype)
  14443. elif fid == 2:
  14444. if ftype == TType.STRING:
  14445. self.filter = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14446. else:
  14447. iprot.skip(ftype)
  14448. elif fid == 3:
  14449. if ftype == TType.I16:
  14450. self.max_tables = iprot.readI16()
  14451. else:
  14452. iprot.skip(ftype)
  14453. else:
  14454. iprot.skip(ftype)
  14455. iprot.readFieldEnd()
  14456. iprot.readStructEnd()
  14457. def write(self, oprot):
  14458. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14459. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14460. return
  14461. oprot.writeStructBegin('get_table_names_by_filter_args')
  14462. if self.dbname is not None:
  14463. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  14464. oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
  14465. oprot.writeFieldEnd()
  14466. if self.filter is not None:
  14467. oprot.writeFieldBegin('filter', TType.STRING, 2)
  14468. oprot.writeString(self.filter.encode('utf-8') if sys.version_info[0] == 2 else self.filter)
  14469. oprot.writeFieldEnd()
  14470. if self.max_tables is not None:
  14471. oprot.writeFieldBegin('max_tables', TType.I16, 3)
  14472. oprot.writeI16(self.max_tables)
  14473. oprot.writeFieldEnd()
  14474. oprot.writeFieldStop()
  14475. oprot.writeStructEnd()
  14476. def validate(self):
  14477. return
  14478. def __repr__(self):
  14479. L = ['%s=%r' % (key, value)
  14480. for key, value in self.__dict__.items()]
  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. all_structs.append(get_table_names_by_filter_args)
  14487. get_table_names_by_filter_args.thrift_spec = (
  14488. None, # 0
  14489. (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1
  14490. (2, TType.STRING, 'filter', 'UTF8', None, ), # 2
  14491. (3, TType.I16, 'max_tables', None, -1, ), # 3
  14492. )
  14493. class get_table_names_by_filter_result(object):
  14494. """
  14495. Attributes:
  14496. - success
  14497. - o1
  14498. - o2
  14499. - o3
  14500. """
  14501. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  14502. self.success = success
  14503. self.o1 = o1
  14504. self.o2 = o2
  14505. self.o3 = o3
  14506. def read(self, iprot):
  14507. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14508. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  14509. return
  14510. iprot.readStructBegin()
  14511. while True:
  14512. (fname, ftype, fid) = iprot.readFieldBegin()
  14513. if ftype == TType.STOP:
  14514. break
  14515. if fid == 0:
  14516. if ftype == TType.LIST:
  14517. self.success = []
  14518. (_etype704, _size701) = iprot.readListBegin()
  14519. for _i705 in range(_size701):
  14520. _elem706 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14521. self.success.append(_elem706)
  14522. iprot.readListEnd()
  14523. else:
  14524. iprot.skip(ftype)
  14525. elif fid == 1:
  14526. if ftype == TType.STRUCT:
  14527. self.o1 = MetaException()
  14528. self.o1.read(iprot)
  14529. else:
  14530. iprot.skip(ftype)
  14531. elif fid == 2:
  14532. if ftype == TType.STRUCT:
  14533. self.o2 = InvalidOperationException()
  14534. self.o2.read(iprot)
  14535. else:
  14536. iprot.skip(ftype)
  14537. elif fid == 3:
  14538. if ftype == TType.STRUCT:
  14539. self.o3 = UnknownDBException()
  14540. self.o3.read(iprot)
  14541. else:
  14542. iprot.skip(ftype)
  14543. else:
  14544. iprot.skip(ftype)
  14545. iprot.readFieldEnd()
  14546. iprot.readStructEnd()
  14547. def write(self, oprot):
  14548. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14549. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14550. return
  14551. oprot.writeStructBegin('get_table_names_by_filter_result')
  14552. if self.success is not None:
  14553. oprot.writeFieldBegin('success', TType.LIST, 0)
  14554. oprot.writeListBegin(TType.STRING, len(self.success))
  14555. for iter707 in self.success:
  14556. oprot.writeString(iter707.encode('utf-8') if sys.version_info[0] == 2 else iter707)
  14557. oprot.writeListEnd()
  14558. oprot.writeFieldEnd()
  14559. if self.o1 is not None:
  14560. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  14561. self.o1.write(oprot)
  14562. oprot.writeFieldEnd()
  14563. if self.o2 is not None:
  14564. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  14565. self.o2.write(oprot)
  14566. oprot.writeFieldEnd()
  14567. if self.o3 is not None:
  14568. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  14569. self.o3.write(oprot)
  14570. oprot.writeFieldEnd()
  14571. oprot.writeFieldStop()
  14572. oprot.writeStructEnd()
  14573. def validate(self):
  14574. return
  14575. def __repr__(self):
  14576. L = ['%s=%r' % (key, value)
  14577. for key, value in self.__dict__.items()]
  14578. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14579. def __eq__(self, other):
  14580. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14581. def __ne__(self, other):
  14582. return not (self == other)
  14583. all_structs.append(get_table_names_by_filter_result)
  14584. get_table_names_by_filter_result.thrift_spec = (
  14585. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  14586. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  14587. (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2
  14588. (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3
  14589. )
  14590. class alter_table_args(object):
  14591. """
  14592. Attributes:
  14593. - dbname
  14594. - tbl_name
  14595. - new_tbl
  14596. """
  14597. def __init__(self, dbname=None, tbl_name=None, new_tbl=None,):
  14598. self.dbname = dbname
  14599. self.tbl_name = tbl_name
  14600. self.new_tbl = new_tbl
  14601. def read(self, iprot):
  14602. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14603. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  14604. return
  14605. iprot.readStructBegin()
  14606. while True:
  14607. (fname, ftype, fid) = iprot.readFieldBegin()
  14608. if ftype == TType.STOP:
  14609. break
  14610. if fid == 1:
  14611. if ftype == TType.STRING:
  14612. self.dbname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14613. else:
  14614. iprot.skip(ftype)
  14615. elif fid == 2:
  14616. if ftype == TType.STRING:
  14617. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14618. else:
  14619. iprot.skip(ftype)
  14620. elif fid == 3:
  14621. if ftype == TType.STRUCT:
  14622. self.new_tbl = Table()
  14623. self.new_tbl.read(iprot)
  14624. else:
  14625. iprot.skip(ftype)
  14626. else:
  14627. iprot.skip(ftype)
  14628. iprot.readFieldEnd()
  14629. iprot.readStructEnd()
  14630. def write(self, oprot):
  14631. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14632. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14633. return
  14634. oprot.writeStructBegin('alter_table_args')
  14635. if self.dbname is not None:
  14636. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  14637. oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
  14638. oprot.writeFieldEnd()
  14639. if self.tbl_name is not None:
  14640. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  14641. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  14642. oprot.writeFieldEnd()
  14643. if self.new_tbl is not None:
  14644. oprot.writeFieldBegin('new_tbl', TType.STRUCT, 3)
  14645. self.new_tbl.write(oprot)
  14646. oprot.writeFieldEnd()
  14647. oprot.writeFieldStop()
  14648. oprot.writeStructEnd()
  14649. def validate(self):
  14650. return
  14651. def __repr__(self):
  14652. L = ['%s=%r' % (key, value)
  14653. for key, value in self.__dict__.items()]
  14654. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14655. def __eq__(self, other):
  14656. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14657. def __ne__(self, other):
  14658. return not (self == other)
  14659. all_structs.append(alter_table_args)
  14660. alter_table_args.thrift_spec = (
  14661. None, # 0
  14662. (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1
  14663. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  14664. (3, TType.STRUCT, 'new_tbl', [Table, None], None, ), # 3
  14665. )
  14666. class alter_table_result(object):
  14667. """
  14668. Attributes:
  14669. - o1
  14670. - o2
  14671. """
  14672. def __init__(self, o1=None, o2=None,):
  14673. self.o1 = o1
  14674. self.o2 = o2
  14675. def read(self, iprot):
  14676. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14677. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  14678. return
  14679. iprot.readStructBegin()
  14680. while True:
  14681. (fname, ftype, fid) = iprot.readFieldBegin()
  14682. if ftype == TType.STOP:
  14683. break
  14684. if fid == 1:
  14685. if ftype == TType.STRUCT:
  14686. self.o1 = InvalidOperationException()
  14687. self.o1.read(iprot)
  14688. else:
  14689. iprot.skip(ftype)
  14690. elif fid == 2:
  14691. if ftype == TType.STRUCT:
  14692. self.o2 = MetaException()
  14693. self.o2.read(iprot)
  14694. else:
  14695. iprot.skip(ftype)
  14696. else:
  14697. iprot.skip(ftype)
  14698. iprot.readFieldEnd()
  14699. iprot.readStructEnd()
  14700. def write(self, oprot):
  14701. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14702. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14703. return
  14704. oprot.writeStructBegin('alter_table_result')
  14705. if self.o1 is not None:
  14706. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  14707. self.o1.write(oprot)
  14708. oprot.writeFieldEnd()
  14709. if self.o2 is not None:
  14710. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  14711. self.o2.write(oprot)
  14712. oprot.writeFieldEnd()
  14713. oprot.writeFieldStop()
  14714. oprot.writeStructEnd()
  14715. def validate(self):
  14716. return
  14717. def __repr__(self):
  14718. L = ['%s=%r' % (key, value)
  14719. for key, value in self.__dict__.items()]
  14720. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14721. def __eq__(self, other):
  14722. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14723. def __ne__(self, other):
  14724. return not (self == other)
  14725. all_structs.append(alter_table_result)
  14726. alter_table_result.thrift_spec = (
  14727. None, # 0
  14728. (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1
  14729. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  14730. )
  14731. class alter_table_with_environment_context_args(object):
  14732. """
  14733. Attributes:
  14734. - dbname
  14735. - tbl_name
  14736. - new_tbl
  14737. - environment_context
  14738. """
  14739. def __init__(self, dbname=None, tbl_name=None, new_tbl=None, environment_context=None,):
  14740. self.dbname = dbname
  14741. self.tbl_name = tbl_name
  14742. self.new_tbl = new_tbl
  14743. self.environment_context = environment_context
  14744. def read(self, iprot):
  14745. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14746. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  14747. return
  14748. iprot.readStructBegin()
  14749. while True:
  14750. (fname, ftype, fid) = iprot.readFieldBegin()
  14751. if ftype == TType.STOP:
  14752. break
  14753. if fid == 1:
  14754. if ftype == TType.STRING:
  14755. self.dbname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14756. else:
  14757. iprot.skip(ftype)
  14758. elif fid == 2:
  14759. if ftype == TType.STRING:
  14760. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14761. else:
  14762. iprot.skip(ftype)
  14763. elif fid == 3:
  14764. if ftype == TType.STRUCT:
  14765. self.new_tbl = Table()
  14766. self.new_tbl.read(iprot)
  14767. else:
  14768. iprot.skip(ftype)
  14769. elif fid == 4:
  14770. if ftype == TType.STRUCT:
  14771. self.environment_context = EnvironmentContext()
  14772. self.environment_context.read(iprot)
  14773. else:
  14774. iprot.skip(ftype)
  14775. else:
  14776. iprot.skip(ftype)
  14777. iprot.readFieldEnd()
  14778. iprot.readStructEnd()
  14779. def write(self, oprot):
  14780. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14781. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14782. return
  14783. oprot.writeStructBegin('alter_table_with_environment_context_args')
  14784. if self.dbname is not None:
  14785. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  14786. oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
  14787. oprot.writeFieldEnd()
  14788. if self.tbl_name is not None:
  14789. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  14790. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  14791. oprot.writeFieldEnd()
  14792. if self.new_tbl is not None:
  14793. oprot.writeFieldBegin('new_tbl', TType.STRUCT, 3)
  14794. self.new_tbl.write(oprot)
  14795. oprot.writeFieldEnd()
  14796. if self.environment_context is not None:
  14797. oprot.writeFieldBegin('environment_context', TType.STRUCT, 4)
  14798. self.environment_context.write(oprot)
  14799. oprot.writeFieldEnd()
  14800. oprot.writeFieldStop()
  14801. oprot.writeStructEnd()
  14802. def validate(self):
  14803. return
  14804. def __repr__(self):
  14805. L = ['%s=%r' % (key, value)
  14806. for key, value in self.__dict__.items()]
  14807. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14808. def __eq__(self, other):
  14809. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14810. def __ne__(self, other):
  14811. return not (self == other)
  14812. all_structs.append(alter_table_with_environment_context_args)
  14813. alter_table_with_environment_context_args.thrift_spec = (
  14814. None, # 0
  14815. (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1
  14816. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  14817. (3, TType.STRUCT, 'new_tbl', [Table, None], None, ), # 3
  14818. (4, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 4
  14819. )
  14820. class alter_table_with_environment_context_result(object):
  14821. """
  14822. Attributes:
  14823. - o1
  14824. - o2
  14825. """
  14826. def __init__(self, o1=None, o2=None,):
  14827. self.o1 = o1
  14828. self.o2 = o2
  14829. def read(self, iprot):
  14830. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14831. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  14832. return
  14833. iprot.readStructBegin()
  14834. while True:
  14835. (fname, ftype, fid) = iprot.readFieldBegin()
  14836. if ftype == TType.STOP:
  14837. break
  14838. if fid == 1:
  14839. if ftype == TType.STRUCT:
  14840. self.o1 = InvalidOperationException()
  14841. self.o1.read(iprot)
  14842. else:
  14843. iprot.skip(ftype)
  14844. elif fid == 2:
  14845. if ftype == TType.STRUCT:
  14846. self.o2 = MetaException()
  14847. self.o2.read(iprot)
  14848. else:
  14849. iprot.skip(ftype)
  14850. else:
  14851. iprot.skip(ftype)
  14852. iprot.readFieldEnd()
  14853. iprot.readStructEnd()
  14854. def write(self, oprot):
  14855. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14856. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14857. return
  14858. oprot.writeStructBegin('alter_table_with_environment_context_result')
  14859. if self.o1 is not None:
  14860. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  14861. self.o1.write(oprot)
  14862. oprot.writeFieldEnd()
  14863. if self.o2 is not None:
  14864. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  14865. self.o2.write(oprot)
  14866. oprot.writeFieldEnd()
  14867. oprot.writeFieldStop()
  14868. oprot.writeStructEnd()
  14869. def validate(self):
  14870. return
  14871. def __repr__(self):
  14872. L = ['%s=%r' % (key, value)
  14873. for key, value in self.__dict__.items()]
  14874. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14875. def __eq__(self, other):
  14876. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14877. def __ne__(self, other):
  14878. return not (self == other)
  14879. all_structs.append(alter_table_with_environment_context_result)
  14880. alter_table_with_environment_context_result.thrift_spec = (
  14881. None, # 0
  14882. (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1
  14883. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  14884. )
  14885. class alter_table_with_cascade_args(object):
  14886. """
  14887. Attributes:
  14888. - dbname
  14889. - tbl_name
  14890. - new_tbl
  14891. - cascade
  14892. """
  14893. def __init__(self, dbname=None, tbl_name=None, new_tbl=None, cascade=None,):
  14894. self.dbname = dbname
  14895. self.tbl_name = tbl_name
  14896. self.new_tbl = new_tbl
  14897. self.cascade = cascade
  14898. def read(self, iprot):
  14899. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14900. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  14901. return
  14902. iprot.readStructBegin()
  14903. while True:
  14904. (fname, ftype, fid) = iprot.readFieldBegin()
  14905. if ftype == TType.STOP:
  14906. break
  14907. if fid == 1:
  14908. if ftype == TType.STRING:
  14909. self.dbname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14910. else:
  14911. iprot.skip(ftype)
  14912. elif fid == 2:
  14913. if ftype == TType.STRING:
  14914. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  14915. else:
  14916. iprot.skip(ftype)
  14917. elif fid == 3:
  14918. if ftype == TType.STRUCT:
  14919. self.new_tbl = Table()
  14920. self.new_tbl.read(iprot)
  14921. else:
  14922. iprot.skip(ftype)
  14923. elif fid == 4:
  14924. if ftype == TType.BOOL:
  14925. self.cascade = iprot.readBool()
  14926. else:
  14927. iprot.skip(ftype)
  14928. else:
  14929. iprot.skip(ftype)
  14930. iprot.readFieldEnd()
  14931. iprot.readStructEnd()
  14932. def write(self, oprot):
  14933. if oprot._fast_encode is not None and self.thrift_spec is not None:
  14934. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  14935. return
  14936. oprot.writeStructBegin('alter_table_with_cascade_args')
  14937. if self.dbname is not None:
  14938. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  14939. oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
  14940. oprot.writeFieldEnd()
  14941. if self.tbl_name is not None:
  14942. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  14943. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  14944. oprot.writeFieldEnd()
  14945. if self.new_tbl is not None:
  14946. oprot.writeFieldBegin('new_tbl', TType.STRUCT, 3)
  14947. self.new_tbl.write(oprot)
  14948. oprot.writeFieldEnd()
  14949. if self.cascade is not None:
  14950. oprot.writeFieldBegin('cascade', TType.BOOL, 4)
  14951. oprot.writeBool(self.cascade)
  14952. oprot.writeFieldEnd()
  14953. oprot.writeFieldStop()
  14954. oprot.writeStructEnd()
  14955. def validate(self):
  14956. return
  14957. def __repr__(self):
  14958. L = ['%s=%r' % (key, value)
  14959. for key, value in self.__dict__.items()]
  14960. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  14961. def __eq__(self, other):
  14962. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  14963. def __ne__(self, other):
  14964. return not (self == other)
  14965. all_structs.append(alter_table_with_cascade_args)
  14966. alter_table_with_cascade_args.thrift_spec = (
  14967. None, # 0
  14968. (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1
  14969. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  14970. (3, TType.STRUCT, 'new_tbl', [Table, None], None, ), # 3
  14971. (4, TType.BOOL, 'cascade', None, None, ), # 4
  14972. )
  14973. class alter_table_with_cascade_result(object):
  14974. """
  14975. Attributes:
  14976. - o1
  14977. - o2
  14978. """
  14979. def __init__(self, o1=None, o2=None,):
  14980. self.o1 = o1
  14981. self.o2 = o2
  14982. def read(self, iprot):
  14983. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  14984. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  14985. return
  14986. iprot.readStructBegin()
  14987. while True:
  14988. (fname, ftype, fid) = iprot.readFieldBegin()
  14989. if ftype == TType.STOP:
  14990. break
  14991. if fid == 1:
  14992. if ftype == TType.STRUCT:
  14993. self.o1 = InvalidOperationException()
  14994. self.o1.read(iprot)
  14995. else:
  14996. iprot.skip(ftype)
  14997. elif fid == 2:
  14998. if ftype == TType.STRUCT:
  14999. self.o2 = MetaException()
  15000. self.o2.read(iprot)
  15001. else:
  15002. iprot.skip(ftype)
  15003. else:
  15004. iprot.skip(ftype)
  15005. iprot.readFieldEnd()
  15006. iprot.readStructEnd()
  15007. def write(self, oprot):
  15008. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15009. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15010. return
  15011. oprot.writeStructBegin('alter_table_with_cascade_result')
  15012. if self.o1 is not None:
  15013. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15014. self.o1.write(oprot)
  15015. oprot.writeFieldEnd()
  15016. if self.o2 is not None:
  15017. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15018. self.o2.write(oprot)
  15019. oprot.writeFieldEnd()
  15020. oprot.writeFieldStop()
  15021. oprot.writeStructEnd()
  15022. def validate(self):
  15023. return
  15024. def __repr__(self):
  15025. L = ['%s=%r' % (key, value)
  15026. for key, value in self.__dict__.items()]
  15027. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15028. def __eq__(self, other):
  15029. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15030. def __ne__(self, other):
  15031. return not (self == other)
  15032. all_structs.append(alter_table_with_cascade_result)
  15033. alter_table_with_cascade_result.thrift_spec = (
  15034. None, # 0
  15035. (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1
  15036. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  15037. )
  15038. class add_partition_args(object):
  15039. """
  15040. Attributes:
  15041. - new_part
  15042. """
  15043. def __init__(self, new_part=None,):
  15044. self.new_part = new_part
  15045. def read(self, iprot):
  15046. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15047. iprot._fast_decode(self, iprot, [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.STRUCT:
  15056. self.new_part = Partition()
  15057. self.new_part.read(iprot)
  15058. else:
  15059. iprot.skip(ftype)
  15060. else:
  15061. iprot.skip(ftype)
  15062. iprot.readFieldEnd()
  15063. iprot.readStructEnd()
  15064. def write(self, oprot):
  15065. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15066. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15067. return
  15068. oprot.writeStructBegin('add_partition_args')
  15069. if self.new_part is not None:
  15070. oprot.writeFieldBegin('new_part', TType.STRUCT, 1)
  15071. self.new_part.write(oprot)
  15072. oprot.writeFieldEnd()
  15073. oprot.writeFieldStop()
  15074. oprot.writeStructEnd()
  15075. def validate(self):
  15076. return
  15077. def __repr__(self):
  15078. L = ['%s=%r' % (key, value)
  15079. for key, value in self.__dict__.items()]
  15080. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15081. def __eq__(self, other):
  15082. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15083. def __ne__(self, other):
  15084. return not (self == other)
  15085. all_structs.append(add_partition_args)
  15086. add_partition_args.thrift_spec = (
  15087. None, # 0
  15088. (1, TType.STRUCT, 'new_part', [Partition, None], None, ), # 1
  15089. )
  15090. class add_partition_result(object):
  15091. """
  15092. Attributes:
  15093. - success
  15094. - o1
  15095. - o2
  15096. - o3
  15097. """
  15098. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  15099. self.success = success
  15100. self.o1 = o1
  15101. self.o2 = o2
  15102. self.o3 = o3
  15103. def read(self, iprot):
  15104. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15105. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  15106. return
  15107. iprot.readStructBegin()
  15108. while True:
  15109. (fname, ftype, fid) = iprot.readFieldBegin()
  15110. if ftype == TType.STOP:
  15111. break
  15112. if fid == 0:
  15113. if ftype == TType.STRUCT:
  15114. self.success = Partition()
  15115. self.success.read(iprot)
  15116. else:
  15117. iprot.skip(ftype)
  15118. elif fid == 1:
  15119. if ftype == TType.STRUCT:
  15120. self.o1 = InvalidObjectException()
  15121. self.o1.read(iprot)
  15122. else:
  15123. iprot.skip(ftype)
  15124. elif fid == 2:
  15125. if ftype == TType.STRUCT:
  15126. self.o2 = AlreadyExistsException()
  15127. self.o2.read(iprot)
  15128. else:
  15129. iprot.skip(ftype)
  15130. elif fid == 3:
  15131. if ftype == TType.STRUCT:
  15132. self.o3 = MetaException()
  15133. self.o3.read(iprot)
  15134. else:
  15135. iprot.skip(ftype)
  15136. else:
  15137. iprot.skip(ftype)
  15138. iprot.readFieldEnd()
  15139. iprot.readStructEnd()
  15140. def write(self, oprot):
  15141. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15142. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15143. return
  15144. oprot.writeStructBegin('add_partition_result')
  15145. if self.success is not None:
  15146. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  15147. self.success.write(oprot)
  15148. oprot.writeFieldEnd()
  15149. if self.o1 is not None:
  15150. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15151. self.o1.write(oprot)
  15152. oprot.writeFieldEnd()
  15153. if self.o2 is not None:
  15154. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15155. self.o2.write(oprot)
  15156. oprot.writeFieldEnd()
  15157. if self.o3 is not None:
  15158. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  15159. self.o3.write(oprot)
  15160. oprot.writeFieldEnd()
  15161. oprot.writeFieldStop()
  15162. oprot.writeStructEnd()
  15163. def validate(self):
  15164. return
  15165. def __repr__(self):
  15166. L = ['%s=%r' % (key, value)
  15167. for key, value in self.__dict__.items()]
  15168. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15169. def __eq__(self, other):
  15170. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15171. def __ne__(self, other):
  15172. return not (self == other)
  15173. all_structs.append(add_partition_result)
  15174. add_partition_result.thrift_spec = (
  15175. (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0
  15176. (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1
  15177. (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2
  15178. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  15179. )
  15180. class add_partition_with_environment_context_args(object):
  15181. """
  15182. Attributes:
  15183. - new_part
  15184. - environment_context
  15185. """
  15186. def __init__(self, new_part=None, environment_context=None,):
  15187. self.new_part = new_part
  15188. self.environment_context = environment_context
  15189. def read(self, iprot):
  15190. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15191. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  15192. return
  15193. iprot.readStructBegin()
  15194. while True:
  15195. (fname, ftype, fid) = iprot.readFieldBegin()
  15196. if ftype == TType.STOP:
  15197. break
  15198. if fid == 1:
  15199. if ftype == TType.STRUCT:
  15200. self.new_part = Partition()
  15201. self.new_part.read(iprot)
  15202. else:
  15203. iprot.skip(ftype)
  15204. elif fid == 2:
  15205. if ftype == TType.STRUCT:
  15206. self.environment_context = EnvironmentContext()
  15207. self.environment_context.read(iprot)
  15208. else:
  15209. iprot.skip(ftype)
  15210. else:
  15211. iprot.skip(ftype)
  15212. iprot.readFieldEnd()
  15213. iprot.readStructEnd()
  15214. def write(self, oprot):
  15215. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15216. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15217. return
  15218. oprot.writeStructBegin('add_partition_with_environment_context_args')
  15219. if self.new_part is not None:
  15220. oprot.writeFieldBegin('new_part', TType.STRUCT, 1)
  15221. self.new_part.write(oprot)
  15222. oprot.writeFieldEnd()
  15223. if self.environment_context is not None:
  15224. oprot.writeFieldBegin('environment_context', TType.STRUCT, 2)
  15225. self.environment_context.write(oprot)
  15226. oprot.writeFieldEnd()
  15227. oprot.writeFieldStop()
  15228. oprot.writeStructEnd()
  15229. def validate(self):
  15230. return
  15231. def __repr__(self):
  15232. L = ['%s=%r' % (key, value)
  15233. for key, value in self.__dict__.items()]
  15234. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15235. def __eq__(self, other):
  15236. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15237. def __ne__(self, other):
  15238. return not (self == other)
  15239. all_structs.append(add_partition_with_environment_context_args)
  15240. add_partition_with_environment_context_args.thrift_spec = (
  15241. None, # 0
  15242. (1, TType.STRUCT, 'new_part', [Partition, None], None, ), # 1
  15243. (2, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 2
  15244. )
  15245. class add_partition_with_environment_context_result(object):
  15246. """
  15247. Attributes:
  15248. - success
  15249. - o1
  15250. - o2
  15251. - o3
  15252. """
  15253. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  15254. self.success = success
  15255. self.o1 = o1
  15256. self.o2 = o2
  15257. self.o3 = o3
  15258. def read(self, iprot):
  15259. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15260. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  15261. return
  15262. iprot.readStructBegin()
  15263. while True:
  15264. (fname, ftype, fid) = iprot.readFieldBegin()
  15265. if ftype == TType.STOP:
  15266. break
  15267. if fid == 0:
  15268. if ftype == TType.STRUCT:
  15269. self.success = Partition()
  15270. self.success.read(iprot)
  15271. else:
  15272. iprot.skip(ftype)
  15273. elif fid == 1:
  15274. if ftype == TType.STRUCT:
  15275. self.o1 = InvalidObjectException()
  15276. self.o1.read(iprot)
  15277. else:
  15278. iprot.skip(ftype)
  15279. elif fid == 2:
  15280. if ftype == TType.STRUCT:
  15281. self.o2 = AlreadyExistsException()
  15282. self.o2.read(iprot)
  15283. else:
  15284. iprot.skip(ftype)
  15285. elif fid == 3:
  15286. if ftype == TType.STRUCT:
  15287. self.o3 = MetaException()
  15288. self.o3.read(iprot)
  15289. else:
  15290. iprot.skip(ftype)
  15291. else:
  15292. iprot.skip(ftype)
  15293. iprot.readFieldEnd()
  15294. iprot.readStructEnd()
  15295. def write(self, oprot):
  15296. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15297. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15298. return
  15299. oprot.writeStructBegin('add_partition_with_environment_context_result')
  15300. if self.success is not None:
  15301. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  15302. self.success.write(oprot)
  15303. oprot.writeFieldEnd()
  15304. if self.o1 is not None:
  15305. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15306. self.o1.write(oprot)
  15307. oprot.writeFieldEnd()
  15308. if self.o2 is not None:
  15309. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15310. self.o2.write(oprot)
  15311. oprot.writeFieldEnd()
  15312. if self.o3 is not None:
  15313. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  15314. self.o3.write(oprot)
  15315. oprot.writeFieldEnd()
  15316. oprot.writeFieldStop()
  15317. oprot.writeStructEnd()
  15318. def validate(self):
  15319. return
  15320. def __repr__(self):
  15321. L = ['%s=%r' % (key, value)
  15322. for key, value in self.__dict__.items()]
  15323. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15324. def __eq__(self, other):
  15325. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15326. def __ne__(self, other):
  15327. return not (self == other)
  15328. all_structs.append(add_partition_with_environment_context_result)
  15329. add_partition_with_environment_context_result.thrift_spec = (
  15330. (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0
  15331. (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1
  15332. (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2
  15333. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  15334. )
  15335. class add_partitions_args(object):
  15336. """
  15337. Attributes:
  15338. - new_parts
  15339. """
  15340. def __init__(self, new_parts=None,):
  15341. self.new_parts = new_parts
  15342. def read(self, iprot):
  15343. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15344. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  15345. return
  15346. iprot.readStructBegin()
  15347. while True:
  15348. (fname, ftype, fid) = iprot.readFieldBegin()
  15349. if ftype == TType.STOP:
  15350. break
  15351. if fid == 1:
  15352. if ftype == TType.LIST:
  15353. self.new_parts = []
  15354. (_etype711, _size708) = iprot.readListBegin()
  15355. for _i712 in range(_size708):
  15356. _elem713 = Partition()
  15357. _elem713.read(iprot)
  15358. self.new_parts.append(_elem713)
  15359. iprot.readListEnd()
  15360. else:
  15361. iprot.skip(ftype)
  15362. else:
  15363. iprot.skip(ftype)
  15364. iprot.readFieldEnd()
  15365. iprot.readStructEnd()
  15366. def write(self, oprot):
  15367. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15368. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15369. return
  15370. oprot.writeStructBegin('add_partitions_args')
  15371. if self.new_parts is not None:
  15372. oprot.writeFieldBegin('new_parts', TType.LIST, 1)
  15373. oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
  15374. for iter714 in self.new_parts:
  15375. iter714.write(oprot)
  15376. oprot.writeListEnd()
  15377. oprot.writeFieldEnd()
  15378. oprot.writeFieldStop()
  15379. oprot.writeStructEnd()
  15380. def validate(self):
  15381. return
  15382. def __repr__(self):
  15383. L = ['%s=%r' % (key, value)
  15384. for key, value in self.__dict__.items()]
  15385. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15386. def __eq__(self, other):
  15387. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15388. def __ne__(self, other):
  15389. return not (self == other)
  15390. all_structs.append(add_partitions_args)
  15391. add_partitions_args.thrift_spec = (
  15392. None, # 0
  15393. (1, TType.LIST, 'new_parts', (TType.STRUCT, [Partition, None], False), None, ), # 1
  15394. )
  15395. class add_partitions_result(object):
  15396. """
  15397. Attributes:
  15398. - success
  15399. - o1
  15400. - o2
  15401. - o3
  15402. """
  15403. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  15404. self.success = success
  15405. self.o1 = o1
  15406. self.o2 = o2
  15407. self.o3 = o3
  15408. def read(self, iprot):
  15409. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15410. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  15411. return
  15412. iprot.readStructBegin()
  15413. while True:
  15414. (fname, ftype, fid) = iprot.readFieldBegin()
  15415. if ftype == TType.STOP:
  15416. break
  15417. if fid == 0:
  15418. if ftype == TType.I32:
  15419. self.success = iprot.readI32()
  15420. else:
  15421. iprot.skip(ftype)
  15422. elif fid == 1:
  15423. if ftype == TType.STRUCT:
  15424. self.o1 = InvalidObjectException()
  15425. self.o1.read(iprot)
  15426. else:
  15427. iprot.skip(ftype)
  15428. elif fid == 2:
  15429. if ftype == TType.STRUCT:
  15430. self.o2 = AlreadyExistsException()
  15431. self.o2.read(iprot)
  15432. else:
  15433. iprot.skip(ftype)
  15434. elif fid == 3:
  15435. if ftype == TType.STRUCT:
  15436. self.o3 = MetaException()
  15437. self.o3.read(iprot)
  15438. else:
  15439. iprot.skip(ftype)
  15440. else:
  15441. iprot.skip(ftype)
  15442. iprot.readFieldEnd()
  15443. iprot.readStructEnd()
  15444. def write(self, oprot):
  15445. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15446. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15447. return
  15448. oprot.writeStructBegin('add_partitions_result')
  15449. if self.success is not None:
  15450. oprot.writeFieldBegin('success', TType.I32, 0)
  15451. oprot.writeI32(self.success)
  15452. oprot.writeFieldEnd()
  15453. if self.o1 is not None:
  15454. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15455. self.o1.write(oprot)
  15456. oprot.writeFieldEnd()
  15457. if self.o2 is not None:
  15458. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15459. self.o2.write(oprot)
  15460. oprot.writeFieldEnd()
  15461. if self.o3 is not None:
  15462. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  15463. self.o3.write(oprot)
  15464. oprot.writeFieldEnd()
  15465. oprot.writeFieldStop()
  15466. oprot.writeStructEnd()
  15467. def validate(self):
  15468. return
  15469. def __repr__(self):
  15470. L = ['%s=%r' % (key, value)
  15471. for key, value in self.__dict__.items()]
  15472. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15473. def __eq__(self, other):
  15474. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15475. def __ne__(self, other):
  15476. return not (self == other)
  15477. all_structs.append(add_partitions_result)
  15478. add_partitions_result.thrift_spec = (
  15479. (0, TType.I32, 'success', None, None, ), # 0
  15480. (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1
  15481. (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2
  15482. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  15483. )
  15484. class add_partitions_pspec_args(object):
  15485. """
  15486. Attributes:
  15487. - new_parts
  15488. """
  15489. def __init__(self, new_parts=None,):
  15490. self.new_parts = new_parts
  15491. def read(self, iprot):
  15492. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15493. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  15494. return
  15495. iprot.readStructBegin()
  15496. while True:
  15497. (fname, ftype, fid) = iprot.readFieldBegin()
  15498. if ftype == TType.STOP:
  15499. break
  15500. if fid == 1:
  15501. if ftype == TType.LIST:
  15502. self.new_parts = []
  15503. (_etype718, _size715) = iprot.readListBegin()
  15504. for _i719 in range(_size715):
  15505. _elem720 = PartitionSpec()
  15506. _elem720.read(iprot)
  15507. self.new_parts.append(_elem720)
  15508. iprot.readListEnd()
  15509. else:
  15510. iprot.skip(ftype)
  15511. else:
  15512. iprot.skip(ftype)
  15513. iprot.readFieldEnd()
  15514. iprot.readStructEnd()
  15515. def write(self, oprot):
  15516. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15517. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15518. return
  15519. oprot.writeStructBegin('add_partitions_pspec_args')
  15520. if self.new_parts is not None:
  15521. oprot.writeFieldBegin('new_parts', TType.LIST, 1)
  15522. oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
  15523. for iter721 in self.new_parts:
  15524. iter721.write(oprot)
  15525. oprot.writeListEnd()
  15526. oprot.writeFieldEnd()
  15527. oprot.writeFieldStop()
  15528. oprot.writeStructEnd()
  15529. def validate(self):
  15530. return
  15531. def __repr__(self):
  15532. L = ['%s=%r' % (key, value)
  15533. for key, value in self.__dict__.items()]
  15534. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15535. def __eq__(self, other):
  15536. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15537. def __ne__(self, other):
  15538. return not (self == other)
  15539. all_structs.append(add_partitions_pspec_args)
  15540. add_partitions_pspec_args.thrift_spec = (
  15541. None, # 0
  15542. (1, TType.LIST, 'new_parts', (TType.STRUCT, [PartitionSpec, None], False), None, ), # 1
  15543. )
  15544. class add_partitions_pspec_result(object):
  15545. """
  15546. Attributes:
  15547. - success
  15548. - o1
  15549. - o2
  15550. - o3
  15551. """
  15552. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  15553. self.success = success
  15554. self.o1 = o1
  15555. self.o2 = o2
  15556. self.o3 = o3
  15557. def read(self, iprot):
  15558. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15559. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  15560. return
  15561. iprot.readStructBegin()
  15562. while True:
  15563. (fname, ftype, fid) = iprot.readFieldBegin()
  15564. if ftype == TType.STOP:
  15565. break
  15566. if fid == 0:
  15567. if ftype == TType.I32:
  15568. self.success = iprot.readI32()
  15569. else:
  15570. iprot.skip(ftype)
  15571. elif fid == 1:
  15572. if ftype == TType.STRUCT:
  15573. self.o1 = InvalidObjectException()
  15574. self.o1.read(iprot)
  15575. else:
  15576. iprot.skip(ftype)
  15577. elif fid == 2:
  15578. if ftype == TType.STRUCT:
  15579. self.o2 = AlreadyExistsException()
  15580. self.o2.read(iprot)
  15581. else:
  15582. iprot.skip(ftype)
  15583. elif fid == 3:
  15584. if ftype == TType.STRUCT:
  15585. self.o3 = MetaException()
  15586. self.o3.read(iprot)
  15587. else:
  15588. iprot.skip(ftype)
  15589. else:
  15590. iprot.skip(ftype)
  15591. iprot.readFieldEnd()
  15592. iprot.readStructEnd()
  15593. def write(self, oprot):
  15594. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15595. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15596. return
  15597. oprot.writeStructBegin('add_partitions_pspec_result')
  15598. if self.success is not None:
  15599. oprot.writeFieldBegin('success', TType.I32, 0)
  15600. oprot.writeI32(self.success)
  15601. oprot.writeFieldEnd()
  15602. if self.o1 is not None:
  15603. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15604. self.o1.write(oprot)
  15605. oprot.writeFieldEnd()
  15606. if self.o2 is not None:
  15607. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15608. self.o2.write(oprot)
  15609. oprot.writeFieldEnd()
  15610. if self.o3 is not None:
  15611. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  15612. self.o3.write(oprot)
  15613. oprot.writeFieldEnd()
  15614. oprot.writeFieldStop()
  15615. oprot.writeStructEnd()
  15616. def validate(self):
  15617. return
  15618. def __repr__(self):
  15619. L = ['%s=%r' % (key, value)
  15620. for key, value in self.__dict__.items()]
  15621. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15622. def __eq__(self, other):
  15623. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15624. def __ne__(self, other):
  15625. return not (self == other)
  15626. all_structs.append(add_partitions_pspec_result)
  15627. add_partitions_pspec_result.thrift_spec = (
  15628. (0, TType.I32, 'success', None, None, ), # 0
  15629. (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1
  15630. (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2
  15631. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  15632. )
  15633. class append_partition_args(object):
  15634. """
  15635. Attributes:
  15636. - db_name
  15637. - tbl_name
  15638. - part_vals
  15639. """
  15640. def __init__(self, db_name=None, tbl_name=None, part_vals=None,):
  15641. self.db_name = db_name
  15642. self.tbl_name = tbl_name
  15643. self.part_vals = part_vals
  15644. def read(self, iprot):
  15645. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15646. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  15647. return
  15648. iprot.readStructBegin()
  15649. while True:
  15650. (fname, ftype, fid) = iprot.readFieldBegin()
  15651. if ftype == TType.STOP:
  15652. break
  15653. if fid == 1:
  15654. if ftype == TType.STRING:
  15655. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  15656. else:
  15657. iprot.skip(ftype)
  15658. elif fid == 2:
  15659. if ftype == TType.STRING:
  15660. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  15661. else:
  15662. iprot.skip(ftype)
  15663. elif fid == 3:
  15664. if ftype == TType.LIST:
  15665. self.part_vals = []
  15666. (_etype725, _size722) = iprot.readListBegin()
  15667. for _i726 in range(_size722):
  15668. _elem727 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  15669. self.part_vals.append(_elem727)
  15670. iprot.readListEnd()
  15671. else:
  15672. iprot.skip(ftype)
  15673. else:
  15674. iprot.skip(ftype)
  15675. iprot.readFieldEnd()
  15676. iprot.readStructEnd()
  15677. def write(self, oprot):
  15678. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15679. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15680. return
  15681. oprot.writeStructBegin('append_partition_args')
  15682. if self.db_name is not None:
  15683. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  15684. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  15685. oprot.writeFieldEnd()
  15686. if self.tbl_name is not None:
  15687. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  15688. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  15689. oprot.writeFieldEnd()
  15690. if self.part_vals is not None:
  15691. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  15692. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  15693. for iter728 in self.part_vals:
  15694. oprot.writeString(iter728.encode('utf-8') if sys.version_info[0] == 2 else iter728)
  15695. oprot.writeListEnd()
  15696. oprot.writeFieldEnd()
  15697. oprot.writeFieldStop()
  15698. oprot.writeStructEnd()
  15699. def validate(self):
  15700. return
  15701. def __repr__(self):
  15702. L = ['%s=%r' % (key, value)
  15703. for key, value in self.__dict__.items()]
  15704. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15705. def __eq__(self, other):
  15706. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15707. def __ne__(self, other):
  15708. return not (self == other)
  15709. all_structs.append(append_partition_args)
  15710. append_partition_args.thrift_spec = (
  15711. None, # 0
  15712. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  15713. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  15714. (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3
  15715. )
  15716. class append_partition_result(object):
  15717. """
  15718. Attributes:
  15719. - success
  15720. - o1
  15721. - o2
  15722. - o3
  15723. """
  15724. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  15725. self.success = success
  15726. self.o1 = o1
  15727. self.o2 = o2
  15728. self.o3 = o3
  15729. def read(self, iprot):
  15730. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15731. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  15732. return
  15733. iprot.readStructBegin()
  15734. while True:
  15735. (fname, ftype, fid) = iprot.readFieldBegin()
  15736. if ftype == TType.STOP:
  15737. break
  15738. if fid == 0:
  15739. if ftype == TType.STRUCT:
  15740. self.success = Partition()
  15741. self.success.read(iprot)
  15742. else:
  15743. iprot.skip(ftype)
  15744. elif fid == 1:
  15745. if ftype == TType.STRUCT:
  15746. self.o1 = InvalidObjectException()
  15747. self.o1.read(iprot)
  15748. else:
  15749. iprot.skip(ftype)
  15750. elif fid == 2:
  15751. if ftype == TType.STRUCT:
  15752. self.o2 = AlreadyExistsException()
  15753. self.o2.read(iprot)
  15754. else:
  15755. iprot.skip(ftype)
  15756. elif fid == 3:
  15757. if ftype == TType.STRUCT:
  15758. self.o3 = MetaException()
  15759. self.o3.read(iprot)
  15760. else:
  15761. iprot.skip(ftype)
  15762. else:
  15763. iprot.skip(ftype)
  15764. iprot.readFieldEnd()
  15765. iprot.readStructEnd()
  15766. def write(self, oprot):
  15767. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15768. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15769. return
  15770. oprot.writeStructBegin('append_partition_result')
  15771. if self.success is not None:
  15772. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  15773. self.success.write(oprot)
  15774. oprot.writeFieldEnd()
  15775. if self.o1 is not None:
  15776. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15777. self.o1.write(oprot)
  15778. oprot.writeFieldEnd()
  15779. if self.o2 is not None:
  15780. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15781. self.o2.write(oprot)
  15782. oprot.writeFieldEnd()
  15783. if self.o3 is not None:
  15784. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  15785. self.o3.write(oprot)
  15786. oprot.writeFieldEnd()
  15787. oprot.writeFieldStop()
  15788. oprot.writeStructEnd()
  15789. def validate(self):
  15790. return
  15791. def __repr__(self):
  15792. L = ['%s=%r' % (key, value)
  15793. for key, value in self.__dict__.items()]
  15794. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15795. def __eq__(self, other):
  15796. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15797. def __ne__(self, other):
  15798. return not (self == other)
  15799. all_structs.append(append_partition_result)
  15800. append_partition_result.thrift_spec = (
  15801. (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0
  15802. (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1
  15803. (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2
  15804. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  15805. )
  15806. class add_partitions_req_args(object):
  15807. """
  15808. Attributes:
  15809. - request
  15810. """
  15811. def __init__(self, request=None,):
  15812. self.request = request
  15813. def read(self, iprot):
  15814. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15815. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  15816. return
  15817. iprot.readStructBegin()
  15818. while True:
  15819. (fname, ftype, fid) = iprot.readFieldBegin()
  15820. if ftype == TType.STOP:
  15821. break
  15822. if fid == 1:
  15823. if ftype == TType.STRUCT:
  15824. self.request = AddPartitionsRequest()
  15825. self.request.read(iprot)
  15826. else:
  15827. iprot.skip(ftype)
  15828. else:
  15829. iprot.skip(ftype)
  15830. iprot.readFieldEnd()
  15831. iprot.readStructEnd()
  15832. def write(self, oprot):
  15833. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15834. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15835. return
  15836. oprot.writeStructBegin('add_partitions_req_args')
  15837. if self.request is not None:
  15838. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  15839. self.request.write(oprot)
  15840. oprot.writeFieldEnd()
  15841. oprot.writeFieldStop()
  15842. oprot.writeStructEnd()
  15843. def validate(self):
  15844. return
  15845. def __repr__(self):
  15846. L = ['%s=%r' % (key, value)
  15847. for key, value in self.__dict__.items()]
  15848. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15849. def __eq__(self, other):
  15850. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15851. def __ne__(self, other):
  15852. return not (self == other)
  15853. all_structs.append(add_partitions_req_args)
  15854. add_partitions_req_args.thrift_spec = (
  15855. None, # 0
  15856. (1, TType.STRUCT, 'request', [AddPartitionsRequest, None], None, ), # 1
  15857. )
  15858. class add_partitions_req_result(object):
  15859. """
  15860. Attributes:
  15861. - success
  15862. - o1
  15863. - o2
  15864. - o3
  15865. """
  15866. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  15867. self.success = success
  15868. self.o1 = o1
  15869. self.o2 = o2
  15870. self.o3 = o3
  15871. def read(self, iprot):
  15872. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15873. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  15874. return
  15875. iprot.readStructBegin()
  15876. while True:
  15877. (fname, ftype, fid) = iprot.readFieldBegin()
  15878. if ftype == TType.STOP:
  15879. break
  15880. if fid == 0:
  15881. if ftype == TType.STRUCT:
  15882. self.success = AddPartitionsResult()
  15883. self.success.read(iprot)
  15884. else:
  15885. iprot.skip(ftype)
  15886. elif fid == 1:
  15887. if ftype == TType.STRUCT:
  15888. self.o1 = InvalidObjectException()
  15889. self.o1.read(iprot)
  15890. else:
  15891. iprot.skip(ftype)
  15892. elif fid == 2:
  15893. if ftype == TType.STRUCT:
  15894. self.o2 = AlreadyExistsException()
  15895. self.o2.read(iprot)
  15896. else:
  15897. iprot.skip(ftype)
  15898. elif fid == 3:
  15899. if ftype == TType.STRUCT:
  15900. self.o3 = MetaException()
  15901. self.o3.read(iprot)
  15902. else:
  15903. iprot.skip(ftype)
  15904. else:
  15905. iprot.skip(ftype)
  15906. iprot.readFieldEnd()
  15907. iprot.readStructEnd()
  15908. def write(self, oprot):
  15909. if oprot._fast_encode is not None and self.thrift_spec is not None:
  15910. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  15911. return
  15912. oprot.writeStructBegin('add_partitions_req_result')
  15913. if self.success is not None:
  15914. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  15915. self.success.write(oprot)
  15916. oprot.writeFieldEnd()
  15917. if self.o1 is not None:
  15918. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  15919. self.o1.write(oprot)
  15920. oprot.writeFieldEnd()
  15921. if self.o2 is not None:
  15922. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  15923. self.o2.write(oprot)
  15924. oprot.writeFieldEnd()
  15925. if self.o3 is not None:
  15926. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  15927. self.o3.write(oprot)
  15928. oprot.writeFieldEnd()
  15929. oprot.writeFieldStop()
  15930. oprot.writeStructEnd()
  15931. def validate(self):
  15932. return
  15933. def __repr__(self):
  15934. L = ['%s=%r' % (key, value)
  15935. for key, value in self.__dict__.items()]
  15936. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  15937. def __eq__(self, other):
  15938. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  15939. def __ne__(self, other):
  15940. return not (self == other)
  15941. all_structs.append(add_partitions_req_result)
  15942. add_partitions_req_result.thrift_spec = (
  15943. (0, TType.STRUCT, 'success', [AddPartitionsResult, None], None, ), # 0
  15944. (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1
  15945. (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2
  15946. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  15947. )
  15948. class append_partition_with_environment_context_args(object):
  15949. """
  15950. Attributes:
  15951. - db_name
  15952. - tbl_name
  15953. - part_vals
  15954. - environment_context
  15955. """
  15956. def __init__(self, db_name=None, tbl_name=None, part_vals=None, environment_context=None,):
  15957. self.db_name = db_name
  15958. self.tbl_name = tbl_name
  15959. self.part_vals = part_vals
  15960. self.environment_context = environment_context
  15961. def read(self, iprot):
  15962. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  15963. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  15964. return
  15965. iprot.readStructBegin()
  15966. while True:
  15967. (fname, ftype, fid) = iprot.readFieldBegin()
  15968. if ftype == TType.STOP:
  15969. break
  15970. if fid == 1:
  15971. if ftype == TType.STRING:
  15972. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  15973. else:
  15974. iprot.skip(ftype)
  15975. elif fid == 2:
  15976. if ftype == TType.STRING:
  15977. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  15978. else:
  15979. iprot.skip(ftype)
  15980. elif fid == 3:
  15981. if ftype == TType.LIST:
  15982. self.part_vals = []
  15983. (_etype732, _size729) = iprot.readListBegin()
  15984. for _i733 in range(_size729):
  15985. _elem734 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  15986. self.part_vals.append(_elem734)
  15987. iprot.readListEnd()
  15988. else:
  15989. iprot.skip(ftype)
  15990. elif fid == 4:
  15991. if ftype == TType.STRUCT:
  15992. self.environment_context = EnvironmentContext()
  15993. self.environment_context.read(iprot)
  15994. else:
  15995. iprot.skip(ftype)
  15996. else:
  15997. iprot.skip(ftype)
  15998. iprot.readFieldEnd()
  15999. iprot.readStructEnd()
  16000. def write(self, oprot):
  16001. if oprot._fast_encode is not None and self.thrift_spec is not None:
  16002. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  16003. return
  16004. oprot.writeStructBegin('append_partition_with_environment_context_args')
  16005. if self.db_name is not None:
  16006. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  16007. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  16008. oprot.writeFieldEnd()
  16009. if self.tbl_name is not None:
  16010. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  16011. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  16012. oprot.writeFieldEnd()
  16013. if self.part_vals is not None:
  16014. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  16015. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  16016. for iter735 in self.part_vals:
  16017. oprot.writeString(iter735.encode('utf-8') if sys.version_info[0] == 2 else iter735)
  16018. oprot.writeListEnd()
  16019. oprot.writeFieldEnd()
  16020. if self.environment_context is not None:
  16021. oprot.writeFieldBegin('environment_context', TType.STRUCT, 4)
  16022. self.environment_context.write(oprot)
  16023. oprot.writeFieldEnd()
  16024. oprot.writeFieldStop()
  16025. oprot.writeStructEnd()
  16026. def validate(self):
  16027. return
  16028. def __repr__(self):
  16029. L = ['%s=%r' % (key, value)
  16030. for key, value in self.__dict__.items()]
  16031. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16032. def __eq__(self, other):
  16033. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16034. def __ne__(self, other):
  16035. return not (self == other)
  16036. all_structs.append(append_partition_with_environment_context_args)
  16037. append_partition_with_environment_context_args.thrift_spec = (
  16038. None, # 0
  16039. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  16040. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  16041. (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3
  16042. (4, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 4
  16043. )
  16044. class append_partition_with_environment_context_result(object):
  16045. """
  16046. Attributes:
  16047. - success
  16048. - o1
  16049. - o2
  16050. - o3
  16051. """
  16052. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  16053. self.success = success
  16054. self.o1 = o1
  16055. self.o2 = o2
  16056. self.o3 = o3
  16057. def read(self, iprot):
  16058. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  16059. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  16060. return
  16061. iprot.readStructBegin()
  16062. while True:
  16063. (fname, ftype, fid) = iprot.readFieldBegin()
  16064. if ftype == TType.STOP:
  16065. break
  16066. if fid == 0:
  16067. if ftype == TType.STRUCT:
  16068. self.success = Partition()
  16069. self.success.read(iprot)
  16070. else:
  16071. iprot.skip(ftype)
  16072. elif fid == 1:
  16073. if ftype == TType.STRUCT:
  16074. self.o1 = InvalidObjectException()
  16075. self.o1.read(iprot)
  16076. else:
  16077. iprot.skip(ftype)
  16078. elif fid == 2:
  16079. if ftype == TType.STRUCT:
  16080. self.o2 = AlreadyExistsException()
  16081. self.o2.read(iprot)
  16082. else:
  16083. iprot.skip(ftype)
  16084. elif fid == 3:
  16085. if ftype == TType.STRUCT:
  16086. self.o3 = MetaException()
  16087. self.o3.read(iprot)
  16088. else:
  16089. iprot.skip(ftype)
  16090. else:
  16091. iprot.skip(ftype)
  16092. iprot.readFieldEnd()
  16093. iprot.readStructEnd()
  16094. def write(self, oprot):
  16095. if oprot._fast_encode is not None and self.thrift_spec is not None:
  16096. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  16097. return
  16098. oprot.writeStructBegin('append_partition_with_environment_context_result')
  16099. if self.success is not None:
  16100. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  16101. self.success.write(oprot)
  16102. oprot.writeFieldEnd()
  16103. if self.o1 is not None:
  16104. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  16105. self.o1.write(oprot)
  16106. oprot.writeFieldEnd()
  16107. if self.o2 is not None:
  16108. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  16109. self.o2.write(oprot)
  16110. oprot.writeFieldEnd()
  16111. if self.o3 is not None:
  16112. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  16113. self.o3.write(oprot)
  16114. oprot.writeFieldEnd()
  16115. oprot.writeFieldStop()
  16116. oprot.writeStructEnd()
  16117. def validate(self):
  16118. return
  16119. def __repr__(self):
  16120. L = ['%s=%r' % (key, value)
  16121. for key, value in self.__dict__.items()]
  16122. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16123. def __eq__(self, other):
  16124. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16125. def __ne__(self, other):
  16126. return not (self == other)
  16127. all_structs.append(append_partition_with_environment_context_result)
  16128. append_partition_with_environment_context_result.thrift_spec = (
  16129. (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0
  16130. (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1
  16131. (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2
  16132. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  16133. )
  16134. class append_partition_by_name_args(object):
  16135. """
  16136. Attributes:
  16137. - db_name
  16138. - tbl_name
  16139. - part_name
  16140. """
  16141. def __init__(self, db_name=None, tbl_name=None, part_name=None,):
  16142. self.db_name = db_name
  16143. self.tbl_name = tbl_name
  16144. self.part_name = part_name
  16145. def read(self, iprot):
  16146. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  16147. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  16148. return
  16149. iprot.readStructBegin()
  16150. while True:
  16151. (fname, ftype, fid) = iprot.readFieldBegin()
  16152. if ftype == TType.STOP:
  16153. break
  16154. if fid == 1:
  16155. if ftype == TType.STRING:
  16156. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16157. else:
  16158. iprot.skip(ftype)
  16159. elif fid == 2:
  16160. if ftype == TType.STRING:
  16161. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16162. else:
  16163. iprot.skip(ftype)
  16164. elif fid == 3:
  16165. if ftype == TType.STRING:
  16166. self.part_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16167. else:
  16168. iprot.skip(ftype)
  16169. else:
  16170. iprot.skip(ftype)
  16171. iprot.readFieldEnd()
  16172. iprot.readStructEnd()
  16173. def write(self, oprot):
  16174. if oprot._fast_encode is not None and self.thrift_spec is not None:
  16175. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  16176. return
  16177. oprot.writeStructBegin('append_partition_by_name_args')
  16178. if self.db_name is not None:
  16179. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  16180. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  16181. oprot.writeFieldEnd()
  16182. if self.tbl_name is not None:
  16183. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  16184. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  16185. oprot.writeFieldEnd()
  16186. if self.part_name is not None:
  16187. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  16188. oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name)
  16189. oprot.writeFieldEnd()
  16190. oprot.writeFieldStop()
  16191. oprot.writeStructEnd()
  16192. def validate(self):
  16193. return
  16194. def __repr__(self):
  16195. L = ['%s=%r' % (key, value)
  16196. for key, value in self.__dict__.items()]
  16197. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16198. def __eq__(self, other):
  16199. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16200. def __ne__(self, other):
  16201. return not (self == other)
  16202. all_structs.append(append_partition_by_name_args)
  16203. append_partition_by_name_args.thrift_spec = (
  16204. None, # 0
  16205. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  16206. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  16207. (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3
  16208. )
  16209. class append_partition_by_name_result(object):
  16210. """
  16211. Attributes:
  16212. - success
  16213. - o1
  16214. - o2
  16215. - o3
  16216. """
  16217. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  16218. self.success = success
  16219. self.o1 = o1
  16220. self.o2 = o2
  16221. self.o3 = o3
  16222. def read(self, iprot):
  16223. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  16224. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  16225. return
  16226. iprot.readStructBegin()
  16227. while True:
  16228. (fname, ftype, fid) = iprot.readFieldBegin()
  16229. if ftype == TType.STOP:
  16230. break
  16231. if fid == 0:
  16232. if ftype == TType.STRUCT:
  16233. self.success = Partition()
  16234. self.success.read(iprot)
  16235. else:
  16236. iprot.skip(ftype)
  16237. elif fid == 1:
  16238. if ftype == TType.STRUCT:
  16239. self.o1 = InvalidObjectException()
  16240. self.o1.read(iprot)
  16241. else:
  16242. iprot.skip(ftype)
  16243. elif fid == 2:
  16244. if ftype == TType.STRUCT:
  16245. self.o2 = AlreadyExistsException()
  16246. self.o2.read(iprot)
  16247. else:
  16248. iprot.skip(ftype)
  16249. elif fid == 3:
  16250. if ftype == TType.STRUCT:
  16251. self.o3 = MetaException()
  16252. self.o3.read(iprot)
  16253. else:
  16254. iprot.skip(ftype)
  16255. else:
  16256. iprot.skip(ftype)
  16257. iprot.readFieldEnd()
  16258. iprot.readStructEnd()
  16259. def write(self, oprot):
  16260. if oprot._fast_encode is not None and self.thrift_spec is not None:
  16261. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  16262. return
  16263. oprot.writeStructBegin('append_partition_by_name_result')
  16264. if self.success is not None:
  16265. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  16266. self.success.write(oprot)
  16267. oprot.writeFieldEnd()
  16268. if self.o1 is not None:
  16269. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  16270. self.o1.write(oprot)
  16271. oprot.writeFieldEnd()
  16272. if self.o2 is not None:
  16273. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  16274. self.o2.write(oprot)
  16275. oprot.writeFieldEnd()
  16276. if self.o3 is not None:
  16277. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  16278. self.o3.write(oprot)
  16279. oprot.writeFieldEnd()
  16280. oprot.writeFieldStop()
  16281. oprot.writeStructEnd()
  16282. def validate(self):
  16283. return
  16284. def __repr__(self):
  16285. L = ['%s=%r' % (key, value)
  16286. for key, value in self.__dict__.items()]
  16287. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16288. def __eq__(self, other):
  16289. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16290. def __ne__(self, other):
  16291. return not (self == other)
  16292. all_structs.append(append_partition_by_name_result)
  16293. append_partition_by_name_result.thrift_spec = (
  16294. (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0
  16295. (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1
  16296. (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2
  16297. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  16298. )
  16299. class append_partition_by_name_with_environment_context_args(object):
  16300. """
  16301. Attributes:
  16302. - db_name
  16303. - tbl_name
  16304. - part_name
  16305. - environment_context
  16306. """
  16307. def __init__(self, db_name=None, tbl_name=None, part_name=None, environment_context=None,):
  16308. self.db_name = db_name
  16309. self.tbl_name = tbl_name
  16310. self.part_name = part_name
  16311. self.environment_context = environment_context
  16312. def read(self, iprot):
  16313. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  16314. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  16315. return
  16316. iprot.readStructBegin()
  16317. while True:
  16318. (fname, ftype, fid) = iprot.readFieldBegin()
  16319. if ftype == TType.STOP:
  16320. break
  16321. if fid == 1:
  16322. if ftype == TType.STRING:
  16323. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16324. else:
  16325. iprot.skip(ftype)
  16326. elif fid == 2:
  16327. if ftype == TType.STRING:
  16328. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16329. else:
  16330. iprot.skip(ftype)
  16331. elif fid == 3:
  16332. if ftype == TType.STRING:
  16333. self.part_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16334. else:
  16335. iprot.skip(ftype)
  16336. elif fid == 4:
  16337. if ftype == TType.STRUCT:
  16338. self.environment_context = EnvironmentContext()
  16339. self.environment_context.read(iprot)
  16340. else:
  16341. iprot.skip(ftype)
  16342. else:
  16343. iprot.skip(ftype)
  16344. iprot.readFieldEnd()
  16345. iprot.readStructEnd()
  16346. def write(self, oprot):
  16347. if oprot._fast_encode is not None and self.thrift_spec is not None:
  16348. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  16349. return
  16350. oprot.writeStructBegin('append_partition_by_name_with_environment_context_args')
  16351. if self.db_name is not None:
  16352. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  16353. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  16354. oprot.writeFieldEnd()
  16355. if self.tbl_name is not None:
  16356. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  16357. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  16358. oprot.writeFieldEnd()
  16359. if self.part_name is not None:
  16360. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  16361. oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name)
  16362. oprot.writeFieldEnd()
  16363. if self.environment_context is not None:
  16364. oprot.writeFieldBegin('environment_context', TType.STRUCT, 4)
  16365. self.environment_context.write(oprot)
  16366. oprot.writeFieldEnd()
  16367. oprot.writeFieldStop()
  16368. oprot.writeStructEnd()
  16369. def validate(self):
  16370. return
  16371. def __repr__(self):
  16372. L = ['%s=%r' % (key, value)
  16373. for key, value in self.__dict__.items()]
  16374. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16375. def __eq__(self, other):
  16376. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16377. def __ne__(self, other):
  16378. return not (self == other)
  16379. all_structs.append(append_partition_by_name_with_environment_context_args)
  16380. append_partition_by_name_with_environment_context_args.thrift_spec = (
  16381. None, # 0
  16382. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  16383. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  16384. (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3
  16385. (4, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 4
  16386. )
  16387. class append_partition_by_name_with_environment_context_result(object):
  16388. """
  16389. Attributes:
  16390. - success
  16391. - o1
  16392. - o2
  16393. - o3
  16394. """
  16395. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  16396. self.success = success
  16397. self.o1 = o1
  16398. self.o2 = o2
  16399. self.o3 = o3
  16400. def read(self, iprot):
  16401. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  16402. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  16403. return
  16404. iprot.readStructBegin()
  16405. while True:
  16406. (fname, ftype, fid) = iprot.readFieldBegin()
  16407. if ftype == TType.STOP:
  16408. break
  16409. if fid == 0:
  16410. if ftype == TType.STRUCT:
  16411. self.success = Partition()
  16412. self.success.read(iprot)
  16413. else:
  16414. iprot.skip(ftype)
  16415. elif fid == 1:
  16416. if ftype == TType.STRUCT:
  16417. self.o1 = InvalidObjectException()
  16418. self.o1.read(iprot)
  16419. else:
  16420. iprot.skip(ftype)
  16421. elif fid == 2:
  16422. if ftype == TType.STRUCT:
  16423. self.o2 = AlreadyExistsException()
  16424. self.o2.read(iprot)
  16425. else:
  16426. iprot.skip(ftype)
  16427. elif fid == 3:
  16428. if ftype == TType.STRUCT:
  16429. self.o3 = MetaException()
  16430. self.o3.read(iprot)
  16431. else:
  16432. iprot.skip(ftype)
  16433. else:
  16434. iprot.skip(ftype)
  16435. iprot.readFieldEnd()
  16436. iprot.readStructEnd()
  16437. def write(self, oprot):
  16438. if oprot._fast_encode is not None and self.thrift_spec is not None:
  16439. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  16440. return
  16441. oprot.writeStructBegin('append_partition_by_name_with_environment_context_result')
  16442. if self.success is not None:
  16443. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  16444. self.success.write(oprot)
  16445. oprot.writeFieldEnd()
  16446. if self.o1 is not None:
  16447. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  16448. self.o1.write(oprot)
  16449. oprot.writeFieldEnd()
  16450. if self.o2 is not None:
  16451. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  16452. self.o2.write(oprot)
  16453. oprot.writeFieldEnd()
  16454. if self.o3 is not None:
  16455. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  16456. self.o3.write(oprot)
  16457. oprot.writeFieldEnd()
  16458. oprot.writeFieldStop()
  16459. oprot.writeStructEnd()
  16460. def validate(self):
  16461. return
  16462. def __repr__(self):
  16463. L = ['%s=%r' % (key, value)
  16464. for key, value in self.__dict__.items()]
  16465. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16466. def __eq__(self, other):
  16467. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16468. def __ne__(self, other):
  16469. return not (self == other)
  16470. all_structs.append(append_partition_by_name_with_environment_context_result)
  16471. append_partition_by_name_with_environment_context_result.thrift_spec = (
  16472. (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0
  16473. (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1
  16474. (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2
  16475. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  16476. )
  16477. class drop_partition_args(object):
  16478. """
  16479. Attributes:
  16480. - db_name
  16481. - tbl_name
  16482. - part_vals
  16483. - deleteData
  16484. """
  16485. def __init__(self, db_name=None, tbl_name=None, part_vals=None, deleteData=None,):
  16486. self.db_name = db_name
  16487. self.tbl_name = tbl_name
  16488. self.part_vals = part_vals
  16489. self.deleteData = deleteData
  16490. def read(self, iprot):
  16491. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  16492. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  16493. return
  16494. iprot.readStructBegin()
  16495. while True:
  16496. (fname, ftype, fid) = iprot.readFieldBegin()
  16497. if ftype == TType.STOP:
  16498. break
  16499. if fid == 1:
  16500. if ftype == TType.STRING:
  16501. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16502. else:
  16503. iprot.skip(ftype)
  16504. elif fid == 2:
  16505. if ftype == TType.STRING:
  16506. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16507. else:
  16508. iprot.skip(ftype)
  16509. elif fid == 3:
  16510. if ftype == TType.LIST:
  16511. self.part_vals = []
  16512. (_etype739, _size736) = iprot.readListBegin()
  16513. for _i740 in range(_size736):
  16514. _elem741 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16515. self.part_vals.append(_elem741)
  16516. iprot.readListEnd()
  16517. else:
  16518. iprot.skip(ftype)
  16519. elif fid == 4:
  16520. if ftype == TType.BOOL:
  16521. self.deleteData = iprot.readBool()
  16522. else:
  16523. iprot.skip(ftype)
  16524. else:
  16525. iprot.skip(ftype)
  16526. iprot.readFieldEnd()
  16527. iprot.readStructEnd()
  16528. def write(self, oprot):
  16529. if oprot._fast_encode is not None and self.thrift_spec is not None:
  16530. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  16531. return
  16532. oprot.writeStructBegin('drop_partition_args')
  16533. if self.db_name is not None:
  16534. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  16535. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  16536. oprot.writeFieldEnd()
  16537. if self.tbl_name is not None:
  16538. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  16539. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  16540. oprot.writeFieldEnd()
  16541. if self.part_vals is not None:
  16542. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  16543. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  16544. for iter742 in self.part_vals:
  16545. oprot.writeString(iter742.encode('utf-8') if sys.version_info[0] == 2 else iter742)
  16546. oprot.writeListEnd()
  16547. oprot.writeFieldEnd()
  16548. if self.deleteData is not None:
  16549. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  16550. oprot.writeBool(self.deleteData)
  16551. oprot.writeFieldEnd()
  16552. oprot.writeFieldStop()
  16553. oprot.writeStructEnd()
  16554. def validate(self):
  16555. return
  16556. def __repr__(self):
  16557. L = ['%s=%r' % (key, value)
  16558. for key, value in self.__dict__.items()]
  16559. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16560. def __eq__(self, other):
  16561. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16562. def __ne__(self, other):
  16563. return not (self == other)
  16564. all_structs.append(drop_partition_args)
  16565. drop_partition_args.thrift_spec = (
  16566. None, # 0
  16567. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  16568. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  16569. (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3
  16570. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  16571. )
  16572. class drop_partition_result(object):
  16573. """
  16574. Attributes:
  16575. - success
  16576. - o1
  16577. - o2
  16578. """
  16579. def __init__(self, success=None, o1=None, o2=None,):
  16580. self.success = success
  16581. self.o1 = o1
  16582. self.o2 = o2
  16583. def read(self, iprot):
  16584. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  16585. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  16586. return
  16587. iprot.readStructBegin()
  16588. while True:
  16589. (fname, ftype, fid) = iprot.readFieldBegin()
  16590. if ftype == TType.STOP:
  16591. break
  16592. if fid == 0:
  16593. if ftype == TType.BOOL:
  16594. self.success = iprot.readBool()
  16595. else:
  16596. iprot.skip(ftype)
  16597. elif fid == 1:
  16598. if ftype == TType.STRUCT:
  16599. self.o1 = NoSuchObjectException()
  16600. self.o1.read(iprot)
  16601. else:
  16602. iprot.skip(ftype)
  16603. elif fid == 2:
  16604. if ftype == TType.STRUCT:
  16605. self.o2 = MetaException()
  16606. self.o2.read(iprot)
  16607. else:
  16608. iprot.skip(ftype)
  16609. else:
  16610. iprot.skip(ftype)
  16611. iprot.readFieldEnd()
  16612. iprot.readStructEnd()
  16613. def write(self, oprot):
  16614. if oprot._fast_encode is not None and self.thrift_spec is not None:
  16615. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  16616. return
  16617. oprot.writeStructBegin('drop_partition_result')
  16618. if self.success is not None:
  16619. oprot.writeFieldBegin('success', TType.BOOL, 0)
  16620. oprot.writeBool(self.success)
  16621. oprot.writeFieldEnd()
  16622. if self.o1 is not None:
  16623. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  16624. self.o1.write(oprot)
  16625. oprot.writeFieldEnd()
  16626. if self.o2 is not None:
  16627. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  16628. self.o2.write(oprot)
  16629. oprot.writeFieldEnd()
  16630. oprot.writeFieldStop()
  16631. oprot.writeStructEnd()
  16632. def validate(self):
  16633. return
  16634. def __repr__(self):
  16635. L = ['%s=%r' % (key, value)
  16636. for key, value in self.__dict__.items()]
  16637. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16638. def __eq__(self, other):
  16639. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16640. def __ne__(self, other):
  16641. return not (self == other)
  16642. all_structs.append(drop_partition_result)
  16643. drop_partition_result.thrift_spec = (
  16644. (0, TType.BOOL, 'success', None, None, ), # 0
  16645. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  16646. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  16647. )
  16648. class drop_partition_with_environment_context_args(object):
  16649. """
  16650. Attributes:
  16651. - db_name
  16652. - tbl_name
  16653. - part_vals
  16654. - deleteData
  16655. - environment_context
  16656. """
  16657. def __init__(self, db_name=None, tbl_name=None, part_vals=None, deleteData=None, environment_context=None,):
  16658. self.db_name = db_name
  16659. self.tbl_name = tbl_name
  16660. self.part_vals = part_vals
  16661. self.deleteData = deleteData
  16662. self.environment_context = environment_context
  16663. def read(self, iprot):
  16664. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  16665. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  16666. return
  16667. iprot.readStructBegin()
  16668. while True:
  16669. (fname, ftype, fid) = iprot.readFieldBegin()
  16670. if ftype == TType.STOP:
  16671. break
  16672. if fid == 1:
  16673. if ftype == TType.STRING:
  16674. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16675. else:
  16676. iprot.skip(ftype)
  16677. elif fid == 2:
  16678. if ftype == TType.STRING:
  16679. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16680. else:
  16681. iprot.skip(ftype)
  16682. elif fid == 3:
  16683. if ftype == TType.LIST:
  16684. self.part_vals = []
  16685. (_etype746, _size743) = iprot.readListBegin()
  16686. for _i747 in range(_size743):
  16687. _elem748 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16688. self.part_vals.append(_elem748)
  16689. iprot.readListEnd()
  16690. else:
  16691. iprot.skip(ftype)
  16692. elif fid == 4:
  16693. if ftype == TType.BOOL:
  16694. self.deleteData = iprot.readBool()
  16695. else:
  16696. iprot.skip(ftype)
  16697. elif fid == 5:
  16698. if ftype == TType.STRUCT:
  16699. self.environment_context = EnvironmentContext()
  16700. self.environment_context.read(iprot)
  16701. else:
  16702. iprot.skip(ftype)
  16703. else:
  16704. iprot.skip(ftype)
  16705. iprot.readFieldEnd()
  16706. iprot.readStructEnd()
  16707. def write(self, oprot):
  16708. if oprot._fast_encode is not None and self.thrift_spec is not None:
  16709. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  16710. return
  16711. oprot.writeStructBegin('drop_partition_with_environment_context_args')
  16712. if self.db_name is not None:
  16713. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  16714. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  16715. oprot.writeFieldEnd()
  16716. if self.tbl_name is not None:
  16717. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  16718. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  16719. oprot.writeFieldEnd()
  16720. if self.part_vals is not None:
  16721. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  16722. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  16723. for iter749 in self.part_vals:
  16724. oprot.writeString(iter749.encode('utf-8') if sys.version_info[0] == 2 else iter749)
  16725. oprot.writeListEnd()
  16726. oprot.writeFieldEnd()
  16727. if self.deleteData is not None:
  16728. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  16729. oprot.writeBool(self.deleteData)
  16730. oprot.writeFieldEnd()
  16731. if self.environment_context is not None:
  16732. oprot.writeFieldBegin('environment_context', TType.STRUCT, 5)
  16733. self.environment_context.write(oprot)
  16734. oprot.writeFieldEnd()
  16735. oprot.writeFieldStop()
  16736. oprot.writeStructEnd()
  16737. def validate(self):
  16738. return
  16739. def __repr__(self):
  16740. L = ['%s=%r' % (key, value)
  16741. for key, value in self.__dict__.items()]
  16742. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16743. def __eq__(self, other):
  16744. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16745. def __ne__(self, other):
  16746. return not (self == other)
  16747. all_structs.append(drop_partition_with_environment_context_args)
  16748. drop_partition_with_environment_context_args.thrift_spec = (
  16749. None, # 0
  16750. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  16751. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  16752. (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3
  16753. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  16754. (5, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 5
  16755. )
  16756. class drop_partition_with_environment_context_result(object):
  16757. """
  16758. Attributes:
  16759. - success
  16760. - o1
  16761. - o2
  16762. """
  16763. def __init__(self, success=None, o1=None, o2=None,):
  16764. self.success = success
  16765. self.o1 = o1
  16766. self.o2 = o2
  16767. def read(self, iprot):
  16768. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  16769. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  16770. return
  16771. iprot.readStructBegin()
  16772. while True:
  16773. (fname, ftype, fid) = iprot.readFieldBegin()
  16774. if ftype == TType.STOP:
  16775. break
  16776. if fid == 0:
  16777. if ftype == TType.BOOL:
  16778. self.success = iprot.readBool()
  16779. else:
  16780. iprot.skip(ftype)
  16781. elif fid == 1:
  16782. if ftype == TType.STRUCT:
  16783. self.o1 = NoSuchObjectException()
  16784. self.o1.read(iprot)
  16785. else:
  16786. iprot.skip(ftype)
  16787. elif fid == 2:
  16788. if ftype == TType.STRUCT:
  16789. self.o2 = MetaException()
  16790. self.o2.read(iprot)
  16791. else:
  16792. iprot.skip(ftype)
  16793. else:
  16794. iprot.skip(ftype)
  16795. iprot.readFieldEnd()
  16796. iprot.readStructEnd()
  16797. def write(self, oprot):
  16798. if oprot._fast_encode is not None and self.thrift_spec is not None:
  16799. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  16800. return
  16801. oprot.writeStructBegin('drop_partition_with_environment_context_result')
  16802. if self.success is not None:
  16803. oprot.writeFieldBegin('success', TType.BOOL, 0)
  16804. oprot.writeBool(self.success)
  16805. oprot.writeFieldEnd()
  16806. if self.o1 is not None:
  16807. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  16808. self.o1.write(oprot)
  16809. oprot.writeFieldEnd()
  16810. if self.o2 is not None:
  16811. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  16812. self.o2.write(oprot)
  16813. oprot.writeFieldEnd()
  16814. oprot.writeFieldStop()
  16815. oprot.writeStructEnd()
  16816. def validate(self):
  16817. return
  16818. def __repr__(self):
  16819. L = ['%s=%r' % (key, value)
  16820. for key, value in self.__dict__.items()]
  16821. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16822. def __eq__(self, other):
  16823. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16824. def __ne__(self, other):
  16825. return not (self == other)
  16826. all_structs.append(drop_partition_with_environment_context_result)
  16827. drop_partition_with_environment_context_result.thrift_spec = (
  16828. (0, TType.BOOL, 'success', None, None, ), # 0
  16829. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  16830. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  16831. )
  16832. class drop_partition_by_name_args(object):
  16833. """
  16834. Attributes:
  16835. - db_name
  16836. - tbl_name
  16837. - part_name
  16838. - deleteData
  16839. """
  16840. def __init__(self, db_name=None, tbl_name=None, part_name=None, deleteData=None,):
  16841. self.db_name = db_name
  16842. self.tbl_name = tbl_name
  16843. self.part_name = part_name
  16844. self.deleteData = deleteData
  16845. def read(self, iprot):
  16846. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  16847. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  16848. return
  16849. iprot.readStructBegin()
  16850. while True:
  16851. (fname, ftype, fid) = iprot.readFieldBegin()
  16852. if ftype == TType.STOP:
  16853. break
  16854. if fid == 1:
  16855. if ftype == TType.STRING:
  16856. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16857. else:
  16858. iprot.skip(ftype)
  16859. elif fid == 2:
  16860. if ftype == TType.STRING:
  16861. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16862. else:
  16863. iprot.skip(ftype)
  16864. elif fid == 3:
  16865. if ftype == TType.STRING:
  16866. self.part_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  16867. else:
  16868. iprot.skip(ftype)
  16869. elif fid == 4:
  16870. if ftype == TType.BOOL:
  16871. self.deleteData = iprot.readBool()
  16872. else:
  16873. iprot.skip(ftype)
  16874. else:
  16875. iprot.skip(ftype)
  16876. iprot.readFieldEnd()
  16877. iprot.readStructEnd()
  16878. def write(self, oprot):
  16879. if oprot._fast_encode is not None and self.thrift_spec is not None:
  16880. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  16881. return
  16882. oprot.writeStructBegin('drop_partition_by_name_args')
  16883. if self.db_name is not None:
  16884. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  16885. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  16886. oprot.writeFieldEnd()
  16887. if self.tbl_name is not None:
  16888. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  16889. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  16890. oprot.writeFieldEnd()
  16891. if self.part_name is not None:
  16892. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  16893. oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name)
  16894. oprot.writeFieldEnd()
  16895. if self.deleteData is not None:
  16896. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  16897. oprot.writeBool(self.deleteData)
  16898. oprot.writeFieldEnd()
  16899. oprot.writeFieldStop()
  16900. oprot.writeStructEnd()
  16901. def validate(self):
  16902. return
  16903. def __repr__(self):
  16904. L = ['%s=%r' % (key, value)
  16905. for key, value in self.__dict__.items()]
  16906. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  16907. def __eq__(self, other):
  16908. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  16909. def __ne__(self, other):
  16910. return not (self == other)
  16911. all_structs.append(drop_partition_by_name_args)
  16912. drop_partition_by_name_args.thrift_spec = (
  16913. None, # 0
  16914. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  16915. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  16916. (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3
  16917. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  16918. )
  16919. class drop_partition_by_name_result(object):
  16920. """
  16921. Attributes:
  16922. - success
  16923. - o1
  16924. - o2
  16925. """
  16926. def __init__(self, success=None, o1=None, o2=None,):
  16927. self.success = success
  16928. self.o1 = o1
  16929. self.o2 = o2
  16930. def read(self, iprot):
  16931. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  16932. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  16933. return
  16934. iprot.readStructBegin()
  16935. while True:
  16936. (fname, ftype, fid) = iprot.readFieldBegin()
  16937. if ftype == TType.STOP:
  16938. break
  16939. if fid == 0:
  16940. if ftype == TType.BOOL:
  16941. self.success = iprot.readBool()
  16942. else:
  16943. iprot.skip(ftype)
  16944. elif fid == 1:
  16945. if ftype == TType.STRUCT:
  16946. self.o1 = NoSuchObjectException()
  16947. self.o1.read(iprot)
  16948. else:
  16949. iprot.skip(ftype)
  16950. elif fid == 2:
  16951. if ftype == TType.STRUCT:
  16952. self.o2 = MetaException()
  16953. self.o2.read(iprot)
  16954. else:
  16955. iprot.skip(ftype)
  16956. else:
  16957. iprot.skip(ftype)
  16958. iprot.readFieldEnd()
  16959. iprot.readStructEnd()
  16960. def write(self, oprot):
  16961. if oprot._fast_encode is not None and self.thrift_spec is not None:
  16962. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  16963. return
  16964. oprot.writeStructBegin('drop_partition_by_name_result')
  16965. if self.success is not None:
  16966. oprot.writeFieldBegin('success', TType.BOOL, 0)
  16967. oprot.writeBool(self.success)
  16968. oprot.writeFieldEnd()
  16969. if self.o1 is not None:
  16970. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  16971. self.o1.write(oprot)
  16972. oprot.writeFieldEnd()
  16973. if self.o2 is not None:
  16974. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  16975. self.o2.write(oprot)
  16976. oprot.writeFieldEnd()
  16977. oprot.writeFieldStop()
  16978. oprot.writeStructEnd()
  16979. def validate(self):
  16980. return
  16981. def __repr__(self):
  16982. L = ['%s=%r' % (key, value)
  16983. for key, value in self.__dict__.items()]
  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. all_structs.append(drop_partition_by_name_result)
  16990. drop_partition_by_name_result.thrift_spec = (
  16991. (0, TType.BOOL, 'success', None, None, ), # 0
  16992. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  16993. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  16994. )
  16995. class drop_partition_by_name_with_environment_context_args(object):
  16996. """
  16997. Attributes:
  16998. - db_name
  16999. - tbl_name
  17000. - part_name
  17001. - deleteData
  17002. - environment_context
  17003. """
  17004. def __init__(self, db_name=None, tbl_name=None, part_name=None, deleteData=None, environment_context=None,):
  17005. self.db_name = db_name
  17006. self.tbl_name = tbl_name
  17007. self.part_name = part_name
  17008. self.deleteData = deleteData
  17009. self.environment_context = environment_context
  17010. def read(self, iprot):
  17011. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  17012. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  17013. return
  17014. iprot.readStructBegin()
  17015. while True:
  17016. (fname, ftype, fid) = iprot.readFieldBegin()
  17017. if ftype == TType.STOP:
  17018. break
  17019. if fid == 1:
  17020. if ftype == TType.STRING:
  17021. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17022. else:
  17023. iprot.skip(ftype)
  17024. elif fid == 2:
  17025. if ftype == TType.STRING:
  17026. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17027. else:
  17028. iprot.skip(ftype)
  17029. elif fid == 3:
  17030. if ftype == TType.STRING:
  17031. self.part_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17032. else:
  17033. iprot.skip(ftype)
  17034. elif fid == 4:
  17035. if ftype == TType.BOOL:
  17036. self.deleteData = iprot.readBool()
  17037. else:
  17038. iprot.skip(ftype)
  17039. elif fid == 5:
  17040. if ftype == TType.STRUCT:
  17041. self.environment_context = EnvironmentContext()
  17042. self.environment_context.read(iprot)
  17043. else:
  17044. iprot.skip(ftype)
  17045. else:
  17046. iprot.skip(ftype)
  17047. iprot.readFieldEnd()
  17048. iprot.readStructEnd()
  17049. def write(self, oprot):
  17050. if oprot._fast_encode is not None and self.thrift_spec is not None:
  17051. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  17052. return
  17053. oprot.writeStructBegin('drop_partition_by_name_with_environment_context_args')
  17054. if self.db_name is not None:
  17055. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  17056. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  17057. oprot.writeFieldEnd()
  17058. if self.tbl_name is not None:
  17059. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  17060. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  17061. oprot.writeFieldEnd()
  17062. if self.part_name is not None:
  17063. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  17064. oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name)
  17065. oprot.writeFieldEnd()
  17066. if self.deleteData is not None:
  17067. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  17068. oprot.writeBool(self.deleteData)
  17069. oprot.writeFieldEnd()
  17070. if self.environment_context is not None:
  17071. oprot.writeFieldBegin('environment_context', TType.STRUCT, 5)
  17072. self.environment_context.write(oprot)
  17073. oprot.writeFieldEnd()
  17074. oprot.writeFieldStop()
  17075. oprot.writeStructEnd()
  17076. def validate(self):
  17077. return
  17078. def __repr__(self):
  17079. L = ['%s=%r' % (key, value)
  17080. for key, value in self.__dict__.items()]
  17081. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17082. def __eq__(self, other):
  17083. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17084. def __ne__(self, other):
  17085. return not (self == other)
  17086. all_structs.append(drop_partition_by_name_with_environment_context_args)
  17087. drop_partition_by_name_with_environment_context_args.thrift_spec = (
  17088. None, # 0
  17089. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  17090. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  17091. (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3
  17092. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  17093. (5, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 5
  17094. )
  17095. class drop_partition_by_name_with_environment_context_result(object):
  17096. """
  17097. Attributes:
  17098. - success
  17099. - o1
  17100. - o2
  17101. """
  17102. def __init__(self, success=None, o1=None, o2=None,):
  17103. self.success = success
  17104. self.o1 = o1
  17105. self.o2 = o2
  17106. def read(self, iprot):
  17107. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  17108. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  17109. return
  17110. iprot.readStructBegin()
  17111. while True:
  17112. (fname, ftype, fid) = iprot.readFieldBegin()
  17113. if ftype == TType.STOP:
  17114. break
  17115. if fid == 0:
  17116. if ftype == TType.BOOL:
  17117. self.success = iprot.readBool()
  17118. else:
  17119. iprot.skip(ftype)
  17120. elif fid == 1:
  17121. if ftype == TType.STRUCT:
  17122. self.o1 = NoSuchObjectException()
  17123. self.o1.read(iprot)
  17124. else:
  17125. iprot.skip(ftype)
  17126. elif fid == 2:
  17127. if ftype == TType.STRUCT:
  17128. self.o2 = MetaException()
  17129. self.o2.read(iprot)
  17130. else:
  17131. iprot.skip(ftype)
  17132. else:
  17133. iprot.skip(ftype)
  17134. iprot.readFieldEnd()
  17135. iprot.readStructEnd()
  17136. def write(self, oprot):
  17137. if oprot._fast_encode is not None and self.thrift_spec is not None:
  17138. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  17139. return
  17140. oprot.writeStructBegin('drop_partition_by_name_with_environment_context_result')
  17141. if self.success is not None:
  17142. oprot.writeFieldBegin('success', TType.BOOL, 0)
  17143. oprot.writeBool(self.success)
  17144. oprot.writeFieldEnd()
  17145. if self.o1 is not None:
  17146. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  17147. self.o1.write(oprot)
  17148. oprot.writeFieldEnd()
  17149. if self.o2 is not None:
  17150. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  17151. self.o2.write(oprot)
  17152. oprot.writeFieldEnd()
  17153. oprot.writeFieldStop()
  17154. oprot.writeStructEnd()
  17155. def validate(self):
  17156. return
  17157. def __repr__(self):
  17158. L = ['%s=%r' % (key, value)
  17159. for key, value in self.__dict__.items()]
  17160. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17161. def __eq__(self, other):
  17162. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17163. def __ne__(self, other):
  17164. return not (self == other)
  17165. all_structs.append(drop_partition_by_name_with_environment_context_result)
  17166. drop_partition_by_name_with_environment_context_result.thrift_spec = (
  17167. (0, TType.BOOL, 'success', None, None, ), # 0
  17168. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  17169. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  17170. )
  17171. class drop_partitions_req_args(object):
  17172. """
  17173. Attributes:
  17174. - req
  17175. """
  17176. def __init__(self, req=None,):
  17177. self.req = req
  17178. def read(self, iprot):
  17179. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  17180. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  17181. return
  17182. iprot.readStructBegin()
  17183. while True:
  17184. (fname, ftype, fid) = iprot.readFieldBegin()
  17185. if ftype == TType.STOP:
  17186. break
  17187. if fid == 1:
  17188. if ftype == TType.STRUCT:
  17189. self.req = DropPartitionsRequest()
  17190. self.req.read(iprot)
  17191. else:
  17192. iprot.skip(ftype)
  17193. else:
  17194. iprot.skip(ftype)
  17195. iprot.readFieldEnd()
  17196. iprot.readStructEnd()
  17197. def write(self, oprot):
  17198. if oprot._fast_encode is not None and self.thrift_spec is not None:
  17199. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  17200. return
  17201. oprot.writeStructBegin('drop_partitions_req_args')
  17202. if self.req is not None:
  17203. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  17204. self.req.write(oprot)
  17205. oprot.writeFieldEnd()
  17206. oprot.writeFieldStop()
  17207. oprot.writeStructEnd()
  17208. def validate(self):
  17209. return
  17210. def __repr__(self):
  17211. L = ['%s=%r' % (key, value)
  17212. for key, value in self.__dict__.items()]
  17213. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17214. def __eq__(self, other):
  17215. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17216. def __ne__(self, other):
  17217. return not (self == other)
  17218. all_structs.append(drop_partitions_req_args)
  17219. drop_partitions_req_args.thrift_spec = (
  17220. None, # 0
  17221. (1, TType.STRUCT, 'req', [DropPartitionsRequest, None], None, ), # 1
  17222. )
  17223. class drop_partitions_req_result(object):
  17224. """
  17225. Attributes:
  17226. - success
  17227. - o1
  17228. - o2
  17229. """
  17230. def __init__(self, success=None, o1=None, o2=None,):
  17231. self.success = success
  17232. self.o1 = o1
  17233. self.o2 = o2
  17234. def read(self, iprot):
  17235. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  17236. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  17237. return
  17238. iprot.readStructBegin()
  17239. while True:
  17240. (fname, ftype, fid) = iprot.readFieldBegin()
  17241. if ftype == TType.STOP:
  17242. break
  17243. if fid == 0:
  17244. if ftype == TType.STRUCT:
  17245. self.success = DropPartitionsResult()
  17246. self.success.read(iprot)
  17247. else:
  17248. iprot.skip(ftype)
  17249. elif fid == 1:
  17250. if ftype == TType.STRUCT:
  17251. self.o1 = NoSuchObjectException()
  17252. self.o1.read(iprot)
  17253. else:
  17254. iprot.skip(ftype)
  17255. elif fid == 2:
  17256. if ftype == TType.STRUCT:
  17257. self.o2 = MetaException()
  17258. self.o2.read(iprot)
  17259. else:
  17260. iprot.skip(ftype)
  17261. else:
  17262. iprot.skip(ftype)
  17263. iprot.readFieldEnd()
  17264. iprot.readStructEnd()
  17265. def write(self, oprot):
  17266. if oprot._fast_encode is not None and self.thrift_spec is not None:
  17267. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  17268. return
  17269. oprot.writeStructBegin('drop_partitions_req_result')
  17270. if self.success is not None:
  17271. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  17272. self.success.write(oprot)
  17273. oprot.writeFieldEnd()
  17274. if self.o1 is not None:
  17275. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  17276. self.o1.write(oprot)
  17277. oprot.writeFieldEnd()
  17278. if self.o2 is not None:
  17279. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  17280. self.o2.write(oprot)
  17281. oprot.writeFieldEnd()
  17282. oprot.writeFieldStop()
  17283. oprot.writeStructEnd()
  17284. def validate(self):
  17285. return
  17286. def __repr__(self):
  17287. L = ['%s=%r' % (key, value)
  17288. for key, value in self.__dict__.items()]
  17289. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17290. def __eq__(self, other):
  17291. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17292. def __ne__(self, other):
  17293. return not (self == other)
  17294. all_structs.append(drop_partitions_req_result)
  17295. drop_partitions_req_result.thrift_spec = (
  17296. (0, TType.STRUCT, 'success', [DropPartitionsResult, None], None, ), # 0
  17297. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  17298. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  17299. )
  17300. class get_partition_args(object):
  17301. """
  17302. Attributes:
  17303. - db_name
  17304. - tbl_name
  17305. - part_vals
  17306. """
  17307. def __init__(self, db_name=None, tbl_name=None, part_vals=None,):
  17308. self.db_name = db_name
  17309. self.tbl_name = tbl_name
  17310. self.part_vals = part_vals
  17311. def read(self, iprot):
  17312. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  17313. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  17314. return
  17315. iprot.readStructBegin()
  17316. while True:
  17317. (fname, ftype, fid) = iprot.readFieldBegin()
  17318. if ftype == TType.STOP:
  17319. break
  17320. if fid == 1:
  17321. if ftype == TType.STRING:
  17322. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17323. else:
  17324. iprot.skip(ftype)
  17325. elif fid == 2:
  17326. if ftype == TType.STRING:
  17327. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17328. else:
  17329. iprot.skip(ftype)
  17330. elif fid == 3:
  17331. if ftype == TType.LIST:
  17332. self.part_vals = []
  17333. (_etype753, _size750) = iprot.readListBegin()
  17334. for _i754 in range(_size750):
  17335. _elem755 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17336. self.part_vals.append(_elem755)
  17337. iprot.readListEnd()
  17338. else:
  17339. iprot.skip(ftype)
  17340. else:
  17341. iprot.skip(ftype)
  17342. iprot.readFieldEnd()
  17343. iprot.readStructEnd()
  17344. def write(self, oprot):
  17345. if oprot._fast_encode is not None and self.thrift_spec is not None:
  17346. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  17347. return
  17348. oprot.writeStructBegin('get_partition_args')
  17349. if self.db_name is not None:
  17350. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  17351. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  17352. oprot.writeFieldEnd()
  17353. if self.tbl_name is not None:
  17354. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  17355. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  17356. oprot.writeFieldEnd()
  17357. if self.part_vals is not None:
  17358. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  17359. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  17360. for iter756 in self.part_vals:
  17361. oprot.writeString(iter756.encode('utf-8') if sys.version_info[0] == 2 else iter756)
  17362. oprot.writeListEnd()
  17363. oprot.writeFieldEnd()
  17364. oprot.writeFieldStop()
  17365. oprot.writeStructEnd()
  17366. def validate(self):
  17367. return
  17368. def __repr__(self):
  17369. L = ['%s=%r' % (key, value)
  17370. for key, value in self.__dict__.items()]
  17371. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17372. def __eq__(self, other):
  17373. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17374. def __ne__(self, other):
  17375. return not (self == other)
  17376. all_structs.append(get_partition_args)
  17377. get_partition_args.thrift_spec = (
  17378. None, # 0
  17379. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  17380. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  17381. (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3
  17382. )
  17383. class get_partition_result(object):
  17384. """
  17385. Attributes:
  17386. - success
  17387. - o1
  17388. - o2
  17389. """
  17390. def __init__(self, success=None, o1=None, o2=None,):
  17391. self.success = success
  17392. self.o1 = o1
  17393. self.o2 = o2
  17394. def read(self, iprot):
  17395. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  17396. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  17397. return
  17398. iprot.readStructBegin()
  17399. while True:
  17400. (fname, ftype, fid) = iprot.readFieldBegin()
  17401. if ftype == TType.STOP:
  17402. break
  17403. if fid == 0:
  17404. if ftype == TType.STRUCT:
  17405. self.success = Partition()
  17406. self.success.read(iprot)
  17407. else:
  17408. iprot.skip(ftype)
  17409. elif fid == 1:
  17410. if ftype == TType.STRUCT:
  17411. self.o1 = MetaException()
  17412. self.o1.read(iprot)
  17413. else:
  17414. iprot.skip(ftype)
  17415. elif fid == 2:
  17416. if ftype == TType.STRUCT:
  17417. self.o2 = NoSuchObjectException()
  17418. self.o2.read(iprot)
  17419. else:
  17420. iprot.skip(ftype)
  17421. else:
  17422. iprot.skip(ftype)
  17423. iprot.readFieldEnd()
  17424. iprot.readStructEnd()
  17425. def write(self, oprot):
  17426. if oprot._fast_encode is not None and self.thrift_spec is not None:
  17427. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  17428. return
  17429. oprot.writeStructBegin('get_partition_result')
  17430. if self.success is not None:
  17431. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  17432. self.success.write(oprot)
  17433. oprot.writeFieldEnd()
  17434. if self.o1 is not None:
  17435. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  17436. self.o1.write(oprot)
  17437. oprot.writeFieldEnd()
  17438. if self.o2 is not None:
  17439. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  17440. self.o2.write(oprot)
  17441. oprot.writeFieldEnd()
  17442. oprot.writeFieldStop()
  17443. oprot.writeStructEnd()
  17444. def validate(self):
  17445. return
  17446. def __repr__(self):
  17447. L = ['%s=%r' % (key, value)
  17448. for key, value in self.__dict__.items()]
  17449. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17450. def __eq__(self, other):
  17451. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17452. def __ne__(self, other):
  17453. return not (self == other)
  17454. all_structs.append(get_partition_result)
  17455. get_partition_result.thrift_spec = (
  17456. (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0
  17457. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  17458. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  17459. )
  17460. class exchange_partition_args(object):
  17461. """
  17462. Attributes:
  17463. - partitionSpecs
  17464. - source_db
  17465. - source_table_name
  17466. - dest_db
  17467. - dest_table_name
  17468. """
  17469. def __init__(self, partitionSpecs=None, source_db=None, source_table_name=None, dest_db=None, dest_table_name=None,):
  17470. self.partitionSpecs = partitionSpecs
  17471. self.source_db = source_db
  17472. self.source_table_name = source_table_name
  17473. self.dest_db = dest_db
  17474. self.dest_table_name = dest_table_name
  17475. def read(self, iprot):
  17476. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  17477. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  17478. return
  17479. iprot.readStructBegin()
  17480. while True:
  17481. (fname, ftype, fid) = iprot.readFieldBegin()
  17482. if ftype == TType.STOP:
  17483. break
  17484. if fid == 1:
  17485. if ftype == TType.MAP:
  17486. self.partitionSpecs = {}
  17487. (_ktype758, _vtype759, _size757) = iprot.readMapBegin()
  17488. for _i761 in range(_size757):
  17489. _key762 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17490. _val763 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17491. self.partitionSpecs[_key762] = _val763
  17492. iprot.readMapEnd()
  17493. else:
  17494. iprot.skip(ftype)
  17495. elif fid == 2:
  17496. if ftype == TType.STRING:
  17497. self.source_db = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17498. else:
  17499. iprot.skip(ftype)
  17500. elif fid == 3:
  17501. if ftype == TType.STRING:
  17502. self.source_table_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17503. else:
  17504. iprot.skip(ftype)
  17505. elif fid == 4:
  17506. if ftype == TType.STRING:
  17507. self.dest_db = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17508. else:
  17509. iprot.skip(ftype)
  17510. elif fid == 5:
  17511. if ftype == TType.STRING:
  17512. self.dest_table_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17513. else:
  17514. iprot.skip(ftype)
  17515. else:
  17516. iprot.skip(ftype)
  17517. iprot.readFieldEnd()
  17518. iprot.readStructEnd()
  17519. def write(self, oprot):
  17520. if oprot._fast_encode is not None and self.thrift_spec is not None:
  17521. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  17522. return
  17523. oprot.writeStructBegin('exchange_partition_args')
  17524. if self.partitionSpecs is not None:
  17525. oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1)
  17526. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs))
  17527. for kiter764, viter765 in self.partitionSpecs.items():
  17528. oprot.writeString(kiter764.encode('utf-8') if sys.version_info[0] == 2 else kiter764)
  17529. oprot.writeString(viter765.encode('utf-8') if sys.version_info[0] == 2 else viter765)
  17530. oprot.writeMapEnd()
  17531. oprot.writeFieldEnd()
  17532. if self.source_db is not None:
  17533. oprot.writeFieldBegin('source_db', TType.STRING, 2)
  17534. oprot.writeString(self.source_db.encode('utf-8') if sys.version_info[0] == 2 else self.source_db)
  17535. oprot.writeFieldEnd()
  17536. if self.source_table_name is not None:
  17537. oprot.writeFieldBegin('source_table_name', TType.STRING, 3)
  17538. oprot.writeString(self.source_table_name.encode('utf-8') if sys.version_info[0] == 2 else self.source_table_name)
  17539. oprot.writeFieldEnd()
  17540. if self.dest_db is not None:
  17541. oprot.writeFieldBegin('dest_db', TType.STRING, 4)
  17542. oprot.writeString(self.dest_db.encode('utf-8') if sys.version_info[0] == 2 else self.dest_db)
  17543. oprot.writeFieldEnd()
  17544. if self.dest_table_name is not None:
  17545. oprot.writeFieldBegin('dest_table_name', TType.STRING, 5)
  17546. oprot.writeString(self.dest_table_name.encode('utf-8') if sys.version_info[0] == 2 else self.dest_table_name)
  17547. oprot.writeFieldEnd()
  17548. oprot.writeFieldStop()
  17549. oprot.writeStructEnd()
  17550. def validate(self):
  17551. return
  17552. def __repr__(self):
  17553. L = ['%s=%r' % (key, value)
  17554. for key, value in self.__dict__.items()]
  17555. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17556. def __eq__(self, other):
  17557. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17558. def __ne__(self, other):
  17559. return not (self == other)
  17560. all_structs.append(exchange_partition_args)
  17561. exchange_partition_args.thrift_spec = (
  17562. None, # 0
  17563. (1, TType.MAP, 'partitionSpecs', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 1
  17564. (2, TType.STRING, 'source_db', 'UTF8', None, ), # 2
  17565. (3, TType.STRING, 'source_table_name', 'UTF8', None, ), # 3
  17566. (4, TType.STRING, 'dest_db', 'UTF8', None, ), # 4
  17567. (5, TType.STRING, 'dest_table_name', 'UTF8', None, ), # 5
  17568. )
  17569. class exchange_partition_result(object):
  17570. """
  17571. Attributes:
  17572. - success
  17573. - o1
  17574. - o2
  17575. - o3
  17576. - o4
  17577. """
  17578. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  17579. self.success = success
  17580. self.o1 = o1
  17581. self.o2 = o2
  17582. self.o3 = o3
  17583. self.o4 = o4
  17584. def read(self, iprot):
  17585. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  17586. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  17587. return
  17588. iprot.readStructBegin()
  17589. while True:
  17590. (fname, ftype, fid) = iprot.readFieldBegin()
  17591. if ftype == TType.STOP:
  17592. break
  17593. if fid == 0:
  17594. if ftype == TType.STRUCT:
  17595. self.success = Partition()
  17596. self.success.read(iprot)
  17597. else:
  17598. iprot.skip(ftype)
  17599. elif fid == 1:
  17600. if ftype == TType.STRUCT:
  17601. self.o1 = MetaException()
  17602. self.o1.read(iprot)
  17603. else:
  17604. iprot.skip(ftype)
  17605. elif fid == 2:
  17606. if ftype == TType.STRUCT:
  17607. self.o2 = NoSuchObjectException()
  17608. self.o2.read(iprot)
  17609. else:
  17610. iprot.skip(ftype)
  17611. elif fid == 3:
  17612. if ftype == TType.STRUCT:
  17613. self.o3 = InvalidObjectException()
  17614. self.o3.read(iprot)
  17615. else:
  17616. iprot.skip(ftype)
  17617. elif fid == 4:
  17618. if ftype == TType.STRUCT:
  17619. self.o4 = InvalidInputException()
  17620. self.o4.read(iprot)
  17621. else:
  17622. iprot.skip(ftype)
  17623. else:
  17624. iprot.skip(ftype)
  17625. iprot.readFieldEnd()
  17626. iprot.readStructEnd()
  17627. def write(self, oprot):
  17628. if oprot._fast_encode is not None and self.thrift_spec is not None:
  17629. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  17630. return
  17631. oprot.writeStructBegin('exchange_partition_result')
  17632. if self.success is not None:
  17633. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  17634. self.success.write(oprot)
  17635. oprot.writeFieldEnd()
  17636. if self.o1 is not None:
  17637. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  17638. self.o1.write(oprot)
  17639. oprot.writeFieldEnd()
  17640. if self.o2 is not None:
  17641. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  17642. self.o2.write(oprot)
  17643. oprot.writeFieldEnd()
  17644. if self.o3 is not None:
  17645. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  17646. self.o3.write(oprot)
  17647. oprot.writeFieldEnd()
  17648. if self.o4 is not None:
  17649. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  17650. self.o4.write(oprot)
  17651. oprot.writeFieldEnd()
  17652. oprot.writeFieldStop()
  17653. oprot.writeStructEnd()
  17654. def validate(self):
  17655. return
  17656. def __repr__(self):
  17657. L = ['%s=%r' % (key, value)
  17658. for key, value in self.__dict__.items()]
  17659. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17660. def __eq__(self, other):
  17661. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17662. def __ne__(self, other):
  17663. return not (self == other)
  17664. all_structs.append(exchange_partition_result)
  17665. exchange_partition_result.thrift_spec = (
  17666. (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0
  17667. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  17668. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  17669. (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3
  17670. (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4
  17671. )
  17672. class exchange_partitions_args(object):
  17673. """
  17674. Attributes:
  17675. - partitionSpecs
  17676. - source_db
  17677. - source_table_name
  17678. - dest_db
  17679. - dest_table_name
  17680. """
  17681. def __init__(self, partitionSpecs=None, source_db=None, source_table_name=None, dest_db=None, dest_table_name=None,):
  17682. self.partitionSpecs = partitionSpecs
  17683. self.source_db = source_db
  17684. self.source_table_name = source_table_name
  17685. self.dest_db = dest_db
  17686. self.dest_table_name = dest_table_name
  17687. def read(self, iprot):
  17688. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  17689. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  17690. return
  17691. iprot.readStructBegin()
  17692. while True:
  17693. (fname, ftype, fid) = iprot.readFieldBegin()
  17694. if ftype == TType.STOP:
  17695. break
  17696. if fid == 1:
  17697. if ftype == TType.MAP:
  17698. self.partitionSpecs = {}
  17699. (_ktype767, _vtype768, _size766) = iprot.readMapBegin()
  17700. for _i770 in range(_size766):
  17701. _key771 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17702. _val772 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17703. self.partitionSpecs[_key771] = _val772
  17704. iprot.readMapEnd()
  17705. else:
  17706. iprot.skip(ftype)
  17707. elif fid == 2:
  17708. if ftype == TType.STRING:
  17709. self.source_db = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17710. else:
  17711. iprot.skip(ftype)
  17712. elif fid == 3:
  17713. if ftype == TType.STRING:
  17714. self.source_table_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17715. else:
  17716. iprot.skip(ftype)
  17717. elif fid == 4:
  17718. if ftype == TType.STRING:
  17719. self.dest_db = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17720. else:
  17721. iprot.skip(ftype)
  17722. elif fid == 5:
  17723. if ftype == TType.STRING:
  17724. self.dest_table_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17725. else:
  17726. iprot.skip(ftype)
  17727. else:
  17728. iprot.skip(ftype)
  17729. iprot.readFieldEnd()
  17730. iprot.readStructEnd()
  17731. def write(self, oprot):
  17732. if oprot._fast_encode is not None and self.thrift_spec is not None:
  17733. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  17734. return
  17735. oprot.writeStructBegin('exchange_partitions_args')
  17736. if self.partitionSpecs is not None:
  17737. oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1)
  17738. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs))
  17739. for kiter773, viter774 in self.partitionSpecs.items():
  17740. oprot.writeString(kiter773.encode('utf-8') if sys.version_info[0] == 2 else kiter773)
  17741. oprot.writeString(viter774.encode('utf-8') if sys.version_info[0] == 2 else viter774)
  17742. oprot.writeMapEnd()
  17743. oprot.writeFieldEnd()
  17744. if self.source_db is not None:
  17745. oprot.writeFieldBegin('source_db', TType.STRING, 2)
  17746. oprot.writeString(self.source_db.encode('utf-8') if sys.version_info[0] == 2 else self.source_db)
  17747. oprot.writeFieldEnd()
  17748. if self.source_table_name is not None:
  17749. oprot.writeFieldBegin('source_table_name', TType.STRING, 3)
  17750. oprot.writeString(self.source_table_name.encode('utf-8') if sys.version_info[0] == 2 else self.source_table_name)
  17751. oprot.writeFieldEnd()
  17752. if self.dest_db is not None:
  17753. oprot.writeFieldBegin('dest_db', TType.STRING, 4)
  17754. oprot.writeString(self.dest_db.encode('utf-8') if sys.version_info[0] == 2 else self.dest_db)
  17755. oprot.writeFieldEnd()
  17756. if self.dest_table_name is not None:
  17757. oprot.writeFieldBegin('dest_table_name', TType.STRING, 5)
  17758. oprot.writeString(self.dest_table_name.encode('utf-8') if sys.version_info[0] == 2 else self.dest_table_name)
  17759. oprot.writeFieldEnd()
  17760. oprot.writeFieldStop()
  17761. oprot.writeStructEnd()
  17762. def validate(self):
  17763. return
  17764. def __repr__(self):
  17765. L = ['%s=%r' % (key, value)
  17766. for key, value in self.__dict__.items()]
  17767. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17768. def __eq__(self, other):
  17769. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17770. def __ne__(self, other):
  17771. return not (self == other)
  17772. all_structs.append(exchange_partitions_args)
  17773. exchange_partitions_args.thrift_spec = (
  17774. None, # 0
  17775. (1, TType.MAP, 'partitionSpecs', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 1
  17776. (2, TType.STRING, 'source_db', 'UTF8', None, ), # 2
  17777. (3, TType.STRING, 'source_table_name', 'UTF8', None, ), # 3
  17778. (4, TType.STRING, 'dest_db', 'UTF8', None, ), # 4
  17779. (5, TType.STRING, 'dest_table_name', 'UTF8', None, ), # 5
  17780. )
  17781. class exchange_partitions_result(object):
  17782. """
  17783. Attributes:
  17784. - success
  17785. - o1
  17786. - o2
  17787. - o3
  17788. - o4
  17789. """
  17790. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  17791. self.success = success
  17792. self.o1 = o1
  17793. self.o2 = o2
  17794. self.o3 = o3
  17795. self.o4 = o4
  17796. def read(self, iprot):
  17797. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  17798. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  17799. return
  17800. iprot.readStructBegin()
  17801. while True:
  17802. (fname, ftype, fid) = iprot.readFieldBegin()
  17803. if ftype == TType.STOP:
  17804. break
  17805. if fid == 0:
  17806. if ftype == TType.LIST:
  17807. self.success = []
  17808. (_etype778, _size775) = iprot.readListBegin()
  17809. for _i779 in range(_size775):
  17810. _elem780 = Partition()
  17811. _elem780.read(iprot)
  17812. self.success.append(_elem780)
  17813. iprot.readListEnd()
  17814. else:
  17815. iprot.skip(ftype)
  17816. elif fid == 1:
  17817. if ftype == TType.STRUCT:
  17818. self.o1 = MetaException()
  17819. self.o1.read(iprot)
  17820. else:
  17821. iprot.skip(ftype)
  17822. elif fid == 2:
  17823. if ftype == TType.STRUCT:
  17824. self.o2 = NoSuchObjectException()
  17825. self.o2.read(iprot)
  17826. else:
  17827. iprot.skip(ftype)
  17828. elif fid == 3:
  17829. if ftype == TType.STRUCT:
  17830. self.o3 = InvalidObjectException()
  17831. self.o3.read(iprot)
  17832. else:
  17833. iprot.skip(ftype)
  17834. elif fid == 4:
  17835. if ftype == TType.STRUCT:
  17836. self.o4 = InvalidInputException()
  17837. self.o4.read(iprot)
  17838. else:
  17839. iprot.skip(ftype)
  17840. else:
  17841. iprot.skip(ftype)
  17842. iprot.readFieldEnd()
  17843. iprot.readStructEnd()
  17844. def write(self, oprot):
  17845. if oprot._fast_encode is not None and self.thrift_spec is not None:
  17846. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  17847. return
  17848. oprot.writeStructBegin('exchange_partitions_result')
  17849. if self.success is not None:
  17850. oprot.writeFieldBegin('success', TType.LIST, 0)
  17851. oprot.writeListBegin(TType.STRUCT, len(self.success))
  17852. for iter781 in self.success:
  17853. iter781.write(oprot)
  17854. oprot.writeListEnd()
  17855. oprot.writeFieldEnd()
  17856. if self.o1 is not None:
  17857. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  17858. self.o1.write(oprot)
  17859. oprot.writeFieldEnd()
  17860. if self.o2 is not None:
  17861. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  17862. self.o2.write(oprot)
  17863. oprot.writeFieldEnd()
  17864. if self.o3 is not None:
  17865. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  17866. self.o3.write(oprot)
  17867. oprot.writeFieldEnd()
  17868. if self.o4 is not None:
  17869. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  17870. self.o4.write(oprot)
  17871. oprot.writeFieldEnd()
  17872. oprot.writeFieldStop()
  17873. oprot.writeStructEnd()
  17874. def validate(self):
  17875. return
  17876. def __repr__(self):
  17877. L = ['%s=%r' % (key, value)
  17878. for key, value in self.__dict__.items()]
  17879. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17880. def __eq__(self, other):
  17881. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17882. def __ne__(self, other):
  17883. return not (self == other)
  17884. all_structs.append(exchange_partitions_result)
  17885. exchange_partitions_result.thrift_spec = (
  17886. (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0
  17887. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  17888. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  17889. (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3
  17890. (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4
  17891. )
  17892. class get_partition_with_auth_args(object):
  17893. """
  17894. Attributes:
  17895. - db_name
  17896. - tbl_name
  17897. - part_vals
  17898. - user_name
  17899. - group_names
  17900. """
  17901. def __init__(self, db_name=None, tbl_name=None, part_vals=None, user_name=None, group_names=None,):
  17902. self.db_name = db_name
  17903. self.tbl_name = tbl_name
  17904. self.part_vals = part_vals
  17905. self.user_name = user_name
  17906. self.group_names = group_names
  17907. def read(self, iprot):
  17908. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  17909. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  17910. return
  17911. iprot.readStructBegin()
  17912. while True:
  17913. (fname, ftype, fid) = iprot.readFieldBegin()
  17914. if ftype == TType.STOP:
  17915. break
  17916. if fid == 1:
  17917. if ftype == TType.STRING:
  17918. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17919. else:
  17920. iprot.skip(ftype)
  17921. elif fid == 2:
  17922. if ftype == TType.STRING:
  17923. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17924. else:
  17925. iprot.skip(ftype)
  17926. elif fid == 3:
  17927. if ftype == TType.LIST:
  17928. self.part_vals = []
  17929. (_etype785, _size782) = iprot.readListBegin()
  17930. for _i786 in range(_size782):
  17931. _elem787 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17932. self.part_vals.append(_elem787)
  17933. iprot.readListEnd()
  17934. else:
  17935. iprot.skip(ftype)
  17936. elif fid == 4:
  17937. if ftype == TType.STRING:
  17938. self.user_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17939. else:
  17940. iprot.skip(ftype)
  17941. elif fid == 5:
  17942. if ftype == TType.LIST:
  17943. self.group_names = []
  17944. (_etype791, _size788) = iprot.readListBegin()
  17945. for _i792 in range(_size788):
  17946. _elem793 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  17947. self.group_names.append(_elem793)
  17948. iprot.readListEnd()
  17949. else:
  17950. iprot.skip(ftype)
  17951. else:
  17952. iprot.skip(ftype)
  17953. iprot.readFieldEnd()
  17954. iprot.readStructEnd()
  17955. def write(self, oprot):
  17956. if oprot._fast_encode is not None and self.thrift_spec is not None:
  17957. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  17958. return
  17959. oprot.writeStructBegin('get_partition_with_auth_args')
  17960. if self.db_name is not None:
  17961. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  17962. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  17963. oprot.writeFieldEnd()
  17964. if self.tbl_name is not None:
  17965. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  17966. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  17967. oprot.writeFieldEnd()
  17968. if self.part_vals is not None:
  17969. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  17970. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  17971. for iter794 in self.part_vals:
  17972. oprot.writeString(iter794.encode('utf-8') if sys.version_info[0] == 2 else iter794)
  17973. oprot.writeListEnd()
  17974. oprot.writeFieldEnd()
  17975. if self.user_name is not None:
  17976. oprot.writeFieldBegin('user_name', TType.STRING, 4)
  17977. oprot.writeString(self.user_name.encode('utf-8') if sys.version_info[0] == 2 else self.user_name)
  17978. oprot.writeFieldEnd()
  17979. if self.group_names is not None:
  17980. oprot.writeFieldBegin('group_names', TType.LIST, 5)
  17981. oprot.writeListBegin(TType.STRING, len(self.group_names))
  17982. for iter795 in self.group_names:
  17983. oprot.writeString(iter795.encode('utf-8') if sys.version_info[0] == 2 else iter795)
  17984. oprot.writeListEnd()
  17985. oprot.writeFieldEnd()
  17986. oprot.writeFieldStop()
  17987. oprot.writeStructEnd()
  17988. def validate(self):
  17989. return
  17990. def __repr__(self):
  17991. L = ['%s=%r' % (key, value)
  17992. for key, value in self.__dict__.items()]
  17993. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  17994. def __eq__(self, other):
  17995. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  17996. def __ne__(self, other):
  17997. return not (self == other)
  17998. all_structs.append(get_partition_with_auth_args)
  17999. get_partition_with_auth_args.thrift_spec = (
  18000. None, # 0
  18001. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  18002. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  18003. (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3
  18004. (4, TType.STRING, 'user_name', 'UTF8', None, ), # 4
  18005. (5, TType.LIST, 'group_names', (TType.STRING, 'UTF8', False), None, ), # 5
  18006. )
  18007. class get_partition_with_auth_result(object):
  18008. """
  18009. Attributes:
  18010. - success
  18011. - o1
  18012. - o2
  18013. """
  18014. def __init__(self, success=None, o1=None, o2=None,):
  18015. self.success = success
  18016. self.o1 = o1
  18017. self.o2 = o2
  18018. def read(self, iprot):
  18019. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  18020. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  18021. return
  18022. iprot.readStructBegin()
  18023. while True:
  18024. (fname, ftype, fid) = iprot.readFieldBegin()
  18025. if ftype == TType.STOP:
  18026. break
  18027. if fid == 0:
  18028. if ftype == TType.STRUCT:
  18029. self.success = Partition()
  18030. self.success.read(iprot)
  18031. else:
  18032. iprot.skip(ftype)
  18033. elif fid == 1:
  18034. if ftype == TType.STRUCT:
  18035. self.o1 = MetaException()
  18036. self.o1.read(iprot)
  18037. else:
  18038. iprot.skip(ftype)
  18039. elif fid == 2:
  18040. if ftype == TType.STRUCT:
  18041. self.o2 = NoSuchObjectException()
  18042. self.o2.read(iprot)
  18043. else:
  18044. iprot.skip(ftype)
  18045. else:
  18046. iprot.skip(ftype)
  18047. iprot.readFieldEnd()
  18048. iprot.readStructEnd()
  18049. def write(self, oprot):
  18050. if oprot._fast_encode is not None and self.thrift_spec is not None:
  18051. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  18052. return
  18053. oprot.writeStructBegin('get_partition_with_auth_result')
  18054. if self.success is not None:
  18055. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  18056. self.success.write(oprot)
  18057. oprot.writeFieldEnd()
  18058. if self.o1 is not None:
  18059. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  18060. self.o1.write(oprot)
  18061. oprot.writeFieldEnd()
  18062. if self.o2 is not None:
  18063. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  18064. self.o2.write(oprot)
  18065. oprot.writeFieldEnd()
  18066. oprot.writeFieldStop()
  18067. oprot.writeStructEnd()
  18068. def validate(self):
  18069. return
  18070. def __repr__(self):
  18071. L = ['%s=%r' % (key, value)
  18072. for key, value in self.__dict__.items()]
  18073. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18074. def __eq__(self, other):
  18075. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18076. def __ne__(self, other):
  18077. return not (self == other)
  18078. all_structs.append(get_partition_with_auth_result)
  18079. get_partition_with_auth_result.thrift_spec = (
  18080. (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0
  18081. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  18082. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  18083. )
  18084. class get_partition_by_name_args(object):
  18085. """
  18086. Attributes:
  18087. - db_name
  18088. - tbl_name
  18089. - part_name
  18090. """
  18091. def __init__(self, db_name=None, tbl_name=None, part_name=None,):
  18092. self.db_name = db_name
  18093. self.tbl_name = tbl_name
  18094. self.part_name = part_name
  18095. def read(self, iprot):
  18096. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  18097. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  18098. return
  18099. iprot.readStructBegin()
  18100. while True:
  18101. (fname, ftype, fid) = iprot.readFieldBegin()
  18102. if ftype == TType.STOP:
  18103. break
  18104. if fid == 1:
  18105. if ftype == TType.STRING:
  18106. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18107. else:
  18108. iprot.skip(ftype)
  18109. elif fid == 2:
  18110. if ftype == TType.STRING:
  18111. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18112. else:
  18113. iprot.skip(ftype)
  18114. elif fid == 3:
  18115. if ftype == TType.STRING:
  18116. self.part_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18117. else:
  18118. iprot.skip(ftype)
  18119. else:
  18120. iprot.skip(ftype)
  18121. iprot.readFieldEnd()
  18122. iprot.readStructEnd()
  18123. def write(self, oprot):
  18124. if oprot._fast_encode is not None and self.thrift_spec is not None:
  18125. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  18126. return
  18127. oprot.writeStructBegin('get_partition_by_name_args')
  18128. if self.db_name is not None:
  18129. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  18130. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  18131. oprot.writeFieldEnd()
  18132. if self.tbl_name is not None:
  18133. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  18134. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  18135. oprot.writeFieldEnd()
  18136. if self.part_name is not None:
  18137. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  18138. oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name)
  18139. oprot.writeFieldEnd()
  18140. oprot.writeFieldStop()
  18141. oprot.writeStructEnd()
  18142. def validate(self):
  18143. return
  18144. def __repr__(self):
  18145. L = ['%s=%r' % (key, value)
  18146. for key, value in self.__dict__.items()]
  18147. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18148. def __eq__(self, other):
  18149. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18150. def __ne__(self, other):
  18151. return not (self == other)
  18152. all_structs.append(get_partition_by_name_args)
  18153. get_partition_by_name_args.thrift_spec = (
  18154. None, # 0
  18155. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  18156. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  18157. (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3
  18158. )
  18159. class get_partition_by_name_result(object):
  18160. """
  18161. Attributes:
  18162. - success
  18163. - o1
  18164. - o2
  18165. """
  18166. def __init__(self, success=None, o1=None, o2=None,):
  18167. self.success = success
  18168. self.o1 = o1
  18169. self.o2 = o2
  18170. def read(self, iprot):
  18171. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  18172. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  18173. return
  18174. iprot.readStructBegin()
  18175. while True:
  18176. (fname, ftype, fid) = iprot.readFieldBegin()
  18177. if ftype == TType.STOP:
  18178. break
  18179. if fid == 0:
  18180. if ftype == TType.STRUCT:
  18181. self.success = Partition()
  18182. self.success.read(iprot)
  18183. else:
  18184. iprot.skip(ftype)
  18185. elif fid == 1:
  18186. if ftype == TType.STRUCT:
  18187. self.o1 = MetaException()
  18188. self.o1.read(iprot)
  18189. else:
  18190. iprot.skip(ftype)
  18191. elif fid == 2:
  18192. if ftype == TType.STRUCT:
  18193. self.o2 = NoSuchObjectException()
  18194. self.o2.read(iprot)
  18195. else:
  18196. iprot.skip(ftype)
  18197. else:
  18198. iprot.skip(ftype)
  18199. iprot.readFieldEnd()
  18200. iprot.readStructEnd()
  18201. def write(self, oprot):
  18202. if oprot._fast_encode is not None and self.thrift_spec is not None:
  18203. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  18204. return
  18205. oprot.writeStructBegin('get_partition_by_name_result')
  18206. if self.success is not None:
  18207. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  18208. self.success.write(oprot)
  18209. oprot.writeFieldEnd()
  18210. if self.o1 is not None:
  18211. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  18212. self.o1.write(oprot)
  18213. oprot.writeFieldEnd()
  18214. if self.o2 is not None:
  18215. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  18216. self.o2.write(oprot)
  18217. oprot.writeFieldEnd()
  18218. oprot.writeFieldStop()
  18219. oprot.writeStructEnd()
  18220. def validate(self):
  18221. return
  18222. def __repr__(self):
  18223. L = ['%s=%r' % (key, value)
  18224. for key, value in self.__dict__.items()]
  18225. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18226. def __eq__(self, other):
  18227. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18228. def __ne__(self, other):
  18229. return not (self == other)
  18230. all_structs.append(get_partition_by_name_result)
  18231. get_partition_by_name_result.thrift_spec = (
  18232. (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0
  18233. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  18234. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  18235. )
  18236. class get_partitions_args(object):
  18237. """
  18238. Attributes:
  18239. - db_name
  18240. - tbl_name
  18241. - max_parts
  18242. """
  18243. def __init__(self, db_name=None, tbl_name=None, max_parts=-1,):
  18244. self.db_name = db_name
  18245. self.tbl_name = tbl_name
  18246. self.max_parts = max_parts
  18247. def read(self, iprot):
  18248. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  18249. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  18250. return
  18251. iprot.readStructBegin()
  18252. while True:
  18253. (fname, ftype, fid) = iprot.readFieldBegin()
  18254. if ftype == TType.STOP:
  18255. break
  18256. if fid == 1:
  18257. if ftype == TType.STRING:
  18258. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18259. else:
  18260. iprot.skip(ftype)
  18261. elif fid == 2:
  18262. if ftype == TType.STRING:
  18263. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18264. else:
  18265. iprot.skip(ftype)
  18266. elif fid == 3:
  18267. if ftype == TType.I16:
  18268. self.max_parts = iprot.readI16()
  18269. else:
  18270. iprot.skip(ftype)
  18271. else:
  18272. iprot.skip(ftype)
  18273. iprot.readFieldEnd()
  18274. iprot.readStructEnd()
  18275. def write(self, oprot):
  18276. if oprot._fast_encode is not None and self.thrift_spec is not None:
  18277. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  18278. return
  18279. oprot.writeStructBegin('get_partitions_args')
  18280. if self.db_name is not None:
  18281. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  18282. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  18283. oprot.writeFieldEnd()
  18284. if self.tbl_name is not None:
  18285. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  18286. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  18287. oprot.writeFieldEnd()
  18288. if self.max_parts is not None:
  18289. oprot.writeFieldBegin('max_parts', TType.I16, 3)
  18290. oprot.writeI16(self.max_parts)
  18291. oprot.writeFieldEnd()
  18292. oprot.writeFieldStop()
  18293. oprot.writeStructEnd()
  18294. def validate(self):
  18295. return
  18296. def __repr__(self):
  18297. L = ['%s=%r' % (key, value)
  18298. for key, value in self.__dict__.items()]
  18299. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18300. def __eq__(self, other):
  18301. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18302. def __ne__(self, other):
  18303. return not (self == other)
  18304. all_structs.append(get_partitions_args)
  18305. get_partitions_args.thrift_spec = (
  18306. None, # 0
  18307. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  18308. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  18309. (3, TType.I16, 'max_parts', None, -1, ), # 3
  18310. )
  18311. class get_partitions_result(object):
  18312. """
  18313. Attributes:
  18314. - success
  18315. - o1
  18316. - o2
  18317. """
  18318. def __init__(self, success=None, o1=None, o2=None,):
  18319. self.success = success
  18320. self.o1 = o1
  18321. self.o2 = o2
  18322. def read(self, iprot):
  18323. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  18324. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  18325. return
  18326. iprot.readStructBegin()
  18327. while True:
  18328. (fname, ftype, fid) = iprot.readFieldBegin()
  18329. if ftype == TType.STOP:
  18330. break
  18331. if fid == 0:
  18332. if ftype == TType.LIST:
  18333. self.success = []
  18334. (_etype799, _size796) = iprot.readListBegin()
  18335. for _i800 in range(_size796):
  18336. _elem801 = Partition()
  18337. _elem801.read(iprot)
  18338. self.success.append(_elem801)
  18339. iprot.readListEnd()
  18340. else:
  18341. iprot.skip(ftype)
  18342. elif fid == 1:
  18343. if ftype == TType.STRUCT:
  18344. self.o1 = NoSuchObjectException()
  18345. self.o1.read(iprot)
  18346. else:
  18347. iprot.skip(ftype)
  18348. elif fid == 2:
  18349. if ftype == TType.STRUCT:
  18350. self.o2 = MetaException()
  18351. self.o2.read(iprot)
  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._fast_encode is not None and self.thrift_spec is not None:
  18360. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  18361. return
  18362. oprot.writeStructBegin('get_partitions_result')
  18363. if self.success is not None:
  18364. oprot.writeFieldBegin('success', TType.LIST, 0)
  18365. oprot.writeListBegin(TType.STRUCT, len(self.success))
  18366. for iter802 in self.success:
  18367. iter802.write(oprot)
  18368. oprot.writeListEnd()
  18369. oprot.writeFieldEnd()
  18370. if self.o1 is not None:
  18371. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  18372. self.o1.write(oprot)
  18373. oprot.writeFieldEnd()
  18374. if self.o2 is not None:
  18375. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  18376. self.o2.write(oprot)
  18377. oprot.writeFieldEnd()
  18378. oprot.writeFieldStop()
  18379. oprot.writeStructEnd()
  18380. def validate(self):
  18381. return
  18382. def __repr__(self):
  18383. L = ['%s=%r' % (key, value)
  18384. for key, value in self.__dict__.items()]
  18385. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18386. def __eq__(self, other):
  18387. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18388. def __ne__(self, other):
  18389. return not (self == other)
  18390. all_structs.append(get_partitions_result)
  18391. get_partitions_result.thrift_spec = (
  18392. (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0
  18393. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  18394. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  18395. )
  18396. class get_partitions_with_auth_args(object):
  18397. """
  18398. Attributes:
  18399. - db_name
  18400. - tbl_name
  18401. - max_parts
  18402. - user_name
  18403. - group_names
  18404. """
  18405. def __init__(self, db_name=None, tbl_name=None, max_parts=-1, user_name=None, group_names=None,):
  18406. self.db_name = db_name
  18407. self.tbl_name = tbl_name
  18408. self.max_parts = max_parts
  18409. self.user_name = user_name
  18410. self.group_names = group_names
  18411. def read(self, iprot):
  18412. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  18413. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  18414. return
  18415. iprot.readStructBegin()
  18416. while True:
  18417. (fname, ftype, fid) = iprot.readFieldBegin()
  18418. if ftype == TType.STOP:
  18419. break
  18420. if fid == 1:
  18421. if ftype == TType.STRING:
  18422. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18423. else:
  18424. iprot.skip(ftype)
  18425. elif fid == 2:
  18426. if ftype == TType.STRING:
  18427. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18428. else:
  18429. iprot.skip(ftype)
  18430. elif fid == 3:
  18431. if ftype == TType.I16:
  18432. self.max_parts = iprot.readI16()
  18433. else:
  18434. iprot.skip(ftype)
  18435. elif fid == 4:
  18436. if ftype == TType.STRING:
  18437. self.user_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18438. else:
  18439. iprot.skip(ftype)
  18440. elif fid == 5:
  18441. if ftype == TType.LIST:
  18442. self.group_names = []
  18443. (_etype806, _size803) = iprot.readListBegin()
  18444. for _i807 in range(_size803):
  18445. _elem808 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18446. self.group_names.append(_elem808)
  18447. iprot.readListEnd()
  18448. else:
  18449. iprot.skip(ftype)
  18450. else:
  18451. iprot.skip(ftype)
  18452. iprot.readFieldEnd()
  18453. iprot.readStructEnd()
  18454. def write(self, oprot):
  18455. if oprot._fast_encode is not None and self.thrift_spec is not None:
  18456. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  18457. return
  18458. oprot.writeStructBegin('get_partitions_with_auth_args')
  18459. if self.db_name is not None:
  18460. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  18461. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  18462. oprot.writeFieldEnd()
  18463. if self.tbl_name is not None:
  18464. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  18465. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  18466. oprot.writeFieldEnd()
  18467. if self.max_parts is not None:
  18468. oprot.writeFieldBegin('max_parts', TType.I16, 3)
  18469. oprot.writeI16(self.max_parts)
  18470. oprot.writeFieldEnd()
  18471. if self.user_name is not None:
  18472. oprot.writeFieldBegin('user_name', TType.STRING, 4)
  18473. oprot.writeString(self.user_name.encode('utf-8') if sys.version_info[0] == 2 else self.user_name)
  18474. oprot.writeFieldEnd()
  18475. if self.group_names is not None:
  18476. oprot.writeFieldBegin('group_names', TType.LIST, 5)
  18477. oprot.writeListBegin(TType.STRING, len(self.group_names))
  18478. for iter809 in self.group_names:
  18479. oprot.writeString(iter809.encode('utf-8') if sys.version_info[0] == 2 else iter809)
  18480. oprot.writeListEnd()
  18481. oprot.writeFieldEnd()
  18482. oprot.writeFieldStop()
  18483. oprot.writeStructEnd()
  18484. def validate(self):
  18485. return
  18486. def __repr__(self):
  18487. L = ['%s=%r' % (key, value)
  18488. for key, value in self.__dict__.items()]
  18489. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18490. def __eq__(self, other):
  18491. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18492. def __ne__(self, other):
  18493. return not (self == other)
  18494. all_structs.append(get_partitions_with_auth_args)
  18495. get_partitions_with_auth_args.thrift_spec = (
  18496. None, # 0
  18497. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  18498. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  18499. (3, TType.I16, 'max_parts', None, -1, ), # 3
  18500. (4, TType.STRING, 'user_name', 'UTF8', None, ), # 4
  18501. (5, TType.LIST, 'group_names', (TType.STRING, 'UTF8', False), None, ), # 5
  18502. )
  18503. class get_partitions_with_auth_result(object):
  18504. """
  18505. Attributes:
  18506. - success
  18507. - o1
  18508. - o2
  18509. """
  18510. def __init__(self, success=None, o1=None, o2=None,):
  18511. self.success = success
  18512. self.o1 = o1
  18513. self.o2 = o2
  18514. def read(self, iprot):
  18515. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  18516. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  18517. return
  18518. iprot.readStructBegin()
  18519. while True:
  18520. (fname, ftype, fid) = iprot.readFieldBegin()
  18521. if ftype == TType.STOP:
  18522. break
  18523. if fid == 0:
  18524. if ftype == TType.LIST:
  18525. self.success = []
  18526. (_etype813, _size810) = iprot.readListBegin()
  18527. for _i814 in range(_size810):
  18528. _elem815 = Partition()
  18529. _elem815.read(iprot)
  18530. self.success.append(_elem815)
  18531. iprot.readListEnd()
  18532. else:
  18533. iprot.skip(ftype)
  18534. elif fid == 1:
  18535. if ftype == TType.STRUCT:
  18536. self.o1 = NoSuchObjectException()
  18537. self.o1.read(iprot)
  18538. else:
  18539. iprot.skip(ftype)
  18540. elif fid == 2:
  18541. if ftype == TType.STRUCT:
  18542. self.o2 = MetaException()
  18543. self.o2.read(iprot)
  18544. else:
  18545. iprot.skip(ftype)
  18546. else:
  18547. iprot.skip(ftype)
  18548. iprot.readFieldEnd()
  18549. iprot.readStructEnd()
  18550. def write(self, oprot):
  18551. if oprot._fast_encode is not None and self.thrift_spec is not None:
  18552. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  18553. return
  18554. oprot.writeStructBegin('get_partitions_with_auth_result')
  18555. if self.success is not None:
  18556. oprot.writeFieldBegin('success', TType.LIST, 0)
  18557. oprot.writeListBegin(TType.STRUCT, len(self.success))
  18558. for iter816 in self.success:
  18559. iter816.write(oprot)
  18560. oprot.writeListEnd()
  18561. oprot.writeFieldEnd()
  18562. if self.o1 is not None:
  18563. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  18564. self.o1.write(oprot)
  18565. oprot.writeFieldEnd()
  18566. if self.o2 is not None:
  18567. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  18568. self.o2.write(oprot)
  18569. oprot.writeFieldEnd()
  18570. oprot.writeFieldStop()
  18571. oprot.writeStructEnd()
  18572. def validate(self):
  18573. return
  18574. def __repr__(self):
  18575. L = ['%s=%r' % (key, value)
  18576. for key, value in self.__dict__.items()]
  18577. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18578. def __eq__(self, other):
  18579. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18580. def __ne__(self, other):
  18581. return not (self == other)
  18582. all_structs.append(get_partitions_with_auth_result)
  18583. get_partitions_with_auth_result.thrift_spec = (
  18584. (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0
  18585. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  18586. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  18587. )
  18588. class get_partitions_pspec_args(object):
  18589. """
  18590. Attributes:
  18591. - db_name
  18592. - tbl_name
  18593. - max_parts
  18594. """
  18595. def __init__(self, db_name=None, tbl_name=None, max_parts=-1,):
  18596. self.db_name = db_name
  18597. self.tbl_name = tbl_name
  18598. self.max_parts = max_parts
  18599. def read(self, iprot):
  18600. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  18601. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  18602. return
  18603. iprot.readStructBegin()
  18604. while True:
  18605. (fname, ftype, fid) = iprot.readFieldBegin()
  18606. if ftype == TType.STOP:
  18607. break
  18608. if fid == 1:
  18609. if ftype == TType.STRING:
  18610. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18611. else:
  18612. iprot.skip(ftype)
  18613. elif fid == 2:
  18614. if ftype == TType.STRING:
  18615. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18616. else:
  18617. iprot.skip(ftype)
  18618. elif fid == 3:
  18619. if ftype == TType.I32:
  18620. self.max_parts = iprot.readI32()
  18621. else:
  18622. iprot.skip(ftype)
  18623. else:
  18624. iprot.skip(ftype)
  18625. iprot.readFieldEnd()
  18626. iprot.readStructEnd()
  18627. def write(self, oprot):
  18628. if oprot._fast_encode is not None and self.thrift_spec is not None:
  18629. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  18630. return
  18631. oprot.writeStructBegin('get_partitions_pspec_args')
  18632. if self.db_name is not None:
  18633. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  18634. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  18635. oprot.writeFieldEnd()
  18636. if self.tbl_name is not None:
  18637. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  18638. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  18639. oprot.writeFieldEnd()
  18640. if self.max_parts is not None:
  18641. oprot.writeFieldBegin('max_parts', TType.I32, 3)
  18642. oprot.writeI32(self.max_parts)
  18643. oprot.writeFieldEnd()
  18644. oprot.writeFieldStop()
  18645. oprot.writeStructEnd()
  18646. def validate(self):
  18647. return
  18648. def __repr__(self):
  18649. L = ['%s=%r' % (key, value)
  18650. for key, value in self.__dict__.items()]
  18651. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18652. def __eq__(self, other):
  18653. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18654. def __ne__(self, other):
  18655. return not (self == other)
  18656. all_structs.append(get_partitions_pspec_args)
  18657. get_partitions_pspec_args.thrift_spec = (
  18658. None, # 0
  18659. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  18660. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  18661. (3, TType.I32, 'max_parts', None, -1, ), # 3
  18662. )
  18663. class get_partitions_pspec_result(object):
  18664. """
  18665. Attributes:
  18666. - success
  18667. - o1
  18668. - o2
  18669. """
  18670. def __init__(self, success=None, o1=None, o2=None,):
  18671. self.success = success
  18672. self.o1 = o1
  18673. self.o2 = o2
  18674. def read(self, iprot):
  18675. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  18676. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  18677. return
  18678. iprot.readStructBegin()
  18679. while True:
  18680. (fname, ftype, fid) = iprot.readFieldBegin()
  18681. if ftype == TType.STOP:
  18682. break
  18683. if fid == 0:
  18684. if ftype == TType.LIST:
  18685. self.success = []
  18686. (_etype820, _size817) = iprot.readListBegin()
  18687. for _i821 in range(_size817):
  18688. _elem822 = PartitionSpec()
  18689. _elem822.read(iprot)
  18690. self.success.append(_elem822)
  18691. iprot.readListEnd()
  18692. else:
  18693. iprot.skip(ftype)
  18694. elif fid == 1:
  18695. if ftype == TType.STRUCT:
  18696. self.o1 = NoSuchObjectException()
  18697. self.o1.read(iprot)
  18698. else:
  18699. iprot.skip(ftype)
  18700. elif fid == 2:
  18701. if ftype == TType.STRUCT:
  18702. self.o2 = MetaException()
  18703. self.o2.read(iprot)
  18704. else:
  18705. iprot.skip(ftype)
  18706. else:
  18707. iprot.skip(ftype)
  18708. iprot.readFieldEnd()
  18709. iprot.readStructEnd()
  18710. def write(self, oprot):
  18711. if oprot._fast_encode is not None and self.thrift_spec is not None:
  18712. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  18713. return
  18714. oprot.writeStructBegin('get_partitions_pspec_result')
  18715. if self.success is not None:
  18716. oprot.writeFieldBegin('success', TType.LIST, 0)
  18717. oprot.writeListBegin(TType.STRUCT, len(self.success))
  18718. for iter823 in self.success:
  18719. iter823.write(oprot)
  18720. oprot.writeListEnd()
  18721. oprot.writeFieldEnd()
  18722. if self.o1 is not None:
  18723. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  18724. self.o1.write(oprot)
  18725. oprot.writeFieldEnd()
  18726. if self.o2 is not None:
  18727. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  18728. self.o2.write(oprot)
  18729. oprot.writeFieldEnd()
  18730. oprot.writeFieldStop()
  18731. oprot.writeStructEnd()
  18732. def validate(self):
  18733. return
  18734. def __repr__(self):
  18735. L = ['%s=%r' % (key, value)
  18736. for key, value in self.__dict__.items()]
  18737. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18738. def __eq__(self, other):
  18739. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18740. def __ne__(self, other):
  18741. return not (self == other)
  18742. all_structs.append(get_partitions_pspec_result)
  18743. get_partitions_pspec_result.thrift_spec = (
  18744. (0, TType.LIST, 'success', (TType.STRUCT, [PartitionSpec, None], False), None, ), # 0
  18745. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  18746. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  18747. )
  18748. class get_partition_names_args(object):
  18749. """
  18750. Attributes:
  18751. - db_name
  18752. - tbl_name
  18753. - max_parts
  18754. """
  18755. def __init__(self, db_name=None, tbl_name=None, max_parts=-1,):
  18756. self.db_name = db_name
  18757. self.tbl_name = tbl_name
  18758. self.max_parts = max_parts
  18759. def read(self, iprot):
  18760. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  18761. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  18762. return
  18763. iprot.readStructBegin()
  18764. while True:
  18765. (fname, ftype, fid) = iprot.readFieldBegin()
  18766. if ftype == TType.STOP:
  18767. break
  18768. if fid == 1:
  18769. if ftype == TType.STRING:
  18770. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18771. else:
  18772. iprot.skip(ftype)
  18773. elif fid == 2:
  18774. if ftype == TType.STRING:
  18775. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18776. else:
  18777. iprot.skip(ftype)
  18778. elif fid == 3:
  18779. if ftype == TType.I16:
  18780. self.max_parts = iprot.readI16()
  18781. else:
  18782. iprot.skip(ftype)
  18783. else:
  18784. iprot.skip(ftype)
  18785. iprot.readFieldEnd()
  18786. iprot.readStructEnd()
  18787. def write(self, oprot):
  18788. if oprot._fast_encode is not None and self.thrift_spec is not None:
  18789. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  18790. return
  18791. oprot.writeStructBegin('get_partition_names_args')
  18792. if self.db_name is not None:
  18793. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  18794. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  18795. oprot.writeFieldEnd()
  18796. if self.tbl_name is not None:
  18797. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  18798. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  18799. oprot.writeFieldEnd()
  18800. if self.max_parts is not None:
  18801. oprot.writeFieldBegin('max_parts', TType.I16, 3)
  18802. oprot.writeI16(self.max_parts)
  18803. oprot.writeFieldEnd()
  18804. oprot.writeFieldStop()
  18805. oprot.writeStructEnd()
  18806. def validate(self):
  18807. return
  18808. def __repr__(self):
  18809. L = ['%s=%r' % (key, value)
  18810. for key, value in self.__dict__.items()]
  18811. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18812. def __eq__(self, other):
  18813. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18814. def __ne__(self, other):
  18815. return not (self == other)
  18816. all_structs.append(get_partition_names_args)
  18817. get_partition_names_args.thrift_spec = (
  18818. None, # 0
  18819. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  18820. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  18821. (3, TType.I16, 'max_parts', None, -1, ), # 3
  18822. )
  18823. class get_partition_names_result(object):
  18824. """
  18825. Attributes:
  18826. - success
  18827. - o1
  18828. - o2
  18829. """
  18830. def __init__(self, success=None, o1=None, o2=None,):
  18831. self.success = success
  18832. self.o1 = o1
  18833. self.o2 = o2
  18834. def read(self, iprot):
  18835. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  18836. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  18837. return
  18838. iprot.readStructBegin()
  18839. while True:
  18840. (fname, ftype, fid) = iprot.readFieldBegin()
  18841. if ftype == TType.STOP:
  18842. break
  18843. if fid == 0:
  18844. if ftype == TType.LIST:
  18845. self.success = []
  18846. (_etype827, _size824) = iprot.readListBegin()
  18847. for _i828 in range(_size824):
  18848. _elem829 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18849. self.success.append(_elem829)
  18850. iprot.readListEnd()
  18851. else:
  18852. iprot.skip(ftype)
  18853. elif fid == 1:
  18854. if ftype == TType.STRUCT:
  18855. self.o1 = NoSuchObjectException()
  18856. self.o1.read(iprot)
  18857. else:
  18858. iprot.skip(ftype)
  18859. elif fid == 2:
  18860. if ftype == TType.STRUCT:
  18861. self.o2 = MetaException()
  18862. self.o2.read(iprot)
  18863. else:
  18864. iprot.skip(ftype)
  18865. else:
  18866. iprot.skip(ftype)
  18867. iprot.readFieldEnd()
  18868. iprot.readStructEnd()
  18869. def write(self, oprot):
  18870. if oprot._fast_encode is not None and self.thrift_spec is not None:
  18871. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  18872. return
  18873. oprot.writeStructBegin('get_partition_names_result')
  18874. if self.success is not None:
  18875. oprot.writeFieldBegin('success', TType.LIST, 0)
  18876. oprot.writeListBegin(TType.STRING, len(self.success))
  18877. for iter830 in self.success:
  18878. oprot.writeString(iter830.encode('utf-8') if sys.version_info[0] == 2 else iter830)
  18879. oprot.writeListEnd()
  18880. oprot.writeFieldEnd()
  18881. if self.o1 is not None:
  18882. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  18883. self.o1.write(oprot)
  18884. oprot.writeFieldEnd()
  18885. if self.o2 is not None:
  18886. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  18887. self.o2.write(oprot)
  18888. oprot.writeFieldEnd()
  18889. oprot.writeFieldStop()
  18890. oprot.writeStructEnd()
  18891. def validate(self):
  18892. return
  18893. def __repr__(self):
  18894. L = ['%s=%r' % (key, value)
  18895. for key, value in self.__dict__.items()]
  18896. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18897. def __eq__(self, other):
  18898. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18899. def __ne__(self, other):
  18900. return not (self == other)
  18901. all_structs.append(get_partition_names_result)
  18902. get_partition_names_result.thrift_spec = (
  18903. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  18904. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  18905. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  18906. )
  18907. class get_partitions_ps_args(object):
  18908. """
  18909. Attributes:
  18910. - db_name
  18911. - tbl_name
  18912. - part_vals
  18913. - max_parts
  18914. """
  18915. def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=-1,):
  18916. self.db_name = db_name
  18917. self.tbl_name = tbl_name
  18918. self.part_vals = part_vals
  18919. self.max_parts = max_parts
  18920. def read(self, iprot):
  18921. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  18922. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  18923. return
  18924. iprot.readStructBegin()
  18925. while True:
  18926. (fname, ftype, fid) = iprot.readFieldBegin()
  18927. if ftype == TType.STOP:
  18928. break
  18929. if fid == 1:
  18930. if ftype == TType.STRING:
  18931. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18932. else:
  18933. iprot.skip(ftype)
  18934. elif fid == 2:
  18935. if ftype == TType.STRING:
  18936. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18937. else:
  18938. iprot.skip(ftype)
  18939. elif fid == 3:
  18940. if ftype == TType.LIST:
  18941. self.part_vals = []
  18942. (_etype834, _size831) = iprot.readListBegin()
  18943. for _i835 in range(_size831):
  18944. _elem836 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  18945. self.part_vals.append(_elem836)
  18946. iprot.readListEnd()
  18947. else:
  18948. iprot.skip(ftype)
  18949. elif fid == 4:
  18950. if ftype == TType.I16:
  18951. self.max_parts = iprot.readI16()
  18952. else:
  18953. iprot.skip(ftype)
  18954. else:
  18955. iprot.skip(ftype)
  18956. iprot.readFieldEnd()
  18957. iprot.readStructEnd()
  18958. def write(self, oprot):
  18959. if oprot._fast_encode is not None and self.thrift_spec is not None:
  18960. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  18961. return
  18962. oprot.writeStructBegin('get_partitions_ps_args')
  18963. if self.db_name is not None:
  18964. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  18965. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  18966. oprot.writeFieldEnd()
  18967. if self.tbl_name is not None:
  18968. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  18969. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  18970. oprot.writeFieldEnd()
  18971. if self.part_vals is not None:
  18972. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  18973. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  18974. for iter837 in self.part_vals:
  18975. oprot.writeString(iter837.encode('utf-8') if sys.version_info[0] == 2 else iter837)
  18976. oprot.writeListEnd()
  18977. oprot.writeFieldEnd()
  18978. if self.max_parts is not None:
  18979. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  18980. oprot.writeI16(self.max_parts)
  18981. oprot.writeFieldEnd()
  18982. oprot.writeFieldStop()
  18983. oprot.writeStructEnd()
  18984. def validate(self):
  18985. return
  18986. def __repr__(self):
  18987. L = ['%s=%r' % (key, value)
  18988. for key, value in self.__dict__.items()]
  18989. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  18990. def __eq__(self, other):
  18991. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  18992. def __ne__(self, other):
  18993. return not (self == other)
  18994. all_structs.append(get_partitions_ps_args)
  18995. get_partitions_ps_args.thrift_spec = (
  18996. None, # 0
  18997. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  18998. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  18999. (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3
  19000. (4, TType.I16, 'max_parts', None, -1, ), # 4
  19001. )
  19002. class get_partitions_ps_result(object):
  19003. """
  19004. Attributes:
  19005. - success
  19006. - o1
  19007. - o2
  19008. """
  19009. def __init__(self, success=None, o1=None, o2=None,):
  19010. self.success = success
  19011. self.o1 = o1
  19012. self.o2 = o2
  19013. def read(self, iprot):
  19014. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  19015. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  19016. return
  19017. iprot.readStructBegin()
  19018. while True:
  19019. (fname, ftype, fid) = iprot.readFieldBegin()
  19020. if ftype == TType.STOP:
  19021. break
  19022. if fid == 0:
  19023. if ftype == TType.LIST:
  19024. self.success = []
  19025. (_etype841, _size838) = iprot.readListBegin()
  19026. for _i842 in range(_size838):
  19027. _elem843 = Partition()
  19028. _elem843.read(iprot)
  19029. self.success.append(_elem843)
  19030. iprot.readListEnd()
  19031. else:
  19032. iprot.skip(ftype)
  19033. elif fid == 1:
  19034. if ftype == TType.STRUCT:
  19035. self.o1 = MetaException()
  19036. self.o1.read(iprot)
  19037. else:
  19038. iprot.skip(ftype)
  19039. elif fid == 2:
  19040. if ftype == TType.STRUCT:
  19041. self.o2 = NoSuchObjectException()
  19042. self.o2.read(iprot)
  19043. else:
  19044. iprot.skip(ftype)
  19045. else:
  19046. iprot.skip(ftype)
  19047. iprot.readFieldEnd()
  19048. iprot.readStructEnd()
  19049. def write(self, oprot):
  19050. if oprot._fast_encode is not None and self.thrift_spec is not None:
  19051. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  19052. return
  19053. oprot.writeStructBegin('get_partitions_ps_result')
  19054. if self.success is not None:
  19055. oprot.writeFieldBegin('success', TType.LIST, 0)
  19056. oprot.writeListBegin(TType.STRUCT, len(self.success))
  19057. for iter844 in self.success:
  19058. iter844.write(oprot)
  19059. oprot.writeListEnd()
  19060. oprot.writeFieldEnd()
  19061. if self.o1 is not None:
  19062. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  19063. self.o1.write(oprot)
  19064. oprot.writeFieldEnd()
  19065. if self.o2 is not None:
  19066. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  19067. self.o2.write(oprot)
  19068. oprot.writeFieldEnd()
  19069. oprot.writeFieldStop()
  19070. oprot.writeStructEnd()
  19071. def validate(self):
  19072. return
  19073. def __repr__(self):
  19074. L = ['%s=%r' % (key, value)
  19075. for key, value in self.__dict__.items()]
  19076. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19077. def __eq__(self, other):
  19078. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19079. def __ne__(self, other):
  19080. return not (self == other)
  19081. all_structs.append(get_partitions_ps_result)
  19082. get_partitions_ps_result.thrift_spec = (
  19083. (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0
  19084. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  19085. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  19086. )
  19087. class get_partitions_ps_with_auth_args(object):
  19088. """
  19089. Attributes:
  19090. - db_name
  19091. - tbl_name
  19092. - part_vals
  19093. - max_parts
  19094. - user_name
  19095. - group_names
  19096. """
  19097. def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=-1, user_name=None, group_names=None,):
  19098. self.db_name = db_name
  19099. self.tbl_name = tbl_name
  19100. self.part_vals = part_vals
  19101. self.max_parts = max_parts
  19102. self.user_name = user_name
  19103. self.group_names = group_names
  19104. def read(self, iprot):
  19105. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  19106. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  19107. return
  19108. iprot.readStructBegin()
  19109. while True:
  19110. (fname, ftype, fid) = iprot.readFieldBegin()
  19111. if ftype == TType.STOP:
  19112. break
  19113. if fid == 1:
  19114. if ftype == TType.STRING:
  19115. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19116. else:
  19117. iprot.skip(ftype)
  19118. elif fid == 2:
  19119. if ftype == TType.STRING:
  19120. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19121. else:
  19122. iprot.skip(ftype)
  19123. elif fid == 3:
  19124. if ftype == TType.LIST:
  19125. self.part_vals = []
  19126. (_etype848, _size845) = iprot.readListBegin()
  19127. for _i849 in range(_size845):
  19128. _elem850 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19129. self.part_vals.append(_elem850)
  19130. iprot.readListEnd()
  19131. else:
  19132. iprot.skip(ftype)
  19133. elif fid == 4:
  19134. if ftype == TType.I16:
  19135. self.max_parts = iprot.readI16()
  19136. else:
  19137. iprot.skip(ftype)
  19138. elif fid == 5:
  19139. if ftype == TType.STRING:
  19140. self.user_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19141. else:
  19142. iprot.skip(ftype)
  19143. elif fid == 6:
  19144. if ftype == TType.LIST:
  19145. self.group_names = []
  19146. (_etype854, _size851) = iprot.readListBegin()
  19147. for _i855 in range(_size851):
  19148. _elem856 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19149. self.group_names.append(_elem856)
  19150. iprot.readListEnd()
  19151. else:
  19152. iprot.skip(ftype)
  19153. else:
  19154. iprot.skip(ftype)
  19155. iprot.readFieldEnd()
  19156. iprot.readStructEnd()
  19157. def write(self, oprot):
  19158. if oprot._fast_encode is not None and self.thrift_spec is not None:
  19159. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  19160. return
  19161. oprot.writeStructBegin('get_partitions_ps_with_auth_args')
  19162. if self.db_name is not None:
  19163. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  19164. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  19165. oprot.writeFieldEnd()
  19166. if self.tbl_name is not None:
  19167. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  19168. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  19169. oprot.writeFieldEnd()
  19170. if self.part_vals is not None:
  19171. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  19172. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  19173. for iter857 in self.part_vals:
  19174. oprot.writeString(iter857.encode('utf-8') if sys.version_info[0] == 2 else iter857)
  19175. oprot.writeListEnd()
  19176. oprot.writeFieldEnd()
  19177. if self.max_parts is not None:
  19178. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  19179. oprot.writeI16(self.max_parts)
  19180. oprot.writeFieldEnd()
  19181. if self.user_name is not None:
  19182. oprot.writeFieldBegin('user_name', TType.STRING, 5)
  19183. oprot.writeString(self.user_name.encode('utf-8') if sys.version_info[0] == 2 else self.user_name)
  19184. oprot.writeFieldEnd()
  19185. if self.group_names is not None:
  19186. oprot.writeFieldBegin('group_names', TType.LIST, 6)
  19187. oprot.writeListBegin(TType.STRING, len(self.group_names))
  19188. for iter858 in self.group_names:
  19189. oprot.writeString(iter858.encode('utf-8') if sys.version_info[0] == 2 else iter858)
  19190. oprot.writeListEnd()
  19191. oprot.writeFieldEnd()
  19192. oprot.writeFieldStop()
  19193. oprot.writeStructEnd()
  19194. def validate(self):
  19195. return
  19196. def __repr__(self):
  19197. L = ['%s=%r' % (key, value)
  19198. for key, value in self.__dict__.items()]
  19199. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19200. def __eq__(self, other):
  19201. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19202. def __ne__(self, other):
  19203. return not (self == other)
  19204. all_structs.append(get_partitions_ps_with_auth_args)
  19205. get_partitions_ps_with_auth_args.thrift_spec = (
  19206. None, # 0
  19207. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  19208. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  19209. (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3
  19210. (4, TType.I16, 'max_parts', None, -1, ), # 4
  19211. (5, TType.STRING, 'user_name', 'UTF8', None, ), # 5
  19212. (6, TType.LIST, 'group_names', (TType.STRING, 'UTF8', False), None, ), # 6
  19213. )
  19214. class get_partitions_ps_with_auth_result(object):
  19215. """
  19216. Attributes:
  19217. - success
  19218. - o1
  19219. - o2
  19220. """
  19221. def __init__(self, success=None, o1=None, o2=None,):
  19222. self.success = success
  19223. self.o1 = o1
  19224. self.o2 = o2
  19225. def read(self, iprot):
  19226. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  19227. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  19228. return
  19229. iprot.readStructBegin()
  19230. while True:
  19231. (fname, ftype, fid) = iprot.readFieldBegin()
  19232. if ftype == TType.STOP:
  19233. break
  19234. if fid == 0:
  19235. if ftype == TType.LIST:
  19236. self.success = []
  19237. (_etype862, _size859) = iprot.readListBegin()
  19238. for _i863 in range(_size859):
  19239. _elem864 = Partition()
  19240. _elem864.read(iprot)
  19241. self.success.append(_elem864)
  19242. iprot.readListEnd()
  19243. else:
  19244. iprot.skip(ftype)
  19245. elif fid == 1:
  19246. if ftype == TType.STRUCT:
  19247. self.o1 = NoSuchObjectException()
  19248. self.o1.read(iprot)
  19249. else:
  19250. iprot.skip(ftype)
  19251. elif fid == 2:
  19252. if ftype == TType.STRUCT:
  19253. self.o2 = MetaException()
  19254. self.o2.read(iprot)
  19255. else:
  19256. iprot.skip(ftype)
  19257. else:
  19258. iprot.skip(ftype)
  19259. iprot.readFieldEnd()
  19260. iprot.readStructEnd()
  19261. def write(self, oprot):
  19262. if oprot._fast_encode is not None and self.thrift_spec is not None:
  19263. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  19264. return
  19265. oprot.writeStructBegin('get_partitions_ps_with_auth_result')
  19266. if self.success is not None:
  19267. oprot.writeFieldBegin('success', TType.LIST, 0)
  19268. oprot.writeListBegin(TType.STRUCT, len(self.success))
  19269. for iter865 in self.success:
  19270. iter865.write(oprot)
  19271. oprot.writeListEnd()
  19272. oprot.writeFieldEnd()
  19273. if self.o1 is not None:
  19274. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  19275. self.o1.write(oprot)
  19276. oprot.writeFieldEnd()
  19277. if self.o2 is not None:
  19278. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  19279. self.o2.write(oprot)
  19280. oprot.writeFieldEnd()
  19281. oprot.writeFieldStop()
  19282. oprot.writeStructEnd()
  19283. def validate(self):
  19284. return
  19285. def __repr__(self):
  19286. L = ['%s=%r' % (key, value)
  19287. for key, value in self.__dict__.items()]
  19288. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19289. def __eq__(self, other):
  19290. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19291. def __ne__(self, other):
  19292. return not (self == other)
  19293. all_structs.append(get_partitions_ps_with_auth_result)
  19294. get_partitions_ps_with_auth_result.thrift_spec = (
  19295. (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0
  19296. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  19297. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  19298. )
  19299. class get_partition_names_ps_args(object):
  19300. """
  19301. Attributes:
  19302. - db_name
  19303. - tbl_name
  19304. - part_vals
  19305. - max_parts
  19306. """
  19307. def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=-1,):
  19308. self.db_name = db_name
  19309. self.tbl_name = tbl_name
  19310. self.part_vals = part_vals
  19311. self.max_parts = max_parts
  19312. def read(self, iprot):
  19313. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  19314. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  19315. return
  19316. iprot.readStructBegin()
  19317. while True:
  19318. (fname, ftype, fid) = iprot.readFieldBegin()
  19319. if ftype == TType.STOP:
  19320. break
  19321. if fid == 1:
  19322. if ftype == TType.STRING:
  19323. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19324. else:
  19325. iprot.skip(ftype)
  19326. elif fid == 2:
  19327. if ftype == TType.STRING:
  19328. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19329. else:
  19330. iprot.skip(ftype)
  19331. elif fid == 3:
  19332. if ftype == TType.LIST:
  19333. self.part_vals = []
  19334. (_etype869, _size866) = iprot.readListBegin()
  19335. for _i870 in range(_size866):
  19336. _elem871 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19337. self.part_vals.append(_elem871)
  19338. iprot.readListEnd()
  19339. else:
  19340. iprot.skip(ftype)
  19341. elif fid == 4:
  19342. if ftype == TType.I16:
  19343. self.max_parts = iprot.readI16()
  19344. else:
  19345. iprot.skip(ftype)
  19346. else:
  19347. iprot.skip(ftype)
  19348. iprot.readFieldEnd()
  19349. iprot.readStructEnd()
  19350. def write(self, oprot):
  19351. if oprot._fast_encode is not None and self.thrift_spec is not None:
  19352. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  19353. return
  19354. oprot.writeStructBegin('get_partition_names_ps_args')
  19355. if self.db_name is not None:
  19356. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  19357. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  19358. oprot.writeFieldEnd()
  19359. if self.tbl_name is not None:
  19360. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  19361. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  19362. oprot.writeFieldEnd()
  19363. if self.part_vals is not None:
  19364. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  19365. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  19366. for iter872 in self.part_vals:
  19367. oprot.writeString(iter872.encode('utf-8') if sys.version_info[0] == 2 else iter872)
  19368. oprot.writeListEnd()
  19369. oprot.writeFieldEnd()
  19370. if self.max_parts is not None:
  19371. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  19372. oprot.writeI16(self.max_parts)
  19373. oprot.writeFieldEnd()
  19374. oprot.writeFieldStop()
  19375. oprot.writeStructEnd()
  19376. def validate(self):
  19377. return
  19378. def __repr__(self):
  19379. L = ['%s=%r' % (key, value)
  19380. for key, value in self.__dict__.items()]
  19381. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19382. def __eq__(self, other):
  19383. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19384. def __ne__(self, other):
  19385. return not (self == other)
  19386. all_structs.append(get_partition_names_ps_args)
  19387. get_partition_names_ps_args.thrift_spec = (
  19388. None, # 0
  19389. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  19390. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  19391. (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3
  19392. (4, TType.I16, 'max_parts', None, -1, ), # 4
  19393. )
  19394. class get_partition_names_ps_result(object):
  19395. """
  19396. Attributes:
  19397. - success
  19398. - o1
  19399. - o2
  19400. """
  19401. def __init__(self, success=None, o1=None, o2=None,):
  19402. self.success = success
  19403. self.o1 = o1
  19404. self.o2 = o2
  19405. def read(self, iprot):
  19406. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  19407. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  19408. return
  19409. iprot.readStructBegin()
  19410. while True:
  19411. (fname, ftype, fid) = iprot.readFieldBegin()
  19412. if ftype == TType.STOP:
  19413. break
  19414. if fid == 0:
  19415. if ftype == TType.LIST:
  19416. self.success = []
  19417. (_etype876, _size873) = iprot.readListBegin()
  19418. for _i877 in range(_size873):
  19419. _elem878 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19420. self.success.append(_elem878)
  19421. iprot.readListEnd()
  19422. else:
  19423. iprot.skip(ftype)
  19424. elif fid == 1:
  19425. if ftype == TType.STRUCT:
  19426. self.o1 = MetaException()
  19427. self.o1.read(iprot)
  19428. else:
  19429. iprot.skip(ftype)
  19430. elif fid == 2:
  19431. if ftype == TType.STRUCT:
  19432. self.o2 = NoSuchObjectException()
  19433. self.o2.read(iprot)
  19434. else:
  19435. iprot.skip(ftype)
  19436. else:
  19437. iprot.skip(ftype)
  19438. iprot.readFieldEnd()
  19439. iprot.readStructEnd()
  19440. def write(self, oprot):
  19441. if oprot._fast_encode is not None and self.thrift_spec is not None:
  19442. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  19443. return
  19444. oprot.writeStructBegin('get_partition_names_ps_result')
  19445. if self.success is not None:
  19446. oprot.writeFieldBegin('success', TType.LIST, 0)
  19447. oprot.writeListBegin(TType.STRING, len(self.success))
  19448. for iter879 in self.success:
  19449. oprot.writeString(iter879.encode('utf-8') if sys.version_info[0] == 2 else iter879)
  19450. oprot.writeListEnd()
  19451. oprot.writeFieldEnd()
  19452. if self.o1 is not None:
  19453. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  19454. self.o1.write(oprot)
  19455. oprot.writeFieldEnd()
  19456. if self.o2 is not None:
  19457. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  19458. self.o2.write(oprot)
  19459. oprot.writeFieldEnd()
  19460. oprot.writeFieldStop()
  19461. oprot.writeStructEnd()
  19462. def validate(self):
  19463. return
  19464. def __repr__(self):
  19465. L = ['%s=%r' % (key, value)
  19466. for key, value in self.__dict__.items()]
  19467. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19468. def __eq__(self, other):
  19469. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19470. def __ne__(self, other):
  19471. return not (self == other)
  19472. all_structs.append(get_partition_names_ps_result)
  19473. get_partition_names_ps_result.thrift_spec = (
  19474. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  19475. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  19476. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  19477. )
  19478. class get_partitions_by_filter_args(object):
  19479. """
  19480. Attributes:
  19481. - db_name
  19482. - tbl_name
  19483. - filter
  19484. - max_parts
  19485. """
  19486. def __init__(self, db_name=None, tbl_name=None, filter=None, max_parts=-1,):
  19487. self.db_name = db_name
  19488. self.tbl_name = tbl_name
  19489. self.filter = filter
  19490. self.max_parts = max_parts
  19491. def read(self, iprot):
  19492. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  19493. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  19494. return
  19495. iprot.readStructBegin()
  19496. while True:
  19497. (fname, ftype, fid) = iprot.readFieldBegin()
  19498. if ftype == TType.STOP:
  19499. break
  19500. if fid == 1:
  19501. if ftype == TType.STRING:
  19502. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19503. else:
  19504. iprot.skip(ftype)
  19505. elif fid == 2:
  19506. if ftype == TType.STRING:
  19507. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19508. else:
  19509. iprot.skip(ftype)
  19510. elif fid == 3:
  19511. if ftype == TType.STRING:
  19512. self.filter = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19513. else:
  19514. iprot.skip(ftype)
  19515. elif fid == 4:
  19516. if ftype == TType.I16:
  19517. self.max_parts = iprot.readI16()
  19518. else:
  19519. iprot.skip(ftype)
  19520. else:
  19521. iprot.skip(ftype)
  19522. iprot.readFieldEnd()
  19523. iprot.readStructEnd()
  19524. def write(self, oprot):
  19525. if oprot._fast_encode is not None and self.thrift_spec is not None:
  19526. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  19527. return
  19528. oprot.writeStructBegin('get_partitions_by_filter_args')
  19529. if self.db_name is not None:
  19530. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  19531. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  19532. oprot.writeFieldEnd()
  19533. if self.tbl_name is not None:
  19534. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  19535. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  19536. oprot.writeFieldEnd()
  19537. if self.filter is not None:
  19538. oprot.writeFieldBegin('filter', TType.STRING, 3)
  19539. oprot.writeString(self.filter.encode('utf-8') if sys.version_info[0] == 2 else self.filter)
  19540. oprot.writeFieldEnd()
  19541. if self.max_parts is not None:
  19542. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  19543. oprot.writeI16(self.max_parts)
  19544. oprot.writeFieldEnd()
  19545. oprot.writeFieldStop()
  19546. oprot.writeStructEnd()
  19547. def validate(self):
  19548. return
  19549. def __repr__(self):
  19550. L = ['%s=%r' % (key, value)
  19551. for key, value in self.__dict__.items()]
  19552. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19553. def __eq__(self, other):
  19554. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19555. def __ne__(self, other):
  19556. return not (self == other)
  19557. all_structs.append(get_partitions_by_filter_args)
  19558. get_partitions_by_filter_args.thrift_spec = (
  19559. None, # 0
  19560. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  19561. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  19562. (3, TType.STRING, 'filter', 'UTF8', None, ), # 3
  19563. (4, TType.I16, 'max_parts', None, -1, ), # 4
  19564. )
  19565. class get_partitions_by_filter_result(object):
  19566. """
  19567. Attributes:
  19568. - success
  19569. - o1
  19570. - o2
  19571. """
  19572. def __init__(self, success=None, o1=None, o2=None,):
  19573. self.success = success
  19574. self.o1 = o1
  19575. self.o2 = o2
  19576. def read(self, iprot):
  19577. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  19578. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  19579. return
  19580. iprot.readStructBegin()
  19581. while True:
  19582. (fname, ftype, fid) = iprot.readFieldBegin()
  19583. if ftype == TType.STOP:
  19584. break
  19585. if fid == 0:
  19586. if ftype == TType.LIST:
  19587. self.success = []
  19588. (_etype883, _size880) = iprot.readListBegin()
  19589. for _i884 in range(_size880):
  19590. _elem885 = Partition()
  19591. _elem885.read(iprot)
  19592. self.success.append(_elem885)
  19593. iprot.readListEnd()
  19594. else:
  19595. iprot.skip(ftype)
  19596. elif fid == 1:
  19597. if ftype == TType.STRUCT:
  19598. self.o1 = MetaException()
  19599. self.o1.read(iprot)
  19600. else:
  19601. iprot.skip(ftype)
  19602. elif fid == 2:
  19603. if ftype == TType.STRUCT:
  19604. self.o2 = NoSuchObjectException()
  19605. self.o2.read(iprot)
  19606. else:
  19607. iprot.skip(ftype)
  19608. else:
  19609. iprot.skip(ftype)
  19610. iprot.readFieldEnd()
  19611. iprot.readStructEnd()
  19612. def write(self, oprot):
  19613. if oprot._fast_encode is not None and self.thrift_spec is not None:
  19614. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  19615. return
  19616. oprot.writeStructBegin('get_partitions_by_filter_result')
  19617. if self.success is not None:
  19618. oprot.writeFieldBegin('success', TType.LIST, 0)
  19619. oprot.writeListBegin(TType.STRUCT, len(self.success))
  19620. for iter886 in self.success:
  19621. iter886.write(oprot)
  19622. oprot.writeListEnd()
  19623. oprot.writeFieldEnd()
  19624. if self.o1 is not None:
  19625. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  19626. self.o1.write(oprot)
  19627. oprot.writeFieldEnd()
  19628. if self.o2 is not None:
  19629. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  19630. self.o2.write(oprot)
  19631. oprot.writeFieldEnd()
  19632. oprot.writeFieldStop()
  19633. oprot.writeStructEnd()
  19634. def validate(self):
  19635. return
  19636. def __repr__(self):
  19637. L = ['%s=%r' % (key, value)
  19638. for key, value in self.__dict__.items()]
  19639. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19640. def __eq__(self, other):
  19641. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19642. def __ne__(self, other):
  19643. return not (self == other)
  19644. all_structs.append(get_partitions_by_filter_result)
  19645. get_partitions_by_filter_result.thrift_spec = (
  19646. (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0
  19647. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  19648. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  19649. )
  19650. class get_part_specs_by_filter_args(object):
  19651. """
  19652. Attributes:
  19653. - db_name
  19654. - tbl_name
  19655. - filter
  19656. - max_parts
  19657. """
  19658. def __init__(self, db_name=None, tbl_name=None, filter=None, max_parts=-1,):
  19659. self.db_name = db_name
  19660. self.tbl_name = tbl_name
  19661. self.filter = filter
  19662. self.max_parts = max_parts
  19663. def read(self, iprot):
  19664. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  19665. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  19666. return
  19667. iprot.readStructBegin()
  19668. while True:
  19669. (fname, ftype, fid) = iprot.readFieldBegin()
  19670. if ftype == TType.STOP:
  19671. break
  19672. if fid == 1:
  19673. if ftype == TType.STRING:
  19674. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19675. else:
  19676. iprot.skip(ftype)
  19677. elif fid == 2:
  19678. if ftype == TType.STRING:
  19679. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19680. else:
  19681. iprot.skip(ftype)
  19682. elif fid == 3:
  19683. if ftype == TType.STRING:
  19684. self.filter = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19685. else:
  19686. iprot.skip(ftype)
  19687. elif fid == 4:
  19688. if ftype == TType.I32:
  19689. self.max_parts = iprot.readI32()
  19690. else:
  19691. iprot.skip(ftype)
  19692. else:
  19693. iprot.skip(ftype)
  19694. iprot.readFieldEnd()
  19695. iprot.readStructEnd()
  19696. def write(self, oprot):
  19697. if oprot._fast_encode is not None and self.thrift_spec is not None:
  19698. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  19699. return
  19700. oprot.writeStructBegin('get_part_specs_by_filter_args')
  19701. if self.db_name is not None:
  19702. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  19703. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  19704. oprot.writeFieldEnd()
  19705. if self.tbl_name is not None:
  19706. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  19707. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  19708. oprot.writeFieldEnd()
  19709. if self.filter is not None:
  19710. oprot.writeFieldBegin('filter', TType.STRING, 3)
  19711. oprot.writeString(self.filter.encode('utf-8') if sys.version_info[0] == 2 else self.filter)
  19712. oprot.writeFieldEnd()
  19713. if self.max_parts is not None:
  19714. oprot.writeFieldBegin('max_parts', TType.I32, 4)
  19715. oprot.writeI32(self.max_parts)
  19716. oprot.writeFieldEnd()
  19717. oprot.writeFieldStop()
  19718. oprot.writeStructEnd()
  19719. def validate(self):
  19720. return
  19721. def __repr__(self):
  19722. L = ['%s=%r' % (key, value)
  19723. for key, value in self.__dict__.items()]
  19724. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19725. def __eq__(self, other):
  19726. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19727. def __ne__(self, other):
  19728. return not (self == other)
  19729. all_structs.append(get_part_specs_by_filter_args)
  19730. get_part_specs_by_filter_args.thrift_spec = (
  19731. None, # 0
  19732. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  19733. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  19734. (3, TType.STRING, 'filter', 'UTF8', None, ), # 3
  19735. (4, TType.I32, 'max_parts', None, -1, ), # 4
  19736. )
  19737. class get_part_specs_by_filter_result(object):
  19738. """
  19739. Attributes:
  19740. - success
  19741. - o1
  19742. - o2
  19743. """
  19744. def __init__(self, success=None, o1=None, o2=None,):
  19745. self.success = success
  19746. self.o1 = o1
  19747. self.o2 = o2
  19748. def read(self, iprot):
  19749. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  19750. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  19751. return
  19752. iprot.readStructBegin()
  19753. while True:
  19754. (fname, ftype, fid) = iprot.readFieldBegin()
  19755. if ftype == TType.STOP:
  19756. break
  19757. if fid == 0:
  19758. if ftype == TType.LIST:
  19759. self.success = []
  19760. (_etype890, _size887) = iprot.readListBegin()
  19761. for _i891 in range(_size887):
  19762. _elem892 = PartitionSpec()
  19763. _elem892.read(iprot)
  19764. self.success.append(_elem892)
  19765. iprot.readListEnd()
  19766. else:
  19767. iprot.skip(ftype)
  19768. elif fid == 1:
  19769. if ftype == TType.STRUCT:
  19770. self.o1 = MetaException()
  19771. self.o1.read(iprot)
  19772. else:
  19773. iprot.skip(ftype)
  19774. elif fid == 2:
  19775. if ftype == TType.STRUCT:
  19776. self.o2 = NoSuchObjectException()
  19777. self.o2.read(iprot)
  19778. else:
  19779. iprot.skip(ftype)
  19780. else:
  19781. iprot.skip(ftype)
  19782. iprot.readFieldEnd()
  19783. iprot.readStructEnd()
  19784. def write(self, oprot):
  19785. if oprot._fast_encode is not None and self.thrift_spec is not None:
  19786. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  19787. return
  19788. oprot.writeStructBegin('get_part_specs_by_filter_result')
  19789. if self.success is not None:
  19790. oprot.writeFieldBegin('success', TType.LIST, 0)
  19791. oprot.writeListBegin(TType.STRUCT, len(self.success))
  19792. for iter893 in self.success:
  19793. iter893.write(oprot)
  19794. oprot.writeListEnd()
  19795. oprot.writeFieldEnd()
  19796. if self.o1 is not None:
  19797. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  19798. self.o1.write(oprot)
  19799. oprot.writeFieldEnd()
  19800. if self.o2 is not None:
  19801. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  19802. self.o2.write(oprot)
  19803. oprot.writeFieldEnd()
  19804. oprot.writeFieldStop()
  19805. oprot.writeStructEnd()
  19806. def validate(self):
  19807. return
  19808. def __repr__(self):
  19809. L = ['%s=%r' % (key, value)
  19810. for key, value in self.__dict__.items()]
  19811. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19812. def __eq__(self, other):
  19813. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19814. def __ne__(self, other):
  19815. return not (self == other)
  19816. all_structs.append(get_part_specs_by_filter_result)
  19817. get_part_specs_by_filter_result.thrift_spec = (
  19818. (0, TType.LIST, 'success', (TType.STRUCT, [PartitionSpec, None], False), None, ), # 0
  19819. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  19820. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  19821. )
  19822. class get_partitions_by_expr_args(object):
  19823. """
  19824. Attributes:
  19825. - req
  19826. """
  19827. def __init__(self, req=None,):
  19828. self.req = req
  19829. def read(self, iprot):
  19830. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  19831. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  19832. return
  19833. iprot.readStructBegin()
  19834. while True:
  19835. (fname, ftype, fid) = iprot.readFieldBegin()
  19836. if ftype == TType.STOP:
  19837. break
  19838. if fid == 1:
  19839. if ftype == TType.STRUCT:
  19840. self.req = PartitionsByExprRequest()
  19841. self.req.read(iprot)
  19842. else:
  19843. iprot.skip(ftype)
  19844. else:
  19845. iprot.skip(ftype)
  19846. iprot.readFieldEnd()
  19847. iprot.readStructEnd()
  19848. def write(self, oprot):
  19849. if oprot._fast_encode is not None and self.thrift_spec is not None:
  19850. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  19851. return
  19852. oprot.writeStructBegin('get_partitions_by_expr_args')
  19853. if self.req is not None:
  19854. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  19855. self.req.write(oprot)
  19856. oprot.writeFieldEnd()
  19857. oprot.writeFieldStop()
  19858. oprot.writeStructEnd()
  19859. def validate(self):
  19860. return
  19861. def __repr__(self):
  19862. L = ['%s=%r' % (key, value)
  19863. for key, value in self.__dict__.items()]
  19864. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19865. def __eq__(self, other):
  19866. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19867. def __ne__(self, other):
  19868. return not (self == other)
  19869. all_structs.append(get_partitions_by_expr_args)
  19870. get_partitions_by_expr_args.thrift_spec = (
  19871. None, # 0
  19872. (1, TType.STRUCT, 'req', [PartitionsByExprRequest, None], None, ), # 1
  19873. )
  19874. class get_partitions_by_expr_result(object):
  19875. """
  19876. Attributes:
  19877. - success
  19878. - o1
  19879. - o2
  19880. """
  19881. def __init__(self, success=None, o1=None, o2=None,):
  19882. self.success = success
  19883. self.o1 = o1
  19884. self.o2 = o2
  19885. def read(self, iprot):
  19886. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  19887. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  19888. return
  19889. iprot.readStructBegin()
  19890. while True:
  19891. (fname, ftype, fid) = iprot.readFieldBegin()
  19892. if ftype == TType.STOP:
  19893. break
  19894. if fid == 0:
  19895. if ftype == TType.STRUCT:
  19896. self.success = PartitionsByExprResult()
  19897. self.success.read(iprot)
  19898. else:
  19899. iprot.skip(ftype)
  19900. elif fid == 1:
  19901. if ftype == TType.STRUCT:
  19902. self.o1 = MetaException()
  19903. self.o1.read(iprot)
  19904. else:
  19905. iprot.skip(ftype)
  19906. elif fid == 2:
  19907. if ftype == TType.STRUCT:
  19908. self.o2 = NoSuchObjectException()
  19909. self.o2.read(iprot)
  19910. else:
  19911. iprot.skip(ftype)
  19912. else:
  19913. iprot.skip(ftype)
  19914. iprot.readFieldEnd()
  19915. iprot.readStructEnd()
  19916. def write(self, oprot):
  19917. if oprot._fast_encode is not None and self.thrift_spec is not None:
  19918. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  19919. return
  19920. oprot.writeStructBegin('get_partitions_by_expr_result')
  19921. if self.success is not None:
  19922. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  19923. self.success.write(oprot)
  19924. oprot.writeFieldEnd()
  19925. if self.o1 is not None:
  19926. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  19927. self.o1.write(oprot)
  19928. oprot.writeFieldEnd()
  19929. if self.o2 is not None:
  19930. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  19931. self.o2.write(oprot)
  19932. oprot.writeFieldEnd()
  19933. oprot.writeFieldStop()
  19934. oprot.writeStructEnd()
  19935. def validate(self):
  19936. return
  19937. def __repr__(self):
  19938. L = ['%s=%r' % (key, value)
  19939. for key, value in self.__dict__.items()]
  19940. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  19941. def __eq__(self, other):
  19942. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  19943. def __ne__(self, other):
  19944. return not (self == other)
  19945. all_structs.append(get_partitions_by_expr_result)
  19946. get_partitions_by_expr_result.thrift_spec = (
  19947. (0, TType.STRUCT, 'success', [PartitionsByExprResult, None], None, ), # 0
  19948. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  19949. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  19950. )
  19951. class get_num_partitions_by_filter_args(object):
  19952. """
  19953. Attributes:
  19954. - db_name
  19955. - tbl_name
  19956. - filter
  19957. """
  19958. def __init__(self, db_name=None, tbl_name=None, filter=None,):
  19959. self.db_name = db_name
  19960. self.tbl_name = tbl_name
  19961. self.filter = filter
  19962. def read(self, iprot):
  19963. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  19964. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  19965. return
  19966. iprot.readStructBegin()
  19967. while True:
  19968. (fname, ftype, fid) = iprot.readFieldBegin()
  19969. if ftype == TType.STOP:
  19970. break
  19971. if fid == 1:
  19972. if ftype == TType.STRING:
  19973. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19974. else:
  19975. iprot.skip(ftype)
  19976. elif fid == 2:
  19977. if ftype == TType.STRING:
  19978. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19979. else:
  19980. iprot.skip(ftype)
  19981. elif fid == 3:
  19982. if ftype == TType.STRING:
  19983. self.filter = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  19984. else:
  19985. iprot.skip(ftype)
  19986. else:
  19987. iprot.skip(ftype)
  19988. iprot.readFieldEnd()
  19989. iprot.readStructEnd()
  19990. def write(self, oprot):
  19991. if oprot._fast_encode is not None and self.thrift_spec is not None:
  19992. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  19993. return
  19994. oprot.writeStructBegin('get_num_partitions_by_filter_args')
  19995. if self.db_name is not None:
  19996. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  19997. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  19998. oprot.writeFieldEnd()
  19999. if self.tbl_name is not None:
  20000. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20001. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  20002. oprot.writeFieldEnd()
  20003. if self.filter is not None:
  20004. oprot.writeFieldBegin('filter', TType.STRING, 3)
  20005. oprot.writeString(self.filter.encode('utf-8') if sys.version_info[0] == 2 else self.filter)
  20006. oprot.writeFieldEnd()
  20007. oprot.writeFieldStop()
  20008. oprot.writeStructEnd()
  20009. def validate(self):
  20010. return
  20011. def __repr__(self):
  20012. L = ['%s=%r' % (key, value)
  20013. for key, value in self.__dict__.items()]
  20014. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20015. def __eq__(self, other):
  20016. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20017. def __ne__(self, other):
  20018. return not (self == other)
  20019. all_structs.append(get_num_partitions_by_filter_args)
  20020. get_num_partitions_by_filter_args.thrift_spec = (
  20021. None, # 0
  20022. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  20023. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  20024. (3, TType.STRING, 'filter', 'UTF8', None, ), # 3
  20025. )
  20026. class get_num_partitions_by_filter_result(object):
  20027. """
  20028. Attributes:
  20029. - success
  20030. - o1
  20031. - o2
  20032. """
  20033. def __init__(self, success=None, o1=None, o2=None,):
  20034. self.success = success
  20035. self.o1 = o1
  20036. self.o2 = o2
  20037. def read(self, iprot):
  20038. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20039. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20040. return
  20041. iprot.readStructBegin()
  20042. while True:
  20043. (fname, ftype, fid) = iprot.readFieldBegin()
  20044. if ftype == TType.STOP:
  20045. break
  20046. if fid == 0:
  20047. if ftype == TType.I32:
  20048. self.success = iprot.readI32()
  20049. else:
  20050. iprot.skip(ftype)
  20051. elif fid == 1:
  20052. if ftype == TType.STRUCT:
  20053. self.o1 = MetaException()
  20054. self.o1.read(iprot)
  20055. else:
  20056. iprot.skip(ftype)
  20057. elif fid == 2:
  20058. if ftype == TType.STRUCT:
  20059. self.o2 = NoSuchObjectException()
  20060. self.o2.read(iprot)
  20061. else:
  20062. iprot.skip(ftype)
  20063. else:
  20064. iprot.skip(ftype)
  20065. iprot.readFieldEnd()
  20066. iprot.readStructEnd()
  20067. def write(self, oprot):
  20068. if oprot._fast_encode is not None and self.thrift_spec is not None:
  20069. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  20070. return
  20071. oprot.writeStructBegin('get_num_partitions_by_filter_result')
  20072. if self.success is not None:
  20073. oprot.writeFieldBegin('success', TType.I32, 0)
  20074. oprot.writeI32(self.success)
  20075. oprot.writeFieldEnd()
  20076. if self.o1 is not None:
  20077. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  20078. self.o1.write(oprot)
  20079. oprot.writeFieldEnd()
  20080. if self.o2 is not None:
  20081. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  20082. self.o2.write(oprot)
  20083. oprot.writeFieldEnd()
  20084. oprot.writeFieldStop()
  20085. oprot.writeStructEnd()
  20086. def validate(self):
  20087. return
  20088. def __repr__(self):
  20089. L = ['%s=%r' % (key, value)
  20090. for key, value in self.__dict__.items()]
  20091. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20092. def __eq__(self, other):
  20093. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20094. def __ne__(self, other):
  20095. return not (self == other)
  20096. all_structs.append(get_num_partitions_by_filter_result)
  20097. get_num_partitions_by_filter_result.thrift_spec = (
  20098. (0, TType.I32, 'success', None, None, ), # 0
  20099. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  20100. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  20101. )
  20102. class get_partitions_by_names_args(object):
  20103. """
  20104. Attributes:
  20105. - db_name
  20106. - tbl_name
  20107. - names
  20108. """
  20109. def __init__(self, db_name=None, tbl_name=None, names=None,):
  20110. self.db_name = db_name
  20111. self.tbl_name = tbl_name
  20112. self.names = names
  20113. def read(self, iprot):
  20114. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20115. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20116. return
  20117. iprot.readStructBegin()
  20118. while True:
  20119. (fname, ftype, fid) = iprot.readFieldBegin()
  20120. if ftype == TType.STOP:
  20121. break
  20122. if fid == 1:
  20123. if ftype == TType.STRING:
  20124. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20125. else:
  20126. iprot.skip(ftype)
  20127. elif fid == 2:
  20128. if ftype == TType.STRING:
  20129. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20130. else:
  20131. iprot.skip(ftype)
  20132. elif fid == 3:
  20133. if ftype == TType.LIST:
  20134. self.names = []
  20135. (_etype897, _size894) = iprot.readListBegin()
  20136. for _i898 in range(_size894):
  20137. _elem899 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20138. self.names.append(_elem899)
  20139. iprot.readListEnd()
  20140. else:
  20141. iprot.skip(ftype)
  20142. else:
  20143. iprot.skip(ftype)
  20144. iprot.readFieldEnd()
  20145. iprot.readStructEnd()
  20146. def write(self, oprot):
  20147. if oprot._fast_encode is not None and self.thrift_spec is not None:
  20148. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  20149. return
  20150. oprot.writeStructBegin('get_partitions_by_names_args')
  20151. if self.db_name is not None:
  20152. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  20153. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  20154. oprot.writeFieldEnd()
  20155. if self.tbl_name is not None:
  20156. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20157. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  20158. oprot.writeFieldEnd()
  20159. if self.names is not None:
  20160. oprot.writeFieldBegin('names', TType.LIST, 3)
  20161. oprot.writeListBegin(TType.STRING, len(self.names))
  20162. for iter900 in self.names:
  20163. oprot.writeString(iter900.encode('utf-8') if sys.version_info[0] == 2 else iter900)
  20164. oprot.writeListEnd()
  20165. oprot.writeFieldEnd()
  20166. oprot.writeFieldStop()
  20167. oprot.writeStructEnd()
  20168. def validate(self):
  20169. return
  20170. def __repr__(self):
  20171. L = ['%s=%r' % (key, value)
  20172. for key, value in self.__dict__.items()]
  20173. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20174. def __eq__(self, other):
  20175. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20176. def __ne__(self, other):
  20177. return not (self == other)
  20178. all_structs.append(get_partitions_by_names_args)
  20179. get_partitions_by_names_args.thrift_spec = (
  20180. None, # 0
  20181. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  20182. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  20183. (3, TType.LIST, 'names', (TType.STRING, 'UTF8', False), None, ), # 3
  20184. )
  20185. class get_partitions_by_names_result(object):
  20186. """
  20187. Attributes:
  20188. - success
  20189. - o1
  20190. - o2
  20191. """
  20192. def __init__(self, success=None, o1=None, o2=None,):
  20193. self.success = success
  20194. self.o1 = o1
  20195. self.o2 = o2
  20196. def read(self, iprot):
  20197. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20198. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20199. return
  20200. iprot.readStructBegin()
  20201. while True:
  20202. (fname, ftype, fid) = iprot.readFieldBegin()
  20203. if ftype == TType.STOP:
  20204. break
  20205. if fid == 0:
  20206. if ftype == TType.LIST:
  20207. self.success = []
  20208. (_etype904, _size901) = iprot.readListBegin()
  20209. for _i905 in range(_size901):
  20210. _elem906 = Partition()
  20211. _elem906.read(iprot)
  20212. self.success.append(_elem906)
  20213. iprot.readListEnd()
  20214. else:
  20215. iprot.skip(ftype)
  20216. elif fid == 1:
  20217. if ftype == TType.STRUCT:
  20218. self.o1 = MetaException()
  20219. self.o1.read(iprot)
  20220. else:
  20221. iprot.skip(ftype)
  20222. elif fid == 2:
  20223. if ftype == TType.STRUCT:
  20224. self.o2 = NoSuchObjectException()
  20225. self.o2.read(iprot)
  20226. else:
  20227. iprot.skip(ftype)
  20228. else:
  20229. iprot.skip(ftype)
  20230. iprot.readFieldEnd()
  20231. iprot.readStructEnd()
  20232. def write(self, oprot):
  20233. if oprot._fast_encode is not None and self.thrift_spec is not None:
  20234. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  20235. return
  20236. oprot.writeStructBegin('get_partitions_by_names_result')
  20237. if self.success is not None:
  20238. oprot.writeFieldBegin('success', TType.LIST, 0)
  20239. oprot.writeListBegin(TType.STRUCT, len(self.success))
  20240. for iter907 in self.success:
  20241. iter907.write(oprot)
  20242. oprot.writeListEnd()
  20243. oprot.writeFieldEnd()
  20244. if self.o1 is not None:
  20245. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  20246. self.o1.write(oprot)
  20247. oprot.writeFieldEnd()
  20248. if self.o2 is not None:
  20249. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  20250. self.o2.write(oprot)
  20251. oprot.writeFieldEnd()
  20252. oprot.writeFieldStop()
  20253. oprot.writeStructEnd()
  20254. def validate(self):
  20255. return
  20256. def __repr__(self):
  20257. L = ['%s=%r' % (key, value)
  20258. for key, value in self.__dict__.items()]
  20259. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20260. def __eq__(self, other):
  20261. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20262. def __ne__(self, other):
  20263. return not (self == other)
  20264. all_structs.append(get_partitions_by_names_result)
  20265. get_partitions_by_names_result.thrift_spec = (
  20266. (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0
  20267. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  20268. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  20269. )
  20270. class alter_partition_args(object):
  20271. """
  20272. Attributes:
  20273. - db_name
  20274. - tbl_name
  20275. - new_part
  20276. """
  20277. def __init__(self, db_name=None, tbl_name=None, new_part=None,):
  20278. self.db_name = db_name
  20279. self.tbl_name = tbl_name
  20280. self.new_part = new_part
  20281. def read(self, iprot):
  20282. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20283. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20284. return
  20285. iprot.readStructBegin()
  20286. while True:
  20287. (fname, ftype, fid) = iprot.readFieldBegin()
  20288. if ftype == TType.STOP:
  20289. break
  20290. if fid == 1:
  20291. if ftype == TType.STRING:
  20292. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20293. else:
  20294. iprot.skip(ftype)
  20295. elif fid == 2:
  20296. if ftype == TType.STRING:
  20297. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20298. else:
  20299. iprot.skip(ftype)
  20300. elif fid == 3:
  20301. if ftype == TType.STRUCT:
  20302. self.new_part = Partition()
  20303. self.new_part.read(iprot)
  20304. else:
  20305. iprot.skip(ftype)
  20306. else:
  20307. iprot.skip(ftype)
  20308. iprot.readFieldEnd()
  20309. iprot.readStructEnd()
  20310. def write(self, oprot):
  20311. if oprot._fast_encode is not None and self.thrift_spec is not None:
  20312. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  20313. return
  20314. oprot.writeStructBegin('alter_partition_args')
  20315. if self.db_name is not None:
  20316. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  20317. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  20318. oprot.writeFieldEnd()
  20319. if self.tbl_name is not None:
  20320. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20321. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  20322. oprot.writeFieldEnd()
  20323. if self.new_part is not None:
  20324. oprot.writeFieldBegin('new_part', TType.STRUCT, 3)
  20325. self.new_part.write(oprot)
  20326. oprot.writeFieldEnd()
  20327. oprot.writeFieldStop()
  20328. oprot.writeStructEnd()
  20329. def validate(self):
  20330. return
  20331. def __repr__(self):
  20332. L = ['%s=%r' % (key, value)
  20333. for key, value in self.__dict__.items()]
  20334. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20335. def __eq__(self, other):
  20336. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20337. def __ne__(self, other):
  20338. return not (self == other)
  20339. all_structs.append(alter_partition_args)
  20340. alter_partition_args.thrift_spec = (
  20341. None, # 0
  20342. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  20343. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  20344. (3, TType.STRUCT, 'new_part', [Partition, None], None, ), # 3
  20345. )
  20346. class alter_partition_result(object):
  20347. """
  20348. Attributes:
  20349. - o1
  20350. - o2
  20351. """
  20352. def __init__(self, o1=None, o2=None,):
  20353. self.o1 = o1
  20354. self.o2 = o2
  20355. def read(self, iprot):
  20356. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20357. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20358. return
  20359. iprot.readStructBegin()
  20360. while True:
  20361. (fname, ftype, fid) = iprot.readFieldBegin()
  20362. if ftype == TType.STOP:
  20363. break
  20364. if fid == 1:
  20365. if ftype == TType.STRUCT:
  20366. self.o1 = InvalidOperationException()
  20367. self.o1.read(iprot)
  20368. else:
  20369. iprot.skip(ftype)
  20370. elif fid == 2:
  20371. if ftype == TType.STRUCT:
  20372. self.o2 = MetaException()
  20373. self.o2.read(iprot)
  20374. else:
  20375. iprot.skip(ftype)
  20376. else:
  20377. iprot.skip(ftype)
  20378. iprot.readFieldEnd()
  20379. iprot.readStructEnd()
  20380. def write(self, oprot):
  20381. if oprot._fast_encode is not None and self.thrift_spec is not None:
  20382. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  20383. return
  20384. oprot.writeStructBegin('alter_partition_result')
  20385. if self.o1 is not None:
  20386. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  20387. self.o1.write(oprot)
  20388. oprot.writeFieldEnd()
  20389. if self.o2 is not None:
  20390. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  20391. self.o2.write(oprot)
  20392. oprot.writeFieldEnd()
  20393. oprot.writeFieldStop()
  20394. oprot.writeStructEnd()
  20395. def validate(self):
  20396. return
  20397. def __repr__(self):
  20398. L = ['%s=%r' % (key, value)
  20399. for key, value in self.__dict__.items()]
  20400. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20401. def __eq__(self, other):
  20402. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20403. def __ne__(self, other):
  20404. return not (self == other)
  20405. all_structs.append(alter_partition_result)
  20406. alter_partition_result.thrift_spec = (
  20407. None, # 0
  20408. (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1
  20409. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  20410. )
  20411. class alter_partitions_args(object):
  20412. """
  20413. Attributes:
  20414. - db_name
  20415. - tbl_name
  20416. - new_parts
  20417. """
  20418. def __init__(self, db_name=None, tbl_name=None, new_parts=None,):
  20419. self.db_name = db_name
  20420. self.tbl_name = tbl_name
  20421. self.new_parts = new_parts
  20422. def read(self, iprot):
  20423. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20424. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20425. return
  20426. iprot.readStructBegin()
  20427. while True:
  20428. (fname, ftype, fid) = iprot.readFieldBegin()
  20429. if ftype == TType.STOP:
  20430. break
  20431. if fid == 1:
  20432. if ftype == TType.STRING:
  20433. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20434. else:
  20435. iprot.skip(ftype)
  20436. elif fid == 2:
  20437. if ftype == TType.STRING:
  20438. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20439. else:
  20440. iprot.skip(ftype)
  20441. elif fid == 3:
  20442. if ftype == TType.LIST:
  20443. self.new_parts = []
  20444. (_etype911, _size908) = iprot.readListBegin()
  20445. for _i912 in range(_size908):
  20446. _elem913 = Partition()
  20447. _elem913.read(iprot)
  20448. self.new_parts.append(_elem913)
  20449. iprot.readListEnd()
  20450. else:
  20451. iprot.skip(ftype)
  20452. else:
  20453. iprot.skip(ftype)
  20454. iprot.readFieldEnd()
  20455. iprot.readStructEnd()
  20456. def write(self, oprot):
  20457. if oprot._fast_encode is not None and self.thrift_spec is not None:
  20458. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  20459. return
  20460. oprot.writeStructBegin('alter_partitions_args')
  20461. if self.db_name is not None:
  20462. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  20463. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  20464. oprot.writeFieldEnd()
  20465. if self.tbl_name is not None:
  20466. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20467. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  20468. oprot.writeFieldEnd()
  20469. if self.new_parts is not None:
  20470. oprot.writeFieldBegin('new_parts', TType.LIST, 3)
  20471. oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
  20472. for iter914 in self.new_parts:
  20473. iter914.write(oprot)
  20474. oprot.writeListEnd()
  20475. oprot.writeFieldEnd()
  20476. oprot.writeFieldStop()
  20477. oprot.writeStructEnd()
  20478. def validate(self):
  20479. return
  20480. def __repr__(self):
  20481. L = ['%s=%r' % (key, value)
  20482. for key, value in self.__dict__.items()]
  20483. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20484. def __eq__(self, other):
  20485. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20486. def __ne__(self, other):
  20487. return not (self == other)
  20488. all_structs.append(alter_partitions_args)
  20489. alter_partitions_args.thrift_spec = (
  20490. None, # 0
  20491. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  20492. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  20493. (3, TType.LIST, 'new_parts', (TType.STRUCT, [Partition, None], False), None, ), # 3
  20494. )
  20495. class alter_partitions_result(object):
  20496. """
  20497. Attributes:
  20498. - o1
  20499. - o2
  20500. """
  20501. def __init__(self, o1=None, o2=None,):
  20502. self.o1 = o1
  20503. self.o2 = o2
  20504. def read(self, iprot):
  20505. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20506. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20507. return
  20508. iprot.readStructBegin()
  20509. while True:
  20510. (fname, ftype, fid) = iprot.readFieldBegin()
  20511. if ftype == TType.STOP:
  20512. break
  20513. if fid == 1:
  20514. if ftype == TType.STRUCT:
  20515. self.o1 = InvalidOperationException()
  20516. self.o1.read(iprot)
  20517. else:
  20518. iprot.skip(ftype)
  20519. elif fid == 2:
  20520. if ftype == TType.STRUCT:
  20521. self.o2 = MetaException()
  20522. self.o2.read(iprot)
  20523. else:
  20524. iprot.skip(ftype)
  20525. else:
  20526. iprot.skip(ftype)
  20527. iprot.readFieldEnd()
  20528. iprot.readStructEnd()
  20529. def write(self, oprot):
  20530. if oprot._fast_encode is not None and self.thrift_spec is not None:
  20531. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  20532. return
  20533. oprot.writeStructBegin('alter_partitions_result')
  20534. if self.o1 is not None:
  20535. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  20536. self.o1.write(oprot)
  20537. oprot.writeFieldEnd()
  20538. if self.o2 is not None:
  20539. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  20540. self.o2.write(oprot)
  20541. oprot.writeFieldEnd()
  20542. oprot.writeFieldStop()
  20543. oprot.writeStructEnd()
  20544. def validate(self):
  20545. return
  20546. def __repr__(self):
  20547. L = ['%s=%r' % (key, value)
  20548. for key, value in self.__dict__.items()]
  20549. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20550. def __eq__(self, other):
  20551. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20552. def __ne__(self, other):
  20553. return not (self == other)
  20554. all_structs.append(alter_partitions_result)
  20555. alter_partitions_result.thrift_spec = (
  20556. None, # 0
  20557. (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1
  20558. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  20559. )
  20560. class alter_partitions_with_environment_context_args(object):
  20561. """
  20562. Attributes:
  20563. - db_name
  20564. - tbl_name
  20565. - new_parts
  20566. - environment_context
  20567. """
  20568. def __init__(self, db_name=None, tbl_name=None, new_parts=None, environment_context=None,):
  20569. self.db_name = db_name
  20570. self.tbl_name = tbl_name
  20571. self.new_parts = new_parts
  20572. self.environment_context = environment_context
  20573. def read(self, iprot):
  20574. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20575. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20576. return
  20577. iprot.readStructBegin()
  20578. while True:
  20579. (fname, ftype, fid) = iprot.readFieldBegin()
  20580. if ftype == TType.STOP:
  20581. break
  20582. if fid == 1:
  20583. if ftype == TType.STRING:
  20584. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20585. else:
  20586. iprot.skip(ftype)
  20587. elif fid == 2:
  20588. if ftype == TType.STRING:
  20589. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20590. else:
  20591. iprot.skip(ftype)
  20592. elif fid == 3:
  20593. if ftype == TType.LIST:
  20594. self.new_parts = []
  20595. (_etype918, _size915) = iprot.readListBegin()
  20596. for _i919 in range(_size915):
  20597. _elem920 = Partition()
  20598. _elem920.read(iprot)
  20599. self.new_parts.append(_elem920)
  20600. iprot.readListEnd()
  20601. else:
  20602. iprot.skip(ftype)
  20603. elif fid == 4:
  20604. if ftype == TType.STRUCT:
  20605. self.environment_context = EnvironmentContext()
  20606. self.environment_context.read(iprot)
  20607. else:
  20608. iprot.skip(ftype)
  20609. else:
  20610. iprot.skip(ftype)
  20611. iprot.readFieldEnd()
  20612. iprot.readStructEnd()
  20613. def write(self, oprot):
  20614. if oprot._fast_encode is not None and self.thrift_spec is not None:
  20615. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  20616. return
  20617. oprot.writeStructBegin('alter_partitions_with_environment_context_args')
  20618. if self.db_name is not None:
  20619. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  20620. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  20621. oprot.writeFieldEnd()
  20622. if self.tbl_name is not None:
  20623. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20624. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  20625. oprot.writeFieldEnd()
  20626. if self.new_parts is not None:
  20627. oprot.writeFieldBegin('new_parts', TType.LIST, 3)
  20628. oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
  20629. for iter921 in self.new_parts:
  20630. iter921.write(oprot)
  20631. oprot.writeListEnd()
  20632. oprot.writeFieldEnd()
  20633. if self.environment_context is not None:
  20634. oprot.writeFieldBegin('environment_context', TType.STRUCT, 4)
  20635. self.environment_context.write(oprot)
  20636. oprot.writeFieldEnd()
  20637. oprot.writeFieldStop()
  20638. oprot.writeStructEnd()
  20639. def validate(self):
  20640. return
  20641. def __repr__(self):
  20642. L = ['%s=%r' % (key, value)
  20643. for key, value in self.__dict__.items()]
  20644. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20645. def __eq__(self, other):
  20646. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20647. def __ne__(self, other):
  20648. return not (self == other)
  20649. all_structs.append(alter_partitions_with_environment_context_args)
  20650. alter_partitions_with_environment_context_args.thrift_spec = (
  20651. None, # 0
  20652. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  20653. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  20654. (3, TType.LIST, 'new_parts', (TType.STRUCT, [Partition, None], False), None, ), # 3
  20655. (4, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 4
  20656. )
  20657. class alter_partitions_with_environment_context_result(object):
  20658. """
  20659. Attributes:
  20660. - o1
  20661. - o2
  20662. """
  20663. def __init__(self, o1=None, o2=None,):
  20664. self.o1 = o1
  20665. self.o2 = o2
  20666. def read(self, iprot):
  20667. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20668. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20669. return
  20670. iprot.readStructBegin()
  20671. while True:
  20672. (fname, ftype, fid) = iprot.readFieldBegin()
  20673. if ftype == TType.STOP:
  20674. break
  20675. if fid == 1:
  20676. if ftype == TType.STRUCT:
  20677. self.o1 = InvalidOperationException()
  20678. self.o1.read(iprot)
  20679. else:
  20680. iprot.skip(ftype)
  20681. elif fid == 2:
  20682. if ftype == TType.STRUCT:
  20683. self.o2 = MetaException()
  20684. self.o2.read(iprot)
  20685. else:
  20686. iprot.skip(ftype)
  20687. else:
  20688. iprot.skip(ftype)
  20689. iprot.readFieldEnd()
  20690. iprot.readStructEnd()
  20691. def write(self, oprot):
  20692. if oprot._fast_encode is not None and self.thrift_spec is not None:
  20693. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  20694. return
  20695. oprot.writeStructBegin('alter_partitions_with_environment_context_result')
  20696. if self.o1 is not None:
  20697. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  20698. self.o1.write(oprot)
  20699. oprot.writeFieldEnd()
  20700. if self.o2 is not None:
  20701. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  20702. self.o2.write(oprot)
  20703. oprot.writeFieldEnd()
  20704. oprot.writeFieldStop()
  20705. oprot.writeStructEnd()
  20706. def validate(self):
  20707. return
  20708. def __repr__(self):
  20709. L = ['%s=%r' % (key, value)
  20710. for key, value in self.__dict__.items()]
  20711. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20712. def __eq__(self, other):
  20713. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20714. def __ne__(self, other):
  20715. return not (self == other)
  20716. all_structs.append(alter_partitions_with_environment_context_result)
  20717. alter_partitions_with_environment_context_result.thrift_spec = (
  20718. None, # 0
  20719. (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1
  20720. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  20721. )
  20722. class alter_partition_with_environment_context_args(object):
  20723. """
  20724. Attributes:
  20725. - db_name
  20726. - tbl_name
  20727. - new_part
  20728. - environment_context
  20729. """
  20730. def __init__(self, db_name=None, tbl_name=None, new_part=None, environment_context=None,):
  20731. self.db_name = db_name
  20732. self.tbl_name = tbl_name
  20733. self.new_part = new_part
  20734. self.environment_context = environment_context
  20735. def read(self, iprot):
  20736. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20737. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20738. return
  20739. iprot.readStructBegin()
  20740. while True:
  20741. (fname, ftype, fid) = iprot.readFieldBegin()
  20742. if ftype == TType.STOP:
  20743. break
  20744. if fid == 1:
  20745. if ftype == TType.STRING:
  20746. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20747. else:
  20748. iprot.skip(ftype)
  20749. elif fid == 2:
  20750. if ftype == TType.STRING:
  20751. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20752. else:
  20753. iprot.skip(ftype)
  20754. elif fid == 3:
  20755. if ftype == TType.STRUCT:
  20756. self.new_part = Partition()
  20757. self.new_part.read(iprot)
  20758. else:
  20759. iprot.skip(ftype)
  20760. elif fid == 4:
  20761. if ftype == TType.STRUCT:
  20762. self.environment_context = EnvironmentContext()
  20763. self.environment_context.read(iprot)
  20764. else:
  20765. iprot.skip(ftype)
  20766. else:
  20767. iprot.skip(ftype)
  20768. iprot.readFieldEnd()
  20769. iprot.readStructEnd()
  20770. def write(self, oprot):
  20771. if oprot._fast_encode is not None and self.thrift_spec is not None:
  20772. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  20773. return
  20774. oprot.writeStructBegin('alter_partition_with_environment_context_args')
  20775. if self.db_name is not None:
  20776. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  20777. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  20778. oprot.writeFieldEnd()
  20779. if self.tbl_name is not None:
  20780. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20781. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  20782. oprot.writeFieldEnd()
  20783. if self.new_part is not None:
  20784. oprot.writeFieldBegin('new_part', TType.STRUCT, 3)
  20785. self.new_part.write(oprot)
  20786. oprot.writeFieldEnd()
  20787. if self.environment_context is not None:
  20788. oprot.writeFieldBegin('environment_context', TType.STRUCT, 4)
  20789. self.environment_context.write(oprot)
  20790. oprot.writeFieldEnd()
  20791. oprot.writeFieldStop()
  20792. oprot.writeStructEnd()
  20793. def validate(self):
  20794. return
  20795. def __repr__(self):
  20796. L = ['%s=%r' % (key, value)
  20797. for key, value in self.__dict__.items()]
  20798. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20799. def __eq__(self, other):
  20800. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20801. def __ne__(self, other):
  20802. return not (self == other)
  20803. all_structs.append(alter_partition_with_environment_context_args)
  20804. alter_partition_with_environment_context_args.thrift_spec = (
  20805. None, # 0
  20806. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  20807. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  20808. (3, TType.STRUCT, 'new_part', [Partition, None], None, ), # 3
  20809. (4, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 4
  20810. )
  20811. class alter_partition_with_environment_context_result(object):
  20812. """
  20813. Attributes:
  20814. - o1
  20815. - o2
  20816. """
  20817. def __init__(self, o1=None, o2=None,):
  20818. self.o1 = o1
  20819. self.o2 = o2
  20820. def read(self, iprot):
  20821. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20822. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20823. return
  20824. iprot.readStructBegin()
  20825. while True:
  20826. (fname, ftype, fid) = iprot.readFieldBegin()
  20827. if ftype == TType.STOP:
  20828. break
  20829. if fid == 1:
  20830. if ftype == TType.STRUCT:
  20831. self.o1 = InvalidOperationException()
  20832. self.o1.read(iprot)
  20833. else:
  20834. iprot.skip(ftype)
  20835. elif fid == 2:
  20836. if ftype == TType.STRUCT:
  20837. self.o2 = MetaException()
  20838. self.o2.read(iprot)
  20839. else:
  20840. iprot.skip(ftype)
  20841. else:
  20842. iprot.skip(ftype)
  20843. iprot.readFieldEnd()
  20844. iprot.readStructEnd()
  20845. def write(self, oprot):
  20846. if oprot._fast_encode is not None and self.thrift_spec is not None:
  20847. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  20848. return
  20849. oprot.writeStructBegin('alter_partition_with_environment_context_result')
  20850. if self.o1 is not None:
  20851. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  20852. self.o1.write(oprot)
  20853. oprot.writeFieldEnd()
  20854. if self.o2 is not None:
  20855. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  20856. self.o2.write(oprot)
  20857. oprot.writeFieldEnd()
  20858. oprot.writeFieldStop()
  20859. oprot.writeStructEnd()
  20860. def validate(self):
  20861. return
  20862. def __repr__(self):
  20863. L = ['%s=%r' % (key, value)
  20864. for key, value in self.__dict__.items()]
  20865. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20866. def __eq__(self, other):
  20867. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20868. def __ne__(self, other):
  20869. return not (self == other)
  20870. all_structs.append(alter_partition_with_environment_context_result)
  20871. alter_partition_with_environment_context_result.thrift_spec = (
  20872. None, # 0
  20873. (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1
  20874. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  20875. )
  20876. class rename_partition_args(object):
  20877. """
  20878. Attributes:
  20879. - db_name
  20880. - tbl_name
  20881. - part_vals
  20882. - new_part
  20883. """
  20884. def __init__(self, db_name=None, tbl_name=None, part_vals=None, new_part=None,):
  20885. self.db_name = db_name
  20886. self.tbl_name = tbl_name
  20887. self.part_vals = part_vals
  20888. self.new_part = new_part
  20889. def read(self, iprot):
  20890. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20891. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20892. return
  20893. iprot.readStructBegin()
  20894. while True:
  20895. (fname, ftype, fid) = iprot.readFieldBegin()
  20896. if ftype == TType.STOP:
  20897. break
  20898. if fid == 1:
  20899. if ftype == TType.STRING:
  20900. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20901. else:
  20902. iprot.skip(ftype)
  20903. elif fid == 2:
  20904. if ftype == TType.STRING:
  20905. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20906. else:
  20907. iprot.skip(ftype)
  20908. elif fid == 3:
  20909. if ftype == TType.LIST:
  20910. self.part_vals = []
  20911. (_etype925, _size922) = iprot.readListBegin()
  20912. for _i926 in range(_size922):
  20913. _elem927 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  20914. self.part_vals.append(_elem927)
  20915. iprot.readListEnd()
  20916. else:
  20917. iprot.skip(ftype)
  20918. elif fid == 4:
  20919. if ftype == TType.STRUCT:
  20920. self.new_part = Partition()
  20921. self.new_part.read(iprot)
  20922. else:
  20923. iprot.skip(ftype)
  20924. else:
  20925. iprot.skip(ftype)
  20926. iprot.readFieldEnd()
  20927. iprot.readStructEnd()
  20928. def write(self, oprot):
  20929. if oprot._fast_encode is not None and self.thrift_spec is not None:
  20930. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  20931. return
  20932. oprot.writeStructBegin('rename_partition_args')
  20933. if self.db_name is not None:
  20934. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  20935. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  20936. oprot.writeFieldEnd()
  20937. if self.tbl_name is not None:
  20938. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  20939. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  20940. oprot.writeFieldEnd()
  20941. if self.part_vals is not None:
  20942. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  20943. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  20944. for iter928 in self.part_vals:
  20945. oprot.writeString(iter928.encode('utf-8') if sys.version_info[0] == 2 else iter928)
  20946. oprot.writeListEnd()
  20947. oprot.writeFieldEnd()
  20948. if self.new_part is not None:
  20949. oprot.writeFieldBegin('new_part', TType.STRUCT, 4)
  20950. self.new_part.write(oprot)
  20951. oprot.writeFieldEnd()
  20952. oprot.writeFieldStop()
  20953. oprot.writeStructEnd()
  20954. def validate(self):
  20955. return
  20956. def __repr__(self):
  20957. L = ['%s=%r' % (key, value)
  20958. for key, value in self.__dict__.items()]
  20959. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  20960. def __eq__(self, other):
  20961. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  20962. def __ne__(self, other):
  20963. return not (self == other)
  20964. all_structs.append(rename_partition_args)
  20965. rename_partition_args.thrift_spec = (
  20966. None, # 0
  20967. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  20968. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  20969. (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3
  20970. (4, TType.STRUCT, 'new_part', [Partition, None], None, ), # 4
  20971. )
  20972. class rename_partition_result(object):
  20973. """
  20974. Attributes:
  20975. - o1
  20976. - o2
  20977. """
  20978. def __init__(self, o1=None, o2=None,):
  20979. self.o1 = o1
  20980. self.o2 = o2
  20981. def read(self, iprot):
  20982. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  20983. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  20984. return
  20985. iprot.readStructBegin()
  20986. while True:
  20987. (fname, ftype, fid) = iprot.readFieldBegin()
  20988. if ftype == TType.STOP:
  20989. break
  20990. if fid == 1:
  20991. if ftype == TType.STRUCT:
  20992. self.o1 = InvalidOperationException()
  20993. self.o1.read(iprot)
  20994. else:
  20995. iprot.skip(ftype)
  20996. elif fid == 2:
  20997. if ftype == TType.STRUCT:
  20998. self.o2 = MetaException()
  20999. self.o2.read(iprot)
  21000. else:
  21001. iprot.skip(ftype)
  21002. else:
  21003. iprot.skip(ftype)
  21004. iprot.readFieldEnd()
  21005. iprot.readStructEnd()
  21006. def write(self, oprot):
  21007. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21008. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21009. return
  21010. oprot.writeStructBegin('rename_partition_result')
  21011. if self.o1 is not None:
  21012. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21013. self.o1.write(oprot)
  21014. oprot.writeFieldEnd()
  21015. if self.o2 is not None:
  21016. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  21017. self.o2.write(oprot)
  21018. oprot.writeFieldEnd()
  21019. oprot.writeFieldStop()
  21020. oprot.writeStructEnd()
  21021. def validate(self):
  21022. return
  21023. def __repr__(self):
  21024. L = ['%s=%r' % (key, value)
  21025. for key, value in self.__dict__.items()]
  21026. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21027. def __eq__(self, other):
  21028. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21029. def __ne__(self, other):
  21030. return not (self == other)
  21031. all_structs.append(rename_partition_result)
  21032. rename_partition_result.thrift_spec = (
  21033. None, # 0
  21034. (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1
  21035. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  21036. )
  21037. class partition_name_has_valid_characters_args(object):
  21038. """
  21039. Attributes:
  21040. - part_vals
  21041. - throw_exception
  21042. """
  21043. def __init__(self, part_vals=None, throw_exception=None,):
  21044. self.part_vals = part_vals
  21045. self.throw_exception = throw_exception
  21046. def read(self, iprot):
  21047. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21048. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21049. return
  21050. iprot.readStructBegin()
  21051. while True:
  21052. (fname, ftype, fid) = iprot.readFieldBegin()
  21053. if ftype == TType.STOP:
  21054. break
  21055. if fid == 1:
  21056. if ftype == TType.LIST:
  21057. self.part_vals = []
  21058. (_etype932, _size929) = iprot.readListBegin()
  21059. for _i933 in range(_size929):
  21060. _elem934 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21061. self.part_vals.append(_elem934)
  21062. iprot.readListEnd()
  21063. else:
  21064. iprot.skip(ftype)
  21065. elif fid == 2:
  21066. if ftype == TType.BOOL:
  21067. self.throw_exception = iprot.readBool()
  21068. else:
  21069. iprot.skip(ftype)
  21070. else:
  21071. iprot.skip(ftype)
  21072. iprot.readFieldEnd()
  21073. iprot.readStructEnd()
  21074. def write(self, oprot):
  21075. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21076. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21077. return
  21078. oprot.writeStructBegin('partition_name_has_valid_characters_args')
  21079. if self.part_vals is not None:
  21080. oprot.writeFieldBegin('part_vals', TType.LIST, 1)
  21081. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  21082. for iter935 in self.part_vals:
  21083. oprot.writeString(iter935.encode('utf-8') if sys.version_info[0] == 2 else iter935)
  21084. oprot.writeListEnd()
  21085. oprot.writeFieldEnd()
  21086. if self.throw_exception is not None:
  21087. oprot.writeFieldBegin('throw_exception', TType.BOOL, 2)
  21088. oprot.writeBool(self.throw_exception)
  21089. oprot.writeFieldEnd()
  21090. oprot.writeFieldStop()
  21091. oprot.writeStructEnd()
  21092. def validate(self):
  21093. return
  21094. def __repr__(self):
  21095. L = ['%s=%r' % (key, value)
  21096. for key, value in self.__dict__.items()]
  21097. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21098. def __eq__(self, other):
  21099. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21100. def __ne__(self, other):
  21101. return not (self == other)
  21102. all_structs.append(partition_name_has_valid_characters_args)
  21103. partition_name_has_valid_characters_args.thrift_spec = (
  21104. None, # 0
  21105. (1, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 1
  21106. (2, TType.BOOL, 'throw_exception', None, None, ), # 2
  21107. )
  21108. class partition_name_has_valid_characters_result(object):
  21109. """
  21110. Attributes:
  21111. - success
  21112. - o1
  21113. """
  21114. def __init__(self, success=None, o1=None,):
  21115. self.success = success
  21116. self.o1 = o1
  21117. def read(self, iprot):
  21118. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21119. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21120. return
  21121. iprot.readStructBegin()
  21122. while True:
  21123. (fname, ftype, fid) = iprot.readFieldBegin()
  21124. if ftype == TType.STOP:
  21125. break
  21126. if fid == 0:
  21127. if ftype == TType.BOOL:
  21128. self.success = iprot.readBool()
  21129. else:
  21130. iprot.skip(ftype)
  21131. elif fid == 1:
  21132. if ftype == TType.STRUCT:
  21133. self.o1 = MetaException()
  21134. self.o1.read(iprot)
  21135. else:
  21136. iprot.skip(ftype)
  21137. else:
  21138. iprot.skip(ftype)
  21139. iprot.readFieldEnd()
  21140. iprot.readStructEnd()
  21141. def write(self, oprot):
  21142. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21143. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21144. return
  21145. oprot.writeStructBegin('partition_name_has_valid_characters_result')
  21146. if self.success is not None:
  21147. oprot.writeFieldBegin('success', TType.BOOL, 0)
  21148. oprot.writeBool(self.success)
  21149. oprot.writeFieldEnd()
  21150. if self.o1 is not None:
  21151. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21152. self.o1.write(oprot)
  21153. oprot.writeFieldEnd()
  21154. oprot.writeFieldStop()
  21155. oprot.writeStructEnd()
  21156. def validate(self):
  21157. return
  21158. def __repr__(self):
  21159. L = ['%s=%r' % (key, value)
  21160. for key, value in self.__dict__.items()]
  21161. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21162. def __eq__(self, other):
  21163. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21164. def __ne__(self, other):
  21165. return not (self == other)
  21166. all_structs.append(partition_name_has_valid_characters_result)
  21167. partition_name_has_valid_characters_result.thrift_spec = (
  21168. (0, TType.BOOL, 'success', None, None, ), # 0
  21169. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  21170. )
  21171. class get_config_value_args(object):
  21172. """
  21173. Attributes:
  21174. - name
  21175. - defaultValue
  21176. """
  21177. def __init__(self, name=None, defaultValue=None,):
  21178. self.name = name
  21179. self.defaultValue = defaultValue
  21180. def read(self, iprot):
  21181. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21182. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21183. return
  21184. iprot.readStructBegin()
  21185. while True:
  21186. (fname, ftype, fid) = iprot.readFieldBegin()
  21187. if ftype == TType.STOP:
  21188. break
  21189. if fid == 1:
  21190. if ftype == TType.STRING:
  21191. self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21192. else:
  21193. iprot.skip(ftype)
  21194. elif fid == 2:
  21195. if ftype == TType.STRING:
  21196. self.defaultValue = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21197. else:
  21198. iprot.skip(ftype)
  21199. else:
  21200. iprot.skip(ftype)
  21201. iprot.readFieldEnd()
  21202. iprot.readStructEnd()
  21203. def write(self, oprot):
  21204. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21205. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21206. return
  21207. oprot.writeStructBegin('get_config_value_args')
  21208. if self.name is not None:
  21209. oprot.writeFieldBegin('name', TType.STRING, 1)
  21210. oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
  21211. oprot.writeFieldEnd()
  21212. if self.defaultValue is not None:
  21213. oprot.writeFieldBegin('defaultValue', TType.STRING, 2)
  21214. oprot.writeString(self.defaultValue.encode('utf-8') if sys.version_info[0] == 2 else self.defaultValue)
  21215. oprot.writeFieldEnd()
  21216. oprot.writeFieldStop()
  21217. oprot.writeStructEnd()
  21218. def validate(self):
  21219. return
  21220. def __repr__(self):
  21221. L = ['%s=%r' % (key, value)
  21222. for key, value in self.__dict__.items()]
  21223. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21224. def __eq__(self, other):
  21225. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21226. def __ne__(self, other):
  21227. return not (self == other)
  21228. all_structs.append(get_config_value_args)
  21229. get_config_value_args.thrift_spec = (
  21230. None, # 0
  21231. (1, TType.STRING, 'name', 'UTF8', None, ), # 1
  21232. (2, TType.STRING, 'defaultValue', 'UTF8', None, ), # 2
  21233. )
  21234. class get_config_value_result(object):
  21235. """
  21236. Attributes:
  21237. - success
  21238. - o1
  21239. """
  21240. def __init__(self, success=None, o1=None,):
  21241. self.success = success
  21242. self.o1 = o1
  21243. def read(self, iprot):
  21244. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21245. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21246. return
  21247. iprot.readStructBegin()
  21248. while True:
  21249. (fname, ftype, fid) = iprot.readFieldBegin()
  21250. if ftype == TType.STOP:
  21251. break
  21252. if fid == 0:
  21253. if ftype == TType.STRING:
  21254. self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21255. else:
  21256. iprot.skip(ftype)
  21257. elif fid == 1:
  21258. if ftype == TType.STRUCT:
  21259. self.o1 = ConfigValSecurityException()
  21260. self.o1.read(iprot)
  21261. else:
  21262. iprot.skip(ftype)
  21263. else:
  21264. iprot.skip(ftype)
  21265. iprot.readFieldEnd()
  21266. iprot.readStructEnd()
  21267. def write(self, oprot):
  21268. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21269. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21270. return
  21271. oprot.writeStructBegin('get_config_value_result')
  21272. if self.success is not None:
  21273. oprot.writeFieldBegin('success', TType.STRING, 0)
  21274. oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
  21275. oprot.writeFieldEnd()
  21276. if self.o1 is not None:
  21277. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21278. self.o1.write(oprot)
  21279. oprot.writeFieldEnd()
  21280. oprot.writeFieldStop()
  21281. oprot.writeStructEnd()
  21282. def validate(self):
  21283. return
  21284. def __repr__(self):
  21285. L = ['%s=%r' % (key, value)
  21286. for key, value in self.__dict__.items()]
  21287. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21288. def __eq__(self, other):
  21289. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21290. def __ne__(self, other):
  21291. return not (self == other)
  21292. all_structs.append(get_config_value_result)
  21293. get_config_value_result.thrift_spec = (
  21294. (0, TType.STRING, 'success', 'UTF8', None, ), # 0
  21295. (1, TType.STRUCT, 'o1', [ConfigValSecurityException, None], None, ), # 1
  21296. )
  21297. class partition_name_to_vals_args(object):
  21298. """
  21299. Attributes:
  21300. - part_name
  21301. """
  21302. def __init__(self, part_name=None,):
  21303. self.part_name = part_name
  21304. def read(self, iprot):
  21305. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21306. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21307. return
  21308. iprot.readStructBegin()
  21309. while True:
  21310. (fname, ftype, fid) = iprot.readFieldBegin()
  21311. if ftype == TType.STOP:
  21312. break
  21313. if fid == 1:
  21314. if ftype == TType.STRING:
  21315. self.part_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21316. else:
  21317. iprot.skip(ftype)
  21318. else:
  21319. iprot.skip(ftype)
  21320. iprot.readFieldEnd()
  21321. iprot.readStructEnd()
  21322. def write(self, oprot):
  21323. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21324. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21325. return
  21326. oprot.writeStructBegin('partition_name_to_vals_args')
  21327. if self.part_name is not None:
  21328. oprot.writeFieldBegin('part_name', TType.STRING, 1)
  21329. oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name)
  21330. oprot.writeFieldEnd()
  21331. oprot.writeFieldStop()
  21332. oprot.writeStructEnd()
  21333. def validate(self):
  21334. return
  21335. def __repr__(self):
  21336. L = ['%s=%r' % (key, value)
  21337. for key, value in self.__dict__.items()]
  21338. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21339. def __eq__(self, other):
  21340. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21341. def __ne__(self, other):
  21342. return not (self == other)
  21343. all_structs.append(partition_name_to_vals_args)
  21344. partition_name_to_vals_args.thrift_spec = (
  21345. None, # 0
  21346. (1, TType.STRING, 'part_name', 'UTF8', None, ), # 1
  21347. )
  21348. class partition_name_to_vals_result(object):
  21349. """
  21350. Attributes:
  21351. - success
  21352. - o1
  21353. """
  21354. def __init__(self, success=None, o1=None,):
  21355. self.success = success
  21356. self.o1 = o1
  21357. def read(self, iprot):
  21358. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21359. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21360. return
  21361. iprot.readStructBegin()
  21362. while True:
  21363. (fname, ftype, fid) = iprot.readFieldBegin()
  21364. if ftype == TType.STOP:
  21365. break
  21366. if fid == 0:
  21367. if ftype == TType.LIST:
  21368. self.success = []
  21369. (_etype939, _size936) = iprot.readListBegin()
  21370. for _i940 in range(_size936):
  21371. _elem941 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21372. self.success.append(_elem941)
  21373. iprot.readListEnd()
  21374. else:
  21375. iprot.skip(ftype)
  21376. elif fid == 1:
  21377. if ftype == TType.STRUCT:
  21378. self.o1 = MetaException()
  21379. self.o1.read(iprot)
  21380. else:
  21381. iprot.skip(ftype)
  21382. else:
  21383. iprot.skip(ftype)
  21384. iprot.readFieldEnd()
  21385. iprot.readStructEnd()
  21386. def write(self, oprot):
  21387. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21388. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21389. return
  21390. oprot.writeStructBegin('partition_name_to_vals_result')
  21391. if self.success is not None:
  21392. oprot.writeFieldBegin('success', TType.LIST, 0)
  21393. oprot.writeListBegin(TType.STRING, len(self.success))
  21394. for iter942 in self.success:
  21395. oprot.writeString(iter942.encode('utf-8') if sys.version_info[0] == 2 else iter942)
  21396. oprot.writeListEnd()
  21397. oprot.writeFieldEnd()
  21398. if self.o1 is not None:
  21399. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21400. self.o1.write(oprot)
  21401. oprot.writeFieldEnd()
  21402. oprot.writeFieldStop()
  21403. oprot.writeStructEnd()
  21404. def validate(self):
  21405. return
  21406. def __repr__(self):
  21407. L = ['%s=%r' % (key, value)
  21408. for key, value in self.__dict__.items()]
  21409. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21410. def __eq__(self, other):
  21411. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21412. def __ne__(self, other):
  21413. return not (self == other)
  21414. all_structs.append(partition_name_to_vals_result)
  21415. partition_name_to_vals_result.thrift_spec = (
  21416. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  21417. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  21418. )
  21419. class partition_name_to_spec_args(object):
  21420. """
  21421. Attributes:
  21422. - part_name
  21423. """
  21424. def __init__(self, part_name=None,):
  21425. self.part_name = part_name
  21426. def read(self, iprot):
  21427. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21428. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21429. return
  21430. iprot.readStructBegin()
  21431. while True:
  21432. (fname, ftype, fid) = iprot.readFieldBegin()
  21433. if ftype == TType.STOP:
  21434. break
  21435. if fid == 1:
  21436. if ftype == TType.STRING:
  21437. self.part_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21438. else:
  21439. iprot.skip(ftype)
  21440. else:
  21441. iprot.skip(ftype)
  21442. iprot.readFieldEnd()
  21443. iprot.readStructEnd()
  21444. def write(self, oprot):
  21445. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21446. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21447. return
  21448. oprot.writeStructBegin('partition_name_to_spec_args')
  21449. if self.part_name is not None:
  21450. oprot.writeFieldBegin('part_name', TType.STRING, 1)
  21451. oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name)
  21452. oprot.writeFieldEnd()
  21453. oprot.writeFieldStop()
  21454. oprot.writeStructEnd()
  21455. def validate(self):
  21456. return
  21457. def __repr__(self):
  21458. L = ['%s=%r' % (key, value)
  21459. for key, value in self.__dict__.items()]
  21460. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21461. def __eq__(self, other):
  21462. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21463. def __ne__(self, other):
  21464. return not (self == other)
  21465. all_structs.append(partition_name_to_spec_args)
  21466. partition_name_to_spec_args.thrift_spec = (
  21467. None, # 0
  21468. (1, TType.STRING, 'part_name', 'UTF8', None, ), # 1
  21469. )
  21470. class partition_name_to_spec_result(object):
  21471. """
  21472. Attributes:
  21473. - success
  21474. - o1
  21475. """
  21476. def __init__(self, success=None, o1=None,):
  21477. self.success = success
  21478. self.o1 = o1
  21479. def read(self, iprot):
  21480. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21481. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21482. return
  21483. iprot.readStructBegin()
  21484. while True:
  21485. (fname, ftype, fid) = iprot.readFieldBegin()
  21486. if ftype == TType.STOP:
  21487. break
  21488. if fid == 0:
  21489. if ftype == TType.MAP:
  21490. self.success = {}
  21491. (_ktype944, _vtype945, _size943) = iprot.readMapBegin()
  21492. for _i947 in range(_size943):
  21493. _key948 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21494. _val949 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21495. self.success[_key948] = _val949
  21496. iprot.readMapEnd()
  21497. else:
  21498. iprot.skip(ftype)
  21499. elif fid == 1:
  21500. if ftype == TType.STRUCT:
  21501. self.o1 = MetaException()
  21502. self.o1.read(iprot)
  21503. else:
  21504. iprot.skip(ftype)
  21505. else:
  21506. iprot.skip(ftype)
  21507. iprot.readFieldEnd()
  21508. iprot.readStructEnd()
  21509. def write(self, oprot):
  21510. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21511. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21512. return
  21513. oprot.writeStructBegin('partition_name_to_spec_result')
  21514. if self.success is not None:
  21515. oprot.writeFieldBegin('success', TType.MAP, 0)
  21516. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
  21517. for kiter950, viter951 in self.success.items():
  21518. oprot.writeString(kiter950.encode('utf-8') if sys.version_info[0] == 2 else kiter950)
  21519. oprot.writeString(viter951.encode('utf-8') if sys.version_info[0] == 2 else viter951)
  21520. oprot.writeMapEnd()
  21521. oprot.writeFieldEnd()
  21522. if self.o1 is not None:
  21523. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21524. self.o1.write(oprot)
  21525. oprot.writeFieldEnd()
  21526. oprot.writeFieldStop()
  21527. oprot.writeStructEnd()
  21528. def validate(self):
  21529. return
  21530. def __repr__(self):
  21531. L = ['%s=%r' % (key, value)
  21532. for key, value in self.__dict__.items()]
  21533. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21534. def __eq__(self, other):
  21535. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21536. def __ne__(self, other):
  21537. return not (self == other)
  21538. all_structs.append(partition_name_to_spec_result)
  21539. partition_name_to_spec_result.thrift_spec = (
  21540. (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0
  21541. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  21542. )
  21543. class markPartitionForEvent_args(object):
  21544. """
  21545. Attributes:
  21546. - db_name
  21547. - tbl_name
  21548. - part_vals
  21549. - eventType
  21550. """
  21551. def __init__(self, db_name=None, tbl_name=None, part_vals=None, eventType=None,):
  21552. self.db_name = db_name
  21553. self.tbl_name = tbl_name
  21554. self.part_vals = part_vals
  21555. self.eventType = eventType
  21556. def read(self, iprot):
  21557. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21558. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21559. return
  21560. iprot.readStructBegin()
  21561. while True:
  21562. (fname, ftype, fid) = iprot.readFieldBegin()
  21563. if ftype == TType.STOP:
  21564. break
  21565. if fid == 1:
  21566. if ftype == TType.STRING:
  21567. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21568. else:
  21569. iprot.skip(ftype)
  21570. elif fid == 2:
  21571. if ftype == TType.STRING:
  21572. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21573. else:
  21574. iprot.skip(ftype)
  21575. elif fid == 3:
  21576. if ftype == TType.MAP:
  21577. self.part_vals = {}
  21578. (_ktype953, _vtype954, _size952) = iprot.readMapBegin()
  21579. for _i956 in range(_size952):
  21580. _key957 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21581. _val958 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21582. self.part_vals[_key957] = _val958
  21583. iprot.readMapEnd()
  21584. else:
  21585. iprot.skip(ftype)
  21586. elif fid == 4:
  21587. if ftype == TType.I32:
  21588. self.eventType = iprot.readI32()
  21589. else:
  21590. iprot.skip(ftype)
  21591. else:
  21592. iprot.skip(ftype)
  21593. iprot.readFieldEnd()
  21594. iprot.readStructEnd()
  21595. def write(self, oprot):
  21596. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21597. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21598. return
  21599. oprot.writeStructBegin('markPartitionForEvent_args')
  21600. if self.db_name is not None:
  21601. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  21602. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  21603. oprot.writeFieldEnd()
  21604. if self.tbl_name is not None:
  21605. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  21606. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  21607. oprot.writeFieldEnd()
  21608. if self.part_vals is not None:
  21609. oprot.writeFieldBegin('part_vals', TType.MAP, 3)
  21610. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals))
  21611. for kiter959, viter960 in self.part_vals.items():
  21612. oprot.writeString(kiter959.encode('utf-8') if sys.version_info[0] == 2 else kiter959)
  21613. oprot.writeString(viter960.encode('utf-8') if sys.version_info[0] == 2 else viter960)
  21614. oprot.writeMapEnd()
  21615. oprot.writeFieldEnd()
  21616. if self.eventType is not None:
  21617. oprot.writeFieldBegin('eventType', TType.I32, 4)
  21618. oprot.writeI32(self.eventType)
  21619. oprot.writeFieldEnd()
  21620. oprot.writeFieldStop()
  21621. oprot.writeStructEnd()
  21622. def validate(self):
  21623. return
  21624. def __repr__(self):
  21625. L = ['%s=%r' % (key, value)
  21626. for key, value in self.__dict__.items()]
  21627. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21628. def __eq__(self, other):
  21629. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21630. def __ne__(self, other):
  21631. return not (self == other)
  21632. all_structs.append(markPartitionForEvent_args)
  21633. markPartitionForEvent_args.thrift_spec = (
  21634. None, # 0
  21635. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  21636. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  21637. (3, TType.MAP, 'part_vals', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3
  21638. (4, TType.I32, 'eventType', None, None, ), # 4
  21639. )
  21640. class markPartitionForEvent_result(object):
  21641. """
  21642. Attributes:
  21643. - o1
  21644. - o2
  21645. - o3
  21646. - o4
  21647. - o5
  21648. - o6
  21649. """
  21650. def __init__(self, o1=None, o2=None, o3=None, o4=None, o5=None, o6=None,):
  21651. self.o1 = o1
  21652. self.o2 = o2
  21653. self.o3 = o3
  21654. self.o4 = o4
  21655. self.o5 = o5
  21656. self.o6 = o6
  21657. def read(self, iprot):
  21658. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21659. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21660. return
  21661. iprot.readStructBegin()
  21662. while True:
  21663. (fname, ftype, fid) = iprot.readFieldBegin()
  21664. if ftype == TType.STOP:
  21665. break
  21666. if fid == 1:
  21667. if ftype == TType.STRUCT:
  21668. self.o1 = MetaException()
  21669. self.o1.read(iprot)
  21670. else:
  21671. iprot.skip(ftype)
  21672. elif fid == 2:
  21673. if ftype == TType.STRUCT:
  21674. self.o2 = NoSuchObjectException()
  21675. self.o2.read(iprot)
  21676. else:
  21677. iprot.skip(ftype)
  21678. elif fid == 3:
  21679. if ftype == TType.STRUCT:
  21680. self.o3 = UnknownDBException()
  21681. self.o3.read(iprot)
  21682. else:
  21683. iprot.skip(ftype)
  21684. elif fid == 4:
  21685. if ftype == TType.STRUCT:
  21686. self.o4 = UnknownTableException()
  21687. self.o4.read(iprot)
  21688. else:
  21689. iprot.skip(ftype)
  21690. elif fid == 5:
  21691. if ftype == TType.STRUCT:
  21692. self.o5 = UnknownPartitionException()
  21693. self.o5.read(iprot)
  21694. else:
  21695. iprot.skip(ftype)
  21696. elif fid == 6:
  21697. if ftype == TType.STRUCT:
  21698. self.o6 = InvalidPartitionException()
  21699. self.o6.read(iprot)
  21700. else:
  21701. iprot.skip(ftype)
  21702. else:
  21703. iprot.skip(ftype)
  21704. iprot.readFieldEnd()
  21705. iprot.readStructEnd()
  21706. def write(self, oprot):
  21707. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21708. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21709. return
  21710. oprot.writeStructBegin('markPartitionForEvent_result')
  21711. if self.o1 is not None:
  21712. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21713. self.o1.write(oprot)
  21714. oprot.writeFieldEnd()
  21715. if self.o2 is not None:
  21716. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  21717. self.o2.write(oprot)
  21718. oprot.writeFieldEnd()
  21719. if self.o3 is not None:
  21720. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  21721. self.o3.write(oprot)
  21722. oprot.writeFieldEnd()
  21723. if self.o4 is not None:
  21724. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  21725. self.o4.write(oprot)
  21726. oprot.writeFieldEnd()
  21727. if self.o5 is not None:
  21728. oprot.writeFieldBegin('o5', TType.STRUCT, 5)
  21729. self.o5.write(oprot)
  21730. oprot.writeFieldEnd()
  21731. if self.o6 is not None:
  21732. oprot.writeFieldBegin('o6', TType.STRUCT, 6)
  21733. self.o6.write(oprot)
  21734. oprot.writeFieldEnd()
  21735. oprot.writeFieldStop()
  21736. oprot.writeStructEnd()
  21737. def validate(self):
  21738. return
  21739. def __repr__(self):
  21740. L = ['%s=%r' % (key, value)
  21741. for key, value in self.__dict__.items()]
  21742. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21743. def __eq__(self, other):
  21744. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21745. def __ne__(self, other):
  21746. return not (self == other)
  21747. all_structs.append(markPartitionForEvent_result)
  21748. markPartitionForEvent_result.thrift_spec = (
  21749. None, # 0
  21750. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  21751. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  21752. (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3
  21753. (4, TType.STRUCT, 'o4', [UnknownTableException, None], None, ), # 4
  21754. (5, TType.STRUCT, 'o5', [UnknownPartitionException, None], None, ), # 5
  21755. (6, TType.STRUCT, 'o6', [InvalidPartitionException, None], None, ), # 6
  21756. )
  21757. class isPartitionMarkedForEvent_args(object):
  21758. """
  21759. Attributes:
  21760. - db_name
  21761. - tbl_name
  21762. - part_vals
  21763. - eventType
  21764. """
  21765. def __init__(self, db_name=None, tbl_name=None, part_vals=None, eventType=None,):
  21766. self.db_name = db_name
  21767. self.tbl_name = tbl_name
  21768. self.part_vals = part_vals
  21769. self.eventType = eventType
  21770. def read(self, iprot):
  21771. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21772. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21773. return
  21774. iprot.readStructBegin()
  21775. while True:
  21776. (fname, ftype, fid) = iprot.readFieldBegin()
  21777. if ftype == TType.STOP:
  21778. break
  21779. if fid == 1:
  21780. if ftype == TType.STRING:
  21781. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21782. else:
  21783. iprot.skip(ftype)
  21784. elif fid == 2:
  21785. if ftype == TType.STRING:
  21786. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21787. else:
  21788. iprot.skip(ftype)
  21789. elif fid == 3:
  21790. if ftype == TType.MAP:
  21791. self.part_vals = {}
  21792. (_ktype962, _vtype963, _size961) = iprot.readMapBegin()
  21793. for _i965 in range(_size961):
  21794. _key966 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21795. _val967 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  21796. self.part_vals[_key966] = _val967
  21797. iprot.readMapEnd()
  21798. else:
  21799. iprot.skip(ftype)
  21800. elif fid == 4:
  21801. if ftype == TType.I32:
  21802. self.eventType = iprot.readI32()
  21803. else:
  21804. iprot.skip(ftype)
  21805. else:
  21806. iprot.skip(ftype)
  21807. iprot.readFieldEnd()
  21808. iprot.readStructEnd()
  21809. def write(self, oprot):
  21810. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21811. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21812. return
  21813. oprot.writeStructBegin('isPartitionMarkedForEvent_args')
  21814. if self.db_name is not None:
  21815. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  21816. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  21817. oprot.writeFieldEnd()
  21818. if self.tbl_name is not None:
  21819. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  21820. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  21821. oprot.writeFieldEnd()
  21822. if self.part_vals is not None:
  21823. oprot.writeFieldBegin('part_vals', TType.MAP, 3)
  21824. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals))
  21825. for kiter968, viter969 in self.part_vals.items():
  21826. oprot.writeString(kiter968.encode('utf-8') if sys.version_info[0] == 2 else kiter968)
  21827. oprot.writeString(viter969.encode('utf-8') if sys.version_info[0] == 2 else viter969)
  21828. oprot.writeMapEnd()
  21829. oprot.writeFieldEnd()
  21830. if self.eventType is not None:
  21831. oprot.writeFieldBegin('eventType', TType.I32, 4)
  21832. oprot.writeI32(self.eventType)
  21833. oprot.writeFieldEnd()
  21834. oprot.writeFieldStop()
  21835. oprot.writeStructEnd()
  21836. def validate(self):
  21837. return
  21838. def __repr__(self):
  21839. L = ['%s=%r' % (key, value)
  21840. for key, value in self.__dict__.items()]
  21841. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21842. def __eq__(self, other):
  21843. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21844. def __ne__(self, other):
  21845. return not (self == other)
  21846. all_structs.append(isPartitionMarkedForEvent_args)
  21847. isPartitionMarkedForEvent_args.thrift_spec = (
  21848. None, # 0
  21849. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  21850. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  21851. (3, TType.MAP, 'part_vals', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3
  21852. (4, TType.I32, 'eventType', None, None, ), # 4
  21853. )
  21854. class isPartitionMarkedForEvent_result(object):
  21855. """
  21856. Attributes:
  21857. - success
  21858. - o1
  21859. - o2
  21860. - o3
  21861. - o4
  21862. - o5
  21863. - o6
  21864. """
  21865. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None, o5=None, o6=None,):
  21866. self.success = success
  21867. self.o1 = o1
  21868. self.o2 = o2
  21869. self.o3 = o3
  21870. self.o4 = o4
  21871. self.o5 = o5
  21872. self.o6 = o6
  21873. def read(self, iprot):
  21874. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21875. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21876. return
  21877. iprot.readStructBegin()
  21878. while True:
  21879. (fname, ftype, fid) = iprot.readFieldBegin()
  21880. if ftype == TType.STOP:
  21881. break
  21882. if fid == 0:
  21883. if ftype == TType.BOOL:
  21884. self.success = iprot.readBool()
  21885. else:
  21886. iprot.skip(ftype)
  21887. elif fid == 1:
  21888. if ftype == TType.STRUCT:
  21889. self.o1 = MetaException()
  21890. self.o1.read(iprot)
  21891. else:
  21892. iprot.skip(ftype)
  21893. elif fid == 2:
  21894. if ftype == TType.STRUCT:
  21895. self.o2 = NoSuchObjectException()
  21896. self.o2.read(iprot)
  21897. else:
  21898. iprot.skip(ftype)
  21899. elif fid == 3:
  21900. if ftype == TType.STRUCT:
  21901. self.o3 = UnknownDBException()
  21902. self.o3.read(iprot)
  21903. else:
  21904. iprot.skip(ftype)
  21905. elif fid == 4:
  21906. if ftype == TType.STRUCT:
  21907. self.o4 = UnknownTableException()
  21908. self.o4.read(iprot)
  21909. else:
  21910. iprot.skip(ftype)
  21911. elif fid == 5:
  21912. if ftype == TType.STRUCT:
  21913. self.o5 = UnknownPartitionException()
  21914. self.o5.read(iprot)
  21915. else:
  21916. iprot.skip(ftype)
  21917. elif fid == 6:
  21918. if ftype == TType.STRUCT:
  21919. self.o6 = InvalidPartitionException()
  21920. self.o6.read(iprot)
  21921. else:
  21922. iprot.skip(ftype)
  21923. else:
  21924. iprot.skip(ftype)
  21925. iprot.readFieldEnd()
  21926. iprot.readStructEnd()
  21927. def write(self, oprot):
  21928. if oprot._fast_encode is not None and self.thrift_spec is not None:
  21929. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  21930. return
  21931. oprot.writeStructBegin('isPartitionMarkedForEvent_result')
  21932. if self.success is not None:
  21933. oprot.writeFieldBegin('success', TType.BOOL, 0)
  21934. oprot.writeBool(self.success)
  21935. oprot.writeFieldEnd()
  21936. if self.o1 is not None:
  21937. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  21938. self.o1.write(oprot)
  21939. oprot.writeFieldEnd()
  21940. if self.o2 is not None:
  21941. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  21942. self.o2.write(oprot)
  21943. oprot.writeFieldEnd()
  21944. if self.o3 is not None:
  21945. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  21946. self.o3.write(oprot)
  21947. oprot.writeFieldEnd()
  21948. if self.o4 is not None:
  21949. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  21950. self.o4.write(oprot)
  21951. oprot.writeFieldEnd()
  21952. if self.o5 is not None:
  21953. oprot.writeFieldBegin('o5', TType.STRUCT, 5)
  21954. self.o5.write(oprot)
  21955. oprot.writeFieldEnd()
  21956. if self.o6 is not None:
  21957. oprot.writeFieldBegin('o6', TType.STRUCT, 6)
  21958. self.o6.write(oprot)
  21959. oprot.writeFieldEnd()
  21960. oprot.writeFieldStop()
  21961. oprot.writeStructEnd()
  21962. def validate(self):
  21963. return
  21964. def __repr__(self):
  21965. L = ['%s=%r' % (key, value)
  21966. for key, value in self.__dict__.items()]
  21967. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  21968. def __eq__(self, other):
  21969. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  21970. def __ne__(self, other):
  21971. return not (self == other)
  21972. all_structs.append(isPartitionMarkedForEvent_result)
  21973. isPartitionMarkedForEvent_result.thrift_spec = (
  21974. (0, TType.BOOL, 'success', None, None, ), # 0
  21975. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  21976. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  21977. (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3
  21978. (4, TType.STRUCT, 'o4', [UnknownTableException, None], None, ), # 4
  21979. (5, TType.STRUCT, 'o5', [UnknownPartitionException, None], None, ), # 5
  21980. (6, TType.STRUCT, 'o6', [InvalidPartitionException, None], None, ), # 6
  21981. )
  21982. class add_index_args(object):
  21983. """
  21984. Attributes:
  21985. - new_index
  21986. - index_table
  21987. """
  21988. def __init__(self, new_index=None, index_table=None,):
  21989. self.new_index = new_index
  21990. self.index_table = index_table
  21991. def read(self, iprot):
  21992. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  21993. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  21994. return
  21995. iprot.readStructBegin()
  21996. while True:
  21997. (fname, ftype, fid) = iprot.readFieldBegin()
  21998. if ftype == TType.STOP:
  21999. break
  22000. if fid == 1:
  22001. if ftype == TType.STRUCT:
  22002. self.new_index = Index()
  22003. self.new_index.read(iprot)
  22004. else:
  22005. iprot.skip(ftype)
  22006. elif fid == 2:
  22007. if ftype == TType.STRUCT:
  22008. self.index_table = Table()
  22009. self.index_table.read(iprot)
  22010. else:
  22011. iprot.skip(ftype)
  22012. else:
  22013. iprot.skip(ftype)
  22014. iprot.readFieldEnd()
  22015. iprot.readStructEnd()
  22016. def write(self, oprot):
  22017. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22018. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22019. return
  22020. oprot.writeStructBegin('add_index_args')
  22021. if self.new_index is not None:
  22022. oprot.writeFieldBegin('new_index', TType.STRUCT, 1)
  22023. self.new_index.write(oprot)
  22024. oprot.writeFieldEnd()
  22025. if self.index_table is not None:
  22026. oprot.writeFieldBegin('index_table', TType.STRUCT, 2)
  22027. self.index_table.write(oprot)
  22028. oprot.writeFieldEnd()
  22029. oprot.writeFieldStop()
  22030. oprot.writeStructEnd()
  22031. def validate(self):
  22032. return
  22033. def __repr__(self):
  22034. L = ['%s=%r' % (key, value)
  22035. for key, value in self.__dict__.items()]
  22036. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22037. def __eq__(self, other):
  22038. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22039. def __ne__(self, other):
  22040. return not (self == other)
  22041. all_structs.append(add_index_args)
  22042. add_index_args.thrift_spec = (
  22043. None, # 0
  22044. (1, TType.STRUCT, 'new_index', [Index, None], None, ), # 1
  22045. (2, TType.STRUCT, 'index_table', [Table, None], None, ), # 2
  22046. )
  22047. class add_index_result(object):
  22048. """
  22049. Attributes:
  22050. - success
  22051. - o1
  22052. - o2
  22053. - o3
  22054. """
  22055. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  22056. self.success = success
  22057. self.o1 = o1
  22058. self.o2 = o2
  22059. self.o3 = o3
  22060. def read(self, iprot):
  22061. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22062. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  22063. return
  22064. iprot.readStructBegin()
  22065. while True:
  22066. (fname, ftype, fid) = iprot.readFieldBegin()
  22067. if ftype == TType.STOP:
  22068. break
  22069. if fid == 0:
  22070. if ftype == TType.STRUCT:
  22071. self.success = Index()
  22072. self.success.read(iprot)
  22073. else:
  22074. iprot.skip(ftype)
  22075. elif fid == 1:
  22076. if ftype == TType.STRUCT:
  22077. self.o1 = InvalidObjectException()
  22078. self.o1.read(iprot)
  22079. else:
  22080. iprot.skip(ftype)
  22081. elif fid == 2:
  22082. if ftype == TType.STRUCT:
  22083. self.o2 = AlreadyExistsException()
  22084. self.o2.read(iprot)
  22085. else:
  22086. iprot.skip(ftype)
  22087. elif fid == 3:
  22088. if ftype == TType.STRUCT:
  22089. self.o3 = MetaException()
  22090. self.o3.read(iprot)
  22091. else:
  22092. iprot.skip(ftype)
  22093. else:
  22094. iprot.skip(ftype)
  22095. iprot.readFieldEnd()
  22096. iprot.readStructEnd()
  22097. def write(self, oprot):
  22098. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22099. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22100. return
  22101. oprot.writeStructBegin('add_index_result')
  22102. if self.success is not None:
  22103. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  22104. self.success.write(oprot)
  22105. oprot.writeFieldEnd()
  22106. if self.o1 is not None:
  22107. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  22108. self.o1.write(oprot)
  22109. oprot.writeFieldEnd()
  22110. if self.o2 is not None:
  22111. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  22112. self.o2.write(oprot)
  22113. oprot.writeFieldEnd()
  22114. if self.o3 is not None:
  22115. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  22116. self.o3.write(oprot)
  22117. oprot.writeFieldEnd()
  22118. oprot.writeFieldStop()
  22119. oprot.writeStructEnd()
  22120. def validate(self):
  22121. return
  22122. def __repr__(self):
  22123. L = ['%s=%r' % (key, value)
  22124. for key, value in self.__dict__.items()]
  22125. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22126. def __eq__(self, other):
  22127. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22128. def __ne__(self, other):
  22129. return not (self == other)
  22130. all_structs.append(add_index_result)
  22131. add_index_result.thrift_spec = (
  22132. (0, TType.STRUCT, 'success', [Index, None], None, ), # 0
  22133. (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1
  22134. (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2
  22135. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  22136. )
  22137. class alter_index_args(object):
  22138. """
  22139. Attributes:
  22140. - dbname
  22141. - base_tbl_name
  22142. - idx_name
  22143. - new_idx
  22144. """
  22145. def __init__(self, dbname=None, base_tbl_name=None, idx_name=None, new_idx=None,):
  22146. self.dbname = dbname
  22147. self.base_tbl_name = base_tbl_name
  22148. self.idx_name = idx_name
  22149. self.new_idx = new_idx
  22150. def read(self, iprot):
  22151. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22152. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  22153. return
  22154. iprot.readStructBegin()
  22155. while True:
  22156. (fname, ftype, fid) = iprot.readFieldBegin()
  22157. if ftype == TType.STOP:
  22158. break
  22159. if fid == 1:
  22160. if ftype == TType.STRING:
  22161. self.dbname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22162. else:
  22163. iprot.skip(ftype)
  22164. elif fid == 2:
  22165. if ftype == TType.STRING:
  22166. self.base_tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22167. else:
  22168. iprot.skip(ftype)
  22169. elif fid == 3:
  22170. if ftype == TType.STRING:
  22171. self.idx_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22172. else:
  22173. iprot.skip(ftype)
  22174. elif fid == 4:
  22175. if ftype == TType.STRUCT:
  22176. self.new_idx = Index()
  22177. self.new_idx.read(iprot)
  22178. else:
  22179. iprot.skip(ftype)
  22180. else:
  22181. iprot.skip(ftype)
  22182. iprot.readFieldEnd()
  22183. iprot.readStructEnd()
  22184. def write(self, oprot):
  22185. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22186. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22187. return
  22188. oprot.writeStructBegin('alter_index_args')
  22189. if self.dbname is not None:
  22190. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  22191. oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
  22192. oprot.writeFieldEnd()
  22193. if self.base_tbl_name is not None:
  22194. oprot.writeFieldBegin('base_tbl_name', TType.STRING, 2)
  22195. oprot.writeString(self.base_tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.base_tbl_name)
  22196. oprot.writeFieldEnd()
  22197. if self.idx_name is not None:
  22198. oprot.writeFieldBegin('idx_name', TType.STRING, 3)
  22199. oprot.writeString(self.idx_name.encode('utf-8') if sys.version_info[0] == 2 else self.idx_name)
  22200. oprot.writeFieldEnd()
  22201. if self.new_idx is not None:
  22202. oprot.writeFieldBegin('new_idx', TType.STRUCT, 4)
  22203. self.new_idx.write(oprot)
  22204. oprot.writeFieldEnd()
  22205. oprot.writeFieldStop()
  22206. oprot.writeStructEnd()
  22207. def validate(self):
  22208. return
  22209. def __repr__(self):
  22210. L = ['%s=%r' % (key, value)
  22211. for key, value in self.__dict__.items()]
  22212. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22213. def __eq__(self, other):
  22214. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22215. def __ne__(self, other):
  22216. return not (self == other)
  22217. all_structs.append(alter_index_args)
  22218. alter_index_args.thrift_spec = (
  22219. None, # 0
  22220. (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1
  22221. (2, TType.STRING, 'base_tbl_name', 'UTF8', None, ), # 2
  22222. (3, TType.STRING, 'idx_name', 'UTF8', None, ), # 3
  22223. (4, TType.STRUCT, 'new_idx', [Index, None], None, ), # 4
  22224. )
  22225. class alter_index_result(object):
  22226. """
  22227. Attributes:
  22228. - o1
  22229. - o2
  22230. """
  22231. def __init__(self, o1=None, o2=None,):
  22232. self.o1 = o1
  22233. self.o2 = o2
  22234. def read(self, iprot):
  22235. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22236. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  22237. return
  22238. iprot.readStructBegin()
  22239. while True:
  22240. (fname, ftype, fid) = iprot.readFieldBegin()
  22241. if ftype == TType.STOP:
  22242. break
  22243. if fid == 1:
  22244. if ftype == TType.STRUCT:
  22245. self.o1 = InvalidOperationException()
  22246. self.o1.read(iprot)
  22247. else:
  22248. iprot.skip(ftype)
  22249. elif fid == 2:
  22250. if ftype == TType.STRUCT:
  22251. self.o2 = MetaException()
  22252. self.o2.read(iprot)
  22253. else:
  22254. iprot.skip(ftype)
  22255. else:
  22256. iprot.skip(ftype)
  22257. iprot.readFieldEnd()
  22258. iprot.readStructEnd()
  22259. def write(self, oprot):
  22260. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22261. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22262. return
  22263. oprot.writeStructBegin('alter_index_result')
  22264. if self.o1 is not None:
  22265. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  22266. self.o1.write(oprot)
  22267. oprot.writeFieldEnd()
  22268. if self.o2 is not None:
  22269. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  22270. self.o2.write(oprot)
  22271. oprot.writeFieldEnd()
  22272. oprot.writeFieldStop()
  22273. oprot.writeStructEnd()
  22274. def validate(self):
  22275. return
  22276. def __repr__(self):
  22277. L = ['%s=%r' % (key, value)
  22278. for key, value in self.__dict__.items()]
  22279. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22280. def __eq__(self, other):
  22281. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22282. def __ne__(self, other):
  22283. return not (self == other)
  22284. all_structs.append(alter_index_result)
  22285. alter_index_result.thrift_spec = (
  22286. None, # 0
  22287. (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1
  22288. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  22289. )
  22290. class drop_index_by_name_args(object):
  22291. """
  22292. Attributes:
  22293. - db_name
  22294. - tbl_name
  22295. - index_name
  22296. - deleteData
  22297. """
  22298. def __init__(self, db_name=None, tbl_name=None, index_name=None, deleteData=None,):
  22299. self.db_name = db_name
  22300. self.tbl_name = tbl_name
  22301. self.index_name = index_name
  22302. self.deleteData = deleteData
  22303. def read(self, iprot):
  22304. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22305. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  22306. return
  22307. iprot.readStructBegin()
  22308. while True:
  22309. (fname, ftype, fid) = iprot.readFieldBegin()
  22310. if ftype == TType.STOP:
  22311. break
  22312. if fid == 1:
  22313. if ftype == TType.STRING:
  22314. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22315. else:
  22316. iprot.skip(ftype)
  22317. elif fid == 2:
  22318. if ftype == TType.STRING:
  22319. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22320. else:
  22321. iprot.skip(ftype)
  22322. elif fid == 3:
  22323. if ftype == TType.STRING:
  22324. self.index_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22325. else:
  22326. iprot.skip(ftype)
  22327. elif fid == 4:
  22328. if ftype == TType.BOOL:
  22329. self.deleteData = iprot.readBool()
  22330. else:
  22331. iprot.skip(ftype)
  22332. else:
  22333. iprot.skip(ftype)
  22334. iprot.readFieldEnd()
  22335. iprot.readStructEnd()
  22336. def write(self, oprot):
  22337. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22338. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22339. return
  22340. oprot.writeStructBegin('drop_index_by_name_args')
  22341. if self.db_name is not None:
  22342. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  22343. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  22344. oprot.writeFieldEnd()
  22345. if self.tbl_name is not None:
  22346. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  22347. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  22348. oprot.writeFieldEnd()
  22349. if self.index_name is not None:
  22350. oprot.writeFieldBegin('index_name', TType.STRING, 3)
  22351. oprot.writeString(self.index_name.encode('utf-8') if sys.version_info[0] == 2 else self.index_name)
  22352. oprot.writeFieldEnd()
  22353. if self.deleteData is not None:
  22354. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  22355. oprot.writeBool(self.deleteData)
  22356. oprot.writeFieldEnd()
  22357. oprot.writeFieldStop()
  22358. oprot.writeStructEnd()
  22359. def validate(self):
  22360. return
  22361. def __repr__(self):
  22362. L = ['%s=%r' % (key, value)
  22363. for key, value in self.__dict__.items()]
  22364. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22365. def __eq__(self, other):
  22366. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22367. def __ne__(self, other):
  22368. return not (self == other)
  22369. all_structs.append(drop_index_by_name_args)
  22370. drop_index_by_name_args.thrift_spec = (
  22371. None, # 0
  22372. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  22373. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  22374. (3, TType.STRING, 'index_name', 'UTF8', None, ), # 3
  22375. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  22376. )
  22377. class drop_index_by_name_result(object):
  22378. """
  22379. Attributes:
  22380. - success
  22381. - o1
  22382. - o2
  22383. """
  22384. def __init__(self, success=None, o1=None, o2=None,):
  22385. self.success = success
  22386. self.o1 = o1
  22387. self.o2 = o2
  22388. def read(self, iprot):
  22389. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22390. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  22391. return
  22392. iprot.readStructBegin()
  22393. while True:
  22394. (fname, ftype, fid) = iprot.readFieldBegin()
  22395. if ftype == TType.STOP:
  22396. break
  22397. if fid == 0:
  22398. if ftype == TType.BOOL:
  22399. self.success = iprot.readBool()
  22400. else:
  22401. iprot.skip(ftype)
  22402. elif fid == 1:
  22403. if ftype == TType.STRUCT:
  22404. self.o1 = NoSuchObjectException()
  22405. self.o1.read(iprot)
  22406. else:
  22407. iprot.skip(ftype)
  22408. elif fid == 2:
  22409. if ftype == TType.STRUCT:
  22410. self.o2 = MetaException()
  22411. self.o2.read(iprot)
  22412. else:
  22413. iprot.skip(ftype)
  22414. else:
  22415. iprot.skip(ftype)
  22416. iprot.readFieldEnd()
  22417. iprot.readStructEnd()
  22418. def write(self, oprot):
  22419. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22420. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22421. return
  22422. oprot.writeStructBegin('drop_index_by_name_result')
  22423. if self.success is not None:
  22424. oprot.writeFieldBegin('success', TType.BOOL, 0)
  22425. oprot.writeBool(self.success)
  22426. oprot.writeFieldEnd()
  22427. if self.o1 is not None:
  22428. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  22429. self.o1.write(oprot)
  22430. oprot.writeFieldEnd()
  22431. if self.o2 is not None:
  22432. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  22433. self.o2.write(oprot)
  22434. oprot.writeFieldEnd()
  22435. oprot.writeFieldStop()
  22436. oprot.writeStructEnd()
  22437. def validate(self):
  22438. return
  22439. def __repr__(self):
  22440. L = ['%s=%r' % (key, value)
  22441. for key, value in self.__dict__.items()]
  22442. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22443. def __eq__(self, other):
  22444. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22445. def __ne__(self, other):
  22446. return not (self == other)
  22447. all_structs.append(drop_index_by_name_result)
  22448. drop_index_by_name_result.thrift_spec = (
  22449. (0, TType.BOOL, 'success', None, None, ), # 0
  22450. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  22451. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  22452. )
  22453. class get_index_by_name_args(object):
  22454. """
  22455. Attributes:
  22456. - db_name
  22457. - tbl_name
  22458. - index_name
  22459. """
  22460. def __init__(self, db_name=None, tbl_name=None, index_name=None,):
  22461. self.db_name = db_name
  22462. self.tbl_name = tbl_name
  22463. self.index_name = index_name
  22464. def read(self, iprot):
  22465. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22466. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  22467. return
  22468. iprot.readStructBegin()
  22469. while True:
  22470. (fname, ftype, fid) = iprot.readFieldBegin()
  22471. if ftype == TType.STOP:
  22472. break
  22473. if fid == 1:
  22474. if ftype == TType.STRING:
  22475. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22476. else:
  22477. iprot.skip(ftype)
  22478. elif fid == 2:
  22479. if ftype == TType.STRING:
  22480. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22481. else:
  22482. iprot.skip(ftype)
  22483. elif fid == 3:
  22484. if ftype == TType.STRING:
  22485. self.index_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22486. else:
  22487. iprot.skip(ftype)
  22488. else:
  22489. iprot.skip(ftype)
  22490. iprot.readFieldEnd()
  22491. iprot.readStructEnd()
  22492. def write(self, oprot):
  22493. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22494. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22495. return
  22496. oprot.writeStructBegin('get_index_by_name_args')
  22497. if self.db_name is not None:
  22498. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  22499. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  22500. oprot.writeFieldEnd()
  22501. if self.tbl_name is not None:
  22502. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  22503. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  22504. oprot.writeFieldEnd()
  22505. if self.index_name is not None:
  22506. oprot.writeFieldBegin('index_name', TType.STRING, 3)
  22507. oprot.writeString(self.index_name.encode('utf-8') if sys.version_info[0] == 2 else self.index_name)
  22508. oprot.writeFieldEnd()
  22509. oprot.writeFieldStop()
  22510. oprot.writeStructEnd()
  22511. def validate(self):
  22512. return
  22513. def __repr__(self):
  22514. L = ['%s=%r' % (key, value)
  22515. for key, value in self.__dict__.items()]
  22516. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22517. def __eq__(self, other):
  22518. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22519. def __ne__(self, other):
  22520. return not (self == other)
  22521. all_structs.append(get_index_by_name_args)
  22522. get_index_by_name_args.thrift_spec = (
  22523. None, # 0
  22524. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  22525. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  22526. (3, TType.STRING, 'index_name', 'UTF8', None, ), # 3
  22527. )
  22528. class get_index_by_name_result(object):
  22529. """
  22530. Attributes:
  22531. - success
  22532. - o1
  22533. - o2
  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._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22541. iprot._fast_decode(self, iprot, [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.STRUCT:
  22550. self.success = Index()
  22551. self.success.read(iprot)
  22552. else:
  22553. iprot.skip(ftype)
  22554. elif fid == 1:
  22555. if ftype == TType.STRUCT:
  22556. self.o1 = MetaException()
  22557. self.o1.read(iprot)
  22558. else:
  22559. iprot.skip(ftype)
  22560. elif fid == 2:
  22561. if ftype == TType.STRUCT:
  22562. self.o2 = NoSuchObjectException()
  22563. self.o2.read(iprot)
  22564. else:
  22565. iprot.skip(ftype)
  22566. else:
  22567. iprot.skip(ftype)
  22568. iprot.readFieldEnd()
  22569. iprot.readStructEnd()
  22570. def write(self, oprot):
  22571. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22572. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22573. return
  22574. oprot.writeStructBegin('get_index_by_name_result')
  22575. if self.success is not None:
  22576. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  22577. self.success.write(oprot)
  22578. oprot.writeFieldEnd()
  22579. if self.o1 is not None:
  22580. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  22581. self.o1.write(oprot)
  22582. oprot.writeFieldEnd()
  22583. if self.o2 is not None:
  22584. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  22585. self.o2.write(oprot)
  22586. oprot.writeFieldEnd()
  22587. oprot.writeFieldStop()
  22588. oprot.writeStructEnd()
  22589. def validate(self):
  22590. return
  22591. def __repr__(self):
  22592. L = ['%s=%r' % (key, value)
  22593. for key, value in self.__dict__.items()]
  22594. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22595. def __eq__(self, other):
  22596. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22597. def __ne__(self, other):
  22598. return not (self == other)
  22599. all_structs.append(get_index_by_name_result)
  22600. get_index_by_name_result.thrift_spec = (
  22601. (0, TType.STRUCT, 'success', [Index, None], None, ), # 0
  22602. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  22603. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  22604. )
  22605. class get_indexes_args(object):
  22606. """
  22607. Attributes:
  22608. - db_name
  22609. - tbl_name
  22610. - max_indexes
  22611. """
  22612. def __init__(self, db_name=None, tbl_name=None, max_indexes=-1,):
  22613. self.db_name = db_name
  22614. self.tbl_name = tbl_name
  22615. self.max_indexes = max_indexes
  22616. def read(self, iprot):
  22617. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22618. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  22619. return
  22620. iprot.readStructBegin()
  22621. while True:
  22622. (fname, ftype, fid) = iprot.readFieldBegin()
  22623. if ftype == TType.STOP:
  22624. break
  22625. if fid == 1:
  22626. if ftype == TType.STRING:
  22627. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22628. else:
  22629. iprot.skip(ftype)
  22630. elif fid == 2:
  22631. if ftype == TType.STRING:
  22632. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22633. else:
  22634. iprot.skip(ftype)
  22635. elif fid == 3:
  22636. if ftype == TType.I16:
  22637. self.max_indexes = iprot.readI16()
  22638. else:
  22639. iprot.skip(ftype)
  22640. else:
  22641. iprot.skip(ftype)
  22642. iprot.readFieldEnd()
  22643. iprot.readStructEnd()
  22644. def write(self, oprot):
  22645. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22646. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22647. return
  22648. oprot.writeStructBegin('get_indexes_args')
  22649. if self.db_name is not None:
  22650. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  22651. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  22652. oprot.writeFieldEnd()
  22653. if self.tbl_name is not None:
  22654. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  22655. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  22656. oprot.writeFieldEnd()
  22657. if self.max_indexes is not None:
  22658. oprot.writeFieldBegin('max_indexes', TType.I16, 3)
  22659. oprot.writeI16(self.max_indexes)
  22660. oprot.writeFieldEnd()
  22661. oprot.writeFieldStop()
  22662. oprot.writeStructEnd()
  22663. def validate(self):
  22664. return
  22665. def __repr__(self):
  22666. L = ['%s=%r' % (key, value)
  22667. for key, value in self.__dict__.items()]
  22668. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22669. def __eq__(self, other):
  22670. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22671. def __ne__(self, other):
  22672. return not (self == other)
  22673. all_structs.append(get_indexes_args)
  22674. get_indexes_args.thrift_spec = (
  22675. None, # 0
  22676. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  22677. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  22678. (3, TType.I16, 'max_indexes', None, -1, ), # 3
  22679. )
  22680. class get_indexes_result(object):
  22681. """
  22682. Attributes:
  22683. - success
  22684. - o1
  22685. - o2
  22686. """
  22687. def __init__(self, success=None, o1=None, o2=None,):
  22688. self.success = success
  22689. self.o1 = o1
  22690. self.o2 = o2
  22691. def read(self, iprot):
  22692. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22693. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  22694. return
  22695. iprot.readStructBegin()
  22696. while True:
  22697. (fname, ftype, fid) = iprot.readFieldBegin()
  22698. if ftype == TType.STOP:
  22699. break
  22700. if fid == 0:
  22701. if ftype == TType.LIST:
  22702. self.success = []
  22703. (_etype973, _size970) = iprot.readListBegin()
  22704. for _i974 in range(_size970):
  22705. _elem975 = Index()
  22706. _elem975.read(iprot)
  22707. self.success.append(_elem975)
  22708. iprot.readListEnd()
  22709. else:
  22710. iprot.skip(ftype)
  22711. elif fid == 1:
  22712. if ftype == TType.STRUCT:
  22713. self.o1 = NoSuchObjectException()
  22714. self.o1.read(iprot)
  22715. else:
  22716. iprot.skip(ftype)
  22717. elif fid == 2:
  22718. if ftype == TType.STRUCT:
  22719. self.o2 = MetaException()
  22720. self.o2.read(iprot)
  22721. else:
  22722. iprot.skip(ftype)
  22723. else:
  22724. iprot.skip(ftype)
  22725. iprot.readFieldEnd()
  22726. iprot.readStructEnd()
  22727. def write(self, oprot):
  22728. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22729. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22730. return
  22731. oprot.writeStructBegin('get_indexes_result')
  22732. if self.success is not None:
  22733. oprot.writeFieldBegin('success', TType.LIST, 0)
  22734. oprot.writeListBegin(TType.STRUCT, len(self.success))
  22735. for iter976 in self.success:
  22736. iter976.write(oprot)
  22737. oprot.writeListEnd()
  22738. oprot.writeFieldEnd()
  22739. if self.o1 is not None:
  22740. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  22741. self.o1.write(oprot)
  22742. oprot.writeFieldEnd()
  22743. if self.o2 is not None:
  22744. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  22745. self.o2.write(oprot)
  22746. oprot.writeFieldEnd()
  22747. oprot.writeFieldStop()
  22748. oprot.writeStructEnd()
  22749. def validate(self):
  22750. return
  22751. def __repr__(self):
  22752. L = ['%s=%r' % (key, value)
  22753. for key, value in self.__dict__.items()]
  22754. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22755. def __eq__(self, other):
  22756. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22757. def __ne__(self, other):
  22758. return not (self == other)
  22759. all_structs.append(get_indexes_result)
  22760. get_indexes_result.thrift_spec = (
  22761. (0, TType.LIST, 'success', (TType.STRUCT, [Index, None], False), None, ), # 0
  22762. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  22763. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  22764. )
  22765. class get_index_names_args(object):
  22766. """
  22767. Attributes:
  22768. - db_name
  22769. - tbl_name
  22770. - max_indexes
  22771. """
  22772. def __init__(self, db_name=None, tbl_name=None, max_indexes=-1,):
  22773. self.db_name = db_name
  22774. self.tbl_name = tbl_name
  22775. self.max_indexes = max_indexes
  22776. def read(self, iprot):
  22777. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22778. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  22779. return
  22780. iprot.readStructBegin()
  22781. while True:
  22782. (fname, ftype, fid) = iprot.readFieldBegin()
  22783. if ftype == TType.STOP:
  22784. break
  22785. if fid == 1:
  22786. if ftype == TType.STRING:
  22787. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22788. else:
  22789. iprot.skip(ftype)
  22790. elif fid == 2:
  22791. if ftype == TType.STRING:
  22792. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22793. else:
  22794. iprot.skip(ftype)
  22795. elif fid == 3:
  22796. if ftype == TType.I16:
  22797. self.max_indexes = iprot.readI16()
  22798. else:
  22799. iprot.skip(ftype)
  22800. else:
  22801. iprot.skip(ftype)
  22802. iprot.readFieldEnd()
  22803. iprot.readStructEnd()
  22804. def write(self, oprot):
  22805. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22806. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22807. return
  22808. oprot.writeStructBegin('get_index_names_args')
  22809. if self.db_name is not None:
  22810. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  22811. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  22812. oprot.writeFieldEnd()
  22813. if self.tbl_name is not None:
  22814. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  22815. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  22816. oprot.writeFieldEnd()
  22817. if self.max_indexes is not None:
  22818. oprot.writeFieldBegin('max_indexes', TType.I16, 3)
  22819. oprot.writeI16(self.max_indexes)
  22820. oprot.writeFieldEnd()
  22821. oprot.writeFieldStop()
  22822. oprot.writeStructEnd()
  22823. def validate(self):
  22824. return
  22825. def __repr__(self):
  22826. L = ['%s=%r' % (key, value)
  22827. for key, value in self.__dict__.items()]
  22828. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22829. def __eq__(self, other):
  22830. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22831. def __ne__(self, other):
  22832. return not (self == other)
  22833. all_structs.append(get_index_names_args)
  22834. get_index_names_args.thrift_spec = (
  22835. None, # 0
  22836. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  22837. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  22838. (3, TType.I16, 'max_indexes', None, -1, ), # 3
  22839. )
  22840. class get_index_names_result(object):
  22841. """
  22842. Attributes:
  22843. - success
  22844. - o2
  22845. """
  22846. def __init__(self, success=None, o2=None,):
  22847. self.success = success
  22848. self.o2 = o2
  22849. def read(self, iprot):
  22850. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22851. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  22852. return
  22853. iprot.readStructBegin()
  22854. while True:
  22855. (fname, ftype, fid) = iprot.readFieldBegin()
  22856. if ftype == TType.STOP:
  22857. break
  22858. if fid == 0:
  22859. if ftype == TType.LIST:
  22860. self.success = []
  22861. (_etype980, _size977) = iprot.readListBegin()
  22862. for _i981 in range(_size977):
  22863. _elem982 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  22864. self.success.append(_elem982)
  22865. iprot.readListEnd()
  22866. else:
  22867. iprot.skip(ftype)
  22868. elif fid == 1:
  22869. if ftype == TType.STRUCT:
  22870. self.o2 = MetaException()
  22871. self.o2.read(iprot)
  22872. else:
  22873. iprot.skip(ftype)
  22874. else:
  22875. iprot.skip(ftype)
  22876. iprot.readFieldEnd()
  22877. iprot.readStructEnd()
  22878. def write(self, oprot):
  22879. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22880. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22881. return
  22882. oprot.writeStructBegin('get_index_names_result')
  22883. if self.success is not None:
  22884. oprot.writeFieldBegin('success', TType.LIST, 0)
  22885. oprot.writeListBegin(TType.STRING, len(self.success))
  22886. for iter983 in self.success:
  22887. oprot.writeString(iter983.encode('utf-8') if sys.version_info[0] == 2 else iter983)
  22888. oprot.writeListEnd()
  22889. oprot.writeFieldEnd()
  22890. if self.o2 is not None:
  22891. oprot.writeFieldBegin('o2', TType.STRUCT, 1)
  22892. self.o2.write(oprot)
  22893. oprot.writeFieldEnd()
  22894. oprot.writeFieldStop()
  22895. oprot.writeStructEnd()
  22896. def validate(self):
  22897. return
  22898. def __repr__(self):
  22899. L = ['%s=%r' % (key, value)
  22900. for key, value in self.__dict__.items()]
  22901. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22902. def __eq__(self, other):
  22903. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22904. def __ne__(self, other):
  22905. return not (self == other)
  22906. all_structs.append(get_index_names_result)
  22907. get_index_names_result.thrift_spec = (
  22908. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  22909. (1, TType.STRUCT, 'o2', [MetaException, None], None, ), # 1
  22910. )
  22911. class get_primary_keys_args(object):
  22912. """
  22913. Attributes:
  22914. - request
  22915. """
  22916. def __init__(self, request=None,):
  22917. self.request = request
  22918. def read(self, iprot):
  22919. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22920. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  22921. return
  22922. iprot.readStructBegin()
  22923. while True:
  22924. (fname, ftype, fid) = iprot.readFieldBegin()
  22925. if ftype == TType.STOP:
  22926. break
  22927. if fid == 1:
  22928. if ftype == TType.STRUCT:
  22929. self.request = PrimaryKeysRequest()
  22930. self.request.read(iprot)
  22931. else:
  22932. iprot.skip(ftype)
  22933. else:
  22934. iprot.skip(ftype)
  22935. iprot.readFieldEnd()
  22936. iprot.readStructEnd()
  22937. def write(self, oprot):
  22938. if oprot._fast_encode is not None and self.thrift_spec is not None:
  22939. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  22940. return
  22941. oprot.writeStructBegin('get_primary_keys_args')
  22942. if self.request is not None:
  22943. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  22944. self.request.write(oprot)
  22945. oprot.writeFieldEnd()
  22946. oprot.writeFieldStop()
  22947. oprot.writeStructEnd()
  22948. def validate(self):
  22949. return
  22950. def __repr__(self):
  22951. L = ['%s=%r' % (key, value)
  22952. for key, value in self.__dict__.items()]
  22953. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  22954. def __eq__(self, other):
  22955. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  22956. def __ne__(self, other):
  22957. return not (self == other)
  22958. all_structs.append(get_primary_keys_args)
  22959. get_primary_keys_args.thrift_spec = (
  22960. None, # 0
  22961. (1, TType.STRUCT, 'request', [PrimaryKeysRequest, None], None, ), # 1
  22962. )
  22963. class get_primary_keys_result(object):
  22964. """
  22965. Attributes:
  22966. - success
  22967. - o1
  22968. - o2
  22969. """
  22970. def __init__(self, success=None, o1=None, o2=None,):
  22971. self.success = success
  22972. self.o1 = o1
  22973. self.o2 = o2
  22974. def read(self, iprot):
  22975. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  22976. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  22977. return
  22978. iprot.readStructBegin()
  22979. while True:
  22980. (fname, ftype, fid) = iprot.readFieldBegin()
  22981. if ftype == TType.STOP:
  22982. break
  22983. if fid == 0:
  22984. if ftype == TType.STRUCT:
  22985. self.success = PrimaryKeysResponse()
  22986. self.success.read(iprot)
  22987. else:
  22988. iprot.skip(ftype)
  22989. elif fid == 1:
  22990. if ftype == TType.STRUCT:
  22991. self.o1 = MetaException()
  22992. self.o1.read(iprot)
  22993. else:
  22994. iprot.skip(ftype)
  22995. elif fid == 2:
  22996. if ftype == TType.STRUCT:
  22997. self.o2 = NoSuchObjectException()
  22998. self.o2.read(iprot)
  22999. else:
  23000. iprot.skip(ftype)
  23001. else:
  23002. iprot.skip(ftype)
  23003. iprot.readFieldEnd()
  23004. iprot.readStructEnd()
  23005. def write(self, oprot):
  23006. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23007. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23008. return
  23009. oprot.writeStructBegin('get_primary_keys_result')
  23010. if self.success is not None:
  23011. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  23012. self.success.write(oprot)
  23013. oprot.writeFieldEnd()
  23014. if self.o1 is not None:
  23015. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  23016. self.o1.write(oprot)
  23017. oprot.writeFieldEnd()
  23018. if self.o2 is not None:
  23019. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  23020. self.o2.write(oprot)
  23021. oprot.writeFieldEnd()
  23022. oprot.writeFieldStop()
  23023. oprot.writeStructEnd()
  23024. def validate(self):
  23025. return
  23026. def __repr__(self):
  23027. L = ['%s=%r' % (key, value)
  23028. for key, value in self.__dict__.items()]
  23029. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23030. def __eq__(self, other):
  23031. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23032. def __ne__(self, other):
  23033. return not (self == other)
  23034. all_structs.append(get_primary_keys_result)
  23035. get_primary_keys_result.thrift_spec = (
  23036. (0, TType.STRUCT, 'success', [PrimaryKeysResponse, None], None, ), # 0
  23037. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  23038. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  23039. )
  23040. class get_foreign_keys_args(object):
  23041. """
  23042. Attributes:
  23043. - request
  23044. """
  23045. def __init__(self, request=None,):
  23046. self.request = request
  23047. def read(self, iprot):
  23048. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23049. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23050. return
  23051. iprot.readStructBegin()
  23052. while True:
  23053. (fname, ftype, fid) = iprot.readFieldBegin()
  23054. if ftype == TType.STOP:
  23055. break
  23056. if fid == 1:
  23057. if ftype == TType.STRUCT:
  23058. self.request = ForeignKeysRequest()
  23059. self.request.read(iprot)
  23060. else:
  23061. iprot.skip(ftype)
  23062. else:
  23063. iprot.skip(ftype)
  23064. iprot.readFieldEnd()
  23065. iprot.readStructEnd()
  23066. def write(self, oprot):
  23067. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23068. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23069. return
  23070. oprot.writeStructBegin('get_foreign_keys_args')
  23071. if self.request is not None:
  23072. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  23073. self.request.write(oprot)
  23074. oprot.writeFieldEnd()
  23075. oprot.writeFieldStop()
  23076. oprot.writeStructEnd()
  23077. def validate(self):
  23078. return
  23079. def __repr__(self):
  23080. L = ['%s=%r' % (key, value)
  23081. for key, value in self.__dict__.items()]
  23082. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23083. def __eq__(self, other):
  23084. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23085. def __ne__(self, other):
  23086. return not (self == other)
  23087. all_structs.append(get_foreign_keys_args)
  23088. get_foreign_keys_args.thrift_spec = (
  23089. None, # 0
  23090. (1, TType.STRUCT, 'request', [ForeignKeysRequest, None], None, ), # 1
  23091. )
  23092. class get_foreign_keys_result(object):
  23093. """
  23094. Attributes:
  23095. - success
  23096. - o1
  23097. - o2
  23098. """
  23099. def __init__(self, success=None, o1=None, o2=None,):
  23100. self.success = success
  23101. self.o1 = o1
  23102. self.o2 = o2
  23103. def read(self, iprot):
  23104. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23105. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23106. return
  23107. iprot.readStructBegin()
  23108. while True:
  23109. (fname, ftype, fid) = iprot.readFieldBegin()
  23110. if ftype == TType.STOP:
  23111. break
  23112. if fid == 0:
  23113. if ftype == TType.STRUCT:
  23114. self.success = ForeignKeysResponse()
  23115. self.success.read(iprot)
  23116. else:
  23117. iprot.skip(ftype)
  23118. elif fid == 1:
  23119. if ftype == TType.STRUCT:
  23120. self.o1 = MetaException()
  23121. self.o1.read(iprot)
  23122. else:
  23123. iprot.skip(ftype)
  23124. elif fid == 2:
  23125. if ftype == TType.STRUCT:
  23126. self.o2 = NoSuchObjectException()
  23127. self.o2.read(iprot)
  23128. else:
  23129. iprot.skip(ftype)
  23130. else:
  23131. iprot.skip(ftype)
  23132. iprot.readFieldEnd()
  23133. iprot.readStructEnd()
  23134. def write(self, oprot):
  23135. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23136. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23137. return
  23138. oprot.writeStructBegin('get_foreign_keys_result')
  23139. if self.success is not None:
  23140. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  23141. self.success.write(oprot)
  23142. oprot.writeFieldEnd()
  23143. if self.o1 is not None:
  23144. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  23145. self.o1.write(oprot)
  23146. oprot.writeFieldEnd()
  23147. if self.o2 is not None:
  23148. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  23149. self.o2.write(oprot)
  23150. oprot.writeFieldEnd()
  23151. oprot.writeFieldStop()
  23152. oprot.writeStructEnd()
  23153. def validate(self):
  23154. return
  23155. def __repr__(self):
  23156. L = ['%s=%r' % (key, value)
  23157. for key, value in self.__dict__.items()]
  23158. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23159. def __eq__(self, other):
  23160. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23161. def __ne__(self, other):
  23162. return not (self == other)
  23163. all_structs.append(get_foreign_keys_result)
  23164. get_foreign_keys_result.thrift_spec = (
  23165. (0, TType.STRUCT, 'success', [ForeignKeysResponse, None], None, ), # 0
  23166. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  23167. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  23168. )
  23169. class update_table_column_statistics_args(object):
  23170. """
  23171. Attributes:
  23172. - stats_obj
  23173. """
  23174. def __init__(self, stats_obj=None,):
  23175. self.stats_obj = stats_obj
  23176. def read(self, iprot):
  23177. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23178. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23179. return
  23180. iprot.readStructBegin()
  23181. while True:
  23182. (fname, ftype, fid) = iprot.readFieldBegin()
  23183. if ftype == TType.STOP:
  23184. break
  23185. if fid == 1:
  23186. if ftype == TType.STRUCT:
  23187. self.stats_obj = ColumnStatistics()
  23188. self.stats_obj.read(iprot)
  23189. else:
  23190. iprot.skip(ftype)
  23191. else:
  23192. iprot.skip(ftype)
  23193. iprot.readFieldEnd()
  23194. iprot.readStructEnd()
  23195. def write(self, oprot):
  23196. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23197. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23198. return
  23199. oprot.writeStructBegin('update_table_column_statistics_args')
  23200. if self.stats_obj is not None:
  23201. oprot.writeFieldBegin('stats_obj', TType.STRUCT, 1)
  23202. self.stats_obj.write(oprot)
  23203. oprot.writeFieldEnd()
  23204. oprot.writeFieldStop()
  23205. oprot.writeStructEnd()
  23206. def validate(self):
  23207. return
  23208. def __repr__(self):
  23209. L = ['%s=%r' % (key, value)
  23210. for key, value in self.__dict__.items()]
  23211. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23212. def __eq__(self, other):
  23213. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23214. def __ne__(self, other):
  23215. return not (self == other)
  23216. all_structs.append(update_table_column_statistics_args)
  23217. update_table_column_statistics_args.thrift_spec = (
  23218. None, # 0
  23219. (1, TType.STRUCT, 'stats_obj', [ColumnStatistics, None], None, ), # 1
  23220. )
  23221. class update_table_column_statistics_result(object):
  23222. """
  23223. Attributes:
  23224. - success
  23225. - o1
  23226. - o2
  23227. - o3
  23228. - o4
  23229. """
  23230. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  23231. self.success = success
  23232. self.o1 = o1
  23233. self.o2 = o2
  23234. self.o3 = o3
  23235. self.o4 = o4
  23236. def read(self, iprot):
  23237. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23238. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23239. return
  23240. iprot.readStructBegin()
  23241. while True:
  23242. (fname, ftype, fid) = iprot.readFieldBegin()
  23243. if ftype == TType.STOP:
  23244. break
  23245. if fid == 0:
  23246. if ftype == TType.BOOL:
  23247. self.success = iprot.readBool()
  23248. else:
  23249. iprot.skip(ftype)
  23250. elif fid == 1:
  23251. if ftype == TType.STRUCT:
  23252. self.o1 = NoSuchObjectException()
  23253. self.o1.read(iprot)
  23254. else:
  23255. iprot.skip(ftype)
  23256. elif fid == 2:
  23257. if ftype == TType.STRUCT:
  23258. self.o2 = InvalidObjectException()
  23259. self.o2.read(iprot)
  23260. else:
  23261. iprot.skip(ftype)
  23262. elif fid == 3:
  23263. if ftype == TType.STRUCT:
  23264. self.o3 = MetaException()
  23265. self.o3.read(iprot)
  23266. else:
  23267. iprot.skip(ftype)
  23268. elif fid == 4:
  23269. if ftype == TType.STRUCT:
  23270. self.o4 = InvalidInputException()
  23271. self.o4.read(iprot)
  23272. else:
  23273. iprot.skip(ftype)
  23274. else:
  23275. iprot.skip(ftype)
  23276. iprot.readFieldEnd()
  23277. iprot.readStructEnd()
  23278. def write(self, oprot):
  23279. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23280. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23281. return
  23282. oprot.writeStructBegin('update_table_column_statistics_result')
  23283. if self.success is not None:
  23284. oprot.writeFieldBegin('success', TType.BOOL, 0)
  23285. oprot.writeBool(self.success)
  23286. oprot.writeFieldEnd()
  23287. if self.o1 is not None:
  23288. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  23289. self.o1.write(oprot)
  23290. oprot.writeFieldEnd()
  23291. if self.o2 is not None:
  23292. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  23293. self.o2.write(oprot)
  23294. oprot.writeFieldEnd()
  23295. if self.o3 is not None:
  23296. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  23297. self.o3.write(oprot)
  23298. oprot.writeFieldEnd()
  23299. if self.o4 is not None:
  23300. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  23301. self.o4.write(oprot)
  23302. oprot.writeFieldEnd()
  23303. oprot.writeFieldStop()
  23304. oprot.writeStructEnd()
  23305. def validate(self):
  23306. return
  23307. def __repr__(self):
  23308. L = ['%s=%r' % (key, value)
  23309. for key, value in self.__dict__.items()]
  23310. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23311. def __eq__(self, other):
  23312. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23313. def __ne__(self, other):
  23314. return not (self == other)
  23315. all_structs.append(update_table_column_statistics_result)
  23316. update_table_column_statistics_result.thrift_spec = (
  23317. (0, TType.BOOL, 'success', None, None, ), # 0
  23318. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  23319. (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2
  23320. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  23321. (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4
  23322. )
  23323. class update_partition_column_statistics_args(object):
  23324. """
  23325. Attributes:
  23326. - stats_obj
  23327. """
  23328. def __init__(self, stats_obj=None,):
  23329. self.stats_obj = stats_obj
  23330. def read(self, iprot):
  23331. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23332. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23333. return
  23334. iprot.readStructBegin()
  23335. while True:
  23336. (fname, ftype, fid) = iprot.readFieldBegin()
  23337. if ftype == TType.STOP:
  23338. break
  23339. if fid == 1:
  23340. if ftype == TType.STRUCT:
  23341. self.stats_obj = ColumnStatistics()
  23342. self.stats_obj.read(iprot)
  23343. else:
  23344. iprot.skip(ftype)
  23345. else:
  23346. iprot.skip(ftype)
  23347. iprot.readFieldEnd()
  23348. iprot.readStructEnd()
  23349. def write(self, oprot):
  23350. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23351. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23352. return
  23353. oprot.writeStructBegin('update_partition_column_statistics_args')
  23354. if self.stats_obj is not None:
  23355. oprot.writeFieldBegin('stats_obj', TType.STRUCT, 1)
  23356. self.stats_obj.write(oprot)
  23357. oprot.writeFieldEnd()
  23358. oprot.writeFieldStop()
  23359. oprot.writeStructEnd()
  23360. def validate(self):
  23361. return
  23362. def __repr__(self):
  23363. L = ['%s=%r' % (key, value)
  23364. for key, value in self.__dict__.items()]
  23365. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23366. def __eq__(self, other):
  23367. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23368. def __ne__(self, other):
  23369. return not (self == other)
  23370. all_structs.append(update_partition_column_statistics_args)
  23371. update_partition_column_statistics_args.thrift_spec = (
  23372. None, # 0
  23373. (1, TType.STRUCT, 'stats_obj', [ColumnStatistics, None], None, ), # 1
  23374. )
  23375. class update_partition_column_statistics_result(object):
  23376. """
  23377. Attributes:
  23378. - success
  23379. - o1
  23380. - o2
  23381. - o3
  23382. - o4
  23383. """
  23384. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  23385. self.success = success
  23386. self.o1 = o1
  23387. self.o2 = o2
  23388. self.o3 = o3
  23389. self.o4 = o4
  23390. def read(self, iprot):
  23391. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23392. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23393. return
  23394. iprot.readStructBegin()
  23395. while True:
  23396. (fname, ftype, fid) = iprot.readFieldBegin()
  23397. if ftype == TType.STOP:
  23398. break
  23399. if fid == 0:
  23400. if ftype == TType.BOOL:
  23401. self.success = iprot.readBool()
  23402. else:
  23403. iprot.skip(ftype)
  23404. elif fid == 1:
  23405. if ftype == TType.STRUCT:
  23406. self.o1 = NoSuchObjectException()
  23407. self.o1.read(iprot)
  23408. else:
  23409. iprot.skip(ftype)
  23410. elif fid == 2:
  23411. if ftype == TType.STRUCT:
  23412. self.o2 = InvalidObjectException()
  23413. self.o2.read(iprot)
  23414. else:
  23415. iprot.skip(ftype)
  23416. elif fid == 3:
  23417. if ftype == TType.STRUCT:
  23418. self.o3 = MetaException()
  23419. self.o3.read(iprot)
  23420. else:
  23421. iprot.skip(ftype)
  23422. elif fid == 4:
  23423. if ftype == TType.STRUCT:
  23424. self.o4 = InvalidInputException()
  23425. self.o4.read(iprot)
  23426. else:
  23427. iprot.skip(ftype)
  23428. else:
  23429. iprot.skip(ftype)
  23430. iprot.readFieldEnd()
  23431. iprot.readStructEnd()
  23432. def write(self, oprot):
  23433. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23434. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23435. return
  23436. oprot.writeStructBegin('update_partition_column_statistics_result')
  23437. if self.success is not None:
  23438. oprot.writeFieldBegin('success', TType.BOOL, 0)
  23439. oprot.writeBool(self.success)
  23440. oprot.writeFieldEnd()
  23441. if self.o1 is not None:
  23442. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  23443. self.o1.write(oprot)
  23444. oprot.writeFieldEnd()
  23445. if self.o2 is not None:
  23446. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  23447. self.o2.write(oprot)
  23448. oprot.writeFieldEnd()
  23449. if self.o3 is not None:
  23450. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  23451. self.o3.write(oprot)
  23452. oprot.writeFieldEnd()
  23453. if self.o4 is not None:
  23454. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  23455. self.o4.write(oprot)
  23456. oprot.writeFieldEnd()
  23457. oprot.writeFieldStop()
  23458. oprot.writeStructEnd()
  23459. def validate(self):
  23460. return
  23461. def __repr__(self):
  23462. L = ['%s=%r' % (key, value)
  23463. for key, value in self.__dict__.items()]
  23464. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23465. def __eq__(self, other):
  23466. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23467. def __ne__(self, other):
  23468. return not (self == other)
  23469. all_structs.append(update_partition_column_statistics_result)
  23470. update_partition_column_statistics_result.thrift_spec = (
  23471. (0, TType.BOOL, 'success', None, None, ), # 0
  23472. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  23473. (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2
  23474. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  23475. (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4
  23476. )
  23477. class get_table_column_statistics_args(object):
  23478. """
  23479. Attributes:
  23480. - db_name
  23481. - tbl_name
  23482. - col_name
  23483. """
  23484. def __init__(self, db_name=None, tbl_name=None, col_name=None,):
  23485. self.db_name = db_name
  23486. self.tbl_name = tbl_name
  23487. self.col_name = col_name
  23488. def read(self, iprot):
  23489. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23490. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23491. return
  23492. iprot.readStructBegin()
  23493. while True:
  23494. (fname, ftype, fid) = iprot.readFieldBegin()
  23495. if ftype == TType.STOP:
  23496. break
  23497. if fid == 1:
  23498. if ftype == TType.STRING:
  23499. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  23500. else:
  23501. iprot.skip(ftype)
  23502. elif fid == 2:
  23503. if ftype == TType.STRING:
  23504. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  23505. else:
  23506. iprot.skip(ftype)
  23507. elif fid == 3:
  23508. if ftype == TType.STRING:
  23509. self.col_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  23510. else:
  23511. iprot.skip(ftype)
  23512. else:
  23513. iprot.skip(ftype)
  23514. iprot.readFieldEnd()
  23515. iprot.readStructEnd()
  23516. def write(self, oprot):
  23517. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23518. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23519. return
  23520. oprot.writeStructBegin('get_table_column_statistics_args')
  23521. if self.db_name is not None:
  23522. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  23523. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  23524. oprot.writeFieldEnd()
  23525. if self.tbl_name is not None:
  23526. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  23527. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  23528. oprot.writeFieldEnd()
  23529. if self.col_name is not None:
  23530. oprot.writeFieldBegin('col_name', TType.STRING, 3)
  23531. oprot.writeString(self.col_name.encode('utf-8') if sys.version_info[0] == 2 else self.col_name)
  23532. oprot.writeFieldEnd()
  23533. oprot.writeFieldStop()
  23534. oprot.writeStructEnd()
  23535. def validate(self):
  23536. return
  23537. def __repr__(self):
  23538. L = ['%s=%r' % (key, value)
  23539. for key, value in self.__dict__.items()]
  23540. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23541. def __eq__(self, other):
  23542. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23543. def __ne__(self, other):
  23544. return not (self == other)
  23545. all_structs.append(get_table_column_statistics_args)
  23546. get_table_column_statistics_args.thrift_spec = (
  23547. None, # 0
  23548. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  23549. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  23550. (3, TType.STRING, 'col_name', 'UTF8', None, ), # 3
  23551. )
  23552. class get_table_column_statistics_result(object):
  23553. """
  23554. Attributes:
  23555. - success
  23556. - o1
  23557. - o2
  23558. - o3
  23559. - o4
  23560. """
  23561. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  23562. self.success = success
  23563. self.o1 = o1
  23564. self.o2 = o2
  23565. self.o3 = o3
  23566. self.o4 = o4
  23567. def read(self, iprot):
  23568. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23569. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23570. return
  23571. iprot.readStructBegin()
  23572. while True:
  23573. (fname, ftype, fid) = iprot.readFieldBegin()
  23574. if ftype == TType.STOP:
  23575. break
  23576. if fid == 0:
  23577. if ftype == TType.STRUCT:
  23578. self.success = ColumnStatistics()
  23579. self.success.read(iprot)
  23580. else:
  23581. iprot.skip(ftype)
  23582. elif fid == 1:
  23583. if ftype == TType.STRUCT:
  23584. self.o1 = NoSuchObjectException()
  23585. self.o1.read(iprot)
  23586. else:
  23587. iprot.skip(ftype)
  23588. elif fid == 2:
  23589. if ftype == TType.STRUCT:
  23590. self.o2 = MetaException()
  23591. self.o2.read(iprot)
  23592. else:
  23593. iprot.skip(ftype)
  23594. elif fid == 3:
  23595. if ftype == TType.STRUCT:
  23596. self.o3 = InvalidInputException()
  23597. self.o3.read(iprot)
  23598. else:
  23599. iprot.skip(ftype)
  23600. elif fid == 4:
  23601. if ftype == TType.STRUCT:
  23602. self.o4 = InvalidObjectException()
  23603. self.o4.read(iprot)
  23604. else:
  23605. iprot.skip(ftype)
  23606. else:
  23607. iprot.skip(ftype)
  23608. iprot.readFieldEnd()
  23609. iprot.readStructEnd()
  23610. def write(self, oprot):
  23611. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23612. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23613. return
  23614. oprot.writeStructBegin('get_table_column_statistics_result')
  23615. if self.success is not None:
  23616. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  23617. self.success.write(oprot)
  23618. oprot.writeFieldEnd()
  23619. if self.o1 is not None:
  23620. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  23621. self.o1.write(oprot)
  23622. oprot.writeFieldEnd()
  23623. if self.o2 is not None:
  23624. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  23625. self.o2.write(oprot)
  23626. oprot.writeFieldEnd()
  23627. if self.o3 is not None:
  23628. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  23629. self.o3.write(oprot)
  23630. oprot.writeFieldEnd()
  23631. if self.o4 is not None:
  23632. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  23633. self.o4.write(oprot)
  23634. oprot.writeFieldEnd()
  23635. oprot.writeFieldStop()
  23636. oprot.writeStructEnd()
  23637. def validate(self):
  23638. return
  23639. def __repr__(self):
  23640. L = ['%s=%r' % (key, value)
  23641. for key, value in self.__dict__.items()]
  23642. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23643. def __eq__(self, other):
  23644. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23645. def __ne__(self, other):
  23646. return not (self == other)
  23647. all_structs.append(get_table_column_statistics_result)
  23648. get_table_column_statistics_result.thrift_spec = (
  23649. (0, TType.STRUCT, 'success', [ColumnStatistics, None], None, ), # 0
  23650. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  23651. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  23652. (3, TType.STRUCT, 'o3', [InvalidInputException, None], None, ), # 3
  23653. (4, TType.STRUCT, 'o4', [InvalidObjectException, None], None, ), # 4
  23654. )
  23655. class get_partition_column_statistics_args(object):
  23656. """
  23657. Attributes:
  23658. - db_name
  23659. - tbl_name
  23660. - part_name
  23661. - col_name
  23662. """
  23663. def __init__(self, db_name=None, tbl_name=None, part_name=None, col_name=None,):
  23664. self.db_name = db_name
  23665. self.tbl_name = tbl_name
  23666. self.part_name = part_name
  23667. self.col_name = col_name
  23668. def read(self, iprot):
  23669. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23670. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23671. return
  23672. iprot.readStructBegin()
  23673. while True:
  23674. (fname, ftype, fid) = iprot.readFieldBegin()
  23675. if ftype == TType.STOP:
  23676. break
  23677. if fid == 1:
  23678. if ftype == TType.STRING:
  23679. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  23680. else:
  23681. iprot.skip(ftype)
  23682. elif fid == 2:
  23683. if ftype == TType.STRING:
  23684. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  23685. else:
  23686. iprot.skip(ftype)
  23687. elif fid == 3:
  23688. if ftype == TType.STRING:
  23689. self.part_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  23690. else:
  23691. iprot.skip(ftype)
  23692. elif fid == 4:
  23693. if ftype == TType.STRING:
  23694. self.col_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  23695. else:
  23696. iprot.skip(ftype)
  23697. else:
  23698. iprot.skip(ftype)
  23699. iprot.readFieldEnd()
  23700. iprot.readStructEnd()
  23701. def write(self, oprot):
  23702. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23703. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23704. return
  23705. oprot.writeStructBegin('get_partition_column_statistics_args')
  23706. if self.db_name is not None:
  23707. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  23708. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  23709. oprot.writeFieldEnd()
  23710. if self.tbl_name is not None:
  23711. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  23712. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  23713. oprot.writeFieldEnd()
  23714. if self.part_name is not None:
  23715. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  23716. oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name)
  23717. oprot.writeFieldEnd()
  23718. if self.col_name is not None:
  23719. oprot.writeFieldBegin('col_name', TType.STRING, 4)
  23720. oprot.writeString(self.col_name.encode('utf-8') if sys.version_info[0] == 2 else self.col_name)
  23721. oprot.writeFieldEnd()
  23722. oprot.writeFieldStop()
  23723. oprot.writeStructEnd()
  23724. def validate(self):
  23725. return
  23726. def __repr__(self):
  23727. L = ['%s=%r' % (key, value)
  23728. for key, value in self.__dict__.items()]
  23729. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23730. def __eq__(self, other):
  23731. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23732. def __ne__(self, other):
  23733. return not (self == other)
  23734. all_structs.append(get_partition_column_statistics_args)
  23735. get_partition_column_statistics_args.thrift_spec = (
  23736. None, # 0
  23737. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  23738. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  23739. (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3
  23740. (4, TType.STRING, 'col_name', 'UTF8', None, ), # 4
  23741. )
  23742. class get_partition_column_statistics_result(object):
  23743. """
  23744. Attributes:
  23745. - success
  23746. - o1
  23747. - o2
  23748. - o3
  23749. - o4
  23750. """
  23751. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  23752. self.success = success
  23753. self.o1 = o1
  23754. self.o2 = o2
  23755. self.o3 = o3
  23756. self.o4 = o4
  23757. def read(self, iprot):
  23758. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23759. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23760. return
  23761. iprot.readStructBegin()
  23762. while True:
  23763. (fname, ftype, fid) = iprot.readFieldBegin()
  23764. if ftype == TType.STOP:
  23765. break
  23766. if fid == 0:
  23767. if ftype == TType.STRUCT:
  23768. self.success = ColumnStatistics()
  23769. self.success.read(iprot)
  23770. else:
  23771. iprot.skip(ftype)
  23772. elif fid == 1:
  23773. if ftype == TType.STRUCT:
  23774. self.o1 = NoSuchObjectException()
  23775. self.o1.read(iprot)
  23776. else:
  23777. iprot.skip(ftype)
  23778. elif fid == 2:
  23779. if ftype == TType.STRUCT:
  23780. self.o2 = MetaException()
  23781. self.o2.read(iprot)
  23782. else:
  23783. iprot.skip(ftype)
  23784. elif fid == 3:
  23785. if ftype == TType.STRUCT:
  23786. self.o3 = InvalidInputException()
  23787. self.o3.read(iprot)
  23788. else:
  23789. iprot.skip(ftype)
  23790. elif fid == 4:
  23791. if ftype == TType.STRUCT:
  23792. self.o4 = InvalidObjectException()
  23793. self.o4.read(iprot)
  23794. else:
  23795. iprot.skip(ftype)
  23796. else:
  23797. iprot.skip(ftype)
  23798. iprot.readFieldEnd()
  23799. iprot.readStructEnd()
  23800. def write(self, oprot):
  23801. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23802. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23803. return
  23804. oprot.writeStructBegin('get_partition_column_statistics_result')
  23805. if self.success is not None:
  23806. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  23807. self.success.write(oprot)
  23808. oprot.writeFieldEnd()
  23809. if self.o1 is not None:
  23810. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  23811. self.o1.write(oprot)
  23812. oprot.writeFieldEnd()
  23813. if self.o2 is not None:
  23814. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  23815. self.o2.write(oprot)
  23816. oprot.writeFieldEnd()
  23817. if self.o3 is not None:
  23818. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  23819. self.o3.write(oprot)
  23820. oprot.writeFieldEnd()
  23821. if self.o4 is not None:
  23822. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  23823. self.o4.write(oprot)
  23824. oprot.writeFieldEnd()
  23825. oprot.writeFieldStop()
  23826. oprot.writeStructEnd()
  23827. def validate(self):
  23828. return
  23829. def __repr__(self):
  23830. L = ['%s=%r' % (key, value)
  23831. for key, value in self.__dict__.items()]
  23832. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23833. def __eq__(self, other):
  23834. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23835. def __ne__(self, other):
  23836. return not (self == other)
  23837. all_structs.append(get_partition_column_statistics_result)
  23838. get_partition_column_statistics_result.thrift_spec = (
  23839. (0, TType.STRUCT, 'success', [ColumnStatistics, None], None, ), # 0
  23840. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  23841. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  23842. (3, TType.STRUCT, 'o3', [InvalidInputException, None], None, ), # 3
  23843. (4, TType.STRUCT, 'o4', [InvalidObjectException, None], None, ), # 4
  23844. )
  23845. class get_table_statistics_req_args(object):
  23846. """
  23847. Attributes:
  23848. - request
  23849. """
  23850. def __init__(self, request=None,):
  23851. self.request = request
  23852. def read(self, iprot):
  23853. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23854. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23855. return
  23856. iprot.readStructBegin()
  23857. while True:
  23858. (fname, ftype, fid) = iprot.readFieldBegin()
  23859. if ftype == TType.STOP:
  23860. break
  23861. if fid == 1:
  23862. if ftype == TType.STRUCT:
  23863. self.request = TableStatsRequest()
  23864. self.request.read(iprot)
  23865. else:
  23866. iprot.skip(ftype)
  23867. else:
  23868. iprot.skip(ftype)
  23869. iprot.readFieldEnd()
  23870. iprot.readStructEnd()
  23871. def write(self, oprot):
  23872. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23873. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23874. return
  23875. oprot.writeStructBegin('get_table_statistics_req_args')
  23876. if self.request is not None:
  23877. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  23878. self.request.write(oprot)
  23879. oprot.writeFieldEnd()
  23880. oprot.writeFieldStop()
  23881. oprot.writeStructEnd()
  23882. def validate(self):
  23883. return
  23884. def __repr__(self):
  23885. L = ['%s=%r' % (key, value)
  23886. for key, value in self.__dict__.items()]
  23887. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23888. def __eq__(self, other):
  23889. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23890. def __ne__(self, other):
  23891. return not (self == other)
  23892. all_structs.append(get_table_statistics_req_args)
  23893. get_table_statistics_req_args.thrift_spec = (
  23894. None, # 0
  23895. (1, TType.STRUCT, 'request', [TableStatsRequest, None], None, ), # 1
  23896. )
  23897. class get_table_statistics_req_result(object):
  23898. """
  23899. Attributes:
  23900. - success
  23901. - o1
  23902. - o2
  23903. """
  23904. def __init__(self, success=None, o1=None, o2=None,):
  23905. self.success = success
  23906. self.o1 = o1
  23907. self.o2 = o2
  23908. def read(self, iprot):
  23909. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23910. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23911. return
  23912. iprot.readStructBegin()
  23913. while True:
  23914. (fname, ftype, fid) = iprot.readFieldBegin()
  23915. if ftype == TType.STOP:
  23916. break
  23917. if fid == 0:
  23918. if ftype == TType.STRUCT:
  23919. self.success = TableStatsResult()
  23920. self.success.read(iprot)
  23921. else:
  23922. iprot.skip(ftype)
  23923. elif fid == 1:
  23924. if ftype == TType.STRUCT:
  23925. self.o1 = NoSuchObjectException()
  23926. self.o1.read(iprot)
  23927. else:
  23928. iprot.skip(ftype)
  23929. elif fid == 2:
  23930. if ftype == TType.STRUCT:
  23931. self.o2 = MetaException()
  23932. self.o2.read(iprot)
  23933. else:
  23934. iprot.skip(ftype)
  23935. else:
  23936. iprot.skip(ftype)
  23937. iprot.readFieldEnd()
  23938. iprot.readStructEnd()
  23939. def write(self, oprot):
  23940. if oprot._fast_encode is not None and self.thrift_spec is not None:
  23941. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  23942. return
  23943. oprot.writeStructBegin('get_table_statistics_req_result')
  23944. if self.success is not None:
  23945. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  23946. self.success.write(oprot)
  23947. oprot.writeFieldEnd()
  23948. if self.o1 is not None:
  23949. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  23950. self.o1.write(oprot)
  23951. oprot.writeFieldEnd()
  23952. if self.o2 is not None:
  23953. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  23954. self.o2.write(oprot)
  23955. oprot.writeFieldEnd()
  23956. oprot.writeFieldStop()
  23957. oprot.writeStructEnd()
  23958. def validate(self):
  23959. return
  23960. def __repr__(self):
  23961. L = ['%s=%r' % (key, value)
  23962. for key, value in self.__dict__.items()]
  23963. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  23964. def __eq__(self, other):
  23965. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  23966. def __ne__(self, other):
  23967. return not (self == other)
  23968. all_structs.append(get_table_statistics_req_result)
  23969. get_table_statistics_req_result.thrift_spec = (
  23970. (0, TType.STRUCT, 'success', [TableStatsResult, None], None, ), # 0
  23971. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  23972. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  23973. )
  23974. class get_partitions_statistics_req_args(object):
  23975. """
  23976. Attributes:
  23977. - request
  23978. """
  23979. def __init__(self, request=None,):
  23980. self.request = request
  23981. def read(self, iprot):
  23982. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  23983. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  23984. return
  23985. iprot.readStructBegin()
  23986. while True:
  23987. (fname, ftype, fid) = iprot.readFieldBegin()
  23988. if ftype == TType.STOP:
  23989. break
  23990. if fid == 1:
  23991. if ftype == TType.STRUCT:
  23992. self.request = PartitionsStatsRequest()
  23993. self.request.read(iprot)
  23994. else:
  23995. iprot.skip(ftype)
  23996. else:
  23997. iprot.skip(ftype)
  23998. iprot.readFieldEnd()
  23999. iprot.readStructEnd()
  24000. def write(self, oprot):
  24001. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24002. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24003. return
  24004. oprot.writeStructBegin('get_partitions_statistics_req_args')
  24005. if self.request is not None:
  24006. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  24007. self.request.write(oprot)
  24008. oprot.writeFieldEnd()
  24009. oprot.writeFieldStop()
  24010. oprot.writeStructEnd()
  24011. def validate(self):
  24012. return
  24013. def __repr__(self):
  24014. L = ['%s=%r' % (key, value)
  24015. for key, value in self.__dict__.items()]
  24016. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24017. def __eq__(self, other):
  24018. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24019. def __ne__(self, other):
  24020. return not (self == other)
  24021. all_structs.append(get_partitions_statistics_req_args)
  24022. get_partitions_statistics_req_args.thrift_spec = (
  24023. None, # 0
  24024. (1, TType.STRUCT, 'request', [PartitionsStatsRequest, None], None, ), # 1
  24025. )
  24026. class get_partitions_statistics_req_result(object):
  24027. """
  24028. Attributes:
  24029. - success
  24030. - o1
  24031. - o2
  24032. """
  24033. def __init__(self, success=None, o1=None, o2=None,):
  24034. self.success = success
  24035. self.o1 = o1
  24036. self.o2 = o2
  24037. def read(self, iprot):
  24038. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24039. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24040. return
  24041. iprot.readStructBegin()
  24042. while True:
  24043. (fname, ftype, fid) = iprot.readFieldBegin()
  24044. if ftype == TType.STOP:
  24045. break
  24046. if fid == 0:
  24047. if ftype == TType.STRUCT:
  24048. self.success = PartitionsStatsResult()
  24049. self.success.read(iprot)
  24050. else:
  24051. iprot.skip(ftype)
  24052. elif fid == 1:
  24053. if ftype == TType.STRUCT:
  24054. self.o1 = NoSuchObjectException()
  24055. self.o1.read(iprot)
  24056. else:
  24057. iprot.skip(ftype)
  24058. elif fid == 2:
  24059. if ftype == TType.STRUCT:
  24060. self.o2 = MetaException()
  24061. self.o2.read(iprot)
  24062. else:
  24063. iprot.skip(ftype)
  24064. else:
  24065. iprot.skip(ftype)
  24066. iprot.readFieldEnd()
  24067. iprot.readStructEnd()
  24068. def write(self, oprot):
  24069. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24070. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24071. return
  24072. oprot.writeStructBegin('get_partitions_statistics_req_result')
  24073. if self.success is not None:
  24074. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  24075. self.success.write(oprot)
  24076. oprot.writeFieldEnd()
  24077. if self.o1 is not None:
  24078. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24079. self.o1.write(oprot)
  24080. oprot.writeFieldEnd()
  24081. if self.o2 is not None:
  24082. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  24083. self.o2.write(oprot)
  24084. oprot.writeFieldEnd()
  24085. oprot.writeFieldStop()
  24086. oprot.writeStructEnd()
  24087. def validate(self):
  24088. return
  24089. def __repr__(self):
  24090. L = ['%s=%r' % (key, value)
  24091. for key, value in self.__dict__.items()]
  24092. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24093. def __eq__(self, other):
  24094. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24095. def __ne__(self, other):
  24096. return not (self == other)
  24097. all_structs.append(get_partitions_statistics_req_result)
  24098. get_partitions_statistics_req_result.thrift_spec = (
  24099. (0, TType.STRUCT, 'success', [PartitionsStatsResult, None], None, ), # 0
  24100. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  24101. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  24102. )
  24103. class get_aggr_stats_for_args(object):
  24104. """
  24105. Attributes:
  24106. - request
  24107. """
  24108. def __init__(self, request=None,):
  24109. self.request = request
  24110. def read(self, iprot):
  24111. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24112. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24113. return
  24114. iprot.readStructBegin()
  24115. while True:
  24116. (fname, ftype, fid) = iprot.readFieldBegin()
  24117. if ftype == TType.STOP:
  24118. break
  24119. if fid == 1:
  24120. if ftype == TType.STRUCT:
  24121. self.request = PartitionsStatsRequest()
  24122. self.request.read(iprot)
  24123. else:
  24124. iprot.skip(ftype)
  24125. else:
  24126. iprot.skip(ftype)
  24127. iprot.readFieldEnd()
  24128. iprot.readStructEnd()
  24129. def write(self, oprot):
  24130. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24131. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24132. return
  24133. oprot.writeStructBegin('get_aggr_stats_for_args')
  24134. if self.request is not None:
  24135. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  24136. self.request.write(oprot)
  24137. oprot.writeFieldEnd()
  24138. oprot.writeFieldStop()
  24139. oprot.writeStructEnd()
  24140. def validate(self):
  24141. return
  24142. def __repr__(self):
  24143. L = ['%s=%r' % (key, value)
  24144. for key, value in self.__dict__.items()]
  24145. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24146. def __eq__(self, other):
  24147. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24148. def __ne__(self, other):
  24149. return not (self == other)
  24150. all_structs.append(get_aggr_stats_for_args)
  24151. get_aggr_stats_for_args.thrift_spec = (
  24152. None, # 0
  24153. (1, TType.STRUCT, 'request', [PartitionsStatsRequest, None], None, ), # 1
  24154. )
  24155. class get_aggr_stats_for_result(object):
  24156. """
  24157. Attributes:
  24158. - success
  24159. - o1
  24160. - o2
  24161. """
  24162. def __init__(self, success=None, o1=None, o2=None,):
  24163. self.success = success
  24164. self.o1 = o1
  24165. self.o2 = o2
  24166. def read(self, iprot):
  24167. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24168. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24169. return
  24170. iprot.readStructBegin()
  24171. while True:
  24172. (fname, ftype, fid) = iprot.readFieldBegin()
  24173. if ftype == TType.STOP:
  24174. break
  24175. if fid == 0:
  24176. if ftype == TType.STRUCT:
  24177. self.success = AggrStats()
  24178. self.success.read(iprot)
  24179. else:
  24180. iprot.skip(ftype)
  24181. elif fid == 1:
  24182. if ftype == TType.STRUCT:
  24183. self.o1 = NoSuchObjectException()
  24184. self.o1.read(iprot)
  24185. else:
  24186. iprot.skip(ftype)
  24187. elif fid == 2:
  24188. if ftype == TType.STRUCT:
  24189. self.o2 = MetaException()
  24190. self.o2.read(iprot)
  24191. else:
  24192. iprot.skip(ftype)
  24193. else:
  24194. iprot.skip(ftype)
  24195. iprot.readFieldEnd()
  24196. iprot.readStructEnd()
  24197. def write(self, oprot):
  24198. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24199. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24200. return
  24201. oprot.writeStructBegin('get_aggr_stats_for_result')
  24202. if self.success is not None:
  24203. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  24204. self.success.write(oprot)
  24205. oprot.writeFieldEnd()
  24206. if self.o1 is not None:
  24207. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24208. self.o1.write(oprot)
  24209. oprot.writeFieldEnd()
  24210. if self.o2 is not None:
  24211. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  24212. self.o2.write(oprot)
  24213. oprot.writeFieldEnd()
  24214. oprot.writeFieldStop()
  24215. oprot.writeStructEnd()
  24216. def validate(self):
  24217. return
  24218. def __repr__(self):
  24219. L = ['%s=%r' % (key, value)
  24220. for key, value in self.__dict__.items()]
  24221. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24222. def __eq__(self, other):
  24223. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24224. def __ne__(self, other):
  24225. return not (self == other)
  24226. all_structs.append(get_aggr_stats_for_result)
  24227. get_aggr_stats_for_result.thrift_spec = (
  24228. (0, TType.STRUCT, 'success', [AggrStats, None], None, ), # 0
  24229. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  24230. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  24231. )
  24232. class set_aggr_stats_for_args(object):
  24233. """
  24234. Attributes:
  24235. - request
  24236. """
  24237. def __init__(self, request=None,):
  24238. self.request = request
  24239. def read(self, iprot):
  24240. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24241. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24242. return
  24243. iprot.readStructBegin()
  24244. while True:
  24245. (fname, ftype, fid) = iprot.readFieldBegin()
  24246. if ftype == TType.STOP:
  24247. break
  24248. if fid == 1:
  24249. if ftype == TType.STRUCT:
  24250. self.request = SetPartitionsStatsRequest()
  24251. self.request.read(iprot)
  24252. else:
  24253. iprot.skip(ftype)
  24254. else:
  24255. iprot.skip(ftype)
  24256. iprot.readFieldEnd()
  24257. iprot.readStructEnd()
  24258. def write(self, oprot):
  24259. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24260. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24261. return
  24262. oprot.writeStructBegin('set_aggr_stats_for_args')
  24263. if self.request is not None:
  24264. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  24265. self.request.write(oprot)
  24266. oprot.writeFieldEnd()
  24267. oprot.writeFieldStop()
  24268. oprot.writeStructEnd()
  24269. def validate(self):
  24270. return
  24271. def __repr__(self):
  24272. L = ['%s=%r' % (key, value)
  24273. for key, value in self.__dict__.items()]
  24274. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24275. def __eq__(self, other):
  24276. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24277. def __ne__(self, other):
  24278. return not (self == other)
  24279. all_structs.append(set_aggr_stats_for_args)
  24280. set_aggr_stats_for_args.thrift_spec = (
  24281. None, # 0
  24282. (1, TType.STRUCT, 'request', [SetPartitionsStatsRequest, None], None, ), # 1
  24283. )
  24284. class set_aggr_stats_for_result(object):
  24285. """
  24286. Attributes:
  24287. - success
  24288. - o1
  24289. - o2
  24290. - o3
  24291. - o4
  24292. """
  24293. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  24294. self.success = success
  24295. self.o1 = o1
  24296. self.o2 = o2
  24297. self.o3 = o3
  24298. self.o4 = o4
  24299. def read(self, iprot):
  24300. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24301. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24302. return
  24303. iprot.readStructBegin()
  24304. while True:
  24305. (fname, ftype, fid) = iprot.readFieldBegin()
  24306. if ftype == TType.STOP:
  24307. break
  24308. if fid == 0:
  24309. if ftype == TType.BOOL:
  24310. self.success = iprot.readBool()
  24311. else:
  24312. iprot.skip(ftype)
  24313. elif fid == 1:
  24314. if ftype == TType.STRUCT:
  24315. self.o1 = NoSuchObjectException()
  24316. self.o1.read(iprot)
  24317. else:
  24318. iprot.skip(ftype)
  24319. elif fid == 2:
  24320. if ftype == TType.STRUCT:
  24321. self.o2 = InvalidObjectException()
  24322. self.o2.read(iprot)
  24323. else:
  24324. iprot.skip(ftype)
  24325. elif fid == 3:
  24326. if ftype == TType.STRUCT:
  24327. self.o3 = MetaException()
  24328. self.o3.read(iprot)
  24329. else:
  24330. iprot.skip(ftype)
  24331. elif fid == 4:
  24332. if ftype == TType.STRUCT:
  24333. self.o4 = InvalidInputException()
  24334. self.o4.read(iprot)
  24335. else:
  24336. iprot.skip(ftype)
  24337. else:
  24338. iprot.skip(ftype)
  24339. iprot.readFieldEnd()
  24340. iprot.readStructEnd()
  24341. def write(self, oprot):
  24342. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24343. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24344. return
  24345. oprot.writeStructBegin('set_aggr_stats_for_result')
  24346. if self.success is not None:
  24347. oprot.writeFieldBegin('success', TType.BOOL, 0)
  24348. oprot.writeBool(self.success)
  24349. oprot.writeFieldEnd()
  24350. if self.o1 is not None:
  24351. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24352. self.o1.write(oprot)
  24353. oprot.writeFieldEnd()
  24354. if self.o2 is not None:
  24355. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  24356. self.o2.write(oprot)
  24357. oprot.writeFieldEnd()
  24358. if self.o3 is not None:
  24359. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  24360. self.o3.write(oprot)
  24361. oprot.writeFieldEnd()
  24362. if self.o4 is not None:
  24363. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  24364. self.o4.write(oprot)
  24365. oprot.writeFieldEnd()
  24366. oprot.writeFieldStop()
  24367. oprot.writeStructEnd()
  24368. def validate(self):
  24369. return
  24370. def __repr__(self):
  24371. L = ['%s=%r' % (key, value)
  24372. for key, value in self.__dict__.items()]
  24373. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24374. def __eq__(self, other):
  24375. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24376. def __ne__(self, other):
  24377. return not (self == other)
  24378. all_structs.append(set_aggr_stats_for_result)
  24379. set_aggr_stats_for_result.thrift_spec = (
  24380. (0, TType.BOOL, 'success', None, None, ), # 0
  24381. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  24382. (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2
  24383. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  24384. (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4
  24385. )
  24386. class delete_partition_column_statistics_args(object):
  24387. """
  24388. Attributes:
  24389. - db_name
  24390. - tbl_name
  24391. - part_name
  24392. - col_name
  24393. """
  24394. def __init__(self, db_name=None, tbl_name=None, part_name=None, col_name=None,):
  24395. self.db_name = db_name
  24396. self.tbl_name = tbl_name
  24397. self.part_name = part_name
  24398. self.col_name = col_name
  24399. def read(self, iprot):
  24400. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24401. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24402. return
  24403. iprot.readStructBegin()
  24404. while True:
  24405. (fname, ftype, fid) = iprot.readFieldBegin()
  24406. if ftype == TType.STOP:
  24407. break
  24408. if fid == 1:
  24409. if ftype == TType.STRING:
  24410. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  24411. else:
  24412. iprot.skip(ftype)
  24413. elif fid == 2:
  24414. if ftype == TType.STRING:
  24415. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  24416. else:
  24417. iprot.skip(ftype)
  24418. elif fid == 3:
  24419. if ftype == TType.STRING:
  24420. self.part_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  24421. else:
  24422. iprot.skip(ftype)
  24423. elif fid == 4:
  24424. if ftype == TType.STRING:
  24425. self.col_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  24426. else:
  24427. iprot.skip(ftype)
  24428. else:
  24429. iprot.skip(ftype)
  24430. iprot.readFieldEnd()
  24431. iprot.readStructEnd()
  24432. def write(self, oprot):
  24433. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24434. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24435. return
  24436. oprot.writeStructBegin('delete_partition_column_statistics_args')
  24437. if self.db_name is not None:
  24438. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  24439. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  24440. oprot.writeFieldEnd()
  24441. if self.tbl_name is not None:
  24442. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  24443. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  24444. oprot.writeFieldEnd()
  24445. if self.part_name is not None:
  24446. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  24447. oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name)
  24448. oprot.writeFieldEnd()
  24449. if self.col_name is not None:
  24450. oprot.writeFieldBegin('col_name', TType.STRING, 4)
  24451. oprot.writeString(self.col_name.encode('utf-8') if sys.version_info[0] == 2 else self.col_name)
  24452. oprot.writeFieldEnd()
  24453. oprot.writeFieldStop()
  24454. oprot.writeStructEnd()
  24455. def validate(self):
  24456. return
  24457. def __repr__(self):
  24458. L = ['%s=%r' % (key, value)
  24459. for key, value in self.__dict__.items()]
  24460. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24461. def __eq__(self, other):
  24462. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24463. def __ne__(self, other):
  24464. return not (self == other)
  24465. all_structs.append(delete_partition_column_statistics_args)
  24466. delete_partition_column_statistics_args.thrift_spec = (
  24467. None, # 0
  24468. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  24469. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  24470. (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3
  24471. (4, TType.STRING, 'col_name', 'UTF8', None, ), # 4
  24472. )
  24473. class delete_partition_column_statistics_result(object):
  24474. """
  24475. Attributes:
  24476. - success
  24477. - o1
  24478. - o2
  24479. - o3
  24480. - o4
  24481. """
  24482. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  24483. self.success = success
  24484. self.o1 = o1
  24485. self.o2 = o2
  24486. self.o3 = o3
  24487. self.o4 = o4
  24488. def read(self, iprot):
  24489. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24490. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24491. return
  24492. iprot.readStructBegin()
  24493. while True:
  24494. (fname, ftype, fid) = iprot.readFieldBegin()
  24495. if ftype == TType.STOP:
  24496. break
  24497. if fid == 0:
  24498. if ftype == TType.BOOL:
  24499. self.success = iprot.readBool()
  24500. else:
  24501. iprot.skip(ftype)
  24502. elif fid == 1:
  24503. if ftype == TType.STRUCT:
  24504. self.o1 = NoSuchObjectException()
  24505. self.o1.read(iprot)
  24506. else:
  24507. iprot.skip(ftype)
  24508. elif fid == 2:
  24509. if ftype == TType.STRUCT:
  24510. self.o2 = MetaException()
  24511. self.o2.read(iprot)
  24512. else:
  24513. iprot.skip(ftype)
  24514. elif fid == 3:
  24515. if ftype == TType.STRUCT:
  24516. self.o3 = InvalidObjectException()
  24517. self.o3.read(iprot)
  24518. else:
  24519. iprot.skip(ftype)
  24520. elif fid == 4:
  24521. if ftype == TType.STRUCT:
  24522. self.o4 = InvalidInputException()
  24523. self.o4.read(iprot)
  24524. else:
  24525. iprot.skip(ftype)
  24526. else:
  24527. iprot.skip(ftype)
  24528. iprot.readFieldEnd()
  24529. iprot.readStructEnd()
  24530. def write(self, oprot):
  24531. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24532. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24533. return
  24534. oprot.writeStructBegin('delete_partition_column_statistics_result')
  24535. if self.success is not None:
  24536. oprot.writeFieldBegin('success', TType.BOOL, 0)
  24537. oprot.writeBool(self.success)
  24538. oprot.writeFieldEnd()
  24539. if self.o1 is not None:
  24540. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24541. self.o1.write(oprot)
  24542. oprot.writeFieldEnd()
  24543. if self.o2 is not None:
  24544. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  24545. self.o2.write(oprot)
  24546. oprot.writeFieldEnd()
  24547. if self.o3 is not None:
  24548. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  24549. self.o3.write(oprot)
  24550. oprot.writeFieldEnd()
  24551. if self.o4 is not None:
  24552. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  24553. self.o4.write(oprot)
  24554. oprot.writeFieldEnd()
  24555. oprot.writeFieldStop()
  24556. oprot.writeStructEnd()
  24557. def validate(self):
  24558. return
  24559. def __repr__(self):
  24560. L = ['%s=%r' % (key, value)
  24561. for key, value in self.__dict__.items()]
  24562. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24563. def __eq__(self, other):
  24564. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24565. def __ne__(self, other):
  24566. return not (self == other)
  24567. all_structs.append(delete_partition_column_statistics_result)
  24568. delete_partition_column_statistics_result.thrift_spec = (
  24569. (0, TType.BOOL, 'success', None, None, ), # 0
  24570. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  24571. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  24572. (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3
  24573. (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4
  24574. )
  24575. class delete_table_column_statistics_args(object):
  24576. """
  24577. Attributes:
  24578. - db_name
  24579. - tbl_name
  24580. - col_name
  24581. """
  24582. def __init__(self, db_name=None, tbl_name=None, col_name=None,):
  24583. self.db_name = db_name
  24584. self.tbl_name = tbl_name
  24585. self.col_name = col_name
  24586. def read(self, iprot):
  24587. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24588. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24589. return
  24590. iprot.readStructBegin()
  24591. while True:
  24592. (fname, ftype, fid) = iprot.readFieldBegin()
  24593. if ftype == TType.STOP:
  24594. break
  24595. if fid == 1:
  24596. if ftype == TType.STRING:
  24597. self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  24598. else:
  24599. iprot.skip(ftype)
  24600. elif fid == 2:
  24601. if ftype == TType.STRING:
  24602. self.tbl_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  24603. else:
  24604. iprot.skip(ftype)
  24605. elif fid == 3:
  24606. if ftype == TType.STRING:
  24607. self.col_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  24608. else:
  24609. iprot.skip(ftype)
  24610. else:
  24611. iprot.skip(ftype)
  24612. iprot.readFieldEnd()
  24613. iprot.readStructEnd()
  24614. def write(self, oprot):
  24615. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24616. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24617. return
  24618. oprot.writeStructBegin('delete_table_column_statistics_args')
  24619. if self.db_name is not None:
  24620. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  24621. oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
  24622. oprot.writeFieldEnd()
  24623. if self.tbl_name is not None:
  24624. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  24625. oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name)
  24626. oprot.writeFieldEnd()
  24627. if self.col_name is not None:
  24628. oprot.writeFieldBegin('col_name', TType.STRING, 3)
  24629. oprot.writeString(self.col_name.encode('utf-8') if sys.version_info[0] == 2 else self.col_name)
  24630. oprot.writeFieldEnd()
  24631. oprot.writeFieldStop()
  24632. oprot.writeStructEnd()
  24633. def validate(self):
  24634. return
  24635. def __repr__(self):
  24636. L = ['%s=%r' % (key, value)
  24637. for key, value in self.__dict__.items()]
  24638. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24639. def __eq__(self, other):
  24640. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24641. def __ne__(self, other):
  24642. return not (self == other)
  24643. all_structs.append(delete_table_column_statistics_args)
  24644. delete_table_column_statistics_args.thrift_spec = (
  24645. None, # 0
  24646. (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
  24647. (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2
  24648. (3, TType.STRING, 'col_name', 'UTF8', None, ), # 3
  24649. )
  24650. class delete_table_column_statistics_result(object):
  24651. """
  24652. Attributes:
  24653. - success
  24654. - o1
  24655. - o2
  24656. - o3
  24657. - o4
  24658. """
  24659. def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,):
  24660. self.success = success
  24661. self.o1 = o1
  24662. self.o2 = o2
  24663. self.o3 = o3
  24664. self.o4 = o4
  24665. def read(self, iprot):
  24666. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24667. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24668. return
  24669. iprot.readStructBegin()
  24670. while True:
  24671. (fname, ftype, fid) = iprot.readFieldBegin()
  24672. if ftype == TType.STOP:
  24673. break
  24674. if fid == 0:
  24675. if ftype == TType.BOOL:
  24676. self.success = iprot.readBool()
  24677. else:
  24678. iprot.skip(ftype)
  24679. elif fid == 1:
  24680. if ftype == TType.STRUCT:
  24681. self.o1 = NoSuchObjectException()
  24682. self.o1.read(iprot)
  24683. else:
  24684. iprot.skip(ftype)
  24685. elif fid == 2:
  24686. if ftype == TType.STRUCT:
  24687. self.o2 = MetaException()
  24688. self.o2.read(iprot)
  24689. else:
  24690. iprot.skip(ftype)
  24691. elif fid == 3:
  24692. if ftype == TType.STRUCT:
  24693. self.o3 = InvalidObjectException()
  24694. self.o3.read(iprot)
  24695. else:
  24696. iprot.skip(ftype)
  24697. elif fid == 4:
  24698. if ftype == TType.STRUCT:
  24699. self.o4 = InvalidInputException()
  24700. self.o4.read(iprot)
  24701. else:
  24702. iprot.skip(ftype)
  24703. else:
  24704. iprot.skip(ftype)
  24705. iprot.readFieldEnd()
  24706. iprot.readStructEnd()
  24707. def write(self, oprot):
  24708. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24709. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24710. return
  24711. oprot.writeStructBegin('delete_table_column_statistics_result')
  24712. if self.success is not None:
  24713. oprot.writeFieldBegin('success', TType.BOOL, 0)
  24714. oprot.writeBool(self.success)
  24715. oprot.writeFieldEnd()
  24716. if self.o1 is not None:
  24717. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24718. self.o1.write(oprot)
  24719. oprot.writeFieldEnd()
  24720. if self.o2 is not None:
  24721. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  24722. self.o2.write(oprot)
  24723. oprot.writeFieldEnd()
  24724. if self.o3 is not None:
  24725. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  24726. self.o3.write(oprot)
  24727. oprot.writeFieldEnd()
  24728. if self.o4 is not None:
  24729. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  24730. self.o4.write(oprot)
  24731. oprot.writeFieldEnd()
  24732. oprot.writeFieldStop()
  24733. oprot.writeStructEnd()
  24734. def validate(self):
  24735. return
  24736. def __repr__(self):
  24737. L = ['%s=%r' % (key, value)
  24738. for key, value in self.__dict__.items()]
  24739. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24740. def __eq__(self, other):
  24741. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24742. def __ne__(self, other):
  24743. return not (self == other)
  24744. all_structs.append(delete_table_column_statistics_result)
  24745. delete_table_column_statistics_result.thrift_spec = (
  24746. (0, TType.BOOL, 'success', None, None, ), # 0
  24747. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  24748. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  24749. (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3
  24750. (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4
  24751. )
  24752. class create_function_args(object):
  24753. """
  24754. Attributes:
  24755. - func
  24756. """
  24757. def __init__(self, func=None,):
  24758. self.func = func
  24759. def read(self, iprot):
  24760. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24761. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24762. return
  24763. iprot.readStructBegin()
  24764. while True:
  24765. (fname, ftype, fid) = iprot.readFieldBegin()
  24766. if ftype == TType.STOP:
  24767. break
  24768. if fid == 1:
  24769. if ftype == TType.STRUCT:
  24770. self.func = Function()
  24771. self.func.read(iprot)
  24772. else:
  24773. iprot.skip(ftype)
  24774. else:
  24775. iprot.skip(ftype)
  24776. iprot.readFieldEnd()
  24777. iprot.readStructEnd()
  24778. def write(self, oprot):
  24779. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24780. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24781. return
  24782. oprot.writeStructBegin('create_function_args')
  24783. if self.func is not None:
  24784. oprot.writeFieldBegin('func', TType.STRUCT, 1)
  24785. self.func.write(oprot)
  24786. oprot.writeFieldEnd()
  24787. oprot.writeFieldStop()
  24788. oprot.writeStructEnd()
  24789. def validate(self):
  24790. return
  24791. def __repr__(self):
  24792. L = ['%s=%r' % (key, value)
  24793. for key, value in self.__dict__.items()]
  24794. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24795. def __eq__(self, other):
  24796. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24797. def __ne__(self, other):
  24798. return not (self == other)
  24799. all_structs.append(create_function_args)
  24800. create_function_args.thrift_spec = (
  24801. None, # 0
  24802. (1, TType.STRUCT, 'func', [Function, None], None, ), # 1
  24803. )
  24804. class create_function_result(object):
  24805. """
  24806. Attributes:
  24807. - o1
  24808. - o2
  24809. - o3
  24810. - o4
  24811. """
  24812. def __init__(self, o1=None, o2=None, o3=None, o4=None,):
  24813. self.o1 = o1
  24814. self.o2 = o2
  24815. self.o3 = o3
  24816. self.o4 = o4
  24817. def read(self, iprot):
  24818. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24819. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24820. return
  24821. iprot.readStructBegin()
  24822. while True:
  24823. (fname, ftype, fid) = iprot.readFieldBegin()
  24824. if ftype == TType.STOP:
  24825. break
  24826. if fid == 1:
  24827. if ftype == TType.STRUCT:
  24828. self.o1 = AlreadyExistsException()
  24829. self.o1.read(iprot)
  24830. else:
  24831. iprot.skip(ftype)
  24832. elif fid == 2:
  24833. if ftype == TType.STRUCT:
  24834. self.o2 = InvalidObjectException()
  24835. self.o2.read(iprot)
  24836. else:
  24837. iprot.skip(ftype)
  24838. elif fid == 3:
  24839. if ftype == TType.STRUCT:
  24840. self.o3 = MetaException()
  24841. self.o3.read(iprot)
  24842. else:
  24843. iprot.skip(ftype)
  24844. elif fid == 4:
  24845. if ftype == TType.STRUCT:
  24846. self.o4 = NoSuchObjectException()
  24847. self.o4.read(iprot)
  24848. else:
  24849. iprot.skip(ftype)
  24850. else:
  24851. iprot.skip(ftype)
  24852. iprot.readFieldEnd()
  24853. iprot.readStructEnd()
  24854. def write(self, oprot):
  24855. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24856. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24857. return
  24858. oprot.writeStructBegin('create_function_result')
  24859. if self.o1 is not None:
  24860. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24861. self.o1.write(oprot)
  24862. oprot.writeFieldEnd()
  24863. if self.o2 is not None:
  24864. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  24865. self.o2.write(oprot)
  24866. oprot.writeFieldEnd()
  24867. if self.o3 is not None:
  24868. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  24869. self.o3.write(oprot)
  24870. oprot.writeFieldEnd()
  24871. if self.o4 is not None:
  24872. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  24873. self.o4.write(oprot)
  24874. oprot.writeFieldEnd()
  24875. oprot.writeFieldStop()
  24876. oprot.writeStructEnd()
  24877. def validate(self):
  24878. return
  24879. def __repr__(self):
  24880. L = ['%s=%r' % (key, value)
  24881. for key, value in self.__dict__.items()]
  24882. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24883. def __eq__(self, other):
  24884. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24885. def __ne__(self, other):
  24886. return not (self == other)
  24887. all_structs.append(create_function_result)
  24888. create_function_result.thrift_spec = (
  24889. None, # 0
  24890. (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1
  24891. (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2
  24892. (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3
  24893. (4, TType.STRUCT, 'o4', [NoSuchObjectException, None], None, ), # 4
  24894. )
  24895. class drop_function_args(object):
  24896. """
  24897. Attributes:
  24898. - dbName
  24899. - funcName
  24900. """
  24901. def __init__(self, dbName=None, funcName=None,):
  24902. self.dbName = dbName
  24903. self.funcName = funcName
  24904. def read(self, iprot):
  24905. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24906. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24907. return
  24908. iprot.readStructBegin()
  24909. while True:
  24910. (fname, ftype, fid) = iprot.readFieldBegin()
  24911. if ftype == TType.STOP:
  24912. break
  24913. if fid == 1:
  24914. if ftype == TType.STRING:
  24915. self.dbName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  24916. else:
  24917. iprot.skip(ftype)
  24918. elif fid == 2:
  24919. if ftype == TType.STRING:
  24920. self.funcName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  24921. else:
  24922. iprot.skip(ftype)
  24923. else:
  24924. iprot.skip(ftype)
  24925. iprot.readFieldEnd()
  24926. iprot.readStructEnd()
  24927. def write(self, oprot):
  24928. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24929. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24930. return
  24931. oprot.writeStructBegin('drop_function_args')
  24932. if self.dbName is not None:
  24933. oprot.writeFieldBegin('dbName', TType.STRING, 1)
  24934. oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName)
  24935. oprot.writeFieldEnd()
  24936. if self.funcName is not None:
  24937. oprot.writeFieldBegin('funcName', TType.STRING, 2)
  24938. oprot.writeString(self.funcName.encode('utf-8') if sys.version_info[0] == 2 else self.funcName)
  24939. oprot.writeFieldEnd()
  24940. oprot.writeFieldStop()
  24941. oprot.writeStructEnd()
  24942. def validate(self):
  24943. return
  24944. def __repr__(self):
  24945. L = ['%s=%r' % (key, value)
  24946. for key, value in self.__dict__.items()]
  24947. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  24948. def __eq__(self, other):
  24949. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  24950. def __ne__(self, other):
  24951. return not (self == other)
  24952. all_structs.append(drop_function_args)
  24953. drop_function_args.thrift_spec = (
  24954. None, # 0
  24955. (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1
  24956. (2, TType.STRING, 'funcName', 'UTF8', None, ), # 2
  24957. )
  24958. class drop_function_result(object):
  24959. """
  24960. Attributes:
  24961. - o1
  24962. - o3
  24963. """
  24964. def __init__(self, o1=None, o3=None,):
  24965. self.o1 = o1
  24966. self.o3 = o3
  24967. def read(self, iprot):
  24968. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  24969. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  24970. return
  24971. iprot.readStructBegin()
  24972. while True:
  24973. (fname, ftype, fid) = iprot.readFieldBegin()
  24974. if ftype == TType.STOP:
  24975. break
  24976. if fid == 1:
  24977. if ftype == TType.STRUCT:
  24978. self.o1 = NoSuchObjectException()
  24979. self.o1.read(iprot)
  24980. else:
  24981. iprot.skip(ftype)
  24982. elif fid == 2:
  24983. if ftype == TType.STRUCT:
  24984. self.o3 = MetaException()
  24985. self.o3.read(iprot)
  24986. else:
  24987. iprot.skip(ftype)
  24988. else:
  24989. iprot.skip(ftype)
  24990. iprot.readFieldEnd()
  24991. iprot.readStructEnd()
  24992. def write(self, oprot):
  24993. if oprot._fast_encode is not None and self.thrift_spec is not None:
  24994. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  24995. return
  24996. oprot.writeStructBegin('drop_function_result')
  24997. if self.o1 is not None:
  24998. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  24999. self.o1.write(oprot)
  25000. oprot.writeFieldEnd()
  25001. if self.o3 is not None:
  25002. oprot.writeFieldBegin('o3', TType.STRUCT, 2)
  25003. self.o3.write(oprot)
  25004. oprot.writeFieldEnd()
  25005. oprot.writeFieldStop()
  25006. oprot.writeStructEnd()
  25007. def validate(self):
  25008. return
  25009. def __repr__(self):
  25010. L = ['%s=%r' % (key, value)
  25011. for key, value in self.__dict__.items()]
  25012. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25013. def __eq__(self, other):
  25014. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25015. def __ne__(self, other):
  25016. return not (self == other)
  25017. all_structs.append(drop_function_result)
  25018. drop_function_result.thrift_spec = (
  25019. None, # 0
  25020. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  25021. (2, TType.STRUCT, 'o3', [MetaException, None], None, ), # 2
  25022. )
  25023. class alter_function_args(object):
  25024. """
  25025. Attributes:
  25026. - dbName
  25027. - funcName
  25028. - newFunc
  25029. """
  25030. def __init__(self, dbName=None, funcName=None, newFunc=None,):
  25031. self.dbName = dbName
  25032. self.funcName = funcName
  25033. self.newFunc = newFunc
  25034. def read(self, iprot):
  25035. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25036. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25037. return
  25038. iprot.readStructBegin()
  25039. while True:
  25040. (fname, ftype, fid) = iprot.readFieldBegin()
  25041. if ftype == TType.STOP:
  25042. break
  25043. if fid == 1:
  25044. if ftype == TType.STRING:
  25045. self.dbName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  25046. else:
  25047. iprot.skip(ftype)
  25048. elif fid == 2:
  25049. if ftype == TType.STRING:
  25050. self.funcName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  25051. else:
  25052. iprot.skip(ftype)
  25053. elif fid == 3:
  25054. if ftype == TType.STRUCT:
  25055. self.newFunc = Function()
  25056. self.newFunc.read(iprot)
  25057. else:
  25058. iprot.skip(ftype)
  25059. else:
  25060. iprot.skip(ftype)
  25061. iprot.readFieldEnd()
  25062. iprot.readStructEnd()
  25063. def write(self, oprot):
  25064. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25065. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25066. return
  25067. oprot.writeStructBegin('alter_function_args')
  25068. if self.dbName is not None:
  25069. oprot.writeFieldBegin('dbName', TType.STRING, 1)
  25070. oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName)
  25071. oprot.writeFieldEnd()
  25072. if self.funcName is not None:
  25073. oprot.writeFieldBegin('funcName', TType.STRING, 2)
  25074. oprot.writeString(self.funcName.encode('utf-8') if sys.version_info[0] == 2 else self.funcName)
  25075. oprot.writeFieldEnd()
  25076. if self.newFunc is not None:
  25077. oprot.writeFieldBegin('newFunc', TType.STRUCT, 3)
  25078. self.newFunc.write(oprot)
  25079. oprot.writeFieldEnd()
  25080. oprot.writeFieldStop()
  25081. oprot.writeStructEnd()
  25082. def validate(self):
  25083. return
  25084. def __repr__(self):
  25085. L = ['%s=%r' % (key, value)
  25086. for key, value in self.__dict__.items()]
  25087. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25088. def __eq__(self, other):
  25089. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25090. def __ne__(self, other):
  25091. return not (self == other)
  25092. all_structs.append(alter_function_args)
  25093. alter_function_args.thrift_spec = (
  25094. None, # 0
  25095. (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1
  25096. (2, TType.STRING, 'funcName', 'UTF8', None, ), # 2
  25097. (3, TType.STRUCT, 'newFunc', [Function, None], None, ), # 3
  25098. )
  25099. class alter_function_result(object):
  25100. """
  25101. Attributes:
  25102. - o1
  25103. - o2
  25104. """
  25105. def __init__(self, o1=None, o2=None,):
  25106. self.o1 = o1
  25107. self.o2 = o2
  25108. def read(self, iprot):
  25109. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25110. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25111. return
  25112. iprot.readStructBegin()
  25113. while True:
  25114. (fname, ftype, fid) = iprot.readFieldBegin()
  25115. if ftype == TType.STOP:
  25116. break
  25117. if fid == 1:
  25118. if ftype == TType.STRUCT:
  25119. self.o1 = InvalidOperationException()
  25120. self.o1.read(iprot)
  25121. else:
  25122. iprot.skip(ftype)
  25123. elif fid == 2:
  25124. if ftype == TType.STRUCT:
  25125. self.o2 = MetaException()
  25126. self.o2.read(iprot)
  25127. else:
  25128. iprot.skip(ftype)
  25129. else:
  25130. iprot.skip(ftype)
  25131. iprot.readFieldEnd()
  25132. iprot.readStructEnd()
  25133. def write(self, oprot):
  25134. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25135. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25136. return
  25137. oprot.writeStructBegin('alter_function_result')
  25138. if self.o1 is not None:
  25139. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25140. self.o1.write(oprot)
  25141. oprot.writeFieldEnd()
  25142. if self.o2 is not None:
  25143. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  25144. self.o2.write(oprot)
  25145. oprot.writeFieldEnd()
  25146. oprot.writeFieldStop()
  25147. oprot.writeStructEnd()
  25148. def validate(self):
  25149. return
  25150. def __repr__(self):
  25151. L = ['%s=%r' % (key, value)
  25152. for key, value in self.__dict__.items()]
  25153. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25154. def __eq__(self, other):
  25155. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25156. def __ne__(self, other):
  25157. return not (self == other)
  25158. all_structs.append(alter_function_result)
  25159. alter_function_result.thrift_spec = (
  25160. None, # 0
  25161. (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1
  25162. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  25163. )
  25164. class get_functions_args(object):
  25165. """
  25166. Attributes:
  25167. - dbName
  25168. - pattern
  25169. """
  25170. def __init__(self, dbName=None, pattern=None,):
  25171. self.dbName = dbName
  25172. self.pattern = pattern
  25173. def read(self, iprot):
  25174. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25175. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25176. return
  25177. iprot.readStructBegin()
  25178. while True:
  25179. (fname, ftype, fid) = iprot.readFieldBegin()
  25180. if ftype == TType.STOP:
  25181. break
  25182. if fid == 1:
  25183. if ftype == TType.STRING:
  25184. self.dbName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  25185. else:
  25186. iprot.skip(ftype)
  25187. elif fid == 2:
  25188. if ftype == TType.STRING:
  25189. self.pattern = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  25190. else:
  25191. iprot.skip(ftype)
  25192. else:
  25193. iprot.skip(ftype)
  25194. iprot.readFieldEnd()
  25195. iprot.readStructEnd()
  25196. def write(self, oprot):
  25197. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25198. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25199. return
  25200. oprot.writeStructBegin('get_functions_args')
  25201. if self.dbName is not None:
  25202. oprot.writeFieldBegin('dbName', TType.STRING, 1)
  25203. oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName)
  25204. oprot.writeFieldEnd()
  25205. if self.pattern is not None:
  25206. oprot.writeFieldBegin('pattern', TType.STRING, 2)
  25207. oprot.writeString(self.pattern.encode('utf-8') if sys.version_info[0] == 2 else self.pattern)
  25208. oprot.writeFieldEnd()
  25209. oprot.writeFieldStop()
  25210. oprot.writeStructEnd()
  25211. def validate(self):
  25212. return
  25213. def __repr__(self):
  25214. L = ['%s=%r' % (key, value)
  25215. for key, value in self.__dict__.items()]
  25216. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25217. def __eq__(self, other):
  25218. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25219. def __ne__(self, other):
  25220. return not (self == other)
  25221. all_structs.append(get_functions_args)
  25222. get_functions_args.thrift_spec = (
  25223. None, # 0
  25224. (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1
  25225. (2, TType.STRING, 'pattern', 'UTF8', None, ), # 2
  25226. )
  25227. class get_functions_result(object):
  25228. """
  25229. Attributes:
  25230. - success
  25231. - o1
  25232. """
  25233. def __init__(self, success=None, o1=None,):
  25234. self.success = success
  25235. self.o1 = o1
  25236. def read(self, iprot):
  25237. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25238. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25239. return
  25240. iprot.readStructBegin()
  25241. while True:
  25242. (fname, ftype, fid) = iprot.readFieldBegin()
  25243. if ftype == TType.STOP:
  25244. break
  25245. if fid == 0:
  25246. if ftype == TType.LIST:
  25247. self.success = []
  25248. (_etype987, _size984) = iprot.readListBegin()
  25249. for _i988 in range(_size984):
  25250. _elem989 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  25251. self.success.append(_elem989)
  25252. iprot.readListEnd()
  25253. else:
  25254. iprot.skip(ftype)
  25255. elif fid == 1:
  25256. if ftype == TType.STRUCT:
  25257. self.o1 = MetaException()
  25258. self.o1.read(iprot)
  25259. else:
  25260. iprot.skip(ftype)
  25261. else:
  25262. iprot.skip(ftype)
  25263. iprot.readFieldEnd()
  25264. iprot.readStructEnd()
  25265. def write(self, oprot):
  25266. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25267. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25268. return
  25269. oprot.writeStructBegin('get_functions_result')
  25270. if self.success is not None:
  25271. oprot.writeFieldBegin('success', TType.LIST, 0)
  25272. oprot.writeListBegin(TType.STRING, len(self.success))
  25273. for iter990 in self.success:
  25274. oprot.writeString(iter990.encode('utf-8') if sys.version_info[0] == 2 else iter990)
  25275. oprot.writeListEnd()
  25276. oprot.writeFieldEnd()
  25277. if self.o1 is not None:
  25278. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25279. self.o1.write(oprot)
  25280. oprot.writeFieldEnd()
  25281. oprot.writeFieldStop()
  25282. oprot.writeStructEnd()
  25283. def validate(self):
  25284. return
  25285. def __repr__(self):
  25286. L = ['%s=%r' % (key, value)
  25287. for key, value in self.__dict__.items()]
  25288. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25289. def __eq__(self, other):
  25290. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25291. def __ne__(self, other):
  25292. return not (self == other)
  25293. all_structs.append(get_functions_result)
  25294. get_functions_result.thrift_spec = (
  25295. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  25296. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  25297. )
  25298. class get_function_args(object):
  25299. """
  25300. Attributes:
  25301. - dbName
  25302. - funcName
  25303. """
  25304. def __init__(self, dbName=None, funcName=None,):
  25305. self.dbName = dbName
  25306. self.funcName = funcName
  25307. def read(self, iprot):
  25308. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25309. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25310. return
  25311. iprot.readStructBegin()
  25312. while True:
  25313. (fname, ftype, fid) = iprot.readFieldBegin()
  25314. if ftype == TType.STOP:
  25315. break
  25316. if fid == 1:
  25317. if ftype == TType.STRING:
  25318. self.dbName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  25319. else:
  25320. iprot.skip(ftype)
  25321. elif fid == 2:
  25322. if ftype == TType.STRING:
  25323. self.funcName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  25324. else:
  25325. iprot.skip(ftype)
  25326. else:
  25327. iprot.skip(ftype)
  25328. iprot.readFieldEnd()
  25329. iprot.readStructEnd()
  25330. def write(self, oprot):
  25331. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25332. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25333. return
  25334. oprot.writeStructBegin('get_function_args')
  25335. if self.dbName is not None:
  25336. oprot.writeFieldBegin('dbName', TType.STRING, 1)
  25337. oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName)
  25338. oprot.writeFieldEnd()
  25339. if self.funcName is not None:
  25340. oprot.writeFieldBegin('funcName', TType.STRING, 2)
  25341. oprot.writeString(self.funcName.encode('utf-8') if sys.version_info[0] == 2 else self.funcName)
  25342. oprot.writeFieldEnd()
  25343. oprot.writeFieldStop()
  25344. oprot.writeStructEnd()
  25345. def validate(self):
  25346. return
  25347. def __repr__(self):
  25348. L = ['%s=%r' % (key, value)
  25349. for key, value in self.__dict__.items()]
  25350. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25351. def __eq__(self, other):
  25352. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25353. def __ne__(self, other):
  25354. return not (self == other)
  25355. all_structs.append(get_function_args)
  25356. get_function_args.thrift_spec = (
  25357. None, # 0
  25358. (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1
  25359. (2, TType.STRING, 'funcName', 'UTF8', None, ), # 2
  25360. )
  25361. class get_function_result(object):
  25362. """
  25363. Attributes:
  25364. - success
  25365. - o1
  25366. - o2
  25367. """
  25368. def __init__(self, success=None, o1=None, o2=None,):
  25369. self.success = success
  25370. self.o1 = o1
  25371. self.o2 = o2
  25372. def read(self, iprot):
  25373. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25374. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25375. return
  25376. iprot.readStructBegin()
  25377. while True:
  25378. (fname, ftype, fid) = iprot.readFieldBegin()
  25379. if ftype == TType.STOP:
  25380. break
  25381. if fid == 0:
  25382. if ftype == TType.STRUCT:
  25383. self.success = Function()
  25384. self.success.read(iprot)
  25385. else:
  25386. iprot.skip(ftype)
  25387. elif fid == 1:
  25388. if ftype == TType.STRUCT:
  25389. self.o1 = MetaException()
  25390. self.o1.read(iprot)
  25391. else:
  25392. iprot.skip(ftype)
  25393. elif fid == 2:
  25394. if ftype == TType.STRUCT:
  25395. self.o2 = NoSuchObjectException()
  25396. self.o2.read(iprot)
  25397. else:
  25398. iprot.skip(ftype)
  25399. else:
  25400. iprot.skip(ftype)
  25401. iprot.readFieldEnd()
  25402. iprot.readStructEnd()
  25403. def write(self, oprot):
  25404. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25405. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25406. return
  25407. oprot.writeStructBegin('get_function_result')
  25408. if self.success is not None:
  25409. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  25410. self.success.write(oprot)
  25411. oprot.writeFieldEnd()
  25412. if self.o1 is not None:
  25413. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25414. self.o1.write(oprot)
  25415. oprot.writeFieldEnd()
  25416. if self.o2 is not None:
  25417. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  25418. self.o2.write(oprot)
  25419. oprot.writeFieldEnd()
  25420. oprot.writeFieldStop()
  25421. oprot.writeStructEnd()
  25422. def validate(self):
  25423. return
  25424. def __repr__(self):
  25425. L = ['%s=%r' % (key, value)
  25426. for key, value in self.__dict__.items()]
  25427. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25428. def __eq__(self, other):
  25429. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25430. def __ne__(self, other):
  25431. return not (self == other)
  25432. all_structs.append(get_function_result)
  25433. get_function_result.thrift_spec = (
  25434. (0, TType.STRUCT, 'success', [Function, None], None, ), # 0
  25435. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  25436. (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2
  25437. )
  25438. class get_all_functions_args(object):
  25439. def read(self, iprot):
  25440. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25441. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25442. return
  25443. iprot.readStructBegin()
  25444. while True:
  25445. (fname, ftype, fid) = iprot.readFieldBegin()
  25446. if ftype == TType.STOP:
  25447. break
  25448. else:
  25449. iprot.skip(ftype)
  25450. iprot.readFieldEnd()
  25451. iprot.readStructEnd()
  25452. def write(self, oprot):
  25453. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25454. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25455. return
  25456. oprot.writeStructBegin('get_all_functions_args')
  25457. oprot.writeFieldStop()
  25458. oprot.writeStructEnd()
  25459. def validate(self):
  25460. return
  25461. def __repr__(self):
  25462. L = ['%s=%r' % (key, value)
  25463. for key, value in self.__dict__.items()]
  25464. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25465. def __eq__(self, other):
  25466. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25467. def __ne__(self, other):
  25468. return not (self == other)
  25469. all_structs.append(get_all_functions_args)
  25470. get_all_functions_args.thrift_spec = (
  25471. )
  25472. class get_all_functions_result(object):
  25473. """
  25474. Attributes:
  25475. - success
  25476. - o1
  25477. """
  25478. def __init__(self, success=None, o1=None,):
  25479. self.success = success
  25480. self.o1 = o1
  25481. def read(self, iprot):
  25482. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25483. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25484. return
  25485. iprot.readStructBegin()
  25486. while True:
  25487. (fname, ftype, fid) = iprot.readFieldBegin()
  25488. if ftype == TType.STOP:
  25489. break
  25490. if fid == 0:
  25491. if ftype == TType.STRUCT:
  25492. self.success = GetAllFunctionsResponse()
  25493. self.success.read(iprot)
  25494. else:
  25495. iprot.skip(ftype)
  25496. elif fid == 1:
  25497. if ftype == TType.STRUCT:
  25498. self.o1 = MetaException()
  25499. self.o1.read(iprot)
  25500. else:
  25501. iprot.skip(ftype)
  25502. else:
  25503. iprot.skip(ftype)
  25504. iprot.readFieldEnd()
  25505. iprot.readStructEnd()
  25506. def write(self, oprot):
  25507. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25508. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25509. return
  25510. oprot.writeStructBegin('get_all_functions_result')
  25511. if self.success is not None:
  25512. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  25513. self.success.write(oprot)
  25514. oprot.writeFieldEnd()
  25515. if self.o1 is not None:
  25516. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25517. self.o1.write(oprot)
  25518. oprot.writeFieldEnd()
  25519. oprot.writeFieldStop()
  25520. oprot.writeStructEnd()
  25521. def validate(self):
  25522. return
  25523. def __repr__(self):
  25524. L = ['%s=%r' % (key, value)
  25525. for key, value in self.__dict__.items()]
  25526. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25527. def __eq__(self, other):
  25528. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25529. def __ne__(self, other):
  25530. return not (self == other)
  25531. all_structs.append(get_all_functions_result)
  25532. get_all_functions_result.thrift_spec = (
  25533. (0, TType.STRUCT, 'success', [GetAllFunctionsResponse, None], None, ), # 0
  25534. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  25535. )
  25536. class create_role_args(object):
  25537. """
  25538. Attributes:
  25539. - role
  25540. """
  25541. def __init__(self, role=None,):
  25542. self.role = role
  25543. def read(self, iprot):
  25544. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25545. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25546. return
  25547. iprot.readStructBegin()
  25548. while True:
  25549. (fname, ftype, fid) = iprot.readFieldBegin()
  25550. if ftype == TType.STOP:
  25551. break
  25552. if fid == 1:
  25553. if ftype == TType.STRUCT:
  25554. self.role = Role()
  25555. self.role.read(iprot)
  25556. else:
  25557. iprot.skip(ftype)
  25558. else:
  25559. iprot.skip(ftype)
  25560. iprot.readFieldEnd()
  25561. iprot.readStructEnd()
  25562. def write(self, oprot):
  25563. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25564. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25565. return
  25566. oprot.writeStructBegin('create_role_args')
  25567. if self.role is not None:
  25568. oprot.writeFieldBegin('role', TType.STRUCT, 1)
  25569. self.role.write(oprot)
  25570. oprot.writeFieldEnd()
  25571. oprot.writeFieldStop()
  25572. oprot.writeStructEnd()
  25573. def validate(self):
  25574. return
  25575. def __repr__(self):
  25576. L = ['%s=%r' % (key, value)
  25577. for key, value in self.__dict__.items()]
  25578. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25579. def __eq__(self, other):
  25580. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25581. def __ne__(self, other):
  25582. return not (self == other)
  25583. all_structs.append(create_role_args)
  25584. create_role_args.thrift_spec = (
  25585. None, # 0
  25586. (1, TType.STRUCT, 'role', [Role, None], None, ), # 1
  25587. )
  25588. class create_role_result(object):
  25589. """
  25590. Attributes:
  25591. - success
  25592. - o1
  25593. """
  25594. def __init__(self, success=None, o1=None,):
  25595. self.success = success
  25596. self.o1 = o1
  25597. def read(self, iprot):
  25598. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25599. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25600. return
  25601. iprot.readStructBegin()
  25602. while True:
  25603. (fname, ftype, fid) = iprot.readFieldBegin()
  25604. if ftype == TType.STOP:
  25605. break
  25606. if fid == 0:
  25607. if ftype == TType.BOOL:
  25608. self.success = iprot.readBool()
  25609. else:
  25610. iprot.skip(ftype)
  25611. elif fid == 1:
  25612. if ftype == TType.STRUCT:
  25613. self.o1 = MetaException()
  25614. self.o1.read(iprot)
  25615. else:
  25616. iprot.skip(ftype)
  25617. else:
  25618. iprot.skip(ftype)
  25619. iprot.readFieldEnd()
  25620. iprot.readStructEnd()
  25621. def write(self, oprot):
  25622. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25623. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25624. return
  25625. oprot.writeStructBegin('create_role_result')
  25626. if self.success is not None:
  25627. oprot.writeFieldBegin('success', TType.BOOL, 0)
  25628. oprot.writeBool(self.success)
  25629. oprot.writeFieldEnd()
  25630. if self.o1 is not None:
  25631. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25632. self.o1.write(oprot)
  25633. oprot.writeFieldEnd()
  25634. oprot.writeFieldStop()
  25635. oprot.writeStructEnd()
  25636. def validate(self):
  25637. return
  25638. def __repr__(self):
  25639. L = ['%s=%r' % (key, value)
  25640. for key, value in self.__dict__.items()]
  25641. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25642. def __eq__(self, other):
  25643. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25644. def __ne__(self, other):
  25645. return not (self == other)
  25646. all_structs.append(create_role_result)
  25647. create_role_result.thrift_spec = (
  25648. (0, TType.BOOL, 'success', None, None, ), # 0
  25649. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  25650. )
  25651. class drop_role_args(object):
  25652. """
  25653. Attributes:
  25654. - role_name
  25655. """
  25656. def __init__(self, role_name=None,):
  25657. self.role_name = role_name
  25658. def read(self, iprot):
  25659. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25660. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25661. return
  25662. iprot.readStructBegin()
  25663. while True:
  25664. (fname, ftype, fid) = iprot.readFieldBegin()
  25665. if ftype == TType.STOP:
  25666. break
  25667. if fid == 1:
  25668. if ftype == TType.STRING:
  25669. self.role_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  25670. else:
  25671. iprot.skip(ftype)
  25672. else:
  25673. iprot.skip(ftype)
  25674. iprot.readFieldEnd()
  25675. iprot.readStructEnd()
  25676. def write(self, oprot):
  25677. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25678. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25679. return
  25680. oprot.writeStructBegin('drop_role_args')
  25681. if self.role_name is not None:
  25682. oprot.writeFieldBegin('role_name', TType.STRING, 1)
  25683. oprot.writeString(self.role_name.encode('utf-8') if sys.version_info[0] == 2 else self.role_name)
  25684. oprot.writeFieldEnd()
  25685. oprot.writeFieldStop()
  25686. oprot.writeStructEnd()
  25687. def validate(self):
  25688. return
  25689. def __repr__(self):
  25690. L = ['%s=%r' % (key, value)
  25691. for key, value in self.__dict__.items()]
  25692. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25693. def __eq__(self, other):
  25694. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25695. def __ne__(self, other):
  25696. return not (self == other)
  25697. all_structs.append(drop_role_args)
  25698. drop_role_args.thrift_spec = (
  25699. None, # 0
  25700. (1, TType.STRING, 'role_name', 'UTF8', None, ), # 1
  25701. )
  25702. class drop_role_result(object):
  25703. """
  25704. Attributes:
  25705. - success
  25706. - o1
  25707. """
  25708. def __init__(self, success=None, o1=None,):
  25709. self.success = success
  25710. self.o1 = o1
  25711. def read(self, iprot):
  25712. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25713. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25714. return
  25715. iprot.readStructBegin()
  25716. while True:
  25717. (fname, ftype, fid) = iprot.readFieldBegin()
  25718. if ftype == TType.STOP:
  25719. break
  25720. if fid == 0:
  25721. if ftype == TType.BOOL:
  25722. self.success = iprot.readBool()
  25723. else:
  25724. iprot.skip(ftype)
  25725. elif fid == 1:
  25726. if ftype == TType.STRUCT:
  25727. self.o1 = MetaException()
  25728. self.o1.read(iprot)
  25729. else:
  25730. iprot.skip(ftype)
  25731. else:
  25732. iprot.skip(ftype)
  25733. iprot.readFieldEnd()
  25734. iprot.readStructEnd()
  25735. def write(self, oprot):
  25736. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25737. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25738. return
  25739. oprot.writeStructBegin('drop_role_result')
  25740. if self.success is not None:
  25741. oprot.writeFieldBegin('success', TType.BOOL, 0)
  25742. oprot.writeBool(self.success)
  25743. oprot.writeFieldEnd()
  25744. if self.o1 is not None:
  25745. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25746. self.o1.write(oprot)
  25747. oprot.writeFieldEnd()
  25748. oprot.writeFieldStop()
  25749. oprot.writeStructEnd()
  25750. def validate(self):
  25751. return
  25752. def __repr__(self):
  25753. L = ['%s=%r' % (key, value)
  25754. for key, value in self.__dict__.items()]
  25755. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25756. def __eq__(self, other):
  25757. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25758. def __ne__(self, other):
  25759. return not (self == other)
  25760. all_structs.append(drop_role_result)
  25761. drop_role_result.thrift_spec = (
  25762. (0, TType.BOOL, 'success', None, None, ), # 0
  25763. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  25764. )
  25765. class get_role_names_args(object):
  25766. def read(self, iprot):
  25767. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25768. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25769. return
  25770. iprot.readStructBegin()
  25771. while True:
  25772. (fname, ftype, fid) = iprot.readFieldBegin()
  25773. if ftype == TType.STOP:
  25774. break
  25775. else:
  25776. iprot.skip(ftype)
  25777. iprot.readFieldEnd()
  25778. iprot.readStructEnd()
  25779. def write(self, oprot):
  25780. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25781. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25782. return
  25783. oprot.writeStructBegin('get_role_names_args')
  25784. oprot.writeFieldStop()
  25785. oprot.writeStructEnd()
  25786. def validate(self):
  25787. return
  25788. def __repr__(self):
  25789. L = ['%s=%r' % (key, value)
  25790. for key, value in self.__dict__.items()]
  25791. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25792. def __eq__(self, other):
  25793. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25794. def __ne__(self, other):
  25795. return not (self == other)
  25796. all_structs.append(get_role_names_args)
  25797. get_role_names_args.thrift_spec = (
  25798. )
  25799. class get_role_names_result(object):
  25800. """
  25801. Attributes:
  25802. - success
  25803. - o1
  25804. """
  25805. def __init__(self, success=None, o1=None,):
  25806. self.success = success
  25807. self.o1 = o1
  25808. def read(self, iprot):
  25809. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25810. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25811. return
  25812. iprot.readStructBegin()
  25813. while True:
  25814. (fname, ftype, fid) = iprot.readFieldBegin()
  25815. if ftype == TType.STOP:
  25816. break
  25817. if fid == 0:
  25818. if ftype == TType.LIST:
  25819. self.success = []
  25820. (_etype994, _size991) = iprot.readListBegin()
  25821. for _i995 in range(_size991):
  25822. _elem996 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  25823. self.success.append(_elem996)
  25824. iprot.readListEnd()
  25825. else:
  25826. iprot.skip(ftype)
  25827. elif fid == 1:
  25828. if ftype == TType.STRUCT:
  25829. self.o1 = MetaException()
  25830. self.o1.read(iprot)
  25831. else:
  25832. iprot.skip(ftype)
  25833. else:
  25834. iprot.skip(ftype)
  25835. iprot.readFieldEnd()
  25836. iprot.readStructEnd()
  25837. def write(self, oprot):
  25838. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25839. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25840. return
  25841. oprot.writeStructBegin('get_role_names_result')
  25842. if self.success is not None:
  25843. oprot.writeFieldBegin('success', TType.LIST, 0)
  25844. oprot.writeListBegin(TType.STRING, len(self.success))
  25845. for iter997 in self.success:
  25846. oprot.writeString(iter997.encode('utf-8') if sys.version_info[0] == 2 else iter997)
  25847. oprot.writeListEnd()
  25848. oprot.writeFieldEnd()
  25849. if self.o1 is not None:
  25850. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  25851. self.o1.write(oprot)
  25852. oprot.writeFieldEnd()
  25853. oprot.writeFieldStop()
  25854. oprot.writeStructEnd()
  25855. def validate(self):
  25856. return
  25857. def __repr__(self):
  25858. L = ['%s=%r' % (key, value)
  25859. for key, value in self.__dict__.items()]
  25860. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25861. def __eq__(self, other):
  25862. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25863. def __ne__(self, other):
  25864. return not (self == other)
  25865. all_structs.append(get_role_names_result)
  25866. get_role_names_result.thrift_spec = (
  25867. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  25868. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  25869. )
  25870. class grant_role_args(object):
  25871. """
  25872. Attributes:
  25873. - role_name
  25874. - principal_name
  25875. - principal_type
  25876. - grantor
  25877. - grantorType
  25878. - grant_option
  25879. """
  25880. def __init__(self, role_name=None, principal_name=None, principal_type=None, grantor=None, grantorType=None, grant_option=None,):
  25881. self.role_name = role_name
  25882. self.principal_name = principal_name
  25883. self.principal_type = principal_type
  25884. self.grantor = grantor
  25885. self.grantorType = grantorType
  25886. self.grant_option = grant_option
  25887. def read(self, iprot):
  25888. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25889. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25890. return
  25891. iprot.readStructBegin()
  25892. while True:
  25893. (fname, ftype, fid) = iprot.readFieldBegin()
  25894. if ftype == TType.STOP:
  25895. break
  25896. if fid == 1:
  25897. if ftype == TType.STRING:
  25898. self.role_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  25899. else:
  25900. iprot.skip(ftype)
  25901. elif fid == 2:
  25902. if ftype == TType.STRING:
  25903. self.principal_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  25904. else:
  25905. iprot.skip(ftype)
  25906. elif fid == 3:
  25907. if ftype == TType.I32:
  25908. self.principal_type = iprot.readI32()
  25909. else:
  25910. iprot.skip(ftype)
  25911. elif fid == 4:
  25912. if ftype == TType.STRING:
  25913. self.grantor = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  25914. else:
  25915. iprot.skip(ftype)
  25916. elif fid == 5:
  25917. if ftype == TType.I32:
  25918. self.grantorType = iprot.readI32()
  25919. else:
  25920. iprot.skip(ftype)
  25921. elif fid == 6:
  25922. if ftype == TType.BOOL:
  25923. self.grant_option = iprot.readBool()
  25924. else:
  25925. iprot.skip(ftype)
  25926. else:
  25927. iprot.skip(ftype)
  25928. iprot.readFieldEnd()
  25929. iprot.readStructEnd()
  25930. def write(self, oprot):
  25931. if oprot._fast_encode is not None and self.thrift_spec is not None:
  25932. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  25933. return
  25934. oprot.writeStructBegin('grant_role_args')
  25935. if self.role_name is not None:
  25936. oprot.writeFieldBegin('role_name', TType.STRING, 1)
  25937. oprot.writeString(self.role_name.encode('utf-8') if sys.version_info[0] == 2 else self.role_name)
  25938. oprot.writeFieldEnd()
  25939. if self.principal_name is not None:
  25940. oprot.writeFieldBegin('principal_name', TType.STRING, 2)
  25941. oprot.writeString(self.principal_name.encode('utf-8') if sys.version_info[0] == 2 else self.principal_name)
  25942. oprot.writeFieldEnd()
  25943. if self.principal_type is not None:
  25944. oprot.writeFieldBegin('principal_type', TType.I32, 3)
  25945. oprot.writeI32(self.principal_type)
  25946. oprot.writeFieldEnd()
  25947. if self.grantor is not None:
  25948. oprot.writeFieldBegin('grantor', TType.STRING, 4)
  25949. oprot.writeString(self.grantor.encode('utf-8') if sys.version_info[0] == 2 else self.grantor)
  25950. oprot.writeFieldEnd()
  25951. if self.grantorType is not None:
  25952. oprot.writeFieldBegin('grantorType', TType.I32, 5)
  25953. oprot.writeI32(self.grantorType)
  25954. oprot.writeFieldEnd()
  25955. if self.grant_option is not None:
  25956. oprot.writeFieldBegin('grant_option', TType.BOOL, 6)
  25957. oprot.writeBool(self.grant_option)
  25958. oprot.writeFieldEnd()
  25959. oprot.writeFieldStop()
  25960. oprot.writeStructEnd()
  25961. def validate(self):
  25962. return
  25963. def __repr__(self):
  25964. L = ['%s=%r' % (key, value)
  25965. for key, value in self.__dict__.items()]
  25966. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  25967. def __eq__(self, other):
  25968. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  25969. def __ne__(self, other):
  25970. return not (self == other)
  25971. all_structs.append(grant_role_args)
  25972. grant_role_args.thrift_spec = (
  25973. None, # 0
  25974. (1, TType.STRING, 'role_name', 'UTF8', None, ), # 1
  25975. (2, TType.STRING, 'principal_name', 'UTF8', None, ), # 2
  25976. (3, TType.I32, 'principal_type', None, None, ), # 3
  25977. (4, TType.STRING, 'grantor', 'UTF8', None, ), # 4
  25978. (5, TType.I32, 'grantorType', None, None, ), # 5
  25979. (6, TType.BOOL, 'grant_option', None, None, ), # 6
  25980. )
  25981. class grant_role_result(object):
  25982. """
  25983. Attributes:
  25984. - success
  25985. - o1
  25986. """
  25987. def __init__(self, success=None, o1=None,):
  25988. self.success = success
  25989. self.o1 = o1
  25990. def read(self, iprot):
  25991. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  25992. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  25993. return
  25994. iprot.readStructBegin()
  25995. while True:
  25996. (fname, ftype, fid) = iprot.readFieldBegin()
  25997. if ftype == TType.STOP:
  25998. break
  25999. if fid == 0:
  26000. if ftype == TType.BOOL:
  26001. self.success = iprot.readBool()
  26002. else:
  26003. iprot.skip(ftype)
  26004. elif fid == 1:
  26005. if ftype == TType.STRUCT:
  26006. self.o1 = MetaException()
  26007. self.o1.read(iprot)
  26008. else:
  26009. iprot.skip(ftype)
  26010. else:
  26011. iprot.skip(ftype)
  26012. iprot.readFieldEnd()
  26013. iprot.readStructEnd()
  26014. def write(self, oprot):
  26015. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26016. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26017. return
  26018. oprot.writeStructBegin('grant_role_result')
  26019. if self.success is not None:
  26020. oprot.writeFieldBegin('success', TType.BOOL, 0)
  26021. oprot.writeBool(self.success)
  26022. oprot.writeFieldEnd()
  26023. if self.o1 is not None:
  26024. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26025. self.o1.write(oprot)
  26026. oprot.writeFieldEnd()
  26027. oprot.writeFieldStop()
  26028. oprot.writeStructEnd()
  26029. def validate(self):
  26030. return
  26031. def __repr__(self):
  26032. L = ['%s=%r' % (key, value)
  26033. for key, value in self.__dict__.items()]
  26034. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26035. def __eq__(self, other):
  26036. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26037. def __ne__(self, other):
  26038. return not (self == other)
  26039. all_structs.append(grant_role_result)
  26040. grant_role_result.thrift_spec = (
  26041. (0, TType.BOOL, 'success', None, None, ), # 0
  26042. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  26043. )
  26044. class revoke_role_args(object):
  26045. """
  26046. Attributes:
  26047. - role_name
  26048. - principal_name
  26049. - principal_type
  26050. """
  26051. def __init__(self, role_name=None, principal_name=None, principal_type=None,):
  26052. self.role_name = role_name
  26053. self.principal_name = principal_name
  26054. self.principal_type = principal_type
  26055. def read(self, iprot):
  26056. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26057. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26058. return
  26059. iprot.readStructBegin()
  26060. while True:
  26061. (fname, ftype, fid) = iprot.readFieldBegin()
  26062. if ftype == TType.STOP:
  26063. break
  26064. if fid == 1:
  26065. if ftype == TType.STRING:
  26066. self.role_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  26067. else:
  26068. iprot.skip(ftype)
  26069. elif fid == 2:
  26070. if ftype == TType.STRING:
  26071. self.principal_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  26072. else:
  26073. iprot.skip(ftype)
  26074. elif fid == 3:
  26075. if ftype == TType.I32:
  26076. self.principal_type = iprot.readI32()
  26077. else:
  26078. iprot.skip(ftype)
  26079. else:
  26080. iprot.skip(ftype)
  26081. iprot.readFieldEnd()
  26082. iprot.readStructEnd()
  26083. def write(self, oprot):
  26084. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26085. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26086. return
  26087. oprot.writeStructBegin('revoke_role_args')
  26088. if self.role_name is not None:
  26089. oprot.writeFieldBegin('role_name', TType.STRING, 1)
  26090. oprot.writeString(self.role_name.encode('utf-8') if sys.version_info[0] == 2 else self.role_name)
  26091. oprot.writeFieldEnd()
  26092. if self.principal_name is not None:
  26093. oprot.writeFieldBegin('principal_name', TType.STRING, 2)
  26094. oprot.writeString(self.principal_name.encode('utf-8') if sys.version_info[0] == 2 else self.principal_name)
  26095. oprot.writeFieldEnd()
  26096. if self.principal_type is not None:
  26097. oprot.writeFieldBegin('principal_type', TType.I32, 3)
  26098. oprot.writeI32(self.principal_type)
  26099. oprot.writeFieldEnd()
  26100. oprot.writeFieldStop()
  26101. oprot.writeStructEnd()
  26102. def validate(self):
  26103. return
  26104. def __repr__(self):
  26105. L = ['%s=%r' % (key, value)
  26106. for key, value in self.__dict__.items()]
  26107. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26108. def __eq__(self, other):
  26109. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26110. def __ne__(self, other):
  26111. return not (self == other)
  26112. all_structs.append(revoke_role_args)
  26113. revoke_role_args.thrift_spec = (
  26114. None, # 0
  26115. (1, TType.STRING, 'role_name', 'UTF8', None, ), # 1
  26116. (2, TType.STRING, 'principal_name', 'UTF8', None, ), # 2
  26117. (3, TType.I32, 'principal_type', None, None, ), # 3
  26118. )
  26119. class revoke_role_result(object):
  26120. """
  26121. Attributes:
  26122. - success
  26123. - o1
  26124. """
  26125. def __init__(self, success=None, o1=None,):
  26126. self.success = success
  26127. self.o1 = o1
  26128. def read(self, iprot):
  26129. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26130. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26131. return
  26132. iprot.readStructBegin()
  26133. while True:
  26134. (fname, ftype, fid) = iprot.readFieldBegin()
  26135. if ftype == TType.STOP:
  26136. break
  26137. if fid == 0:
  26138. if ftype == TType.BOOL:
  26139. self.success = iprot.readBool()
  26140. else:
  26141. iprot.skip(ftype)
  26142. elif fid == 1:
  26143. if ftype == TType.STRUCT:
  26144. self.o1 = MetaException()
  26145. self.o1.read(iprot)
  26146. else:
  26147. iprot.skip(ftype)
  26148. else:
  26149. iprot.skip(ftype)
  26150. iprot.readFieldEnd()
  26151. iprot.readStructEnd()
  26152. def write(self, oprot):
  26153. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26154. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26155. return
  26156. oprot.writeStructBegin('revoke_role_result')
  26157. if self.success is not None:
  26158. oprot.writeFieldBegin('success', TType.BOOL, 0)
  26159. oprot.writeBool(self.success)
  26160. oprot.writeFieldEnd()
  26161. if self.o1 is not None:
  26162. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26163. self.o1.write(oprot)
  26164. oprot.writeFieldEnd()
  26165. oprot.writeFieldStop()
  26166. oprot.writeStructEnd()
  26167. def validate(self):
  26168. return
  26169. def __repr__(self):
  26170. L = ['%s=%r' % (key, value)
  26171. for key, value in self.__dict__.items()]
  26172. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26173. def __eq__(self, other):
  26174. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26175. def __ne__(self, other):
  26176. return not (self == other)
  26177. all_structs.append(revoke_role_result)
  26178. revoke_role_result.thrift_spec = (
  26179. (0, TType.BOOL, 'success', None, None, ), # 0
  26180. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  26181. )
  26182. class list_roles_args(object):
  26183. """
  26184. Attributes:
  26185. - principal_name
  26186. - principal_type
  26187. """
  26188. def __init__(self, principal_name=None, principal_type=None,):
  26189. self.principal_name = principal_name
  26190. self.principal_type = principal_type
  26191. def read(self, iprot):
  26192. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26193. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26194. return
  26195. iprot.readStructBegin()
  26196. while True:
  26197. (fname, ftype, fid) = iprot.readFieldBegin()
  26198. if ftype == TType.STOP:
  26199. break
  26200. if fid == 1:
  26201. if ftype == TType.STRING:
  26202. self.principal_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  26203. else:
  26204. iprot.skip(ftype)
  26205. elif fid == 2:
  26206. if ftype == TType.I32:
  26207. self.principal_type = iprot.readI32()
  26208. else:
  26209. iprot.skip(ftype)
  26210. else:
  26211. iprot.skip(ftype)
  26212. iprot.readFieldEnd()
  26213. iprot.readStructEnd()
  26214. def write(self, oprot):
  26215. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26216. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26217. return
  26218. oprot.writeStructBegin('list_roles_args')
  26219. if self.principal_name is not None:
  26220. oprot.writeFieldBegin('principal_name', TType.STRING, 1)
  26221. oprot.writeString(self.principal_name.encode('utf-8') if sys.version_info[0] == 2 else self.principal_name)
  26222. oprot.writeFieldEnd()
  26223. if self.principal_type is not None:
  26224. oprot.writeFieldBegin('principal_type', TType.I32, 2)
  26225. oprot.writeI32(self.principal_type)
  26226. oprot.writeFieldEnd()
  26227. oprot.writeFieldStop()
  26228. oprot.writeStructEnd()
  26229. def validate(self):
  26230. return
  26231. def __repr__(self):
  26232. L = ['%s=%r' % (key, value)
  26233. for key, value in self.__dict__.items()]
  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. all_structs.append(list_roles_args)
  26240. list_roles_args.thrift_spec = (
  26241. None, # 0
  26242. (1, TType.STRING, 'principal_name', 'UTF8', None, ), # 1
  26243. (2, TType.I32, 'principal_type', None, None, ), # 2
  26244. )
  26245. class list_roles_result(object):
  26246. """
  26247. Attributes:
  26248. - success
  26249. - o1
  26250. """
  26251. def __init__(self, success=None, o1=None,):
  26252. self.success = success
  26253. self.o1 = o1
  26254. def read(self, iprot):
  26255. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26256. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26257. return
  26258. iprot.readStructBegin()
  26259. while True:
  26260. (fname, ftype, fid) = iprot.readFieldBegin()
  26261. if ftype == TType.STOP:
  26262. break
  26263. if fid == 0:
  26264. if ftype == TType.LIST:
  26265. self.success = []
  26266. (_etype1001, _size998) = iprot.readListBegin()
  26267. for _i1002 in range(_size998):
  26268. _elem1003 = Role()
  26269. _elem1003.read(iprot)
  26270. self.success.append(_elem1003)
  26271. iprot.readListEnd()
  26272. else:
  26273. iprot.skip(ftype)
  26274. elif fid == 1:
  26275. if ftype == TType.STRUCT:
  26276. self.o1 = MetaException()
  26277. self.o1.read(iprot)
  26278. else:
  26279. iprot.skip(ftype)
  26280. else:
  26281. iprot.skip(ftype)
  26282. iprot.readFieldEnd()
  26283. iprot.readStructEnd()
  26284. def write(self, oprot):
  26285. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26286. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26287. return
  26288. oprot.writeStructBegin('list_roles_result')
  26289. if self.success is not None:
  26290. oprot.writeFieldBegin('success', TType.LIST, 0)
  26291. oprot.writeListBegin(TType.STRUCT, len(self.success))
  26292. for iter1004 in self.success:
  26293. iter1004.write(oprot)
  26294. oprot.writeListEnd()
  26295. oprot.writeFieldEnd()
  26296. if self.o1 is not None:
  26297. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26298. self.o1.write(oprot)
  26299. oprot.writeFieldEnd()
  26300. oprot.writeFieldStop()
  26301. oprot.writeStructEnd()
  26302. def validate(self):
  26303. return
  26304. def __repr__(self):
  26305. L = ['%s=%r' % (key, value)
  26306. for key, value in self.__dict__.items()]
  26307. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26308. def __eq__(self, other):
  26309. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26310. def __ne__(self, other):
  26311. return not (self == other)
  26312. all_structs.append(list_roles_result)
  26313. list_roles_result.thrift_spec = (
  26314. (0, TType.LIST, 'success', (TType.STRUCT, [Role, None], False), None, ), # 0
  26315. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  26316. )
  26317. class grant_revoke_role_args(object):
  26318. """
  26319. Attributes:
  26320. - request
  26321. """
  26322. def __init__(self, request=None,):
  26323. self.request = request
  26324. def read(self, iprot):
  26325. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26326. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26327. return
  26328. iprot.readStructBegin()
  26329. while True:
  26330. (fname, ftype, fid) = iprot.readFieldBegin()
  26331. if ftype == TType.STOP:
  26332. break
  26333. if fid == 1:
  26334. if ftype == TType.STRUCT:
  26335. self.request = GrantRevokeRoleRequest()
  26336. self.request.read(iprot)
  26337. else:
  26338. iprot.skip(ftype)
  26339. else:
  26340. iprot.skip(ftype)
  26341. iprot.readFieldEnd()
  26342. iprot.readStructEnd()
  26343. def write(self, oprot):
  26344. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26345. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26346. return
  26347. oprot.writeStructBegin('grant_revoke_role_args')
  26348. if self.request is not None:
  26349. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  26350. self.request.write(oprot)
  26351. oprot.writeFieldEnd()
  26352. oprot.writeFieldStop()
  26353. oprot.writeStructEnd()
  26354. def validate(self):
  26355. return
  26356. def __repr__(self):
  26357. L = ['%s=%r' % (key, value)
  26358. for key, value in self.__dict__.items()]
  26359. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26360. def __eq__(self, other):
  26361. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26362. def __ne__(self, other):
  26363. return not (self == other)
  26364. all_structs.append(grant_revoke_role_args)
  26365. grant_revoke_role_args.thrift_spec = (
  26366. None, # 0
  26367. (1, TType.STRUCT, 'request', [GrantRevokeRoleRequest, None], None, ), # 1
  26368. )
  26369. class grant_revoke_role_result(object):
  26370. """
  26371. Attributes:
  26372. - success
  26373. - o1
  26374. """
  26375. def __init__(self, success=None, o1=None,):
  26376. self.success = success
  26377. self.o1 = o1
  26378. def read(self, iprot):
  26379. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26380. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26381. return
  26382. iprot.readStructBegin()
  26383. while True:
  26384. (fname, ftype, fid) = iprot.readFieldBegin()
  26385. if ftype == TType.STOP:
  26386. break
  26387. if fid == 0:
  26388. if ftype == TType.STRUCT:
  26389. self.success = GrantRevokeRoleResponse()
  26390. self.success.read(iprot)
  26391. else:
  26392. iprot.skip(ftype)
  26393. elif fid == 1:
  26394. if ftype == TType.STRUCT:
  26395. self.o1 = MetaException()
  26396. self.o1.read(iprot)
  26397. else:
  26398. iprot.skip(ftype)
  26399. else:
  26400. iprot.skip(ftype)
  26401. iprot.readFieldEnd()
  26402. iprot.readStructEnd()
  26403. def write(self, oprot):
  26404. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26405. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26406. return
  26407. oprot.writeStructBegin('grant_revoke_role_result')
  26408. if self.success is not None:
  26409. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  26410. self.success.write(oprot)
  26411. oprot.writeFieldEnd()
  26412. if self.o1 is not None:
  26413. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26414. self.o1.write(oprot)
  26415. oprot.writeFieldEnd()
  26416. oprot.writeFieldStop()
  26417. oprot.writeStructEnd()
  26418. def validate(self):
  26419. return
  26420. def __repr__(self):
  26421. L = ['%s=%r' % (key, value)
  26422. for key, value in self.__dict__.items()]
  26423. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26424. def __eq__(self, other):
  26425. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26426. def __ne__(self, other):
  26427. return not (self == other)
  26428. all_structs.append(grant_revoke_role_result)
  26429. grant_revoke_role_result.thrift_spec = (
  26430. (0, TType.STRUCT, 'success', [GrantRevokeRoleResponse, None], None, ), # 0
  26431. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  26432. )
  26433. class get_principals_in_role_args(object):
  26434. """
  26435. Attributes:
  26436. - request
  26437. """
  26438. def __init__(self, request=None,):
  26439. self.request = request
  26440. def read(self, iprot):
  26441. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26442. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26443. return
  26444. iprot.readStructBegin()
  26445. while True:
  26446. (fname, ftype, fid) = iprot.readFieldBegin()
  26447. if ftype == TType.STOP:
  26448. break
  26449. if fid == 1:
  26450. if ftype == TType.STRUCT:
  26451. self.request = GetPrincipalsInRoleRequest()
  26452. self.request.read(iprot)
  26453. else:
  26454. iprot.skip(ftype)
  26455. else:
  26456. iprot.skip(ftype)
  26457. iprot.readFieldEnd()
  26458. iprot.readStructEnd()
  26459. def write(self, oprot):
  26460. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26461. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26462. return
  26463. oprot.writeStructBegin('get_principals_in_role_args')
  26464. if self.request is not None:
  26465. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  26466. self.request.write(oprot)
  26467. oprot.writeFieldEnd()
  26468. oprot.writeFieldStop()
  26469. oprot.writeStructEnd()
  26470. def validate(self):
  26471. return
  26472. def __repr__(self):
  26473. L = ['%s=%r' % (key, value)
  26474. for key, value in self.__dict__.items()]
  26475. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26476. def __eq__(self, other):
  26477. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26478. def __ne__(self, other):
  26479. return not (self == other)
  26480. all_structs.append(get_principals_in_role_args)
  26481. get_principals_in_role_args.thrift_spec = (
  26482. None, # 0
  26483. (1, TType.STRUCT, 'request', [GetPrincipalsInRoleRequest, None], None, ), # 1
  26484. )
  26485. class get_principals_in_role_result(object):
  26486. """
  26487. Attributes:
  26488. - success
  26489. - o1
  26490. """
  26491. def __init__(self, success=None, o1=None,):
  26492. self.success = success
  26493. self.o1 = o1
  26494. def read(self, iprot):
  26495. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26496. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26497. return
  26498. iprot.readStructBegin()
  26499. while True:
  26500. (fname, ftype, fid) = iprot.readFieldBegin()
  26501. if ftype == TType.STOP:
  26502. break
  26503. if fid == 0:
  26504. if ftype == TType.STRUCT:
  26505. self.success = GetPrincipalsInRoleResponse()
  26506. self.success.read(iprot)
  26507. else:
  26508. iprot.skip(ftype)
  26509. elif fid == 1:
  26510. if ftype == TType.STRUCT:
  26511. self.o1 = MetaException()
  26512. self.o1.read(iprot)
  26513. else:
  26514. iprot.skip(ftype)
  26515. else:
  26516. iprot.skip(ftype)
  26517. iprot.readFieldEnd()
  26518. iprot.readStructEnd()
  26519. def write(self, oprot):
  26520. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26521. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26522. return
  26523. oprot.writeStructBegin('get_principals_in_role_result')
  26524. if self.success is not None:
  26525. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  26526. self.success.write(oprot)
  26527. oprot.writeFieldEnd()
  26528. if self.o1 is not None:
  26529. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26530. self.o1.write(oprot)
  26531. oprot.writeFieldEnd()
  26532. oprot.writeFieldStop()
  26533. oprot.writeStructEnd()
  26534. def validate(self):
  26535. return
  26536. def __repr__(self):
  26537. L = ['%s=%r' % (key, value)
  26538. for key, value in self.__dict__.items()]
  26539. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26540. def __eq__(self, other):
  26541. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26542. def __ne__(self, other):
  26543. return not (self == other)
  26544. all_structs.append(get_principals_in_role_result)
  26545. get_principals_in_role_result.thrift_spec = (
  26546. (0, TType.STRUCT, 'success', [GetPrincipalsInRoleResponse, None], None, ), # 0
  26547. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  26548. )
  26549. class get_role_grants_for_principal_args(object):
  26550. """
  26551. Attributes:
  26552. - request
  26553. """
  26554. def __init__(self, request=None,):
  26555. self.request = request
  26556. def read(self, iprot):
  26557. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26558. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26559. return
  26560. iprot.readStructBegin()
  26561. while True:
  26562. (fname, ftype, fid) = iprot.readFieldBegin()
  26563. if ftype == TType.STOP:
  26564. break
  26565. if fid == 1:
  26566. if ftype == TType.STRUCT:
  26567. self.request = GetRoleGrantsForPrincipalRequest()
  26568. self.request.read(iprot)
  26569. else:
  26570. iprot.skip(ftype)
  26571. else:
  26572. iprot.skip(ftype)
  26573. iprot.readFieldEnd()
  26574. iprot.readStructEnd()
  26575. def write(self, oprot):
  26576. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26577. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26578. return
  26579. oprot.writeStructBegin('get_role_grants_for_principal_args')
  26580. if self.request is not None:
  26581. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  26582. self.request.write(oprot)
  26583. oprot.writeFieldEnd()
  26584. oprot.writeFieldStop()
  26585. oprot.writeStructEnd()
  26586. def validate(self):
  26587. return
  26588. def __repr__(self):
  26589. L = ['%s=%r' % (key, value)
  26590. for key, value in self.__dict__.items()]
  26591. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26592. def __eq__(self, other):
  26593. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26594. def __ne__(self, other):
  26595. return not (self == other)
  26596. all_structs.append(get_role_grants_for_principal_args)
  26597. get_role_grants_for_principal_args.thrift_spec = (
  26598. None, # 0
  26599. (1, TType.STRUCT, 'request', [GetRoleGrantsForPrincipalRequest, None], None, ), # 1
  26600. )
  26601. class get_role_grants_for_principal_result(object):
  26602. """
  26603. Attributes:
  26604. - success
  26605. - o1
  26606. """
  26607. def __init__(self, success=None, o1=None,):
  26608. self.success = success
  26609. self.o1 = o1
  26610. def read(self, iprot):
  26611. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26612. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26613. return
  26614. iprot.readStructBegin()
  26615. while True:
  26616. (fname, ftype, fid) = iprot.readFieldBegin()
  26617. if ftype == TType.STOP:
  26618. break
  26619. if fid == 0:
  26620. if ftype == TType.STRUCT:
  26621. self.success = GetRoleGrantsForPrincipalResponse()
  26622. self.success.read(iprot)
  26623. else:
  26624. iprot.skip(ftype)
  26625. elif fid == 1:
  26626. if ftype == TType.STRUCT:
  26627. self.o1 = MetaException()
  26628. self.o1.read(iprot)
  26629. else:
  26630. iprot.skip(ftype)
  26631. else:
  26632. iprot.skip(ftype)
  26633. iprot.readFieldEnd()
  26634. iprot.readStructEnd()
  26635. def write(self, oprot):
  26636. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26637. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26638. return
  26639. oprot.writeStructBegin('get_role_grants_for_principal_result')
  26640. if self.success is not None:
  26641. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  26642. self.success.write(oprot)
  26643. oprot.writeFieldEnd()
  26644. if self.o1 is not None:
  26645. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26646. self.o1.write(oprot)
  26647. oprot.writeFieldEnd()
  26648. oprot.writeFieldStop()
  26649. oprot.writeStructEnd()
  26650. def validate(self):
  26651. return
  26652. def __repr__(self):
  26653. L = ['%s=%r' % (key, value)
  26654. for key, value in self.__dict__.items()]
  26655. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26656. def __eq__(self, other):
  26657. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26658. def __ne__(self, other):
  26659. return not (self == other)
  26660. all_structs.append(get_role_grants_for_principal_result)
  26661. get_role_grants_for_principal_result.thrift_spec = (
  26662. (0, TType.STRUCT, 'success', [GetRoleGrantsForPrincipalResponse, None], None, ), # 0
  26663. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  26664. )
  26665. class get_privilege_set_args(object):
  26666. """
  26667. Attributes:
  26668. - hiveObject
  26669. - user_name
  26670. - group_names
  26671. """
  26672. def __init__(self, hiveObject=None, user_name=None, group_names=None,):
  26673. self.hiveObject = hiveObject
  26674. self.user_name = user_name
  26675. self.group_names = group_names
  26676. def read(self, iprot):
  26677. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26678. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26679. return
  26680. iprot.readStructBegin()
  26681. while True:
  26682. (fname, ftype, fid) = iprot.readFieldBegin()
  26683. if ftype == TType.STOP:
  26684. break
  26685. if fid == 1:
  26686. if ftype == TType.STRUCT:
  26687. self.hiveObject = HiveObjectRef()
  26688. self.hiveObject.read(iprot)
  26689. else:
  26690. iprot.skip(ftype)
  26691. elif fid == 2:
  26692. if ftype == TType.STRING:
  26693. self.user_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  26694. else:
  26695. iprot.skip(ftype)
  26696. elif fid == 3:
  26697. if ftype == TType.LIST:
  26698. self.group_names = []
  26699. (_etype1008, _size1005) = iprot.readListBegin()
  26700. for _i1009 in range(_size1005):
  26701. _elem1010 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  26702. self.group_names.append(_elem1010)
  26703. iprot.readListEnd()
  26704. else:
  26705. iprot.skip(ftype)
  26706. else:
  26707. iprot.skip(ftype)
  26708. iprot.readFieldEnd()
  26709. iprot.readStructEnd()
  26710. def write(self, oprot):
  26711. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26712. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26713. return
  26714. oprot.writeStructBegin('get_privilege_set_args')
  26715. if self.hiveObject is not None:
  26716. oprot.writeFieldBegin('hiveObject', TType.STRUCT, 1)
  26717. self.hiveObject.write(oprot)
  26718. oprot.writeFieldEnd()
  26719. if self.user_name is not None:
  26720. oprot.writeFieldBegin('user_name', TType.STRING, 2)
  26721. oprot.writeString(self.user_name.encode('utf-8') if sys.version_info[0] == 2 else self.user_name)
  26722. oprot.writeFieldEnd()
  26723. if self.group_names is not None:
  26724. oprot.writeFieldBegin('group_names', TType.LIST, 3)
  26725. oprot.writeListBegin(TType.STRING, len(self.group_names))
  26726. for iter1011 in self.group_names:
  26727. oprot.writeString(iter1011.encode('utf-8') if sys.version_info[0] == 2 else iter1011)
  26728. oprot.writeListEnd()
  26729. oprot.writeFieldEnd()
  26730. oprot.writeFieldStop()
  26731. oprot.writeStructEnd()
  26732. def validate(self):
  26733. return
  26734. def __repr__(self):
  26735. L = ['%s=%r' % (key, value)
  26736. for key, value in self.__dict__.items()]
  26737. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26738. def __eq__(self, other):
  26739. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26740. def __ne__(self, other):
  26741. return not (self == other)
  26742. all_structs.append(get_privilege_set_args)
  26743. get_privilege_set_args.thrift_spec = (
  26744. None, # 0
  26745. (1, TType.STRUCT, 'hiveObject', [HiveObjectRef, None], None, ), # 1
  26746. (2, TType.STRING, 'user_name', 'UTF8', None, ), # 2
  26747. (3, TType.LIST, 'group_names', (TType.STRING, 'UTF8', False), None, ), # 3
  26748. )
  26749. class get_privilege_set_result(object):
  26750. """
  26751. Attributes:
  26752. - success
  26753. - o1
  26754. """
  26755. def __init__(self, success=None, o1=None,):
  26756. self.success = success
  26757. self.o1 = o1
  26758. def read(self, iprot):
  26759. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26760. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26761. return
  26762. iprot.readStructBegin()
  26763. while True:
  26764. (fname, ftype, fid) = iprot.readFieldBegin()
  26765. if ftype == TType.STOP:
  26766. break
  26767. if fid == 0:
  26768. if ftype == TType.STRUCT:
  26769. self.success = PrincipalPrivilegeSet()
  26770. self.success.read(iprot)
  26771. else:
  26772. iprot.skip(ftype)
  26773. elif fid == 1:
  26774. if ftype == TType.STRUCT:
  26775. self.o1 = MetaException()
  26776. self.o1.read(iprot)
  26777. else:
  26778. iprot.skip(ftype)
  26779. else:
  26780. iprot.skip(ftype)
  26781. iprot.readFieldEnd()
  26782. iprot.readStructEnd()
  26783. def write(self, oprot):
  26784. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26785. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26786. return
  26787. oprot.writeStructBegin('get_privilege_set_result')
  26788. if self.success is not None:
  26789. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  26790. self.success.write(oprot)
  26791. oprot.writeFieldEnd()
  26792. if self.o1 is not None:
  26793. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  26794. self.o1.write(oprot)
  26795. oprot.writeFieldEnd()
  26796. oprot.writeFieldStop()
  26797. oprot.writeStructEnd()
  26798. def validate(self):
  26799. return
  26800. def __repr__(self):
  26801. L = ['%s=%r' % (key, value)
  26802. for key, value in self.__dict__.items()]
  26803. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26804. def __eq__(self, other):
  26805. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26806. def __ne__(self, other):
  26807. return not (self == other)
  26808. all_structs.append(get_privilege_set_result)
  26809. get_privilege_set_result.thrift_spec = (
  26810. (0, TType.STRUCT, 'success', [PrincipalPrivilegeSet, None], None, ), # 0
  26811. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  26812. )
  26813. class list_privileges_args(object):
  26814. """
  26815. Attributes:
  26816. - principal_name
  26817. - principal_type
  26818. - hiveObject
  26819. """
  26820. def __init__(self, principal_name=None, principal_type=None, hiveObject=None,):
  26821. self.principal_name = principal_name
  26822. self.principal_type = principal_type
  26823. self.hiveObject = hiveObject
  26824. def read(self, iprot):
  26825. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26826. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26827. return
  26828. iprot.readStructBegin()
  26829. while True:
  26830. (fname, ftype, fid) = iprot.readFieldBegin()
  26831. if ftype == TType.STOP:
  26832. break
  26833. if fid == 1:
  26834. if ftype == TType.STRING:
  26835. self.principal_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  26836. else:
  26837. iprot.skip(ftype)
  26838. elif fid == 2:
  26839. if ftype == TType.I32:
  26840. self.principal_type = iprot.readI32()
  26841. else:
  26842. iprot.skip(ftype)
  26843. elif fid == 3:
  26844. if ftype == TType.STRUCT:
  26845. self.hiveObject = HiveObjectRef()
  26846. self.hiveObject.read(iprot)
  26847. else:
  26848. iprot.skip(ftype)
  26849. else:
  26850. iprot.skip(ftype)
  26851. iprot.readFieldEnd()
  26852. iprot.readStructEnd()
  26853. def write(self, oprot):
  26854. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26855. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26856. return
  26857. oprot.writeStructBegin('list_privileges_args')
  26858. if self.principal_name is not None:
  26859. oprot.writeFieldBegin('principal_name', TType.STRING, 1)
  26860. oprot.writeString(self.principal_name.encode('utf-8') if sys.version_info[0] == 2 else self.principal_name)
  26861. oprot.writeFieldEnd()
  26862. if self.principal_type is not None:
  26863. oprot.writeFieldBegin('principal_type', TType.I32, 2)
  26864. oprot.writeI32(self.principal_type)
  26865. oprot.writeFieldEnd()
  26866. if self.hiveObject is not None:
  26867. oprot.writeFieldBegin('hiveObject', TType.STRUCT, 3)
  26868. self.hiveObject.write(oprot)
  26869. oprot.writeFieldEnd()
  26870. oprot.writeFieldStop()
  26871. oprot.writeStructEnd()
  26872. def validate(self):
  26873. return
  26874. def __repr__(self):
  26875. L = ['%s=%r' % (key, value)
  26876. for key, value in self.__dict__.items()]
  26877. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26878. def __eq__(self, other):
  26879. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26880. def __ne__(self, other):
  26881. return not (self == other)
  26882. all_structs.append(list_privileges_args)
  26883. list_privileges_args.thrift_spec = (
  26884. None, # 0
  26885. (1, TType.STRING, 'principal_name', 'UTF8', None, ), # 1
  26886. (2, TType.I32, 'principal_type', None, None, ), # 2
  26887. (3, TType.STRUCT, 'hiveObject', [HiveObjectRef, None], None, ), # 3
  26888. )
  26889. class list_privileges_result(object):
  26890. """
  26891. Attributes:
  26892. - success
  26893. - o1
  26894. """
  26895. def __init__(self, success=None, o1=None,):
  26896. self.success = success
  26897. self.o1 = o1
  26898. def read(self, iprot):
  26899. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26900. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26901. return
  26902. iprot.readStructBegin()
  26903. while True:
  26904. (fname, ftype, fid) = iprot.readFieldBegin()
  26905. if ftype == TType.STOP:
  26906. break
  26907. if fid == 0:
  26908. if ftype == TType.LIST:
  26909. self.success = []
  26910. (_etype1015, _size1012) = iprot.readListBegin()
  26911. for _i1016 in range(_size1012):
  26912. _elem1017 = HiveObjectPrivilege()
  26913. _elem1017.read(iprot)
  26914. self.success.append(_elem1017)
  26915. iprot.readListEnd()
  26916. else:
  26917. iprot.skip(ftype)
  26918. elif fid == 1:
  26919. if ftype == TType.STRUCT:
  26920. self.o1 = MetaException()
  26921. self.o1.read(iprot)
  26922. else:
  26923. iprot.skip(ftype)
  26924. else:
  26925. iprot.skip(ftype)
  26926. iprot.readFieldEnd()
  26927. iprot.readStructEnd()
  26928. def write(self, oprot):
  26929. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26930. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26931. return
  26932. oprot.writeStructBegin('list_privileges_result')
  26933. if self.success is not None:
  26934. oprot.writeFieldBegin('success', TType.LIST, 0)
  26935. oprot.writeListBegin(TType.STRUCT, len(self.success))
  26936. for iter1018 in self.success:
  26937. iter1018.write(oprot)
  26938. oprot.writeListEnd()
  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 __repr__(self):
  26949. L = ['%s=%r' % (key, value)
  26950. for key, value in self.__dict__.items()]
  26951. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  26952. def __eq__(self, other):
  26953. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  26954. def __ne__(self, other):
  26955. return not (self == other)
  26956. all_structs.append(list_privileges_result)
  26957. list_privileges_result.thrift_spec = (
  26958. (0, TType.LIST, 'success', (TType.STRUCT, [HiveObjectPrivilege, None], False), None, ), # 0
  26959. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  26960. )
  26961. class grant_privileges_args(object):
  26962. """
  26963. Attributes:
  26964. - privileges
  26965. """
  26966. def __init__(self, privileges=None,):
  26967. self.privileges = privileges
  26968. def read(self, iprot):
  26969. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  26970. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  26971. return
  26972. iprot.readStructBegin()
  26973. while True:
  26974. (fname, ftype, fid) = iprot.readFieldBegin()
  26975. if ftype == TType.STOP:
  26976. break
  26977. if fid == 1:
  26978. if ftype == TType.STRUCT:
  26979. self.privileges = PrivilegeBag()
  26980. self.privileges.read(iprot)
  26981. else:
  26982. iprot.skip(ftype)
  26983. else:
  26984. iprot.skip(ftype)
  26985. iprot.readFieldEnd()
  26986. iprot.readStructEnd()
  26987. def write(self, oprot):
  26988. if oprot._fast_encode is not None and self.thrift_spec is not None:
  26989. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  26990. return
  26991. oprot.writeStructBegin('grant_privileges_args')
  26992. if self.privileges is not None:
  26993. oprot.writeFieldBegin('privileges', TType.STRUCT, 1)
  26994. self.privileges.write(oprot)
  26995. oprot.writeFieldEnd()
  26996. oprot.writeFieldStop()
  26997. oprot.writeStructEnd()
  26998. def validate(self):
  26999. return
  27000. def __repr__(self):
  27001. L = ['%s=%r' % (key, value)
  27002. for key, value in self.__dict__.items()]
  27003. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27004. def __eq__(self, other):
  27005. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27006. def __ne__(self, other):
  27007. return not (self == other)
  27008. all_structs.append(grant_privileges_args)
  27009. grant_privileges_args.thrift_spec = (
  27010. None, # 0
  27011. (1, TType.STRUCT, 'privileges', [PrivilegeBag, None], None, ), # 1
  27012. )
  27013. class grant_privileges_result(object):
  27014. """
  27015. Attributes:
  27016. - success
  27017. - o1
  27018. """
  27019. def __init__(self, success=None, o1=None,):
  27020. self.success = success
  27021. self.o1 = o1
  27022. def read(self, iprot):
  27023. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27024. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27025. return
  27026. iprot.readStructBegin()
  27027. while True:
  27028. (fname, ftype, fid) = iprot.readFieldBegin()
  27029. if ftype == TType.STOP:
  27030. break
  27031. if fid == 0:
  27032. if ftype == TType.BOOL:
  27033. self.success = iprot.readBool()
  27034. else:
  27035. iprot.skip(ftype)
  27036. elif fid == 1:
  27037. if ftype == TType.STRUCT:
  27038. self.o1 = MetaException()
  27039. self.o1.read(iprot)
  27040. else:
  27041. iprot.skip(ftype)
  27042. else:
  27043. iprot.skip(ftype)
  27044. iprot.readFieldEnd()
  27045. iprot.readStructEnd()
  27046. def write(self, oprot):
  27047. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27048. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27049. return
  27050. oprot.writeStructBegin('grant_privileges_result')
  27051. if self.success is not None:
  27052. oprot.writeFieldBegin('success', TType.BOOL, 0)
  27053. oprot.writeBool(self.success)
  27054. oprot.writeFieldEnd()
  27055. if self.o1 is not None:
  27056. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27057. self.o1.write(oprot)
  27058. oprot.writeFieldEnd()
  27059. oprot.writeFieldStop()
  27060. oprot.writeStructEnd()
  27061. def validate(self):
  27062. return
  27063. def __repr__(self):
  27064. L = ['%s=%r' % (key, value)
  27065. for key, value in self.__dict__.items()]
  27066. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27067. def __eq__(self, other):
  27068. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27069. def __ne__(self, other):
  27070. return not (self == other)
  27071. all_structs.append(grant_privileges_result)
  27072. grant_privileges_result.thrift_spec = (
  27073. (0, TType.BOOL, 'success', None, None, ), # 0
  27074. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  27075. )
  27076. class revoke_privileges_args(object):
  27077. """
  27078. Attributes:
  27079. - privileges
  27080. """
  27081. def __init__(self, privileges=None,):
  27082. self.privileges = privileges
  27083. def read(self, iprot):
  27084. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27085. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27086. return
  27087. iprot.readStructBegin()
  27088. while True:
  27089. (fname, ftype, fid) = iprot.readFieldBegin()
  27090. if ftype == TType.STOP:
  27091. break
  27092. if fid == 1:
  27093. if ftype == TType.STRUCT:
  27094. self.privileges = PrivilegeBag()
  27095. self.privileges.read(iprot)
  27096. else:
  27097. iprot.skip(ftype)
  27098. else:
  27099. iprot.skip(ftype)
  27100. iprot.readFieldEnd()
  27101. iprot.readStructEnd()
  27102. def write(self, oprot):
  27103. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27104. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27105. return
  27106. oprot.writeStructBegin('revoke_privileges_args')
  27107. if self.privileges is not None:
  27108. oprot.writeFieldBegin('privileges', TType.STRUCT, 1)
  27109. self.privileges.write(oprot)
  27110. oprot.writeFieldEnd()
  27111. oprot.writeFieldStop()
  27112. oprot.writeStructEnd()
  27113. def validate(self):
  27114. return
  27115. def __repr__(self):
  27116. L = ['%s=%r' % (key, value)
  27117. for key, value in self.__dict__.items()]
  27118. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27119. def __eq__(self, other):
  27120. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27121. def __ne__(self, other):
  27122. return not (self == other)
  27123. all_structs.append(revoke_privileges_args)
  27124. revoke_privileges_args.thrift_spec = (
  27125. None, # 0
  27126. (1, TType.STRUCT, 'privileges', [PrivilegeBag, None], None, ), # 1
  27127. )
  27128. class revoke_privileges_result(object):
  27129. """
  27130. Attributes:
  27131. - success
  27132. - o1
  27133. """
  27134. def __init__(self, success=None, o1=None,):
  27135. self.success = success
  27136. self.o1 = o1
  27137. def read(self, iprot):
  27138. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27139. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27140. return
  27141. iprot.readStructBegin()
  27142. while True:
  27143. (fname, ftype, fid) = iprot.readFieldBegin()
  27144. if ftype == TType.STOP:
  27145. break
  27146. if fid == 0:
  27147. if ftype == TType.BOOL:
  27148. self.success = iprot.readBool()
  27149. else:
  27150. iprot.skip(ftype)
  27151. elif fid == 1:
  27152. if ftype == TType.STRUCT:
  27153. self.o1 = MetaException()
  27154. self.o1.read(iprot)
  27155. else:
  27156. iprot.skip(ftype)
  27157. else:
  27158. iprot.skip(ftype)
  27159. iprot.readFieldEnd()
  27160. iprot.readStructEnd()
  27161. def write(self, oprot):
  27162. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27163. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27164. return
  27165. oprot.writeStructBegin('revoke_privileges_result')
  27166. if self.success is not None:
  27167. oprot.writeFieldBegin('success', TType.BOOL, 0)
  27168. oprot.writeBool(self.success)
  27169. oprot.writeFieldEnd()
  27170. if self.o1 is not None:
  27171. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27172. self.o1.write(oprot)
  27173. oprot.writeFieldEnd()
  27174. oprot.writeFieldStop()
  27175. oprot.writeStructEnd()
  27176. def validate(self):
  27177. return
  27178. def __repr__(self):
  27179. L = ['%s=%r' % (key, value)
  27180. for key, value in self.__dict__.items()]
  27181. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27182. def __eq__(self, other):
  27183. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27184. def __ne__(self, other):
  27185. return not (self == other)
  27186. all_structs.append(revoke_privileges_result)
  27187. revoke_privileges_result.thrift_spec = (
  27188. (0, TType.BOOL, 'success', None, None, ), # 0
  27189. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  27190. )
  27191. class grant_revoke_privileges_args(object):
  27192. """
  27193. Attributes:
  27194. - request
  27195. """
  27196. def __init__(self, request=None,):
  27197. self.request = request
  27198. def read(self, iprot):
  27199. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27200. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27201. return
  27202. iprot.readStructBegin()
  27203. while True:
  27204. (fname, ftype, fid) = iprot.readFieldBegin()
  27205. if ftype == TType.STOP:
  27206. break
  27207. if fid == 1:
  27208. if ftype == TType.STRUCT:
  27209. self.request = GrantRevokePrivilegeRequest()
  27210. self.request.read(iprot)
  27211. else:
  27212. iprot.skip(ftype)
  27213. else:
  27214. iprot.skip(ftype)
  27215. iprot.readFieldEnd()
  27216. iprot.readStructEnd()
  27217. def write(self, oprot):
  27218. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27219. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27220. return
  27221. oprot.writeStructBegin('grant_revoke_privileges_args')
  27222. if self.request is not None:
  27223. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  27224. self.request.write(oprot)
  27225. oprot.writeFieldEnd()
  27226. oprot.writeFieldStop()
  27227. oprot.writeStructEnd()
  27228. def validate(self):
  27229. return
  27230. def __repr__(self):
  27231. L = ['%s=%r' % (key, value)
  27232. for key, value in self.__dict__.items()]
  27233. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27234. def __eq__(self, other):
  27235. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27236. def __ne__(self, other):
  27237. return not (self == other)
  27238. all_structs.append(grant_revoke_privileges_args)
  27239. grant_revoke_privileges_args.thrift_spec = (
  27240. None, # 0
  27241. (1, TType.STRUCT, 'request', [GrantRevokePrivilegeRequest, None], None, ), # 1
  27242. )
  27243. class grant_revoke_privileges_result(object):
  27244. """
  27245. Attributes:
  27246. - success
  27247. - o1
  27248. """
  27249. def __init__(self, success=None, o1=None,):
  27250. self.success = success
  27251. self.o1 = o1
  27252. def read(self, iprot):
  27253. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27254. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27255. return
  27256. iprot.readStructBegin()
  27257. while True:
  27258. (fname, ftype, fid) = iprot.readFieldBegin()
  27259. if ftype == TType.STOP:
  27260. break
  27261. if fid == 0:
  27262. if ftype == TType.STRUCT:
  27263. self.success = GrantRevokePrivilegeResponse()
  27264. self.success.read(iprot)
  27265. else:
  27266. iprot.skip(ftype)
  27267. elif fid == 1:
  27268. if ftype == TType.STRUCT:
  27269. self.o1 = MetaException()
  27270. self.o1.read(iprot)
  27271. else:
  27272. iprot.skip(ftype)
  27273. else:
  27274. iprot.skip(ftype)
  27275. iprot.readFieldEnd()
  27276. iprot.readStructEnd()
  27277. def write(self, oprot):
  27278. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27279. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27280. return
  27281. oprot.writeStructBegin('grant_revoke_privileges_result')
  27282. if self.success is not None:
  27283. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  27284. self.success.write(oprot)
  27285. oprot.writeFieldEnd()
  27286. if self.o1 is not None:
  27287. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27288. self.o1.write(oprot)
  27289. oprot.writeFieldEnd()
  27290. oprot.writeFieldStop()
  27291. oprot.writeStructEnd()
  27292. def validate(self):
  27293. return
  27294. def __repr__(self):
  27295. L = ['%s=%r' % (key, value)
  27296. for key, value in self.__dict__.items()]
  27297. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27298. def __eq__(self, other):
  27299. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27300. def __ne__(self, other):
  27301. return not (self == other)
  27302. all_structs.append(grant_revoke_privileges_result)
  27303. grant_revoke_privileges_result.thrift_spec = (
  27304. (0, TType.STRUCT, 'success', [GrantRevokePrivilegeResponse, None], None, ), # 0
  27305. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  27306. )
  27307. class set_ugi_args(object):
  27308. """
  27309. Attributes:
  27310. - user_name
  27311. - group_names
  27312. """
  27313. def __init__(self, user_name=None, group_names=None,):
  27314. self.user_name = user_name
  27315. self.group_names = group_names
  27316. def read(self, iprot):
  27317. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27318. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27319. return
  27320. iprot.readStructBegin()
  27321. while True:
  27322. (fname, ftype, fid) = iprot.readFieldBegin()
  27323. if ftype == TType.STOP:
  27324. break
  27325. if fid == 1:
  27326. if ftype == TType.STRING:
  27327. self.user_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  27328. else:
  27329. iprot.skip(ftype)
  27330. elif fid == 2:
  27331. if ftype == TType.LIST:
  27332. self.group_names = []
  27333. (_etype1022, _size1019) = iprot.readListBegin()
  27334. for _i1023 in range(_size1019):
  27335. _elem1024 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  27336. self.group_names.append(_elem1024)
  27337. iprot.readListEnd()
  27338. else:
  27339. iprot.skip(ftype)
  27340. else:
  27341. iprot.skip(ftype)
  27342. iprot.readFieldEnd()
  27343. iprot.readStructEnd()
  27344. def write(self, oprot):
  27345. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27346. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27347. return
  27348. oprot.writeStructBegin('set_ugi_args')
  27349. if self.user_name is not None:
  27350. oprot.writeFieldBegin('user_name', TType.STRING, 1)
  27351. oprot.writeString(self.user_name.encode('utf-8') if sys.version_info[0] == 2 else self.user_name)
  27352. oprot.writeFieldEnd()
  27353. if self.group_names is not None:
  27354. oprot.writeFieldBegin('group_names', TType.LIST, 2)
  27355. oprot.writeListBegin(TType.STRING, len(self.group_names))
  27356. for iter1025 in self.group_names:
  27357. oprot.writeString(iter1025.encode('utf-8') if sys.version_info[0] == 2 else iter1025)
  27358. oprot.writeListEnd()
  27359. oprot.writeFieldEnd()
  27360. oprot.writeFieldStop()
  27361. oprot.writeStructEnd()
  27362. def validate(self):
  27363. return
  27364. def __repr__(self):
  27365. L = ['%s=%r' % (key, value)
  27366. for key, value in self.__dict__.items()]
  27367. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27368. def __eq__(self, other):
  27369. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27370. def __ne__(self, other):
  27371. return not (self == other)
  27372. all_structs.append(set_ugi_args)
  27373. set_ugi_args.thrift_spec = (
  27374. None, # 0
  27375. (1, TType.STRING, 'user_name', 'UTF8', None, ), # 1
  27376. (2, TType.LIST, 'group_names', (TType.STRING, 'UTF8', False), None, ), # 2
  27377. )
  27378. class set_ugi_result(object):
  27379. """
  27380. Attributes:
  27381. - success
  27382. - o1
  27383. """
  27384. def __init__(self, success=None, o1=None,):
  27385. self.success = success
  27386. self.o1 = o1
  27387. def read(self, iprot):
  27388. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27389. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27390. return
  27391. iprot.readStructBegin()
  27392. while True:
  27393. (fname, ftype, fid) = iprot.readFieldBegin()
  27394. if ftype == TType.STOP:
  27395. break
  27396. if fid == 0:
  27397. if ftype == TType.LIST:
  27398. self.success = []
  27399. (_etype1029, _size1026) = iprot.readListBegin()
  27400. for _i1030 in range(_size1026):
  27401. _elem1031 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  27402. self.success.append(_elem1031)
  27403. iprot.readListEnd()
  27404. else:
  27405. iprot.skip(ftype)
  27406. elif fid == 1:
  27407. if ftype == TType.STRUCT:
  27408. self.o1 = MetaException()
  27409. self.o1.read(iprot)
  27410. else:
  27411. iprot.skip(ftype)
  27412. else:
  27413. iprot.skip(ftype)
  27414. iprot.readFieldEnd()
  27415. iprot.readStructEnd()
  27416. def write(self, oprot):
  27417. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27418. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27419. return
  27420. oprot.writeStructBegin('set_ugi_result')
  27421. if self.success is not None:
  27422. oprot.writeFieldBegin('success', TType.LIST, 0)
  27423. oprot.writeListBegin(TType.STRING, len(self.success))
  27424. for iter1032 in self.success:
  27425. oprot.writeString(iter1032.encode('utf-8') if sys.version_info[0] == 2 else iter1032)
  27426. oprot.writeListEnd()
  27427. oprot.writeFieldEnd()
  27428. if self.o1 is not None:
  27429. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27430. self.o1.write(oprot)
  27431. oprot.writeFieldEnd()
  27432. oprot.writeFieldStop()
  27433. oprot.writeStructEnd()
  27434. def validate(self):
  27435. return
  27436. def __repr__(self):
  27437. L = ['%s=%r' % (key, value)
  27438. for key, value in self.__dict__.items()]
  27439. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27440. def __eq__(self, other):
  27441. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27442. def __ne__(self, other):
  27443. return not (self == other)
  27444. all_structs.append(set_ugi_result)
  27445. set_ugi_result.thrift_spec = (
  27446. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  27447. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  27448. )
  27449. class get_delegation_token_args(object):
  27450. """
  27451. Attributes:
  27452. - token_owner
  27453. - renewer_kerberos_principal_name
  27454. """
  27455. def __init__(self, token_owner=None, renewer_kerberos_principal_name=None,):
  27456. self.token_owner = token_owner
  27457. self.renewer_kerberos_principal_name = renewer_kerberos_principal_name
  27458. def read(self, iprot):
  27459. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27460. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27461. return
  27462. iprot.readStructBegin()
  27463. while True:
  27464. (fname, ftype, fid) = iprot.readFieldBegin()
  27465. if ftype == TType.STOP:
  27466. break
  27467. if fid == 1:
  27468. if ftype == TType.STRING:
  27469. self.token_owner = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  27470. else:
  27471. iprot.skip(ftype)
  27472. elif fid == 2:
  27473. if ftype == TType.STRING:
  27474. self.renewer_kerberos_principal_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  27475. else:
  27476. iprot.skip(ftype)
  27477. else:
  27478. iprot.skip(ftype)
  27479. iprot.readFieldEnd()
  27480. iprot.readStructEnd()
  27481. def write(self, oprot):
  27482. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27483. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27484. return
  27485. oprot.writeStructBegin('get_delegation_token_args')
  27486. if self.token_owner is not None:
  27487. oprot.writeFieldBegin('token_owner', TType.STRING, 1)
  27488. oprot.writeString(self.token_owner.encode('utf-8') if sys.version_info[0] == 2 else self.token_owner)
  27489. oprot.writeFieldEnd()
  27490. if self.renewer_kerberos_principal_name is not None:
  27491. oprot.writeFieldBegin('renewer_kerberos_principal_name', TType.STRING, 2)
  27492. oprot.writeString(self.renewer_kerberos_principal_name.encode('utf-8') if sys.version_info[0] == 2 else self.renewer_kerberos_principal_name)
  27493. oprot.writeFieldEnd()
  27494. oprot.writeFieldStop()
  27495. oprot.writeStructEnd()
  27496. def validate(self):
  27497. return
  27498. def __repr__(self):
  27499. L = ['%s=%r' % (key, value)
  27500. for key, value in self.__dict__.items()]
  27501. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27502. def __eq__(self, other):
  27503. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27504. def __ne__(self, other):
  27505. return not (self == other)
  27506. all_structs.append(get_delegation_token_args)
  27507. get_delegation_token_args.thrift_spec = (
  27508. None, # 0
  27509. (1, TType.STRING, 'token_owner', 'UTF8', None, ), # 1
  27510. (2, TType.STRING, 'renewer_kerberos_principal_name', 'UTF8', None, ), # 2
  27511. )
  27512. class get_delegation_token_result(object):
  27513. """
  27514. Attributes:
  27515. - success
  27516. - o1
  27517. """
  27518. def __init__(self, success=None, o1=None,):
  27519. self.success = success
  27520. self.o1 = o1
  27521. def read(self, iprot):
  27522. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27523. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27524. return
  27525. iprot.readStructBegin()
  27526. while True:
  27527. (fname, ftype, fid) = iprot.readFieldBegin()
  27528. if ftype == TType.STOP:
  27529. break
  27530. if fid == 0:
  27531. if ftype == TType.STRING:
  27532. self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  27533. else:
  27534. iprot.skip(ftype)
  27535. elif fid == 1:
  27536. if ftype == TType.STRUCT:
  27537. self.o1 = MetaException()
  27538. self.o1.read(iprot)
  27539. else:
  27540. iprot.skip(ftype)
  27541. else:
  27542. iprot.skip(ftype)
  27543. iprot.readFieldEnd()
  27544. iprot.readStructEnd()
  27545. def write(self, oprot):
  27546. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27547. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27548. return
  27549. oprot.writeStructBegin('get_delegation_token_result')
  27550. if self.success is not None:
  27551. oprot.writeFieldBegin('success', TType.STRING, 0)
  27552. oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
  27553. oprot.writeFieldEnd()
  27554. if self.o1 is not None:
  27555. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27556. self.o1.write(oprot)
  27557. oprot.writeFieldEnd()
  27558. oprot.writeFieldStop()
  27559. oprot.writeStructEnd()
  27560. def validate(self):
  27561. return
  27562. def __repr__(self):
  27563. L = ['%s=%r' % (key, value)
  27564. for key, value in self.__dict__.items()]
  27565. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27566. def __eq__(self, other):
  27567. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27568. def __ne__(self, other):
  27569. return not (self == other)
  27570. all_structs.append(get_delegation_token_result)
  27571. get_delegation_token_result.thrift_spec = (
  27572. (0, TType.STRING, 'success', 'UTF8', None, ), # 0
  27573. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  27574. )
  27575. class renew_delegation_token_args(object):
  27576. """
  27577. Attributes:
  27578. - token_str_form
  27579. """
  27580. def __init__(self, token_str_form=None,):
  27581. self.token_str_form = token_str_form
  27582. def read(self, iprot):
  27583. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27584. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27585. return
  27586. iprot.readStructBegin()
  27587. while True:
  27588. (fname, ftype, fid) = iprot.readFieldBegin()
  27589. if ftype == TType.STOP:
  27590. break
  27591. if fid == 1:
  27592. if ftype == TType.STRING:
  27593. self.token_str_form = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  27594. else:
  27595. iprot.skip(ftype)
  27596. else:
  27597. iprot.skip(ftype)
  27598. iprot.readFieldEnd()
  27599. iprot.readStructEnd()
  27600. def write(self, oprot):
  27601. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27602. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27603. return
  27604. oprot.writeStructBegin('renew_delegation_token_args')
  27605. if self.token_str_form is not None:
  27606. oprot.writeFieldBegin('token_str_form', TType.STRING, 1)
  27607. oprot.writeString(self.token_str_form.encode('utf-8') if sys.version_info[0] == 2 else self.token_str_form)
  27608. oprot.writeFieldEnd()
  27609. oprot.writeFieldStop()
  27610. oprot.writeStructEnd()
  27611. def validate(self):
  27612. return
  27613. def __repr__(self):
  27614. L = ['%s=%r' % (key, value)
  27615. for key, value in self.__dict__.items()]
  27616. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27617. def __eq__(self, other):
  27618. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27619. def __ne__(self, other):
  27620. return not (self == other)
  27621. all_structs.append(renew_delegation_token_args)
  27622. renew_delegation_token_args.thrift_spec = (
  27623. None, # 0
  27624. (1, TType.STRING, 'token_str_form', 'UTF8', None, ), # 1
  27625. )
  27626. class renew_delegation_token_result(object):
  27627. """
  27628. Attributes:
  27629. - success
  27630. - o1
  27631. """
  27632. def __init__(self, success=None, o1=None,):
  27633. self.success = success
  27634. self.o1 = o1
  27635. def read(self, iprot):
  27636. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27637. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27638. return
  27639. iprot.readStructBegin()
  27640. while True:
  27641. (fname, ftype, fid) = iprot.readFieldBegin()
  27642. if ftype == TType.STOP:
  27643. break
  27644. if fid == 0:
  27645. if ftype == TType.I64:
  27646. self.success = iprot.readI64()
  27647. else:
  27648. iprot.skip(ftype)
  27649. elif fid == 1:
  27650. if ftype == TType.STRUCT:
  27651. self.o1 = MetaException()
  27652. self.o1.read(iprot)
  27653. else:
  27654. iprot.skip(ftype)
  27655. else:
  27656. iprot.skip(ftype)
  27657. iprot.readFieldEnd()
  27658. iprot.readStructEnd()
  27659. def write(self, oprot):
  27660. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27661. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27662. return
  27663. oprot.writeStructBegin('renew_delegation_token_result')
  27664. if self.success is not None:
  27665. oprot.writeFieldBegin('success', TType.I64, 0)
  27666. oprot.writeI64(self.success)
  27667. oprot.writeFieldEnd()
  27668. if self.o1 is not None:
  27669. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27670. self.o1.write(oprot)
  27671. oprot.writeFieldEnd()
  27672. oprot.writeFieldStop()
  27673. oprot.writeStructEnd()
  27674. def validate(self):
  27675. return
  27676. def __repr__(self):
  27677. L = ['%s=%r' % (key, value)
  27678. for key, value in self.__dict__.items()]
  27679. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27680. def __eq__(self, other):
  27681. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27682. def __ne__(self, other):
  27683. return not (self == other)
  27684. all_structs.append(renew_delegation_token_result)
  27685. renew_delegation_token_result.thrift_spec = (
  27686. (0, TType.I64, 'success', None, None, ), # 0
  27687. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  27688. )
  27689. class cancel_delegation_token_args(object):
  27690. """
  27691. Attributes:
  27692. - token_str_form
  27693. """
  27694. def __init__(self, token_str_form=None,):
  27695. self.token_str_form = token_str_form
  27696. def read(self, iprot):
  27697. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27698. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27699. return
  27700. iprot.readStructBegin()
  27701. while True:
  27702. (fname, ftype, fid) = iprot.readFieldBegin()
  27703. if ftype == TType.STOP:
  27704. break
  27705. if fid == 1:
  27706. if ftype == TType.STRING:
  27707. self.token_str_form = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  27708. else:
  27709. iprot.skip(ftype)
  27710. else:
  27711. iprot.skip(ftype)
  27712. iprot.readFieldEnd()
  27713. iprot.readStructEnd()
  27714. def write(self, oprot):
  27715. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27716. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27717. return
  27718. oprot.writeStructBegin('cancel_delegation_token_args')
  27719. if self.token_str_form is not None:
  27720. oprot.writeFieldBegin('token_str_form', TType.STRING, 1)
  27721. oprot.writeString(self.token_str_form.encode('utf-8') if sys.version_info[0] == 2 else self.token_str_form)
  27722. oprot.writeFieldEnd()
  27723. oprot.writeFieldStop()
  27724. oprot.writeStructEnd()
  27725. def validate(self):
  27726. return
  27727. def __repr__(self):
  27728. L = ['%s=%r' % (key, value)
  27729. for key, value in self.__dict__.items()]
  27730. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27731. def __eq__(self, other):
  27732. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27733. def __ne__(self, other):
  27734. return not (self == other)
  27735. all_structs.append(cancel_delegation_token_args)
  27736. cancel_delegation_token_args.thrift_spec = (
  27737. None, # 0
  27738. (1, TType.STRING, 'token_str_form', 'UTF8', None, ), # 1
  27739. )
  27740. class cancel_delegation_token_result(object):
  27741. """
  27742. Attributes:
  27743. - o1
  27744. """
  27745. def __init__(self, o1=None,):
  27746. self.o1 = o1
  27747. def read(self, iprot):
  27748. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27749. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27750. return
  27751. iprot.readStructBegin()
  27752. while True:
  27753. (fname, ftype, fid) = iprot.readFieldBegin()
  27754. if ftype == TType.STOP:
  27755. break
  27756. if fid == 1:
  27757. if ftype == TType.STRUCT:
  27758. self.o1 = MetaException()
  27759. self.o1.read(iprot)
  27760. else:
  27761. iprot.skip(ftype)
  27762. else:
  27763. iprot.skip(ftype)
  27764. iprot.readFieldEnd()
  27765. iprot.readStructEnd()
  27766. def write(self, oprot):
  27767. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27768. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27769. return
  27770. oprot.writeStructBegin('cancel_delegation_token_result')
  27771. if self.o1 is not None:
  27772. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  27773. self.o1.write(oprot)
  27774. oprot.writeFieldEnd()
  27775. oprot.writeFieldStop()
  27776. oprot.writeStructEnd()
  27777. def validate(self):
  27778. return
  27779. def __repr__(self):
  27780. L = ['%s=%r' % (key, value)
  27781. for key, value in self.__dict__.items()]
  27782. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27783. def __eq__(self, other):
  27784. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27785. def __ne__(self, other):
  27786. return not (self == other)
  27787. all_structs.append(cancel_delegation_token_result)
  27788. cancel_delegation_token_result.thrift_spec = (
  27789. None, # 0
  27790. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  27791. )
  27792. class add_token_args(object):
  27793. """
  27794. Attributes:
  27795. - token_identifier
  27796. - delegation_token
  27797. """
  27798. def __init__(self, token_identifier=None, delegation_token=None,):
  27799. self.token_identifier = token_identifier
  27800. self.delegation_token = delegation_token
  27801. def read(self, iprot):
  27802. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27803. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27804. return
  27805. iprot.readStructBegin()
  27806. while True:
  27807. (fname, ftype, fid) = iprot.readFieldBegin()
  27808. if ftype == TType.STOP:
  27809. break
  27810. if fid == 1:
  27811. if ftype == TType.STRING:
  27812. self.token_identifier = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  27813. else:
  27814. iprot.skip(ftype)
  27815. elif fid == 2:
  27816. if ftype == TType.STRING:
  27817. self.delegation_token = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  27818. else:
  27819. iprot.skip(ftype)
  27820. else:
  27821. iprot.skip(ftype)
  27822. iprot.readFieldEnd()
  27823. iprot.readStructEnd()
  27824. def write(self, oprot):
  27825. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27826. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27827. return
  27828. oprot.writeStructBegin('add_token_args')
  27829. if self.token_identifier is not None:
  27830. oprot.writeFieldBegin('token_identifier', TType.STRING, 1)
  27831. oprot.writeString(self.token_identifier.encode('utf-8') if sys.version_info[0] == 2 else self.token_identifier)
  27832. oprot.writeFieldEnd()
  27833. if self.delegation_token is not None:
  27834. oprot.writeFieldBegin('delegation_token', TType.STRING, 2)
  27835. oprot.writeString(self.delegation_token.encode('utf-8') if sys.version_info[0] == 2 else self.delegation_token)
  27836. oprot.writeFieldEnd()
  27837. oprot.writeFieldStop()
  27838. oprot.writeStructEnd()
  27839. def validate(self):
  27840. return
  27841. def __repr__(self):
  27842. L = ['%s=%r' % (key, value)
  27843. for key, value in self.__dict__.items()]
  27844. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27845. def __eq__(self, other):
  27846. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27847. def __ne__(self, other):
  27848. return not (self == other)
  27849. all_structs.append(add_token_args)
  27850. add_token_args.thrift_spec = (
  27851. None, # 0
  27852. (1, TType.STRING, 'token_identifier', 'UTF8', None, ), # 1
  27853. (2, TType.STRING, 'delegation_token', 'UTF8', None, ), # 2
  27854. )
  27855. class add_token_result(object):
  27856. """
  27857. Attributes:
  27858. - success
  27859. """
  27860. def __init__(self, success=None,):
  27861. self.success = success
  27862. def read(self, iprot):
  27863. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27864. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27865. return
  27866. iprot.readStructBegin()
  27867. while True:
  27868. (fname, ftype, fid) = iprot.readFieldBegin()
  27869. if ftype == TType.STOP:
  27870. break
  27871. if fid == 0:
  27872. if ftype == TType.BOOL:
  27873. self.success = iprot.readBool()
  27874. else:
  27875. iprot.skip(ftype)
  27876. else:
  27877. iprot.skip(ftype)
  27878. iprot.readFieldEnd()
  27879. iprot.readStructEnd()
  27880. def write(self, oprot):
  27881. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27882. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27883. return
  27884. oprot.writeStructBegin('add_token_result')
  27885. if self.success is not None:
  27886. oprot.writeFieldBegin('success', TType.BOOL, 0)
  27887. oprot.writeBool(self.success)
  27888. oprot.writeFieldEnd()
  27889. oprot.writeFieldStop()
  27890. oprot.writeStructEnd()
  27891. def validate(self):
  27892. return
  27893. def __repr__(self):
  27894. L = ['%s=%r' % (key, value)
  27895. for key, value in self.__dict__.items()]
  27896. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27897. def __eq__(self, other):
  27898. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27899. def __ne__(self, other):
  27900. return not (self == other)
  27901. all_structs.append(add_token_result)
  27902. add_token_result.thrift_spec = (
  27903. (0, TType.BOOL, 'success', None, None, ), # 0
  27904. )
  27905. class remove_token_args(object):
  27906. """
  27907. Attributes:
  27908. - token_identifier
  27909. """
  27910. def __init__(self, token_identifier=None,):
  27911. self.token_identifier = token_identifier
  27912. def read(self, iprot):
  27913. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27914. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27915. return
  27916. iprot.readStructBegin()
  27917. while True:
  27918. (fname, ftype, fid) = iprot.readFieldBegin()
  27919. if ftype == TType.STOP:
  27920. break
  27921. if fid == 1:
  27922. if ftype == TType.STRING:
  27923. self.token_identifier = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  27924. else:
  27925. iprot.skip(ftype)
  27926. else:
  27927. iprot.skip(ftype)
  27928. iprot.readFieldEnd()
  27929. iprot.readStructEnd()
  27930. def write(self, oprot):
  27931. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27932. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27933. return
  27934. oprot.writeStructBegin('remove_token_args')
  27935. if self.token_identifier is not None:
  27936. oprot.writeFieldBegin('token_identifier', TType.STRING, 1)
  27937. oprot.writeString(self.token_identifier.encode('utf-8') if sys.version_info[0] == 2 else self.token_identifier)
  27938. oprot.writeFieldEnd()
  27939. oprot.writeFieldStop()
  27940. oprot.writeStructEnd()
  27941. def validate(self):
  27942. return
  27943. def __repr__(self):
  27944. L = ['%s=%r' % (key, value)
  27945. for key, value in self.__dict__.items()]
  27946. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27947. def __eq__(self, other):
  27948. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  27949. def __ne__(self, other):
  27950. return not (self == other)
  27951. all_structs.append(remove_token_args)
  27952. remove_token_args.thrift_spec = (
  27953. None, # 0
  27954. (1, TType.STRING, 'token_identifier', 'UTF8', None, ), # 1
  27955. )
  27956. class remove_token_result(object):
  27957. """
  27958. Attributes:
  27959. - success
  27960. """
  27961. def __init__(self, success=None,):
  27962. self.success = success
  27963. def read(self, iprot):
  27964. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  27965. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  27966. return
  27967. iprot.readStructBegin()
  27968. while True:
  27969. (fname, ftype, fid) = iprot.readFieldBegin()
  27970. if ftype == TType.STOP:
  27971. break
  27972. if fid == 0:
  27973. if ftype == TType.BOOL:
  27974. self.success = iprot.readBool()
  27975. else:
  27976. iprot.skip(ftype)
  27977. else:
  27978. iprot.skip(ftype)
  27979. iprot.readFieldEnd()
  27980. iprot.readStructEnd()
  27981. def write(self, oprot):
  27982. if oprot._fast_encode is not None and self.thrift_spec is not None:
  27983. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  27984. return
  27985. oprot.writeStructBegin('remove_token_result')
  27986. if self.success is not None:
  27987. oprot.writeFieldBegin('success', TType.BOOL, 0)
  27988. oprot.writeBool(self.success)
  27989. oprot.writeFieldEnd()
  27990. oprot.writeFieldStop()
  27991. oprot.writeStructEnd()
  27992. def validate(self):
  27993. return
  27994. def __repr__(self):
  27995. L = ['%s=%r' % (key, value)
  27996. for key, value in self.__dict__.items()]
  27997. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  27998. def __eq__(self, other):
  27999. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28000. def __ne__(self, other):
  28001. return not (self == other)
  28002. all_structs.append(remove_token_result)
  28003. remove_token_result.thrift_spec = (
  28004. (0, TType.BOOL, 'success', None, None, ), # 0
  28005. )
  28006. class get_token_args(object):
  28007. """
  28008. Attributes:
  28009. - token_identifier
  28010. """
  28011. def __init__(self, token_identifier=None,):
  28012. self.token_identifier = token_identifier
  28013. def read(self, iprot):
  28014. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28015. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28016. return
  28017. iprot.readStructBegin()
  28018. while True:
  28019. (fname, ftype, fid) = iprot.readFieldBegin()
  28020. if ftype == TType.STOP:
  28021. break
  28022. if fid == 1:
  28023. if ftype == TType.STRING:
  28024. self.token_identifier = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  28025. else:
  28026. iprot.skip(ftype)
  28027. else:
  28028. iprot.skip(ftype)
  28029. iprot.readFieldEnd()
  28030. iprot.readStructEnd()
  28031. def write(self, oprot):
  28032. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28033. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28034. return
  28035. oprot.writeStructBegin('get_token_args')
  28036. if self.token_identifier is not None:
  28037. oprot.writeFieldBegin('token_identifier', TType.STRING, 1)
  28038. oprot.writeString(self.token_identifier.encode('utf-8') if sys.version_info[0] == 2 else self.token_identifier)
  28039. oprot.writeFieldEnd()
  28040. oprot.writeFieldStop()
  28041. oprot.writeStructEnd()
  28042. def validate(self):
  28043. return
  28044. def __repr__(self):
  28045. L = ['%s=%r' % (key, value)
  28046. for key, value in self.__dict__.items()]
  28047. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28048. def __eq__(self, other):
  28049. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28050. def __ne__(self, other):
  28051. return not (self == other)
  28052. all_structs.append(get_token_args)
  28053. get_token_args.thrift_spec = (
  28054. None, # 0
  28055. (1, TType.STRING, 'token_identifier', 'UTF8', None, ), # 1
  28056. )
  28057. class get_token_result(object):
  28058. """
  28059. Attributes:
  28060. - success
  28061. """
  28062. def __init__(self, success=None,):
  28063. self.success = success
  28064. def read(self, iprot):
  28065. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28066. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28067. return
  28068. iprot.readStructBegin()
  28069. while True:
  28070. (fname, ftype, fid) = iprot.readFieldBegin()
  28071. if ftype == TType.STOP:
  28072. break
  28073. if fid == 0:
  28074. if ftype == TType.STRING:
  28075. self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  28076. else:
  28077. iprot.skip(ftype)
  28078. else:
  28079. iprot.skip(ftype)
  28080. iprot.readFieldEnd()
  28081. iprot.readStructEnd()
  28082. def write(self, oprot):
  28083. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28084. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28085. return
  28086. oprot.writeStructBegin('get_token_result')
  28087. if self.success is not None:
  28088. oprot.writeFieldBegin('success', TType.STRING, 0)
  28089. oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
  28090. oprot.writeFieldEnd()
  28091. oprot.writeFieldStop()
  28092. oprot.writeStructEnd()
  28093. def validate(self):
  28094. return
  28095. def __repr__(self):
  28096. L = ['%s=%r' % (key, value)
  28097. for key, value in self.__dict__.items()]
  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. all_structs.append(get_token_result)
  28104. get_token_result.thrift_spec = (
  28105. (0, TType.STRING, 'success', 'UTF8', None, ), # 0
  28106. )
  28107. class get_all_token_identifiers_args(object):
  28108. def read(self, iprot):
  28109. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28110. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28111. return
  28112. iprot.readStructBegin()
  28113. while True:
  28114. (fname, ftype, fid) = iprot.readFieldBegin()
  28115. if ftype == TType.STOP:
  28116. break
  28117. else:
  28118. iprot.skip(ftype)
  28119. iprot.readFieldEnd()
  28120. iprot.readStructEnd()
  28121. def write(self, oprot):
  28122. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28123. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28124. return
  28125. oprot.writeStructBegin('get_all_token_identifiers_args')
  28126. oprot.writeFieldStop()
  28127. oprot.writeStructEnd()
  28128. def validate(self):
  28129. return
  28130. def __repr__(self):
  28131. L = ['%s=%r' % (key, value)
  28132. for key, value in self.__dict__.items()]
  28133. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28134. def __eq__(self, other):
  28135. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28136. def __ne__(self, other):
  28137. return not (self == other)
  28138. all_structs.append(get_all_token_identifiers_args)
  28139. get_all_token_identifiers_args.thrift_spec = (
  28140. )
  28141. class get_all_token_identifiers_result(object):
  28142. """
  28143. Attributes:
  28144. - success
  28145. """
  28146. def __init__(self, success=None,):
  28147. self.success = success
  28148. def read(self, iprot):
  28149. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28150. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28151. return
  28152. iprot.readStructBegin()
  28153. while True:
  28154. (fname, ftype, fid) = iprot.readFieldBegin()
  28155. if ftype == TType.STOP:
  28156. break
  28157. if fid == 0:
  28158. if ftype == TType.LIST:
  28159. self.success = []
  28160. (_etype1036, _size1033) = iprot.readListBegin()
  28161. for _i1037 in range(_size1033):
  28162. _elem1038 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  28163. self.success.append(_elem1038)
  28164. iprot.readListEnd()
  28165. else:
  28166. iprot.skip(ftype)
  28167. else:
  28168. iprot.skip(ftype)
  28169. iprot.readFieldEnd()
  28170. iprot.readStructEnd()
  28171. def write(self, oprot):
  28172. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28173. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28174. return
  28175. oprot.writeStructBegin('get_all_token_identifiers_result')
  28176. if self.success is not None:
  28177. oprot.writeFieldBegin('success', TType.LIST, 0)
  28178. oprot.writeListBegin(TType.STRING, len(self.success))
  28179. for iter1039 in self.success:
  28180. oprot.writeString(iter1039.encode('utf-8') if sys.version_info[0] == 2 else iter1039)
  28181. oprot.writeListEnd()
  28182. oprot.writeFieldEnd()
  28183. oprot.writeFieldStop()
  28184. oprot.writeStructEnd()
  28185. def validate(self):
  28186. return
  28187. def __repr__(self):
  28188. L = ['%s=%r' % (key, value)
  28189. for key, value in self.__dict__.items()]
  28190. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28191. def __eq__(self, other):
  28192. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28193. def __ne__(self, other):
  28194. return not (self == other)
  28195. all_structs.append(get_all_token_identifiers_result)
  28196. get_all_token_identifiers_result.thrift_spec = (
  28197. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  28198. )
  28199. class add_master_key_args(object):
  28200. """
  28201. Attributes:
  28202. - key
  28203. """
  28204. def __init__(self, key=None,):
  28205. self.key = key
  28206. def read(self, iprot):
  28207. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28208. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28209. return
  28210. iprot.readStructBegin()
  28211. while True:
  28212. (fname, ftype, fid) = iprot.readFieldBegin()
  28213. if ftype == TType.STOP:
  28214. break
  28215. if fid == 1:
  28216. if ftype == TType.STRING:
  28217. self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  28218. else:
  28219. iprot.skip(ftype)
  28220. else:
  28221. iprot.skip(ftype)
  28222. iprot.readFieldEnd()
  28223. iprot.readStructEnd()
  28224. def write(self, oprot):
  28225. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28226. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28227. return
  28228. oprot.writeStructBegin('add_master_key_args')
  28229. if self.key is not None:
  28230. oprot.writeFieldBegin('key', TType.STRING, 1)
  28231. oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
  28232. oprot.writeFieldEnd()
  28233. oprot.writeFieldStop()
  28234. oprot.writeStructEnd()
  28235. def validate(self):
  28236. return
  28237. def __repr__(self):
  28238. L = ['%s=%r' % (key, value)
  28239. for key, value in self.__dict__.items()]
  28240. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28241. def __eq__(self, other):
  28242. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28243. def __ne__(self, other):
  28244. return not (self == other)
  28245. all_structs.append(add_master_key_args)
  28246. add_master_key_args.thrift_spec = (
  28247. None, # 0
  28248. (1, TType.STRING, 'key', 'UTF8', None, ), # 1
  28249. )
  28250. class add_master_key_result(object):
  28251. """
  28252. Attributes:
  28253. - success
  28254. - o1
  28255. """
  28256. def __init__(self, success=None, o1=None,):
  28257. self.success = success
  28258. self.o1 = o1
  28259. def read(self, iprot):
  28260. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28261. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28262. return
  28263. iprot.readStructBegin()
  28264. while True:
  28265. (fname, ftype, fid) = iprot.readFieldBegin()
  28266. if ftype == TType.STOP:
  28267. break
  28268. if fid == 0:
  28269. if ftype == TType.I32:
  28270. self.success = iprot.readI32()
  28271. else:
  28272. iprot.skip(ftype)
  28273. elif fid == 1:
  28274. if ftype == TType.STRUCT:
  28275. self.o1 = MetaException()
  28276. self.o1.read(iprot)
  28277. else:
  28278. iprot.skip(ftype)
  28279. else:
  28280. iprot.skip(ftype)
  28281. iprot.readFieldEnd()
  28282. iprot.readStructEnd()
  28283. def write(self, oprot):
  28284. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28285. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28286. return
  28287. oprot.writeStructBegin('add_master_key_result')
  28288. if self.success is not None:
  28289. oprot.writeFieldBegin('success', TType.I32, 0)
  28290. oprot.writeI32(self.success)
  28291. oprot.writeFieldEnd()
  28292. if self.o1 is not None:
  28293. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  28294. self.o1.write(oprot)
  28295. oprot.writeFieldEnd()
  28296. oprot.writeFieldStop()
  28297. oprot.writeStructEnd()
  28298. def validate(self):
  28299. return
  28300. def __repr__(self):
  28301. L = ['%s=%r' % (key, value)
  28302. for key, value in self.__dict__.items()]
  28303. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28304. def __eq__(self, other):
  28305. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28306. def __ne__(self, other):
  28307. return not (self == other)
  28308. all_structs.append(add_master_key_result)
  28309. add_master_key_result.thrift_spec = (
  28310. (0, TType.I32, 'success', None, None, ), # 0
  28311. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  28312. )
  28313. class update_master_key_args(object):
  28314. """
  28315. Attributes:
  28316. - seq_number
  28317. - key
  28318. """
  28319. def __init__(self, seq_number=None, key=None,):
  28320. self.seq_number = seq_number
  28321. self.key = key
  28322. def read(self, iprot):
  28323. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28324. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28325. return
  28326. iprot.readStructBegin()
  28327. while True:
  28328. (fname, ftype, fid) = iprot.readFieldBegin()
  28329. if ftype == TType.STOP:
  28330. break
  28331. if fid == 1:
  28332. if ftype == TType.I32:
  28333. self.seq_number = iprot.readI32()
  28334. else:
  28335. iprot.skip(ftype)
  28336. elif fid == 2:
  28337. if ftype == TType.STRING:
  28338. self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  28339. else:
  28340. iprot.skip(ftype)
  28341. else:
  28342. iprot.skip(ftype)
  28343. iprot.readFieldEnd()
  28344. iprot.readStructEnd()
  28345. def write(self, oprot):
  28346. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28347. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28348. return
  28349. oprot.writeStructBegin('update_master_key_args')
  28350. if self.seq_number is not None:
  28351. oprot.writeFieldBegin('seq_number', TType.I32, 1)
  28352. oprot.writeI32(self.seq_number)
  28353. oprot.writeFieldEnd()
  28354. if self.key is not None:
  28355. oprot.writeFieldBegin('key', TType.STRING, 2)
  28356. oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
  28357. oprot.writeFieldEnd()
  28358. oprot.writeFieldStop()
  28359. oprot.writeStructEnd()
  28360. def validate(self):
  28361. return
  28362. def __repr__(self):
  28363. L = ['%s=%r' % (key, value)
  28364. for key, value in self.__dict__.items()]
  28365. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28366. def __eq__(self, other):
  28367. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28368. def __ne__(self, other):
  28369. return not (self == other)
  28370. all_structs.append(update_master_key_args)
  28371. update_master_key_args.thrift_spec = (
  28372. None, # 0
  28373. (1, TType.I32, 'seq_number', None, None, ), # 1
  28374. (2, TType.STRING, 'key', 'UTF8', None, ), # 2
  28375. )
  28376. class update_master_key_result(object):
  28377. """
  28378. Attributes:
  28379. - o1
  28380. - o2
  28381. """
  28382. def __init__(self, o1=None, o2=None,):
  28383. self.o1 = o1
  28384. self.o2 = o2
  28385. def read(self, iprot):
  28386. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28387. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28388. return
  28389. iprot.readStructBegin()
  28390. while True:
  28391. (fname, ftype, fid) = iprot.readFieldBegin()
  28392. if ftype == TType.STOP:
  28393. break
  28394. if fid == 1:
  28395. if ftype == TType.STRUCT:
  28396. self.o1 = NoSuchObjectException()
  28397. self.o1.read(iprot)
  28398. else:
  28399. iprot.skip(ftype)
  28400. elif fid == 2:
  28401. if ftype == TType.STRUCT:
  28402. self.o2 = MetaException()
  28403. self.o2.read(iprot)
  28404. else:
  28405. iprot.skip(ftype)
  28406. else:
  28407. iprot.skip(ftype)
  28408. iprot.readFieldEnd()
  28409. iprot.readStructEnd()
  28410. def write(self, oprot):
  28411. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28412. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28413. return
  28414. oprot.writeStructBegin('update_master_key_result')
  28415. if self.o1 is not None:
  28416. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  28417. self.o1.write(oprot)
  28418. oprot.writeFieldEnd()
  28419. if self.o2 is not None:
  28420. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  28421. self.o2.write(oprot)
  28422. oprot.writeFieldEnd()
  28423. oprot.writeFieldStop()
  28424. oprot.writeStructEnd()
  28425. def validate(self):
  28426. return
  28427. def __repr__(self):
  28428. L = ['%s=%r' % (key, value)
  28429. for key, value in self.__dict__.items()]
  28430. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28431. def __eq__(self, other):
  28432. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28433. def __ne__(self, other):
  28434. return not (self == other)
  28435. all_structs.append(update_master_key_result)
  28436. update_master_key_result.thrift_spec = (
  28437. None, # 0
  28438. (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1
  28439. (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2
  28440. )
  28441. class remove_master_key_args(object):
  28442. """
  28443. Attributes:
  28444. - key_seq
  28445. """
  28446. def __init__(self, key_seq=None,):
  28447. self.key_seq = key_seq
  28448. def read(self, iprot):
  28449. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28450. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28451. return
  28452. iprot.readStructBegin()
  28453. while True:
  28454. (fname, ftype, fid) = iprot.readFieldBegin()
  28455. if ftype == TType.STOP:
  28456. break
  28457. if fid == 1:
  28458. if ftype == TType.I32:
  28459. self.key_seq = iprot.readI32()
  28460. else:
  28461. iprot.skip(ftype)
  28462. else:
  28463. iprot.skip(ftype)
  28464. iprot.readFieldEnd()
  28465. iprot.readStructEnd()
  28466. def write(self, oprot):
  28467. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28468. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28469. return
  28470. oprot.writeStructBegin('remove_master_key_args')
  28471. if self.key_seq is not None:
  28472. oprot.writeFieldBegin('key_seq', TType.I32, 1)
  28473. oprot.writeI32(self.key_seq)
  28474. oprot.writeFieldEnd()
  28475. oprot.writeFieldStop()
  28476. oprot.writeStructEnd()
  28477. def validate(self):
  28478. return
  28479. def __repr__(self):
  28480. L = ['%s=%r' % (key, value)
  28481. for key, value in self.__dict__.items()]
  28482. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28483. def __eq__(self, other):
  28484. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28485. def __ne__(self, other):
  28486. return not (self == other)
  28487. all_structs.append(remove_master_key_args)
  28488. remove_master_key_args.thrift_spec = (
  28489. None, # 0
  28490. (1, TType.I32, 'key_seq', None, None, ), # 1
  28491. )
  28492. class remove_master_key_result(object):
  28493. """
  28494. Attributes:
  28495. - success
  28496. """
  28497. def __init__(self, success=None,):
  28498. self.success = success
  28499. def read(self, iprot):
  28500. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28501. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28502. return
  28503. iprot.readStructBegin()
  28504. while True:
  28505. (fname, ftype, fid) = iprot.readFieldBegin()
  28506. if ftype == TType.STOP:
  28507. break
  28508. if fid == 0:
  28509. if ftype == TType.BOOL:
  28510. self.success = iprot.readBool()
  28511. else:
  28512. iprot.skip(ftype)
  28513. else:
  28514. iprot.skip(ftype)
  28515. iprot.readFieldEnd()
  28516. iprot.readStructEnd()
  28517. def write(self, oprot):
  28518. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28519. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28520. return
  28521. oprot.writeStructBegin('remove_master_key_result')
  28522. if self.success is not None:
  28523. oprot.writeFieldBegin('success', TType.BOOL, 0)
  28524. oprot.writeBool(self.success)
  28525. oprot.writeFieldEnd()
  28526. oprot.writeFieldStop()
  28527. oprot.writeStructEnd()
  28528. def validate(self):
  28529. return
  28530. def __repr__(self):
  28531. L = ['%s=%r' % (key, value)
  28532. for key, value in self.__dict__.items()]
  28533. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28534. def __eq__(self, other):
  28535. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28536. def __ne__(self, other):
  28537. return not (self == other)
  28538. all_structs.append(remove_master_key_result)
  28539. remove_master_key_result.thrift_spec = (
  28540. (0, TType.BOOL, 'success', None, None, ), # 0
  28541. )
  28542. class get_master_keys_args(object):
  28543. def read(self, iprot):
  28544. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28545. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28546. return
  28547. iprot.readStructBegin()
  28548. while True:
  28549. (fname, ftype, fid) = iprot.readFieldBegin()
  28550. if ftype == TType.STOP:
  28551. break
  28552. else:
  28553. iprot.skip(ftype)
  28554. iprot.readFieldEnd()
  28555. iprot.readStructEnd()
  28556. def write(self, oprot):
  28557. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28558. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28559. return
  28560. oprot.writeStructBegin('get_master_keys_args')
  28561. oprot.writeFieldStop()
  28562. oprot.writeStructEnd()
  28563. def validate(self):
  28564. return
  28565. def __repr__(self):
  28566. L = ['%s=%r' % (key, value)
  28567. for key, value in self.__dict__.items()]
  28568. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28569. def __eq__(self, other):
  28570. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28571. def __ne__(self, other):
  28572. return not (self == other)
  28573. all_structs.append(get_master_keys_args)
  28574. get_master_keys_args.thrift_spec = (
  28575. )
  28576. class get_master_keys_result(object):
  28577. """
  28578. Attributes:
  28579. - success
  28580. """
  28581. def __init__(self, success=None,):
  28582. self.success = success
  28583. def read(self, iprot):
  28584. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28585. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28586. return
  28587. iprot.readStructBegin()
  28588. while True:
  28589. (fname, ftype, fid) = iprot.readFieldBegin()
  28590. if ftype == TType.STOP:
  28591. break
  28592. if fid == 0:
  28593. if ftype == TType.LIST:
  28594. self.success = []
  28595. (_etype1043, _size1040) = iprot.readListBegin()
  28596. for _i1044 in range(_size1040):
  28597. _elem1045 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  28598. self.success.append(_elem1045)
  28599. iprot.readListEnd()
  28600. else:
  28601. iprot.skip(ftype)
  28602. else:
  28603. iprot.skip(ftype)
  28604. iprot.readFieldEnd()
  28605. iprot.readStructEnd()
  28606. def write(self, oprot):
  28607. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28608. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28609. return
  28610. oprot.writeStructBegin('get_master_keys_result')
  28611. if self.success is not None:
  28612. oprot.writeFieldBegin('success', TType.LIST, 0)
  28613. oprot.writeListBegin(TType.STRING, len(self.success))
  28614. for iter1046 in self.success:
  28615. oprot.writeString(iter1046.encode('utf-8') if sys.version_info[0] == 2 else iter1046)
  28616. oprot.writeListEnd()
  28617. oprot.writeFieldEnd()
  28618. oprot.writeFieldStop()
  28619. oprot.writeStructEnd()
  28620. def validate(self):
  28621. return
  28622. def __repr__(self):
  28623. L = ['%s=%r' % (key, value)
  28624. for key, value in self.__dict__.items()]
  28625. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28626. def __eq__(self, other):
  28627. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28628. def __ne__(self, other):
  28629. return not (self == other)
  28630. all_structs.append(get_master_keys_result)
  28631. get_master_keys_result.thrift_spec = (
  28632. (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
  28633. )
  28634. class get_open_txns_args(object):
  28635. def read(self, iprot):
  28636. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28637. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28638. return
  28639. iprot.readStructBegin()
  28640. while True:
  28641. (fname, ftype, fid) = iprot.readFieldBegin()
  28642. if ftype == TType.STOP:
  28643. break
  28644. else:
  28645. iprot.skip(ftype)
  28646. iprot.readFieldEnd()
  28647. iprot.readStructEnd()
  28648. def write(self, oprot):
  28649. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28650. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28651. return
  28652. oprot.writeStructBegin('get_open_txns_args')
  28653. oprot.writeFieldStop()
  28654. oprot.writeStructEnd()
  28655. def validate(self):
  28656. return
  28657. def __repr__(self):
  28658. L = ['%s=%r' % (key, value)
  28659. for key, value in self.__dict__.items()]
  28660. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28661. def __eq__(self, other):
  28662. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28663. def __ne__(self, other):
  28664. return not (self == other)
  28665. all_structs.append(get_open_txns_args)
  28666. get_open_txns_args.thrift_spec = (
  28667. )
  28668. class get_open_txns_result(object):
  28669. """
  28670. Attributes:
  28671. - success
  28672. """
  28673. def __init__(self, success=None,):
  28674. self.success = success
  28675. def read(self, iprot):
  28676. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28677. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28678. return
  28679. iprot.readStructBegin()
  28680. while True:
  28681. (fname, ftype, fid) = iprot.readFieldBegin()
  28682. if ftype == TType.STOP:
  28683. break
  28684. if fid == 0:
  28685. if ftype == TType.STRUCT:
  28686. self.success = GetOpenTxnsResponse()
  28687. self.success.read(iprot)
  28688. else:
  28689. iprot.skip(ftype)
  28690. else:
  28691. iprot.skip(ftype)
  28692. iprot.readFieldEnd()
  28693. iprot.readStructEnd()
  28694. def write(self, oprot):
  28695. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28696. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28697. return
  28698. oprot.writeStructBegin('get_open_txns_result')
  28699. if self.success is not None:
  28700. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  28701. self.success.write(oprot)
  28702. oprot.writeFieldEnd()
  28703. oprot.writeFieldStop()
  28704. oprot.writeStructEnd()
  28705. def validate(self):
  28706. return
  28707. def __repr__(self):
  28708. L = ['%s=%r' % (key, value)
  28709. for key, value in self.__dict__.items()]
  28710. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28711. def __eq__(self, other):
  28712. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28713. def __ne__(self, other):
  28714. return not (self == other)
  28715. all_structs.append(get_open_txns_result)
  28716. get_open_txns_result.thrift_spec = (
  28717. (0, TType.STRUCT, 'success', [GetOpenTxnsResponse, None], None, ), # 0
  28718. )
  28719. class get_open_txns_info_args(object):
  28720. def read(self, iprot):
  28721. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28722. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28723. return
  28724. iprot.readStructBegin()
  28725. while True:
  28726. (fname, ftype, fid) = iprot.readFieldBegin()
  28727. if ftype == TType.STOP:
  28728. break
  28729. else:
  28730. iprot.skip(ftype)
  28731. iprot.readFieldEnd()
  28732. iprot.readStructEnd()
  28733. def write(self, oprot):
  28734. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28735. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28736. return
  28737. oprot.writeStructBegin('get_open_txns_info_args')
  28738. oprot.writeFieldStop()
  28739. oprot.writeStructEnd()
  28740. def validate(self):
  28741. return
  28742. def __repr__(self):
  28743. L = ['%s=%r' % (key, value)
  28744. for key, value in self.__dict__.items()]
  28745. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28746. def __eq__(self, other):
  28747. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28748. def __ne__(self, other):
  28749. return not (self == other)
  28750. all_structs.append(get_open_txns_info_args)
  28751. get_open_txns_info_args.thrift_spec = (
  28752. )
  28753. class get_open_txns_info_result(object):
  28754. """
  28755. Attributes:
  28756. - success
  28757. """
  28758. def __init__(self, success=None,):
  28759. self.success = success
  28760. def read(self, iprot):
  28761. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28762. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28763. return
  28764. iprot.readStructBegin()
  28765. while True:
  28766. (fname, ftype, fid) = iprot.readFieldBegin()
  28767. if ftype == TType.STOP:
  28768. break
  28769. if fid == 0:
  28770. if ftype == TType.STRUCT:
  28771. self.success = GetOpenTxnsInfoResponse()
  28772. self.success.read(iprot)
  28773. else:
  28774. iprot.skip(ftype)
  28775. else:
  28776. iprot.skip(ftype)
  28777. iprot.readFieldEnd()
  28778. iprot.readStructEnd()
  28779. def write(self, oprot):
  28780. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28781. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28782. return
  28783. oprot.writeStructBegin('get_open_txns_info_result')
  28784. if self.success is not None:
  28785. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  28786. self.success.write(oprot)
  28787. oprot.writeFieldEnd()
  28788. oprot.writeFieldStop()
  28789. oprot.writeStructEnd()
  28790. def validate(self):
  28791. return
  28792. def __repr__(self):
  28793. L = ['%s=%r' % (key, value)
  28794. for key, value in self.__dict__.items()]
  28795. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28796. def __eq__(self, other):
  28797. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28798. def __ne__(self, other):
  28799. return not (self == other)
  28800. all_structs.append(get_open_txns_info_result)
  28801. get_open_txns_info_result.thrift_spec = (
  28802. (0, TType.STRUCT, 'success', [GetOpenTxnsInfoResponse, None], None, ), # 0
  28803. )
  28804. class open_txns_args(object):
  28805. """
  28806. Attributes:
  28807. - rqst
  28808. """
  28809. def __init__(self, rqst=None,):
  28810. self.rqst = rqst
  28811. def read(self, iprot):
  28812. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28813. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28814. return
  28815. iprot.readStructBegin()
  28816. while True:
  28817. (fname, ftype, fid) = iprot.readFieldBegin()
  28818. if ftype == TType.STOP:
  28819. break
  28820. if fid == 1:
  28821. if ftype == TType.STRUCT:
  28822. self.rqst = OpenTxnRequest()
  28823. self.rqst.read(iprot)
  28824. else:
  28825. iprot.skip(ftype)
  28826. else:
  28827. iprot.skip(ftype)
  28828. iprot.readFieldEnd()
  28829. iprot.readStructEnd()
  28830. def write(self, oprot):
  28831. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28832. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28833. return
  28834. oprot.writeStructBegin('open_txns_args')
  28835. if self.rqst is not None:
  28836. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  28837. self.rqst.write(oprot)
  28838. oprot.writeFieldEnd()
  28839. oprot.writeFieldStop()
  28840. oprot.writeStructEnd()
  28841. def validate(self):
  28842. return
  28843. def __repr__(self):
  28844. L = ['%s=%r' % (key, value)
  28845. for key, value in self.__dict__.items()]
  28846. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28847. def __eq__(self, other):
  28848. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28849. def __ne__(self, other):
  28850. return not (self == other)
  28851. all_structs.append(open_txns_args)
  28852. open_txns_args.thrift_spec = (
  28853. None, # 0
  28854. (1, TType.STRUCT, 'rqst', [OpenTxnRequest, None], None, ), # 1
  28855. )
  28856. class open_txns_result(object):
  28857. """
  28858. Attributes:
  28859. - success
  28860. """
  28861. def __init__(self, success=None,):
  28862. self.success = success
  28863. def read(self, iprot):
  28864. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28865. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28866. return
  28867. iprot.readStructBegin()
  28868. while True:
  28869. (fname, ftype, fid) = iprot.readFieldBegin()
  28870. if ftype == TType.STOP:
  28871. break
  28872. if fid == 0:
  28873. if ftype == TType.STRUCT:
  28874. self.success = OpenTxnsResponse()
  28875. self.success.read(iprot)
  28876. else:
  28877. iprot.skip(ftype)
  28878. else:
  28879. iprot.skip(ftype)
  28880. iprot.readFieldEnd()
  28881. iprot.readStructEnd()
  28882. def write(self, oprot):
  28883. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28884. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28885. return
  28886. oprot.writeStructBegin('open_txns_result')
  28887. if self.success is not None:
  28888. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  28889. self.success.write(oprot)
  28890. oprot.writeFieldEnd()
  28891. oprot.writeFieldStop()
  28892. oprot.writeStructEnd()
  28893. def validate(self):
  28894. return
  28895. def __repr__(self):
  28896. L = ['%s=%r' % (key, value)
  28897. for key, value in self.__dict__.items()]
  28898. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28899. def __eq__(self, other):
  28900. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28901. def __ne__(self, other):
  28902. return not (self == other)
  28903. all_structs.append(open_txns_result)
  28904. open_txns_result.thrift_spec = (
  28905. (0, TType.STRUCT, 'success', [OpenTxnsResponse, None], None, ), # 0
  28906. )
  28907. class abort_txn_args(object):
  28908. """
  28909. Attributes:
  28910. - rqst
  28911. """
  28912. def __init__(self, rqst=None,):
  28913. self.rqst = rqst
  28914. def read(self, iprot):
  28915. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28916. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28917. return
  28918. iprot.readStructBegin()
  28919. while True:
  28920. (fname, ftype, fid) = iprot.readFieldBegin()
  28921. if ftype == TType.STOP:
  28922. break
  28923. if fid == 1:
  28924. if ftype == TType.STRUCT:
  28925. self.rqst = AbortTxnRequest()
  28926. self.rqst.read(iprot)
  28927. else:
  28928. iprot.skip(ftype)
  28929. else:
  28930. iprot.skip(ftype)
  28931. iprot.readFieldEnd()
  28932. iprot.readStructEnd()
  28933. def write(self, oprot):
  28934. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28935. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28936. return
  28937. oprot.writeStructBegin('abort_txn_args')
  28938. if self.rqst is not None:
  28939. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  28940. self.rqst.write(oprot)
  28941. oprot.writeFieldEnd()
  28942. oprot.writeFieldStop()
  28943. oprot.writeStructEnd()
  28944. def validate(self):
  28945. return
  28946. def __repr__(self):
  28947. L = ['%s=%r' % (key, value)
  28948. for key, value in self.__dict__.items()]
  28949. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  28950. def __eq__(self, other):
  28951. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  28952. def __ne__(self, other):
  28953. return not (self == other)
  28954. all_structs.append(abort_txn_args)
  28955. abort_txn_args.thrift_spec = (
  28956. None, # 0
  28957. (1, TType.STRUCT, 'rqst', [AbortTxnRequest, None], None, ), # 1
  28958. )
  28959. class abort_txn_result(object):
  28960. """
  28961. Attributes:
  28962. - o1
  28963. """
  28964. def __init__(self, o1=None,):
  28965. self.o1 = o1
  28966. def read(self, iprot):
  28967. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  28968. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  28969. return
  28970. iprot.readStructBegin()
  28971. while True:
  28972. (fname, ftype, fid) = iprot.readFieldBegin()
  28973. if ftype == TType.STOP:
  28974. break
  28975. if fid == 1:
  28976. if ftype == TType.STRUCT:
  28977. self.o1 = NoSuchTxnException()
  28978. self.o1.read(iprot)
  28979. else:
  28980. iprot.skip(ftype)
  28981. else:
  28982. iprot.skip(ftype)
  28983. iprot.readFieldEnd()
  28984. iprot.readStructEnd()
  28985. def write(self, oprot):
  28986. if oprot._fast_encode is not None and self.thrift_spec is not None:
  28987. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  28988. return
  28989. oprot.writeStructBegin('abort_txn_result')
  28990. if self.o1 is not None:
  28991. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  28992. self.o1.write(oprot)
  28993. oprot.writeFieldEnd()
  28994. oprot.writeFieldStop()
  28995. oprot.writeStructEnd()
  28996. def validate(self):
  28997. return
  28998. def __repr__(self):
  28999. L = ['%s=%r' % (key, value)
  29000. for key, value in self.__dict__.items()]
  29001. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29002. def __eq__(self, other):
  29003. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29004. def __ne__(self, other):
  29005. return not (self == other)
  29006. all_structs.append(abort_txn_result)
  29007. abort_txn_result.thrift_spec = (
  29008. None, # 0
  29009. (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1
  29010. )
  29011. class abort_txns_args(object):
  29012. """
  29013. Attributes:
  29014. - rqst
  29015. """
  29016. def __init__(self, rqst=None,):
  29017. self.rqst = rqst
  29018. def read(self, iprot):
  29019. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29020. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29021. return
  29022. iprot.readStructBegin()
  29023. while True:
  29024. (fname, ftype, fid) = iprot.readFieldBegin()
  29025. if ftype == TType.STOP:
  29026. break
  29027. if fid == 1:
  29028. if ftype == TType.STRUCT:
  29029. self.rqst = AbortTxnsRequest()
  29030. self.rqst.read(iprot)
  29031. else:
  29032. iprot.skip(ftype)
  29033. else:
  29034. iprot.skip(ftype)
  29035. iprot.readFieldEnd()
  29036. iprot.readStructEnd()
  29037. def write(self, oprot):
  29038. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29039. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29040. return
  29041. oprot.writeStructBegin('abort_txns_args')
  29042. if self.rqst is not None:
  29043. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29044. self.rqst.write(oprot)
  29045. oprot.writeFieldEnd()
  29046. oprot.writeFieldStop()
  29047. oprot.writeStructEnd()
  29048. def validate(self):
  29049. return
  29050. def __repr__(self):
  29051. L = ['%s=%r' % (key, value)
  29052. for key, value in self.__dict__.items()]
  29053. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29054. def __eq__(self, other):
  29055. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29056. def __ne__(self, other):
  29057. return not (self == other)
  29058. all_structs.append(abort_txns_args)
  29059. abort_txns_args.thrift_spec = (
  29060. None, # 0
  29061. (1, TType.STRUCT, 'rqst', [AbortTxnsRequest, None], None, ), # 1
  29062. )
  29063. class abort_txns_result(object):
  29064. """
  29065. Attributes:
  29066. - o1
  29067. """
  29068. def __init__(self, o1=None,):
  29069. self.o1 = o1
  29070. def read(self, iprot):
  29071. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29072. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29073. return
  29074. iprot.readStructBegin()
  29075. while True:
  29076. (fname, ftype, fid) = iprot.readFieldBegin()
  29077. if ftype == TType.STOP:
  29078. break
  29079. if fid == 1:
  29080. if ftype == TType.STRUCT:
  29081. self.o1 = NoSuchTxnException()
  29082. self.o1.read(iprot)
  29083. else:
  29084. iprot.skip(ftype)
  29085. else:
  29086. iprot.skip(ftype)
  29087. iprot.readFieldEnd()
  29088. iprot.readStructEnd()
  29089. def write(self, oprot):
  29090. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29091. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29092. return
  29093. oprot.writeStructBegin('abort_txns_result')
  29094. if self.o1 is not None:
  29095. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  29096. self.o1.write(oprot)
  29097. oprot.writeFieldEnd()
  29098. oprot.writeFieldStop()
  29099. oprot.writeStructEnd()
  29100. def validate(self):
  29101. return
  29102. def __repr__(self):
  29103. L = ['%s=%r' % (key, value)
  29104. for key, value in self.__dict__.items()]
  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. all_structs.append(abort_txns_result)
  29111. abort_txns_result.thrift_spec = (
  29112. None, # 0
  29113. (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1
  29114. )
  29115. class commit_txn_args(object):
  29116. """
  29117. Attributes:
  29118. - rqst
  29119. """
  29120. def __init__(self, rqst=None,):
  29121. self.rqst = rqst
  29122. def read(self, iprot):
  29123. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29124. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29125. return
  29126. iprot.readStructBegin()
  29127. while True:
  29128. (fname, ftype, fid) = iprot.readFieldBegin()
  29129. if ftype == TType.STOP:
  29130. break
  29131. if fid == 1:
  29132. if ftype == TType.STRUCT:
  29133. self.rqst = CommitTxnRequest()
  29134. self.rqst.read(iprot)
  29135. else:
  29136. iprot.skip(ftype)
  29137. else:
  29138. iprot.skip(ftype)
  29139. iprot.readFieldEnd()
  29140. iprot.readStructEnd()
  29141. def write(self, oprot):
  29142. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29143. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29144. return
  29145. oprot.writeStructBegin('commit_txn_args')
  29146. if self.rqst is not None:
  29147. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29148. self.rqst.write(oprot)
  29149. oprot.writeFieldEnd()
  29150. oprot.writeFieldStop()
  29151. oprot.writeStructEnd()
  29152. def validate(self):
  29153. return
  29154. def __repr__(self):
  29155. L = ['%s=%r' % (key, value)
  29156. for key, value in self.__dict__.items()]
  29157. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29158. def __eq__(self, other):
  29159. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29160. def __ne__(self, other):
  29161. return not (self == other)
  29162. all_structs.append(commit_txn_args)
  29163. commit_txn_args.thrift_spec = (
  29164. None, # 0
  29165. (1, TType.STRUCT, 'rqst', [CommitTxnRequest, None], None, ), # 1
  29166. )
  29167. class commit_txn_result(object):
  29168. """
  29169. Attributes:
  29170. - o1
  29171. - o2
  29172. """
  29173. def __init__(self, o1=None, o2=None,):
  29174. self.o1 = o1
  29175. self.o2 = o2
  29176. def read(self, iprot):
  29177. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29178. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29179. return
  29180. iprot.readStructBegin()
  29181. while True:
  29182. (fname, ftype, fid) = iprot.readFieldBegin()
  29183. if ftype == TType.STOP:
  29184. break
  29185. if fid == 1:
  29186. if ftype == TType.STRUCT:
  29187. self.o1 = NoSuchTxnException()
  29188. self.o1.read(iprot)
  29189. else:
  29190. iprot.skip(ftype)
  29191. elif fid == 2:
  29192. if ftype == TType.STRUCT:
  29193. self.o2 = TxnAbortedException()
  29194. self.o2.read(iprot)
  29195. else:
  29196. iprot.skip(ftype)
  29197. else:
  29198. iprot.skip(ftype)
  29199. iprot.readFieldEnd()
  29200. iprot.readStructEnd()
  29201. def write(self, oprot):
  29202. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29203. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29204. return
  29205. oprot.writeStructBegin('commit_txn_result')
  29206. if self.o1 is not None:
  29207. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  29208. self.o1.write(oprot)
  29209. oprot.writeFieldEnd()
  29210. if self.o2 is not None:
  29211. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  29212. self.o2.write(oprot)
  29213. oprot.writeFieldEnd()
  29214. oprot.writeFieldStop()
  29215. oprot.writeStructEnd()
  29216. def validate(self):
  29217. return
  29218. def __repr__(self):
  29219. L = ['%s=%r' % (key, value)
  29220. for key, value in self.__dict__.items()]
  29221. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29222. def __eq__(self, other):
  29223. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29224. def __ne__(self, other):
  29225. return not (self == other)
  29226. all_structs.append(commit_txn_result)
  29227. commit_txn_result.thrift_spec = (
  29228. None, # 0
  29229. (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1
  29230. (2, TType.STRUCT, 'o2', [TxnAbortedException, None], None, ), # 2
  29231. )
  29232. class lock_args(object):
  29233. """
  29234. Attributes:
  29235. - rqst
  29236. """
  29237. def __init__(self, rqst=None,):
  29238. self.rqst = rqst
  29239. def read(self, iprot):
  29240. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29241. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29242. return
  29243. iprot.readStructBegin()
  29244. while True:
  29245. (fname, ftype, fid) = iprot.readFieldBegin()
  29246. if ftype == TType.STOP:
  29247. break
  29248. if fid == 1:
  29249. if ftype == TType.STRUCT:
  29250. self.rqst = LockRequest()
  29251. self.rqst.read(iprot)
  29252. else:
  29253. iprot.skip(ftype)
  29254. else:
  29255. iprot.skip(ftype)
  29256. iprot.readFieldEnd()
  29257. iprot.readStructEnd()
  29258. def write(self, oprot):
  29259. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29260. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29261. return
  29262. oprot.writeStructBegin('lock_args')
  29263. if self.rqst is not None:
  29264. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29265. self.rqst.write(oprot)
  29266. oprot.writeFieldEnd()
  29267. oprot.writeFieldStop()
  29268. oprot.writeStructEnd()
  29269. def validate(self):
  29270. return
  29271. def __repr__(self):
  29272. L = ['%s=%r' % (key, value)
  29273. for key, value in self.__dict__.items()]
  29274. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29275. def __eq__(self, other):
  29276. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29277. def __ne__(self, other):
  29278. return not (self == other)
  29279. all_structs.append(lock_args)
  29280. lock_args.thrift_spec = (
  29281. None, # 0
  29282. (1, TType.STRUCT, 'rqst', [LockRequest, None], None, ), # 1
  29283. )
  29284. class lock_result(object):
  29285. """
  29286. Attributes:
  29287. - success
  29288. - o1
  29289. - o2
  29290. """
  29291. def __init__(self, success=None, o1=None, o2=None,):
  29292. self.success = success
  29293. self.o1 = o1
  29294. self.o2 = o2
  29295. def read(self, iprot):
  29296. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29297. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29298. return
  29299. iprot.readStructBegin()
  29300. while True:
  29301. (fname, ftype, fid) = iprot.readFieldBegin()
  29302. if ftype == TType.STOP:
  29303. break
  29304. if fid == 0:
  29305. if ftype == TType.STRUCT:
  29306. self.success = LockResponse()
  29307. self.success.read(iprot)
  29308. else:
  29309. iprot.skip(ftype)
  29310. elif fid == 1:
  29311. if ftype == TType.STRUCT:
  29312. self.o1 = NoSuchTxnException()
  29313. self.o1.read(iprot)
  29314. else:
  29315. iprot.skip(ftype)
  29316. elif fid == 2:
  29317. if ftype == TType.STRUCT:
  29318. self.o2 = TxnAbortedException()
  29319. self.o2.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._fast_encode is not None and self.thrift_spec is not None:
  29328. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29329. return
  29330. oprot.writeStructBegin('lock_result')
  29331. if self.success is not None:
  29332. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  29333. self.success.write(oprot)
  29334. oprot.writeFieldEnd()
  29335. if self.o1 is not None:
  29336. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  29337. self.o1.write(oprot)
  29338. oprot.writeFieldEnd()
  29339. if self.o2 is not None:
  29340. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  29341. self.o2.write(oprot)
  29342. oprot.writeFieldEnd()
  29343. oprot.writeFieldStop()
  29344. oprot.writeStructEnd()
  29345. def validate(self):
  29346. return
  29347. def __repr__(self):
  29348. L = ['%s=%r' % (key, value)
  29349. for key, value in self.__dict__.items()]
  29350. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29351. def __eq__(self, other):
  29352. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29353. def __ne__(self, other):
  29354. return not (self == other)
  29355. all_structs.append(lock_result)
  29356. lock_result.thrift_spec = (
  29357. (0, TType.STRUCT, 'success', [LockResponse, None], None, ), # 0
  29358. (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1
  29359. (2, TType.STRUCT, 'o2', [TxnAbortedException, None], None, ), # 2
  29360. )
  29361. class check_lock_args(object):
  29362. """
  29363. Attributes:
  29364. - rqst
  29365. """
  29366. def __init__(self, rqst=None,):
  29367. self.rqst = rqst
  29368. def read(self, iprot):
  29369. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29370. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29371. return
  29372. iprot.readStructBegin()
  29373. while True:
  29374. (fname, ftype, fid) = iprot.readFieldBegin()
  29375. if ftype == TType.STOP:
  29376. break
  29377. if fid == 1:
  29378. if ftype == TType.STRUCT:
  29379. self.rqst = CheckLockRequest()
  29380. self.rqst.read(iprot)
  29381. else:
  29382. iprot.skip(ftype)
  29383. else:
  29384. iprot.skip(ftype)
  29385. iprot.readFieldEnd()
  29386. iprot.readStructEnd()
  29387. def write(self, oprot):
  29388. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29389. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29390. return
  29391. oprot.writeStructBegin('check_lock_args')
  29392. if self.rqst is not None:
  29393. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29394. self.rqst.write(oprot)
  29395. oprot.writeFieldEnd()
  29396. oprot.writeFieldStop()
  29397. oprot.writeStructEnd()
  29398. def validate(self):
  29399. return
  29400. def __repr__(self):
  29401. L = ['%s=%r' % (key, value)
  29402. for key, value in self.__dict__.items()]
  29403. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29404. def __eq__(self, other):
  29405. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29406. def __ne__(self, other):
  29407. return not (self == other)
  29408. all_structs.append(check_lock_args)
  29409. check_lock_args.thrift_spec = (
  29410. None, # 0
  29411. (1, TType.STRUCT, 'rqst', [CheckLockRequest, None], None, ), # 1
  29412. )
  29413. class check_lock_result(object):
  29414. """
  29415. Attributes:
  29416. - success
  29417. - o1
  29418. - o2
  29419. - o3
  29420. """
  29421. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  29422. self.success = success
  29423. self.o1 = o1
  29424. self.o2 = o2
  29425. self.o3 = o3
  29426. def read(self, iprot):
  29427. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29428. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29429. return
  29430. iprot.readStructBegin()
  29431. while True:
  29432. (fname, ftype, fid) = iprot.readFieldBegin()
  29433. if ftype == TType.STOP:
  29434. break
  29435. if fid == 0:
  29436. if ftype == TType.STRUCT:
  29437. self.success = LockResponse()
  29438. self.success.read(iprot)
  29439. else:
  29440. iprot.skip(ftype)
  29441. elif fid == 1:
  29442. if ftype == TType.STRUCT:
  29443. self.o1 = NoSuchTxnException()
  29444. self.o1.read(iprot)
  29445. else:
  29446. iprot.skip(ftype)
  29447. elif fid == 2:
  29448. if ftype == TType.STRUCT:
  29449. self.o2 = TxnAbortedException()
  29450. self.o2.read(iprot)
  29451. else:
  29452. iprot.skip(ftype)
  29453. elif fid == 3:
  29454. if ftype == TType.STRUCT:
  29455. self.o3 = NoSuchLockException()
  29456. self.o3.read(iprot)
  29457. else:
  29458. iprot.skip(ftype)
  29459. else:
  29460. iprot.skip(ftype)
  29461. iprot.readFieldEnd()
  29462. iprot.readStructEnd()
  29463. def write(self, oprot):
  29464. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29465. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29466. return
  29467. oprot.writeStructBegin('check_lock_result')
  29468. if self.success is not None:
  29469. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  29470. self.success.write(oprot)
  29471. oprot.writeFieldEnd()
  29472. if self.o1 is not None:
  29473. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  29474. self.o1.write(oprot)
  29475. oprot.writeFieldEnd()
  29476. if self.o2 is not None:
  29477. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  29478. self.o2.write(oprot)
  29479. oprot.writeFieldEnd()
  29480. if self.o3 is not None:
  29481. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  29482. self.o3.write(oprot)
  29483. oprot.writeFieldEnd()
  29484. oprot.writeFieldStop()
  29485. oprot.writeStructEnd()
  29486. def validate(self):
  29487. return
  29488. def __repr__(self):
  29489. L = ['%s=%r' % (key, value)
  29490. for key, value in self.__dict__.items()]
  29491. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29492. def __eq__(self, other):
  29493. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29494. def __ne__(self, other):
  29495. return not (self == other)
  29496. all_structs.append(check_lock_result)
  29497. check_lock_result.thrift_spec = (
  29498. (0, TType.STRUCT, 'success', [LockResponse, None], None, ), # 0
  29499. (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1
  29500. (2, TType.STRUCT, 'o2', [TxnAbortedException, None], None, ), # 2
  29501. (3, TType.STRUCT, 'o3', [NoSuchLockException, None], None, ), # 3
  29502. )
  29503. class unlock_args(object):
  29504. """
  29505. Attributes:
  29506. - rqst
  29507. """
  29508. def __init__(self, rqst=None,):
  29509. self.rqst = rqst
  29510. def read(self, iprot):
  29511. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29512. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29513. return
  29514. iprot.readStructBegin()
  29515. while True:
  29516. (fname, ftype, fid) = iprot.readFieldBegin()
  29517. if ftype == TType.STOP:
  29518. break
  29519. if fid == 1:
  29520. if ftype == TType.STRUCT:
  29521. self.rqst = UnlockRequest()
  29522. self.rqst.read(iprot)
  29523. else:
  29524. iprot.skip(ftype)
  29525. else:
  29526. iprot.skip(ftype)
  29527. iprot.readFieldEnd()
  29528. iprot.readStructEnd()
  29529. def write(self, oprot):
  29530. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29531. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29532. return
  29533. oprot.writeStructBegin('unlock_args')
  29534. if self.rqst is not None:
  29535. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29536. self.rqst.write(oprot)
  29537. oprot.writeFieldEnd()
  29538. oprot.writeFieldStop()
  29539. oprot.writeStructEnd()
  29540. def validate(self):
  29541. return
  29542. def __repr__(self):
  29543. L = ['%s=%r' % (key, value)
  29544. for key, value in self.__dict__.items()]
  29545. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29546. def __eq__(self, other):
  29547. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29548. def __ne__(self, other):
  29549. return not (self == other)
  29550. all_structs.append(unlock_args)
  29551. unlock_args.thrift_spec = (
  29552. None, # 0
  29553. (1, TType.STRUCT, 'rqst', [UnlockRequest, None], None, ), # 1
  29554. )
  29555. class unlock_result(object):
  29556. """
  29557. Attributes:
  29558. - o1
  29559. - o2
  29560. """
  29561. def __init__(self, o1=None, o2=None,):
  29562. self.o1 = o1
  29563. self.o2 = o2
  29564. def read(self, iprot):
  29565. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29566. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29567. return
  29568. iprot.readStructBegin()
  29569. while True:
  29570. (fname, ftype, fid) = iprot.readFieldBegin()
  29571. if ftype == TType.STOP:
  29572. break
  29573. if fid == 1:
  29574. if ftype == TType.STRUCT:
  29575. self.o1 = NoSuchLockException()
  29576. self.o1.read(iprot)
  29577. else:
  29578. iprot.skip(ftype)
  29579. elif fid == 2:
  29580. if ftype == TType.STRUCT:
  29581. self.o2 = TxnOpenException()
  29582. self.o2.read(iprot)
  29583. else:
  29584. iprot.skip(ftype)
  29585. else:
  29586. iprot.skip(ftype)
  29587. iprot.readFieldEnd()
  29588. iprot.readStructEnd()
  29589. def write(self, oprot):
  29590. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29591. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29592. return
  29593. oprot.writeStructBegin('unlock_result')
  29594. if self.o1 is not None:
  29595. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  29596. self.o1.write(oprot)
  29597. oprot.writeFieldEnd()
  29598. if self.o2 is not None:
  29599. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  29600. self.o2.write(oprot)
  29601. oprot.writeFieldEnd()
  29602. oprot.writeFieldStop()
  29603. oprot.writeStructEnd()
  29604. def validate(self):
  29605. return
  29606. def __repr__(self):
  29607. L = ['%s=%r' % (key, value)
  29608. for key, value in self.__dict__.items()]
  29609. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29610. def __eq__(self, other):
  29611. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29612. def __ne__(self, other):
  29613. return not (self == other)
  29614. all_structs.append(unlock_result)
  29615. unlock_result.thrift_spec = (
  29616. None, # 0
  29617. (1, TType.STRUCT, 'o1', [NoSuchLockException, None], None, ), # 1
  29618. (2, TType.STRUCT, 'o2', [TxnOpenException, None], None, ), # 2
  29619. )
  29620. class show_locks_args(object):
  29621. """
  29622. Attributes:
  29623. - rqst
  29624. """
  29625. def __init__(self, rqst=None,):
  29626. self.rqst = rqst
  29627. def read(self, iprot):
  29628. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29629. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29630. return
  29631. iprot.readStructBegin()
  29632. while True:
  29633. (fname, ftype, fid) = iprot.readFieldBegin()
  29634. if ftype == TType.STOP:
  29635. break
  29636. if fid == 1:
  29637. if ftype == TType.STRUCT:
  29638. self.rqst = ShowLocksRequest()
  29639. self.rqst.read(iprot)
  29640. else:
  29641. iprot.skip(ftype)
  29642. else:
  29643. iprot.skip(ftype)
  29644. iprot.readFieldEnd()
  29645. iprot.readStructEnd()
  29646. def write(self, oprot):
  29647. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29648. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29649. return
  29650. oprot.writeStructBegin('show_locks_args')
  29651. if self.rqst is not None:
  29652. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29653. self.rqst.write(oprot)
  29654. oprot.writeFieldEnd()
  29655. oprot.writeFieldStop()
  29656. oprot.writeStructEnd()
  29657. def validate(self):
  29658. return
  29659. def __repr__(self):
  29660. L = ['%s=%r' % (key, value)
  29661. for key, value in self.__dict__.items()]
  29662. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29663. def __eq__(self, other):
  29664. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29665. def __ne__(self, other):
  29666. return not (self == other)
  29667. all_structs.append(show_locks_args)
  29668. show_locks_args.thrift_spec = (
  29669. None, # 0
  29670. (1, TType.STRUCT, 'rqst', [ShowLocksRequest, None], None, ), # 1
  29671. )
  29672. class show_locks_result(object):
  29673. """
  29674. Attributes:
  29675. - success
  29676. """
  29677. def __init__(self, success=None,):
  29678. self.success = success
  29679. def read(self, iprot):
  29680. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29681. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29682. return
  29683. iprot.readStructBegin()
  29684. while True:
  29685. (fname, ftype, fid) = iprot.readFieldBegin()
  29686. if ftype == TType.STOP:
  29687. break
  29688. if fid == 0:
  29689. if ftype == TType.STRUCT:
  29690. self.success = ShowLocksResponse()
  29691. self.success.read(iprot)
  29692. else:
  29693. iprot.skip(ftype)
  29694. else:
  29695. iprot.skip(ftype)
  29696. iprot.readFieldEnd()
  29697. iprot.readStructEnd()
  29698. def write(self, oprot):
  29699. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29700. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29701. return
  29702. oprot.writeStructBegin('show_locks_result')
  29703. if self.success is not None:
  29704. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  29705. self.success.write(oprot)
  29706. oprot.writeFieldEnd()
  29707. oprot.writeFieldStop()
  29708. oprot.writeStructEnd()
  29709. def validate(self):
  29710. return
  29711. def __repr__(self):
  29712. L = ['%s=%r' % (key, value)
  29713. for key, value in self.__dict__.items()]
  29714. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29715. def __eq__(self, other):
  29716. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29717. def __ne__(self, other):
  29718. return not (self == other)
  29719. all_structs.append(show_locks_result)
  29720. show_locks_result.thrift_spec = (
  29721. (0, TType.STRUCT, 'success', [ShowLocksResponse, None], None, ), # 0
  29722. )
  29723. class heartbeat_args(object):
  29724. """
  29725. Attributes:
  29726. - ids
  29727. """
  29728. def __init__(self, ids=None,):
  29729. self.ids = ids
  29730. def read(self, iprot):
  29731. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29732. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29733. return
  29734. iprot.readStructBegin()
  29735. while True:
  29736. (fname, ftype, fid) = iprot.readFieldBegin()
  29737. if ftype == TType.STOP:
  29738. break
  29739. if fid == 1:
  29740. if ftype == TType.STRUCT:
  29741. self.ids = HeartbeatRequest()
  29742. self.ids.read(iprot)
  29743. else:
  29744. iprot.skip(ftype)
  29745. else:
  29746. iprot.skip(ftype)
  29747. iprot.readFieldEnd()
  29748. iprot.readStructEnd()
  29749. def write(self, oprot):
  29750. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29751. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29752. return
  29753. oprot.writeStructBegin('heartbeat_args')
  29754. if self.ids is not None:
  29755. oprot.writeFieldBegin('ids', TType.STRUCT, 1)
  29756. self.ids.write(oprot)
  29757. oprot.writeFieldEnd()
  29758. oprot.writeFieldStop()
  29759. oprot.writeStructEnd()
  29760. def validate(self):
  29761. return
  29762. def __repr__(self):
  29763. L = ['%s=%r' % (key, value)
  29764. for key, value in self.__dict__.items()]
  29765. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29766. def __eq__(self, other):
  29767. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29768. def __ne__(self, other):
  29769. return not (self == other)
  29770. all_structs.append(heartbeat_args)
  29771. heartbeat_args.thrift_spec = (
  29772. None, # 0
  29773. (1, TType.STRUCT, 'ids', [HeartbeatRequest, None], None, ), # 1
  29774. )
  29775. class heartbeat_result(object):
  29776. """
  29777. Attributes:
  29778. - o1
  29779. - o2
  29780. - o3
  29781. """
  29782. def __init__(self, o1=None, o2=None, o3=None,):
  29783. self.o1 = o1
  29784. self.o2 = o2
  29785. self.o3 = o3
  29786. def read(self, iprot):
  29787. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29788. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29789. return
  29790. iprot.readStructBegin()
  29791. while True:
  29792. (fname, ftype, fid) = iprot.readFieldBegin()
  29793. if ftype == TType.STOP:
  29794. break
  29795. if fid == 1:
  29796. if ftype == TType.STRUCT:
  29797. self.o1 = NoSuchLockException()
  29798. self.o1.read(iprot)
  29799. else:
  29800. iprot.skip(ftype)
  29801. elif fid == 2:
  29802. if ftype == TType.STRUCT:
  29803. self.o2 = NoSuchTxnException()
  29804. self.o2.read(iprot)
  29805. else:
  29806. iprot.skip(ftype)
  29807. elif fid == 3:
  29808. if ftype == TType.STRUCT:
  29809. self.o3 = TxnAbortedException()
  29810. self.o3.read(iprot)
  29811. else:
  29812. iprot.skip(ftype)
  29813. else:
  29814. iprot.skip(ftype)
  29815. iprot.readFieldEnd()
  29816. iprot.readStructEnd()
  29817. def write(self, oprot):
  29818. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29819. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29820. return
  29821. oprot.writeStructBegin('heartbeat_result')
  29822. if self.o1 is not None:
  29823. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  29824. self.o1.write(oprot)
  29825. oprot.writeFieldEnd()
  29826. if self.o2 is not None:
  29827. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  29828. self.o2.write(oprot)
  29829. oprot.writeFieldEnd()
  29830. if self.o3 is not None:
  29831. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  29832. self.o3.write(oprot)
  29833. oprot.writeFieldEnd()
  29834. oprot.writeFieldStop()
  29835. oprot.writeStructEnd()
  29836. def validate(self):
  29837. return
  29838. def __repr__(self):
  29839. L = ['%s=%r' % (key, value)
  29840. for key, value in self.__dict__.items()]
  29841. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29842. def __eq__(self, other):
  29843. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29844. def __ne__(self, other):
  29845. return not (self == other)
  29846. all_structs.append(heartbeat_result)
  29847. heartbeat_result.thrift_spec = (
  29848. None, # 0
  29849. (1, TType.STRUCT, 'o1', [NoSuchLockException, None], None, ), # 1
  29850. (2, TType.STRUCT, 'o2', [NoSuchTxnException, None], None, ), # 2
  29851. (3, TType.STRUCT, 'o3', [TxnAbortedException, None], None, ), # 3
  29852. )
  29853. class heartbeat_txn_range_args(object):
  29854. """
  29855. Attributes:
  29856. - txns
  29857. """
  29858. def __init__(self, txns=None,):
  29859. self.txns = txns
  29860. def read(self, iprot):
  29861. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29862. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29863. return
  29864. iprot.readStructBegin()
  29865. while True:
  29866. (fname, ftype, fid) = iprot.readFieldBegin()
  29867. if ftype == TType.STOP:
  29868. break
  29869. if fid == 1:
  29870. if ftype == TType.STRUCT:
  29871. self.txns = HeartbeatTxnRangeRequest()
  29872. self.txns.read(iprot)
  29873. else:
  29874. iprot.skip(ftype)
  29875. else:
  29876. iprot.skip(ftype)
  29877. iprot.readFieldEnd()
  29878. iprot.readStructEnd()
  29879. def write(self, oprot):
  29880. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29881. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29882. return
  29883. oprot.writeStructBegin('heartbeat_txn_range_args')
  29884. if self.txns is not None:
  29885. oprot.writeFieldBegin('txns', TType.STRUCT, 1)
  29886. self.txns.write(oprot)
  29887. oprot.writeFieldEnd()
  29888. oprot.writeFieldStop()
  29889. oprot.writeStructEnd()
  29890. def validate(self):
  29891. return
  29892. def __repr__(self):
  29893. L = ['%s=%r' % (key, value)
  29894. for key, value in self.__dict__.items()]
  29895. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29896. def __eq__(self, other):
  29897. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29898. def __ne__(self, other):
  29899. return not (self == other)
  29900. all_structs.append(heartbeat_txn_range_args)
  29901. heartbeat_txn_range_args.thrift_spec = (
  29902. None, # 0
  29903. (1, TType.STRUCT, 'txns', [HeartbeatTxnRangeRequest, None], None, ), # 1
  29904. )
  29905. class heartbeat_txn_range_result(object):
  29906. """
  29907. Attributes:
  29908. - success
  29909. """
  29910. def __init__(self, success=None,):
  29911. self.success = success
  29912. def read(self, iprot):
  29913. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29914. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29915. return
  29916. iprot.readStructBegin()
  29917. while True:
  29918. (fname, ftype, fid) = iprot.readFieldBegin()
  29919. if ftype == TType.STOP:
  29920. break
  29921. if fid == 0:
  29922. if ftype == TType.STRUCT:
  29923. self.success = HeartbeatTxnRangeResponse()
  29924. self.success.read(iprot)
  29925. else:
  29926. iprot.skip(ftype)
  29927. else:
  29928. iprot.skip(ftype)
  29929. iprot.readFieldEnd()
  29930. iprot.readStructEnd()
  29931. def write(self, oprot):
  29932. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29933. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29934. return
  29935. oprot.writeStructBegin('heartbeat_txn_range_result')
  29936. if self.success is not None:
  29937. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  29938. self.success.write(oprot)
  29939. oprot.writeFieldEnd()
  29940. oprot.writeFieldStop()
  29941. oprot.writeStructEnd()
  29942. def validate(self):
  29943. return
  29944. def __repr__(self):
  29945. L = ['%s=%r' % (key, value)
  29946. for key, value in self.__dict__.items()]
  29947. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29948. def __eq__(self, other):
  29949. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  29950. def __ne__(self, other):
  29951. return not (self == other)
  29952. all_structs.append(heartbeat_txn_range_result)
  29953. heartbeat_txn_range_result.thrift_spec = (
  29954. (0, TType.STRUCT, 'success', [HeartbeatTxnRangeResponse, None], None, ), # 0
  29955. )
  29956. class compact_args(object):
  29957. """
  29958. Attributes:
  29959. - rqst
  29960. """
  29961. def __init__(self, rqst=None,):
  29962. self.rqst = rqst
  29963. def read(self, iprot):
  29964. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  29965. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  29966. return
  29967. iprot.readStructBegin()
  29968. while True:
  29969. (fname, ftype, fid) = iprot.readFieldBegin()
  29970. if ftype == TType.STOP:
  29971. break
  29972. if fid == 1:
  29973. if ftype == TType.STRUCT:
  29974. self.rqst = CompactionRequest()
  29975. self.rqst.read(iprot)
  29976. else:
  29977. iprot.skip(ftype)
  29978. else:
  29979. iprot.skip(ftype)
  29980. iprot.readFieldEnd()
  29981. iprot.readStructEnd()
  29982. def write(self, oprot):
  29983. if oprot._fast_encode is not None and self.thrift_spec is not None:
  29984. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  29985. return
  29986. oprot.writeStructBegin('compact_args')
  29987. if self.rqst is not None:
  29988. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  29989. self.rqst.write(oprot)
  29990. oprot.writeFieldEnd()
  29991. oprot.writeFieldStop()
  29992. oprot.writeStructEnd()
  29993. def validate(self):
  29994. return
  29995. def __repr__(self):
  29996. L = ['%s=%r' % (key, value)
  29997. for key, value in self.__dict__.items()]
  29998. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  29999. def __eq__(self, other):
  30000. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30001. def __ne__(self, other):
  30002. return not (self == other)
  30003. all_structs.append(compact_args)
  30004. compact_args.thrift_spec = (
  30005. None, # 0
  30006. (1, TType.STRUCT, 'rqst', [CompactionRequest, None], None, ), # 1
  30007. )
  30008. class compact_result(object):
  30009. def read(self, iprot):
  30010. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30011. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30012. return
  30013. iprot.readStructBegin()
  30014. while True:
  30015. (fname, ftype, fid) = iprot.readFieldBegin()
  30016. if ftype == TType.STOP:
  30017. break
  30018. else:
  30019. iprot.skip(ftype)
  30020. iprot.readFieldEnd()
  30021. iprot.readStructEnd()
  30022. def write(self, oprot):
  30023. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30024. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30025. return
  30026. oprot.writeStructBegin('compact_result')
  30027. oprot.writeFieldStop()
  30028. oprot.writeStructEnd()
  30029. def validate(self):
  30030. return
  30031. def __repr__(self):
  30032. L = ['%s=%r' % (key, value)
  30033. for key, value in self.__dict__.items()]
  30034. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30035. def __eq__(self, other):
  30036. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30037. def __ne__(self, other):
  30038. return not (self == other)
  30039. all_structs.append(compact_result)
  30040. compact_result.thrift_spec = (
  30041. )
  30042. class show_compact_args(object):
  30043. """
  30044. Attributes:
  30045. - rqst
  30046. """
  30047. def __init__(self, rqst=None,):
  30048. self.rqst = rqst
  30049. def read(self, iprot):
  30050. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30051. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30052. return
  30053. iprot.readStructBegin()
  30054. while True:
  30055. (fname, ftype, fid) = iprot.readFieldBegin()
  30056. if ftype == TType.STOP:
  30057. break
  30058. if fid == 1:
  30059. if ftype == TType.STRUCT:
  30060. self.rqst = ShowCompactRequest()
  30061. self.rqst.read(iprot)
  30062. else:
  30063. iprot.skip(ftype)
  30064. else:
  30065. iprot.skip(ftype)
  30066. iprot.readFieldEnd()
  30067. iprot.readStructEnd()
  30068. def write(self, oprot):
  30069. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30070. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30071. return
  30072. oprot.writeStructBegin('show_compact_args')
  30073. if self.rqst is not None:
  30074. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  30075. self.rqst.write(oprot)
  30076. oprot.writeFieldEnd()
  30077. oprot.writeFieldStop()
  30078. oprot.writeStructEnd()
  30079. def validate(self):
  30080. return
  30081. def __repr__(self):
  30082. L = ['%s=%r' % (key, value)
  30083. for key, value in self.__dict__.items()]
  30084. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30085. def __eq__(self, other):
  30086. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30087. def __ne__(self, other):
  30088. return not (self == other)
  30089. all_structs.append(show_compact_args)
  30090. show_compact_args.thrift_spec = (
  30091. None, # 0
  30092. (1, TType.STRUCT, 'rqst', [ShowCompactRequest, None], None, ), # 1
  30093. )
  30094. class show_compact_result(object):
  30095. """
  30096. Attributes:
  30097. - success
  30098. """
  30099. def __init__(self, success=None,):
  30100. self.success = success
  30101. def read(self, iprot):
  30102. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30103. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30104. return
  30105. iprot.readStructBegin()
  30106. while True:
  30107. (fname, ftype, fid) = iprot.readFieldBegin()
  30108. if ftype == TType.STOP:
  30109. break
  30110. if fid == 0:
  30111. if ftype == TType.STRUCT:
  30112. self.success = ShowCompactResponse()
  30113. self.success.read(iprot)
  30114. else:
  30115. iprot.skip(ftype)
  30116. else:
  30117. iprot.skip(ftype)
  30118. iprot.readFieldEnd()
  30119. iprot.readStructEnd()
  30120. def write(self, oprot):
  30121. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30122. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30123. return
  30124. oprot.writeStructBegin('show_compact_result')
  30125. if self.success is not None:
  30126. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  30127. self.success.write(oprot)
  30128. oprot.writeFieldEnd()
  30129. oprot.writeFieldStop()
  30130. oprot.writeStructEnd()
  30131. def validate(self):
  30132. return
  30133. def __repr__(self):
  30134. L = ['%s=%r' % (key, value)
  30135. for key, value in self.__dict__.items()]
  30136. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30137. def __eq__(self, other):
  30138. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30139. def __ne__(self, other):
  30140. return not (self == other)
  30141. all_structs.append(show_compact_result)
  30142. show_compact_result.thrift_spec = (
  30143. (0, TType.STRUCT, 'success', [ShowCompactResponse, None], None, ), # 0
  30144. )
  30145. class add_dynamic_partitions_args(object):
  30146. """
  30147. Attributes:
  30148. - rqst
  30149. """
  30150. def __init__(self, rqst=None,):
  30151. self.rqst = rqst
  30152. def read(self, iprot):
  30153. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30154. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30155. return
  30156. iprot.readStructBegin()
  30157. while True:
  30158. (fname, ftype, fid) = iprot.readFieldBegin()
  30159. if ftype == TType.STOP:
  30160. break
  30161. if fid == 1:
  30162. if ftype == TType.STRUCT:
  30163. self.rqst = AddDynamicPartitions()
  30164. self.rqst.read(iprot)
  30165. else:
  30166. iprot.skip(ftype)
  30167. else:
  30168. iprot.skip(ftype)
  30169. iprot.readFieldEnd()
  30170. iprot.readStructEnd()
  30171. def write(self, oprot):
  30172. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30173. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30174. return
  30175. oprot.writeStructBegin('add_dynamic_partitions_args')
  30176. if self.rqst is not None:
  30177. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  30178. self.rqst.write(oprot)
  30179. oprot.writeFieldEnd()
  30180. oprot.writeFieldStop()
  30181. oprot.writeStructEnd()
  30182. def validate(self):
  30183. return
  30184. def __repr__(self):
  30185. L = ['%s=%r' % (key, value)
  30186. for key, value in self.__dict__.items()]
  30187. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30188. def __eq__(self, other):
  30189. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30190. def __ne__(self, other):
  30191. return not (self == other)
  30192. all_structs.append(add_dynamic_partitions_args)
  30193. add_dynamic_partitions_args.thrift_spec = (
  30194. None, # 0
  30195. (1, TType.STRUCT, 'rqst', [AddDynamicPartitions, None], None, ), # 1
  30196. )
  30197. class add_dynamic_partitions_result(object):
  30198. """
  30199. Attributes:
  30200. - o1
  30201. - o2
  30202. """
  30203. def __init__(self, o1=None, o2=None,):
  30204. self.o1 = o1
  30205. self.o2 = o2
  30206. def read(self, iprot):
  30207. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30208. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30209. return
  30210. iprot.readStructBegin()
  30211. while True:
  30212. (fname, ftype, fid) = iprot.readFieldBegin()
  30213. if ftype == TType.STOP:
  30214. break
  30215. if fid == 1:
  30216. if ftype == TType.STRUCT:
  30217. self.o1 = NoSuchTxnException()
  30218. self.o1.read(iprot)
  30219. else:
  30220. iprot.skip(ftype)
  30221. elif fid == 2:
  30222. if ftype == TType.STRUCT:
  30223. self.o2 = TxnAbortedException()
  30224. self.o2.read(iprot)
  30225. else:
  30226. iprot.skip(ftype)
  30227. else:
  30228. iprot.skip(ftype)
  30229. iprot.readFieldEnd()
  30230. iprot.readStructEnd()
  30231. def write(self, oprot):
  30232. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30233. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30234. return
  30235. oprot.writeStructBegin('add_dynamic_partitions_result')
  30236. if self.o1 is not None:
  30237. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  30238. self.o1.write(oprot)
  30239. oprot.writeFieldEnd()
  30240. if self.o2 is not None:
  30241. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  30242. self.o2.write(oprot)
  30243. oprot.writeFieldEnd()
  30244. oprot.writeFieldStop()
  30245. oprot.writeStructEnd()
  30246. def validate(self):
  30247. return
  30248. def __repr__(self):
  30249. L = ['%s=%r' % (key, value)
  30250. for key, value in self.__dict__.items()]
  30251. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30252. def __eq__(self, other):
  30253. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30254. def __ne__(self, other):
  30255. return not (self == other)
  30256. all_structs.append(add_dynamic_partitions_result)
  30257. add_dynamic_partitions_result.thrift_spec = (
  30258. None, # 0
  30259. (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1
  30260. (2, TType.STRUCT, 'o2', [TxnAbortedException, None], None, ), # 2
  30261. )
  30262. class get_next_notification_args(object):
  30263. """
  30264. Attributes:
  30265. - rqst
  30266. """
  30267. def __init__(self, rqst=None,):
  30268. self.rqst = rqst
  30269. def read(self, iprot):
  30270. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30271. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30272. return
  30273. iprot.readStructBegin()
  30274. while True:
  30275. (fname, ftype, fid) = iprot.readFieldBegin()
  30276. if ftype == TType.STOP:
  30277. break
  30278. if fid == 1:
  30279. if ftype == TType.STRUCT:
  30280. self.rqst = NotificationEventRequest()
  30281. self.rqst.read(iprot)
  30282. else:
  30283. iprot.skip(ftype)
  30284. else:
  30285. iprot.skip(ftype)
  30286. iprot.readFieldEnd()
  30287. iprot.readStructEnd()
  30288. def write(self, oprot):
  30289. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30290. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30291. return
  30292. oprot.writeStructBegin('get_next_notification_args')
  30293. if self.rqst is not None:
  30294. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  30295. self.rqst.write(oprot)
  30296. oprot.writeFieldEnd()
  30297. oprot.writeFieldStop()
  30298. oprot.writeStructEnd()
  30299. def validate(self):
  30300. return
  30301. def __repr__(self):
  30302. L = ['%s=%r' % (key, value)
  30303. for key, value in self.__dict__.items()]
  30304. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30305. def __eq__(self, other):
  30306. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30307. def __ne__(self, other):
  30308. return not (self == other)
  30309. all_structs.append(get_next_notification_args)
  30310. get_next_notification_args.thrift_spec = (
  30311. None, # 0
  30312. (1, TType.STRUCT, 'rqst', [NotificationEventRequest, None], None, ), # 1
  30313. )
  30314. class get_next_notification_result(object):
  30315. """
  30316. Attributes:
  30317. - success
  30318. """
  30319. def __init__(self, success=None,):
  30320. self.success = success
  30321. def read(self, iprot):
  30322. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30323. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30324. return
  30325. iprot.readStructBegin()
  30326. while True:
  30327. (fname, ftype, fid) = iprot.readFieldBegin()
  30328. if ftype == TType.STOP:
  30329. break
  30330. if fid == 0:
  30331. if ftype == TType.STRUCT:
  30332. self.success = NotificationEventResponse()
  30333. self.success.read(iprot)
  30334. else:
  30335. iprot.skip(ftype)
  30336. else:
  30337. iprot.skip(ftype)
  30338. iprot.readFieldEnd()
  30339. iprot.readStructEnd()
  30340. def write(self, oprot):
  30341. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30342. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30343. return
  30344. oprot.writeStructBegin('get_next_notification_result')
  30345. if self.success is not None:
  30346. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  30347. self.success.write(oprot)
  30348. oprot.writeFieldEnd()
  30349. oprot.writeFieldStop()
  30350. oprot.writeStructEnd()
  30351. def validate(self):
  30352. return
  30353. def __repr__(self):
  30354. L = ['%s=%r' % (key, value)
  30355. for key, value in self.__dict__.items()]
  30356. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30357. def __eq__(self, other):
  30358. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30359. def __ne__(self, other):
  30360. return not (self == other)
  30361. all_structs.append(get_next_notification_result)
  30362. get_next_notification_result.thrift_spec = (
  30363. (0, TType.STRUCT, 'success', [NotificationEventResponse, None], None, ), # 0
  30364. )
  30365. class get_current_notificationEventId_args(object):
  30366. def read(self, iprot):
  30367. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30368. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30369. return
  30370. iprot.readStructBegin()
  30371. while True:
  30372. (fname, ftype, fid) = iprot.readFieldBegin()
  30373. if ftype == TType.STOP:
  30374. break
  30375. else:
  30376. iprot.skip(ftype)
  30377. iprot.readFieldEnd()
  30378. iprot.readStructEnd()
  30379. def write(self, oprot):
  30380. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30381. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30382. return
  30383. oprot.writeStructBegin('get_current_notificationEventId_args')
  30384. oprot.writeFieldStop()
  30385. oprot.writeStructEnd()
  30386. def validate(self):
  30387. return
  30388. def __repr__(self):
  30389. L = ['%s=%r' % (key, value)
  30390. for key, value in self.__dict__.items()]
  30391. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30392. def __eq__(self, other):
  30393. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30394. def __ne__(self, other):
  30395. return not (self == other)
  30396. all_structs.append(get_current_notificationEventId_args)
  30397. get_current_notificationEventId_args.thrift_spec = (
  30398. )
  30399. class get_current_notificationEventId_result(object):
  30400. """
  30401. Attributes:
  30402. - success
  30403. """
  30404. def __init__(self, success=None,):
  30405. self.success = success
  30406. def read(self, iprot):
  30407. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30408. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30409. return
  30410. iprot.readStructBegin()
  30411. while True:
  30412. (fname, ftype, fid) = iprot.readFieldBegin()
  30413. if ftype == TType.STOP:
  30414. break
  30415. if fid == 0:
  30416. if ftype == TType.STRUCT:
  30417. self.success = CurrentNotificationEventId()
  30418. self.success.read(iprot)
  30419. else:
  30420. iprot.skip(ftype)
  30421. else:
  30422. iprot.skip(ftype)
  30423. iprot.readFieldEnd()
  30424. iprot.readStructEnd()
  30425. def write(self, oprot):
  30426. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30427. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30428. return
  30429. oprot.writeStructBegin('get_current_notificationEventId_result')
  30430. if self.success is not None:
  30431. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  30432. self.success.write(oprot)
  30433. oprot.writeFieldEnd()
  30434. oprot.writeFieldStop()
  30435. oprot.writeStructEnd()
  30436. def validate(self):
  30437. return
  30438. def __repr__(self):
  30439. L = ['%s=%r' % (key, value)
  30440. for key, value in self.__dict__.items()]
  30441. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30442. def __eq__(self, other):
  30443. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30444. def __ne__(self, other):
  30445. return not (self == other)
  30446. all_structs.append(get_current_notificationEventId_result)
  30447. get_current_notificationEventId_result.thrift_spec = (
  30448. (0, TType.STRUCT, 'success', [CurrentNotificationEventId, None], None, ), # 0
  30449. )
  30450. class fire_listener_event_args(object):
  30451. """
  30452. Attributes:
  30453. - rqst
  30454. """
  30455. def __init__(self, rqst=None,):
  30456. self.rqst = rqst
  30457. def read(self, iprot):
  30458. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30459. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30460. return
  30461. iprot.readStructBegin()
  30462. while True:
  30463. (fname, ftype, fid) = iprot.readFieldBegin()
  30464. if ftype == TType.STOP:
  30465. break
  30466. if fid == 1:
  30467. if ftype == TType.STRUCT:
  30468. self.rqst = FireEventRequest()
  30469. self.rqst.read(iprot)
  30470. else:
  30471. iprot.skip(ftype)
  30472. else:
  30473. iprot.skip(ftype)
  30474. iprot.readFieldEnd()
  30475. iprot.readStructEnd()
  30476. def write(self, oprot):
  30477. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30478. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30479. return
  30480. oprot.writeStructBegin('fire_listener_event_args')
  30481. if self.rqst is not None:
  30482. oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
  30483. self.rqst.write(oprot)
  30484. oprot.writeFieldEnd()
  30485. oprot.writeFieldStop()
  30486. oprot.writeStructEnd()
  30487. def validate(self):
  30488. return
  30489. def __repr__(self):
  30490. L = ['%s=%r' % (key, value)
  30491. for key, value in self.__dict__.items()]
  30492. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30493. def __eq__(self, other):
  30494. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30495. def __ne__(self, other):
  30496. return not (self == other)
  30497. all_structs.append(fire_listener_event_args)
  30498. fire_listener_event_args.thrift_spec = (
  30499. None, # 0
  30500. (1, TType.STRUCT, 'rqst', [FireEventRequest, None], None, ), # 1
  30501. )
  30502. class fire_listener_event_result(object):
  30503. """
  30504. Attributes:
  30505. - success
  30506. """
  30507. def __init__(self, success=None,):
  30508. self.success = success
  30509. def read(self, iprot):
  30510. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30511. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30512. return
  30513. iprot.readStructBegin()
  30514. while True:
  30515. (fname, ftype, fid) = iprot.readFieldBegin()
  30516. if ftype == TType.STOP:
  30517. break
  30518. if fid == 0:
  30519. if ftype == TType.STRUCT:
  30520. self.success = FireEventResponse()
  30521. self.success.read(iprot)
  30522. else:
  30523. iprot.skip(ftype)
  30524. else:
  30525. iprot.skip(ftype)
  30526. iprot.readFieldEnd()
  30527. iprot.readStructEnd()
  30528. def write(self, oprot):
  30529. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30530. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30531. return
  30532. oprot.writeStructBegin('fire_listener_event_result')
  30533. if self.success is not None:
  30534. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  30535. self.success.write(oprot)
  30536. oprot.writeFieldEnd()
  30537. oprot.writeFieldStop()
  30538. oprot.writeStructEnd()
  30539. def validate(self):
  30540. return
  30541. def __repr__(self):
  30542. L = ['%s=%r' % (key, value)
  30543. for key, value in self.__dict__.items()]
  30544. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30545. def __eq__(self, other):
  30546. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30547. def __ne__(self, other):
  30548. return not (self == other)
  30549. all_structs.append(fire_listener_event_result)
  30550. fire_listener_event_result.thrift_spec = (
  30551. (0, TType.STRUCT, 'success', [FireEventResponse, None], None, ), # 0
  30552. )
  30553. class flushCache_args(object):
  30554. def read(self, iprot):
  30555. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30556. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30557. return
  30558. iprot.readStructBegin()
  30559. while True:
  30560. (fname, ftype, fid) = iprot.readFieldBegin()
  30561. if ftype == TType.STOP:
  30562. break
  30563. else:
  30564. iprot.skip(ftype)
  30565. iprot.readFieldEnd()
  30566. iprot.readStructEnd()
  30567. def write(self, oprot):
  30568. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30569. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30570. return
  30571. oprot.writeStructBegin('flushCache_args')
  30572. oprot.writeFieldStop()
  30573. oprot.writeStructEnd()
  30574. def validate(self):
  30575. return
  30576. def __repr__(self):
  30577. L = ['%s=%r' % (key, value)
  30578. for key, value in self.__dict__.items()]
  30579. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30580. def __eq__(self, other):
  30581. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30582. def __ne__(self, other):
  30583. return not (self == other)
  30584. all_structs.append(flushCache_args)
  30585. flushCache_args.thrift_spec = (
  30586. )
  30587. class flushCache_result(object):
  30588. def read(self, iprot):
  30589. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30590. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30591. return
  30592. iprot.readStructBegin()
  30593. while True:
  30594. (fname, ftype, fid) = iprot.readFieldBegin()
  30595. if ftype == TType.STOP:
  30596. break
  30597. else:
  30598. iprot.skip(ftype)
  30599. iprot.readFieldEnd()
  30600. iprot.readStructEnd()
  30601. def write(self, oprot):
  30602. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30603. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30604. return
  30605. oprot.writeStructBegin('flushCache_result')
  30606. oprot.writeFieldStop()
  30607. oprot.writeStructEnd()
  30608. def validate(self):
  30609. return
  30610. def __repr__(self):
  30611. L = ['%s=%r' % (key, value)
  30612. for key, value in self.__dict__.items()]
  30613. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30614. def __eq__(self, other):
  30615. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30616. def __ne__(self, other):
  30617. return not (self == other)
  30618. all_structs.append(flushCache_result)
  30619. flushCache_result.thrift_spec = (
  30620. )
  30621. class get_file_metadata_by_expr_args(object):
  30622. """
  30623. Attributes:
  30624. - req
  30625. """
  30626. def __init__(self, req=None,):
  30627. self.req = req
  30628. def read(self, iprot):
  30629. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30630. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30631. return
  30632. iprot.readStructBegin()
  30633. while True:
  30634. (fname, ftype, fid) = iprot.readFieldBegin()
  30635. if ftype == TType.STOP:
  30636. break
  30637. if fid == 1:
  30638. if ftype == TType.STRUCT:
  30639. self.req = GetFileMetadataByExprRequest()
  30640. self.req.read(iprot)
  30641. else:
  30642. iprot.skip(ftype)
  30643. else:
  30644. iprot.skip(ftype)
  30645. iprot.readFieldEnd()
  30646. iprot.readStructEnd()
  30647. def write(self, oprot):
  30648. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30649. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30650. return
  30651. oprot.writeStructBegin('get_file_metadata_by_expr_args')
  30652. if self.req is not None:
  30653. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  30654. self.req.write(oprot)
  30655. oprot.writeFieldEnd()
  30656. oprot.writeFieldStop()
  30657. oprot.writeStructEnd()
  30658. def validate(self):
  30659. return
  30660. def __repr__(self):
  30661. L = ['%s=%r' % (key, value)
  30662. for key, value in self.__dict__.items()]
  30663. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30664. def __eq__(self, other):
  30665. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30666. def __ne__(self, other):
  30667. return not (self == other)
  30668. all_structs.append(get_file_metadata_by_expr_args)
  30669. get_file_metadata_by_expr_args.thrift_spec = (
  30670. None, # 0
  30671. (1, TType.STRUCT, 'req', [GetFileMetadataByExprRequest, None], None, ), # 1
  30672. )
  30673. class get_file_metadata_by_expr_result(object):
  30674. """
  30675. Attributes:
  30676. - success
  30677. """
  30678. def __init__(self, success=None,):
  30679. self.success = success
  30680. def read(self, iprot):
  30681. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30682. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30683. return
  30684. iprot.readStructBegin()
  30685. while True:
  30686. (fname, ftype, fid) = iprot.readFieldBegin()
  30687. if ftype == TType.STOP:
  30688. break
  30689. if fid == 0:
  30690. if ftype == TType.STRUCT:
  30691. self.success = GetFileMetadataByExprResult()
  30692. self.success.read(iprot)
  30693. else:
  30694. iprot.skip(ftype)
  30695. else:
  30696. iprot.skip(ftype)
  30697. iprot.readFieldEnd()
  30698. iprot.readStructEnd()
  30699. def write(self, oprot):
  30700. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30701. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30702. return
  30703. oprot.writeStructBegin('get_file_metadata_by_expr_result')
  30704. if self.success is not None:
  30705. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  30706. self.success.write(oprot)
  30707. oprot.writeFieldEnd()
  30708. oprot.writeFieldStop()
  30709. oprot.writeStructEnd()
  30710. def validate(self):
  30711. return
  30712. def __repr__(self):
  30713. L = ['%s=%r' % (key, value)
  30714. for key, value in self.__dict__.items()]
  30715. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30716. def __eq__(self, other):
  30717. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30718. def __ne__(self, other):
  30719. return not (self == other)
  30720. all_structs.append(get_file_metadata_by_expr_result)
  30721. get_file_metadata_by_expr_result.thrift_spec = (
  30722. (0, TType.STRUCT, 'success', [GetFileMetadataByExprResult, None], None, ), # 0
  30723. )
  30724. class get_file_metadata_args(object):
  30725. """
  30726. Attributes:
  30727. - req
  30728. """
  30729. def __init__(self, req=None,):
  30730. self.req = req
  30731. def read(self, iprot):
  30732. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30733. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30734. return
  30735. iprot.readStructBegin()
  30736. while True:
  30737. (fname, ftype, fid) = iprot.readFieldBegin()
  30738. if ftype == TType.STOP:
  30739. break
  30740. if fid == 1:
  30741. if ftype == TType.STRUCT:
  30742. self.req = GetFileMetadataRequest()
  30743. self.req.read(iprot)
  30744. else:
  30745. iprot.skip(ftype)
  30746. else:
  30747. iprot.skip(ftype)
  30748. iprot.readFieldEnd()
  30749. iprot.readStructEnd()
  30750. def write(self, oprot):
  30751. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30752. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30753. return
  30754. oprot.writeStructBegin('get_file_metadata_args')
  30755. if self.req is not None:
  30756. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  30757. self.req.write(oprot)
  30758. oprot.writeFieldEnd()
  30759. oprot.writeFieldStop()
  30760. oprot.writeStructEnd()
  30761. def validate(self):
  30762. return
  30763. def __repr__(self):
  30764. L = ['%s=%r' % (key, value)
  30765. for key, value in self.__dict__.items()]
  30766. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30767. def __eq__(self, other):
  30768. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30769. def __ne__(self, other):
  30770. return not (self == other)
  30771. all_structs.append(get_file_metadata_args)
  30772. get_file_metadata_args.thrift_spec = (
  30773. None, # 0
  30774. (1, TType.STRUCT, 'req', [GetFileMetadataRequest, None], None, ), # 1
  30775. )
  30776. class get_file_metadata_result(object):
  30777. """
  30778. Attributes:
  30779. - success
  30780. """
  30781. def __init__(self, success=None,):
  30782. self.success = success
  30783. def read(self, iprot):
  30784. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30785. iprot._fast_decode(self, iprot, [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 == 0:
  30793. if ftype == TType.STRUCT:
  30794. self.success = GetFileMetadataResult()
  30795. self.success.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._fast_encode is not None and self.thrift_spec is not None:
  30804. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30805. return
  30806. oprot.writeStructBegin('get_file_metadata_result')
  30807. if self.success is not None:
  30808. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  30809. self.success.write(oprot)
  30810. oprot.writeFieldEnd()
  30811. oprot.writeFieldStop()
  30812. oprot.writeStructEnd()
  30813. def validate(self):
  30814. return
  30815. def __repr__(self):
  30816. L = ['%s=%r' % (key, value)
  30817. for key, value in self.__dict__.items()]
  30818. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30819. def __eq__(self, other):
  30820. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30821. def __ne__(self, other):
  30822. return not (self == other)
  30823. all_structs.append(get_file_metadata_result)
  30824. get_file_metadata_result.thrift_spec = (
  30825. (0, TType.STRUCT, 'success', [GetFileMetadataResult, None], None, ), # 0
  30826. )
  30827. class put_file_metadata_args(object):
  30828. """
  30829. Attributes:
  30830. - req
  30831. """
  30832. def __init__(self, req=None,):
  30833. self.req = req
  30834. def read(self, iprot):
  30835. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30836. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30837. return
  30838. iprot.readStructBegin()
  30839. while True:
  30840. (fname, ftype, fid) = iprot.readFieldBegin()
  30841. if ftype == TType.STOP:
  30842. break
  30843. if fid == 1:
  30844. if ftype == TType.STRUCT:
  30845. self.req = PutFileMetadataRequest()
  30846. self.req.read(iprot)
  30847. else:
  30848. iprot.skip(ftype)
  30849. else:
  30850. iprot.skip(ftype)
  30851. iprot.readFieldEnd()
  30852. iprot.readStructEnd()
  30853. def write(self, oprot):
  30854. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30855. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30856. return
  30857. oprot.writeStructBegin('put_file_metadata_args')
  30858. if self.req is not None:
  30859. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  30860. self.req.write(oprot)
  30861. oprot.writeFieldEnd()
  30862. oprot.writeFieldStop()
  30863. oprot.writeStructEnd()
  30864. def validate(self):
  30865. return
  30866. def __repr__(self):
  30867. L = ['%s=%r' % (key, value)
  30868. for key, value in self.__dict__.items()]
  30869. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30870. def __eq__(self, other):
  30871. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30872. def __ne__(self, other):
  30873. return not (self == other)
  30874. all_structs.append(put_file_metadata_args)
  30875. put_file_metadata_args.thrift_spec = (
  30876. None, # 0
  30877. (1, TType.STRUCT, 'req', [PutFileMetadataRequest, None], None, ), # 1
  30878. )
  30879. class put_file_metadata_result(object):
  30880. """
  30881. Attributes:
  30882. - success
  30883. """
  30884. def __init__(self, success=None,):
  30885. self.success = success
  30886. def read(self, iprot):
  30887. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30888. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30889. return
  30890. iprot.readStructBegin()
  30891. while True:
  30892. (fname, ftype, fid) = iprot.readFieldBegin()
  30893. if ftype == TType.STOP:
  30894. break
  30895. if fid == 0:
  30896. if ftype == TType.STRUCT:
  30897. self.success = PutFileMetadataResult()
  30898. self.success.read(iprot)
  30899. else:
  30900. iprot.skip(ftype)
  30901. else:
  30902. iprot.skip(ftype)
  30903. iprot.readFieldEnd()
  30904. iprot.readStructEnd()
  30905. def write(self, oprot):
  30906. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30907. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30908. return
  30909. oprot.writeStructBegin('put_file_metadata_result')
  30910. if self.success is not None:
  30911. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  30912. self.success.write(oprot)
  30913. oprot.writeFieldEnd()
  30914. oprot.writeFieldStop()
  30915. oprot.writeStructEnd()
  30916. def validate(self):
  30917. return
  30918. def __repr__(self):
  30919. L = ['%s=%r' % (key, value)
  30920. for key, value in self.__dict__.items()]
  30921. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30922. def __eq__(self, other):
  30923. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30924. def __ne__(self, other):
  30925. return not (self == other)
  30926. all_structs.append(put_file_metadata_result)
  30927. put_file_metadata_result.thrift_spec = (
  30928. (0, TType.STRUCT, 'success', [PutFileMetadataResult, None], None, ), # 0
  30929. )
  30930. class clear_file_metadata_args(object):
  30931. """
  30932. Attributes:
  30933. - req
  30934. """
  30935. def __init__(self, req=None,):
  30936. self.req = req
  30937. def read(self, iprot):
  30938. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30939. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30940. return
  30941. iprot.readStructBegin()
  30942. while True:
  30943. (fname, ftype, fid) = iprot.readFieldBegin()
  30944. if ftype == TType.STOP:
  30945. break
  30946. if fid == 1:
  30947. if ftype == TType.STRUCT:
  30948. self.req = ClearFileMetadataRequest()
  30949. self.req.read(iprot)
  30950. else:
  30951. iprot.skip(ftype)
  30952. else:
  30953. iprot.skip(ftype)
  30954. iprot.readFieldEnd()
  30955. iprot.readStructEnd()
  30956. def write(self, oprot):
  30957. if oprot._fast_encode is not None and self.thrift_spec is not None:
  30958. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  30959. return
  30960. oprot.writeStructBegin('clear_file_metadata_args')
  30961. if self.req is not None:
  30962. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  30963. self.req.write(oprot)
  30964. oprot.writeFieldEnd()
  30965. oprot.writeFieldStop()
  30966. oprot.writeStructEnd()
  30967. def validate(self):
  30968. return
  30969. def __repr__(self):
  30970. L = ['%s=%r' % (key, value)
  30971. for key, value in self.__dict__.items()]
  30972. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  30973. def __eq__(self, other):
  30974. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  30975. def __ne__(self, other):
  30976. return not (self == other)
  30977. all_structs.append(clear_file_metadata_args)
  30978. clear_file_metadata_args.thrift_spec = (
  30979. None, # 0
  30980. (1, TType.STRUCT, 'req', [ClearFileMetadataRequest, None], None, ), # 1
  30981. )
  30982. class clear_file_metadata_result(object):
  30983. """
  30984. Attributes:
  30985. - success
  30986. """
  30987. def __init__(self, success=None,):
  30988. self.success = success
  30989. def read(self, iprot):
  30990. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  30991. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  30992. return
  30993. iprot.readStructBegin()
  30994. while True:
  30995. (fname, ftype, fid) = iprot.readFieldBegin()
  30996. if ftype == TType.STOP:
  30997. break
  30998. if fid == 0:
  30999. if ftype == TType.STRUCT:
  31000. self.success = ClearFileMetadataResult()
  31001. self.success.read(iprot)
  31002. else:
  31003. iprot.skip(ftype)
  31004. else:
  31005. iprot.skip(ftype)
  31006. iprot.readFieldEnd()
  31007. iprot.readStructEnd()
  31008. def write(self, oprot):
  31009. if oprot._fast_encode is not None and self.thrift_spec is not None:
  31010. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  31011. return
  31012. oprot.writeStructBegin('clear_file_metadata_result')
  31013. if self.success is not None:
  31014. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  31015. self.success.write(oprot)
  31016. oprot.writeFieldEnd()
  31017. oprot.writeFieldStop()
  31018. oprot.writeStructEnd()
  31019. def validate(self):
  31020. return
  31021. def __repr__(self):
  31022. L = ['%s=%r' % (key, value)
  31023. for key, value in self.__dict__.items()]
  31024. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31025. def __eq__(self, other):
  31026. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31027. def __ne__(self, other):
  31028. return not (self == other)
  31029. all_structs.append(clear_file_metadata_result)
  31030. clear_file_metadata_result.thrift_spec = (
  31031. (0, TType.STRUCT, 'success', [ClearFileMetadataResult, None], None, ), # 0
  31032. )
  31033. class cache_file_metadata_args(object):
  31034. """
  31035. Attributes:
  31036. - req
  31037. """
  31038. def __init__(self, req=None,):
  31039. self.req = req
  31040. def read(self, iprot):
  31041. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  31042. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  31043. return
  31044. iprot.readStructBegin()
  31045. while True:
  31046. (fname, ftype, fid) = iprot.readFieldBegin()
  31047. if ftype == TType.STOP:
  31048. break
  31049. if fid == 1:
  31050. if ftype == TType.STRUCT:
  31051. self.req = CacheFileMetadataRequest()
  31052. self.req.read(iprot)
  31053. else:
  31054. iprot.skip(ftype)
  31055. else:
  31056. iprot.skip(ftype)
  31057. iprot.readFieldEnd()
  31058. iprot.readStructEnd()
  31059. def write(self, oprot):
  31060. if oprot._fast_encode is not None and self.thrift_spec is not None:
  31061. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  31062. return
  31063. oprot.writeStructBegin('cache_file_metadata_args')
  31064. if self.req is not None:
  31065. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  31066. self.req.write(oprot)
  31067. oprot.writeFieldEnd()
  31068. oprot.writeFieldStop()
  31069. oprot.writeStructEnd()
  31070. def validate(self):
  31071. return
  31072. def __repr__(self):
  31073. L = ['%s=%r' % (key, value)
  31074. for key, value in self.__dict__.items()]
  31075. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31076. def __eq__(self, other):
  31077. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31078. def __ne__(self, other):
  31079. return not (self == other)
  31080. all_structs.append(cache_file_metadata_args)
  31081. cache_file_metadata_args.thrift_spec = (
  31082. None, # 0
  31083. (1, TType.STRUCT, 'req', [CacheFileMetadataRequest, None], None, ), # 1
  31084. )
  31085. class cache_file_metadata_result(object):
  31086. """
  31087. Attributes:
  31088. - success
  31089. """
  31090. def __init__(self, success=None,):
  31091. self.success = success
  31092. def read(self, iprot):
  31093. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  31094. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  31095. return
  31096. iprot.readStructBegin()
  31097. while True:
  31098. (fname, ftype, fid) = iprot.readFieldBegin()
  31099. if ftype == TType.STOP:
  31100. break
  31101. if fid == 0:
  31102. if ftype == TType.STRUCT:
  31103. self.success = CacheFileMetadataResult()
  31104. self.success.read(iprot)
  31105. else:
  31106. iprot.skip(ftype)
  31107. else:
  31108. iprot.skip(ftype)
  31109. iprot.readFieldEnd()
  31110. iprot.readStructEnd()
  31111. def write(self, oprot):
  31112. if oprot._fast_encode is not None and self.thrift_spec is not None:
  31113. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  31114. return
  31115. oprot.writeStructBegin('cache_file_metadata_result')
  31116. if self.success is not None:
  31117. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  31118. self.success.write(oprot)
  31119. oprot.writeFieldEnd()
  31120. oprot.writeFieldStop()
  31121. oprot.writeStructEnd()
  31122. def validate(self):
  31123. return
  31124. def __repr__(self):
  31125. L = ['%s=%r' % (key, value)
  31126. for key, value in self.__dict__.items()]
  31127. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31128. def __eq__(self, other):
  31129. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31130. def __ne__(self, other):
  31131. return not (self == other)
  31132. all_structs.append(cache_file_metadata_result)
  31133. cache_file_metadata_result.thrift_spec = (
  31134. (0, TType.STRUCT, 'success', [CacheFileMetadataResult, None], None, ), # 0
  31135. )
  31136. class get_metastore_db_uuid_args(object):
  31137. def read(self, iprot):
  31138. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  31139. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  31140. return
  31141. iprot.readStructBegin()
  31142. while True:
  31143. (fname, ftype, fid) = iprot.readFieldBegin()
  31144. if ftype == TType.STOP:
  31145. break
  31146. else:
  31147. iprot.skip(ftype)
  31148. iprot.readFieldEnd()
  31149. iprot.readStructEnd()
  31150. def write(self, oprot):
  31151. if oprot._fast_encode is not None and self.thrift_spec is not None:
  31152. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  31153. return
  31154. oprot.writeStructBegin('get_metastore_db_uuid_args')
  31155. oprot.writeFieldStop()
  31156. oprot.writeStructEnd()
  31157. def validate(self):
  31158. return
  31159. def __repr__(self):
  31160. L = ['%s=%r' % (key, value)
  31161. for key, value in self.__dict__.items()]
  31162. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31163. def __eq__(self, other):
  31164. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31165. def __ne__(self, other):
  31166. return not (self == other)
  31167. all_structs.append(get_metastore_db_uuid_args)
  31168. get_metastore_db_uuid_args.thrift_spec = (
  31169. )
  31170. class get_metastore_db_uuid_result(object):
  31171. """
  31172. Attributes:
  31173. - success
  31174. - o1
  31175. """
  31176. def __init__(self, success=None, o1=None,):
  31177. self.success = success
  31178. self.o1 = o1
  31179. def read(self, iprot):
  31180. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  31181. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  31182. return
  31183. iprot.readStructBegin()
  31184. while True:
  31185. (fname, ftype, fid) = iprot.readFieldBegin()
  31186. if ftype == TType.STOP:
  31187. break
  31188. if fid == 0:
  31189. if ftype == TType.STRING:
  31190. self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
  31191. else:
  31192. iprot.skip(ftype)
  31193. elif fid == 1:
  31194. if ftype == TType.STRUCT:
  31195. self.o1 = MetaException()
  31196. self.o1.read(iprot)
  31197. else:
  31198. iprot.skip(ftype)
  31199. else:
  31200. iprot.skip(ftype)
  31201. iprot.readFieldEnd()
  31202. iprot.readStructEnd()
  31203. def write(self, oprot):
  31204. if oprot._fast_encode is not None and self.thrift_spec is not None:
  31205. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  31206. return
  31207. oprot.writeStructBegin('get_metastore_db_uuid_result')
  31208. if self.success is not None:
  31209. oprot.writeFieldBegin('success', TType.STRING, 0)
  31210. oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
  31211. oprot.writeFieldEnd()
  31212. if self.o1 is not None:
  31213. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  31214. self.o1.write(oprot)
  31215. oprot.writeFieldEnd()
  31216. oprot.writeFieldStop()
  31217. oprot.writeStructEnd()
  31218. def validate(self):
  31219. return
  31220. def __repr__(self):
  31221. L = ['%s=%r' % (key, value)
  31222. for key, value in self.__dict__.items()]
  31223. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31224. def __eq__(self, other):
  31225. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31226. def __ne__(self, other):
  31227. return not (self == other)
  31228. all_structs.append(get_metastore_db_uuid_result)
  31229. get_metastore_db_uuid_result.thrift_spec = (
  31230. (0, TType.STRING, 'success', 'UTF8', None, ), # 0
  31231. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  31232. )
  31233. class get_partitions_with_specs_args(object):
  31234. """
  31235. Attributes:
  31236. - request
  31237. """
  31238. def __init__(self, request=None,):
  31239. self.request = request
  31240. def read(self, iprot):
  31241. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  31242. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  31243. return
  31244. iprot.readStructBegin()
  31245. while True:
  31246. (fname, ftype, fid) = iprot.readFieldBegin()
  31247. if ftype == TType.STOP:
  31248. break
  31249. if fid == 1:
  31250. if ftype == TType.STRUCT:
  31251. self.request = GetPartitionsRequest()
  31252. self.request.read(iprot)
  31253. else:
  31254. iprot.skip(ftype)
  31255. else:
  31256. iprot.skip(ftype)
  31257. iprot.readFieldEnd()
  31258. iprot.readStructEnd()
  31259. def write(self, oprot):
  31260. if oprot._fast_encode is not None and self.thrift_spec is not None:
  31261. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  31262. return
  31263. oprot.writeStructBegin('get_partitions_with_specs_args')
  31264. if self.request is not None:
  31265. oprot.writeFieldBegin('request', TType.STRUCT, 1)
  31266. self.request.write(oprot)
  31267. oprot.writeFieldEnd()
  31268. oprot.writeFieldStop()
  31269. oprot.writeStructEnd()
  31270. def validate(self):
  31271. return
  31272. def __repr__(self):
  31273. L = ['%s=%r' % (key, value)
  31274. for key, value in self.__dict__.items()]
  31275. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31276. def __eq__(self, other):
  31277. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31278. def __ne__(self, other):
  31279. return not (self == other)
  31280. all_structs.append(get_partitions_with_specs_args)
  31281. get_partitions_with_specs_args.thrift_spec = (
  31282. None, # 0
  31283. (1, TType.STRUCT, 'request', [GetPartitionsRequest, None], None, ), # 1
  31284. )
  31285. class get_partitions_with_specs_result(object):
  31286. """
  31287. Attributes:
  31288. - success
  31289. - o1
  31290. """
  31291. def __init__(self, success=None, o1=None,):
  31292. self.success = success
  31293. self.o1 = o1
  31294. def read(self, iprot):
  31295. if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
  31296. iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
  31297. return
  31298. iprot.readStructBegin()
  31299. while True:
  31300. (fname, ftype, fid) = iprot.readFieldBegin()
  31301. if ftype == TType.STOP:
  31302. break
  31303. if fid == 0:
  31304. if ftype == TType.STRUCT:
  31305. self.success = GetPartitionsResponse()
  31306. self.success.read(iprot)
  31307. else:
  31308. iprot.skip(ftype)
  31309. elif fid == 1:
  31310. if ftype == TType.STRUCT:
  31311. self.o1 = MetaException()
  31312. self.o1.read(iprot)
  31313. else:
  31314. iprot.skip(ftype)
  31315. else:
  31316. iprot.skip(ftype)
  31317. iprot.readFieldEnd()
  31318. iprot.readStructEnd()
  31319. def write(self, oprot):
  31320. if oprot._fast_encode is not None and self.thrift_spec is not None:
  31321. oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
  31322. return
  31323. oprot.writeStructBegin('get_partitions_with_specs_result')
  31324. if self.success is not None:
  31325. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  31326. self.success.write(oprot)
  31327. oprot.writeFieldEnd()
  31328. if self.o1 is not None:
  31329. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  31330. self.o1.write(oprot)
  31331. oprot.writeFieldEnd()
  31332. oprot.writeFieldStop()
  31333. oprot.writeStructEnd()
  31334. def validate(self):
  31335. return
  31336. def __repr__(self):
  31337. L = ['%s=%r' % (key, value)
  31338. for key, value in self.__dict__.items()]
  31339. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  31340. def __eq__(self, other):
  31341. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  31342. def __ne__(self, other):
  31343. return not (self == other)
  31344. all_structs.append(get_partitions_with_specs_result)
  31345. get_partitions_with_specs_result.thrift_spec = (
  31346. (0, TType.STRUCT, 'success', [GetPartitionsResponse, None], None, ), # 0
  31347. (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1
  31348. )
  31349. fix_spec(all_structs)
  31350. del all_structs