ThriftHiveMetastore.py 390 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682
  1. #
  2. # Autogenerated by Thrift Compiler (0.9.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, TException, TApplicationException
  9. import fb303.FacebookService
  10. from ttypes import *
  11. from thrift.Thrift import TProcessor
  12. from thrift.transport import TTransport
  13. from thrift.protocol import TBinaryProtocol, TProtocol
  14. try:
  15. from thrift.protocol import fastbinary
  16. except:
  17. fastbinary = None
  18. class Iface(fb303.FacebookService.Iface):
  19. """
  20. This interface is live.
  21. """
  22. def create_database(self, database):
  23. """
  24. Parameters:
  25. - database
  26. """
  27. pass
  28. def get_database(self, name):
  29. """
  30. Parameters:
  31. - name
  32. """
  33. pass
  34. def drop_database(self, name, deleteData):
  35. """
  36. Parameters:
  37. - name
  38. - deleteData
  39. """
  40. pass
  41. def get_databases(self, pattern):
  42. """
  43. Parameters:
  44. - pattern
  45. """
  46. pass
  47. def get_all_databases(self, ):
  48. pass
  49. def alter_database(self, dbname, db):
  50. """
  51. Parameters:
  52. - dbname
  53. - db
  54. """
  55. pass
  56. def get_type(self, name):
  57. """
  58. Parameters:
  59. - name
  60. """
  61. pass
  62. def create_type(self, type):
  63. """
  64. Parameters:
  65. - type
  66. """
  67. pass
  68. def drop_type(self, type):
  69. """
  70. Parameters:
  71. - type
  72. """
  73. pass
  74. def get_type_all(self, name):
  75. """
  76. Parameters:
  77. - name
  78. """
  79. pass
  80. def get_fields(self, db_name, table_name):
  81. """
  82. Parameters:
  83. - db_name
  84. - table_name
  85. """
  86. pass
  87. def get_schema(self, db_name, table_name):
  88. """
  89. Parameters:
  90. - db_name
  91. - table_name
  92. """
  93. pass
  94. def create_table(self, tbl):
  95. """
  96. Parameters:
  97. - tbl
  98. """
  99. pass
  100. def drop_table(self, dbname, name, deleteData):
  101. """
  102. Parameters:
  103. - dbname
  104. - name
  105. - deleteData
  106. """
  107. pass
  108. def get_tables(self, db_name, pattern):
  109. """
  110. Parameters:
  111. - db_name
  112. - pattern
  113. """
  114. pass
  115. def get_all_tables(self, db_name):
  116. """
  117. Parameters:
  118. - db_name
  119. """
  120. pass
  121. def get_table(self, dbname, tbl_name):
  122. """
  123. Parameters:
  124. - dbname
  125. - tbl_name
  126. """
  127. pass
  128. def alter_table(self, dbname, tbl_name, new_tbl):
  129. """
  130. Parameters:
  131. - dbname
  132. - tbl_name
  133. - new_tbl
  134. """
  135. pass
  136. def add_partition(self, new_part):
  137. """
  138. Parameters:
  139. - new_part
  140. """
  141. pass
  142. def append_partition(self, db_name, tbl_name, part_vals):
  143. """
  144. Parameters:
  145. - db_name
  146. - tbl_name
  147. - part_vals
  148. """
  149. pass
  150. def append_partition_by_name(self, db_name, tbl_name, part_name):
  151. """
  152. Parameters:
  153. - db_name
  154. - tbl_name
  155. - part_name
  156. """
  157. pass
  158. def drop_partition(self, db_name, tbl_name, part_vals, deleteData):
  159. """
  160. Parameters:
  161. - db_name
  162. - tbl_name
  163. - part_vals
  164. - deleteData
  165. """
  166. pass
  167. def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
  168. """
  169. Parameters:
  170. - db_name
  171. - tbl_name
  172. - part_name
  173. - deleteData
  174. """
  175. pass
  176. def get_partition(self, db_name, tbl_name, part_vals):
  177. """
  178. Parameters:
  179. - db_name
  180. - tbl_name
  181. - part_vals
  182. """
  183. pass
  184. def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
  185. """
  186. Parameters:
  187. - db_name
  188. - tbl_name
  189. - part_vals
  190. - user_name
  191. - group_names
  192. """
  193. pass
  194. def get_partition_by_name(self, db_name, tbl_name, part_name):
  195. """
  196. Parameters:
  197. - db_name
  198. - tbl_name
  199. - part_name
  200. """
  201. pass
  202. def get_partitions(self, db_name, tbl_name, max_parts):
  203. """
  204. Parameters:
  205. - db_name
  206. - tbl_name
  207. - max_parts
  208. """
  209. pass
  210. def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
  211. """
  212. Parameters:
  213. - db_name
  214. - tbl_name
  215. - max_parts
  216. - user_name
  217. - group_names
  218. """
  219. pass
  220. def get_partition_names(self, db_name, tbl_name, max_parts):
  221. """
  222. Parameters:
  223. - db_name
  224. - tbl_name
  225. - max_parts
  226. """
  227. pass
  228. def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
  229. """
  230. Parameters:
  231. - db_name
  232. - tbl_name
  233. - part_vals
  234. - max_parts
  235. """
  236. pass
  237. def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
  238. """
  239. Parameters:
  240. - db_name
  241. - tbl_name
  242. - part_vals
  243. - max_parts
  244. - user_name
  245. - group_names
  246. """
  247. pass
  248. def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
  249. """
  250. Parameters:
  251. - db_name
  252. - tbl_name
  253. - part_vals
  254. - max_parts
  255. """
  256. pass
  257. def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
  258. """
  259. Parameters:
  260. - db_name
  261. - tbl_name
  262. - filter
  263. - max_parts
  264. """
  265. pass
  266. def alter_partition(self, db_name, tbl_name, new_part):
  267. """
  268. Parameters:
  269. - db_name
  270. - tbl_name
  271. - new_part
  272. """
  273. pass
  274. def get_config_value(self, name, defaultValue):
  275. """
  276. Parameters:
  277. - name
  278. - defaultValue
  279. """
  280. pass
  281. def partition_name_to_vals(self, part_name):
  282. """
  283. Parameters:
  284. - part_name
  285. """
  286. pass
  287. def partition_name_to_spec(self, part_name):
  288. """
  289. Parameters:
  290. - part_name
  291. """
  292. pass
  293. def add_index(self, new_index, index_table):
  294. """
  295. Parameters:
  296. - new_index
  297. - index_table
  298. """
  299. pass
  300. def alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
  301. """
  302. Parameters:
  303. - dbname
  304. - base_tbl_name
  305. - idx_name
  306. - new_idx
  307. """
  308. pass
  309. def drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
  310. """
  311. Parameters:
  312. - db_name
  313. - tbl_name
  314. - index_name
  315. - deleteData
  316. """
  317. pass
  318. def get_index_by_name(self, db_name, tbl_name, index_name):
  319. """
  320. Parameters:
  321. - db_name
  322. - tbl_name
  323. - index_name
  324. """
  325. pass
  326. def get_indexes(self, db_name, tbl_name, max_indexes):
  327. """
  328. Parameters:
  329. - db_name
  330. - tbl_name
  331. - max_indexes
  332. """
  333. pass
  334. def get_index_names(self, db_name, tbl_name, max_indexes):
  335. """
  336. Parameters:
  337. - db_name
  338. - tbl_name
  339. - max_indexes
  340. """
  341. pass
  342. def create_role(self, role):
  343. """
  344. Parameters:
  345. - role
  346. """
  347. pass
  348. def drop_role(self, role_name):
  349. """
  350. Parameters:
  351. - role_name
  352. """
  353. pass
  354. def get_role_names(self, ):
  355. pass
  356. def grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
  357. """
  358. Parameters:
  359. - role_name
  360. - principal_name
  361. - principal_type
  362. - grantor
  363. - grantorType
  364. - grant_option
  365. """
  366. pass
  367. def revoke_role(self, role_name, principal_name, principal_type):
  368. """
  369. Parameters:
  370. - role_name
  371. - principal_name
  372. - principal_type
  373. """
  374. pass
  375. def list_roles(self, principal_name, principal_type):
  376. """
  377. Parameters:
  378. - principal_name
  379. - principal_type
  380. """
  381. pass
  382. def get_privilege_set(self, hiveObject, user_name, group_names):
  383. """
  384. Parameters:
  385. - hiveObject
  386. - user_name
  387. - group_names
  388. """
  389. pass
  390. def list_privileges(self, principal_name, principal_type, hiveObject):
  391. """
  392. Parameters:
  393. - principal_name
  394. - principal_type
  395. - hiveObject
  396. """
  397. pass
  398. def grant_privileges(self, privileges):
  399. """
  400. Parameters:
  401. - privileges
  402. """
  403. pass
  404. def revoke_privileges(self, privileges):
  405. """
  406. Parameters:
  407. - privileges
  408. """
  409. pass
  410. def get_delegation_token(self, renewer_kerberos_principal_name):
  411. """
  412. Parameters:
  413. - renewer_kerberos_principal_name
  414. """
  415. pass
  416. def get_delegation_token_with_signature(self, renewer_kerberos_principal_name, token_signature):
  417. """
  418. Parameters:
  419. - renewer_kerberos_principal_name
  420. - token_signature
  421. """
  422. pass
  423. def renew_delegation_token(self, token_str_form):
  424. """
  425. Parameters:
  426. - token_str_form
  427. """
  428. pass
  429. def cancel_delegation_token(self, token_str_form):
  430. """
  431. Parameters:
  432. - token_str_form
  433. """
  434. pass
  435. class Client(fb303.FacebookService.Client, Iface):
  436. """
  437. This interface is live.
  438. """
  439. def __init__(self, iprot, oprot=None):
  440. fb303.FacebookService.Client.__init__(self, iprot, oprot)
  441. def create_database(self, database):
  442. """
  443. Parameters:
  444. - database
  445. """
  446. self.send_create_database(database)
  447. self.recv_create_database()
  448. def send_create_database(self, database):
  449. self._oprot.writeMessageBegin('create_database', TMessageType.CALL, self._seqid)
  450. args = create_database_args()
  451. args.database = database
  452. args.write(self._oprot)
  453. self._oprot.writeMessageEnd()
  454. self._oprot.trans.flush()
  455. def recv_create_database(self, ):
  456. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  457. if mtype == TMessageType.EXCEPTION:
  458. x = TApplicationException()
  459. x.read(self._iprot)
  460. self._iprot.readMessageEnd()
  461. raise x
  462. result = create_database_result()
  463. result.read(self._iprot)
  464. self._iprot.readMessageEnd()
  465. if result.o1 is not None:
  466. raise result.o1
  467. if result.o2 is not None:
  468. raise result.o2
  469. if result.o3 is not None:
  470. raise result.o3
  471. return
  472. def get_database(self, name):
  473. """
  474. Parameters:
  475. - name
  476. """
  477. self.send_get_database(name)
  478. return self.recv_get_database()
  479. def send_get_database(self, name):
  480. self._oprot.writeMessageBegin('get_database', TMessageType.CALL, self._seqid)
  481. args = get_database_args()
  482. args.name = name
  483. args.write(self._oprot)
  484. self._oprot.writeMessageEnd()
  485. self._oprot.trans.flush()
  486. def recv_get_database(self, ):
  487. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  488. if mtype == TMessageType.EXCEPTION:
  489. x = TApplicationException()
  490. x.read(self._iprot)
  491. self._iprot.readMessageEnd()
  492. raise x
  493. result = get_database_result()
  494. result.read(self._iprot)
  495. self._iprot.readMessageEnd()
  496. if result.success is not None:
  497. return result.success
  498. if result.o1 is not None:
  499. raise result.o1
  500. if result.o2 is not None:
  501. raise result.o2
  502. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result");
  503. def drop_database(self, name, deleteData):
  504. """
  505. Parameters:
  506. - name
  507. - deleteData
  508. """
  509. self.send_drop_database(name, deleteData)
  510. self.recv_drop_database()
  511. def send_drop_database(self, name, deleteData):
  512. self._oprot.writeMessageBegin('drop_database', TMessageType.CALL, self._seqid)
  513. args = drop_database_args()
  514. args.name = name
  515. args.deleteData = deleteData
  516. args.write(self._oprot)
  517. self._oprot.writeMessageEnd()
  518. self._oprot.trans.flush()
  519. def recv_drop_database(self, ):
  520. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  521. if mtype == TMessageType.EXCEPTION:
  522. x = TApplicationException()
  523. x.read(self._iprot)
  524. self._iprot.readMessageEnd()
  525. raise x
  526. result = drop_database_result()
  527. result.read(self._iprot)
  528. self._iprot.readMessageEnd()
  529. if result.o1 is not None:
  530. raise result.o1
  531. if result.o2 is not None:
  532. raise result.o2
  533. if result.o3 is not None:
  534. raise result.o3
  535. return
  536. def get_databases(self, pattern):
  537. """
  538. Parameters:
  539. - pattern
  540. """
  541. self.send_get_databases(pattern)
  542. return self.recv_get_databases()
  543. def send_get_databases(self, pattern):
  544. self._oprot.writeMessageBegin('get_databases', TMessageType.CALL, self._seqid)
  545. args = get_databases_args()
  546. args.pattern = pattern
  547. args.write(self._oprot)
  548. self._oprot.writeMessageEnd()
  549. self._oprot.trans.flush()
  550. def recv_get_databases(self, ):
  551. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  552. if mtype == TMessageType.EXCEPTION:
  553. x = TApplicationException()
  554. x.read(self._iprot)
  555. self._iprot.readMessageEnd()
  556. raise x
  557. result = get_databases_result()
  558. result.read(self._iprot)
  559. self._iprot.readMessageEnd()
  560. if result.success is not None:
  561. return result.success
  562. if result.o1 is not None:
  563. raise result.o1
  564. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result");
  565. def get_all_databases(self, ):
  566. self.send_get_all_databases()
  567. return self.recv_get_all_databases()
  568. def send_get_all_databases(self, ):
  569. self._oprot.writeMessageBegin('get_all_databases', TMessageType.CALL, self._seqid)
  570. args = get_all_databases_args()
  571. args.write(self._oprot)
  572. self._oprot.writeMessageEnd()
  573. self._oprot.trans.flush()
  574. def recv_get_all_databases(self, ):
  575. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  576. if mtype == TMessageType.EXCEPTION:
  577. x = TApplicationException()
  578. x.read(self._iprot)
  579. self._iprot.readMessageEnd()
  580. raise x
  581. result = get_all_databases_result()
  582. result.read(self._iprot)
  583. self._iprot.readMessageEnd()
  584. if result.success is not None:
  585. return result.success
  586. if result.o1 is not None:
  587. raise result.o1
  588. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result");
  589. def alter_database(self, dbname, db):
  590. """
  591. Parameters:
  592. - dbname
  593. - db
  594. """
  595. self.send_alter_database(dbname, db)
  596. self.recv_alter_database()
  597. def send_alter_database(self, dbname, db):
  598. self._oprot.writeMessageBegin('alter_database', TMessageType.CALL, self._seqid)
  599. args = alter_database_args()
  600. args.dbname = dbname
  601. args.db = db
  602. args.write(self._oprot)
  603. self._oprot.writeMessageEnd()
  604. self._oprot.trans.flush()
  605. def recv_alter_database(self, ):
  606. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  607. if mtype == TMessageType.EXCEPTION:
  608. x = TApplicationException()
  609. x.read(self._iprot)
  610. self._iprot.readMessageEnd()
  611. raise x
  612. result = alter_database_result()
  613. result.read(self._iprot)
  614. self._iprot.readMessageEnd()
  615. if result.o1 is not None:
  616. raise result.o1
  617. if result.o2 is not None:
  618. raise result.o2
  619. return
  620. def get_type(self, name):
  621. """
  622. Parameters:
  623. - name
  624. """
  625. self.send_get_type(name)
  626. return self.recv_get_type()
  627. def send_get_type(self, name):
  628. self._oprot.writeMessageBegin('get_type', TMessageType.CALL, self._seqid)
  629. args = get_type_args()
  630. args.name = name
  631. args.write(self._oprot)
  632. self._oprot.writeMessageEnd()
  633. self._oprot.trans.flush()
  634. def recv_get_type(self, ):
  635. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  636. if mtype == TMessageType.EXCEPTION:
  637. x = TApplicationException()
  638. x.read(self._iprot)
  639. self._iprot.readMessageEnd()
  640. raise x
  641. result = get_type_result()
  642. result.read(self._iprot)
  643. self._iprot.readMessageEnd()
  644. if result.success is not None:
  645. return result.success
  646. if result.o1 is not None:
  647. raise result.o1
  648. if result.o2 is not None:
  649. raise result.o2
  650. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type failed: unknown result");
  651. def create_type(self, type):
  652. """
  653. Parameters:
  654. - type
  655. """
  656. self.send_create_type(type)
  657. return self.recv_create_type()
  658. def send_create_type(self, type):
  659. self._oprot.writeMessageBegin('create_type', TMessageType.CALL, self._seqid)
  660. args = create_type_args()
  661. args.type = type
  662. args.write(self._oprot)
  663. self._oprot.writeMessageEnd()
  664. self._oprot.trans.flush()
  665. def recv_create_type(self, ):
  666. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  667. if mtype == TMessageType.EXCEPTION:
  668. x = TApplicationException()
  669. x.read(self._iprot)
  670. self._iprot.readMessageEnd()
  671. raise x
  672. result = create_type_result()
  673. result.read(self._iprot)
  674. self._iprot.readMessageEnd()
  675. if result.success is not None:
  676. return result.success
  677. if result.o1 is not None:
  678. raise result.o1
  679. if result.o2 is not None:
  680. raise result.o2
  681. if result.o3 is not None:
  682. raise result.o3
  683. raise TApplicationException(TApplicationException.MISSING_RESULT, "create_type failed: unknown result");
  684. def drop_type(self, type):
  685. """
  686. Parameters:
  687. - type
  688. """
  689. self.send_drop_type(type)
  690. return self.recv_drop_type()
  691. def send_drop_type(self, type):
  692. self._oprot.writeMessageBegin('drop_type', TMessageType.CALL, self._seqid)
  693. args = drop_type_args()
  694. args.type = type
  695. args.write(self._oprot)
  696. self._oprot.writeMessageEnd()
  697. self._oprot.trans.flush()
  698. def recv_drop_type(self, ):
  699. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  700. if mtype == TMessageType.EXCEPTION:
  701. x = TApplicationException()
  702. x.read(self._iprot)
  703. self._iprot.readMessageEnd()
  704. raise x
  705. result = drop_type_result()
  706. result.read(self._iprot)
  707. self._iprot.readMessageEnd()
  708. if result.success is not None:
  709. return result.success
  710. if result.o1 is not None:
  711. raise result.o1
  712. if result.o2 is not None:
  713. raise result.o2
  714. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_type failed: unknown result");
  715. def get_type_all(self, name):
  716. """
  717. Parameters:
  718. - name
  719. """
  720. self.send_get_type_all(name)
  721. return self.recv_get_type_all()
  722. def send_get_type_all(self, name):
  723. self._oprot.writeMessageBegin('get_type_all', TMessageType.CALL, self._seqid)
  724. args = get_type_all_args()
  725. args.name = name
  726. args.write(self._oprot)
  727. self._oprot.writeMessageEnd()
  728. self._oprot.trans.flush()
  729. def recv_get_type_all(self, ):
  730. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  731. if mtype == TMessageType.EXCEPTION:
  732. x = TApplicationException()
  733. x.read(self._iprot)
  734. self._iprot.readMessageEnd()
  735. raise x
  736. result = get_type_all_result()
  737. result.read(self._iprot)
  738. self._iprot.readMessageEnd()
  739. if result.success is not None:
  740. return result.success
  741. if result.o2 is not None:
  742. raise result.o2
  743. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result");
  744. def get_fields(self, db_name, table_name):
  745. """
  746. Parameters:
  747. - db_name
  748. - table_name
  749. """
  750. self.send_get_fields(db_name, table_name)
  751. return self.recv_get_fields()
  752. def send_get_fields(self, db_name, table_name):
  753. self._oprot.writeMessageBegin('get_fields', TMessageType.CALL, self._seqid)
  754. args = get_fields_args()
  755. args.db_name = db_name
  756. args.table_name = table_name
  757. args.write(self._oprot)
  758. self._oprot.writeMessageEnd()
  759. self._oprot.trans.flush()
  760. def recv_get_fields(self, ):
  761. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  762. if mtype == TMessageType.EXCEPTION:
  763. x = TApplicationException()
  764. x.read(self._iprot)
  765. self._iprot.readMessageEnd()
  766. raise x
  767. result = get_fields_result()
  768. result.read(self._iprot)
  769. self._iprot.readMessageEnd()
  770. if result.success is not None:
  771. return result.success
  772. if result.o1 is not None:
  773. raise result.o1
  774. if result.o2 is not None:
  775. raise result.o2
  776. if result.o3 is not None:
  777. raise result.o3
  778. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields failed: unknown result");
  779. def get_schema(self, db_name, table_name):
  780. """
  781. Parameters:
  782. - db_name
  783. - table_name
  784. """
  785. self.send_get_schema(db_name, table_name)
  786. return self.recv_get_schema()
  787. def send_get_schema(self, db_name, table_name):
  788. self._oprot.writeMessageBegin('get_schema', TMessageType.CALL, self._seqid)
  789. args = get_schema_args()
  790. args.db_name = db_name
  791. args.table_name = table_name
  792. args.write(self._oprot)
  793. self._oprot.writeMessageEnd()
  794. self._oprot.trans.flush()
  795. def recv_get_schema(self, ):
  796. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  797. if mtype == TMessageType.EXCEPTION:
  798. x = TApplicationException()
  799. x.read(self._iprot)
  800. self._iprot.readMessageEnd()
  801. raise x
  802. result = get_schema_result()
  803. result.read(self._iprot)
  804. self._iprot.readMessageEnd()
  805. if result.success is not None:
  806. return result.success
  807. if result.o1 is not None:
  808. raise result.o1
  809. if result.o2 is not None:
  810. raise result.o2
  811. if result.o3 is not None:
  812. raise result.o3
  813. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema failed: unknown result");
  814. def create_table(self, tbl):
  815. """
  816. Parameters:
  817. - tbl
  818. """
  819. self.send_create_table(tbl)
  820. self.recv_create_table()
  821. def send_create_table(self, tbl):
  822. self._oprot.writeMessageBegin('create_table', TMessageType.CALL, self._seqid)
  823. args = create_table_args()
  824. args.tbl = tbl
  825. args.write(self._oprot)
  826. self._oprot.writeMessageEnd()
  827. self._oprot.trans.flush()
  828. def recv_create_table(self, ):
  829. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  830. if mtype == TMessageType.EXCEPTION:
  831. x = TApplicationException()
  832. x.read(self._iprot)
  833. self._iprot.readMessageEnd()
  834. raise x
  835. result = create_table_result()
  836. result.read(self._iprot)
  837. self._iprot.readMessageEnd()
  838. if result.o1 is not None:
  839. raise result.o1
  840. if result.o2 is not None:
  841. raise result.o2
  842. if result.o3 is not None:
  843. raise result.o3
  844. if result.o4 is not None:
  845. raise result.o4
  846. return
  847. def drop_table(self, dbname, name, deleteData):
  848. """
  849. Parameters:
  850. - dbname
  851. - name
  852. - deleteData
  853. """
  854. self.send_drop_table(dbname, name, deleteData)
  855. self.recv_drop_table()
  856. def send_drop_table(self, dbname, name, deleteData):
  857. self._oprot.writeMessageBegin('drop_table', TMessageType.CALL, self._seqid)
  858. args = drop_table_args()
  859. args.dbname = dbname
  860. args.name = name
  861. args.deleteData = deleteData
  862. args.write(self._oprot)
  863. self._oprot.writeMessageEnd()
  864. self._oprot.trans.flush()
  865. def recv_drop_table(self, ):
  866. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  867. if mtype == TMessageType.EXCEPTION:
  868. x = TApplicationException()
  869. x.read(self._iprot)
  870. self._iprot.readMessageEnd()
  871. raise x
  872. result = drop_table_result()
  873. result.read(self._iprot)
  874. self._iprot.readMessageEnd()
  875. if result.o1 is not None:
  876. raise result.o1
  877. if result.o3 is not None:
  878. raise result.o3
  879. return
  880. def get_tables(self, db_name, pattern):
  881. """
  882. Parameters:
  883. - db_name
  884. - pattern
  885. """
  886. self.send_get_tables(db_name, pattern)
  887. return self.recv_get_tables()
  888. def send_get_tables(self, db_name, pattern):
  889. self._oprot.writeMessageBegin('get_tables', TMessageType.CALL, self._seqid)
  890. args = get_tables_args()
  891. args.db_name = db_name
  892. args.pattern = pattern
  893. args.write(self._oprot)
  894. self._oprot.writeMessageEnd()
  895. self._oprot.trans.flush()
  896. def recv_get_tables(self, ):
  897. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  898. if mtype == TMessageType.EXCEPTION:
  899. x = TApplicationException()
  900. x.read(self._iprot)
  901. self._iprot.readMessageEnd()
  902. raise x
  903. result = get_tables_result()
  904. result.read(self._iprot)
  905. self._iprot.readMessageEnd()
  906. if result.success is not None:
  907. return result.success
  908. if result.o1 is not None:
  909. raise result.o1
  910. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result");
  911. def get_all_tables(self, db_name):
  912. """
  913. Parameters:
  914. - db_name
  915. """
  916. self.send_get_all_tables(db_name)
  917. return self.recv_get_all_tables()
  918. def send_get_all_tables(self, db_name):
  919. self._oprot.writeMessageBegin('get_all_tables', TMessageType.CALL, self._seqid)
  920. args = get_all_tables_args()
  921. args.db_name = db_name
  922. args.write(self._oprot)
  923. self._oprot.writeMessageEnd()
  924. self._oprot.trans.flush()
  925. def recv_get_all_tables(self, ):
  926. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  927. if mtype == TMessageType.EXCEPTION:
  928. x = TApplicationException()
  929. x.read(self._iprot)
  930. self._iprot.readMessageEnd()
  931. raise x
  932. result = get_all_tables_result()
  933. result.read(self._iprot)
  934. self._iprot.readMessageEnd()
  935. if result.success is not None:
  936. return result.success
  937. if result.o1 is not None:
  938. raise result.o1
  939. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result");
  940. def get_table(self, dbname, tbl_name):
  941. """
  942. Parameters:
  943. - dbname
  944. - tbl_name
  945. """
  946. self.send_get_table(dbname, tbl_name)
  947. return self.recv_get_table()
  948. def send_get_table(self, dbname, tbl_name):
  949. self._oprot.writeMessageBegin('get_table', TMessageType.CALL, self._seqid)
  950. args = get_table_args()
  951. args.dbname = dbname
  952. args.tbl_name = tbl_name
  953. args.write(self._oprot)
  954. self._oprot.writeMessageEnd()
  955. self._oprot.trans.flush()
  956. def recv_get_table(self, ):
  957. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  958. if mtype == TMessageType.EXCEPTION:
  959. x = TApplicationException()
  960. x.read(self._iprot)
  961. self._iprot.readMessageEnd()
  962. raise x
  963. result = get_table_result()
  964. result.read(self._iprot)
  965. self._iprot.readMessageEnd()
  966. if result.success is not None:
  967. return result.success
  968. if result.o1 is not None:
  969. raise result.o1
  970. if result.o2 is not None:
  971. raise result.o2
  972. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table failed: unknown result");
  973. def alter_table(self, dbname, tbl_name, new_tbl):
  974. """
  975. Parameters:
  976. - dbname
  977. - tbl_name
  978. - new_tbl
  979. """
  980. self.send_alter_table(dbname, tbl_name, new_tbl)
  981. self.recv_alter_table()
  982. def send_alter_table(self, dbname, tbl_name, new_tbl):
  983. self._oprot.writeMessageBegin('alter_table', TMessageType.CALL, self._seqid)
  984. args = alter_table_args()
  985. args.dbname = dbname
  986. args.tbl_name = tbl_name
  987. args.new_tbl = new_tbl
  988. args.write(self._oprot)
  989. self._oprot.writeMessageEnd()
  990. self._oprot.trans.flush()
  991. def recv_alter_table(self, ):
  992. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  993. if mtype == TMessageType.EXCEPTION:
  994. x = TApplicationException()
  995. x.read(self._iprot)
  996. self._iprot.readMessageEnd()
  997. raise x
  998. result = alter_table_result()
  999. result.read(self._iprot)
  1000. self._iprot.readMessageEnd()
  1001. if result.o1 is not None:
  1002. raise result.o1
  1003. if result.o2 is not None:
  1004. raise result.o2
  1005. return
  1006. def add_partition(self, new_part):
  1007. """
  1008. Parameters:
  1009. - new_part
  1010. """
  1011. self.send_add_partition(new_part)
  1012. return self.recv_add_partition()
  1013. def send_add_partition(self, new_part):
  1014. self._oprot.writeMessageBegin('add_partition', TMessageType.CALL, self._seqid)
  1015. args = add_partition_args()
  1016. args.new_part = new_part
  1017. args.write(self._oprot)
  1018. self._oprot.writeMessageEnd()
  1019. self._oprot.trans.flush()
  1020. def recv_add_partition(self, ):
  1021. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1022. if mtype == TMessageType.EXCEPTION:
  1023. x = TApplicationException()
  1024. x.read(self._iprot)
  1025. self._iprot.readMessageEnd()
  1026. raise x
  1027. result = add_partition_result()
  1028. result.read(self._iprot)
  1029. self._iprot.readMessageEnd()
  1030. if result.success is not None:
  1031. return result.success
  1032. if result.o1 is not None:
  1033. raise result.o1
  1034. if result.o2 is not None:
  1035. raise result.o2
  1036. if result.o3 is not None:
  1037. raise result.o3
  1038. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition failed: unknown result");
  1039. def append_partition(self, db_name, tbl_name, part_vals):
  1040. """
  1041. Parameters:
  1042. - db_name
  1043. - tbl_name
  1044. - part_vals
  1045. """
  1046. self.send_append_partition(db_name, tbl_name, part_vals)
  1047. return self.recv_append_partition()
  1048. def send_append_partition(self, db_name, tbl_name, part_vals):
  1049. self._oprot.writeMessageBegin('append_partition', TMessageType.CALL, self._seqid)
  1050. args = append_partition_args()
  1051. args.db_name = db_name
  1052. args.tbl_name = tbl_name
  1053. args.part_vals = part_vals
  1054. args.write(self._oprot)
  1055. self._oprot.writeMessageEnd()
  1056. self._oprot.trans.flush()
  1057. def recv_append_partition(self, ):
  1058. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1059. if mtype == TMessageType.EXCEPTION:
  1060. x = TApplicationException()
  1061. x.read(self._iprot)
  1062. self._iprot.readMessageEnd()
  1063. raise x
  1064. result = append_partition_result()
  1065. result.read(self._iprot)
  1066. self._iprot.readMessageEnd()
  1067. if result.success is not None:
  1068. return result.success
  1069. if result.o1 is not None:
  1070. raise result.o1
  1071. if result.o2 is not None:
  1072. raise result.o2
  1073. if result.o3 is not None:
  1074. raise result.o3
  1075. raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition failed: unknown result");
  1076. def append_partition_by_name(self, db_name, tbl_name, part_name):
  1077. """
  1078. Parameters:
  1079. - db_name
  1080. - tbl_name
  1081. - part_name
  1082. """
  1083. self.send_append_partition_by_name(db_name, tbl_name, part_name)
  1084. return self.recv_append_partition_by_name()
  1085. def send_append_partition_by_name(self, db_name, tbl_name, part_name):
  1086. self._oprot.writeMessageBegin('append_partition_by_name', TMessageType.CALL, self._seqid)
  1087. args = append_partition_by_name_args()
  1088. args.db_name = db_name
  1089. args.tbl_name = tbl_name
  1090. args.part_name = part_name
  1091. args.write(self._oprot)
  1092. self._oprot.writeMessageEnd()
  1093. self._oprot.trans.flush()
  1094. def recv_append_partition_by_name(self, ):
  1095. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1096. if mtype == TMessageType.EXCEPTION:
  1097. x = TApplicationException()
  1098. x.read(self._iprot)
  1099. self._iprot.readMessageEnd()
  1100. raise x
  1101. result = append_partition_by_name_result()
  1102. result.read(self._iprot)
  1103. self._iprot.readMessageEnd()
  1104. if result.success is not None:
  1105. return result.success
  1106. if result.o1 is not None:
  1107. raise result.o1
  1108. if result.o2 is not None:
  1109. raise result.o2
  1110. if result.o3 is not None:
  1111. raise result.o3
  1112. raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name failed: unknown result");
  1113. def drop_partition(self, db_name, tbl_name, part_vals, deleteData):
  1114. """
  1115. Parameters:
  1116. - db_name
  1117. - tbl_name
  1118. - part_vals
  1119. - deleteData
  1120. """
  1121. self.send_drop_partition(db_name, tbl_name, part_vals, deleteData)
  1122. return self.recv_drop_partition()
  1123. def send_drop_partition(self, db_name, tbl_name, part_vals, deleteData):
  1124. self._oprot.writeMessageBegin('drop_partition', TMessageType.CALL, self._seqid)
  1125. args = drop_partition_args()
  1126. args.db_name = db_name
  1127. args.tbl_name = tbl_name
  1128. args.part_vals = part_vals
  1129. args.deleteData = deleteData
  1130. args.write(self._oprot)
  1131. self._oprot.writeMessageEnd()
  1132. self._oprot.trans.flush()
  1133. def recv_drop_partition(self, ):
  1134. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1135. if mtype == TMessageType.EXCEPTION:
  1136. x = TApplicationException()
  1137. x.read(self._iprot)
  1138. self._iprot.readMessageEnd()
  1139. raise x
  1140. result = drop_partition_result()
  1141. result.read(self._iprot)
  1142. self._iprot.readMessageEnd()
  1143. if result.success is not None:
  1144. return result.success
  1145. if result.o1 is not None:
  1146. raise result.o1
  1147. if result.o2 is not None:
  1148. raise result.o2
  1149. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition failed: unknown result");
  1150. def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
  1151. """
  1152. Parameters:
  1153. - db_name
  1154. - tbl_name
  1155. - part_name
  1156. - deleteData
  1157. """
  1158. self.send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
  1159. return self.recv_drop_partition_by_name()
  1160. def send_drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
  1161. self._oprot.writeMessageBegin('drop_partition_by_name', TMessageType.CALL, self._seqid)
  1162. args = drop_partition_by_name_args()
  1163. args.db_name = db_name
  1164. args.tbl_name = tbl_name
  1165. args.part_name = part_name
  1166. args.deleteData = deleteData
  1167. args.write(self._oprot)
  1168. self._oprot.writeMessageEnd()
  1169. self._oprot.trans.flush()
  1170. def recv_drop_partition_by_name(self, ):
  1171. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1172. if mtype == TMessageType.EXCEPTION:
  1173. x = TApplicationException()
  1174. x.read(self._iprot)
  1175. self._iprot.readMessageEnd()
  1176. raise x
  1177. result = drop_partition_by_name_result()
  1178. result.read(self._iprot)
  1179. self._iprot.readMessageEnd()
  1180. if result.success is not None:
  1181. return result.success
  1182. if result.o1 is not None:
  1183. raise result.o1
  1184. if result.o2 is not None:
  1185. raise result.o2
  1186. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name failed: unknown result");
  1187. def get_partition(self, db_name, tbl_name, part_vals):
  1188. """
  1189. Parameters:
  1190. - db_name
  1191. - tbl_name
  1192. - part_vals
  1193. """
  1194. self.send_get_partition(db_name, tbl_name, part_vals)
  1195. return self.recv_get_partition()
  1196. def send_get_partition(self, db_name, tbl_name, part_vals):
  1197. self._oprot.writeMessageBegin('get_partition', TMessageType.CALL, self._seqid)
  1198. args = get_partition_args()
  1199. args.db_name = db_name
  1200. args.tbl_name = tbl_name
  1201. args.part_vals = part_vals
  1202. args.write(self._oprot)
  1203. self._oprot.writeMessageEnd()
  1204. self._oprot.trans.flush()
  1205. def recv_get_partition(self, ):
  1206. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1207. if mtype == TMessageType.EXCEPTION:
  1208. x = TApplicationException()
  1209. x.read(self._iprot)
  1210. self._iprot.readMessageEnd()
  1211. raise x
  1212. result = get_partition_result()
  1213. result.read(self._iprot)
  1214. self._iprot.readMessageEnd()
  1215. if result.success is not None:
  1216. return result.success
  1217. if result.o1 is not None:
  1218. raise result.o1
  1219. if result.o2 is not None:
  1220. raise result.o2
  1221. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition failed: unknown result");
  1222. def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
  1223. """
  1224. Parameters:
  1225. - db_name
  1226. - tbl_name
  1227. - part_vals
  1228. - user_name
  1229. - group_names
  1230. """
  1231. self.send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
  1232. return self.recv_get_partition_with_auth()
  1233. def send_get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
  1234. self._oprot.writeMessageBegin('get_partition_with_auth', TMessageType.CALL, self._seqid)
  1235. args = get_partition_with_auth_args()
  1236. args.db_name = db_name
  1237. args.tbl_name = tbl_name
  1238. args.part_vals = part_vals
  1239. args.user_name = user_name
  1240. args.group_names = group_names
  1241. args.write(self._oprot)
  1242. self._oprot.writeMessageEnd()
  1243. self._oprot.trans.flush()
  1244. def recv_get_partition_with_auth(self, ):
  1245. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1246. if mtype == TMessageType.EXCEPTION:
  1247. x = TApplicationException()
  1248. x.read(self._iprot)
  1249. self._iprot.readMessageEnd()
  1250. raise x
  1251. result = get_partition_with_auth_result()
  1252. result.read(self._iprot)
  1253. self._iprot.readMessageEnd()
  1254. if result.success is not None:
  1255. return result.success
  1256. if result.o1 is not None:
  1257. raise result.o1
  1258. if result.o2 is not None:
  1259. raise result.o2
  1260. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_with_auth failed: unknown result");
  1261. def get_partition_by_name(self, db_name, tbl_name, part_name):
  1262. """
  1263. Parameters:
  1264. - db_name
  1265. - tbl_name
  1266. - part_name
  1267. """
  1268. self.send_get_partition_by_name(db_name, tbl_name, part_name)
  1269. return self.recv_get_partition_by_name()
  1270. def send_get_partition_by_name(self, db_name, tbl_name, part_name):
  1271. self._oprot.writeMessageBegin('get_partition_by_name', TMessageType.CALL, self._seqid)
  1272. args = get_partition_by_name_args()
  1273. args.db_name = db_name
  1274. args.tbl_name = tbl_name
  1275. args.part_name = part_name
  1276. args.write(self._oprot)
  1277. self._oprot.writeMessageEnd()
  1278. self._oprot.trans.flush()
  1279. def recv_get_partition_by_name(self, ):
  1280. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1281. if mtype == TMessageType.EXCEPTION:
  1282. x = TApplicationException()
  1283. x.read(self._iprot)
  1284. self._iprot.readMessageEnd()
  1285. raise x
  1286. result = get_partition_by_name_result()
  1287. result.read(self._iprot)
  1288. self._iprot.readMessageEnd()
  1289. if result.success is not None:
  1290. return result.success
  1291. if result.o1 is not None:
  1292. raise result.o1
  1293. if result.o2 is not None:
  1294. raise result.o2
  1295. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_by_name failed: unknown result");
  1296. def get_partitions(self, db_name, tbl_name, max_parts):
  1297. """
  1298. Parameters:
  1299. - db_name
  1300. - tbl_name
  1301. - max_parts
  1302. """
  1303. self.send_get_partitions(db_name, tbl_name, max_parts)
  1304. return self.recv_get_partitions()
  1305. def send_get_partitions(self, db_name, tbl_name, max_parts):
  1306. self._oprot.writeMessageBegin('get_partitions', TMessageType.CALL, self._seqid)
  1307. args = get_partitions_args()
  1308. args.db_name = db_name
  1309. args.tbl_name = tbl_name
  1310. args.max_parts = max_parts
  1311. args.write(self._oprot)
  1312. self._oprot.writeMessageEnd()
  1313. self._oprot.trans.flush()
  1314. def recv_get_partitions(self, ):
  1315. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1316. if mtype == TMessageType.EXCEPTION:
  1317. x = TApplicationException()
  1318. x.read(self._iprot)
  1319. self._iprot.readMessageEnd()
  1320. raise x
  1321. result = get_partitions_result()
  1322. result.read(self._iprot)
  1323. self._iprot.readMessageEnd()
  1324. if result.success is not None:
  1325. return result.success
  1326. if result.o1 is not None:
  1327. raise result.o1
  1328. if result.o2 is not None:
  1329. raise result.o2
  1330. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions failed: unknown result");
  1331. def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
  1332. """
  1333. Parameters:
  1334. - db_name
  1335. - tbl_name
  1336. - max_parts
  1337. - user_name
  1338. - group_names
  1339. """
  1340. self.send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
  1341. return self.recv_get_partitions_with_auth()
  1342. def send_get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
  1343. self._oprot.writeMessageBegin('get_partitions_with_auth', TMessageType.CALL, self._seqid)
  1344. args = get_partitions_with_auth_args()
  1345. args.db_name = db_name
  1346. args.tbl_name = tbl_name
  1347. args.max_parts = max_parts
  1348. args.user_name = user_name
  1349. args.group_names = group_names
  1350. args.write(self._oprot)
  1351. self._oprot.writeMessageEnd()
  1352. self._oprot.trans.flush()
  1353. def recv_get_partitions_with_auth(self, ):
  1354. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1355. if mtype == TMessageType.EXCEPTION:
  1356. x = TApplicationException()
  1357. x.read(self._iprot)
  1358. self._iprot.readMessageEnd()
  1359. raise x
  1360. result = get_partitions_with_auth_result()
  1361. result.read(self._iprot)
  1362. self._iprot.readMessageEnd()
  1363. if result.success is not None:
  1364. return result.success
  1365. if result.o1 is not None:
  1366. raise result.o1
  1367. if result.o2 is not None:
  1368. raise result.o2
  1369. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_with_auth failed: unknown result");
  1370. def get_partition_names(self, db_name, tbl_name, max_parts):
  1371. """
  1372. Parameters:
  1373. - db_name
  1374. - tbl_name
  1375. - max_parts
  1376. """
  1377. self.send_get_partition_names(db_name, tbl_name, max_parts)
  1378. return self.recv_get_partition_names()
  1379. def send_get_partition_names(self, db_name, tbl_name, max_parts):
  1380. self._oprot.writeMessageBegin('get_partition_names', TMessageType.CALL, self._seqid)
  1381. args = get_partition_names_args()
  1382. args.db_name = db_name
  1383. args.tbl_name = tbl_name
  1384. args.max_parts = max_parts
  1385. args.write(self._oprot)
  1386. self._oprot.writeMessageEnd()
  1387. self._oprot.trans.flush()
  1388. def recv_get_partition_names(self, ):
  1389. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1390. if mtype == TMessageType.EXCEPTION:
  1391. x = TApplicationException()
  1392. x.read(self._iprot)
  1393. self._iprot.readMessageEnd()
  1394. raise x
  1395. result = get_partition_names_result()
  1396. result.read(self._iprot)
  1397. self._iprot.readMessageEnd()
  1398. if result.success is not None:
  1399. return result.success
  1400. if result.o2 is not None:
  1401. raise result.o2
  1402. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result");
  1403. def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
  1404. """
  1405. Parameters:
  1406. - db_name
  1407. - tbl_name
  1408. - part_vals
  1409. - max_parts
  1410. """
  1411. self.send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
  1412. return self.recv_get_partitions_ps()
  1413. def send_get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
  1414. self._oprot.writeMessageBegin('get_partitions_ps', TMessageType.CALL, self._seqid)
  1415. args = get_partitions_ps_args()
  1416. args.db_name = db_name
  1417. args.tbl_name = tbl_name
  1418. args.part_vals = part_vals
  1419. args.max_parts = max_parts
  1420. args.write(self._oprot)
  1421. self._oprot.writeMessageEnd()
  1422. self._oprot.trans.flush()
  1423. def recv_get_partitions_ps(self, ):
  1424. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1425. if mtype == TMessageType.EXCEPTION:
  1426. x = TApplicationException()
  1427. x.read(self._iprot)
  1428. self._iprot.readMessageEnd()
  1429. raise x
  1430. result = get_partitions_ps_result()
  1431. result.read(self._iprot)
  1432. self._iprot.readMessageEnd()
  1433. if result.success is not None:
  1434. return result.success
  1435. if result.o1 is not None:
  1436. raise result.o1
  1437. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps failed: unknown result");
  1438. def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
  1439. """
  1440. Parameters:
  1441. - db_name
  1442. - tbl_name
  1443. - part_vals
  1444. - max_parts
  1445. - user_name
  1446. - group_names
  1447. """
  1448. self.send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
  1449. return self.recv_get_partitions_ps_with_auth()
  1450. def send_get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
  1451. self._oprot.writeMessageBegin('get_partitions_ps_with_auth', TMessageType.CALL, self._seqid)
  1452. args = get_partitions_ps_with_auth_args()
  1453. args.db_name = db_name
  1454. args.tbl_name = tbl_name
  1455. args.part_vals = part_vals
  1456. args.max_parts = max_parts
  1457. args.user_name = user_name
  1458. args.group_names = group_names
  1459. args.write(self._oprot)
  1460. self._oprot.writeMessageEnd()
  1461. self._oprot.trans.flush()
  1462. def recv_get_partitions_ps_with_auth(self, ):
  1463. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1464. if mtype == TMessageType.EXCEPTION:
  1465. x = TApplicationException()
  1466. x.read(self._iprot)
  1467. self._iprot.readMessageEnd()
  1468. raise x
  1469. result = get_partitions_ps_with_auth_result()
  1470. result.read(self._iprot)
  1471. self._iprot.readMessageEnd()
  1472. if result.success is not None:
  1473. return result.success
  1474. if result.o1 is not None:
  1475. raise result.o1
  1476. if result.o2 is not None:
  1477. raise result.o2
  1478. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result");
  1479. def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
  1480. """
  1481. Parameters:
  1482. - db_name
  1483. - tbl_name
  1484. - part_vals
  1485. - max_parts
  1486. """
  1487. self.send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
  1488. return self.recv_get_partition_names_ps()
  1489. def send_get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
  1490. self._oprot.writeMessageBegin('get_partition_names_ps', TMessageType.CALL, self._seqid)
  1491. args = get_partition_names_ps_args()
  1492. args.db_name = db_name
  1493. args.tbl_name = tbl_name
  1494. args.part_vals = part_vals
  1495. args.max_parts = max_parts
  1496. args.write(self._oprot)
  1497. self._oprot.writeMessageEnd()
  1498. self._oprot.trans.flush()
  1499. def recv_get_partition_names_ps(self, ):
  1500. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1501. if mtype == TMessageType.EXCEPTION:
  1502. x = TApplicationException()
  1503. x.read(self._iprot)
  1504. self._iprot.readMessageEnd()
  1505. raise x
  1506. result = get_partition_names_ps_result()
  1507. result.read(self._iprot)
  1508. self._iprot.readMessageEnd()
  1509. if result.success is not None:
  1510. return result.success
  1511. if result.o1 is not None:
  1512. raise result.o1
  1513. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names_ps failed: unknown result");
  1514. def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
  1515. """
  1516. Parameters:
  1517. - db_name
  1518. - tbl_name
  1519. - filter
  1520. - max_parts
  1521. """
  1522. self.send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
  1523. return self.recv_get_partitions_by_filter()
  1524. def send_get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
  1525. self._oprot.writeMessageBegin('get_partitions_by_filter', TMessageType.CALL, self._seqid)
  1526. args = get_partitions_by_filter_args()
  1527. args.db_name = db_name
  1528. args.tbl_name = tbl_name
  1529. args.filter = filter
  1530. args.max_parts = max_parts
  1531. args.write(self._oprot)
  1532. self._oprot.writeMessageEnd()
  1533. self._oprot.trans.flush()
  1534. def recv_get_partitions_by_filter(self, ):
  1535. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1536. if mtype == TMessageType.EXCEPTION:
  1537. x = TApplicationException()
  1538. x.read(self._iprot)
  1539. self._iprot.readMessageEnd()
  1540. raise x
  1541. result = get_partitions_by_filter_result()
  1542. result.read(self._iprot)
  1543. self._iprot.readMessageEnd()
  1544. if result.success is not None:
  1545. return result.success
  1546. if result.o1 is not None:
  1547. raise result.o1
  1548. if result.o2 is not None:
  1549. raise result.o2
  1550. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_filter failed: unknown result");
  1551. def alter_partition(self, db_name, tbl_name, new_part):
  1552. """
  1553. Parameters:
  1554. - db_name
  1555. - tbl_name
  1556. - new_part
  1557. """
  1558. self.send_alter_partition(db_name, tbl_name, new_part)
  1559. self.recv_alter_partition()
  1560. def send_alter_partition(self, db_name, tbl_name, new_part):
  1561. self._oprot.writeMessageBegin('alter_partition', TMessageType.CALL, self._seqid)
  1562. args = alter_partition_args()
  1563. args.db_name = db_name
  1564. args.tbl_name = tbl_name
  1565. args.new_part = new_part
  1566. args.write(self._oprot)
  1567. self._oprot.writeMessageEnd()
  1568. self._oprot.trans.flush()
  1569. def recv_alter_partition(self, ):
  1570. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1571. if mtype == TMessageType.EXCEPTION:
  1572. x = TApplicationException()
  1573. x.read(self._iprot)
  1574. self._iprot.readMessageEnd()
  1575. raise x
  1576. result = alter_partition_result()
  1577. result.read(self._iprot)
  1578. self._iprot.readMessageEnd()
  1579. if result.o1 is not None:
  1580. raise result.o1
  1581. if result.o2 is not None:
  1582. raise result.o2
  1583. return
  1584. def get_config_value(self, name, defaultValue):
  1585. """
  1586. Parameters:
  1587. - name
  1588. - defaultValue
  1589. """
  1590. self.send_get_config_value(name, defaultValue)
  1591. return self.recv_get_config_value()
  1592. def send_get_config_value(self, name, defaultValue):
  1593. self._oprot.writeMessageBegin('get_config_value', TMessageType.CALL, self._seqid)
  1594. args = get_config_value_args()
  1595. args.name = name
  1596. args.defaultValue = defaultValue
  1597. args.write(self._oprot)
  1598. self._oprot.writeMessageEnd()
  1599. self._oprot.trans.flush()
  1600. def recv_get_config_value(self, ):
  1601. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1602. if mtype == TMessageType.EXCEPTION:
  1603. x = TApplicationException()
  1604. x.read(self._iprot)
  1605. self._iprot.readMessageEnd()
  1606. raise x
  1607. result = get_config_value_result()
  1608. result.read(self._iprot)
  1609. self._iprot.readMessageEnd()
  1610. if result.success is not None:
  1611. return result.success
  1612. if result.o1 is not None:
  1613. raise result.o1
  1614. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_config_value failed: unknown result");
  1615. def partition_name_to_vals(self, part_name):
  1616. """
  1617. Parameters:
  1618. - part_name
  1619. """
  1620. self.send_partition_name_to_vals(part_name)
  1621. return self.recv_partition_name_to_vals()
  1622. def send_partition_name_to_vals(self, part_name):
  1623. self._oprot.writeMessageBegin('partition_name_to_vals', TMessageType.CALL, self._seqid)
  1624. args = partition_name_to_vals_args()
  1625. args.part_name = part_name
  1626. args.write(self._oprot)
  1627. self._oprot.writeMessageEnd()
  1628. self._oprot.trans.flush()
  1629. def recv_partition_name_to_vals(self, ):
  1630. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1631. if mtype == TMessageType.EXCEPTION:
  1632. x = TApplicationException()
  1633. x.read(self._iprot)
  1634. self._iprot.readMessageEnd()
  1635. raise x
  1636. result = partition_name_to_vals_result()
  1637. result.read(self._iprot)
  1638. self._iprot.readMessageEnd()
  1639. if result.success is not None:
  1640. return result.success
  1641. if result.o1 is not None:
  1642. raise result.o1
  1643. raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_vals failed: unknown result");
  1644. def partition_name_to_spec(self, part_name):
  1645. """
  1646. Parameters:
  1647. - part_name
  1648. """
  1649. self.send_partition_name_to_spec(part_name)
  1650. return self.recv_partition_name_to_spec()
  1651. def send_partition_name_to_spec(self, part_name):
  1652. self._oprot.writeMessageBegin('partition_name_to_spec', TMessageType.CALL, self._seqid)
  1653. args = partition_name_to_spec_args()
  1654. args.part_name = part_name
  1655. args.write(self._oprot)
  1656. self._oprot.writeMessageEnd()
  1657. self._oprot.trans.flush()
  1658. def recv_partition_name_to_spec(self, ):
  1659. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1660. if mtype == TMessageType.EXCEPTION:
  1661. x = TApplicationException()
  1662. x.read(self._iprot)
  1663. self._iprot.readMessageEnd()
  1664. raise x
  1665. result = partition_name_to_spec_result()
  1666. result.read(self._iprot)
  1667. self._iprot.readMessageEnd()
  1668. if result.success is not None:
  1669. return result.success
  1670. if result.o1 is not None:
  1671. raise result.o1
  1672. raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_spec failed: unknown result");
  1673. def add_index(self, new_index, index_table):
  1674. """
  1675. Parameters:
  1676. - new_index
  1677. - index_table
  1678. """
  1679. self.send_add_index(new_index, index_table)
  1680. return self.recv_add_index()
  1681. def send_add_index(self, new_index, index_table):
  1682. self._oprot.writeMessageBegin('add_index', TMessageType.CALL, self._seqid)
  1683. args = add_index_args()
  1684. args.new_index = new_index
  1685. args.index_table = index_table
  1686. args.write(self._oprot)
  1687. self._oprot.writeMessageEnd()
  1688. self._oprot.trans.flush()
  1689. def recv_add_index(self, ):
  1690. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1691. if mtype == TMessageType.EXCEPTION:
  1692. x = TApplicationException()
  1693. x.read(self._iprot)
  1694. self._iprot.readMessageEnd()
  1695. raise x
  1696. result = add_index_result()
  1697. result.read(self._iprot)
  1698. self._iprot.readMessageEnd()
  1699. if result.success is not None:
  1700. return result.success
  1701. if result.o1 is not None:
  1702. raise result.o1
  1703. if result.o2 is not None:
  1704. raise result.o2
  1705. if result.o3 is not None:
  1706. raise result.o3
  1707. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_index failed: unknown result");
  1708. def alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
  1709. """
  1710. Parameters:
  1711. - dbname
  1712. - base_tbl_name
  1713. - idx_name
  1714. - new_idx
  1715. """
  1716. self.send_alter_index(dbname, base_tbl_name, idx_name, new_idx)
  1717. self.recv_alter_index()
  1718. def send_alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
  1719. self._oprot.writeMessageBegin('alter_index', TMessageType.CALL, self._seqid)
  1720. args = alter_index_args()
  1721. args.dbname = dbname
  1722. args.base_tbl_name = base_tbl_name
  1723. args.idx_name = idx_name
  1724. args.new_idx = new_idx
  1725. args.write(self._oprot)
  1726. self._oprot.writeMessageEnd()
  1727. self._oprot.trans.flush()
  1728. def recv_alter_index(self, ):
  1729. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1730. if mtype == TMessageType.EXCEPTION:
  1731. x = TApplicationException()
  1732. x.read(self._iprot)
  1733. self._iprot.readMessageEnd()
  1734. raise x
  1735. result = alter_index_result()
  1736. result.read(self._iprot)
  1737. self._iprot.readMessageEnd()
  1738. if result.o1 is not None:
  1739. raise result.o1
  1740. if result.o2 is not None:
  1741. raise result.o2
  1742. return
  1743. def drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
  1744. """
  1745. Parameters:
  1746. - db_name
  1747. - tbl_name
  1748. - index_name
  1749. - deleteData
  1750. """
  1751. self.send_drop_index_by_name(db_name, tbl_name, index_name, deleteData)
  1752. return self.recv_drop_index_by_name()
  1753. def send_drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
  1754. self._oprot.writeMessageBegin('drop_index_by_name', TMessageType.CALL, self._seqid)
  1755. args = drop_index_by_name_args()
  1756. args.db_name = db_name
  1757. args.tbl_name = tbl_name
  1758. args.index_name = index_name
  1759. args.deleteData = deleteData
  1760. args.write(self._oprot)
  1761. self._oprot.writeMessageEnd()
  1762. self._oprot.trans.flush()
  1763. def recv_drop_index_by_name(self, ):
  1764. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1765. if mtype == TMessageType.EXCEPTION:
  1766. x = TApplicationException()
  1767. x.read(self._iprot)
  1768. self._iprot.readMessageEnd()
  1769. raise x
  1770. result = drop_index_by_name_result()
  1771. result.read(self._iprot)
  1772. self._iprot.readMessageEnd()
  1773. if result.success is not None:
  1774. return result.success
  1775. if result.o1 is not None:
  1776. raise result.o1
  1777. if result.o2 is not None:
  1778. raise result.o2
  1779. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_index_by_name failed: unknown result");
  1780. def get_index_by_name(self, db_name, tbl_name, index_name):
  1781. """
  1782. Parameters:
  1783. - db_name
  1784. - tbl_name
  1785. - index_name
  1786. """
  1787. self.send_get_index_by_name(db_name, tbl_name, index_name)
  1788. return self.recv_get_index_by_name()
  1789. def send_get_index_by_name(self, db_name, tbl_name, index_name):
  1790. self._oprot.writeMessageBegin('get_index_by_name', TMessageType.CALL, self._seqid)
  1791. args = get_index_by_name_args()
  1792. args.db_name = db_name
  1793. args.tbl_name = tbl_name
  1794. args.index_name = index_name
  1795. args.write(self._oprot)
  1796. self._oprot.writeMessageEnd()
  1797. self._oprot.trans.flush()
  1798. def recv_get_index_by_name(self, ):
  1799. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1800. if mtype == TMessageType.EXCEPTION:
  1801. x = TApplicationException()
  1802. x.read(self._iprot)
  1803. self._iprot.readMessageEnd()
  1804. raise x
  1805. result = get_index_by_name_result()
  1806. result.read(self._iprot)
  1807. self._iprot.readMessageEnd()
  1808. if result.success is not None:
  1809. return result.success
  1810. if result.o1 is not None:
  1811. raise result.o1
  1812. if result.o2 is not None:
  1813. raise result.o2
  1814. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_by_name failed: unknown result");
  1815. def get_indexes(self, db_name, tbl_name, max_indexes):
  1816. """
  1817. Parameters:
  1818. - db_name
  1819. - tbl_name
  1820. - max_indexes
  1821. """
  1822. self.send_get_indexes(db_name, tbl_name, max_indexes)
  1823. return self.recv_get_indexes()
  1824. def send_get_indexes(self, db_name, tbl_name, max_indexes):
  1825. self._oprot.writeMessageBegin('get_indexes', TMessageType.CALL, self._seqid)
  1826. args = get_indexes_args()
  1827. args.db_name = db_name
  1828. args.tbl_name = tbl_name
  1829. args.max_indexes = max_indexes
  1830. args.write(self._oprot)
  1831. self._oprot.writeMessageEnd()
  1832. self._oprot.trans.flush()
  1833. def recv_get_indexes(self, ):
  1834. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1835. if mtype == TMessageType.EXCEPTION:
  1836. x = TApplicationException()
  1837. x.read(self._iprot)
  1838. self._iprot.readMessageEnd()
  1839. raise x
  1840. result = get_indexes_result()
  1841. result.read(self._iprot)
  1842. self._iprot.readMessageEnd()
  1843. if result.success is not None:
  1844. return result.success
  1845. if result.o1 is not None:
  1846. raise result.o1
  1847. if result.o2 is not None:
  1848. raise result.o2
  1849. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_indexes failed: unknown result");
  1850. def get_index_names(self, db_name, tbl_name, max_indexes):
  1851. """
  1852. Parameters:
  1853. - db_name
  1854. - tbl_name
  1855. - max_indexes
  1856. """
  1857. self.send_get_index_names(db_name, tbl_name, max_indexes)
  1858. return self.recv_get_index_names()
  1859. def send_get_index_names(self, db_name, tbl_name, max_indexes):
  1860. self._oprot.writeMessageBegin('get_index_names', TMessageType.CALL, self._seqid)
  1861. args = get_index_names_args()
  1862. args.db_name = db_name
  1863. args.tbl_name = tbl_name
  1864. args.max_indexes = max_indexes
  1865. args.write(self._oprot)
  1866. self._oprot.writeMessageEnd()
  1867. self._oprot.trans.flush()
  1868. def recv_get_index_names(self, ):
  1869. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1870. if mtype == TMessageType.EXCEPTION:
  1871. x = TApplicationException()
  1872. x.read(self._iprot)
  1873. self._iprot.readMessageEnd()
  1874. raise x
  1875. result = get_index_names_result()
  1876. result.read(self._iprot)
  1877. self._iprot.readMessageEnd()
  1878. if result.success is not None:
  1879. return result.success
  1880. if result.o2 is not None:
  1881. raise result.o2
  1882. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_names failed: unknown result");
  1883. def create_role(self, role):
  1884. """
  1885. Parameters:
  1886. - role
  1887. """
  1888. self.send_create_role(role)
  1889. return self.recv_create_role()
  1890. def send_create_role(self, role):
  1891. self._oprot.writeMessageBegin('create_role', TMessageType.CALL, self._seqid)
  1892. args = create_role_args()
  1893. args.role = role
  1894. args.write(self._oprot)
  1895. self._oprot.writeMessageEnd()
  1896. self._oprot.trans.flush()
  1897. def recv_create_role(self, ):
  1898. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1899. if mtype == TMessageType.EXCEPTION:
  1900. x = TApplicationException()
  1901. x.read(self._iprot)
  1902. self._iprot.readMessageEnd()
  1903. raise x
  1904. result = create_role_result()
  1905. result.read(self._iprot)
  1906. self._iprot.readMessageEnd()
  1907. if result.success is not None:
  1908. return result.success
  1909. if result.o1 is not None:
  1910. raise result.o1
  1911. raise TApplicationException(TApplicationException.MISSING_RESULT, "create_role failed: unknown result");
  1912. def drop_role(self, role_name):
  1913. """
  1914. Parameters:
  1915. - role_name
  1916. """
  1917. self.send_drop_role(role_name)
  1918. return self.recv_drop_role()
  1919. def send_drop_role(self, role_name):
  1920. self._oprot.writeMessageBegin('drop_role', TMessageType.CALL, self._seqid)
  1921. args = drop_role_args()
  1922. args.role_name = role_name
  1923. args.write(self._oprot)
  1924. self._oprot.writeMessageEnd()
  1925. self._oprot.trans.flush()
  1926. def recv_drop_role(self, ):
  1927. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1928. if mtype == TMessageType.EXCEPTION:
  1929. x = TApplicationException()
  1930. x.read(self._iprot)
  1931. self._iprot.readMessageEnd()
  1932. raise x
  1933. result = drop_role_result()
  1934. result.read(self._iprot)
  1935. self._iprot.readMessageEnd()
  1936. if result.success is not None:
  1937. return result.success
  1938. if result.o1 is not None:
  1939. raise result.o1
  1940. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_role failed: unknown result");
  1941. def get_role_names(self, ):
  1942. self.send_get_role_names()
  1943. return self.recv_get_role_names()
  1944. def send_get_role_names(self, ):
  1945. self._oprot.writeMessageBegin('get_role_names', TMessageType.CALL, self._seqid)
  1946. args = get_role_names_args()
  1947. args.write(self._oprot)
  1948. self._oprot.writeMessageEnd()
  1949. self._oprot.trans.flush()
  1950. def recv_get_role_names(self, ):
  1951. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1952. if mtype == TMessageType.EXCEPTION:
  1953. x = TApplicationException()
  1954. x.read(self._iprot)
  1955. self._iprot.readMessageEnd()
  1956. raise x
  1957. result = get_role_names_result()
  1958. result.read(self._iprot)
  1959. self._iprot.readMessageEnd()
  1960. if result.success is not None:
  1961. return result.success
  1962. if result.o1 is not None:
  1963. raise result.o1
  1964. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_role_names failed: unknown result");
  1965. def grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
  1966. """
  1967. Parameters:
  1968. - role_name
  1969. - principal_name
  1970. - principal_type
  1971. - grantor
  1972. - grantorType
  1973. - grant_option
  1974. """
  1975. self.send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
  1976. return self.recv_grant_role()
  1977. def send_grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
  1978. self._oprot.writeMessageBegin('grant_role', TMessageType.CALL, self._seqid)
  1979. args = grant_role_args()
  1980. args.role_name = role_name
  1981. args.principal_name = principal_name
  1982. args.principal_type = principal_type
  1983. args.grantor = grantor
  1984. args.grantorType = grantorType
  1985. args.grant_option = grant_option
  1986. args.write(self._oprot)
  1987. self._oprot.writeMessageEnd()
  1988. self._oprot.trans.flush()
  1989. def recv_grant_role(self, ):
  1990. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1991. if mtype == TMessageType.EXCEPTION:
  1992. x = TApplicationException()
  1993. x.read(self._iprot)
  1994. self._iprot.readMessageEnd()
  1995. raise x
  1996. result = grant_role_result()
  1997. result.read(self._iprot)
  1998. self._iprot.readMessageEnd()
  1999. if result.success is not None:
  2000. return result.success
  2001. if result.o1 is not None:
  2002. raise result.o1
  2003. raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_role failed: unknown result");
  2004. def revoke_role(self, role_name, principal_name, principal_type):
  2005. """
  2006. Parameters:
  2007. - role_name
  2008. - principal_name
  2009. - principal_type
  2010. """
  2011. self.send_revoke_role(role_name, principal_name, principal_type)
  2012. return self.recv_revoke_role()
  2013. def send_revoke_role(self, role_name, principal_name, principal_type):
  2014. self._oprot.writeMessageBegin('revoke_role', TMessageType.CALL, self._seqid)
  2015. args = revoke_role_args()
  2016. args.role_name = role_name
  2017. args.principal_name = principal_name
  2018. args.principal_type = principal_type
  2019. args.write(self._oprot)
  2020. self._oprot.writeMessageEnd()
  2021. self._oprot.trans.flush()
  2022. def recv_revoke_role(self, ):
  2023. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2024. if mtype == TMessageType.EXCEPTION:
  2025. x = TApplicationException()
  2026. x.read(self._iprot)
  2027. self._iprot.readMessageEnd()
  2028. raise x
  2029. result = revoke_role_result()
  2030. result.read(self._iprot)
  2031. self._iprot.readMessageEnd()
  2032. if result.success is not None:
  2033. return result.success
  2034. if result.o1 is not None:
  2035. raise result.o1
  2036. raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_role failed: unknown result");
  2037. def list_roles(self, principal_name, principal_type):
  2038. """
  2039. Parameters:
  2040. - principal_name
  2041. - principal_type
  2042. """
  2043. self.send_list_roles(principal_name, principal_type)
  2044. return self.recv_list_roles()
  2045. def send_list_roles(self, principal_name, principal_type):
  2046. self._oprot.writeMessageBegin('list_roles', TMessageType.CALL, self._seqid)
  2047. args = list_roles_args()
  2048. args.principal_name = principal_name
  2049. args.principal_type = principal_type
  2050. args.write(self._oprot)
  2051. self._oprot.writeMessageEnd()
  2052. self._oprot.trans.flush()
  2053. def recv_list_roles(self, ):
  2054. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2055. if mtype == TMessageType.EXCEPTION:
  2056. x = TApplicationException()
  2057. x.read(self._iprot)
  2058. self._iprot.readMessageEnd()
  2059. raise x
  2060. result = list_roles_result()
  2061. result.read(self._iprot)
  2062. self._iprot.readMessageEnd()
  2063. if result.success is not None:
  2064. return result.success
  2065. if result.o1 is not None:
  2066. raise result.o1
  2067. raise TApplicationException(TApplicationException.MISSING_RESULT, "list_roles failed: unknown result");
  2068. def get_privilege_set(self, hiveObject, user_name, group_names):
  2069. """
  2070. Parameters:
  2071. - hiveObject
  2072. - user_name
  2073. - group_names
  2074. """
  2075. self.send_get_privilege_set(hiveObject, user_name, group_names)
  2076. return self.recv_get_privilege_set()
  2077. def send_get_privilege_set(self, hiveObject, user_name, group_names):
  2078. self._oprot.writeMessageBegin('get_privilege_set', TMessageType.CALL, self._seqid)
  2079. args = get_privilege_set_args()
  2080. args.hiveObject = hiveObject
  2081. args.user_name = user_name
  2082. args.group_names = group_names
  2083. args.write(self._oprot)
  2084. self._oprot.writeMessageEnd()
  2085. self._oprot.trans.flush()
  2086. def recv_get_privilege_set(self, ):
  2087. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2088. if mtype == TMessageType.EXCEPTION:
  2089. x = TApplicationException()
  2090. x.read(self._iprot)
  2091. self._iprot.readMessageEnd()
  2092. raise x
  2093. result = get_privilege_set_result()
  2094. result.read(self._iprot)
  2095. self._iprot.readMessageEnd()
  2096. if result.success is not None:
  2097. return result.success
  2098. if result.o1 is not None:
  2099. raise result.o1
  2100. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_privilege_set failed: unknown result");
  2101. def list_privileges(self, principal_name, principal_type, hiveObject):
  2102. """
  2103. Parameters:
  2104. - principal_name
  2105. - principal_type
  2106. - hiveObject
  2107. """
  2108. self.send_list_privileges(principal_name, principal_type, hiveObject)
  2109. return self.recv_list_privileges()
  2110. def send_list_privileges(self, principal_name, principal_type, hiveObject):
  2111. self._oprot.writeMessageBegin('list_privileges', TMessageType.CALL, self._seqid)
  2112. args = list_privileges_args()
  2113. args.principal_name = principal_name
  2114. args.principal_type = principal_type
  2115. args.hiveObject = hiveObject
  2116. args.write(self._oprot)
  2117. self._oprot.writeMessageEnd()
  2118. self._oprot.trans.flush()
  2119. def recv_list_privileges(self, ):
  2120. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2121. if mtype == TMessageType.EXCEPTION:
  2122. x = TApplicationException()
  2123. x.read(self._iprot)
  2124. self._iprot.readMessageEnd()
  2125. raise x
  2126. result = list_privileges_result()
  2127. result.read(self._iprot)
  2128. self._iprot.readMessageEnd()
  2129. if result.success is not None:
  2130. return result.success
  2131. if result.o1 is not None:
  2132. raise result.o1
  2133. raise TApplicationException(TApplicationException.MISSING_RESULT, "list_privileges failed: unknown result");
  2134. def grant_privileges(self, privileges):
  2135. """
  2136. Parameters:
  2137. - privileges
  2138. """
  2139. self.send_grant_privileges(privileges)
  2140. return self.recv_grant_privileges()
  2141. def send_grant_privileges(self, privileges):
  2142. self._oprot.writeMessageBegin('grant_privileges', TMessageType.CALL, self._seqid)
  2143. args = grant_privileges_args()
  2144. args.privileges = privileges
  2145. args.write(self._oprot)
  2146. self._oprot.writeMessageEnd()
  2147. self._oprot.trans.flush()
  2148. def recv_grant_privileges(self, ):
  2149. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2150. if mtype == TMessageType.EXCEPTION:
  2151. x = TApplicationException()
  2152. x.read(self._iprot)
  2153. self._iprot.readMessageEnd()
  2154. raise x
  2155. result = grant_privileges_result()
  2156. result.read(self._iprot)
  2157. self._iprot.readMessageEnd()
  2158. if result.success is not None:
  2159. return result.success
  2160. if result.o1 is not None:
  2161. raise result.o1
  2162. raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_privileges failed: unknown result");
  2163. def revoke_privileges(self, privileges):
  2164. """
  2165. Parameters:
  2166. - privileges
  2167. """
  2168. self.send_revoke_privileges(privileges)
  2169. return self.recv_revoke_privileges()
  2170. def send_revoke_privileges(self, privileges):
  2171. self._oprot.writeMessageBegin('revoke_privileges', TMessageType.CALL, self._seqid)
  2172. args = revoke_privileges_args()
  2173. args.privileges = privileges
  2174. args.write(self._oprot)
  2175. self._oprot.writeMessageEnd()
  2176. self._oprot.trans.flush()
  2177. def recv_revoke_privileges(self, ):
  2178. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2179. if mtype == TMessageType.EXCEPTION:
  2180. x = TApplicationException()
  2181. x.read(self._iprot)
  2182. self._iprot.readMessageEnd()
  2183. raise x
  2184. result = revoke_privileges_result()
  2185. result.read(self._iprot)
  2186. self._iprot.readMessageEnd()
  2187. if result.success is not None:
  2188. return result.success
  2189. if result.o1 is not None:
  2190. raise result.o1
  2191. raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_privileges failed: unknown result");
  2192. def get_delegation_token(self, renewer_kerberos_principal_name):
  2193. """
  2194. Parameters:
  2195. - renewer_kerberos_principal_name
  2196. """
  2197. self.send_get_delegation_token(renewer_kerberos_principal_name)
  2198. return self.recv_get_delegation_token()
  2199. def send_get_delegation_token(self, renewer_kerberos_principal_name):
  2200. self._oprot.writeMessageBegin('get_delegation_token', TMessageType.CALL, self._seqid)
  2201. args = get_delegation_token_args()
  2202. args.renewer_kerberos_principal_name = renewer_kerberos_principal_name
  2203. args.write(self._oprot)
  2204. self._oprot.writeMessageEnd()
  2205. self._oprot.trans.flush()
  2206. def recv_get_delegation_token(self, ):
  2207. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2208. if mtype == TMessageType.EXCEPTION:
  2209. x = TApplicationException()
  2210. x.read(self._iprot)
  2211. self._iprot.readMessageEnd()
  2212. raise x
  2213. result = get_delegation_token_result()
  2214. result.read(self._iprot)
  2215. self._iprot.readMessageEnd()
  2216. if result.success is not None:
  2217. return result.success
  2218. if result.o1 is not None:
  2219. raise result.o1
  2220. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_delegation_token failed: unknown result");
  2221. def get_delegation_token_with_signature(self, renewer_kerberos_principal_name, token_signature):
  2222. """
  2223. Parameters:
  2224. - renewer_kerberos_principal_name
  2225. - token_signature
  2226. """
  2227. self.send_get_delegation_token_with_signature(renewer_kerberos_principal_name, token_signature)
  2228. return self.recv_get_delegation_token_with_signature()
  2229. def send_get_delegation_token_with_signature(self, renewer_kerberos_principal_name, token_signature):
  2230. self._oprot.writeMessageBegin('get_delegation_token_with_signature', TMessageType.CALL, self._seqid)
  2231. args = get_delegation_token_with_signature_args()
  2232. args.renewer_kerberos_principal_name = renewer_kerberos_principal_name
  2233. args.token_signature = token_signature
  2234. args.write(self._oprot)
  2235. self._oprot.writeMessageEnd()
  2236. self._oprot.trans.flush()
  2237. def recv_get_delegation_token_with_signature(self, ):
  2238. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2239. if mtype == TMessageType.EXCEPTION:
  2240. x = TApplicationException()
  2241. x.read(self._iprot)
  2242. self._iprot.readMessageEnd()
  2243. raise x
  2244. result = get_delegation_token_with_signature_result()
  2245. result.read(self._iprot)
  2246. self._iprot.readMessageEnd()
  2247. if result.success is not None:
  2248. return result.success
  2249. if result.o1 is not None:
  2250. raise result.o1
  2251. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_delegation_token_with_signature failed: unknown result");
  2252. def renew_delegation_token(self, token_str_form):
  2253. """
  2254. Parameters:
  2255. - token_str_form
  2256. """
  2257. self.send_renew_delegation_token(token_str_form)
  2258. return self.recv_renew_delegation_token()
  2259. def send_renew_delegation_token(self, token_str_form):
  2260. self._oprot.writeMessageBegin('renew_delegation_token', TMessageType.CALL, self._seqid)
  2261. args = renew_delegation_token_args()
  2262. args.token_str_form = token_str_form
  2263. args.write(self._oprot)
  2264. self._oprot.writeMessageEnd()
  2265. self._oprot.trans.flush()
  2266. def recv_renew_delegation_token(self, ):
  2267. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2268. if mtype == TMessageType.EXCEPTION:
  2269. x = TApplicationException()
  2270. x.read(self._iprot)
  2271. self._iprot.readMessageEnd()
  2272. raise x
  2273. result = renew_delegation_token_result()
  2274. result.read(self._iprot)
  2275. self._iprot.readMessageEnd()
  2276. if result.success is not None:
  2277. return result.success
  2278. if result.o1 is not None:
  2279. raise result.o1
  2280. raise TApplicationException(TApplicationException.MISSING_RESULT, "renew_delegation_token failed: unknown result");
  2281. def cancel_delegation_token(self, token_str_form):
  2282. """
  2283. Parameters:
  2284. - token_str_form
  2285. """
  2286. self.send_cancel_delegation_token(token_str_form)
  2287. self.recv_cancel_delegation_token()
  2288. def send_cancel_delegation_token(self, token_str_form):
  2289. self._oprot.writeMessageBegin('cancel_delegation_token', TMessageType.CALL, self._seqid)
  2290. args = cancel_delegation_token_args()
  2291. args.token_str_form = token_str_form
  2292. args.write(self._oprot)
  2293. self._oprot.writeMessageEnd()
  2294. self._oprot.trans.flush()
  2295. def recv_cancel_delegation_token(self, ):
  2296. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2297. if mtype == TMessageType.EXCEPTION:
  2298. x = TApplicationException()
  2299. x.read(self._iprot)
  2300. self._iprot.readMessageEnd()
  2301. raise x
  2302. result = cancel_delegation_token_result()
  2303. result.read(self._iprot)
  2304. self._iprot.readMessageEnd()
  2305. if result.o1 is not None:
  2306. raise result.o1
  2307. return
  2308. class Processor(fb303.FacebookService.Processor, Iface, TProcessor):
  2309. def __init__(self, handler):
  2310. fb303.FacebookService.Processor.__init__(self, handler)
  2311. self._processMap["create_database"] = Processor.process_create_database
  2312. self._processMap["get_database"] = Processor.process_get_database
  2313. self._processMap["drop_database"] = Processor.process_drop_database
  2314. self._processMap["get_databases"] = Processor.process_get_databases
  2315. self._processMap["get_all_databases"] = Processor.process_get_all_databases
  2316. self._processMap["alter_database"] = Processor.process_alter_database
  2317. self._processMap["get_type"] = Processor.process_get_type
  2318. self._processMap["create_type"] = Processor.process_create_type
  2319. self._processMap["drop_type"] = Processor.process_drop_type
  2320. self._processMap["get_type_all"] = Processor.process_get_type_all
  2321. self._processMap["get_fields"] = Processor.process_get_fields
  2322. self._processMap["get_schema"] = Processor.process_get_schema
  2323. self._processMap["create_table"] = Processor.process_create_table
  2324. self._processMap["drop_table"] = Processor.process_drop_table
  2325. self._processMap["get_tables"] = Processor.process_get_tables
  2326. self._processMap["get_all_tables"] = Processor.process_get_all_tables
  2327. self._processMap["get_table"] = Processor.process_get_table
  2328. self._processMap["alter_table"] = Processor.process_alter_table
  2329. self._processMap["add_partition"] = Processor.process_add_partition
  2330. self._processMap["append_partition"] = Processor.process_append_partition
  2331. self._processMap["append_partition_by_name"] = Processor.process_append_partition_by_name
  2332. self._processMap["drop_partition"] = Processor.process_drop_partition
  2333. self._processMap["drop_partition_by_name"] = Processor.process_drop_partition_by_name
  2334. self._processMap["get_partition"] = Processor.process_get_partition
  2335. self._processMap["get_partition_with_auth"] = Processor.process_get_partition_with_auth
  2336. self._processMap["get_partition_by_name"] = Processor.process_get_partition_by_name
  2337. self._processMap["get_partitions"] = Processor.process_get_partitions
  2338. self._processMap["get_partitions_with_auth"] = Processor.process_get_partitions_with_auth
  2339. self._processMap["get_partition_names"] = Processor.process_get_partition_names
  2340. self._processMap["get_partitions_ps"] = Processor.process_get_partitions_ps
  2341. self._processMap["get_partitions_ps_with_auth"] = Processor.process_get_partitions_ps_with_auth
  2342. self._processMap["get_partition_names_ps"] = Processor.process_get_partition_names_ps
  2343. self._processMap["get_partitions_by_filter"] = Processor.process_get_partitions_by_filter
  2344. self._processMap["alter_partition"] = Processor.process_alter_partition
  2345. self._processMap["get_config_value"] = Processor.process_get_config_value
  2346. self._processMap["partition_name_to_vals"] = Processor.process_partition_name_to_vals
  2347. self._processMap["partition_name_to_spec"] = Processor.process_partition_name_to_spec
  2348. self._processMap["add_index"] = Processor.process_add_index
  2349. self._processMap["alter_index"] = Processor.process_alter_index
  2350. self._processMap["drop_index_by_name"] = Processor.process_drop_index_by_name
  2351. self._processMap["get_index_by_name"] = Processor.process_get_index_by_name
  2352. self._processMap["get_indexes"] = Processor.process_get_indexes
  2353. self._processMap["get_index_names"] = Processor.process_get_index_names
  2354. self._processMap["create_role"] = Processor.process_create_role
  2355. self._processMap["drop_role"] = Processor.process_drop_role
  2356. self._processMap["get_role_names"] = Processor.process_get_role_names
  2357. self._processMap["grant_role"] = Processor.process_grant_role
  2358. self._processMap["revoke_role"] = Processor.process_revoke_role
  2359. self._processMap["list_roles"] = Processor.process_list_roles
  2360. self._processMap["get_privilege_set"] = Processor.process_get_privilege_set
  2361. self._processMap["list_privileges"] = Processor.process_list_privileges
  2362. self._processMap["grant_privileges"] = Processor.process_grant_privileges
  2363. self._processMap["revoke_privileges"] = Processor.process_revoke_privileges
  2364. self._processMap["get_delegation_token"] = Processor.process_get_delegation_token
  2365. self._processMap["get_delegation_token_with_signature"] = Processor.process_get_delegation_token_with_signature
  2366. self._processMap["renew_delegation_token"] = Processor.process_renew_delegation_token
  2367. self._processMap["cancel_delegation_token"] = Processor.process_cancel_delegation_token
  2368. def process(self, iprot, oprot):
  2369. (name, type, seqid) = iprot.readMessageBegin()
  2370. if name not in self._processMap:
  2371. iprot.skip(TType.STRUCT)
  2372. iprot.readMessageEnd()
  2373. x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
  2374. oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
  2375. x.write(oprot)
  2376. oprot.writeMessageEnd()
  2377. oprot.trans.flush()
  2378. return
  2379. else:
  2380. self._processMap[name](self, seqid, iprot, oprot)
  2381. return True
  2382. def process_create_database(self, seqid, iprot, oprot):
  2383. args = create_database_args()
  2384. args.read(iprot)
  2385. iprot.readMessageEnd()
  2386. result = create_database_result()
  2387. try:
  2388. self._handler.create_database(args.database)
  2389. except AlreadyExistsException, o1:
  2390. result.o1 = o1
  2391. except InvalidObjectException, o2:
  2392. result.o2 = o2
  2393. except MetaException, o3:
  2394. result.o3 = o3
  2395. oprot.writeMessageBegin("create_database", TMessageType.REPLY, seqid)
  2396. result.write(oprot)
  2397. oprot.writeMessageEnd()
  2398. oprot.trans.flush()
  2399. def process_get_database(self, seqid, iprot, oprot):
  2400. args = get_database_args()
  2401. args.read(iprot)
  2402. iprot.readMessageEnd()
  2403. result = get_database_result()
  2404. try:
  2405. result.success = self._handler.get_database(args.name)
  2406. except NoSuchObjectException, o1:
  2407. result.o1 = o1
  2408. except MetaException, o2:
  2409. result.o2 = o2
  2410. oprot.writeMessageBegin("get_database", TMessageType.REPLY, seqid)
  2411. result.write(oprot)
  2412. oprot.writeMessageEnd()
  2413. oprot.trans.flush()
  2414. def process_drop_database(self, seqid, iprot, oprot):
  2415. args = drop_database_args()
  2416. args.read(iprot)
  2417. iprot.readMessageEnd()
  2418. result = drop_database_result()
  2419. try:
  2420. self._handler.drop_database(args.name, args.deleteData)
  2421. except NoSuchObjectException, o1:
  2422. result.o1 = o1
  2423. except InvalidOperationException, o2:
  2424. result.o2 = o2
  2425. except MetaException, o3:
  2426. result.o3 = o3
  2427. oprot.writeMessageBegin("drop_database", TMessageType.REPLY, seqid)
  2428. result.write(oprot)
  2429. oprot.writeMessageEnd()
  2430. oprot.trans.flush()
  2431. def process_get_databases(self, seqid, iprot, oprot):
  2432. args = get_databases_args()
  2433. args.read(iprot)
  2434. iprot.readMessageEnd()
  2435. result = get_databases_result()
  2436. try:
  2437. result.success = self._handler.get_databases(args.pattern)
  2438. except MetaException, o1:
  2439. result.o1 = o1
  2440. oprot.writeMessageBegin("get_databases", TMessageType.REPLY, seqid)
  2441. result.write(oprot)
  2442. oprot.writeMessageEnd()
  2443. oprot.trans.flush()
  2444. def process_get_all_databases(self, seqid, iprot, oprot):
  2445. args = get_all_databases_args()
  2446. args.read(iprot)
  2447. iprot.readMessageEnd()
  2448. result = get_all_databases_result()
  2449. try:
  2450. result.success = self._handler.get_all_databases()
  2451. except MetaException, o1:
  2452. result.o1 = o1
  2453. oprot.writeMessageBegin("get_all_databases", TMessageType.REPLY, seqid)
  2454. result.write(oprot)
  2455. oprot.writeMessageEnd()
  2456. oprot.trans.flush()
  2457. def process_alter_database(self, seqid, iprot, oprot):
  2458. args = alter_database_args()
  2459. args.read(iprot)
  2460. iprot.readMessageEnd()
  2461. result = alter_database_result()
  2462. try:
  2463. self._handler.alter_database(args.dbname, args.db)
  2464. except MetaException, o1:
  2465. result.o1 = o1
  2466. except NoSuchObjectException, o2:
  2467. result.o2 = o2
  2468. oprot.writeMessageBegin("alter_database", TMessageType.REPLY, seqid)
  2469. result.write(oprot)
  2470. oprot.writeMessageEnd()
  2471. oprot.trans.flush()
  2472. def process_get_type(self, seqid, iprot, oprot):
  2473. args = get_type_args()
  2474. args.read(iprot)
  2475. iprot.readMessageEnd()
  2476. result = get_type_result()
  2477. try:
  2478. result.success = self._handler.get_type(args.name)
  2479. except MetaException, o1:
  2480. result.o1 = o1
  2481. except NoSuchObjectException, o2:
  2482. result.o2 = o2
  2483. oprot.writeMessageBegin("get_type", TMessageType.REPLY, seqid)
  2484. result.write(oprot)
  2485. oprot.writeMessageEnd()
  2486. oprot.trans.flush()
  2487. def process_create_type(self, seqid, iprot, oprot):
  2488. args = create_type_args()
  2489. args.read(iprot)
  2490. iprot.readMessageEnd()
  2491. result = create_type_result()
  2492. try:
  2493. result.success = self._handler.create_type(args.type)
  2494. except AlreadyExistsException, o1:
  2495. result.o1 = o1
  2496. except InvalidObjectException, o2:
  2497. result.o2 = o2
  2498. except MetaException, o3:
  2499. result.o3 = o3
  2500. oprot.writeMessageBegin("create_type", TMessageType.REPLY, seqid)
  2501. result.write(oprot)
  2502. oprot.writeMessageEnd()
  2503. oprot.trans.flush()
  2504. def process_drop_type(self, seqid, iprot, oprot):
  2505. args = drop_type_args()
  2506. args.read(iprot)
  2507. iprot.readMessageEnd()
  2508. result = drop_type_result()
  2509. try:
  2510. result.success = self._handler.drop_type(args.type)
  2511. except MetaException, o1:
  2512. result.o1 = o1
  2513. except NoSuchObjectException, o2:
  2514. result.o2 = o2
  2515. oprot.writeMessageBegin("drop_type", TMessageType.REPLY, seqid)
  2516. result.write(oprot)
  2517. oprot.writeMessageEnd()
  2518. oprot.trans.flush()
  2519. def process_get_type_all(self, seqid, iprot, oprot):
  2520. args = get_type_all_args()
  2521. args.read(iprot)
  2522. iprot.readMessageEnd()
  2523. result = get_type_all_result()
  2524. try:
  2525. result.success = self._handler.get_type_all(args.name)
  2526. except MetaException, o2:
  2527. result.o2 = o2
  2528. oprot.writeMessageBegin("get_type_all", TMessageType.REPLY, seqid)
  2529. result.write(oprot)
  2530. oprot.writeMessageEnd()
  2531. oprot.trans.flush()
  2532. def process_get_fields(self, seqid, iprot, oprot):
  2533. args = get_fields_args()
  2534. args.read(iprot)
  2535. iprot.readMessageEnd()
  2536. result = get_fields_result()
  2537. try:
  2538. result.success = self._handler.get_fields(args.db_name, args.table_name)
  2539. except MetaException, o1:
  2540. result.o1 = o1
  2541. except UnknownTableException, o2:
  2542. result.o2 = o2
  2543. except UnknownDBException, o3:
  2544. result.o3 = o3
  2545. oprot.writeMessageBegin("get_fields", TMessageType.REPLY, seqid)
  2546. result.write(oprot)
  2547. oprot.writeMessageEnd()
  2548. oprot.trans.flush()
  2549. def process_get_schema(self, seqid, iprot, oprot):
  2550. args = get_schema_args()
  2551. args.read(iprot)
  2552. iprot.readMessageEnd()
  2553. result = get_schema_result()
  2554. try:
  2555. result.success = self._handler.get_schema(args.db_name, args.table_name)
  2556. except MetaException, o1:
  2557. result.o1 = o1
  2558. except UnknownTableException, o2:
  2559. result.o2 = o2
  2560. except UnknownDBException, o3:
  2561. result.o3 = o3
  2562. oprot.writeMessageBegin("get_schema", TMessageType.REPLY, seqid)
  2563. result.write(oprot)
  2564. oprot.writeMessageEnd()
  2565. oprot.trans.flush()
  2566. def process_create_table(self, seqid, iprot, oprot):
  2567. args = create_table_args()
  2568. args.read(iprot)
  2569. iprot.readMessageEnd()
  2570. result = create_table_result()
  2571. try:
  2572. self._handler.create_table(args.tbl)
  2573. except AlreadyExistsException, o1:
  2574. result.o1 = o1
  2575. except InvalidObjectException, o2:
  2576. result.o2 = o2
  2577. except MetaException, o3:
  2578. result.o3 = o3
  2579. except NoSuchObjectException, o4:
  2580. result.o4 = o4
  2581. oprot.writeMessageBegin("create_table", TMessageType.REPLY, seqid)
  2582. result.write(oprot)
  2583. oprot.writeMessageEnd()
  2584. oprot.trans.flush()
  2585. def process_drop_table(self, seqid, iprot, oprot):
  2586. args = drop_table_args()
  2587. args.read(iprot)
  2588. iprot.readMessageEnd()
  2589. result = drop_table_result()
  2590. try:
  2591. self._handler.drop_table(args.dbname, args.name, args.deleteData)
  2592. except NoSuchObjectException, o1:
  2593. result.o1 = o1
  2594. except MetaException, o3:
  2595. result.o3 = o3
  2596. oprot.writeMessageBegin("drop_table", TMessageType.REPLY, seqid)
  2597. result.write(oprot)
  2598. oprot.writeMessageEnd()
  2599. oprot.trans.flush()
  2600. def process_get_tables(self, seqid, iprot, oprot):
  2601. args = get_tables_args()
  2602. args.read(iprot)
  2603. iprot.readMessageEnd()
  2604. result = get_tables_result()
  2605. try:
  2606. result.success = self._handler.get_tables(args.db_name, args.pattern)
  2607. except MetaException, o1:
  2608. result.o1 = o1
  2609. oprot.writeMessageBegin("get_tables", TMessageType.REPLY, seqid)
  2610. result.write(oprot)
  2611. oprot.writeMessageEnd()
  2612. oprot.trans.flush()
  2613. def process_get_all_tables(self, seqid, iprot, oprot):
  2614. args = get_all_tables_args()
  2615. args.read(iprot)
  2616. iprot.readMessageEnd()
  2617. result = get_all_tables_result()
  2618. try:
  2619. result.success = self._handler.get_all_tables(args.db_name)
  2620. except MetaException, o1:
  2621. result.o1 = o1
  2622. oprot.writeMessageBegin("get_all_tables", TMessageType.REPLY, seqid)
  2623. result.write(oprot)
  2624. oprot.writeMessageEnd()
  2625. oprot.trans.flush()
  2626. def process_get_table(self, seqid, iprot, oprot):
  2627. args = get_table_args()
  2628. args.read(iprot)
  2629. iprot.readMessageEnd()
  2630. result = get_table_result()
  2631. try:
  2632. result.success = self._handler.get_table(args.dbname, args.tbl_name)
  2633. except MetaException, o1:
  2634. result.o1 = o1
  2635. except NoSuchObjectException, o2:
  2636. result.o2 = o2
  2637. oprot.writeMessageBegin("get_table", TMessageType.REPLY, seqid)
  2638. result.write(oprot)
  2639. oprot.writeMessageEnd()
  2640. oprot.trans.flush()
  2641. def process_alter_table(self, seqid, iprot, oprot):
  2642. args = alter_table_args()
  2643. args.read(iprot)
  2644. iprot.readMessageEnd()
  2645. result = alter_table_result()
  2646. try:
  2647. self._handler.alter_table(args.dbname, args.tbl_name, args.new_tbl)
  2648. except InvalidOperationException, o1:
  2649. result.o1 = o1
  2650. except MetaException, o2:
  2651. result.o2 = o2
  2652. oprot.writeMessageBegin("alter_table", TMessageType.REPLY, seqid)
  2653. result.write(oprot)
  2654. oprot.writeMessageEnd()
  2655. oprot.trans.flush()
  2656. def process_add_partition(self, seqid, iprot, oprot):
  2657. args = add_partition_args()
  2658. args.read(iprot)
  2659. iprot.readMessageEnd()
  2660. result = add_partition_result()
  2661. try:
  2662. result.success = self._handler.add_partition(args.new_part)
  2663. except InvalidObjectException, o1:
  2664. result.o1 = o1
  2665. except AlreadyExistsException, o2:
  2666. result.o2 = o2
  2667. except MetaException, o3:
  2668. result.o3 = o3
  2669. oprot.writeMessageBegin("add_partition", TMessageType.REPLY, seqid)
  2670. result.write(oprot)
  2671. oprot.writeMessageEnd()
  2672. oprot.trans.flush()
  2673. def process_append_partition(self, seqid, iprot, oprot):
  2674. args = append_partition_args()
  2675. args.read(iprot)
  2676. iprot.readMessageEnd()
  2677. result = append_partition_result()
  2678. try:
  2679. result.success = self._handler.append_partition(args.db_name, args.tbl_name, args.part_vals)
  2680. except InvalidObjectException, o1:
  2681. result.o1 = o1
  2682. except AlreadyExistsException, o2:
  2683. result.o2 = o2
  2684. except MetaException, o3:
  2685. result.o3 = o3
  2686. oprot.writeMessageBegin("append_partition", TMessageType.REPLY, seqid)
  2687. result.write(oprot)
  2688. oprot.writeMessageEnd()
  2689. oprot.trans.flush()
  2690. def process_append_partition_by_name(self, seqid, iprot, oprot):
  2691. args = append_partition_by_name_args()
  2692. args.read(iprot)
  2693. iprot.readMessageEnd()
  2694. result = append_partition_by_name_result()
  2695. try:
  2696. result.success = self._handler.append_partition_by_name(args.db_name, args.tbl_name, args.part_name)
  2697. except InvalidObjectException, o1:
  2698. result.o1 = o1
  2699. except AlreadyExistsException, o2:
  2700. result.o2 = o2
  2701. except MetaException, o3:
  2702. result.o3 = o3
  2703. oprot.writeMessageBegin("append_partition_by_name", TMessageType.REPLY, seqid)
  2704. result.write(oprot)
  2705. oprot.writeMessageEnd()
  2706. oprot.trans.flush()
  2707. def process_drop_partition(self, seqid, iprot, oprot):
  2708. args = drop_partition_args()
  2709. args.read(iprot)
  2710. iprot.readMessageEnd()
  2711. result = drop_partition_result()
  2712. try:
  2713. result.success = self._handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData)
  2714. except NoSuchObjectException, o1:
  2715. result.o1 = o1
  2716. except MetaException, o2:
  2717. result.o2 = o2
  2718. oprot.writeMessageBegin("drop_partition", TMessageType.REPLY, seqid)
  2719. result.write(oprot)
  2720. oprot.writeMessageEnd()
  2721. oprot.trans.flush()
  2722. def process_drop_partition_by_name(self, seqid, iprot, oprot):
  2723. args = drop_partition_by_name_args()
  2724. args.read(iprot)
  2725. iprot.readMessageEnd()
  2726. result = drop_partition_by_name_result()
  2727. try:
  2728. result.success = self._handler.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData)
  2729. except NoSuchObjectException, o1:
  2730. result.o1 = o1
  2731. except MetaException, o2:
  2732. result.o2 = o2
  2733. oprot.writeMessageBegin("drop_partition_by_name", TMessageType.REPLY, seqid)
  2734. result.write(oprot)
  2735. oprot.writeMessageEnd()
  2736. oprot.trans.flush()
  2737. def process_get_partition(self, seqid, iprot, oprot):
  2738. args = get_partition_args()
  2739. args.read(iprot)
  2740. iprot.readMessageEnd()
  2741. result = get_partition_result()
  2742. try:
  2743. result.success = self._handler.get_partition(args.db_name, args.tbl_name, args.part_vals)
  2744. except MetaException, o1:
  2745. result.o1 = o1
  2746. except NoSuchObjectException, o2:
  2747. result.o2 = o2
  2748. oprot.writeMessageBegin("get_partition", TMessageType.REPLY, seqid)
  2749. result.write(oprot)
  2750. oprot.writeMessageEnd()
  2751. oprot.trans.flush()
  2752. def process_get_partition_with_auth(self, seqid, iprot, oprot):
  2753. args = get_partition_with_auth_args()
  2754. args.read(iprot)
  2755. iprot.readMessageEnd()
  2756. result = get_partition_with_auth_result()
  2757. try:
  2758. result.success = self._handler.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names)
  2759. except MetaException, o1:
  2760. result.o1 = o1
  2761. except NoSuchObjectException, o2:
  2762. result.o2 = o2
  2763. oprot.writeMessageBegin("get_partition_with_auth", TMessageType.REPLY, seqid)
  2764. result.write(oprot)
  2765. oprot.writeMessageEnd()
  2766. oprot.trans.flush()
  2767. def process_get_partition_by_name(self, seqid, iprot, oprot):
  2768. args = get_partition_by_name_args()
  2769. args.read(iprot)
  2770. iprot.readMessageEnd()
  2771. result = get_partition_by_name_result()
  2772. try:
  2773. result.success = self._handler.get_partition_by_name(args.db_name, args.tbl_name, args.part_name)
  2774. except MetaException, o1:
  2775. result.o1 = o1
  2776. except NoSuchObjectException, o2:
  2777. result.o2 = o2
  2778. oprot.writeMessageBegin("get_partition_by_name", TMessageType.REPLY, seqid)
  2779. result.write(oprot)
  2780. oprot.writeMessageEnd()
  2781. oprot.trans.flush()
  2782. def process_get_partitions(self, seqid, iprot, oprot):
  2783. args = get_partitions_args()
  2784. args.read(iprot)
  2785. iprot.readMessageEnd()
  2786. result = get_partitions_result()
  2787. try:
  2788. result.success = self._handler.get_partitions(args.db_name, args.tbl_name, args.max_parts)
  2789. except NoSuchObjectException, o1:
  2790. result.o1 = o1
  2791. except MetaException, o2:
  2792. result.o2 = o2
  2793. oprot.writeMessageBegin("get_partitions", TMessageType.REPLY, seqid)
  2794. result.write(oprot)
  2795. oprot.writeMessageEnd()
  2796. oprot.trans.flush()
  2797. def process_get_partitions_with_auth(self, seqid, iprot, oprot):
  2798. args = get_partitions_with_auth_args()
  2799. args.read(iprot)
  2800. iprot.readMessageEnd()
  2801. result = get_partitions_with_auth_result()
  2802. try:
  2803. result.success = self._handler.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names)
  2804. except NoSuchObjectException, o1:
  2805. result.o1 = o1
  2806. except MetaException, o2:
  2807. result.o2 = o2
  2808. oprot.writeMessageBegin("get_partitions_with_auth", TMessageType.REPLY, seqid)
  2809. result.write(oprot)
  2810. oprot.writeMessageEnd()
  2811. oprot.trans.flush()
  2812. def process_get_partition_names(self, seqid, iprot, oprot):
  2813. args = get_partition_names_args()
  2814. args.read(iprot)
  2815. iprot.readMessageEnd()
  2816. result = get_partition_names_result()
  2817. try:
  2818. result.success = self._handler.get_partition_names(args.db_name, args.tbl_name, args.max_parts)
  2819. except MetaException, o2:
  2820. result.o2 = o2
  2821. oprot.writeMessageBegin("get_partition_names", TMessageType.REPLY, seqid)
  2822. result.write(oprot)
  2823. oprot.writeMessageEnd()
  2824. oprot.trans.flush()
  2825. def process_get_partitions_ps(self, seqid, iprot, oprot):
  2826. args = get_partitions_ps_args()
  2827. args.read(iprot)
  2828. iprot.readMessageEnd()
  2829. result = get_partitions_ps_result()
  2830. try:
  2831. result.success = self._handler.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
  2832. except MetaException, o1:
  2833. result.o1 = o1
  2834. oprot.writeMessageBegin("get_partitions_ps", TMessageType.REPLY, seqid)
  2835. result.write(oprot)
  2836. oprot.writeMessageEnd()
  2837. oprot.trans.flush()
  2838. def process_get_partitions_ps_with_auth(self, seqid, iprot, oprot):
  2839. args = get_partitions_ps_with_auth_args()
  2840. args.read(iprot)
  2841. iprot.readMessageEnd()
  2842. result = get_partitions_ps_with_auth_result()
  2843. try:
  2844. 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)
  2845. except NoSuchObjectException, o1:
  2846. result.o1 = o1
  2847. except MetaException, o2:
  2848. result.o2 = o2
  2849. oprot.writeMessageBegin("get_partitions_ps_with_auth", TMessageType.REPLY, seqid)
  2850. result.write(oprot)
  2851. oprot.writeMessageEnd()
  2852. oprot.trans.flush()
  2853. def process_get_partition_names_ps(self, seqid, iprot, oprot):
  2854. args = get_partition_names_ps_args()
  2855. args.read(iprot)
  2856. iprot.readMessageEnd()
  2857. result = get_partition_names_ps_result()
  2858. try:
  2859. result.success = self._handler.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
  2860. except MetaException, o1:
  2861. result.o1 = o1
  2862. oprot.writeMessageBegin("get_partition_names_ps", TMessageType.REPLY, seqid)
  2863. result.write(oprot)
  2864. oprot.writeMessageEnd()
  2865. oprot.trans.flush()
  2866. def process_get_partitions_by_filter(self, seqid, iprot, oprot):
  2867. args = get_partitions_by_filter_args()
  2868. args.read(iprot)
  2869. iprot.readMessageEnd()
  2870. result = get_partitions_by_filter_result()
  2871. try:
  2872. result.success = self._handler.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts)
  2873. except MetaException, o1:
  2874. result.o1 = o1
  2875. except NoSuchObjectException, o2:
  2876. result.o2 = o2
  2877. oprot.writeMessageBegin("get_partitions_by_filter", TMessageType.REPLY, seqid)
  2878. result.write(oprot)
  2879. oprot.writeMessageEnd()
  2880. oprot.trans.flush()
  2881. def process_alter_partition(self, seqid, iprot, oprot):
  2882. args = alter_partition_args()
  2883. args.read(iprot)
  2884. iprot.readMessageEnd()
  2885. result = alter_partition_result()
  2886. try:
  2887. self._handler.alter_partition(args.db_name, args.tbl_name, args.new_part)
  2888. except InvalidOperationException, o1:
  2889. result.o1 = o1
  2890. except MetaException, o2:
  2891. result.o2 = o2
  2892. oprot.writeMessageBegin("alter_partition", TMessageType.REPLY, seqid)
  2893. result.write(oprot)
  2894. oprot.writeMessageEnd()
  2895. oprot.trans.flush()
  2896. def process_get_config_value(self, seqid, iprot, oprot):
  2897. args = get_config_value_args()
  2898. args.read(iprot)
  2899. iprot.readMessageEnd()
  2900. result = get_config_value_result()
  2901. try:
  2902. result.success = self._handler.get_config_value(args.name, args.defaultValue)
  2903. except ConfigValSecurityException, o1:
  2904. result.o1 = o1
  2905. oprot.writeMessageBegin("get_config_value", TMessageType.REPLY, seqid)
  2906. result.write(oprot)
  2907. oprot.writeMessageEnd()
  2908. oprot.trans.flush()
  2909. def process_partition_name_to_vals(self, seqid, iprot, oprot):
  2910. args = partition_name_to_vals_args()
  2911. args.read(iprot)
  2912. iprot.readMessageEnd()
  2913. result = partition_name_to_vals_result()
  2914. try:
  2915. result.success = self._handler.partition_name_to_vals(args.part_name)
  2916. except MetaException, o1:
  2917. result.o1 = o1
  2918. oprot.writeMessageBegin("partition_name_to_vals", TMessageType.REPLY, seqid)
  2919. result.write(oprot)
  2920. oprot.writeMessageEnd()
  2921. oprot.trans.flush()
  2922. def process_partition_name_to_spec(self, seqid, iprot, oprot):
  2923. args = partition_name_to_spec_args()
  2924. args.read(iprot)
  2925. iprot.readMessageEnd()
  2926. result = partition_name_to_spec_result()
  2927. try:
  2928. result.success = self._handler.partition_name_to_spec(args.part_name)
  2929. except MetaException, o1:
  2930. result.o1 = o1
  2931. oprot.writeMessageBegin("partition_name_to_spec", TMessageType.REPLY, seqid)
  2932. result.write(oprot)
  2933. oprot.writeMessageEnd()
  2934. oprot.trans.flush()
  2935. def process_add_index(self, seqid, iprot, oprot):
  2936. args = add_index_args()
  2937. args.read(iprot)
  2938. iprot.readMessageEnd()
  2939. result = add_index_result()
  2940. try:
  2941. result.success = self._handler.add_index(args.new_index, args.index_table)
  2942. except InvalidObjectException, o1:
  2943. result.o1 = o1
  2944. except AlreadyExistsException, o2:
  2945. result.o2 = o2
  2946. except MetaException, o3:
  2947. result.o3 = o3
  2948. oprot.writeMessageBegin("add_index", TMessageType.REPLY, seqid)
  2949. result.write(oprot)
  2950. oprot.writeMessageEnd()
  2951. oprot.trans.flush()
  2952. def process_alter_index(self, seqid, iprot, oprot):
  2953. args = alter_index_args()
  2954. args.read(iprot)
  2955. iprot.readMessageEnd()
  2956. result = alter_index_result()
  2957. try:
  2958. self._handler.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx)
  2959. except InvalidOperationException, o1:
  2960. result.o1 = o1
  2961. except MetaException, o2:
  2962. result.o2 = o2
  2963. oprot.writeMessageBegin("alter_index", TMessageType.REPLY, seqid)
  2964. result.write(oprot)
  2965. oprot.writeMessageEnd()
  2966. oprot.trans.flush()
  2967. def process_drop_index_by_name(self, seqid, iprot, oprot):
  2968. args = drop_index_by_name_args()
  2969. args.read(iprot)
  2970. iprot.readMessageEnd()
  2971. result = drop_index_by_name_result()
  2972. try:
  2973. result.success = self._handler.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData)
  2974. except NoSuchObjectException, o1:
  2975. result.o1 = o1
  2976. except MetaException, o2:
  2977. result.o2 = o2
  2978. oprot.writeMessageBegin("drop_index_by_name", TMessageType.REPLY, seqid)
  2979. result.write(oprot)
  2980. oprot.writeMessageEnd()
  2981. oprot.trans.flush()
  2982. def process_get_index_by_name(self, seqid, iprot, oprot):
  2983. args = get_index_by_name_args()
  2984. args.read(iprot)
  2985. iprot.readMessageEnd()
  2986. result = get_index_by_name_result()
  2987. try:
  2988. result.success = self._handler.get_index_by_name(args.db_name, args.tbl_name, args.index_name)
  2989. except MetaException, o1:
  2990. result.o1 = o1
  2991. except NoSuchObjectException, o2:
  2992. result.o2 = o2
  2993. oprot.writeMessageBegin("get_index_by_name", TMessageType.REPLY, seqid)
  2994. result.write(oprot)
  2995. oprot.writeMessageEnd()
  2996. oprot.trans.flush()
  2997. def process_get_indexes(self, seqid, iprot, oprot):
  2998. args = get_indexes_args()
  2999. args.read(iprot)
  3000. iprot.readMessageEnd()
  3001. result = get_indexes_result()
  3002. try:
  3003. result.success = self._handler.get_indexes(args.db_name, args.tbl_name, args.max_indexes)
  3004. except NoSuchObjectException, o1:
  3005. result.o1 = o1
  3006. except MetaException, o2:
  3007. result.o2 = o2
  3008. oprot.writeMessageBegin("get_indexes", TMessageType.REPLY, seqid)
  3009. result.write(oprot)
  3010. oprot.writeMessageEnd()
  3011. oprot.trans.flush()
  3012. def process_get_index_names(self, seqid, iprot, oprot):
  3013. args = get_index_names_args()
  3014. args.read(iprot)
  3015. iprot.readMessageEnd()
  3016. result = get_index_names_result()
  3017. try:
  3018. result.success = self._handler.get_index_names(args.db_name, args.tbl_name, args.max_indexes)
  3019. except MetaException, o2:
  3020. result.o2 = o2
  3021. oprot.writeMessageBegin("get_index_names", TMessageType.REPLY, seqid)
  3022. result.write(oprot)
  3023. oprot.writeMessageEnd()
  3024. oprot.trans.flush()
  3025. def process_create_role(self, seqid, iprot, oprot):
  3026. args = create_role_args()
  3027. args.read(iprot)
  3028. iprot.readMessageEnd()
  3029. result = create_role_result()
  3030. try:
  3031. result.success = self._handler.create_role(args.role)
  3032. except MetaException, o1:
  3033. result.o1 = o1
  3034. oprot.writeMessageBegin("create_role", TMessageType.REPLY, seqid)
  3035. result.write(oprot)
  3036. oprot.writeMessageEnd()
  3037. oprot.trans.flush()
  3038. def process_drop_role(self, seqid, iprot, oprot):
  3039. args = drop_role_args()
  3040. args.read(iprot)
  3041. iprot.readMessageEnd()
  3042. result = drop_role_result()
  3043. try:
  3044. result.success = self._handler.drop_role(args.role_name)
  3045. except MetaException, o1:
  3046. result.o1 = o1
  3047. oprot.writeMessageBegin("drop_role", TMessageType.REPLY, seqid)
  3048. result.write(oprot)
  3049. oprot.writeMessageEnd()
  3050. oprot.trans.flush()
  3051. def process_get_role_names(self, seqid, iprot, oprot):
  3052. args = get_role_names_args()
  3053. args.read(iprot)
  3054. iprot.readMessageEnd()
  3055. result = get_role_names_result()
  3056. try:
  3057. result.success = self._handler.get_role_names()
  3058. except MetaException, o1:
  3059. result.o1 = o1
  3060. oprot.writeMessageBegin("get_role_names", TMessageType.REPLY, seqid)
  3061. result.write(oprot)
  3062. oprot.writeMessageEnd()
  3063. oprot.trans.flush()
  3064. def process_grant_role(self, seqid, iprot, oprot):
  3065. args = grant_role_args()
  3066. args.read(iprot)
  3067. iprot.readMessageEnd()
  3068. result = grant_role_result()
  3069. try:
  3070. result.success = self._handler.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option)
  3071. except MetaException, o1:
  3072. result.o1 = o1
  3073. oprot.writeMessageBegin("grant_role", TMessageType.REPLY, seqid)
  3074. result.write(oprot)
  3075. oprot.writeMessageEnd()
  3076. oprot.trans.flush()
  3077. def process_revoke_role(self, seqid, iprot, oprot):
  3078. args = revoke_role_args()
  3079. args.read(iprot)
  3080. iprot.readMessageEnd()
  3081. result = revoke_role_result()
  3082. try:
  3083. result.success = self._handler.revoke_role(args.role_name, args.principal_name, args.principal_type)
  3084. except MetaException, o1:
  3085. result.o1 = o1
  3086. oprot.writeMessageBegin("revoke_role", TMessageType.REPLY, seqid)
  3087. result.write(oprot)
  3088. oprot.writeMessageEnd()
  3089. oprot.trans.flush()
  3090. def process_list_roles(self, seqid, iprot, oprot):
  3091. args = list_roles_args()
  3092. args.read(iprot)
  3093. iprot.readMessageEnd()
  3094. result = list_roles_result()
  3095. try:
  3096. result.success = self._handler.list_roles(args.principal_name, args.principal_type)
  3097. except MetaException, o1:
  3098. result.o1 = o1
  3099. oprot.writeMessageBegin("list_roles", TMessageType.REPLY, seqid)
  3100. result.write(oprot)
  3101. oprot.writeMessageEnd()
  3102. oprot.trans.flush()
  3103. def process_get_privilege_set(self, seqid, iprot, oprot):
  3104. args = get_privilege_set_args()
  3105. args.read(iprot)
  3106. iprot.readMessageEnd()
  3107. result = get_privilege_set_result()
  3108. try:
  3109. result.success = self._handler.get_privilege_set(args.hiveObject, args.user_name, args.group_names)
  3110. except MetaException, o1:
  3111. result.o1 = o1
  3112. oprot.writeMessageBegin("get_privilege_set", TMessageType.REPLY, seqid)
  3113. result.write(oprot)
  3114. oprot.writeMessageEnd()
  3115. oprot.trans.flush()
  3116. def process_list_privileges(self, seqid, iprot, oprot):
  3117. args = list_privileges_args()
  3118. args.read(iprot)
  3119. iprot.readMessageEnd()
  3120. result = list_privileges_result()
  3121. try:
  3122. result.success = self._handler.list_privileges(args.principal_name, args.principal_type, args.hiveObject)
  3123. except MetaException, o1:
  3124. result.o1 = o1
  3125. oprot.writeMessageBegin("list_privileges", TMessageType.REPLY, seqid)
  3126. result.write(oprot)
  3127. oprot.writeMessageEnd()
  3128. oprot.trans.flush()
  3129. def process_grant_privileges(self, seqid, iprot, oprot):
  3130. args = grant_privileges_args()
  3131. args.read(iprot)
  3132. iprot.readMessageEnd()
  3133. result = grant_privileges_result()
  3134. try:
  3135. result.success = self._handler.grant_privileges(args.privileges)
  3136. except MetaException, o1:
  3137. result.o1 = o1
  3138. oprot.writeMessageBegin("grant_privileges", TMessageType.REPLY, seqid)
  3139. result.write(oprot)
  3140. oprot.writeMessageEnd()
  3141. oprot.trans.flush()
  3142. def process_revoke_privileges(self, seqid, iprot, oprot):
  3143. args = revoke_privileges_args()
  3144. args.read(iprot)
  3145. iprot.readMessageEnd()
  3146. result = revoke_privileges_result()
  3147. try:
  3148. result.success = self._handler.revoke_privileges(args.privileges)
  3149. except MetaException, o1:
  3150. result.o1 = o1
  3151. oprot.writeMessageBegin("revoke_privileges", TMessageType.REPLY, seqid)
  3152. result.write(oprot)
  3153. oprot.writeMessageEnd()
  3154. oprot.trans.flush()
  3155. def process_get_delegation_token(self, seqid, iprot, oprot):
  3156. args = get_delegation_token_args()
  3157. args.read(iprot)
  3158. iprot.readMessageEnd()
  3159. result = get_delegation_token_result()
  3160. try:
  3161. result.success = self._handler.get_delegation_token(args.renewer_kerberos_principal_name)
  3162. except MetaException, o1:
  3163. result.o1 = o1
  3164. oprot.writeMessageBegin("get_delegation_token", TMessageType.REPLY, seqid)
  3165. result.write(oprot)
  3166. oprot.writeMessageEnd()
  3167. oprot.trans.flush()
  3168. def process_get_delegation_token_with_signature(self, seqid, iprot, oprot):
  3169. args = get_delegation_token_with_signature_args()
  3170. args.read(iprot)
  3171. iprot.readMessageEnd()
  3172. result = get_delegation_token_with_signature_result()
  3173. try:
  3174. result.success = self._handler.get_delegation_token_with_signature(args.renewer_kerberos_principal_name, args.token_signature)
  3175. except MetaException, o1:
  3176. result.o1 = o1
  3177. oprot.writeMessageBegin("get_delegation_token_with_signature", TMessageType.REPLY, seqid)
  3178. result.write(oprot)
  3179. oprot.writeMessageEnd()
  3180. oprot.trans.flush()
  3181. def process_renew_delegation_token(self, seqid, iprot, oprot):
  3182. args = renew_delegation_token_args()
  3183. args.read(iprot)
  3184. iprot.readMessageEnd()
  3185. result = renew_delegation_token_result()
  3186. try:
  3187. result.success = self._handler.renew_delegation_token(args.token_str_form)
  3188. except MetaException, o1:
  3189. result.o1 = o1
  3190. oprot.writeMessageBegin("renew_delegation_token", TMessageType.REPLY, seqid)
  3191. result.write(oprot)
  3192. oprot.writeMessageEnd()
  3193. oprot.trans.flush()
  3194. def process_cancel_delegation_token(self, seqid, iprot, oprot):
  3195. args = cancel_delegation_token_args()
  3196. args.read(iprot)
  3197. iprot.readMessageEnd()
  3198. result = cancel_delegation_token_result()
  3199. try:
  3200. self._handler.cancel_delegation_token(args.token_str_form)
  3201. except MetaException, o1:
  3202. result.o1 = o1
  3203. oprot.writeMessageBegin("cancel_delegation_token", TMessageType.REPLY, seqid)
  3204. result.write(oprot)
  3205. oprot.writeMessageEnd()
  3206. oprot.trans.flush()
  3207. # HELPER FUNCTIONS AND STRUCTURES
  3208. class create_database_args(object):
  3209. """
  3210. Attributes:
  3211. - database
  3212. """
  3213. thrift_spec = (
  3214. None, # 0
  3215. (1, TType.STRUCT, 'database', (Database, Database.thrift_spec), None, ), # 1
  3216. )
  3217. def __init__(self, database=None,):
  3218. self.database = database
  3219. def read(self, iprot):
  3220. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3221. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3222. return
  3223. iprot.readStructBegin()
  3224. while True:
  3225. (fname, ftype, fid) = iprot.readFieldBegin()
  3226. if ftype == TType.STOP:
  3227. break
  3228. if fid == 1:
  3229. if ftype == TType.STRUCT:
  3230. self.database = Database()
  3231. self.database.read(iprot)
  3232. else:
  3233. iprot.skip(ftype)
  3234. else:
  3235. iprot.skip(ftype)
  3236. iprot.readFieldEnd()
  3237. iprot.readStructEnd()
  3238. def write(self, oprot):
  3239. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3240. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3241. return
  3242. oprot.writeStructBegin('create_database_args')
  3243. if self.database is not None:
  3244. oprot.writeFieldBegin('database', TType.STRUCT, 1)
  3245. self.database.write(oprot)
  3246. oprot.writeFieldEnd()
  3247. oprot.writeFieldStop()
  3248. oprot.writeStructEnd()
  3249. def validate(self):
  3250. return
  3251. def __repr__(self):
  3252. L = ['%s=%r' % (key, value)
  3253. for key, value in self.__dict__.iteritems()]
  3254. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3255. def __eq__(self, other):
  3256. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3257. def __ne__(self, other):
  3258. return not (self == other)
  3259. class create_database_result(object):
  3260. """
  3261. Attributes:
  3262. - o1
  3263. - o2
  3264. - o3
  3265. """
  3266. thrift_spec = (
  3267. None, # 0
  3268. (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1
  3269. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  3270. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  3271. )
  3272. def __init__(self, o1=None, o2=None, o3=None,):
  3273. self.o1 = o1
  3274. self.o2 = o2
  3275. self.o3 = o3
  3276. def read(self, iprot):
  3277. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3278. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3279. return
  3280. iprot.readStructBegin()
  3281. while True:
  3282. (fname, ftype, fid) = iprot.readFieldBegin()
  3283. if ftype == TType.STOP:
  3284. break
  3285. if fid == 1:
  3286. if ftype == TType.STRUCT:
  3287. self.o1 = AlreadyExistsException()
  3288. self.o1.read(iprot)
  3289. else:
  3290. iprot.skip(ftype)
  3291. elif fid == 2:
  3292. if ftype == TType.STRUCT:
  3293. self.o2 = InvalidObjectException()
  3294. self.o2.read(iprot)
  3295. else:
  3296. iprot.skip(ftype)
  3297. elif fid == 3:
  3298. if ftype == TType.STRUCT:
  3299. self.o3 = MetaException()
  3300. self.o3.read(iprot)
  3301. else:
  3302. iprot.skip(ftype)
  3303. else:
  3304. iprot.skip(ftype)
  3305. iprot.readFieldEnd()
  3306. iprot.readStructEnd()
  3307. def write(self, oprot):
  3308. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3309. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3310. return
  3311. oprot.writeStructBegin('create_database_result')
  3312. if self.o1 is not None:
  3313. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  3314. self.o1.write(oprot)
  3315. oprot.writeFieldEnd()
  3316. if self.o2 is not None:
  3317. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  3318. self.o2.write(oprot)
  3319. oprot.writeFieldEnd()
  3320. if self.o3 is not None:
  3321. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  3322. self.o3.write(oprot)
  3323. oprot.writeFieldEnd()
  3324. oprot.writeFieldStop()
  3325. oprot.writeStructEnd()
  3326. def validate(self):
  3327. return
  3328. def __repr__(self):
  3329. L = ['%s=%r' % (key, value)
  3330. for key, value in self.__dict__.iteritems()]
  3331. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3332. def __eq__(self, other):
  3333. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3334. def __ne__(self, other):
  3335. return not (self == other)
  3336. class get_database_args(object):
  3337. """
  3338. Attributes:
  3339. - name
  3340. """
  3341. thrift_spec = (
  3342. None, # 0
  3343. (1, TType.STRING, 'name', None, None, ), # 1
  3344. )
  3345. def __init__(self, name=None,):
  3346. self.name = name
  3347. def read(self, iprot):
  3348. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3349. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3350. return
  3351. iprot.readStructBegin()
  3352. while True:
  3353. (fname, ftype, fid) = iprot.readFieldBegin()
  3354. if ftype == TType.STOP:
  3355. break
  3356. if fid == 1:
  3357. if ftype == TType.STRING:
  3358. self.name = iprot.readString();
  3359. else:
  3360. iprot.skip(ftype)
  3361. else:
  3362. iprot.skip(ftype)
  3363. iprot.readFieldEnd()
  3364. iprot.readStructEnd()
  3365. def write(self, oprot):
  3366. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3367. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3368. return
  3369. oprot.writeStructBegin('get_database_args')
  3370. if self.name is not None:
  3371. oprot.writeFieldBegin('name', TType.STRING, 1)
  3372. oprot.writeString(self.name)
  3373. oprot.writeFieldEnd()
  3374. oprot.writeFieldStop()
  3375. oprot.writeStructEnd()
  3376. def validate(self):
  3377. return
  3378. def __repr__(self):
  3379. L = ['%s=%r' % (key, value)
  3380. for key, value in self.__dict__.iteritems()]
  3381. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3382. def __eq__(self, other):
  3383. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3384. def __ne__(self, other):
  3385. return not (self == other)
  3386. class get_database_result(object):
  3387. """
  3388. Attributes:
  3389. - success
  3390. - o1
  3391. - o2
  3392. """
  3393. thrift_spec = (
  3394. (0, TType.STRUCT, 'success', (Database, Database.thrift_spec), None, ), # 0
  3395. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  3396. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  3397. )
  3398. def __init__(self, success=None, o1=None, o2=None,):
  3399. self.success = success
  3400. self.o1 = o1
  3401. self.o2 = o2
  3402. def read(self, iprot):
  3403. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3404. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3405. return
  3406. iprot.readStructBegin()
  3407. while True:
  3408. (fname, ftype, fid) = iprot.readFieldBegin()
  3409. if ftype == TType.STOP:
  3410. break
  3411. if fid == 0:
  3412. if ftype == TType.STRUCT:
  3413. self.success = Database()
  3414. self.success.read(iprot)
  3415. else:
  3416. iprot.skip(ftype)
  3417. elif fid == 1:
  3418. if ftype == TType.STRUCT:
  3419. self.o1 = NoSuchObjectException()
  3420. self.o1.read(iprot)
  3421. else:
  3422. iprot.skip(ftype)
  3423. elif fid == 2:
  3424. if ftype == TType.STRUCT:
  3425. self.o2 = MetaException()
  3426. self.o2.read(iprot)
  3427. else:
  3428. iprot.skip(ftype)
  3429. else:
  3430. iprot.skip(ftype)
  3431. iprot.readFieldEnd()
  3432. iprot.readStructEnd()
  3433. def write(self, oprot):
  3434. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3435. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3436. return
  3437. oprot.writeStructBegin('get_database_result')
  3438. if self.success is not None:
  3439. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  3440. self.success.write(oprot)
  3441. oprot.writeFieldEnd()
  3442. if self.o1 is not None:
  3443. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  3444. self.o1.write(oprot)
  3445. oprot.writeFieldEnd()
  3446. if self.o2 is not None:
  3447. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  3448. self.o2.write(oprot)
  3449. oprot.writeFieldEnd()
  3450. oprot.writeFieldStop()
  3451. oprot.writeStructEnd()
  3452. def validate(self):
  3453. return
  3454. def __repr__(self):
  3455. L = ['%s=%r' % (key, value)
  3456. for key, value in self.__dict__.iteritems()]
  3457. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3458. def __eq__(self, other):
  3459. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3460. def __ne__(self, other):
  3461. return not (self == other)
  3462. class drop_database_args(object):
  3463. """
  3464. Attributes:
  3465. - name
  3466. - deleteData
  3467. """
  3468. thrift_spec = (
  3469. None, # 0
  3470. (1, TType.STRING, 'name', None, None, ), # 1
  3471. (2, TType.BOOL, 'deleteData', None, None, ), # 2
  3472. )
  3473. def __init__(self, name=None, deleteData=None,):
  3474. self.name = name
  3475. self.deleteData = deleteData
  3476. def read(self, iprot):
  3477. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3478. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3479. return
  3480. iprot.readStructBegin()
  3481. while True:
  3482. (fname, ftype, fid) = iprot.readFieldBegin()
  3483. if ftype == TType.STOP:
  3484. break
  3485. if fid == 1:
  3486. if ftype == TType.STRING:
  3487. self.name = iprot.readString();
  3488. else:
  3489. iprot.skip(ftype)
  3490. elif fid == 2:
  3491. if ftype == TType.BOOL:
  3492. self.deleteData = iprot.readBool();
  3493. else:
  3494. iprot.skip(ftype)
  3495. else:
  3496. iprot.skip(ftype)
  3497. iprot.readFieldEnd()
  3498. iprot.readStructEnd()
  3499. def write(self, oprot):
  3500. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3501. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3502. return
  3503. oprot.writeStructBegin('drop_database_args')
  3504. if self.name is not None:
  3505. oprot.writeFieldBegin('name', TType.STRING, 1)
  3506. oprot.writeString(self.name)
  3507. oprot.writeFieldEnd()
  3508. if self.deleteData is not None:
  3509. oprot.writeFieldBegin('deleteData', TType.BOOL, 2)
  3510. oprot.writeBool(self.deleteData)
  3511. oprot.writeFieldEnd()
  3512. oprot.writeFieldStop()
  3513. oprot.writeStructEnd()
  3514. def validate(self):
  3515. return
  3516. def __repr__(self):
  3517. L = ['%s=%r' % (key, value)
  3518. for key, value in self.__dict__.iteritems()]
  3519. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3520. def __eq__(self, other):
  3521. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3522. def __ne__(self, other):
  3523. return not (self == other)
  3524. class drop_database_result(object):
  3525. """
  3526. Attributes:
  3527. - o1
  3528. - o2
  3529. - o3
  3530. """
  3531. thrift_spec = (
  3532. None, # 0
  3533. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  3534. (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2
  3535. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  3536. )
  3537. def __init__(self, o1=None, o2=None, o3=None,):
  3538. self.o1 = o1
  3539. self.o2 = o2
  3540. self.o3 = o3
  3541. def read(self, iprot):
  3542. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3543. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3544. return
  3545. iprot.readStructBegin()
  3546. while True:
  3547. (fname, ftype, fid) = iprot.readFieldBegin()
  3548. if ftype == TType.STOP:
  3549. break
  3550. if fid == 1:
  3551. if ftype == TType.STRUCT:
  3552. self.o1 = NoSuchObjectException()
  3553. self.o1.read(iprot)
  3554. else:
  3555. iprot.skip(ftype)
  3556. elif fid == 2:
  3557. if ftype == TType.STRUCT:
  3558. self.o2 = InvalidOperationException()
  3559. self.o2.read(iprot)
  3560. else:
  3561. iprot.skip(ftype)
  3562. elif fid == 3:
  3563. if ftype == TType.STRUCT:
  3564. self.o3 = MetaException()
  3565. self.o3.read(iprot)
  3566. else:
  3567. iprot.skip(ftype)
  3568. else:
  3569. iprot.skip(ftype)
  3570. iprot.readFieldEnd()
  3571. iprot.readStructEnd()
  3572. def write(self, oprot):
  3573. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3574. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3575. return
  3576. oprot.writeStructBegin('drop_database_result')
  3577. if self.o1 is not None:
  3578. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  3579. self.o1.write(oprot)
  3580. oprot.writeFieldEnd()
  3581. if self.o2 is not None:
  3582. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  3583. self.o2.write(oprot)
  3584. oprot.writeFieldEnd()
  3585. if self.o3 is not None:
  3586. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  3587. self.o3.write(oprot)
  3588. oprot.writeFieldEnd()
  3589. oprot.writeFieldStop()
  3590. oprot.writeStructEnd()
  3591. def validate(self):
  3592. return
  3593. def __repr__(self):
  3594. L = ['%s=%r' % (key, value)
  3595. for key, value in self.__dict__.iteritems()]
  3596. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3597. def __eq__(self, other):
  3598. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3599. def __ne__(self, other):
  3600. return not (self == other)
  3601. class get_databases_args(object):
  3602. """
  3603. Attributes:
  3604. - pattern
  3605. """
  3606. thrift_spec = (
  3607. None, # 0
  3608. (1, TType.STRING, 'pattern', None, None, ), # 1
  3609. )
  3610. def __init__(self, pattern=None,):
  3611. self.pattern = pattern
  3612. def read(self, iprot):
  3613. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3614. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3615. return
  3616. iprot.readStructBegin()
  3617. while True:
  3618. (fname, ftype, fid) = iprot.readFieldBegin()
  3619. if ftype == TType.STOP:
  3620. break
  3621. if fid == 1:
  3622. if ftype == TType.STRING:
  3623. self.pattern = iprot.readString();
  3624. else:
  3625. iprot.skip(ftype)
  3626. else:
  3627. iprot.skip(ftype)
  3628. iprot.readFieldEnd()
  3629. iprot.readStructEnd()
  3630. def write(self, oprot):
  3631. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3632. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3633. return
  3634. oprot.writeStructBegin('get_databases_args')
  3635. if self.pattern is not None:
  3636. oprot.writeFieldBegin('pattern', TType.STRING, 1)
  3637. oprot.writeString(self.pattern)
  3638. oprot.writeFieldEnd()
  3639. oprot.writeFieldStop()
  3640. oprot.writeStructEnd()
  3641. def validate(self):
  3642. return
  3643. def __repr__(self):
  3644. L = ['%s=%r' % (key, value)
  3645. for key, value in self.__dict__.iteritems()]
  3646. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3647. def __eq__(self, other):
  3648. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3649. def __ne__(self, other):
  3650. return not (self == other)
  3651. class get_databases_result(object):
  3652. """
  3653. Attributes:
  3654. - success
  3655. - o1
  3656. """
  3657. thrift_spec = (
  3658. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  3659. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  3660. )
  3661. def __init__(self, success=None, o1=None,):
  3662. self.success = success
  3663. self.o1 = o1
  3664. def read(self, iprot):
  3665. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3666. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3667. return
  3668. iprot.readStructBegin()
  3669. while True:
  3670. (fname, ftype, fid) = iprot.readFieldBegin()
  3671. if ftype == TType.STOP:
  3672. break
  3673. if fid == 0:
  3674. if ftype == TType.LIST:
  3675. self.success = []
  3676. (_etype177, _size174) = iprot.readListBegin()
  3677. for _i178 in xrange(_size174):
  3678. _elem179 = iprot.readString();
  3679. self.success.append(_elem179)
  3680. iprot.readListEnd()
  3681. else:
  3682. iprot.skip(ftype)
  3683. elif fid == 1:
  3684. if ftype == TType.STRUCT:
  3685. self.o1 = MetaException()
  3686. self.o1.read(iprot)
  3687. else:
  3688. iprot.skip(ftype)
  3689. else:
  3690. iprot.skip(ftype)
  3691. iprot.readFieldEnd()
  3692. iprot.readStructEnd()
  3693. def write(self, oprot):
  3694. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3695. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3696. return
  3697. oprot.writeStructBegin('get_databases_result')
  3698. if self.success is not None:
  3699. oprot.writeFieldBegin('success', TType.LIST, 0)
  3700. oprot.writeListBegin(TType.STRING, len(self.success))
  3701. for iter180 in self.success:
  3702. oprot.writeString(iter180)
  3703. oprot.writeListEnd()
  3704. oprot.writeFieldEnd()
  3705. if self.o1 is not None:
  3706. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  3707. self.o1.write(oprot)
  3708. oprot.writeFieldEnd()
  3709. oprot.writeFieldStop()
  3710. oprot.writeStructEnd()
  3711. def validate(self):
  3712. return
  3713. def __repr__(self):
  3714. L = ['%s=%r' % (key, value)
  3715. for key, value in self.__dict__.iteritems()]
  3716. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3717. def __eq__(self, other):
  3718. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3719. def __ne__(self, other):
  3720. return not (self == other)
  3721. class get_all_databases_args(object):
  3722. thrift_spec = (
  3723. )
  3724. def read(self, iprot):
  3725. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3726. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3727. return
  3728. iprot.readStructBegin()
  3729. while True:
  3730. (fname, ftype, fid) = iprot.readFieldBegin()
  3731. if ftype == TType.STOP:
  3732. break
  3733. else:
  3734. iprot.skip(ftype)
  3735. iprot.readFieldEnd()
  3736. iprot.readStructEnd()
  3737. def write(self, oprot):
  3738. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3739. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3740. return
  3741. oprot.writeStructBegin('get_all_databases_args')
  3742. oprot.writeFieldStop()
  3743. oprot.writeStructEnd()
  3744. def validate(self):
  3745. return
  3746. def __repr__(self):
  3747. L = ['%s=%r' % (key, value)
  3748. for key, value in self.__dict__.iteritems()]
  3749. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3750. def __eq__(self, other):
  3751. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3752. def __ne__(self, other):
  3753. return not (self == other)
  3754. class get_all_databases_result(object):
  3755. """
  3756. Attributes:
  3757. - success
  3758. - o1
  3759. """
  3760. thrift_spec = (
  3761. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  3762. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  3763. )
  3764. def __init__(self, success=None, o1=None,):
  3765. self.success = success
  3766. self.o1 = o1
  3767. def read(self, iprot):
  3768. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3769. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3770. return
  3771. iprot.readStructBegin()
  3772. while True:
  3773. (fname, ftype, fid) = iprot.readFieldBegin()
  3774. if ftype == TType.STOP:
  3775. break
  3776. if fid == 0:
  3777. if ftype == TType.LIST:
  3778. self.success = []
  3779. (_etype184, _size181) = iprot.readListBegin()
  3780. for _i185 in xrange(_size181):
  3781. _elem186 = iprot.readString();
  3782. self.success.append(_elem186)
  3783. iprot.readListEnd()
  3784. else:
  3785. iprot.skip(ftype)
  3786. elif fid == 1:
  3787. if ftype == TType.STRUCT:
  3788. self.o1 = MetaException()
  3789. self.o1.read(iprot)
  3790. else:
  3791. iprot.skip(ftype)
  3792. else:
  3793. iprot.skip(ftype)
  3794. iprot.readFieldEnd()
  3795. iprot.readStructEnd()
  3796. def write(self, oprot):
  3797. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3798. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3799. return
  3800. oprot.writeStructBegin('get_all_databases_result')
  3801. if self.success is not None:
  3802. oprot.writeFieldBegin('success', TType.LIST, 0)
  3803. oprot.writeListBegin(TType.STRING, len(self.success))
  3804. for iter187 in self.success:
  3805. oprot.writeString(iter187)
  3806. oprot.writeListEnd()
  3807. oprot.writeFieldEnd()
  3808. if self.o1 is not None:
  3809. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  3810. self.o1.write(oprot)
  3811. oprot.writeFieldEnd()
  3812. oprot.writeFieldStop()
  3813. oprot.writeStructEnd()
  3814. def validate(self):
  3815. return
  3816. def __repr__(self):
  3817. L = ['%s=%r' % (key, value)
  3818. for key, value in self.__dict__.iteritems()]
  3819. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3820. def __eq__(self, other):
  3821. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3822. def __ne__(self, other):
  3823. return not (self == other)
  3824. class alter_database_args(object):
  3825. """
  3826. Attributes:
  3827. - dbname
  3828. - db
  3829. """
  3830. thrift_spec = (
  3831. None, # 0
  3832. (1, TType.STRING, 'dbname', None, None, ), # 1
  3833. (2, TType.STRUCT, 'db', (Database, Database.thrift_spec), None, ), # 2
  3834. )
  3835. def __init__(self, dbname=None, db=None,):
  3836. self.dbname = dbname
  3837. self.db = db
  3838. def read(self, iprot):
  3839. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3840. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3841. return
  3842. iprot.readStructBegin()
  3843. while True:
  3844. (fname, ftype, fid) = iprot.readFieldBegin()
  3845. if ftype == TType.STOP:
  3846. break
  3847. if fid == 1:
  3848. if ftype == TType.STRING:
  3849. self.dbname = iprot.readString();
  3850. else:
  3851. iprot.skip(ftype)
  3852. elif fid == 2:
  3853. if ftype == TType.STRUCT:
  3854. self.db = Database()
  3855. self.db.read(iprot)
  3856. else:
  3857. iprot.skip(ftype)
  3858. else:
  3859. iprot.skip(ftype)
  3860. iprot.readFieldEnd()
  3861. iprot.readStructEnd()
  3862. def write(self, oprot):
  3863. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3864. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3865. return
  3866. oprot.writeStructBegin('alter_database_args')
  3867. if self.dbname is not None:
  3868. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  3869. oprot.writeString(self.dbname)
  3870. oprot.writeFieldEnd()
  3871. if self.db is not None:
  3872. oprot.writeFieldBegin('db', TType.STRUCT, 2)
  3873. self.db.write(oprot)
  3874. oprot.writeFieldEnd()
  3875. oprot.writeFieldStop()
  3876. oprot.writeStructEnd()
  3877. def validate(self):
  3878. return
  3879. def __repr__(self):
  3880. L = ['%s=%r' % (key, value)
  3881. for key, value in self.__dict__.iteritems()]
  3882. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3883. def __eq__(self, other):
  3884. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3885. def __ne__(self, other):
  3886. return not (self == other)
  3887. class alter_database_result(object):
  3888. """
  3889. Attributes:
  3890. - o1
  3891. - o2
  3892. """
  3893. thrift_spec = (
  3894. None, # 0
  3895. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  3896. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  3897. )
  3898. def __init__(self, o1=None, o2=None,):
  3899. self.o1 = o1
  3900. self.o2 = o2
  3901. def read(self, iprot):
  3902. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3903. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3904. return
  3905. iprot.readStructBegin()
  3906. while True:
  3907. (fname, ftype, fid) = iprot.readFieldBegin()
  3908. if ftype == TType.STOP:
  3909. break
  3910. if fid == 1:
  3911. if ftype == TType.STRUCT:
  3912. self.o1 = MetaException()
  3913. self.o1.read(iprot)
  3914. else:
  3915. iprot.skip(ftype)
  3916. elif fid == 2:
  3917. if ftype == TType.STRUCT:
  3918. self.o2 = NoSuchObjectException()
  3919. self.o2.read(iprot)
  3920. else:
  3921. iprot.skip(ftype)
  3922. else:
  3923. iprot.skip(ftype)
  3924. iprot.readFieldEnd()
  3925. iprot.readStructEnd()
  3926. def write(self, oprot):
  3927. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3928. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3929. return
  3930. oprot.writeStructBegin('alter_database_result')
  3931. if self.o1 is not None:
  3932. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  3933. self.o1.write(oprot)
  3934. oprot.writeFieldEnd()
  3935. if self.o2 is not None:
  3936. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  3937. self.o2.write(oprot)
  3938. oprot.writeFieldEnd()
  3939. oprot.writeFieldStop()
  3940. oprot.writeStructEnd()
  3941. def validate(self):
  3942. return
  3943. def __repr__(self):
  3944. L = ['%s=%r' % (key, value)
  3945. for key, value in self.__dict__.iteritems()]
  3946. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3947. def __eq__(self, other):
  3948. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3949. def __ne__(self, other):
  3950. return not (self == other)
  3951. class get_type_args(object):
  3952. """
  3953. Attributes:
  3954. - name
  3955. """
  3956. thrift_spec = (
  3957. None, # 0
  3958. (1, TType.STRING, 'name', None, None, ), # 1
  3959. )
  3960. def __init__(self, name=None,):
  3961. self.name = name
  3962. def read(self, iprot):
  3963. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3964. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3965. return
  3966. iprot.readStructBegin()
  3967. while True:
  3968. (fname, ftype, fid) = iprot.readFieldBegin()
  3969. if ftype == TType.STOP:
  3970. break
  3971. if fid == 1:
  3972. if ftype == TType.STRING:
  3973. self.name = iprot.readString();
  3974. else:
  3975. iprot.skip(ftype)
  3976. else:
  3977. iprot.skip(ftype)
  3978. iprot.readFieldEnd()
  3979. iprot.readStructEnd()
  3980. def write(self, oprot):
  3981. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3982. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3983. return
  3984. oprot.writeStructBegin('get_type_args')
  3985. if self.name is not None:
  3986. oprot.writeFieldBegin('name', TType.STRING, 1)
  3987. oprot.writeString(self.name)
  3988. oprot.writeFieldEnd()
  3989. oprot.writeFieldStop()
  3990. oprot.writeStructEnd()
  3991. def validate(self):
  3992. return
  3993. def __repr__(self):
  3994. L = ['%s=%r' % (key, value)
  3995. for key, value in self.__dict__.iteritems()]
  3996. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3997. def __eq__(self, other):
  3998. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3999. def __ne__(self, other):
  4000. return not (self == other)
  4001. class get_type_result(object):
  4002. """
  4003. Attributes:
  4004. - success
  4005. - o1
  4006. - o2
  4007. """
  4008. thrift_spec = (
  4009. (0, TType.STRUCT, 'success', (Type, Type.thrift_spec), None, ), # 0
  4010. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  4011. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  4012. )
  4013. def __init__(self, success=None, o1=None, o2=None,):
  4014. self.success = success
  4015. self.o1 = o1
  4016. self.o2 = o2
  4017. def read(self, iprot):
  4018. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4019. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4020. return
  4021. iprot.readStructBegin()
  4022. while True:
  4023. (fname, ftype, fid) = iprot.readFieldBegin()
  4024. if ftype == TType.STOP:
  4025. break
  4026. if fid == 0:
  4027. if ftype == TType.STRUCT:
  4028. self.success = Type()
  4029. self.success.read(iprot)
  4030. else:
  4031. iprot.skip(ftype)
  4032. elif fid == 1:
  4033. if ftype == TType.STRUCT:
  4034. self.o1 = MetaException()
  4035. self.o1.read(iprot)
  4036. else:
  4037. iprot.skip(ftype)
  4038. elif fid == 2:
  4039. if ftype == TType.STRUCT:
  4040. self.o2 = NoSuchObjectException()
  4041. self.o2.read(iprot)
  4042. else:
  4043. iprot.skip(ftype)
  4044. else:
  4045. iprot.skip(ftype)
  4046. iprot.readFieldEnd()
  4047. iprot.readStructEnd()
  4048. def write(self, oprot):
  4049. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4050. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4051. return
  4052. oprot.writeStructBegin('get_type_result')
  4053. if self.success is not None:
  4054. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  4055. self.success.write(oprot)
  4056. oprot.writeFieldEnd()
  4057. if self.o1 is not None:
  4058. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  4059. self.o1.write(oprot)
  4060. oprot.writeFieldEnd()
  4061. if self.o2 is not None:
  4062. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  4063. self.o2.write(oprot)
  4064. oprot.writeFieldEnd()
  4065. oprot.writeFieldStop()
  4066. oprot.writeStructEnd()
  4067. def validate(self):
  4068. return
  4069. def __repr__(self):
  4070. L = ['%s=%r' % (key, value)
  4071. for key, value in self.__dict__.iteritems()]
  4072. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4073. def __eq__(self, other):
  4074. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4075. def __ne__(self, other):
  4076. return not (self == other)
  4077. class create_type_args(object):
  4078. """
  4079. Attributes:
  4080. - type
  4081. """
  4082. thrift_spec = (
  4083. None, # 0
  4084. (1, TType.STRUCT, 'type', (Type, Type.thrift_spec), None, ), # 1
  4085. )
  4086. def __init__(self, type=None,):
  4087. self.type = type
  4088. def read(self, iprot):
  4089. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4090. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4091. return
  4092. iprot.readStructBegin()
  4093. while True:
  4094. (fname, ftype, fid) = iprot.readFieldBegin()
  4095. if ftype == TType.STOP:
  4096. break
  4097. if fid == 1:
  4098. if ftype == TType.STRUCT:
  4099. self.type = Type()
  4100. self.type.read(iprot)
  4101. else:
  4102. iprot.skip(ftype)
  4103. else:
  4104. iprot.skip(ftype)
  4105. iprot.readFieldEnd()
  4106. iprot.readStructEnd()
  4107. def write(self, oprot):
  4108. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4109. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4110. return
  4111. oprot.writeStructBegin('create_type_args')
  4112. if self.type is not None:
  4113. oprot.writeFieldBegin('type', TType.STRUCT, 1)
  4114. self.type.write(oprot)
  4115. oprot.writeFieldEnd()
  4116. oprot.writeFieldStop()
  4117. oprot.writeStructEnd()
  4118. def validate(self):
  4119. return
  4120. def __repr__(self):
  4121. L = ['%s=%r' % (key, value)
  4122. for key, value in self.__dict__.iteritems()]
  4123. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4124. def __eq__(self, other):
  4125. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4126. def __ne__(self, other):
  4127. return not (self == other)
  4128. class create_type_result(object):
  4129. """
  4130. Attributes:
  4131. - success
  4132. - o1
  4133. - o2
  4134. - o3
  4135. """
  4136. thrift_spec = (
  4137. (0, TType.BOOL, 'success', None, None, ), # 0
  4138. (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1
  4139. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  4140. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  4141. )
  4142. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  4143. self.success = success
  4144. self.o1 = o1
  4145. self.o2 = o2
  4146. self.o3 = o3
  4147. def read(self, iprot):
  4148. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4149. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4150. return
  4151. iprot.readStructBegin()
  4152. while True:
  4153. (fname, ftype, fid) = iprot.readFieldBegin()
  4154. if ftype == TType.STOP:
  4155. break
  4156. if fid == 0:
  4157. if ftype == TType.BOOL:
  4158. self.success = iprot.readBool();
  4159. else:
  4160. iprot.skip(ftype)
  4161. elif fid == 1:
  4162. if ftype == TType.STRUCT:
  4163. self.o1 = AlreadyExistsException()
  4164. self.o1.read(iprot)
  4165. else:
  4166. iprot.skip(ftype)
  4167. elif fid == 2:
  4168. if ftype == TType.STRUCT:
  4169. self.o2 = InvalidObjectException()
  4170. self.o2.read(iprot)
  4171. else:
  4172. iprot.skip(ftype)
  4173. elif fid == 3:
  4174. if ftype == TType.STRUCT:
  4175. self.o3 = MetaException()
  4176. self.o3.read(iprot)
  4177. else:
  4178. iprot.skip(ftype)
  4179. else:
  4180. iprot.skip(ftype)
  4181. iprot.readFieldEnd()
  4182. iprot.readStructEnd()
  4183. def write(self, oprot):
  4184. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4185. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4186. return
  4187. oprot.writeStructBegin('create_type_result')
  4188. if self.success is not None:
  4189. oprot.writeFieldBegin('success', TType.BOOL, 0)
  4190. oprot.writeBool(self.success)
  4191. oprot.writeFieldEnd()
  4192. if self.o1 is not None:
  4193. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  4194. self.o1.write(oprot)
  4195. oprot.writeFieldEnd()
  4196. if self.o2 is not None:
  4197. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  4198. self.o2.write(oprot)
  4199. oprot.writeFieldEnd()
  4200. if self.o3 is not None:
  4201. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  4202. self.o3.write(oprot)
  4203. oprot.writeFieldEnd()
  4204. oprot.writeFieldStop()
  4205. oprot.writeStructEnd()
  4206. def validate(self):
  4207. return
  4208. def __repr__(self):
  4209. L = ['%s=%r' % (key, value)
  4210. for key, value in self.__dict__.iteritems()]
  4211. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4212. def __eq__(self, other):
  4213. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4214. def __ne__(self, other):
  4215. return not (self == other)
  4216. class drop_type_args(object):
  4217. """
  4218. Attributes:
  4219. - type
  4220. """
  4221. thrift_spec = (
  4222. None, # 0
  4223. (1, TType.STRING, 'type', None, None, ), # 1
  4224. )
  4225. def __init__(self, type=None,):
  4226. self.type = type
  4227. def read(self, iprot):
  4228. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4229. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4230. return
  4231. iprot.readStructBegin()
  4232. while True:
  4233. (fname, ftype, fid) = iprot.readFieldBegin()
  4234. if ftype == TType.STOP:
  4235. break
  4236. if fid == 1:
  4237. if ftype == TType.STRING:
  4238. self.type = iprot.readString();
  4239. else:
  4240. iprot.skip(ftype)
  4241. else:
  4242. iprot.skip(ftype)
  4243. iprot.readFieldEnd()
  4244. iprot.readStructEnd()
  4245. def write(self, oprot):
  4246. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4247. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4248. return
  4249. oprot.writeStructBegin('drop_type_args')
  4250. if self.type is not None:
  4251. oprot.writeFieldBegin('type', TType.STRING, 1)
  4252. oprot.writeString(self.type)
  4253. oprot.writeFieldEnd()
  4254. oprot.writeFieldStop()
  4255. oprot.writeStructEnd()
  4256. def validate(self):
  4257. return
  4258. def __repr__(self):
  4259. L = ['%s=%r' % (key, value)
  4260. for key, value in self.__dict__.iteritems()]
  4261. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4262. def __eq__(self, other):
  4263. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4264. def __ne__(self, other):
  4265. return not (self == other)
  4266. class drop_type_result(object):
  4267. """
  4268. Attributes:
  4269. - success
  4270. - o1
  4271. - o2
  4272. """
  4273. thrift_spec = (
  4274. (0, TType.BOOL, 'success', None, None, ), # 0
  4275. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  4276. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  4277. )
  4278. def __init__(self, success=None, o1=None, o2=None,):
  4279. self.success = success
  4280. self.o1 = o1
  4281. self.o2 = o2
  4282. def read(self, iprot):
  4283. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4284. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4285. return
  4286. iprot.readStructBegin()
  4287. while True:
  4288. (fname, ftype, fid) = iprot.readFieldBegin()
  4289. if ftype == TType.STOP:
  4290. break
  4291. if fid == 0:
  4292. if ftype == TType.BOOL:
  4293. self.success = iprot.readBool();
  4294. else:
  4295. iprot.skip(ftype)
  4296. elif fid == 1:
  4297. if ftype == TType.STRUCT:
  4298. self.o1 = MetaException()
  4299. self.o1.read(iprot)
  4300. else:
  4301. iprot.skip(ftype)
  4302. elif fid == 2:
  4303. if ftype == TType.STRUCT:
  4304. self.o2 = NoSuchObjectException()
  4305. self.o2.read(iprot)
  4306. else:
  4307. iprot.skip(ftype)
  4308. else:
  4309. iprot.skip(ftype)
  4310. iprot.readFieldEnd()
  4311. iprot.readStructEnd()
  4312. def write(self, oprot):
  4313. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4314. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4315. return
  4316. oprot.writeStructBegin('drop_type_result')
  4317. if self.success is not None:
  4318. oprot.writeFieldBegin('success', TType.BOOL, 0)
  4319. oprot.writeBool(self.success)
  4320. oprot.writeFieldEnd()
  4321. if self.o1 is not None:
  4322. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  4323. self.o1.write(oprot)
  4324. oprot.writeFieldEnd()
  4325. if self.o2 is not None:
  4326. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  4327. self.o2.write(oprot)
  4328. oprot.writeFieldEnd()
  4329. oprot.writeFieldStop()
  4330. oprot.writeStructEnd()
  4331. def validate(self):
  4332. return
  4333. def __repr__(self):
  4334. L = ['%s=%r' % (key, value)
  4335. for key, value in self.__dict__.iteritems()]
  4336. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4337. def __eq__(self, other):
  4338. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4339. def __ne__(self, other):
  4340. return not (self == other)
  4341. class get_type_all_args(object):
  4342. """
  4343. Attributes:
  4344. - name
  4345. """
  4346. thrift_spec = (
  4347. None, # 0
  4348. (1, TType.STRING, 'name', None, None, ), # 1
  4349. )
  4350. def __init__(self, name=None,):
  4351. self.name = name
  4352. def read(self, iprot):
  4353. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4354. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4355. return
  4356. iprot.readStructBegin()
  4357. while True:
  4358. (fname, ftype, fid) = iprot.readFieldBegin()
  4359. if ftype == TType.STOP:
  4360. break
  4361. if fid == 1:
  4362. if ftype == TType.STRING:
  4363. self.name = iprot.readString();
  4364. else:
  4365. iprot.skip(ftype)
  4366. else:
  4367. iprot.skip(ftype)
  4368. iprot.readFieldEnd()
  4369. iprot.readStructEnd()
  4370. def write(self, oprot):
  4371. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4372. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4373. return
  4374. oprot.writeStructBegin('get_type_all_args')
  4375. if self.name is not None:
  4376. oprot.writeFieldBegin('name', TType.STRING, 1)
  4377. oprot.writeString(self.name)
  4378. oprot.writeFieldEnd()
  4379. oprot.writeFieldStop()
  4380. oprot.writeStructEnd()
  4381. def validate(self):
  4382. return
  4383. def __repr__(self):
  4384. L = ['%s=%r' % (key, value)
  4385. for key, value in self.__dict__.iteritems()]
  4386. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4387. def __eq__(self, other):
  4388. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4389. def __ne__(self, other):
  4390. return not (self == other)
  4391. class get_type_all_result(object):
  4392. """
  4393. Attributes:
  4394. - success
  4395. - o2
  4396. """
  4397. thrift_spec = (
  4398. (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(Type, Type.thrift_spec)), None, ), # 0
  4399. (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1
  4400. )
  4401. def __init__(self, success=None, o2=None,):
  4402. self.success = success
  4403. self.o2 = o2
  4404. def read(self, iprot):
  4405. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4406. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4407. return
  4408. iprot.readStructBegin()
  4409. while True:
  4410. (fname, ftype, fid) = iprot.readFieldBegin()
  4411. if ftype == TType.STOP:
  4412. break
  4413. if fid == 0:
  4414. if ftype == TType.MAP:
  4415. self.success = {}
  4416. (_ktype189, _vtype190, _size188 ) = iprot.readMapBegin()
  4417. for _i192 in xrange(_size188):
  4418. _key193 = iprot.readString();
  4419. _val194 = Type()
  4420. _val194.read(iprot)
  4421. self.success[_key193] = _val194
  4422. iprot.readMapEnd()
  4423. else:
  4424. iprot.skip(ftype)
  4425. elif fid == 1:
  4426. if ftype == TType.STRUCT:
  4427. self.o2 = MetaException()
  4428. self.o2.read(iprot)
  4429. else:
  4430. iprot.skip(ftype)
  4431. else:
  4432. iprot.skip(ftype)
  4433. iprot.readFieldEnd()
  4434. iprot.readStructEnd()
  4435. def write(self, oprot):
  4436. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4437. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4438. return
  4439. oprot.writeStructBegin('get_type_all_result')
  4440. if self.success is not None:
  4441. oprot.writeFieldBegin('success', TType.MAP, 0)
  4442. oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
  4443. for kiter195,viter196 in self.success.items():
  4444. oprot.writeString(kiter195)
  4445. viter196.write(oprot)
  4446. oprot.writeMapEnd()
  4447. oprot.writeFieldEnd()
  4448. if self.o2 is not None:
  4449. oprot.writeFieldBegin('o2', TType.STRUCT, 1)
  4450. self.o2.write(oprot)
  4451. oprot.writeFieldEnd()
  4452. oprot.writeFieldStop()
  4453. oprot.writeStructEnd()
  4454. def validate(self):
  4455. return
  4456. def __repr__(self):
  4457. L = ['%s=%r' % (key, value)
  4458. for key, value in self.__dict__.iteritems()]
  4459. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4460. def __eq__(self, other):
  4461. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4462. def __ne__(self, other):
  4463. return not (self == other)
  4464. class get_fields_args(object):
  4465. """
  4466. Attributes:
  4467. - db_name
  4468. - table_name
  4469. """
  4470. thrift_spec = (
  4471. None, # 0
  4472. (1, TType.STRING, 'db_name', None, None, ), # 1
  4473. (2, TType.STRING, 'table_name', None, None, ), # 2
  4474. )
  4475. def __init__(self, db_name=None, table_name=None,):
  4476. self.db_name = db_name
  4477. self.table_name = table_name
  4478. def read(self, iprot):
  4479. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4480. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4481. return
  4482. iprot.readStructBegin()
  4483. while True:
  4484. (fname, ftype, fid) = iprot.readFieldBegin()
  4485. if ftype == TType.STOP:
  4486. break
  4487. if fid == 1:
  4488. if ftype == TType.STRING:
  4489. self.db_name = iprot.readString();
  4490. else:
  4491. iprot.skip(ftype)
  4492. elif fid == 2:
  4493. if ftype == TType.STRING:
  4494. self.table_name = iprot.readString();
  4495. else:
  4496. iprot.skip(ftype)
  4497. else:
  4498. iprot.skip(ftype)
  4499. iprot.readFieldEnd()
  4500. iprot.readStructEnd()
  4501. def write(self, oprot):
  4502. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4503. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4504. return
  4505. oprot.writeStructBegin('get_fields_args')
  4506. if self.db_name is not None:
  4507. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  4508. oprot.writeString(self.db_name)
  4509. oprot.writeFieldEnd()
  4510. if self.table_name is not None:
  4511. oprot.writeFieldBegin('table_name', TType.STRING, 2)
  4512. oprot.writeString(self.table_name)
  4513. oprot.writeFieldEnd()
  4514. oprot.writeFieldStop()
  4515. oprot.writeStructEnd()
  4516. def validate(self):
  4517. return
  4518. def __repr__(self):
  4519. L = ['%s=%r' % (key, value)
  4520. for key, value in self.__dict__.iteritems()]
  4521. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4522. def __eq__(self, other):
  4523. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4524. def __ne__(self, other):
  4525. return not (self == other)
  4526. class get_fields_result(object):
  4527. """
  4528. Attributes:
  4529. - success
  4530. - o1
  4531. - o2
  4532. - o3
  4533. """
  4534. thrift_spec = (
  4535. (0, TType.LIST, 'success', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 0
  4536. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  4537. (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2
  4538. (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3
  4539. )
  4540. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  4541. self.success = success
  4542. self.o1 = o1
  4543. self.o2 = o2
  4544. self.o3 = o3
  4545. def read(self, iprot):
  4546. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4547. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4548. return
  4549. iprot.readStructBegin()
  4550. while True:
  4551. (fname, ftype, fid) = iprot.readFieldBegin()
  4552. if ftype == TType.STOP:
  4553. break
  4554. if fid == 0:
  4555. if ftype == TType.LIST:
  4556. self.success = []
  4557. (_etype200, _size197) = iprot.readListBegin()
  4558. for _i201 in xrange(_size197):
  4559. _elem202 = FieldSchema()
  4560. _elem202.read(iprot)
  4561. self.success.append(_elem202)
  4562. iprot.readListEnd()
  4563. else:
  4564. iprot.skip(ftype)
  4565. elif fid == 1:
  4566. if ftype == TType.STRUCT:
  4567. self.o1 = MetaException()
  4568. self.o1.read(iprot)
  4569. else:
  4570. iprot.skip(ftype)
  4571. elif fid == 2:
  4572. if ftype == TType.STRUCT:
  4573. self.o2 = UnknownTableException()
  4574. self.o2.read(iprot)
  4575. else:
  4576. iprot.skip(ftype)
  4577. elif fid == 3:
  4578. if ftype == TType.STRUCT:
  4579. self.o3 = UnknownDBException()
  4580. self.o3.read(iprot)
  4581. else:
  4582. iprot.skip(ftype)
  4583. else:
  4584. iprot.skip(ftype)
  4585. iprot.readFieldEnd()
  4586. iprot.readStructEnd()
  4587. def write(self, oprot):
  4588. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4589. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4590. return
  4591. oprot.writeStructBegin('get_fields_result')
  4592. if self.success is not None:
  4593. oprot.writeFieldBegin('success', TType.LIST, 0)
  4594. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4595. for iter203 in self.success:
  4596. iter203.write(oprot)
  4597. oprot.writeListEnd()
  4598. oprot.writeFieldEnd()
  4599. if self.o1 is not None:
  4600. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  4601. self.o1.write(oprot)
  4602. oprot.writeFieldEnd()
  4603. if self.o2 is not None:
  4604. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  4605. self.o2.write(oprot)
  4606. oprot.writeFieldEnd()
  4607. if self.o3 is not None:
  4608. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  4609. self.o3.write(oprot)
  4610. oprot.writeFieldEnd()
  4611. oprot.writeFieldStop()
  4612. oprot.writeStructEnd()
  4613. def validate(self):
  4614. return
  4615. def __repr__(self):
  4616. L = ['%s=%r' % (key, value)
  4617. for key, value in self.__dict__.iteritems()]
  4618. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4619. def __eq__(self, other):
  4620. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4621. def __ne__(self, other):
  4622. return not (self == other)
  4623. class get_schema_args(object):
  4624. """
  4625. Attributes:
  4626. - db_name
  4627. - table_name
  4628. """
  4629. thrift_spec = (
  4630. None, # 0
  4631. (1, TType.STRING, 'db_name', None, None, ), # 1
  4632. (2, TType.STRING, 'table_name', None, None, ), # 2
  4633. )
  4634. def __init__(self, db_name=None, table_name=None,):
  4635. self.db_name = db_name
  4636. self.table_name = table_name
  4637. def read(self, iprot):
  4638. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4639. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4640. return
  4641. iprot.readStructBegin()
  4642. while True:
  4643. (fname, ftype, fid) = iprot.readFieldBegin()
  4644. if ftype == TType.STOP:
  4645. break
  4646. if fid == 1:
  4647. if ftype == TType.STRING:
  4648. self.db_name = iprot.readString();
  4649. else:
  4650. iprot.skip(ftype)
  4651. elif fid == 2:
  4652. if ftype == TType.STRING:
  4653. self.table_name = iprot.readString();
  4654. else:
  4655. iprot.skip(ftype)
  4656. else:
  4657. iprot.skip(ftype)
  4658. iprot.readFieldEnd()
  4659. iprot.readStructEnd()
  4660. def write(self, oprot):
  4661. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4662. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4663. return
  4664. oprot.writeStructBegin('get_schema_args')
  4665. if self.db_name is not None:
  4666. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  4667. oprot.writeString(self.db_name)
  4668. oprot.writeFieldEnd()
  4669. if self.table_name is not None:
  4670. oprot.writeFieldBegin('table_name', TType.STRING, 2)
  4671. oprot.writeString(self.table_name)
  4672. oprot.writeFieldEnd()
  4673. oprot.writeFieldStop()
  4674. oprot.writeStructEnd()
  4675. def validate(self):
  4676. return
  4677. def __repr__(self):
  4678. L = ['%s=%r' % (key, value)
  4679. for key, value in self.__dict__.iteritems()]
  4680. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4681. def __eq__(self, other):
  4682. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4683. def __ne__(self, other):
  4684. return not (self == other)
  4685. class get_schema_result(object):
  4686. """
  4687. Attributes:
  4688. - success
  4689. - o1
  4690. - o2
  4691. - o3
  4692. """
  4693. thrift_spec = (
  4694. (0, TType.LIST, 'success', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 0
  4695. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  4696. (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2
  4697. (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3
  4698. )
  4699. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  4700. self.success = success
  4701. self.o1 = o1
  4702. self.o2 = o2
  4703. self.o3 = o3
  4704. def read(self, iprot):
  4705. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4706. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4707. return
  4708. iprot.readStructBegin()
  4709. while True:
  4710. (fname, ftype, fid) = iprot.readFieldBegin()
  4711. if ftype == TType.STOP:
  4712. break
  4713. if fid == 0:
  4714. if ftype == TType.LIST:
  4715. self.success = []
  4716. (_etype207, _size204) = iprot.readListBegin()
  4717. for _i208 in xrange(_size204):
  4718. _elem209 = FieldSchema()
  4719. _elem209.read(iprot)
  4720. self.success.append(_elem209)
  4721. iprot.readListEnd()
  4722. else:
  4723. iprot.skip(ftype)
  4724. elif fid == 1:
  4725. if ftype == TType.STRUCT:
  4726. self.o1 = MetaException()
  4727. self.o1.read(iprot)
  4728. else:
  4729. iprot.skip(ftype)
  4730. elif fid == 2:
  4731. if ftype == TType.STRUCT:
  4732. self.o2 = UnknownTableException()
  4733. self.o2.read(iprot)
  4734. else:
  4735. iprot.skip(ftype)
  4736. elif fid == 3:
  4737. if ftype == TType.STRUCT:
  4738. self.o3 = UnknownDBException()
  4739. self.o3.read(iprot)
  4740. else:
  4741. iprot.skip(ftype)
  4742. else:
  4743. iprot.skip(ftype)
  4744. iprot.readFieldEnd()
  4745. iprot.readStructEnd()
  4746. def write(self, oprot):
  4747. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4748. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4749. return
  4750. oprot.writeStructBegin('get_schema_result')
  4751. if self.success is not None:
  4752. oprot.writeFieldBegin('success', TType.LIST, 0)
  4753. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4754. for iter210 in self.success:
  4755. iter210.write(oprot)
  4756. oprot.writeListEnd()
  4757. oprot.writeFieldEnd()
  4758. if self.o1 is not None:
  4759. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  4760. self.o1.write(oprot)
  4761. oprot.writeFieldEnd()
  4762. if self.o2 is not None:
  4763. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  4764. self.o2.write(oprot)
  4765. oprot.writeFieldEnd()
  4766. if self.o3 is not None:
  4767. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  4768. self.o3.write(oprot)
  4769. oprot.writeFieldEnd()
  4770. oprot.writeFieldStop()
  4771. oprot.writeStructEnd()
  4772. def validate(self):
  4773. return
  4774. def __repr__(self):
  4775. L = ['%s=%r' % (key, value)
  4776. for key, value in self.__dict__.iteritems()]
  4777. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4778. def __eq__(self, other):
  4779. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4780. def __ne__(self, other):
  4781. return not (self == other)
  4782. class create_table_args(object):
  4783. """
  4784. Attributes:
  4785. - tbl
  4786. """
  4787. thrift_spec = (
  4788. None, # 0
  4789. (1, TType.STRUCT, 'tbl', (Table, Table.thrift_spec), None, ), # 1
  4790. )
  4791. def __init__(self, tbl=None,):
  4792. self.tbl = tbl
  4793. def read(self, iprot):
  4794. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4795. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4796. return
  4797. iprot.readStructBegin()
  4798. while True:
  4799. (fname, ftype, fid) = iprot.readFieldBegin()
  4800. if ftype == TType.STOP:
  4801. break
  4802. if fid == 1:
  4803. if ftype == TType.STRUCT:
  4804. self.tbl = Table()
  4805. self.tbl.read(iprot)
  4806. else:
  4807. iprot.skip(ftype)
  4808. else:
  4809. iprot.skip(ftype)
  4810. iprot.readFieldEnd()
  4811. iprot.readStructEnd()
  4812. def write(self, oprot):
  4813. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4814. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4815. return
  4816. oprot.writeStructBegin('create_table_args')
  4817. if self.tbl is not None:
  4818. oprot.writeFieldBegin('tbl', TType.STRUCT, 1)
  4819. self.tbl.write(oprot)
  4820. oprot.writeFieldEnd()
  4821. oprot.writeFieldStop()
  4822. oprot.writeStructEnd()
  4823. def validate(self):
  4824. return
  4825. def __repr__(self):
  4826. L = ['%s=%r' % (key, value)
  4827. for key, value in self.__dict__.iteritems()]
  4828. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4829. def __eq__(self, other):
  4830. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4831. def __ne__(self, other):
  4832. return not (self == other)
  4833. class create_table_result(object):
  4834. """
  4835. Attributes:
  4836. - o1
  4837. - o2
  4838. - o3
  4839. - o4
  4840. """
  4841. thrift_spec = (
  4842. None, # 0
  4843. (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1
  4844. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  4845. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  4846. (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4
  4847. )
  4848. def __init__(self, o1=None, o2=None, o3=None, o4=None,):
  4849. self.o1 = o1
  4850. self.o2 = o2
  4851. self.o3 = o3
  4852. self.o4 = o4
  4853. def read(self, iprot):
  4854. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4855. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4856. return
  4857. iprot.readStructBegin()
  4858. while True:
  4859. (fname, ftype, fid) = iprot.readFieldBegin()
  4860. if ftype == TType.STOP:
  4861. break
  4862. if fid == 1:
  4863. if ftype == TType.STRUCT:
  4864. self.o1 = AlreadyExistsException()
  4865. self.o1.read(iprot)
  4866. else:
  4867. iprot.skip(ftype)
  4868. elif fid == 2:
  4869. if ftype == TType.STRUCT:
  4870. self.o2 = InvalidObjectException()
  4871. self.o2.read(iprot)
  4872. else:
  4873. iprot.skip(ftype)
  4874. elif fid == 3:
  4875. if ftype == TType.STRUCT:
  4876. self.o3 = MetaException()
  4877. self.o3.read(iprot)
  4878. else:
  4879. iprot.skip(ftype)
  4880. elif fid == 4:
  4881. if ftype == TType.STRUCT:
  4882. self.o4 = NoSuchObjectException()
  4883. self.o4.read(iprot)
  4884. else:
  4885. iprot.skip(ftype)
  4886. else:
  4887. iprot.skip(ftype)
  4888. iprot.readFieldEnd()
  4889. iprot.readStructEnd()
  4890. def write(self, oprot):
  4891. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4892. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4893. return
  4894. oprot.writeStructBegin('create_table_result')
  4895. if self.o1 is not None:
  4896. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  4897. self.o1.write(oprot)
  4898. oprot.writeFieldEnd()
  4899. if self.o2 is not None:
  4900. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  4901. self.o2.write(oprot)
  4902. oprot.writeFieldEnd()
  4903. if self.o3 is not None:
  4904. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  4905. self.o3.write(oprot)
  4906. oprot.writeFieldEnd()
  4907. if self.o4 is not None:
  4908. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  4909. self.o4.write(oprot)
  4910. oprot.writeFieldEnd()
  4911. oprot.writeFieldStop()
  4912. oprot.writeStructEnd()
  4913. def validate(self):
  4914. return
  4915. def __repr__(self):
  4916. L = ['%s=%r' % (key, value)
  4917. for key, value in self.__dict__.iteritems()]
  4918. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4919. def __eq__(self, other):
  4920. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4921. def __ne__(self, other):
  4922. return not (self == other)
  4923. class drop_table_args(object):
  4924. """
  4925. Attributes:
  4926. - dbname
  4927. - name
  4928. - deleteData
  4929. """
  4930. thrift_spec = (
  4931. None, # 0
  4932. (1, TType.STRING, 'dbname', None, None, ), # 1
  4933. (2, TType.STRING, 'name', None, None, ), # 2
  4934. (3, TType.BOOL, 'deleteData', None, None, ), # 3
  4935. )
  4936. def __init__(self, dbname=None, name=None, deleteData=None,):
  4937. self.dbname = dbname
  4938. self.name = name
  4939. self.deleteData = deleteData
  4940. def read(self, iprot):
  4941. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4942. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4943. return
  4944. iprot.readStructBegin()
  4945. while True:
  4946. (fname, ftype, fid) = iprot.readFieldBegin()
  4947. if ftype == TType.STOP:
  4948. break
  4949. if fid == 1:
  4950. if ftype == TType.STRING:
  4951. self.dbname = iprot.readString();
  4952. else:
  4953. iprot.skip(ftype)
  4954. elif fid == 2:
  4955. if ftype == TType.STRING:
  4956. self.name = iprot.readString();
  4957. else:
  4958. iprot.skip(ftype)
  4959. elif fid == 3:
  4960. if ftype == TType.BOOL:
  4961. self.deleteData = iprot.readBool();
  4962. else:
  4963. iprot.skip(ftype)
  4964. else:
  4965. iprot.skip(ftype)
  4966. iprot.readFieldEnd()
  4967. iprot.readStructEnd()
  4968. def write(self, oprot):
  4969. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4970. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4971. return
  4972. oprot.writeStructBegin('drop_table_args')
  4973. if self.dbname is not None:
  4974. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  4975. oprot.writeString(self.dbname)
  4976. oprot.writeFieldEnd()
  4977. if self.name is not None:
  4978. oprot.writeFieldBegin('name', TType.STRING, 2)
  4979. oprot.writeString(self.name)
  4980. oprot.writeFieldEnd()
  4981. if self.deleteData is not None:
  4982. oprot.writeFieldBegin('deleteData', TType.BOOL, 3)
  4983. oprot.writeBool(self.deleteData)
  4984. oprot.writeFieldEnd()
  4985. oprot.writeFieldStop()
  4986. oprot.writeStructEnd()
  4987. def validate(self):
  4988. return
  4989. def __repr__(self):
  4990. L = ['%s=%r' % (key, value)
  4991. for key, value in self.__dict__.iteritems()]
  4992. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4993. def __eq__(self, other):
  4994. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4995. def __ne__(self, other):
  4996. return not (self == other)
  4997. class drop_table_result(object):
  4998. """
  4999. Attributes:
  5000. - o1
  5001. - o3
  5002. """
  5003. thrift_spec = (
  5004. None, # 0
  5005. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  5006. (2, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 2
  5007. )
  5008. def __init__(self, o1=None, o3=None,):
  5009. self.o1 = o1
  5010. self.o3 = o3
  5011. def read(self, iprot):
  5012. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5013. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5014. return
  5015. iprot.readStructBegin()
  5016. while True:
  5017. (fname, ftype, fid) = iprot.readFieldBegin()
  5018. if ftype == TType.STOP:
  5019. break
  5020. if fid == 1:
  5021. if ftype == TType.STRUCT:
  5022. self.o1 = NoSuchObjectException()
  5023. self.o1.read(iprot)
  5024. else:
  5025. iprot.skip(ftype)
  5026. elif fid == 2:
  5027. if ftype == TType.STRUCT:
  5028. self.o3 = MetaException()
  5029. self.o3.read(iprot)
  5030. else:
  5031. iprot.skip(ftype)
  5032. else:
  5033. iprot.skip(ftype)
  5034. iprot.readFieldEnd()
  5035. iprot.readStructEnd()
  5036. def write(self, oprot):
  5037. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5038. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5039. return
  5040. oprot.writeStructBegin('drop_table_result')
  5041. if self.o1 is not None:
  5042. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5043. self.o1.write(oprot)
  5044. oprot.writeFieldEnd()
  5045. if self.o3 is not None:
  5046. oprot.writeFieldBegin('o3', TType.STRUCT, 2)
  5047. self.o3.write(oprot)
  5048. oprot.writeFieldEnd()
  5049. oprot.writeFieldStop()
  5050. oprot.writeStructEnd()
  5051. def validate(self):
  5052. return
  5053. def __repr__(self):
  5054. L = ['%s=%r' % (key, value)
  5055. for key, value in self.__dict__.iteritems()]
  5056. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5057. def __eq__(self, other):
  5058. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5059. def __ne__(self, other):
  5060. return not (self == other)
  5061. class get_tables_args(object):
  5062. """
  5063. Attributes:
  5064. - db_name
  5065. - pattern
  5066. """
  5067. thrift_spec = (
  5068. None, # 0
  5069. (1, TType.STRING, 'db_name', None, None, ), # 1
  5070. (2, TType.STRING, 'pattern', None, None, ), # 2
  5071. )
  5072. def __init__(self, db_name=None, pattern=None,):
  5073. self.db_name = db_name
  5074. self.pattern = pattern
  5075. def read(self, iprot):
  5076. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5077. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5078. return
  5079. iprot.readStructBegin()
  5080. while True:
  5081. (fname, ftype, fid) = iprot.readFieldBegin()
  5082. if ftype == TType.STOP:
  5083. break
  5084. if fid == 1:
  5085. if ftype == TType.STRING:
  5086. self.db_name = iprot.readString();
  5087. else:
  5088. iprot.skip(ftype)
  5089. elif fid == 2:
  5090. if ftype == TType.STRING:
  5091. self.pattern = iprot.readString();
  5092. else:
  5093. iprot.skip(ftype)
  5094. else:
  5095. iprot.skip(ftype)
  5096. iprot.readFieldEnd()
  5097. iprot.readStructEnd()
  5098. def write(self, oprot):
  5099. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5100. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5101. return
  5102. oprot.writeStructBegin('get_tables_args')
  5103. if self.db_name is not None:
  5104. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  5105. oprot.writeString(self.db_name)
  5106. oprot.writeFieldEnd()
  5107. if self.pattern is not None:
  5108. oprot.writeFieldBegin('pattern', TType.STRING, 2)
  5109. oprot.writeString(self.pattern)
  5110. oprot.writeFieldEnd()
  5111. oprot.writeFieldStop()
  5112. oprot.writeStructEnd()
  5113. def validate(self):
  5114. return
  5115. def __repr__(self):
  5116. L = ['%s=%r' % (key, value)
  5117. for key, value in self.__dict__.iteritems()]
  5118. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5119. def __eq__(self, other):
  5120. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5121. def __ne__(self, other):
  5122. return not (self == other)
  5123. class get_tables_result(object):
  5124. """
  5125. Attributes:
  5126. - success
  5127. - o1
  5128. """
  5129. thrift_spec = (
  5130. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  5131. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  5132. )
  5133. def __init__(self, success=None, o1=None,):
  5134. self.success = success
  5135. self.o1 = o1
  5136. def read(self, iprot):
  5137. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5138. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5139. return
  5140. iprot.readStructBegin()
  5141. while True:
  5142. (fname, ftype, fid) = iprot.readFieldBegin()
  5143. if ftype == TType.STOP:
  5144. break
  5145. if fid == 0:
  5146. if ftype == TType.LIST:
  5147. self.success = []
  5148. (_etype214, _size211) = iprot.readListBegin()
  5149. for _i215 in xrange(_size211):
  5150. _elem216 = iprot.readString();
  5151. self.success.append(_elem216)
  5152. iprot.readListEnd()
  5153. else:
  5154. iprot.skip(ftype)
  5155. elif fid == 1:
  5156. if ftype == TType.STRUCT:
  5157. self.o1 = MetaException()
  5158. self.o1.read(iprot)
  5159. else:
  5160. iprot.skip(ftype)
  5161. else:
  5162. iprot.skip(ftype)
  5163. iprot.readFieldEnd()
  5164. iprot.readStructEnd()
  5165. def write(self, oprot):
  5166. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5167. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5168. return
  5169. oprot.writeStructBegin('get_tables_result')
  5170. if self.success is not None:
  5171. oprot.writeFieldBegin('success', TType.LIST, 0)
  5172. oprot.writeListBegin(TType.STRING, len(self.success))
  5173. for iter217 in self.success:
  5174. oprot.writeString(iter217)
  5175. oprot.writeListEnd()
  5176. oprot.writeFieldEnd()
  5177. if self.o1 is not None:
  5178. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5179. self.o1.write(oprot)
  5180. oprot.writeFieldEnd()
  5181. oprot.writeFieldStop()
  5182. oprot.writeStructEnd()
  5183. def validate(self):
  5184. return
  5185. def __repr__(self):
  5186. L = ['%s=%r' % (key, value)
  5187. for key, value in self.__dict__.iteritems()]
  5188. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5189. def __eq__(self, other):
  5190. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5191. def __ne__(self, other):
  5192. return not (self == other)
  5193. class get_all_tables_args(object):
  5194. """
  5195. Attributes:
  5196. - db_name
  5197. """
  5198. thrift_spec = (
  5199. None, # 0
  5200. (1, TType.STRING, 'db_name', None, None, ), # 1
  5201. )
  5202. def __init__(self, db_name=None,):
  5203. self.db_name = db_name
  5204. def read(self, iprot):
  5205. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5206. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5207. return
  5208. iprot.readStructBegin()
  5209. while True:
  5210. (fname, ftype, fid) = iprot.readFieldBegin()
  5211. if ftype == TType.STOP:
  5212. break
  5213. if fid == 1:
  5214. if ftype == TType.STRING:
  5215. self.db_name = iprot.readString();
  5216. else:
  5217. iprot.skip(ftype)
  5218. else:
  5219. iprot.skip(ftype)
  5220. iprot.readFieldEnd()
  5221. iprot.readStructEnd()
  5222. def write(self, oprot):
  5223. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5224. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5225. return
  5226. oprot.writeStructBegin('get_all_tables_args')
  5227. if self.db_name is not None:
  5228. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  5229. oprot.writeString(self.db_name)
  5230. oprot.writeFieldEnd()
  5231. oprot.writeFieldStop()
  5232. oprot.writeStructEnd()
  5233. def validate(self):
  5234. return
  5235. def __repr__(self):
  5236. L = ['%s=%r' % (key, value)
  5237. for key, value in self.__dict__.iteritems()]
  5238. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5239. def __eq__(self, other):
  5240. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5241. def __ne__(self, other):
  5242. return not (self == other)
  5243. class get_all_tables_result(object):
  5244. """
  5245. Attributes:
  5246. - success
  5247. - o1
  5248. """
  5249. thrift_spec = (
  5250. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  5251. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  5252. )
  5253. def __init__(self, success=None, o1=None,):
  5254. self.success = success
  5255. self.o1 = o1
  5256. def read(self, iprot):
  5257. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5258. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5259. return
  5260. iprot.readStructBegin()
  5261. while True:
  5262. (fname, ftype, fid) = iprot.readFieldBegin()
  5263. if ftype == TType.STOP:
  5264. break
  5265. if fid == 0:
  5266. if ftype == TType.LIST:
  5267. self.success = []
  5268. (_etype221, _size218) = iprot.readListBegin()
  5269. for _i222 in xrange(_size218):
  5270. _elem223 = iprot.readString();
  5271. self.success.append(_elem223)
  5272. iprot.readListEnd()
  5273. else:
  5274. iprot.skip(ftype)
  5275. elif fid == 1:
  5276. if ftype == TType.STRUCT:
  5277. self.o1 = MetaException()
  5278. self.o1.read(iprot)
  5279. else:
  5280. iprot.skip(ftype)
  5281. else:
  5282. iprot.skip(ftype)
  5283. iprot.readFieldEnd()
  5284. iprot.readStructEnd()
  5285. def write(self, oprot):
  5286. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5287. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5288. return
  5289. oprot.writeStructBegin('get_all_tables_result')
  5290. if self.success is not None:
  5291. oprot.writeFieldBegin('success', TType.LIST, 0)
  5292. oprot.writeListBegin(TType.STRING, len(self.success))
  5293. for iter224 in self.success:
  5294. oprot.writeString(iter224)
  5295. oprot.writeListEnd()
  5296. oprot.writeFieldEnd()
  5297. if self.o1 is not None:
  5298. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5299. self.o1.write(oprot)
  5300. oprot.writeFieldEnd()
  5301. oprot.writeFieldStop()
  5302. oprot.writeStructEnd()
  5303. def validate(self):
  5304. return
  5305. def __repr__(self):
  5306. L = ['%s=%r' % (key, value)
  5307. for key, value in self.__dict__.iteritems()]
  5308. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5309. def __eq__(self, other):
  5310. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5311. def __ne__(self, other):
  5312. return not (self == other)
  5313. class get_table_args(object):
  5314. """
  5315. Attributes:
  5316. - dbname
  5317. - tbl_name
  5318. """
  5319. thrift_spec = (
  5320. None, # 0
  5321. (1, TType.STRING, 'dbname', None, None, ), # 1
  5322. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  5323. )
  5324. def __init__(self, dbname=None, tbl_name=None,):
  5325. self.dbname = dbname
  5326. self.tbl_name = tbl_name
  5327. def read(self, iprot):
  5328. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5329. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5330. return
  5331. iprot.readStructBegin()
  5332. while True:
  5333. (fname, ftype, fid) = iprot.readFieldBegin()
  5334. if ftype == TType.STOP:
  5335. break
  5336. if fid == 1:
  5337. if ftype == TType.STRING:
  5338. self.dbname = iprot.readString();
  5339. else:
  5340. iprot.skip(ftype)
  5341. elif fid == 2:
  5342. if ftype == TType.STRING:
  5343. self.tbl_name = iprot.readString();
  5344. else:
  5345. iprot.skip(ftype)
  5346. else:
  5347. iprot.skip(ftype)
  5348. iprot.readFieldEnd()
  5349. iprot.readStructEnd()
  5350. def write(self, oprot):
  5351. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5352. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5353. return
  5354. oprot.writeStructBegin('get_table_args')
  5355. if self.dbname is not None:
  5356. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  5357. oprot.writeString(self.dbname)
  5358. oprot.writeFieldEnd()
  5359. if self.tbl_name is not None:
  5360. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  5361. oprot.writeString(self.tbl_name)
  5362. oprot.writeFieldEnd()
  5363. oprot.writeFieldStop()
  5364. oprot.writeStructEnd()
  5365. def validate(self):
  5366. return
  5367. def __repr__(self):
  5368. L = ['%s=%r' % (key, value)
  5369. for key, value in self.__dict__.iteritems()]
  5370. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5371. def __eq__(self, other):
  5372. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5373. def __ne__(self, other):
  5374. return not (self == other)
  5375. class get_table_result(object):
  5376. """
  5377. Attributes:
  5378. - success
  5379. - o1
  5380. - o2
  5381. """
  5382. thrift_spec = (
  5383. (0, TType.STRUCT, 'success', (Table, Table.thrift_spec), None, ), # 0
  5384. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  5385. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  5386. )
  5387. def __init__(self, success=None, o1=None, o2=None,):
  5388. self.success = success
  5389. self.o1 = o1
  5390. self.o2 = o2
  5391. def read(self, iprot):
  5392. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5393. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5394. return
  5395. iprot.readStructBegin()
  5396. while True:
  5397. (fname, ftype, fid) = iprot.readFieldBegin()
  5398. if ftype == TType.STOP:
  5399. break
  5400. if fid == 0:
  5401. if ftype == TType.STRUCT:
  5402. self.success = Table()
  5403. self.success.read(iprot)
  5404. else:
  5405. iprot.skip(ftype)
  5406. elif fid == 1:
  5407. if ftype == TType.STRUCT:
  5408. self.o1 = MetaException()
  5409. self.o1.read(iprot)
  5410. else:
  5411. iprot.skip(ftype)
  5412. elif fid == 2:
  5413. if ftype == TType.STRUCT:
  5414. self.o2 = NoSuchObjectException()
  5415. self.o2.read(iprot)
  5416. else:
  5417. iprot.skip(ftype)
  5418. else:
  5419. iprot.skip(ftype)
  5420. iprot.readFieldEnd()
  5421. iprot.readStructEnd()
  5422. def write(self, oprot):
  5423. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5424. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5425. return
  5426. oprot.writeStructBegin('get_table_result')
  5427. if self.success is not None:
  5428. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  5429. self.success.write(oprot)
  5430. oprot.writeFieldEnd()
  5431. if self.o1 is not None:
  5432. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5433. self.o1.write(oprot)
  5434. oprot.writeFieldEnd()
  5435. if self.o2 is not None:
  5436. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  5437. self.o2.write(oprot)
  5438. oprot.writeFieldEnd()
  5439. oprot.writeFieldStop()
  5440. oprot.writeStructEnd()
  5441. def validate(self):
  5442. return
  5443. def __repr__(self):
  5444. L = ['%s=%r' % (key, value)
  5445. for key, value in self.__dict__.iteritems()]
  5446. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5447. def __eq__(self, other):
  5448. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5449. def __ne__(self, other):
  5450. return not (self == other)
  5451. class alter_table_args(object):
  5452. """
  5453. Attributes:
  5454. - dbname
  5455. - tbl_name
  5456. - new_tbl
  5457. """
  5458. thrift_spec = (
  5459. None, # 0
  5460. (1, TType.STRING, 'dbname', None, None, ), # 1
  5461. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  5462. (3, TType.STRUCT, 'new_tbl', (Table, Table.thrift_spec), None, ), # 3
  5463. )
  5464. def __init__(self, dbname=None, tbl_name=None, new_tbl=None,):
  5465. self.dbname = dbname
  5466. self.tbl_name = tbl_name
  5467. self.new_tbl = new_tbl
  5468. def read(self, iprot):
  5469. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5470. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5471. return
  5472. iprot.readStructBegin()
  5473. while True:
  5474. (fname, ftype, fid) = iprot.readFieldBegin()
  5475. if ftype == TType.STOP:
  5476. break
  5477. if fid == 1:
  5478. if ftype == TType.STRING:
  5479. self.dbname = iprot.readString();
  5480. else:
  5481. iprot.skip(ftype)
  5482. elif fid == 2:
  5483. if ftype == TType.STRING:
  5484. self.tbl_name = iprot.readString();
  5485. else:
  5486. iprot.skip(ftype)
  5487. elif fid == 3:
  5488. if ftype == TType.STRUCT:
  5489. self.new_tbl = Table()
  5490. self.new_tbl.read(iprot)
  5491. else:
  5492. iprot.skip(ftype)
  5493. else:
  5494. iprot.skip(ftype)
  5495. iprot.readFieldEnd()
  5496. iprot.readStructEnd()
  5497. def write(self, oprot):
  5498. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5499. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5500. return
  5501. oprot.writeStructBegin('alter_table_args')
  5502. if self.dbname is not None:
  5503. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  5504. oprot.writeString(self.dbname)
  5505. oprot.writeFieldEnd()
  5506. if self.tbl_name is not None:
  5507. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  5508. oprot.writeString(self.tbl_name)
  5509. oprot.writeFieldEnd()
  5510. if self.new_tbl is not None:
  5511. oprot.writeFieldBegin('new_tbl', TType.STRUCT, 3)
  5512. self.new_tbl.write(oprot)
  5513. oprot.writeFieldEnd()
  5514. oprot.writeFieldStop()
  5515. oprot.writeStructEnd()
  5516. def validate(self):
  5517. return
  5518. def __repr__(self):
  5519. L = ['%s=%r' % (key, value)
  5520. for key, value in self.__dict__.iteritems()]
  5521. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5522. def __eq__(self, other):
  5523. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5524. def __ne__(self, other):
  5525. return not (self == other)
  5526. class alter_table_result(object):
  5527. """
  5528. Attributes:
  5529. - o1
  5530. - o2
  5531. """
  5532. thrift_spec = (
  5533. None, # 0
  5534. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  5535. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  5536. )
  5537. def __init__(self, o1=None, o2=None,):
  5538. self.o1 = o1
  5539. self.o2 = o2
  5540. def read(self, iprot):
  5541. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5542. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5543. return
  5544. iprot.readStructBegin()
  5545. while True:
  5546. (fname, ftype, fid) = iprot.readFieldBegin()
  5547. if ftype == TType.STOP:
  5548. break
  5549. if fid == 1:
  5550. if ftype == TType.STRUCT:
  5551. self.o1 = InvalidOperationException()
  5552. self.o1.read(iprot)
  5553. else:
  5554. iprot.skip(ftype)
  5555. elif fid == 2:
  5556. if ftype == TType.STRUCT:
  5557. self.o2 = MetaException()
  5558. self.o2.read(iprot)
  5559. else:
  5560. iprot.skip(ftype)
  5561. else:
  5562. iprot.skip(ftype)
  5563. iprot.readFieldEnd()
  5564. iprot.readStructEnd()
  5565. def write(self, oprot):
  5566. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5567. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5568. return
  5569. oprot.writeStructBegin('alter_table_result')
  5570. if self.o1 is not None:
  5571. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5572. self.o1.write(oprot)
  5573. oprot.writeFieldEnd()
  5574. if self.o2 is not None:
  5575. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  5576. self.o2.write(oprot)
  5577. oprot.writeFieldEnd()
  5578. oprot.writeFieldStop()
  5579. oprot.writeStructEnd()
  5580. def validate(self):
  5581. return
  5582. def __repr__(self):
  5583. L = ['%s=%r' % (key, value)
  5584. for key, value in self.__dict__.iteritems()]
  5585. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5586. def __eq__(self, other):
  5587. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5588. def __ne__(self, other):
  5589. return not (self == other)
  5590. class add_partition_args(object):
  5591. """
  5592. Attributes:
  5593. - new_part
  5594. """
  5595. thrift_spec = (
  5596. None, # 0
  5597. (1, TType.STRUCT, 'new_part', (Partition, Partition.thrift_spec), None, ), # 1
  5598. )
  5599. def __init__(self, new_part=None,):
  5600. self.new_part = new_part
  5601. def read(self, iprot):
  5602. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5603. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5604. return
  5605. iprot.readStructBegin()
  5606. while True:
  5607. (fname, ftype, fid) = iprot.readFieldBegin()
  5608. if ftype == TType.STOP:
  5609. break
  5610. if fid == 1:
  5611. if ftype == TType.STRUCT:
  5612. self.new_part = Partition()
  5613. self.new_part.read(iprot)
  5614. else:
  5615. iprot.skip(ftype)
  5616. else:
  5617. iprot.skip(ftype)
  5618. iprot.readFieldEnd()
  5619. iprot.readStructEnd()
  5620. def write(self, oprot):
  5621. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5622. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5623. return
  5624. oprot.writeStructBegin('add_partition_args')
  5625. if self.new_part is not None:
  5626. oprot.writeFieldBegin('new_part', TType.STRUCT, 1)
  5627. self.new_part.write(oprot)
  5628. oprot.writeFieldEnd()
  5629. oprot.writeFieldStop()
  5630. oprot.writeStructEnd()
  5631. def validate(self):
  5632. return
  5633. def __repr__(self):
  5634. L = ['%s=%r' % (key, value)
  5635. for key, value in self.__dict__.iteritems()]
  5636. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5637. def __eq__(self, other):
  5638. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5639. def __ne__(self, other):
  5640. return not (self == other)
  5641. class add_partition_result(object):
  5642. """
  5643. Attributes:
  5644. - success
  5645. - o1
  5646. - o2
  5647. - o3
  5648. """
  5649. thrift_spec = (
  5650. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  5651. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  5652. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  5653. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  5654. )
  5655. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  5656. self.success = success
  5657. self.o1 = o1
  5658. self.o2 = o2
  5659. self.o3 = o3
  5660. def read(self, iprot):
  5661. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5662. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5663. return
  5664. iprot.readStructBegin()
  5665. while True:
  5666. (fname, ftype, fid) = iprot.readFieldBegin()
  5667. if ftype == TType.STOP:
  5668. break
  5669. if fid == 0:
  5670. if ftype == TType.STRUCT:
  5671. self.success = Partition()
  5672. self.success.read(iprot)
  5673. else:
  5674. iprot.skip(ftype)
  5675. elif fid == 1:
  5676. if ftype == TType.STRUCT:
  5677. self.o1 = InvalidObjectException()
  5678. self.o1.read(iprot)
  5679. else:
  5680. iprot.skip(ftype)
  5681. elif fid == 2:
  5682. if ftype == TType.STRUCT:
  5683. self.o2 = AlreadyExistsException()
  5684. self.o2.read(iprot)
  5685. else:
  5686. iprot.skip(ftype)
  5687. elif fid == 3:
  5688. if ftype == TType.STRUCT:
  5689. self.o3 = MetaException()
  5690. self.o3.read(iprot)
  5691. else:
  5692. iprot.skip(ftype)
  5693. else:
  5694. iprot.skip(ftype)
  5695. iprot.readFieldEnd()
  5696. iprot.readStructEnd()
  5697. def write(self, oprot):
  5698. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5699. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5700. return
  5701. oprot.writeStructBegin('add_partition_result')
  5702. if self.success is not None:
  5703. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  5704. self.success.write(oprot)
  5705. oprot.writeFieldEnd()
  5706. if self.o1 is not None:
  5707. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5708. self.o1.write(oprot)
  5709. oprot.writeFieldEnd()
  5710. if self.o2 is not None:
  5711. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  5712. self.o2.write(oprot)
  5713. oprot.writeFieldEnd()
  5714. if self.o3 is not None:
  5715. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  5716. self.o3.write(oprot)
  5717. oprot.writeFieldEnd()
  5718. oprot.writeFieldStop()
  5719. oprot.writeStructEnd()
  5720. def validate(self):
  5721. return
  5722. def __repr__(self):
  5723. L = ['%s=%r' % (key, value)
  5724. for key, value in self.__dict__.iteritems()]
  5725. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5726. def __eq__(self, other):
  5727. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5728. def __ne__(self, other):
  5729. return not (self == other)
  5730. class append_partition_args(object):
  5731. """
  5732. Attributes:
  5733. - db_name
  5734. - tbl_name
  5735. - part_vals
  5736. """
  5737. thrift_spec = (
  5738. None, # 0
  5739. (1, TType.STRING, 'db_name', None, None, ), # 1
  5740. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  5741. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  5742. )
  5743. def __init__(self, db_name=None, tbl_name=None, part_vals=None,):
  5744. self.db_name = db_name
  5745. self.tbl_name = tbl_name
  5746. self.part_vals = part_vals
  5747. def read(self, iprot):
  5748. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5749. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5750. return
  5751. iprot.readStructBegin()
  5752. while True:
  5753. (fname, ftype, fid) = iprot.readFieldBegin()
  5754. if ftype == TType.STOP:
  5755. break
  5756. if fid == 1:
  5757. if ftype == TType.STRING:
  5758. self.db_name = iprot.readString();
  5759. else:
  5760. iprot.skip(ftype)
  5761. elif fid == 2:
  5762. if ftype == TType.STRING:
  5763. self.tbl_name = iprot.readString();
  5764. else:
  5765. iprot.skip(ftype)
  5766. elif fid == 3:
  5767. if ftype == TType.LIST:
  5768. self.part_vals = []
  5769. (_etype228, _size225) = iprot.readListBegin()
  5770. for _i229 in xrange(_size225):
  5771. _elem230 = iprot.readString();
  5772. self.part_vals.append(_elem230)
  5773. iprot.readListEnd()
  5774. else:
  5775. iprot.skip(ftype)
  5776. else:
  5777. iprot.skip(ftype)
  5778. iprot.readFieldEnd()
  5779. iprot.readStructEnd()
  5780. def write(self, oprot):
  5781. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5782. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5783. return
  5784. oprot.writeStructBegin('append_partition_args')
  5785. if self.db_name is not None:
  5786. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  5787. oprot.writeString(self.db_name)
  5788. oprot.writeFieldEnd()
  5789. if self.tbl_name is not None:
  5790. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  5791. oprot.writeString(self.tbl_name)
  5792. oprot.writeFieldEnd()
  5793. if self.part_vals is not None:
  5794. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  5795. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  5796. for iter231 in self.part_vals:
  5797. oprot.writeString(iter231)
  5798. oprot.writeListEnd()
  5799. oprot.writeFieldEnd()
  5800. oprot.writeFieldStop()
  5801. oprot.writeStructEnd()
  5802. def validate(self):
  5803. return
  5804. def __repr__(self):
  5805. L = ['%s=%r' % (key, value)
  5806. for key, value in self.__dict__.iteritems()]
  5807. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5808. def __eq__(self, other):
  5809. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5810. def __ne__(self, other):
  5811. return not (self == other)
  5812. class append_partition_result(object):
  5813. """
  5814. Attributes:
  5815. - success
  5816. - o1
  5817. - o2
  5818. - o3
  5819. """
  5820. thrift_spec = (
  5821. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  5822. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  5823. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  5824. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  5825. )
  5826. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  5827. self.success = success
  5828. self.o1 = o1
  5829. self.o2 = o2
  5830. self.o3 = o3
  5831. def read(self, iprot):
  5832. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5833. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5834. return
  5835. iprot.readStructBegin()
  5836. while True:
  5837. (fname, ftype, fid) = iprot.readFieldBegin()
  5838. if ftype == TType.STOP:
  5839. break
  5840. if fid == 0:
  5841. if ftype == TType.STRUCT:
  5842. self.success = Partition()
  5843. self.success.read(iprot)
  5844. else:
  5845. iprot.skip(ftype)
  5846. elif fid == 1:
  5847. if ftype == TType.STRUCT:
  5848. self.o1 = InvalidObjectException()
  5849. self.o1.read(iprot)
  5850. else:
  5851. iprot.skip(ftype)
  5852. elif fid == 2:
  5853. if ftype == TType.STRUCT:
  5854. self.o2 = AlreadyExistsException()
  5855. self.o2.read(iprot)
  5856. else:
  5857. iprot.skip(ftype)
  5858. elif fid == 3:
  5859. if ftype == TType.STRUCT:
  5860. self.o3 = MetaException()
  5861. self.o3.read(iprot)
  5862. else:
  5863. iprot.skip(ftype)
  5864. else:
  5865. iprot.skip(ftype)
  5866. iprot.readFieldEnd()
  5867. iprot.readStructEnd()
  5868. def write(self, oprot):
  5869. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5870. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5871. return
  5872. oprot.writeStructBegin('append_partition_result')
  5873. if self.success is not None:
  5874. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  5875. self.success.write(oprot)
  5876. oprot.writeFieldEnd()
  5877. if self.o1 is not None:
  5878. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5879. self.o1.write(oprot)
  5880. oprot.writeFieldEnd()
  5881. if self.o2 is not None:
  5882. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  5883. self.o2.write(oprot)
  5884. oprot.writeFieldEnd()
  5885. if self.o3 is not None:
  5886. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  5887. self.o3.write(oprot)
  5888. oprot.writeFieldEnd()
  5889. oprot.writeFieldStop()
  5890. oprot.writeStructEnd()
  5891. def validate(self):
  5892. return
  5893. def __repr__(self):
  5894. L = ['%s=%r' % (key, value)
  5895. for key, value in self.__dict__.iteritems()]
  5896. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5897. def __eq__(self, other):
  5898. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5899. def __ne__(self, other):
  5900. return not (self == other)
  5901. class append_partition_by_name_args(object):
  5902. """
  5903. Attributes:
  5904. - db_name
  5905. - tbl_name
  5906. - part_name
  5907. """
  5908. thrift_spec = (
  5909. None, # 0
  5910. (1, TType.STRING, 'db_name', None, None, ), # 1
  5911. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  5912. (3, TType.STRING, 'part_name', None, None, ), # 3
  5913. )
  5914. def __init__(self, db_name=None, tbl_name=None, part_name=None,):
  5915. self.db_name = db_name
  5916. self.tbl_name = tbl_name
  5917. self.part_name = part_name
  5918. def read(self, iprot):
  5919. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5920. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5921. return
  5922. iprot.readStructBegin()
  5923. while True:
  5924. (fname, ftype, fid) = iprot.readFieldBegin()
  5925. if ftype == TType.STOP:
  5926. break
  5927. if fid == 1:
  5928. if ftype == TType.STRING:
  5929. self.db_name = iprot.readString();
  5930. else:
  5931. iprot.skip(ftype)
  5932. elif fid == 2:
  5933. if ftype == TType.STRING:
  5934. self.tbl_name = iprot.readString();
  5935. else:
  5936. iprot.skip(ftype)
  5937. elif fid == 3:
  5938. if ftype == TType.STRING:
  5939. self.part_name = iprot.readString();
  5940. else:
  5941. iprot.skip(ftype)
  5942. else:
  5943. iprot.skip(ftype)
  5944. iprot.readFieldEnd()
  5945. iprot.readStructEnd()
  5946. def write(self, oprot):
  5947. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5948. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5949. return
  5950. oprot.writeStructBegin('append_partition_by_name_args')
  5951. if self.db_name is not None:
  5952. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  5953. oprot.writeString(self.db_name)
  5954. oprot.writeFieldEnd()
  5955. if self.tbl_name is not None:
  5956. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  5957. oprot.writeString(self.tbl_name)
  5958. oprot.writeFieldEnd()
  5959. if self.part_name is not None:
  5960. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  5961. oprot.writeString(self.part_name)
  5962. oprot.writeFieldEnd()
  5963. oprot.writeFieldStop()
  5964. oprot.writeStructEnd()
  5965. def validate(self):
  5966. return
  5967. def __repr__(self):
  5968. L = ['%s=%r' % (key, value)
  5969. for key, value in self.__dict__.iteritems()]
  5970. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5971. def __eq__(self, other):
  5972. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5973. def __ne__(self, other):
  5974. return not (self == other)
  5975. class append_partition_by_name_result(object):
  5976. """
  5977. Attributes:
  5978. - success
  5979. - o1
  5980. - o2
  5981. - o3
  5982. """
  5983. thrift_spec = (
  5984. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  5985. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  5986. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  5987. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  5988. )
  5989. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  5990. self.success = success
  5991. self.o1 = o1
  5992. self.o2 = o2
  5993. self.o3 = o3
  5994. def read(self, iprot):
  5995. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5996. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5997. return
  5998. iprot.readStructBegin()
  5999. while True:
  6000. (fname, ftype, fid) = iprot.readFieldBegin()
  6001. if ftype == TType.STOP:
  6002. break
  6003. if fid == 0:
  6004. if ftype == TType.STRUCT:
  6005. self.success = Partition()
  6006. self.success.read(iprot)
  6007. else:
  6008. iprot.skip(ftype)
  6009. elif fid == 1:
  6010. if ftype == TType.STRUCT:
  6011. self.o1 = InvalidObjectException()
  6012. self.o1.read(iprot)
  6013. else:
  6014. iprot.skip(ftype)
  6015. elif fid == 2:
  6016. if ftype == TType.STRUCT:
  6017. self.o2 = AlreadyExistsException()
  6018. self.o2.read(iprot)
  6019. else:
  6020. iprot.skip(ftype)
  6021. elif fid == 3:
  6022. if ftype == TType.STRUCT:
  6023. self.o3 = MetaException()
  6024. self.o3.read(iprot)
  6025. else:
  6026. iprot.skip(ftype)
  6027. else:
  6028. iprot.skip(ftype)
  6029. iprot.readFieldEnd()
  6030. iprot.readStructEnd()
  6031. def write(self, oprot):
  6032. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6033. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6034. return
  6035. oprot.writeStructBegin('append_partition_by_name_result')
  6036. if self.success is not None:
  6037. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  6038. self.success.write(oprot)
  6039. oprot.writeFieldEnd()
  6040. if self.o1 is not None:
  6041. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  6042. self.o1.write(oprot)
  6043. oprot.writeFieldEnd()
  6044. if self.o2 is not None:
  6045. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  6046. self.o2.write(oprot)
  6047. oprot.writeFieldEnd()
  6048. if self.o3 is not None:
  6049. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  6050. self.o3.write(oprot)
  6051. oprot.writeFieldEnd()
  6052. oprot.writeFieldStop()
  6053. oprot.writeStructEnd()
  6054. def validate(self):
  6055. return
  6056. def __repr__(self):
  6057. L = ['%s=%r' % (key, value)
  6058. for key, value in self.__dict__.iteritems()]
  6059. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6060. def __eq__(self, other):
  6061. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6062. def __ne__(self, other):
  6063. return not (self == other)
  6064. class drop_partition_args(object):
  6065. """
  6066. Attributes:
  6067. - db_name
  6068. - tbl_name
  6069. - part_vals
  6070. - deleteData
  6071. """
  6072. thrift_spec = (
  6073. None, # 0
  6074. (1, TType.STRING, 'db_name', None, None, ), # 1
  6075. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  6076. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  6077. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  6078. )
  6079. def __init__(self, db_name=None, tbl_name=None, part_vals=None, deleteData=None,):
  6080. self.db_name = db_name
  6081. self.tbl_name = tbl_name
  6082. self.part_vals = part_vals
  6083. self.deleteData = deleteData
  6084. def read(self, iprot):
  6085. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6086. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6087. return
  6088. iprot.readStructBegin()
  6089. while True:
  6090. (fname, ftype, fid) = iprot.readFieldBegin()
  6091. if ftype == TType.STOP:
  6092. break
  6093. if fid == 1:
  6094. if ftype == TType.STRING:
  6095. self.db_name = iprot.readString();
  6096. else:
  6097. iprot.skip(ftype)
  6098. elif fid == 2:
  6099. if ftype == TType.STRING:
  6100. self.tbl_name = iprot.readString();
  6101. else:
  6102. iprot.skip(ftype)
  6103. elif fid == 3:
  6104. if ftype == TType.LIST:
  6105. self.part_vals = []
  6106. (_etype235, _size232) = iprot.readListBegin()
  6107. for _i236 in xrange(_size232):
  6108. _elem237 = iprot.readString();
  6109. self.part_vals.append(_elem237)
  6110. iprot.readListEnd()
  6111. else:
  6112. iprot.skip(ftype)
  6113. elif fid == 4:
  6114. if ftype == TType.BOOL:
  6115. self.deleteData = iprot.readBool();
  6116. else:
  6117. iprot.skip(ftype)
  6118. else:
  6119. iprot.skip(ftype)
  6120. iprot.readFieldEnd()
  6121. iprot.readStructEnd()
  6122. def write(self, oprot):
  6123. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6124. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6125. return
  6126. oprot.writeStructBegin('drop_partition_args')
  6127. if self.db_name is not None:
  6128. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  6129. oprot.writeString(self.db_name)
  6130. oprot.writeFieldEnd()
  6131. if self.tbl_name is not None:
  6132. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  6133. oprot.writeString(self.tbl_name)
  6134. oprot.writeFieldEnd()
  6135. if self.part_vals is not None:
  6136. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  6137. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  6138. for iter238 in self.part_vals:
  6139. oprot.writeString(iter238)
  6140. oprot.writeListEnd()
  6141. oprot.writeFieldEnd()
  6142. if self.deleteData is not None:
  6143. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  6144. oprot.writeBool(self.deleteData)
  6145. oprot.writeFieldEnd()
  6146. oprot.writeFieldStop()
  6147. oprot.writeStructEnd()
  6148. def validate(self):
  6149. return
  6150. def __repr__(self):
  6151. L = ['%s=%r' % (key, value)
  6152. for key, value in self.__dict__.iteritems()]
  6153. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6154. def __eq__(self, other):
  6155. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6156. def __ne__(self, other):
  6157. return not (self == other)
  6158. class drop_partition_result(object):
  6159. """
  6160. Attributes:
  6161. - success
  6162. - o1
  6163. - o2
  6164. """
  6165. thrift_spec = (
  6166. (0, TType.BOOL, 'success', None, None, ), # 0
  6167. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  6168. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  6169. )
  6170. def __init__(self, success=None, o1=None, o2=None,):
  6171. self.success = success
  6172. self.o1 = o1
  6173. self.o2 = o2
  6174. def read(self, iprot):
  6175. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6176. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6177. return
  6178. iprot.readStructBegin()
  6179. while True:
  6180. (fname, ftype, fid) = iprot.readFieldBegin()
  6181. if ftype == TType.STOP:
  6182. break
  6183. if fid == 0:
  6184. if ftype == TType.BOOL:
  6185. self.success = iprot.readBool();
  6186. else:
  6187. iprot.skip(ftype)
  6188. elif fid == 1:
  6189. if ftype == TType.STRUCT:
  6190. self.o1 = NoSuchObjectException()
  6191. self.o1.read(iprot)
  6192. else:
  6193. iprot.skip(ftype)
  6194. elif fid == 2:
  6195. if ftype == TType.STRUCT:
  6196. self.o2 = MetaException()
  6197. self.o2.read(iprot)
  6198. else:
  6199. iprot.skip(ftype)
  6200. else:
  6201. iprot.skip(ftype)
  6202. iprot.readFieldEnd()
  6203. iprot.readStructEnd()
  6204. def write(self, oprot):
  6205. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6206. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6207. return
  6208. oprot.writeStructBegin('drop_partition_result')
  6209. if self.success is not None:
  6210. oprot.writeFieldBegin('success', TType.BOOL, 0)
  6211. oprot.writeBool(self.success)
  6212. oprot.writeFieldEnd()
  6213. if self.o1 is not None:
  6214. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  6215. self.o1.write(oprot)
  6216. oprot.writeFieldEnd()
  6217. if self.o2 is not None:
  6218. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  6219. self.o2.write(oprot)
  6220. oprot.writeFieldEnd()
  6221. oprot.writeFieldStop()
  6222. oprot.writeStructEnd()
  6223. def validate(self):
  6224. return
  6225. def __repr__(self):
  6226. L = ['%s=%r' % (key, value)
  6227. for key, value in self.__dict__.iteritems()]
  6228. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6229. def __eq__(self, other):
  6230. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6231. def __ne__(self, other):
  6232. return not (self == other)
  6233. class drop_partition_by_name_args(object):
  6234. """
  6235. Attributes:
  6236. - db_name
  6237. - tbl_name
  6238. - part_name
  6239. - deleteData
  6240. """
  6241. thrift_spec = (
  6242. None, # 0
  6243. (1, TType.STRING, 'db_name', None, None, ), # 1
  6244. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  6245. (3, TType.STRING, 'part_name', None, None, ), # 3
  6246. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  6247. )
  6248. def __init__(self, db_name=None, tbl_name=None, part_name=None, deleteData=None,):
  6249. self.db_name = db_name
  6250. self.tbl_name = tbl_name
  6251. self.part_name = part_name
  6252. self.deleteData = deleteData
  6253. def read(self, iprot):
  6254. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6255. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6256. return
  6257. iprot.readStructBegin()
  6258. while True:
  6259. (fname, ftype, fid) = iprot.readFieldBegin()
  6260. if ftype == TType.STOP:
  6261. break
  6262. if fid == 1:
  6263. if ftype == TType.STRING:
  6264. self.db_name = iprot.readString();
  6265. else:
  6266. iprot.skip(ftype)
  6267. elif fid == 2:
  6268. if ftype == TType.STRING:
  6269. self.tbl_name = iprot.readString();
  6270. else:
  6271. iprot.skip(ftype)
  6272. elif fid == 3:
  6273. if ftype == TType.STRING:
  6274. self.part_name = iprot.readString();
  6275. else:
  6276. iprot.skip(ftype)
  6277. elif fid == 4:
  6278. if ftype == TType.BOOL:
  6279. self.deleteData = iprot.readBool();
  6280. else:
  6281. iprot.skip(ftype)
  6282. else:
  6283. iprot.skip(ftype)
  6284. iprot.readFieldEnd()
  6285. iprot.readStructEnd()
  6286. def write(self, oprot):
  6287. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6288. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6289. return
  6290. oprot.writeStructBegin('drop_partition_by_name_args')
  6291. if self.db_name is not None:
  6292. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  6293. oprot.writeString(self.db_name)
  6294. oprot.writeFieldEnd()
  6295. if self.tbl_name is not None:
  6296. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  6297. oprot.writeString(self.tbl_name)
  6298. oprot.writeFieldEnd()
  6299. if self.part_name is not None:
  6300. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  6301. oprot.writeString(self.part_name)
  6302. oprot.writeFieldEnd()
  6303. if self.deleteData is not None:
  6304. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  6305. oprot.writeBool(self.deleteData)
  6306. oprot.writeFieldEnd()
  6307. oprot.writeFieldStop()
  6308. oprot.writeStructEnd()
  6309. def validate(self):
  6310. return
  6311. def __repr__(self):
  6312. L = ['%s=%r' % (key, value)
  6313. for key, value in self.__dict__.iteritems()]
  6314. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6315. def __eq__(self, other):
  6316. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6317. def __ne__(self, other):
  6318. return not (self == other)
  6319. class drop_partition_by_name_result(object):
  6320. """
  6321. Attributes:
  6322. - success
  6323. - o1
  6324. - o2
  6325. """
  6326. thrift_spec = (
  6327. (0, TType.BOOL, 'success', None, None, ), # 0
  6328. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  6329. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  6330. )
  6331. def __init__(self, success=None, o1=None, o2=None,):
  6332. self.success = success
  6333. self.o1 = o1
  6334. self.o2 = o2
  6335. def read(self, iprot):
  6336. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6337. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6338. return
  6339. iprot.readStructBegin()
  6340. while True:
  6341. (fname, ftype, fid) = iprot.readFieldBegin()
  6342. if ftype == TType.STOP:
  6343. break
  6344. if fid == 0:
  6345. if ftype == TType.BOOL:
  6346. self.success = iprot.readBool();
  6347. else:
  6348. iprot.skip(ftype)
  6349. elif fid == 1:
  6350. if ftype == TType.STRUCT:
  6351. self.o1 = NoSuchObjectException()
  6352. self.o1.read(iprot)
  6353. else:
  6354. iprot.skip(ftype)
  6355. elif fid == 2:
  6356. if ftype == TType.STRUCT:
  6357. self.o2 = MetaException()
  6358. self.o2.read(iprot)
  6359. else:
  6360. iprot.skip(ftype)
  6361. else:
  6362. iprot.skip(ftype)
  6363. iprot.readFieldEnd()
  6364. iprot.readStructEnd()
  6365. def write(self, oprot):
  6366. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6367. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6368. return
  6369. oprot.writeStructBegin('drop_partition_by_name_result')
  6370. if self.success is not None:
  6371. oprot.writeFieldBegin('success', TType.BOOL, 0)
  6372. oprot.writeBool(self.success)
  6373. oprot.writeFieldEnd()
  6374. if self.o1 is not None:
  6375. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  6376. self.o1.write(oprot)
  6377. oprot.writeFieldEnd()
  6378. if self.o2 is not None:
  6379. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  6380. self.o2.write(oprot)
  6381. oprot.writeFieldEnd()
  6382. oprot.writeFieldStop()
  6383. oprot.writeStructEnd()
  6384. def validate(self):
  6385. return
  6386. def __repr__(self):
  6387. L = ['%s=%r' % (key, value)
  6388. for key, value in self.__dict__.iteritems()]
  6389. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6390. def __eq__(self, other):
  6391. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6392. def __ne__(self, other):
  6393. return not (self == other)
  6394. class get_partition_args(object):
  6395. """
  6396. Attributes:
  6397. - db_name
  6398. - tbl_name
  6399. - part_vals
  6400. """
  6401. thrift_spec = (
  6402. None, # 0
  6403. (1, TType.STRING, 'db_name', None, None, ), # 1
  6404. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  6405. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  6406. )
  6407. def __init__(self, db_name=None, tbl_name=None, part_vals=None,):
  6408. self.db_name = db_name
  6409. self.tbl_name = tbl_name
  6410. self.part_vals = part_vals
  6411. def read(self, iprot):
  6412. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6413. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6414. return
  6415. iprot.readStructBegin()
  6416. while True:
  6417. (fname, ftype, fid) = iprot.readFieldBegin()
  6418. if ftype == TType.STOP:
  6419. break
  6420. if fid == 1:
  6421. if ftype == TType.STRING:
  6422. self.db_name = iprot.readString();
  6423. else:
  6424. iprot.skip(ftype)
  6425. elif fid == 2:
  6426. if ftype == TType.STRING:
  6427. self.tbl_name = iprot.readString();
  6428. else:
  6429. iprot.skip(ftype)
  6430. elif fid == 3:
  6431. if ftype == TType.LIST:
  6432. self.part_vals = []
  6433. (_etype242, _size239) = iprot.readListBegin()
  6434. for _i243 in xrange(_size239):
  6435. _elem244 = iprot.readString();
  6436. self.part_vals.append(_elem244)
  6437. iprot.readListEnd()
  6438. else:
  6439. iprot.skip(ftype)
  6440. else:
  6441. iprot.skip(ftype)
  6442. iprot.readFieldEnd()
  6443. iprot.readStructEnd()
  6444. def write(self, oprot):
  6445. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6446. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6447. return
  6448. oprot.writeStructBegin('get_partition_args')
  6449. if self.db_name is not None:
  6450. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  6451. oprot.writeString(self.db_name)
  6452. oprot.writeFieldEnd()
  6453. if self.tbl_name is not None:
  6454. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  6455. oprot.writeString(self.tbl_name)
  6456. oprot.writeFieldEnd()
  6457. if self.part_vals is not None:
  6458. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  6459. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  6460. for iter245 in self.part_vals:
  6461. oprot.writeString(iter245)
  6462. oprot.writeListEnd()
  6463. oprot.writeFieldEnd()
  6464. oprot.writeFieldStop()
  6465. oprot.writeStructEnd()
  6466. def validate(self):
  6467. return
  6468. def __repr__(self):
  6469. L = ['%s=%r' % (key, value)
  6470. for key, value in self.__dict__.iteritems()]
  6471. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6472. def __eq__(self, other):
  6473. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6474. def __ne__(self, other):
  6475. return not (self == other)
  6476. class get_partition_result(object):
  6477. """
  6478. Attributes:
  6479. - success
  6480. - o1
  6481. - o2
  6482. """
  6483. thrift_spec = (
  6484. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  6485. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  6486. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  6487. )
  6488. def __init__(self, success=None, o1=None, o2=None,):
  6489. self.success = success
  6490. self.o1 = o1
  6491. self.o2 = o2
  6492. def read(self, iprot):
  6493. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6494. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6495. return
  6496. iprot.readStructBegin()
  6497. while True:
  6498. (fname, ftype, fid) = iprot.readFieldBegin()
  6499. if ftype == TType.STOP:
  6500. break
  6501. if fid == 0:
  6502. if ftype == TType.STRUCT:
  6503. self.success = Partition()
  6504. self.success.read(iprot)
  6505. else:
  6506. iprot.skip(ftype)
  6507. elif fid == 1:
  6508. if ftype == TType.STRUCT:
  6509. self.o1 = MetaException()
  6510. self.o1.read(iprot)
  6511. else:
  6512. iprot.skip(ftype)
  6513. elif fid == 2:
  6514. if ftype == TType.STRUCT:
  6515. self.o2 = NoSuchObjectException()
  6516. self.o2.read(iprot)
  6517. else:
  6518. iprot.skip(ftype)
  6519. else:
  6520. iprot.skip(ftype)
  6521. iprot.readFieldEnd()
  6522. iprot.readStructEnd()
  6523. def write(self, oprot):
  6524. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6525. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6526. return
  6527. oprot.writeStructBegin('get_partition_result')
  6528. if self.success is not None:
  6529. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  6530. self.success.write(oprot)
  6531. oprot.writeFieldEnd()
  6532. if self.o1 is not None:
  6533. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  6534. self.o1.write(oprot)
  6535. oprot.writeFieldEnd()
  6536. if self.o2 is not None:
  6537. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  6538. self.o2.write(oprot)
  6539. oprot.writeFieldEnd()
  6540. oprot.writeFieldStop()
  6541. oprot.writeStructEnd()
  6542. def validate(self):
  6543. return
  6544. def __repr__(self):
  6545. L = ['%s=%r' % (key, value)
  6546. for key, value in self.__dict__.iteritems()]
  6547. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6548. def __eq__(self, other):
  6549. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6550. def __ne__(self, other):
  6551. return not (self == other)
  6552. class get_partition_with_auth_args(object):
  6553. """
  6554. Attributes:
  6555. - db_name
  6556. - tbl_name
  6557. - part_vals
  6558. - user_name
  6559. - group_names
  6560. """
  6561. thrift_spec = (
  6562. None, # 0
  6563. (1, TType.STRING, 'db_name', None, None, ), # 1
  6564. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  6565. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  6566. (4, TType.STRING, 'user_name', None, None, ), # 4
  6567. (5, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 5
  6568. )
  6569. def __init__(self, db_name=None, tbl_name=None, part_vals=None, user_name=None, group_names=None,):
  6570. self.db_name = db_name
  6571. self.tbl_name = tbl_name
  6572. self.part_vals = part_vals
  6573. self.user_name = user_name
  6574. self.group_names = group_names
  6575. def read(self, iprot):
  6576. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6577. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6578. return
  6579. iprot.readStructBegin()
  6580. while True:
  6581. (fname, ftype, fid) = iprot.readFieldBegin()
  6582. if ftype == TType.STOP:
  6583. break
  6584. if fid == 1:
  6585. if ftype == TType.STRING:
  6586. self.db_name = iprot.readString();
  6587. else:
  6588. iprot.skip(ftype)
  6589. elif fid == 2:
  6590. if ftype == TType.STRING:
  6591. self.tbl_name = iprot.readString();
  6592. else:
  6593. iprot.skip(ftype)
  6594. elif fid == 3:
  6595. if ftype == TType.LIST:
  6596. self.part_vals = []
  6597. (_etype249, _size246) = iprot.readListBegin()
  6598. for _i250 in xrange(_size246):
  6599. _elem251 = iprot.readString();
  6600. self.part_vals.append(_elem251)
  6601. iprot.readListEnd()
  6602. else:
  6603. iprot.skip(ftype)
  6604. elif fid == 4:
  6605. if ftype == TType.STRING:
  6606. self.user_name = iprot.readString();
  6607. else:
  6608. iprot.skip(ftype)
  6609. elif fid == 5:
  6610. if ftype == TType.LIST:
  6611. self.group_names = []
  6612. (_etype255, _size252) = iprot.readListBegin()
  6613. for _i256 in xrange(_size252):
  6614. _elem257 = iprot.readString();
  6615. self.group_names.append(_elem257)
  6616. iprot.readListEnd()
  6617. else:
  6618. iprot.skip(ftype)
  6619. else:
  6620. iprot.skip(ftype)
  6621. iprot.readFieldEnd()
  6622. iprot.readStructEnd()
  6623. def write(self, oprot):
  6624. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6625. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6626. return
  6627. oprot.writeStructBegin('get_partition_with_auth_args')
  6628. if self.db_name is not None:
  6629. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  6630. oprot.writeString(self.db_name)
  6631. oprot.writeFieldEnd()
  6632. if self.tbl_name is not None:
  6633. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  6634. oprot.writeString(self.tbl_name)
  6635. oprot.writeFieldEnd()
  6636. if self.part_vals is not None:
  6637. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  6638. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  6639. for iter258 in self.part_vals:
  6640. oprot.writeString(iter258)
  6641. oprot.writeListEnd()
  6642. oprot.writeFieldEnd()
  6643. if self.user_name is not None:
  6644. oprot.writeFieldBegin('user_name', TType.STRING, 4)
  6645. oprot.writeString(self.user_name)
  6646. oprot.writeFieldEnd()
  6647. if self.group_names is not None:
  6648. oprot.writeFieldBegin('group_names', TType.LIST, 5)
  6649. oprot.writeListBegin(TType.STRING, len(self.group_names))
  6650. for iter259 in self.group_names:
  6651. oprot.writeString(iter259)
  6652. oprot.writeListEnd()
  6653. oprot.writeFieldEnd()
  6654. oprot.writeFieldStop()
  6655. oprot.writeStructEnd()
  6656. def validate(self):
  6657. return
  6658. def __repr__(self):
  6659. L = ['%s=%r' % (key, value)
  6660. for key, value in self.__dict__.iteritems()]
  6661. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6662. def __eq__(self, other):
  6663. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6664. def __ne__(self, other):
  6665. return not (self == other)
  6666. class get_partition_with_auth_result(object):
  6667. """
  6668. Attributes:
  6669. - success
  6670. - o1
  6671. - o2
  6672. """
  6673. thrift_spec = (
  6674. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  6675. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  6676. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  6677. )
  6678. def __init__(self, success=None, o1=None, o2=None,):
  6679. self.success = success
  6680. self.o1 = o1
  6681. self.o2 = o2
  6682. def read(self, iprot):
  6683. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6684. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6685. return
  6686. iprot.readStructBegin()
  6687. while True:
  6688. (fname, ftype, fid) = iprot.readFieldBegin()
  6689. if ftype == TType.STOP:
  6690. break
  6691. if fid == 0:
  6692. if ftype == TType.STRUCT:
  6693. self.success = Partition()
  6694. self.success.read(iprot)
  6695. else:
  6696. iprot.skip(ftype)
  6697. elif fid == 1:
  6698. if ftype == TType.STRUCT:
  6699. self.o1 = MetaException()
  6700. self.o1.read(iprot)
  6701. else:
  6702. iprot.skip(ftype)
  6703. elif fid == 2:
  6704. if ftype == TType.STRUCT:
  6705. self.o2 = NoSuchObjectException()
  6706. self.o2.read(iprot)
  6707. else:
  6708. iprot.skip(ftype)
  6709. else:
  6710. iprot.skip(ftype)
  6711. iprot.readFieldEnd()
  6712. iprot.readStructEnd()
  6713. def write(self, oprot):
  6714. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6715. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6716. return
  6717. oprot.writeStructBegin('get_partition_with_auth_result')
  6718. if self.success is not None:
  6719. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  6720. self.success.write(oprot)
  6721. oprot.writeFieldEnd()
  6722. if self.o1 is not None:
  6723. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  6724. self.o1.write(oprot)
  6725. oprot.writeFieldEnd()
  6726. if self.o2 is not None:
  6727. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  6728. self.o2.write(oprot)
  6729. oprot.writeFieldEnd()
  6730. oprot.writeFieldStop()
  6731. oprot.writeStructEnd()
  6732. def validate(self):
  6733. return
  6734. def __repr__(self):
  6735. L = ['%s=%r' % (key, value)
  6736. for key, value in self.__dict__.iteritems()]
  6737. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6738. def __eq__(self, other):
  6739. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6740. def __ne__(self, other):
  6741. return not (self == other)
  6742. class get_partition_by_name_args(object):
  6743. """
  6744. Attributes:
  6745. - db_name
  6746. - tbl_name
  6747. - part_name
  6748. """
  6749. thrift_spec = (
  6750. None, # 0
  6751. (1, TType.STRING, 'db_name', None, None, ), # 1
  6752. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  6753. (3, TType.STRING, 'part_name', None, None, ), # 3
  6754. )
  6755. def __init__(self, db_name=None, tbl_name=None, part_name=None,):
  6756. self.db_name = db_name
  6757. self.tbl_name = tbl_name
  6758. self.part_name = part_name
  6759. def read(self, iprot):
  6760. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6761. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6762. return
  6763. iprot.readStructBegin()
  6764. while True:
  6765. (fname, ftype, fid) = iprot.readFieldBegin()
  6766. if ftype == TType.STOP:
  6767. break
  6768. if fid == 1:
  6769. if ftype == TType.STRING:
  6770. self.db_name = iprot.readString();
  6771. else:
  6772. iprot.skip(ftype)
  6773. elif fid == 2:
  6774. if ftype == TType.STRING:
  6775. self.tbl_name = iprot.readString();
  6776. else:
  6777. iprot.skip(ftype)
  6778. elif fid == 3:
  6779. if ftype == TType.STRING:
  6780. self.part_name = iprot.readString();
  6781. else:
  6782. iprot.skip(ftype)
  6783. else:
  6784. iprot.skip(ftype)
  6785. iprot.readFieldEnd()
  6786. iprot.readStructEnd()
  6787. def write(self, oprot):
  6788. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6789. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6790. return
  6791. oprot.writeStructBegin('get_partition_by_name_args')
  6792. if self.db_name is not None:
  6793. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  6794. oprot.writeString(self.db_name)
  6795. oprot.writeFieldEnd()
  6796. if self.tbl_name is not None:
  6797. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  6798. oprot.writeString(self.tbl_name)
  6799. oprot.writeFieldEnd()
  6800. if self.part_name is not None:
  6801. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  6802. oprot.writeString(self.part_name)
  6803. oprot.writeFieldEnd()
  6804. oprot.writeFieldStop()
  6805. oprot.writeStructEnd()
  6806. def validate(self):
  6807. return
  6808. def __repr__(self):
  6809. L = ['%s=%r' % (key, value)
  6810. for key, value in self.__dict__.iteritems()]
  6811. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6812. def __eq__(self, other):
  6813. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6814. def __ne__(self, other):
  6815. return not (self == other)
  6816. class get_partition_by_name_result(object):
  6817. """
  6818. Attributes:
  6819. - success
  6820. - o1
  6821. - o2
  6822. """
  6823. thrift_spec = (
  6824. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  6825. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  6826. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  6827. )
  6828. def __init__(self, success=None, o1=None, o2=None,):
  6829. self.success = success
  6830. self.o1 = o1
  6831. self.o2 = o2
  6832. def read(self, iprot):
  6833. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6834. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6835. return
  6836. iprot.readStructBegin()
  6837. while True:
  6838. (fname, ftype, fid) = iprot.readFieldBegin()
  6839. if ftype == TType.STOP:
  6840. break
  6841. if fid == 0:
  6842. if ftype == TType.STRUCT:
  6843. self.success = Partition()
  6844. self.success.read(iprot)
  6845. else:
  6846. iprot.skip(ftype)
  6847. elif fid == 1:
  6848. if ftype == TType.STRUCT:
  6849. self.o1 = MetaException()
  6850. self.o1.read(iprot)
  6851. else:
  6852. iprot.skip(ftype)
  6853. elif fid == 2:
  6854. if ftype == TType.STRUCT:
  6855. self.o2 = NoSuchObjectException()
  6856. self.o2.read(iprot)
  6857. else:
  6858. iprot.skip(ftype)
  6859. else:
  6860. iprot.skip(ftype)
  6861. iprot.readFieldEnd()
  6862. iprot.readStructEnd()
  6863. def write(self, oprot):
  6864. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6865. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6866. return
  6867. oprot.writeStructBegin('get_partition_by_name_result')
  6868. if self.success is not None:
  6869. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  6870. self.success.write(oprot)
  6871. oprot.writeFieldEnd()
  6872. if self.o1 is not None:
  6873. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  6874. self.o1.write(oprot)
  6875. oprot.writeFieldEnd()
  6876. if self.o2 is not None:
  6877. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  6878. self.o2.write(oprot)
  6879. oprot.writeFieldEnd()
  6880. oprot.writeFieldStop()
  6881. oprot.writeStructEnd()
  6882. def validate(self):
  6883. return
  6884. def __repr__(self):
  6885. L = ['%s=%r' % (key, value)
  6886. for key, value in self.__dict__.iteritems()]
  6887. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6888. def __eq__(self, other):
  6889. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6890. def __ne__(self, other):
  6891. return not (self == other)
  6892. class get_partitions_args(object):
  6893. """
  6894. Attributes:
  6895. - db_name
  6896. - tbl_name
  6897. - max_parts
  6898. """
  6899. thrift_spec = (
  6900. None, # 0
  6901. (1, TType.STRING, 'db_name', None, None, ), # 1
  6902. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  6903. (3, TType.I16, 'max_parts', None, -1, ), # 3
  6904. )
  6905. def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4],):
  6906. self.db_name = db_name
  6907. self.tbl_name = tbl_name
  6908. self.max_parts = max_parts
  6909. def read(self, iprot):
  6910. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6911. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6912. return
  6913. iprot.readStructBegin()
  6914. while True:
  6915. (fname, ftype, fid) = iprot.readFieldBegin()
  6916. if ftype == TType.STOP:
  6917. break
  6918. if fid == 1:
  6919. if ftype == TType.STRING:
  6920. self.db_name = iprot.readString();
  6921. else:
  6922. iprot.skip(ftype)
  6923. elif fid == 2:
  6924. if ftype == TType.STRING:
  6925. self.tbl_name = iprot.readString();
  6926. else:
  6927. iprot.skip(ftype)
  6928. elif fid == 3:
  6929. if ftype == TType.I16:
  6930. self.max_parts = iprot.readI16();
  6931. else:
  6932. iprot.skip(ftype)
  6933. else:
  6934. iprot.skip(ftype)
  6935. iprot.readFieldEnd()
  6936. iprot.readStructEnd()
  6937. def write(self, oprot):
  6938. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6939. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6940. return
  6941. oprot.writeStructBegin('get_partitions_args')
  6942. if self.db_name is not None:
  6943. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  6944. oprot.writeString(self.db_name)
  6945. oprot.writeFieldEnd()
  6946. if self.tbl_name is not None:
  6947. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  6948. oprot.writeString(self.tbl_name)
  6949. oprot.writeFieldEnd()
  6950. if self.max_parts is not None:
  6951. oprot.writeFieldBegin('max_parts', TType.I16, 3)
  6952. oprot.writeI16(self.max_parts)
  6953. oprot.writeFieldEnd()
  6954. oprot.writeFieldStop()
  6955. oprot.writeStructEnd()
  6956. def validate(self):
  6957. return
  6958. def __repr__(self):
  6959. L = ['%s=%r' % (key, value)
  6960. for key, value in self.__dict__.iteritems()]
  6961. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6962. def __eq__(self, other):
  6963. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6964. def __ne__(self, other):
  6965. return not (self == other)
  6966. class get_partitions_result(object):
  6967. """
  6968. Attributes:
  6969. - success
  6970. - o1
  6971. - o2
  6972. """
  6973. thrift_spec = (
  6974. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  6975. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  6976. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  6977. )
  6978. def __init__(self, success=None, o1=None, o2=None,):
  6979. self.success = success
  6980. self.o1 = o1
  6981. self.o2 = o2
  6982. def read(self, iprot):
  6983. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6984. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6985. return
  6986. iprot.readStructBegin()
  6987. while True:
  6988. (fname, ftype, fid) = iprot.readFieldBegin()
  6989. if ftype == TType.STOP:
  6990. break
  6991. if fid == 0:
  6992. if ftype == TType.LIST:
  6993. self.success = []
  6994. (_etype263, _size260) = iprot.readListBegin()
  6995. for _i264 in xrange(_size260):
  6996. _elem265 = Partition()
  6997. _elem265.read(iprot)
  6998. self.success.append(_elem265)
  6999. iprot.readListEnd()
  7000. else:
  7001. iprot.skip(ftype)
  7002. elif fid == 1:
  7003. if ftype == TType.STRUCT:
  7004. self.o1 = NoSuchObjectException()
  7005. self.o1.read(iprot)
  7006. else:
  7007. iprot.skip(ftype)
  7008. elif fid == 2:
  7009. if ftype == TType.STRUCT:
  7010. self.o2 = MetaException()
  7011. self.o2.read(iprot)
  7012. else:
  7013. iprot.skip(ftype)
  7014. else:
  7015. iprot.skip(ftype)
  7016. iprot.readFieldEnd()
  7017. iprot.readStructEnd()
  7018. def write(self, oprot):
  7019. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7020. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7021. return
  7022. oprot.writeStructBegin('get_partitions_result')
  7023. if self.success is not None:
  7024. oprot.writeFieldBegin('success', TType.LIST, 0)
  7025. oprot.writeListBegin(TType.STRUCT, len(self.success))
  7026. for iter266 in self.success:
  7027. iter266.write(oprot)
  7028. oprot.writeListEnd()
  7029. oprot.writeFieldEnd()
  7030. if self.o1 is not None:
  7031. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  7032. self.o1.write(oprot)
  7033. oprot.writeFieldEnd()
  7034. if self.o2 is not None:
  7035. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  7036. self.o2.write(oprot)
  7037. oprot.writeFieldEnd()
  7038. oprot.writeFieldStop()
  7039. oprot.writeStructEnd()
  7040. def validate(self):
  7041. return
  7042. def __repr__(self):
  7043. L = ['%s=%r' % (key, value)
  7044. for key, value in self.__dict__.iteritems()]
  7045. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7046. def __eq__(self, other):
  7047. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7048. def __ne__(self, other):
  7049. return not (self == other)
  7050. class get_partitions_with_auth_args(object):
  7051. """
  7052. Attributes:
  7053. - db_name
  7054. - tbl_name
  7055. - max_parts
  7056. - user_name
  7057. - group_names
  7058. """
  7059. thrift_spec = (
  7060. None, # 0
  7061. (1, TType.STRING, 'db_name', None, None, ), # 1
  7062. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  7063. (3, TType.I16, 'max_parts', None, -1, ), # 3
  7064. (4, TType.STRING, 'user_name', None, None, ), # 4
  7065. (5, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 5
  7066. )
  7067. def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4], user_name=None, group_names=None,):
  7068. self.db_name = db_name
  7069. self.tbl_name = tbl_name
  7070. self.max_parts = max_parts
  7071. self.user_name = user_name
  7072. self.group_names = group_names
  7073. def read(self, iprot):
  7074. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7075. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7076. return
  7077. iprot.readStructBegin()
  7078. while True:
  7079. (fname, ftype, fid) = iprot.readFieldBegin()
  7080. if ftype == TType.STOP:
  7081. break
  7082. if fid == 1:
  7083. if ftype == TType.STRING:
  7084. self.db_name = iprot.readString();
  7085. else:
  7086. iprot.skip(ftype)
  7087. elif fid == 2:
  7088. if ftype == TType.STRING:
  7089. self.tbl_name = iprot.readString();
  7090. else:
  7091. iprot.skip(ftype)
  7092. elif fid == 3:
  7093. if ftype == TType.I16:
  7094. self.max_parts = iprot.readI16();
  7095. else:
  7096. iprot.skip(ftype)
  7097. elif fid == 4:
  7098. if ftype == TType.STRING:
  7099. self.user_name = iprot.readString();
  7100. else:
  7101. iprot.skip(ftype)
  7102. elif fid == 5:
  7103. if ftype == TType.LIST:
  7104. self.group_names = []
  7105. (_etype270, _size267) = iprot.readListBegin()
  7106. for _i271 in xrange(_size267):
  7107. _elem272 = iprot.readString();
  7108. self.group_names.append(_elem272)
  7109. iprot.readListEnd()
  7110. else:
  7111. iprot.skip(ftype)
  7112. else:
  7113. iprot.skip(ftype)
  7114. iprot.readFieldEnd()
  7115. iprot.readStructEnd()
  7116. def write(self, oprot):
  7117. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7118. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7119. return
  7120. oprot.writeStructBegin('get_partitions_with_auth_args')
  7121. if self.db_name is not None:
  7122. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  7123. oprot.writeString(self.db_name)
  7124. oprot.writeFieldEnd()
  7125. if self.tbl_name is not None:
  7126. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  7127. oprot.writeString(self.tbl_name)
  7128. oprot.writeFieldEnd()
  7129. if self.max_parts is not None:
  7130. oprot.writeFieldBegin('max_parts', TType.I16, 3)
  7131. oprot.writeI16(self.max_parts)
  7132. oprot.writeFieldEnd()
  7133. if self.user_name is not None:
  7134. oprot.writeFieldBegin('user_name', TType.STRING, 4)
  7135. oprot.writeString(self.user_name)
  7136. oprot.writeFieldEnd()
  7137. if self.group_names is not None:
  7138. oprot.writeFieldBegin('group_names', TType.LIST, 5)
  7139. oprot.writeListBegin(TType.STRING, len(self.group_names))
  7140. for iter273 in self.group_names:
  7141. oprot.writeString(iter273)
  7142. oprot.writeListEnd()
  7143. oprot.writeFieldEnd()
  7144. oprot.writeFieldStop()
  7145. oprot.writeStructEnd()
  7146. def validate(self):
  7147. return
  7148. def __repr__(self):
  7149. L = ['%s=%r' % (key, value)
  7150. for key, value in self.__dict__.iteritems()]
  7151. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7152. def __eq__(self, other):
  7153. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7154. def __ne__(self, other):
  7155. return not (self == other)
  7156. class get_partitions_with_auth_result(object):
  7157. """
  7158. Attributes:
  7159. - success
  7160. - o1
  7161. - o2
  7162. """
  7163. thrift_spec = (
  7164. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  7165. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  7166. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  7167. )
  7168. def __init__(self, success=None, o1=None, o2=None,):
  7169. self.success = success
  7170. self.o1 = o1
  7171. self.o2 = o2
  7172. def read(self, iprot):
  7173. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7174. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7175. return
  7176. iprot.readStructBegin()
  7177. while True:
  7178. (fname, ftype, fid) = iprot.readFieldBegin()
  7179. if ftype == TType.STOP:
  7180. break
  7181. if fid == 0:
  7182. if ftype == TType.LIST:
  7183. self.success = []
  7184. (_etype277, _size274) = iprot.readListBegin()
  7185. for _i278 in xrange(_size274):
  7186. _elem279 = Partition()
  7187. _elem279.read(iprot)
  7188. self.success.append(_elem279)
  7189. iprot.readListEnd()
  7190. else:
  7191. iprot.skip(ftype)
  7192. elif fid == 1:
  7193. if ftype == TType.STRUCT:
  7194. self.o1 = NoSuchObjectException()
  7195. self.o1.read(iprot)
  7196. else:
  7197. iprot.skip(ftype)
  7198. elif fid == 2:
  7199. if ftype == TType.STRUCT:
  7200. self.o2 = MetaException()
  7201. self.o2.read(iprot)
  7202. else:
  7203. iprot.skip(ftype)
  7204. else:
  7205. iprot.skip(ftype)
  7206. iprot.readFieldEnd()
  7207. iprot.readStructEnd()
  7208. def write(self, oprot):
  7209. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7210. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7211. return
  7212. oprot.writeStructBegin('get_partitions_with_auth_result')
  7213. if self.success is not None:
  7214. oprot.writeFieldBegin('success', TType.LIST, 0)
  7215. oprot.writeListBegin(TType.STRUCT, len(self.success))
  7216. for iter280 in self.success:
  7217. iter280.write(oprot)
  7218. oprot.writeListEnd()
  7219. oprot.writeFieldEnd()
  7220. if self.o1 is not None:
  7221. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  7222. self.o1.write(oprot)
  7223. oprot.writeFieldEnd()
  7224. if self.o2 is not None:
  7225. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  7226. self.o2.write(oprot)
  7227. oprot.writeFieldEnd()
  7228. oprot.writeFieldStop()
  7229. oprot.writeStructEnd()
  7230. def validate(self):
  7231. return
  7232. def __repr__(self):
  7233. L = ['%s=%r' % (key, value)
  7234. for key, value in self.__dict__.iteritems()]
  7235. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7236. def __eq__(self, other):
  7237. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7238. def __ne__(self, other):
  7239. return not (self == other)
  7240. class get_partition_names_args(object):
  7241. """
  7242. Attributes:
  7243. - db_name
  7244. - tbl_name
  7245. - max_parts
  7246. """
  7247. thrift_spec = (
  7248. None, # 0
  7249. (1, TType.STRING, 'db_name', None, None, ), # 1
  7250. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  7251. (3, TType.I16, 'max_parts', None, -1, ), # 3
  7252. )
  7253. def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4],):
  7254. self.db_name = db_name
  7255. self.tbl_name = tbl_name
  7256. self.max_parts = max_parts
  7257. def read(self, iprot):
  7258. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7259. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7260. return
  7261. iprot.readStructBegin()
  7262. while True:
  7263. (fname, ftype, fid) = iprot.readFieldBegin()
  7264. if ftype == TType.STOP:
  7265. break
  7266. if fid == 1:
  7267. if ftype == TType.STRING:
  7268. self.db_name = iprot.readString();
  7269. else:
  7270. iprot.skip(ftype)
  7271. elif fid == 2:
  7272. if ftype == TType.STRING:
  7273. self.tbl_name = iprot.readString();
  7274. else:
  7275. iprot.skip(ftype)
  7276. elif fid == 3:
  7277. if ftype == TType.I16:
  7278. self.max_parts = iprot.readI16();
  7279. else:
  7280. iprot.skip(ftype)
  7281. else:
  7282. iprot.skip(ftype)
  7283. iprot.readFieldEnd()
  7284. iprot.readStructEnd()
  7285. def write(self, oprot):
  7286. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7287. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7288. return
  7289. oprot.writeStructBegin('get_partition_names_args')
  7290. if self.db_name is not None:
  7291. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  7292. oprot.writeString(self.db_name)
  7293. oprot.writeFieldEnd()
  7294. if self.tbl_name is not None:
  7295. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  7296. oprot.writeString(self.tbl_name)
  7297. oprot.writeFieldEnd()
  7298. if self.max_parts is not None:
  7299. oprot.writeFieldBegin('max_parts', TType.I16, 3)
  7300. oprot.writeI16(self.max_parts)
  7301. oprot.writeFieldEnd()
  7302. oprot.writeFieldStop()
  7303. oprot.writeStructEnd()
  7304. def validate(self):
  7305. return
  7306. def __repr__(self):
  7307. L = ['%s=%r' % (key, value)
  7308. for key, value in self.__dict__.iteritems()]
  7309. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7310. def __eq__(self, other):
  7311. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7312. def __ne__(self, other):
  7313. return not (self == other)
  7314. class get_partition_names_result(object):
  7315. """
  7316. Attributes:
  7317. - success
  7318. - o2
  7319. """
  7320. thrift_spec = (
  7321. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  7322. (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1
  7323. )
  7324. def __init__(self, success=None, o2=None,):
  7325. self.success = success
  7326. self.o2 = o2
  7327. def read(self, iprot):
  7328. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7329. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7330. return
  7331. iprot.readStructBegin()
  7332. while True:
  7333. (fname, ftype, fid) = iprot.readFieldBegin()
  7334. if ftype == TType.STOP:
  7335. break
  7336. if fid == 0:
  7337. if ftype == TType.LIST:
  7338. self.success = []
  7339. (_etype284, _size281) = iprot.readListBegin()
  7340. for _i285 in xrange(_size281):
  7341. _elem286 = iprot.readString();
  7342. self.success.append(_elem286)
  7343. iprot.readListEnd()
  7344. else:
  7345. iprot.skip(ftype)
  7346. elif fid == 1:
  7347. if ftype == TType.STRUCT:
  7348. self.o2 = MetaException()
  7349. self.o2.read(iprot)
  7350. else:
  7351. iprot.skip(ftype)
  7352. else:
  7353. iprot.skip(ftype)
  7354. iprot.readFieldEnd()
  7355. iprot.readStructEnd()
  7356. def write(self, oprot):
  7357. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7358. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7359. return
  7360. oprot.writeStructBegin('get_partition_names_result')
  7361. if self.success is not None:
  7362. oprot.writeFieldBegin('success', TType.LIST, 0)
  7363. oprot.writeListBegin(TType.STRING, len(self.success))
  7364. for iter287 in self.success:
  7365. oprot.writeString(iter287)
  7366. oprot.writeListEnd()
  7367. oprot.writeFieldEnd()
  7368. if self.o2 is not None:
  7369. oprot.writeFieldBegin('o2', TType.STRUCT, 1)
  7370. self.o2.write(oprot)
  7371. oprot.writeFieldEnd()
  7372. oprot.writeFieldStop()
  7373. oprot.writeStructEnd()
  7374. def validate(self):
  7375. return
  7376. def __repr__(self):
  7377. L = ['%s=%r' % (key, value)
  7378. for key, value in self.__dict__.iteritems()]
  7379. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7380. def __eq__(self, other):
  7381. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7382. def __ne__(self, other):
  7383. return not (self == other)
  7384. class get_partitions_ps_args(object):
  7385. """
  7386. Attributes:
  7387. - db_name
  7388. - tbl_name
  7389. - part_vals
  7390. - max_parts
  7391. """
  7392. thrift_spec = (
  7393. None, # 0
  7394. (1, TType.STRING, 'db_name', None, None, ), # 1
  7395. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  7396. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  7397. (4, TType.I16, 'max_parts', None, -1, ), # 4
  7398. )
  7399. def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4],):
  7400. self.db_name = db_name
  7401. self.tbl_name = tbl_name
  7402. self.part_vals = part_vals
  7403. self.max_parts = max_parts
  7404. def read(self, iprot):
  7405. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7406. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7407. return
  7408. iprot.readStructBegin()
  7409. while True:
  7410. (fname, ftype, fid) = iprot.readFieldBegin()
  7411. if ftype == TType.STOP:
  7412. break
  7413. if fid == 1:
  7414. if ftype == TType.STRING:
  7415. self.db_name = iprot.readString();
  7416. else:
  7417. iprot.skip(ftype)
  7418. elif fid == 2:
  7419. if ftype == TType.STRING:
  7420. self.tbl_name = iprot.readString();
  7421. else:
  7422. iprot.skip(ftype)
  7423. elif fid == 3:
  7424. if ftype == TType.LIST:
  7425. self.part_vals = []
  7426. (_etype291, _size288) = iprot.readListBegin()
  7427. for _i292 in xrange(_size288):
  7428. _elem293 = iprot.readString();
  7429. self.part_vals.append(_elem293)
  7430. iprot.readListEnd()
  7431. else:
  7432. iprot.skip(ftype)
  7433. elif fid == 4:
  7434. if ftype == TType.I16:
  7435. self.max_parts = iprot.readI16();
  7436. else:
  7437. iprot.skip(ftype)
  7438. else:
  7439. iprot.skip(ftype)
  7440. iprot.readFieldEnd()
  7441. iprot.readStructEnd()
  7442. def write(self, oprot):
  7443. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7444. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7445. return
  7446. oprot.writeStructBegin('get_partitions_ps_args')
  7447. if self.db_name is not None:
  7448. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  7449. oprot.writeString(self.db_name)
  7450. oprot.writeFieldEnd()
  7451. if self.tbl_name is not None:
  7452. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  7453. oprot.writeString(self.tbl_name)
  7454. oprot.writeFieldEnd()
  7455. if self.part_vals is not None:
  7456. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  7457. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  7458. for iter294 in self.part_vals:
  7459. oprot.writeString(iter294)
  7460. oprot.writeListEnd()
  7461. oprot.writeFieldEnd()
  7462. if self.max_parts is not None:
  7463. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  7464. oprot.writeI16(self.max_parts)
  7465. oprot.writeFieldEnd()
  7466. oprot.writeFieldStop()
  7467. oprot.writeStructEnd()
  7468. def validate(self):
  7469. return
  7470. def __repr__(self):
  7471. L = ['%s=%r' % (key, value)
  7472. for key, value in self.__dict__.iteritems()]
  7473. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7474. def __eq__(self, other):
  7475. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7476. def __ne__(self, other):
  7477. return not (self == other)
  7478. class get_partitions_ps_result(object):
  7479. """
  7480. Attributes:
  7481. - success
  7482. - o1
  7483. """
  7484. thrift_spec = (
  7485. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  7486. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  7487. )
  7488. def __init__(self, success=None, o1=None,):
  7489. self.success = success
  7490. self.o1 = o1
  7491. def read(self, iprot):
  7492. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7493. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7494. return
  7495. iprot.readStructBegin()
  7496. while True:
  7497. (fname, ftype, fid) = iprot.readFieldBegin()
  7498. if ftype == TType.STOP:
  7499. break
  7500. if fid == 0:
  7501. if ftype == TType.LIST:
  7502. self.success = []
  7503. (_etype298, _size295) = iprot.readListBegin()
  7504. for _i299 in xrange(_size295):
  7505. _elem300 = Partition()
  7506. _elem300.read(iprot)
  7507. self.success.append(_elem300)
  7508. iprot.readListEnd()
  7509. else:
  7510. iprot.skip(ftype)
  7511. elif fid == 1:
  7512. if ftype == TType.STRUCT:
  7513. self.o1 = MetaException()
  7514. self.o1.read(iprot)
  7515. else:
  7516. iprot.skip(ftype)
  7517. else:
  7518. iprot.skip(ftype)
  7519. iprot.readFieldEnd()
  7520. iprot.readStructEnd()
  7521. def write(self, oprot):
  7522. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7523. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7524. return
  7525. oprot.writeStructBegin('get_partitions_ps_result')
  7526. if self.success is not None:
  7527. oprot.writeFieldBegin('success', TType.LIST, 0)
  7528. oprot.writeListBegin(TType.STRUCT, len(self.success))
  7529. for iter301 in self.success:
  7530. iter301.write(oprot)
  7531. oprot.writeListEnd()
  7532. oprot.writeFieldEnd()
  7533. if self.o1 is not None:
  7534. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  7535. self.o1.write(oprot)
  7536. oprot.writeFieldEnd()
  7537. oprot.writeFieldStop()
  7538. oprot.writeStructEnd()
  7539. def validate(self):
  7540. return
  7541. def __repr__(self):
  7542. L = ['%s=%r' % (key, value)
  7543. for key, value in self.__dict__.iteritems()]
  7544. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7545. def __eq__(self, other):
  7546. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7547. def __ne__(self, other):
  7548. return not (self == other)
  7549. class get_partitions_ps_with_auth_args(object):
  7550. """
  7551. Attributes:
  7552. - db_name
  7553. - tbl_name
  7554. - part_vals
  7555. - max_parts
  7556. - user_name
  7557. - group_names
  7558. """
  7559. thrift_spec = (
  7560. None, # 0
  7561. (1, TType.STRING, 'db_name', None, None, ), # 1
  7562. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  7563. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  7564. (4, TType.I16, 'max_parts', None, -1, ), # 4
  7565. (5, TType.STRING, 'user_name', None, None, ), # 5
  7566. (6, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 6
  7567. )
  7568. def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4], user_name=None, group_names=None,):
  7569. self.db_name = db_name
  7570. self.tbl_name = tbl_name
  7571. self.part_vals = part_vals
  7572. self.max_parts = max_parts
  7573. self.user_name = user_name
  7574. self.group_names = group_names
  7575. def read(self, iprot):
  7576. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7577. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7578. return
  7579. iprot.readStructBegin()
  7580. while True:
  7581. (fname, ftype, fid) = iprot.readFieldBegin()
  7582. if ftype == TType.STOP:
  7583. break
  7584. if fid == 1:
  7585. if ftype == TType.STRING:
  7586. self.db_name = iprot.readString();
  7587. else:
  7588. iprot.skip(ftype)
  7589. elif fid == 2:
  7590. if ftype == TType.STRING:
  7591. self.tbl_name = iprot.readString();
  7592. else:
  7593. iprot.skip(ftype)
  7594. elif fid == 3:
  7595. if ftype == TType.LIST:
  7596. self.part_vals = []
  7597. (_etype305, _size302) = iprot.readListBegin()
  7598. for _i306 in xrange(_size302):
  7599. _elem307 = iprot.readString();
  7600. self.part_vals.append(_elem307)
  7601. iprot.readListEnd()
  7602. else:
  7603. iprot.skip(ftype)
  7604. elif fid == 4:
  7605. if ftype == TType.I16:
  7606. self.max_parts = iprot.readI16();
  7607. else:
  7608. iprot.skip(ftype)
  7609. elif fid == 5:
  7610. if ftype == TType.STRING:
  7611. self.user_name = iprot.readString();
  7612. else:
  7613. iprot.skip(ftype)
  7614. elif fid == 6:
  7615. if ftype == TType.LIST:
  7616. self.group_names = []
  7617. (_etype311, _size308) = iprot.readListBegin()
  7618. for _i312 in xrange(_size308):
  7619. _elem313 = iprot.readString();
  7620. self.group_names.append(_elem313)
  7621. iprot.readListEnd()
  7622. else:
  7623. iprot.skip(ftype)
  7624. else:
  7625. iprot.skip(ftype)
  7626. iprot.readFieldEnd()
  7627. iprot.readStructEnd()
  7628. def write(self, oprot):
  7629. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7630. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7631. return
  7632. oprot.writeStructBegin('get_partitions_ps_with_auth_args')
  7633. if self.db_name is not None:
  7634. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  7635. oprot.writeString(self.db_name)
  7636. oprot.writeFieldEnd()
  7637. if self.tbl_name is not None:
  7638. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  7639. oprot.writeString(self.tbl_name)
  7640. oprot.writeFieldEnd()
  7641. if self.part_vals is not None:
  7642. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  7643. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  7644. for iter314 in self.part_vals:
  7645. oprot.writeString(iter314)
  7646. oprot.writeListEnd()
  7647. oprot.writeFieldEnd()
  7648. if self.max_parts is not None:
  7649. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  7650. oprot.writeI16(self.max_parts)
  7651. oprot.writeFieldEnd()
  7652. if self.user_name is not None:
  7653. oprot.writeFieldBegin('user_name', TType.STRING, 5)
  7654. oprot.writeString(self.user_name)
  7655. oprot.writeFieldEnd()
  7656. if self.group_names is not None:
  7657. oprot.writeFieldBegin('group_names', TType.LIST, 6)
  7658. oprot.writeListBegin(TType.STRING, len(self.group_names))
  7659. for iter315 in self.group_names:
  7660. oprot.writeString(iter315)
  7661. oprot.writeListEnd()
  7662. oprot.writeFieldEnd()
  7663. oprot.writeFieldStop()
  7664. oprot.writeStructEnd()
  7665. def validate(self):
  7666. return
  7667. def __repr__(self):
  7668. L = ['%s=%r' % (key, value)
  7669. for key, value in self.__dict__.iteritems()]
  7670. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7671. def __eq__(self, other):
  7672. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7673. def __ne__(self, other):
  7674. return not (self == other)
  7675. class get_partitions_ps_with_auth_result(object):
  7676. """
  7677. Attributes:
  7678. - success
  7679. - o1
  7680. - o2
  7681. """
  7682. thrift_spec = (
  7683. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  7684. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  7685. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  7686. )
  7687. def __init__(self, success=None, o1=None, o2=None,):
  7688. self.success = success
  7689. self.o1 = o1
  7690. self.o2 = o2
  7691. def read(self, iprot):
  7692. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7693. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7694. return
  7695. iprot.readStructBegin()
  7696. while True:
  7697. (fname, ftype, fid) = iprot.readFieldBegin()
  7698. if ftype == TType.STOP:
  7699. break
  7700. if fid == 0:
  7701. if ftype == TType.LIST:
  7702. self.success = []
  7703. (_etype319, _size316) = iprot.readListBegin()
  7704. for _i320 in xrange(_size316):
  7705. _elem321 = Partition()
  7706. _elem321.read(iprot)
  7707. self.success.append(_elem321)
  7708. iprot.readListEnd()
  7709. else:
  7710. iprot.skip(ftype)
  7711. elif fid == 1:
  7712. if ftype == TType.STRUCT:
  7713. self.o1 = NoSuchObjectException()
  7714. self.o1.read(iprot)
  7715. else:
  7716. iprot.skip(ftype)
  7717. elif fid == 2:
  7718. if ftype == TType.STRUCT:
  7719. self.o2 = MetaException()
  7720. self.o2.read(iprot)
  7721. else:
  7722. iprot.skip(ftype)
  7723. else:
  7724. iprot.skip(ftype)
  7725. iprot.readFieldEnd()
  7726. iprot.readStructEnd()
  7727. def write(self, oprot):
  7728. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7729. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7730. return
  7731. oprot.writeStructBegin('get_partitions_ps_with_auth_result')
  7732. if self.success is not None:
  7733. oprot.writeFieldBegin('success', TType.LIST, 0)
  7734. oprot.writeListBegin(TType.STRUCT, len(self.success))
  7735. for iter322 in self.success:
  7736. iter322.write(oprot)
  7737. oprot.writeListEnd()
  7738. oprot.writeFieldEnd()
  7739. if self.o1 is not None:
  7740. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  7741. self.o1.write(oprot)
  7742. oprot.writeFieldEnd()
  7743. if self.o2 is not None:
  7744. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  7745. self.o2.write(oprot)
  7746. oprot.writeFieldEnd()
  7747. oprot.writeFieldStop()
  7748. oprot.writeStructEnd()
  7749. def validate(self):
  7750. return
  7751. def __repr__(self):
  7752. L = ['%s=%r' % (key, value)
  7753. for key, value in self.__dict__.iteritems()]
  7754. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7755. def __eq__(self, other):
  7756. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7757. def __ne__(self, other):
  7758. return not (self == other)
  7759. class get_partition_names_ps_args(object):
  7760. """
  7761. Attributes:
  7762. - db_name
  7763. - tbl_name
  7764. - part_vals
  7765. - max_parts
  7766. """
  7767. thrift_spec = (
  7768. None, # 0
  7769. (1, TType.STRING, 'db_name', None, None, ), # 1
  7770. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  7771. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  7772. (4, TType.I16, 'max_parts', None, -1, ), # 4
  7773. )
  7774. def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4],):
  7775. self.db_name = db_name
  7776. self.tbl_name = tbl_name
  7777. self.part_vals = part_vals
  7778. self.max_parts = max_parts
  7779. def read(self, iprot):
  7780. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7781. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7782. return
  7783. iprot.readStructBegin()
  7784. while True:
  7785. (fname, ftype, fid) = iprot.readFieldBegin()
  7786. if ftype == TType.STOP:
  7787. break
  7788. if fid == 1:
  7789. if ftype == TType.STRING:
  7790. self.db_name = iprot.readString();
  7791. else:
  7792. iprot.skip(ftype)
  7793. elif fid == 2:
  7794. if ftype == TType.STRING:
  7795. self.tbl_name = iprot.readString();
  7796. else:
  7797. iprot.skip(ftype)
  7798. elif fid == 3:
  7799. if ftype == TType.LIST:
  7800. self.part_vals = []
  7801. (_etype326, _size323) = iprot.readListBegin()
  7802. for _i327 in xrange(_size323):
  7803. _elem328 = iprot.readString();
  7804. self.part_vals.append(_elem328)
  7805. iprot.readListEnd()
  7806. else:
  7807. iprot.skip(ftype)
  7808. elif fid == 4:
  7809. if ftype == TType.I16:
  7810. self.max_parts = iprot.readI16();
  7811. else:
  7812. iprot.skip(ftype)
  7813. else:
  7814. iprot.skip(ftype)
  7815. iprot.readFieldEnd()
  7816. iprot.readStructEnd()
  7817. def write(self, oprot):
  7818. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7819. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7820. return
  7821. oprot.writeStructBegin('get_partition_names_ps_args')
  7822. if self.db_name is not None:
  7823. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  7824. oprot.writeString(self.db_name)
  7825. oprot.writeFieldEnd()
  7826. if self.tbl_name is not None:
  7827. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  7828. oprot.writeString(self.tbl_name)
  7829. oprot.writeFieldEnd()
  7830. if self.part_vals is not None:
  7831. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  7832. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  7833. for iter329 in self.part_vals:
  7834. oprot.writeString(iter329)
  7835. oprot.writeListEnd()
  7836. oprot.writeFieldEnd()
  7837. if self.max_parts is not None:
  7838. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  7839. oprot.writeI16(self.max_parts)
  7840. oprot.writeFieldEnd()
  7841. oprot.writeFieldStop()
  7842. oprot.writeStructEnd()
  7843. def validate(self):
  7844. return
  7845. def __repr__(self):
  7846. L = ['%s=%r' % (key, value)
  7847. for key, value in self.__dict__.iteritems()]
  7848. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7849. def __eq__(self, other):
  7850. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7851. def __ne__(self, other):
  7852. return not (self == other)
  7853. class get_partition_names_ps_result(object):
  7854. """
  7855. Attributes:
  7856. - success
  7857. - o1
  7858. """
  7859. thrift_spec = (
  7860. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  7861. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  7862. )
  7863. def __init__(self, success=None, o1=None,):
  7864. self.success = success
  7865. self.o1 = o1
  7866. def read(self, iprot):
  7867. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7868. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7869. return
  7870. iprot.readStructBegin()
  7871. while True:
  7872. (fname, ftype, fid) = iprot.readFieldBegin()
  7873. if ftype == TType.STOP:
  7874. break
  7875. if fid == 0:
  7876. if ftype == TType.LIST:
  7877. self.success = []
  7878. (_etype333, _size330) = iprot.readListBegin()
  7879. for _i334 in xrange(_size330):
  7880. _elem335 = iprot.readString();
  7881. self.success.append(_elem335)
  7882. iprot.readListEnd()
  7883. else:
  7884. iprot.skip(ftype)
  7885. elif fid == 1:
  7886. if ftype == TType.STRUCT:
  7887. self.o1 = MetaException()
  7888. self.o1.read(iprot)
  7889. else:
  7890. iprot.skip(ftype)
  7891. else:
  7892. iprot.skip(ftype)
  7893. iprot.readFieldEnd()
  7894. iprot.readStructEnd()
  7895. def write(self, oprot):
  7896. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7897. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7898. return
  7899. oprot.writeStructBegin('get_partition_names_ps_result')
  7900. if self.success is not None:
  7901. oprot.writeFieldBegin('success', TType.LIST, 0)
  7902. oprot.writeListBegin(TType.STRING, len(self.success))
  7903. for iter336 in self.success:
  7904. oprot.writeString(iter336)
  7905. oprot.writeListEnd()
  7906. oprot.writeFieldEnd()
  7907. if self.o1 is not None:
  7908. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  7909. self.o1.write(oprot)
  7910. oprot.writeFieldEnd()
  7911. oprot.writeFieldStop()
  7912. oprot.writeStructEnd()
  7913. def validate(self):
  7914. return
  7915. def __repr__(self):
  7916. L = ['%s=%r' % (key, value)
  7917. for key, value in self.__dict__.iteritems()]
  7918. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7919. def __eq__(self, other):
  7920. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7921. def __ne__(self, other):
  7922. return not (self == other)
  7923. class get_partitions_by_filter_args(object):
  7924. """
  7925. Attributes:
  7926. - db_name
  7927. - tbl_name
  7928. - filter
  7929. - max_parts
  7930. """
  7931. thrift_spec = (
  7932. None, # 0
  7933. (1, TType.STRING, 'db_name', None, None, ), # 1
  7934. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  7935. (3, TType.STRING, 'filter', None, None, ), # 3
  7936. (4, TType.I16, 'max_parts', None, -1, ), # 4
  7937. )
  7938. def __init__(self, db_name=None, tbl_name=None, filter=None, max_parts=thrift_spec[4][4],):
  7939. self.db_name = db_name
  7940. self.tbl_name = tbl_name
  7941. self.filter = filter
  7942. self.max_parts = max_parts
  7943. def read(self, iprot):
  7944. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7945. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7946. return
  7947. iprot.readStructBegin()
  7948. while True:
  7949. (fname, ftype, fid) = iprot.readFieldBegin()
  7950. if ftype == TType.STOP:
  7951. break
  7952. if fid == 1:
  7953. if ftype == TType.STRING:
  7954. self.db_name = iprot.readString();
  7955. else:
  7956. iprot.skip(ftype)
  7957. elif fid == 2:
  7958. if ftype == TType.STRING:
  7959. self.tbl_name = iprot.readString();
  7960. else:
  7961. iprot.skip(ftype)
  7962. elif fid == 3:
  7963. if ftype == TType.STRING:
  7964. self.filter = iprot.readString();
  7965. else:
  7966. iprot.skip(ftype)
  7967. elif fid == 4:
  7968. if ftype == TType.I16:
  7969. self.max_parts = iprot.readI16();
  7970. else:
  7971. iprot.skip(ftype)
  7972. else:
  7973. iprot.skip(ftype)
  7974. iprot.readFieldEnd()
  7975. iprot.readStructEnd()
  7976. def write(self, oprot):
  7977. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7978. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7979. return
  7980. oprot.writeStructBegin('get_partitions_by_filter_args')
  7981. if self.db_name is not None:
  7982. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  7983. oprot.writeString(self.db_name)
  7984. oprot.writeFieldEnd()
  7985. if self.tbl_name is not None:
  7986. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  7987. oprot.writeString(self.tbl_name)
  7988. oprot.writeFieldEnd()
  7989. if self.filter is not None:
  7990. oprot.writeFieldBegin('filter', TType.STRING, 3)
  7991. oprot.writeString(self.filter)
  7992. oprot.writeFieldEnd()
  7993. if self.max_parts is not None:
  7994. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  7995. oprot.writeI16(self.max_parts)
  7996. oprot.writeFieldEnd()
  7997. oprot.writeFieldStop()
  7998. oprot.writeStructEnd()
  7999. def validate(self):
  8000. return
  8001. def __repr__(self):
  8002. L = ['%s=%r' % (key, value)
  8003. for key, value in self.__dict__.iteritems()]
  8004. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8005. def __eq__(self, other):
  8006. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8007. def __ne__(self, other):
  8008. return not (self == other)
  8009. class get_partitions_by_filter_result(object):
  8010. """
  8011. Attributes:
  8012. - success
  8013. - o1
  8014. - o2
  8015. """
  8016. thrift_spec = (
  8017. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  8018. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  8019. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  8020. )
  8021. def __init__(self, success=None, o1=None, o2=None,):
  8022. self.success = success
  8023. self.o1 = o1
  8024. self.o2 = o2
  8025. def read(self, iprot):
  8026. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8027. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8028. return
  8029. iprot.readStructBegin()
  8030. while True:
  8031. (fname, ftype, fid) = iprot.readFieldBegin()
  8032. if ftype == TType.STOP:
  8033. break
  8034. if fid == 0:
  8035. if ftype == TType.LIST:
  8036. self.success = []
  8037. (_etype340, _size337) = iprot.readListBegin()
  8038. for _i341 in xrange(_size337):
  8039. _elem342 = Partition()
  8040. _elem342.read(iprot)
  8041. self.success.append(_elem342)
  8042. iprot.readListEnd()
  8043. else:
  8044. iprot.skip(ftype)
  8045. elif fid == 1:
  8046. if ftype == TType.STRUCT:
  8047. self.o1 = MetaException()
  8048. self.o1.read(iprot)
  8049. else:
  8050. iprot.skip(ftype)
  8051. elif fid == 2:
  8052. if ftype == TType.STRUCT:
  8053. self.o2 = NoSuchObjectException()
  8054. self.o2.read(iprot)
  8055. else:
  8056. iprot.skip(ftype)
  8057. else:
  8058. iprot.skip(ftype)
  8059. iprot.readFieldEnd()
  8060. iprot.readStructEnd()
  8061. def write(self, oprot):
  8062. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8063. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8064. return
  8065. oprot.writeStructBegin('get_partitions_by_filter_result')
  8066. if self.success is not None:
  8067. oprot.writeFieldBegin('success', TType.LIST, 0)
  8068. oprot.writeListBegin(TType.STRUCT, len(self.success))
  8069. for iter343 in self.success:
  8070. iter343.write(oprot)
  8071. oprot.writeListEnd()
  8072. oprot.writeFieldEnd()
  8073. if self.o1 is not None:
  8074. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8075. self.o1.write(oprot)
  8076. oprot.writeFieldEnd()
  8077. if self.o2 is not None:
  8078. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  8079. self.o2.write(oprot)
  8080. oprot.writeFieldEnd()
  8081. oprot.writeFieldStop()
  8082. oprot.writeStructEnd()
  8083. def validate(self):
  8084. return
  8085. def __repr__(self):
  8086. L = ['%s=%r' % (key, value)
  8087. for key, value in self.__dict__.iteritems()]
  8088. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8089. def __eq__(self, other):
  8090. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8091. def __ne__(self, other):
  8092. return not (self == other)
  8093. class alter_partition_args(object):
  8094. """
  8095. Attributes:
  8096. - db_name
  8097. - tbl_name
  8098. - new_part
  8099. """
  8100. thrift_spec = (
  8101. None, # 0
  8102. (1, TType.STRING, 'db_name', None, None, ), # 1
  8103. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  8104. (3, TType.STRUCT, 'new_part', (Partition, Partition.thrift_spec), None, ), # 3
  8105. )
  8106. def __init__(self, db_name=None, tbl_name=None, new_part=None,):
  8107. self.db_name = db_name
  8108. self.tbl_name = tbl_name
  8109. self.new_part = new_part
  8110. def read(self, iprot):
  8111. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8112. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8113. return
  8114. iprot.readStructBegin()
  8115. while True:
  8116. (fname, ftype, fid) = iprot.readFieldBegin()
  8117. if ftype == TType.STOP:
  8118. break
  8119. if fid == 1:
  8120. if ftype == TType.STRING:
  8121. self.db_name = iprot.readString();
  8122. else:
  8123. iprot.skip(ftype)
  8124. elif fid == 2:
  8125. if ftype == TType.STRING:
  8126. self.tbl_name = iprot.readString();
  8127. else:
  8128. iprot.skip(ftype)
  8129. elif fid == 3:
  8130. if ftype == TType.STRUCT:
  8131. self.new_part = Partition()
  8132. self.new_part.read(iprot)
  8133. else:
  8134. iprot.skip(ftype)
  8135. else:
  8136. iprot.skip(ftype)
  8137. iprot.readFieldEnd()
  8138. iprot.readStructEnd()
  8139. def write(self, oprot):
  8140. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8141. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8142. return
  8143. oprot.writeStructBegin('alter_partition_args')
  8144. if self.db_name is not None:
  8145. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  8146. oprot.writeString(self.db_name)
  8147. oprot.writeFieldEnd()
  8148. if self.tbl_name is not None:
  8149. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  8150. oprot.writeString(self.tbl_name)
  8151. oprot.writeFieldEnd()
  8152. if self.new_part is not None:
  8153. oprot.writeFieldBegin('new_part', TType.STRUCT, 3)
  8154. self.new_part.write(oprot)
  8155. oprot.writeFieldEnd()
  8156. oprot.writeFieldStop()
  8157. oprot.writeStructEnd()
  8158. def validate(self):
  8159. return
  8160. def __repr__(self):
  8161. L = ['%s=%r' % (key, value)
  8162. for key, value in self.__dict__.iteritems()]
  8163. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8164. def __eq__(self, other):
  8165. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8166. def __ne__(self, other):
  8167. return not (self == other)
  8168. class alter_partition_result(object):
  8169. """
  8170. Attributes:
  8171. - o1
  8172. - o2
  8173. """
  8174. thrift_spec = (
  8175. None, # 0
  8176. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  8177. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  8178. )
  8179. def __init__(self, o1=None, o2=None,):
  8180. self.o1 = o1
  8181. self.o2 = o2
  8182. def read(self, iprot):
  8183. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8184. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8185. return
  8186. iprot.readStructBegin()
  8187. while True:
  8188. (fname, ftype, fid) = iprot.readFieldBegin()
  8189. if ftype == TType.STOP:
  8190. break
  8191. if fid == 1:
  8192. if ftype == TType.STRUCT:
  8193. self.o1 = InvalidOperationException()
  8194. self.o1.read(iprot)
  8195. else:
  8196. iprot.skip(ftype)
  8197. elif fid == 2:
  8198. if ftype == TType.STRUCT:
  8199. self.o2 = MetaException()
  8200. self.o2.read(iprot)
  8201. else:
  8202. iprot.skip(ftype)
  8203. else:
  8204. iprot.skip(ftype)
  8205. iprot.readFieldEnd()
  8206. iprot.readStructEnd()
  8207. def write(self, oprot):
  8208. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8209. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8210. return
  8211. oprot.writeStructBegin('alter_partition_result')
  8212. if self.o1 is not None:
  8213. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8214. self.o1.write(oprot)
  8215. oprot.writeFieldEnd()
  8216. if self.o2 is not None:
  8217. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  8218. self.o2.write(oprot)
  8219. oprot.writeFieldEnd()
  8220. oprot.writeFieldStop()
  8221. oprot.writeStructEnd()
  8222. def validate(self):
  8223. return
  8224. def __repr__(self):
  8225. L = ['%s=%r' % (key, value)
  8226. for key, value in self.__dict__.iteritems()]
  8227. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8228. def __eq__(self, other):
  8229. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8230. def __ne__(self, other):
  8231. return not (self == other)
  8232. class get_config_value_args(object):
  8233. """
  8234. Attributes:
  8235. - name
  8236. - defaultValue
  8237. """
  8238. thrift_spec = (
  8239. None, # 0
  8240. (1, TType.STRING, 'name', None, None, ), # 1
  8241. (2, TType.STRING, 'defaultValue', None, None, ), # 2
  8242. )
  8243. def __init__(self, name=None, defaultValue=None,):
  8244. self.name = name
  8245. self.defaultValue = defaultValue
  8246. def read(self, iprot):
  8247. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8248. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8249. return
  8250. iprot.readStructBegin()
  8251. while True:
  8252. (fname, ftype, fid) = iprot.readFieldBegin()
  8253. if ftype == TType.STOP:
  8254. break
  8255. if fid == 1:
  8256. if ftype == TType.STRING:
  8257. self.name = iprot.readString();
  8258. else:
  8259. iprot.skip(ftype)
  8260. elif fid == 2:
  8261. if ftype == TType.STRING:
  8262. self.defaultValue = iprot.readString();
  8263. else:
  8264. iprot.skip(ftype)
  8265. else:
  8266. iprot.skip(ftype)
  8267. iprot.readFieldEnd()
  8268. iprot.readStructEnd()
  8269. def write(self, oprot):
  8270. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8271. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8272. return
  8273. oprot.writeStructBegin('get_config_value_args')
  8274. if self.name is not None:
  8275. oprot.writeFieldBegin('name', TType.STRING, 1)
  8276. oprot.writeString(self.name)
  8277. oprot.writeFieldEnd()
  8278. if self.defaultValue is not None:
  8279. oprot.writeFieldBegin('defaultValue', TType.STRING, 2)
  8280. oprot.writeString(self.defaultValue)
  8281. oprot.writeFieldEnd()
  8282. oprot.writeFieldStop()
  8283. oprot.writeStructEnd()
  8284. def validate(self):
  8285. return
  8286. def __repr__(self):
  8287. L = ['%s=%r' % (key, value)
  8288. for key, value in self.__dict__.iteritems()]
  8289. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8290. def __eq__(self, other):
  8291. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8292. def __ne__(self, other):
  8293. return not (self == other)
  8294. class get_config_value_result(object):
  8295. """
  8296. Attributes:
  8297. - success
  8298. - o1
  8299. """
  8300. thrift_spec = (
  8301. (0, TType.STRING, 'success', None, None, ), # 0
  8302. (1, TType.STRUCT, 'o1', (ConfigValSecurityException, ConfigValSecurityException.thrift_spec), None, ), # 1
  8303. )
  8304. def __init__(self, success=None, o1=None,):
  8305. self.success = success
  8306. self.o1 = o1
  8307. def read(self, iprot):
  8308. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8309. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8310. return
  8311. iprot.readStructBegin()
  8312. while True:
  8313. (fname, ftype, fid) = iprot.readFieldBegin()
  8314. if ftype == TType.STOP:
  8315. break
  8316. if fid == 0:
  8317. if ftype == TType.STRING:
  8318. self.success = iprot.readString();
  8319. else:
  8320. iprot.skip(ftype)
  8321. elif fid == 1:
  8322. if ftype == TType.STRUCT:
  8323. self.o1 = ConfigValSecurityException()
  8324. self.o1.read(iprot)
  8325. else:
  8326. iprot.skip(ftype)
  8327. else:
  8328. iprot.skip(ftype)
  8329. iprot.readFieldEnd()
  8330. iprot.readStructEnd()
  8331. def write(self, oprot):
  8332. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8333. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8334. return
  8335. oprot.writeStructBegin('get_config_value_result')
  8336. if self.success is not None:
  8337. oprot.writeFieldBegin('success', TType.STRING, 0)
  8338. oprot.writeString(self.success)
  8339. oprot.writeFieldEnd()
  8340. if self.o1 is not None:
  8341. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8342. self.o1.write(oprot)
  8343. oprot.writeFieldEnd()
  8344. oprot.writeFieldStop()
  8345. oprot.writeStructEnd()
  8346. def validate(self):
  8347. return
  8348. def __repr__(self):
  8349. L = ['%s=%r' % (key, value)
  8350. for key, value in self.__dict__.iteritems()]
  8351. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8352. def __eq__(self, other):
  8353. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8354. def __ne__(self, other):
  8355. return not (self == other)
  8356. class partition_name_to_vals_args(object):
  8357. """
  8358. Attributes:
  8359. - part_name
  8360. """
  8361. thrift_spec = (
  8362. None, # 0
  8363. (1, TType.STRING, 'part_name', None, None, ), # 1
  8364. )
  8365. def __init__(self, part_name=None,):
  8366. self.part_name = part_name
  8367. def read(self, iprot):
  8368. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8369. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8370. return
  8371. iprot.readStructBegin()
  8372. while True:
  8373. (fname, ftype, fid) = iprot.readFieldBegin()
  8374. if ftype == TType.STOP:
  8375. break
  8376. if fid == 1:
  8377. if ftype == TType.STRING:
  8378. self.part_name = iprot.readString();
  8379. else:
  8380. iprot.skip(ftype)
  8381. else:
  8382. iprot.skip(ftype)
  8383. iprot.readFieldEnd()
  8384. iprot.readStructEnd()
  8385. def write(self, oprot):
  8386. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8387. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8388. return
  8389. oprot.writeStructBegin('partition_name_to_vals_args')
  8390. if self.part_name is not None:
  8391. oprot.writeFieldBegin('part_name', TType.STRING, 1)
  8392. oprot.writeString(self.part_name)
  8393. oprot.writeFieldEnd()
  8394. oprot.writeFieldStop()
  8395. oprot.writeStructEnd()
  8396. def validate(self):
  8397. return
  8398. def __repr__(self):
  8399. L = ['%s=%r' % (key, value)
  8400. for key, value in self.__dict__.iteritems()]
  8401. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8402. def __eq__(self, other):
  8403. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8404. def __ne__(self, other):
  8405. return not (self == other)
  8406. class partition_name_to_vals_result(object):
  8407. """
  8408. Attributes:
  8409. - success
  8410. - o1
  8411. """
  8412. thrift_spec = (
  8413. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  8414. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  8415. )
  8416. def __init__(self, success=None, o1=None,):
  8417. self.success = success
  8418. self.o1 = o1
  8419. def read(self, iprot):
  8420. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8421. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8422. return
  8423. iprot.readStructBegin()
  8424. while True:
  8425. (fname, ftype, fid) = iprot.readFieldBegin()
  8426. if ftype == TType.STOP:
  8427. break
  8428. if fid == 0:
  8429. if ftype == TType.LIST:
  8430. self.success = []
  8431. (_etype347, _size344) = iprot.readListBegin()
  8432. for _i348 in xrange(_size344):
  8433. _elem349 = iprot.readString();
  8434. self.success.append(_elem349)
  8435. iprot.readListEnd()
  8436. else:
  8437. iprot.skip(ftype)
  8438. elif fid == 1:
  8439. if ftype == TType.STRUCT:
  8440. self.o1 = MetaException()
  8441. self.o1.read(iprot)
  8442. else:
  8443. iprot.skip(ftype)
  8444. else:
  8445. iprot.skip(ftype)
  8446. iprot.readFieldEnd()
  8447. iprot.readStructEnd()
  8448. def write(self, oprot):
  8449. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8450. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8451. return
  8452. oprot.writeStructBegin('partition_name_to_vals_result')
  8453. if self.success is not None:
  8454. oprot.writeFieldBegin('success', TType.LIST, 0)
  8455. oprot.writeListBegin(TType.STRING, len(self.success))
  8456. for iter350 in self.success:
  8457. oprot.writeString(iter350)
  8458. oprot.writeListEnd()
  8459. oprot.writeFieldEnd()
  8460. if self.o1 is not None:
  8461. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8462. self.o1.write(oprot)
  8463. oprot.writeFieldEnd()
  8464. oprot.writeFieldStop()
  8465. oprot.writeStructEnd()
  8466. def validate(self):
  8467. return
  8468. def __repr__(self):
  8469. L = ['%s=%r' % (key, value)
  8470. for key, value in self.__dict__.iteritems()]
  8471. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8472. def __eq__(self, other):
  8473. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8474. def __ne__(self, other):
  8475. return not (self == other)
  8476. class partition_name_to_spec_args(object):
  8477. """
  8478. Attributes:
  8479. - part_name
  8480. """
  8481. thrift_spec = (
  8482. None, # 0
  8483. (1, TType.STRING, 'part_name', None, None, ), # 1
  8484. )
  8485. def __init__(self, part_name=None,):
  8486. self.part_name = part_name
  8487. def read(self, iprot):
  8488. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8489. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8490. return
  8491. iprot.readStructBegin()
  8492. while True:
  8493. (fname, ftype, fid) = iprot.readFieldBegin()
  8494. if ftype == TType.STOP:
  8495. break
  8496. if fid == 1:
  8497. if ftype == TType.STRING:
  8498. self.part_name = iprot.readString();
  8499. else:
  8500. iprot.skip(ftype)
  8501. else:
  8502. iprot.skip(ftype)
  8503. iprot.readFieldEnd()
  8504. iprot.readStructEnd()
  8505. def write(self, oprot):
  8506. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8507. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8508. return
  8509. oprot.writeStructBegin('partition_name_to_spec_args')
  8510. if self.part_name is not None:
  8511. oprot.writeFieldBegin('part_name', TType.STRING, 1)
  8512. oprot.writeString(self.part_name)
  8513. oprot.writeFieldEnd()
  8514. oprot.writeFieldStop()
  8515. oprot.writeStructEnd()
  8516. def validate(self):
  8517. return
  8518. def __repr__(self):
  8519. L = ['%s=%r' % (key, value)
  8520. for key, value in self.__dict__.iteritems()]
  8521. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8522. def __eq__(self, other):
  8523. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8524. def __ne__(self, other):
  8525. return not (self == other)
  8526. class partition_name_to_spec_result(object):
  8527. """
  8528. Attributes:
  8529. - success
  8530. - o1
  8531. """
  8532. thrift_spec = (
  8533. (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0
  8534. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  8535. )
  8536. def __init__(self, success=None, o1=None,):
  8537. self.success = success
  8538. self.o1 = o1
  8539. def read(self, iprot):
  8540. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8541. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8542. return
  8543. iprot.readStructBegin()
  8544. while True:
  8545. (fname, ftype, fid) = iprot.readFieldBegin()
  8546. if ftype == TType.STOP:
  8547. break
  8548. if fid == 0:
  8549. if ftype == TType.MAP:
  8550. self.success = {}
  8551. (_ktype352, _vtype353, _size351 ) = iprot.readMapBegin()
  8552. for _i355 in xrange(_size351):
  8553. _key356 = iprot.readString();
  8554. _val357 = iprot.readString();
  8555. self.success[_key356] = _val357
  8556. iprot.readMapEnd()
  8557. else:
  8558. iprot.skip(ftype)
  8559. elif fid == 1:
  8560. if ftype == TType.STRUCT:
  8561. self.o1 = MetaException()
  8562. self.o1.read(iprot)
  8563. else:
  8564. iprot.skip(ftype)
  8565. else:
  8566. iprot.skip(ftype)
  8567. iprot.readFieldEnd()
  8568. iprot.readStructEnd()
  8569. def write(self, oprot):
  8570. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8571. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8572. return
  8573. oprot.writeStructBegin('partition_name_to_spec_result')
  8574. if self.success is not None:
  8575. oprot.writeFieldBegin('success', TType.MAP, 0)
  8576. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
  8577. for kiter358,viter359 in self.success.items():
  8578. oprot.writeString(kiter358)
  8579. oprot.writeString(viter359)
  8580. oprot.writeMapEnd()
  8581. oprot.writeFieldEnd()
  8582. if self.o1 is not None:
  8583. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8584. self.o1.write(oprot)
  8585. oprot.writeFieldEnd()
  8586. oprot.writeFieldStop()
  8587. oprot.writeStructEnd()
  8588. def validate(self):
  8589. return
  8590. def __repr__(self):
  8591. L = ['%s=%r' % (key, value)
  8592. for key, value in self.__dict__.iteritems()]
  8593. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8594. def __eq__(self, other):
  8595. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8596. def __ne__(self, other):
  8597. return not (self == other)
  8598. class add_index_args(object):
  8599. """
  8600. Attributes:
  8601. - new_index
  8602. - index_table
  8603. """
  8604. thrift_spec = (
  8605. None, # 0
  8606. (1, TType.STRUCT, 'new_index', (Index, Index.thrift_spec), None, ), # 1
  8607. (2, TType.STRUCT, 'index_table', (Table, Table.thrift_spec), None, ), # 2
  8608. )
  8609. def __init__(self, new_index=None, index_table=None,):
  8610. self.new_index = new_index
  8611. self.index_table = index_table
  8612. def read(self, iprot):
  8613. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8614. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8615. return
  8616. iprot.readStructBegin()
  8617. while True:
  8618. (fname, ftype, fid) = iprot.readFieldBegin()
  8619. if ftype == TType.STOP:
  8620. break
  8621. if fid == 1:
  8622. if ftype == TType.STRUCT:
  8623. self.new_index = Index()
  8624. self.new_index.read(iprot)
  8625. else:
  8626. iprot.skip(ftype)
  8627. elif fid == 2:
  8628. if ftype == TType.STRUCT:
  8629. self.index_table = Table()
  8630. self.index_table.read(iprot)
  8631. else:
  8632. iprot.skip(ftype)
  8633. else:
  8634. iprot.skip(ftype)
  8635. iprot.readFieldEnd()
  8636. iprot.readStructEnd()
  8637. def write(self, oprot):
  8638. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8639. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8640. return
  8641. oprot.writeStructBegin('add_index_args')
  8642. if self.new_index is not None:
  8643. oprot.writeFieldBegin('new_index', TType.STRUCT, 1)
  8644. self.new_index.write(oprot)
  8645. oprot.writeFieldEnd()
  8646. if self.index_table is not None:
  8647. oprot.writeFieldBegin('index_table', TType.STRUCT, 2)
  8648. self.index_table.write(oprot)
  8649. oprot.writeFieldEnd()
  8650. oprot.writeFieldStop()
  8651. oprot.writeStructEnd()
  8652. def validate(self):
  8653. return
  8654. def __repr__(self):
  8655. L = ['%s=%r' % (key, value)
  8656. for key, value in self.__dict__.iteritems()]
  8657. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8658. def __eq__(self, other):
  8659. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8660. def __ne__(self, other):
  8661. return not (self == other)
  8662. class add_index_result(object):
  8663. """
  8664. Attributes:
  8665. - success
  8666. - o1
  8667. - o2
  8668. - o3
  8669. """
  8670. thrift_spec = (
  8671. (0, TType.STRUCT, 'success', (Index, Index.thrift_spec), None, ), # 0
  8672. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  8673. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  8674. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  8675. )
  8676. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  8677. self.success = success
  8678. self.o1 = o1
  8679. self.o2 = o2
  8680. self.o3 = o3
  8681. def read(self, iprot):
  8682. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8683. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8684. return
  8685. iprot.readStructBegin()
  8686. while True:
  8687. (fname, ftype, fid) = iprot.readFieldBegin()
  8688. if ftype == TType.STOP:
  8689. break
  8690. if fid == 0:
  8691. if ftype == TType.STRUCT:
  8692. self.success = Index()
  8693. self.success.read(iprot)
  8694. else:
  8695. iprot.skip(ftype)
  8696. elif fid == 1:
  8697. if ftype == TType.STRUCT:
  8698. self.o1 = InvalidObjectException()
  8699. self.o1.read(iprot)
  8700. else:
  8701. iprot.skip(ftype)
  8702. elif fid == 2:
  8703. if ftype == TType.STRUCT:
  8704. self.o2 = AlreadyExistsException()
  8705. self.o2.read(iprot)
  8706. else:
  8707. iprot.skip(ftype)
  8708. elif fid == 3:
  8709. if ftype == TType.STRUCT:
  8710. self.o3 = MetaException()
  8711. self.o3.read(iprot)
  8712. else:
  8713. iprot.skip(ftype)
  8714. else:
  8715. iprot.skip(ftype)
  8716. iprot.readFieldEnd()
  8717. iprot.readStructEnd()
  8718. def write(self, oprot):
  8719. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8720. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8721. return
  8722. oprot.writeStructBegin('add_index_result')
  8723. if self.success is not None:
  8724. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  8725. self.success.write(oprot)
  8726. oprot.writeFieldEnd()
  8727. if self.o1 is not None:
  8728. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8729. self.o1.write(oprot)
  8730. oprot.writeFieldEnd()
  8731. if self.o2 is not None:
  8732. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  8733. self.o2.write(oprot)
  8734. oprot.writeFieldEnd()
  8735. if self.o3 is not None:
  8736. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  8737. self.o3.write(oprot)
  8738. oprot.writeFieldEnd()
  8739. oprot.writeFieldStop()
  8740. oprot.writeStructEnd()
  8741. def validate(self):
  8742. return
  8743. def __repr__(self):
  8744. L = ['%s=%r' % (key, value)
  8745. for key, value in self.__dict__.iteritems()]
  8746. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8747. def __eq__(self, other):
  8748. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8749. def __ne__(self, other):
  8750. return not (self == other)
  8751. class alter_index_args(object):
  8752. """
  8753. Attributes:
  8754. - dbname
  8755. - base_tbl_name
  8756. - idx_name
  8757. - new_idx
  8758. """
  8759. thrift_spec = (
  8760. None, # 0
  8761. (1, TType.STRING, 'dbname', None, None, ), # 1
  8762. (2, TType.STRING, 'base_tbl_name', None, None, ), # 2
  8763. (3, TType.STRING, 'idx_name', None, None, ), # 3
  8764. (4, TType.STRUCT, 'new_idx', (Index, Index.thrift_spec), None, ), # 4
  8765. )
  8766. def __init__(self, dbname=None, base_tbl_name=None, idx_name=None, new_idx=None,):
  8767. self.dbname = dbname
  8768. self.base_tbl_name = base_tbl_name
  8769. self.idx_name = idx_name
  8770. self.new_idx = new_idx
  8771. def read(self, iprot):
  8772. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8773. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8774. return
  8775. iprot.readStructBegin()
  8776. while True:
  8777. (fname, ftype, fid) = iprot.readFieldBegin()
  8778. if ftype == TType.STOP:
  8779. break
  8780. if fid == 1:
  8781. if ftype == TType.STRING:
  8782. self.dbname = iprot.readString();
  8783. else:
  8784. iprot.skip(ftype)
  8785. elif fid == 2:
  8786. if ftype == TType.STRING:
  8787. self.base_tbl_name = iprot.readString();
  8788. else:
  8789. iprot.skip(ftype)
  8790. elif fid == 3:
  8791. if ftype == TType.STRING:
  8792. self.idx_name = iprot.readString();
  8793. else:
  8794. iprot.skip(ftype)
  8795. elif fid == 4:
  8796. if ftype == TType.STRUCT:
  8797. self.new_idx = Index()
  8798. self.new_idx.read(iprot)
  8799. else:
  8800. iprot.skip(ftype)
  8801. else:
  8802. iprot.skip(ftype)
  8803. iprot.readFieldEnd()
  8804. iprot.readStructEnd()
  8805. def write(self, oprot):
  8806. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8807. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8808. return
  8809. oprot.writeStructBegin('alter_index_args')
  8810. if self.dbname is not None:
  8811. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  8812. oprot.writeString(self.dbname)
  8813. oprot.writeFieldEnd()
  8814. if self.base_tbl_name is not None:
  8815. oprot.writeFieldBegin('base_tbl_name', TType.STRING, 2)
  8816. oprot.writeString(self.base_tbl_name)
  8817. oprot.writeFieldEnd()
  8818. if self.idx_name is not None:
  8819. oprot.writeFieldBegin('idx_name', TType.STRING, 3)
  8820. oprot.writeString(self.idx_name)
  8821. oprot.writeFieldEnd()
  8822. if self.new_idx is not None:
  8823. oprot.writeFieldBegin('new_idx', TType.STRUCT, 4)
  8824. self.new_idx.write(oprot)
  8825. oprot.writeFieldEnd()
  8826. oprot.writeFieldStop()
  8827. oprot.writeStructEnd()
  8828. def validate(self):
  8829. return
  8830. def __repr__(self):
  8831. L = ['%s=%r' % (key, value)
  8832. for key, value in self.__dict__.iteritems()]
  8833. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8834. def __eq__(self, other):
  8835. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8836. def __ne__(self, other):
  8837. return not (self == other)
  8838. class alter_index_result(object):
  8839. """
  8840. Attributes:
  8841. - o1
  8842. - o2
  8843. """
  8844. thrift_spec = (
  8845. None, # 0
  8846. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  8847. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  8848. )
  8849. def __init__(self, o1=None, o2=None,):
  8850. self.o1 = o1
  8851. self.o2 = o2
  8852. def read(self, iprot):
  8853. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8854. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8855. return
  8856. iprot.readStructBegin()
  8857. while True:
  8858. (fname, ftype, fid) = iprot.readFieldBegin()
  8859. if ftype == TType.STOP:
  8860. break
  8861. if fid == 1:
  8862. if ftype == TType.STRUCT:
  8863. self.o1 = InvalidOperationException()
  8864. self.o1.read(iprot)
  8865. else:
  8866. iprot.skip(ftype)
  8867. elif fid == 2:
  8868. if ftype == TType.STRUCT:
  8869. self.o2 = MetaException()
  8870. self.o2.read(iprot)
  8871. else:
  8872. iprot.skip(ftype)
  8873. else:
  8874. iprot.skip(ftype)
  8875. iprot.readFieldEnd()
  8876. iprot.readStructEnd()
  8877. def write(self, oprot):
  8878. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8879. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8880. return
  8881. oprot.writeStructBegin('alter_index_result')
  8882. if self.o1 is not None:
  8883. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8884. self.o1.write(oprot)
  8885. oprot.writeFieldEnd()
  8886. if self.o2 is not None:
  8887. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  8888. self.o2.write(oprot)
  8889. oprot.writeFieldEnd()
  8890. oprot.writeFieldStop()
  8891. oprot.writeStructEnd()
  8892. def validate(self):
  8893. return
  8894. def __repr__(self):
  8895. L = ['%s=%r' % (key, value)
  8896. for key, value in self.__dict__.iteritems()]
  8897. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8898. def __eq__(self, other):
  8899. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8900. def __ne__(self, other):
  8901. return not (self == other)
  8902. class drop_index_by_name_args(object):
  8903. """
  8904. Attributes:
  8905. - db_name
  8906. - tbl_name
  8907. - index_name
  8908. - deleteData
  8909. """
  8910. thrift_spec = (
  8911. None, # 0
  8912. (1, TType.STRING, 'db_name', None, None, ), # 1
  8913. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  8914. (3, TType.STRING, 'index_name', None, None, ), # 3
  8915. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  8916. )
  8917. def __init__(self, db_name=None, tbl_name=None, index_name=None, deleteData=None,):
  8918. self.db_name = db_name
  8919. self.tbl_name = tbl_name
  8920. self.index_name = index_name
  8921. self.deleteData = deleteData
  8922. def read(self, iprot):
  8923. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8924. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8925. return
  8926. iprot.readStructBegin()
  8927. while True:
  8928. (fname, ftype, fid) = iprot.readFieldBegin()
  8929. if ftype == TType.STOP:
  8930. break
  8931. if fid == 1:
  8932. if ftype == TType.STRING:
  8933. self.db_name = iprot.readString();
  8934. else:
  8935. iprot.skip(ftype)
  8936. elif fid == 2:
  8937. if ftype == TType.STRING:
  8938. self.tbl_name = iprot.readString();
  8939. else:
  8940. iprot.skip(ftype)
  8941. elif fid == 3:
  8942. if ftype == TType.STRING:
  8943. self.index_name = iprot.readString();
  8944. else:
  8945. iprot.skip(ftype)
  8946. elif fid == 4:
  8947. if ftype == TType.BOOL:
  8948. self.deleteData = iprot.readBool();
  8949. else:
  8950. iprot.skip(ftype)
  8951. else:
  8952. iprot.skip(ftype)
  8953. iprot.readFieldEnd()
  8954. iprot.readStructEnd()
  8955. def write(self, oprot):
  8956. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8957. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8958. return
  8959. oprot.writeStructBegin('drop_index_by_name_args')
  8960. if self.db_name is not None:
  8961. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  8962. oprot.writeString(self.db_name)
  8963. oprot.writeFieldEnd()
  8964. if self.tbl_name is not None:
  8965. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  8966. oprot.writeString(self.tbl_name)
  8967. oprot.writeFieldEnd()
  8968. if self.index_name is not None:
  8969. oprot.writeFieldBegin('index_name', TType.STRING, 3)
  8970. oprot.writeString(self.index_name)
  8971. oprot.writeFieldEnd()
  8972. if self.deleteData is not None:
  8973. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  8974. oprot.writeBool(self.deleteData)
  8975. oprot.writeFieldEnd()
  8976. oprot.writeFieldStop()
  8977. oprot.writeStructEnd()
  8978. def validate(self):
  8979. return
  8980. def __repr__(self):
  8981. L = ['%s=%r' % (key, value)
  8982. for key, value in self.__dict__.iteritems()]
  8983. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8984. def __eq__(self, other):
  8985. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8986. def __ne__(self, other):
  8987. return not (self == other)
  8988. class drop_index_by_name_result(object):
  8989. """
  8990. Attributes:
  8991. - success
  8992. - o1
  8993. - o2
  8994. """
  8995. thrift_spec = (
  8996. (0, TType.BOOL, 'success', None, None, ), # 0
  8997. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  8998. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  8999. )
  9000. def __init__(self, success=None, o1=None, o2=None,):
  9001. self.success = success
  9002. self.o1 = o1
  9003. self.o2 = o2
  9004. def read(self, iprot):
  9005. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9006. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9007. return
  9008. iprot.readStructBegin()
  9009. while True:
  9010. (fname, ftype, fid) = iprot.readFieldBegin()
  9011. if ftype == TType.STOP:
  9012. break
  9013. if fid == 0:
  9014. if ftype == TType.BOOL:
  9015. self.success = iprot.readBool();
  9016. else:
  9017. iprot.skip(ftype)
  9018. elif fid == 1:
  9019. if ftype == TType.STRUCT:
  9020. self.o1 = NoSuchObjectException()
  9021. self.o1.read(iprot)
  9022. else:
  9023. iprot.skip(ftype)
  9024. elif fid == 2:
  9025. if ftype == TType.STRUCT:
  9026. self.o2 = MetaException()
  9027. self.o2.read(iprot)
  9028. else:
  9029. iprot.skip(ftype)
  9030. else:
  9031. iprot.skip(ftype)
  9032. iprot.readFieldEnd()
  9033. iprot.readStructEnd()
  9034. def write(self, oprot):
  9035. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9036. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9037. return
  9038. oprot.writeStructBegin('drop_index_by_name_result')
  9039. if self.success is not None:
  9040. oprot.writeFieldBegin('success', TType.BOOL, 0)
  9041. oprot.writeBool(self.success)
  9042. oprot.writeFieldEnd()
  9043. if self.o1 is not None:
  9044. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9045. self.o1.write(oprot)
  9046. oprot.writeFieldEnd()
  9047. if self.o2 is not None:
  9048. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  9049. self.o2.write(oprot)
  9050. oprot.writeFieldEnd()
  9051. oprot.writeFieldStop()
  9052. oprot.writeStructEnd()
  9053. def validate(self):
  9054. return
  9055. def __repr__(self):
  9056. L = ['%s=%r' % (key, value)
  9057. for key, value in self.__dict__.iteritems()]
  9058. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9059. def __eq__(self, other):
  9060. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9061. def __ne__(self, other):
  9062. return not (self == other)
  9063. class get_index_by_name_args(object):
  9064. """
  9065. Attributes:
  9066. - db_name
  9067. - tbl_name
  9068. - index_name
  9069. """
  9070. thrift_spec = (
  9071. None, # 0
  9072. (1, TType.STRING, 'db_name', None, None, ), # 1
  9073. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  9074. (3, TType.STRING, 'index_name', None, None, ), # 3
  9075. )
  9076. def __init__(self, db_name=None, tbl_name=None, index_name=None,):
  9077. self.db_name = db_name
  9078. self.tbl_name = tbl_name
  9079. self.index_name = index_name
  9080. def read(self, iprot):
  9081. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9082. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9083. return
  9084. iprot.readStructBegin()
  9085. while True:
  9086. (fname, ftype, fid) = iprot.readFieldBegin()
  9087. if ftype == TType.STOP:
  9088. break
  9089. if fid == 1:
  9090. if ftype == TType.STRING:
  9091. self.db_name = iprot.readString();
  9092. else:
  9093. iprot.skip(ftype)
  9094. elif fid == 2:
  9095. if ftype == TType.STRING:
  9096. self.tbl_name = iprot.readString();
  9097. else:
  9098. iprot.skip(ftype)
  9099. elif fid == 3:
  9100. if ftype == TType.STRING:
  9101. self.index_name = iprot.readString();
  9102. else:
  9103. iprot.skip(ftype)
  9104. else:
  9105. iprot.skip(ftype)
  9106. iprot.readFieldEnd()
  9107. iprot.readStructEnd()
  9108. def write(self, oprot):
  9109. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9110. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9111. return
  9112. oprot.writeStructBegin('get_index_by_name_args')
  9113. if self.db_name is not None:
  9114. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  9115. oprot.writeString(self.db_name)
  9116. oprot.writeFieldEnd()
  9117. if self.tbl_name is not None:
  9118. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  9119. oprot.writeString(self.tbl_name)
  9120. oprot.writeFieldEnd()
  9121. if self.index_name is not None:
  9122. oprot.writeFieldBegin('index_name', TType.STRING, 3)
  9123. oprot.writeString(self.index_name)
  9124. oprot.writeFieldEnd()
  9125. oprot.writeFieldStop()
  9126. oprot.writeStructEnd()
  9127. def validate(self):
  9128. return
  9129. def __repr__(self):
  9130. L = ['%s=%r' % (key, value)
  9131. for key, value in self.__dict__.iteritems()]
  9132. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9133. def __eq__(self, other):
  9134. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9135. def __ne__(self, other):
  9136. return not (self == other)
  9137. class get_index_by_name_result(object):
  9138. """
  9139. Attributes:
  9140. - success
  9141. - o1
  9142. - o2
  9143. """
  9144. thrift_spec = (
  9145. (0, TType.STRUCT, 'success', (Index, Index.thrift_spec), None, ), # 0
  9146. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  9147. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  9148. )
  9149. def __init__(self, success=None, o1=None, o2=None,):
  9150. self.success = success
  9151. self.o1 = o1
  9152. self.o2 = o2
  9153. def read(self, iprot):
  9154. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9155. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9156. return
  9157. iprot.readStructBegin()
  9158. while True:
  9159. (fname, ftype, fid) = iprot.readFieldBegin()
  9160. if ftype == TType.STOP:
  9161. break
  9162. if fid == 0:
  9163. if ftype == TType.STRUCT:
  9164. self.success = Index()
  9165. self.success.read(iprot)
  9166. else:
  9167. iprot.skip(ftype)
  9168. elif fid == 1:
  9169. if ftype == TType.STRUCT:
  9170. self.o1 = MetaException()
  9171. self.o1.read(iprot)
  9172. else:
  9173. iprot.skip(ftype)
  9174. elif fid == 2:
  9175. if ftype == TType.STRUCT:
  9176. self.o2 = NoSuchObjectException()
  9177. self.o2.read(iprot)
  9178. else:
  9179. iprot.skip(ftype)
  9180. else:
  9181. iprot.skip(ftype)
  9182. iprot.readFieldEnd()
  9183. iprot.readStructEnd()
  9184. def write(self, oprot):
  9185. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9186. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9187. return
  9188. oprot.writeStructBegin('get_index_by_name_result')
  9189. if self.success is not None:
  9190. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  9191. self.success.write(oprot)
  9192. oprot.writeFieldEnd()
  9193. if self.o1 is not None:
  9194. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9195. self.o1.write(oprot)
  9196. oprot.writeFieldEnd()
  9197. if self.o2 is not None:
  9198. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  9199. self.o2.write(oprot)
  9200. oprot.writeFieldEnd()
  9201. oprot.writeFieldStop()
  9202. oprot.writeStructEnd()
  9203. def validate(self):
  9204. return
  9205. def __repr__(self):
  9206. L = ['%s=%r' % (key, value)
  9207. for key, value in self.__dict__.iteritems()]
  9208. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9209. def __eq__(self, other):
  9210. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9211. def __ne__(self, other):
  9212. return not (self == other)
  9213. class get_indexes_args(object):
  9214. """
  9215. Attributes:
  9216. - db_name
  9217. - tbl_name
  9218. - max_indexes
  9219. """
  9220. thrift_spec = (
  9221. None, # 0
  9222. (1, TType.STRING, 'db_name', None, None, ), # 1
  9223. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  9224. (3, TType.I16, 'max_indexes', None, -1, ), # 3
  9225. )
  9226. def __init__(self, db_name=None, tbl_name=None, max_indexes=thrift_spec[3][4],):
  9227. self.db_name = db_name
  9228. self.tbl_name = tbl_name
  9229. self.max_indexes = max_indexes
  9230. def read(self, iprot):
  9231. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9232. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9233. return
  9234. iprot.readStructBegin()
  9235. while True:
  9236. (fname, ftype, fid) = iprot.readFieldBegin()
  9237. if ftype == TType.STOP:
  9238. break
  9239. if fid == 1:
  9240. if ftype == TType.STRING:
  9241. self.db_name = iprot.readString();
  9242. else:
  9243. iprot.skip(ftype)
  9244. elif fid == 2:
  9245. if ftype == TType.STRING:
  9246. self.tbl_name = iprot.readString();
  9247. else:
  9248. iprot.skip(ftype)
  9249. elif fid == 3:
  9250. if ftype == TType.I16:
  9251. self.max_indexes = iprot.readI16();
  9252. else:
  9253. iprot.skip(ftype)
  9254. else:
  9255. iprot.skip(ftype)
  9256. iprot.readFieldEnd()
  9257. iprot.readStructEnd()
  9258. def write(self, oprot):
  9259. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9260. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9261. return
  9262. oprot.writeStructBegin('get_indexes_args')
  9263. if self.db_name is not None:
  9264. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  9265. oprot.writeString(self.db_name)
  9266. oprot.writeFieldEnd()
  9267. if self.tbl_name is not None:
  9268. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  9269. oprot.writeString(self.tbl_name)
  9270. oprot.writeFieldEnd()
  9271. if self.max_indexes is not None:
  9272. oprot.writeFieldBegin('max_indexes', TType.I16, 3)
  9273. oprot.writeI16(self.max_indexes)
  9274. oprot.writeFieldEnd()
  9275. oprot.writeFieldStop()
  9276. oprot.writeStructEnd()
  9277. def validate(self):
  9278. return
  9279. def __repr__(self):
  9280. L = ['%s=%r' % (key, value)
  9281. for key, value in self.__dict__.iteritems()]
  9282. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9283. def __eq__(self, other):
  9284. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9285. def __ne__(self, other):
  9286. return not (self == other)
  9287. class get_indexes_result(object):
  9288. """
  9289. Attributes:
  9290. - success
  9291. - o1
  9292. - o2
  9293. """
  9294. thrift_spec = (
  9295. (0, TType.LIST, 'success', (TType.STRUCT,(Index, Index.thrift_spec)), None, ), # 0
  9296. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  9297. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  9298. )
  9299. def __init__(self, success=None, o1=None, o2=None,):
  9300. self.success = success
  9301. self.o1 = o1
  9302. self.o2 = o2
  9303. def read(self, iprot):
  9304. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9305. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9306. return
  9307. iprot.readStructBegin()
  9308. while True:
  9309. (fname, ftype, fid) = iprot.readFieldBegin()
  9310. if ftype == TType.STOP:
  9311. break
  9312. if fid == 0:
  9313. if ftype == TType.LIST:
  9314. self.success = []
  9315. (_etype363, _size360) = iprot.readListBegin()
  9316. for _i364 in xrange(_size360):
  9317. _elem365 = Index()
  9318. _elem365.read(iprot)
  9319. self.success.append(_elem365)
  9320. iprot.readListEnd()
  9321. else:
  9322. iprot.skip(ftype)
  9323. elif fid == 1:
  9324. if ftype == TType.STRUCT:
  9325. self.o1 = NoSuchObjectException()
  9326. self.o1.read(iprot)
  9327. else:
  9328. iprot.skip(ftype)
  9329. elif fid == 2:
  9330. if ftype == TType.STRUCT:
  9331. self.o2 = MetaException()
  9332. self.o2.read(iprot)
  9333. else:
  9334. iprot.skip(ftype)
  9335. else:
  9336. iprot.skip(ftype)
  9337. iprot.readFieldEnd()
  9338. iprot.readStructEnd()
  9339. def write(self, oprot):
  9340. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9341. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9342. return
  9343. oprot.writeStructBegin('get_indexes_result')
  9344. if self.success is not None:
  9345. oprot.writeFieldBegin('success', TType.LIST, 0)
  9346. oprot.writeListBegin(TType.STRUCT, len(self.success))
  9347. for iter366 in self.success:
  9348. iter366.write(oprot)
  9349. oprot.writeListEnd()
  9350. oprot.writeFieldEnd()
  9351. if self.o1 is not None:
  9352. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9353. self.o1.write(oprot)
  9354. oprot.writeFieldEnd()
  9355. if self.o2 is not None:
  9356. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  9357. self.o2.write(oprot)
  9358. oprot.writeFieldEnd()
  9359. oprot.writeFieldStop()
  9360. oprot.writeStructEnd()
  9361. def validate(self):
  9362. return
  9363. def __repr__(self):
  9364. L = ['%s=%r' % (key, value)
  9365. for key, value in self.__dict__.iteritems()]
  9366. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9367. def __eq__(self, other):
  9368. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9369. def __ne__(self, other):
  9370. return not (self == other)
  9371. class get_index_names_args(object):
  9372. """
  9373. Attributes:
  9374. - db_name
  9375. - tbl_name
  9376. - max_indexes
  9377. """
  9378. thrift_spec = (
  9379. None, # 0
  9380. (1, TType.STRING, 'db_name', None, None, ), # 1
  9381. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  9382. (3, TType.I16, 'max_indexes', None, -1, ), # 3
  9383. )
  9384. def __init__(self, db_name=None, tbl_name=None, max_indexes=thrift_spec[3][4],):
  9385. self.db_name = db_name
  9386. self.tbl_name = tbl_name
  9387. self.max_indexes = max_indexes
  9388. def read(self, iprot):
  9389. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9390. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9391. return
  9392. iprot.readStructBegin()
  9393. while True:
  9394. (fname, ftype, fid) = iprot.readFieldBegin()
  9395. if ftype == TType.STOP:
  9396. break
  9397. if fid == 1:
  9398. if ftype == TType.STRING:
  9399. self.db_name = iprot.readString();
  9400. else:
  9401. iprot.skip(ftype)
  9402. elif fid == 2:
  9403. if ftype == TType.STRING:
  9404. self.tbl_name = iprot.readString();
  9405. else:
  9406. iprot.skip(ftype)
  9407. elif fid == 3:
  9408. if ftype == TType.I16:
  9409. self.max_indexes = iprot.readI16();
  9410. else:
  9411. iprot.skip(ftype)
  9412. else:
  9413. iprot.skip(ftype)
  9414. iprot.readFieldEnd()
  9415. iprot.readStructEnd()
  9416. def write(self, oprot):
  9417. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9418. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9419. return
  9420. oprot.writeStructBegin('get_index_names_args')
  9421. if self.db_name is not None:
  9422. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  9423. oprot.writeString(self.db_name)
  9424. oprot.writeFieldEnd()
  9425. if self.tbl_name is not None:
  9426. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  9427. oprot.writeString(self.tbl_name)
  9428. oprot.writeFieldEnd()
  9429. if self.max_indexes is not None:
  9430. oprot.writeFieldBegin('max_indexes', TType.I16, 3)
  9431. oprot.writeI16(self.max_indexes)
  9432. oprot.writeFieldEnd()
  9433. oprot.writeFieldStop()
  9434. oprot.writeStructEnd()
  9435. def validate(self):
  9436. return
  9437. def __repr__(self):
  9438. L = ['%s=%r' % (key, value)
  9439. for key, value in self.__dict__.iteritems()]
  9440. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9441. def __eq__(self, other):
  9442. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9443. def __ne__(self, other):
  9444. return not (self == other)
  9445. class get_index_names_result(object):
  9446. """
  9447. Attributes:
  9448. - success
  9449. - o2
  9450. """
  9451. thrift_spec = (
  9452. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  9453. (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1
  9454. )
  9455. def __init__(self, success=None, o2=None,):
  9456. self.success = success
  9457. self.o2 = o2
  9458. def read(self, iprot):
  9459. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9460. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9461. return
  9462. iprot.readStructBegin()
  9463. while True:
  9464. (fname, ftype, fid) = iprot.readFieldBegin()
  9465. if ftype == TType.STOP:
  9466. break
  9467. if fid == 0:
  9468. if ftype == TType.LIST:
  9469. self.success = []
  9470. (_etype370, _size367) = iprot.readListBegin()
  9471. for _i371 in xrange(_size367):
  9472. _elem372 = iprot.readString();
  9473. self.success.append(_elem372)
  9474. iprot.readListEnd()
  9475. else:
  9476. iprot.skip(ftype)
  9477. elif fid == 1:
  9478. if ftype == TType.STRUCT:
  9479. self.o2 = MetaException()
  9480. self.o2.read(iprot)
  9481. else:
  9482. iprot.skip(ftype)
  9483. else:
  9484. iprot.skip(ftype)
  9485. iprot.readFieldEnd()
  9486. iprot.readStructEnd()
  9487. def write(self, oprot):
  9488. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9489. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9490. return
  9491. oprot.writeStructBegin('get_index_names_result')
  9492. if self.success is not None:
  9493. oprot.writeFieldBegin('success', TType.LIST, 0)
  9494. oprot.writeListBegin(TType.STRING, len(self.success))
  9495. for iter373 in self.success:
  9496. oprot.writeString(iter373)
  9497. oprot.writeListEnd()
  9498. oprot.writeFieldEnd()
  9499. if self.o2 is not None:
  9500. oprot.writeFieldBegin('o2', TType.STRUCT, 1)
  9501. self.o2.write(oprot)
  9502. oprot.writeFieldEnd()
  9503. oprot.writeFieldStop()
  9504. oprot.writeStructEnd()
  9505. def validate(self):
  9506. return
  9507. def __repr__(self):
  9508. L = ['%s=%r' % (key, value)
  9509. for key, value in self.__dict__.iteritems()]
  9510. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9511. def __eq__(self, other):
  9512. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9513. def __ne__(self, other):
  9514. return not (self == other)
  9515. class create_role_args(object):
  9516. """
  9517. Attributes:
  9518. - role
  9519. """
  9520. thrift_spec = (
  9521. None, # 0
  9522. (1, TType.STRUCT, 'role', (Role, Role.thrift_spec), None, ), # 1
  9523. )
  9524. def __init__(self, role=None,):
  9525. self.role = role
  9526. def read(self, iprot):
  9527. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9528. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9529. return
  9530. iprot.readStructBegin()
  9531. while True:
  9532. (fname, ftype, fid) = iprot.readFieldBegin()
  9533. if ftype == TType.STOP:
  9534. break
  9535. if fid == 1:
  9536. if ftype == TType.STRUCT:
  9537. self.role = Role()
  9538. self.role.read(iprot)
  9539. else:
  9540. iprot.skip(ftype)
  9541. else:
  9542. iprot.skip(ftype)
  9543. iprot.readFieldEnd()
  9544. iprot.readStructEnd()
  9545. def write(self, oprot):
  9546. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9547. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9548. return
  9549. oprot.writeStructBegin('create_role_args')
  9550. if self.role is not None:
  9551. oprot.writeFieldBegin('role', TType.STRUCT, 1)
  9552. self.role.write(oprot)
  9553. oprot.writeFieldEnd()
  9554. oprot.writeFieldStop()
  9555. oprot.writeStructEnd()
  9556. def validate(self):
  9557. return
  9558. def __repr__(self):
  9559. L = ['%s=%r' % (key, value)
  9560. for key, value in self.__dict__.iteritems()]
  9561. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9562. def __eq__(self, other):
  9563. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9564. def __ne__(self, other):
  9565. return not (self == other)
  9566. class create_role_result(object):
  9567. """
  9568. Attributes:
  9569. - success
  9570. - o1
  9571. """
  9572. thrift_spec = (
  9573. (0, TType.BOOL, 'success', None, None, ), # 0
  9574. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  9575. )
  9576. def __init__(self, success=None, o1=None,):
  9577. self.success = success
  9578. self.o1 = o1
  9579. def read(self, iprot):
  9580. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9581. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9582. return
  9583. iprot.readStructBegin()
  9584. while True:
  9585. (fname, ftype, fid) = iprot.readFieldBegin()
  9586. if ftype == TType.STOP:
  9587. break
  9588. if fid == 0:
  9589. if ftype == TType.BOOL:
  9590. self.success = iprot.readBool();
  9591. else:
  9592. iprot.skip(ftype)
  9593. elif fid == 1:
  9594. if ftype == TType.STRUCT:
  9595. self.o1 = MetaException()
  9596. self.o1.read(iprot)
  9597. else:
  9598. iprot.skip(ftype)
  9599. else:
  9600. iprot.skip(ftype)
  9601. iprot.readFieldEnd()
  9602. iprot.readStructEnd()
  9603. def write(self, oprot):
  9604. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9605. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9606. return
  9607. oprot.writeStructBegin('create_role_result')
  9608. if self.success is not None:
  9609. oprot.writeFieldBegin('success', TType.BOOL, 0)
  9610. oprot.writeBool(self.success)
  9611. oprot.writeFieldEnd()
  9612. if self.o1 is not None:
  9613. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9614. self.o1.write(oprot)
  9615. oprot.writeFieldEnd()
  9616. oprot.writeFieldStop()
  9617. oprot.writeStructEnd()
  9618. def validate(self):
  9619. return
  9620. def __repr__(self):
  9621. L = ['%s=%r' % (key, value)
  9622. for key, value in self.__dict__.iteritems()]
  9623. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9624. def __eq__(self, other):
  9625. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9626. def __ne__(self, other):
  9627. return not (self == other)
  9628. class drop_role_args(object):
  9629. """
  9630. Attributes:
  9631. - role_name
  9632. """
  9633. thrift_spec = (
  9634. None, # 0
  9635. (1, TType.STRING, 'role_name', None, None, ), # 1
  9636. )
  9637. def __init__(self, role_name=None,):
  9638. self.role_name = role_name
  9639. def read(self, iprot):
  9640. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9641. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9642. return
  9643. iprot.readStructBegin()
  9644. while True:
  9645. (fname, ftype, fid) = iprot.readFieldBegin()
  9646. if ftype == TType.STOP:
  9647. break
  9648. if fid == 1:
  9649. if ftype == TType.STRING:
  9650. self.role_name = iprot.readString();
  9651. else:
  9652. iprot.skip(ftype)
  9653. else:
  9654. iprot.skip(ftype)
  9655. iprot.readFieldEnd()
  9656. iprot.readStructEnd()
  9657. def write(self, oprot):
  9658. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9659. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9660. return
  9661. oprot.writeStructBegin('drop_role_args')
  9662. if self.role_name is not None:
  9663. oprot.writeFieldBegin('role_name', TType.STRING, 1)
  9664. oprot.writeString(self.role_name)
  9665. oprot.writeFieldEnd()
  9666. oprot.writeFieldStop()
  9667. oprot.writeStructEnd()
  9668. def validate(self):
  9669. return
  9670. def __repr__(self):
  9671. L = ['%s=%r' % (key, value)
  9672. for key, value in self.__dict__.iteritems()]
  9673. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9674. def __eq__(self, other):
  9675. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9676. def __ne__(self, other):
  9677. return not (self == other)
  9678. class drop_role_result(object):
  9679. """
  9680. Attributes:
  9681. - success
  9682. - o1
  9683. """
  9684. thrift_spec = (
  9685. (0, TType.BOOL, 'success', None, None, ), # 0
  9686. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  9687. )
  9688. def __init__(self, success=None, o1=None,):
  9689. self.success = success
  9690. self.o1 = o1
  9691. def read(self, iprot):
  9692. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9693. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9694. return
  9695. iprot.readStructBegin()
  9696. while True:
  9697. (fname, ftype, fid) = iprot.readFieldBegin()
  9698. if ftype == TType.STOP:
  9699. break
  9700. if fid == 0:
  9701. if ftype == TType.BOOL:
  9702. self.success = iprot.readBool();
  9703. else:
  9704. iprot.skip(ftype)
  9705. elif fid == 1:
  9706. if ftype == TType.STRUCT:
  9707. self.o1 = MetaException()
  9708. self.o1.read(iprot)
  9709. else:
  9710. iprot.skip(ftype)
  9711. else:
  9712. iprot.skip(ftype)
  9713. iprot.readFieldEnd()
  9714. iprot.readStructEnd()
  9715. def write(self, oprot):
  9716. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9717. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9718. return
  9719. oprot.writeStructBegin('drop_role_result')
  9720. if self.success is not None:
  9721. oprot.writeFieldBegin('success', TType.BOOL, 0)
  9722. oprot.writeBool(self.success)
  9723. oprot.writeFieldEnd()
  9724. if self.o1 is not None:
  9725. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9726. self.o1.write(oprot)
  9727. oprot.writeFieldEnd()
  9728. oprot.writeFieldStop()
  9729. oprot.writeStructEnd()
  9730. def validate(self):
  9731. return
  9732. def __repr__(self):
  9733. L = ['%s=%r' % (key, value)
  9734. for key, value in self.__dict__.iteritems()]
  9735. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9736. def __eq__(self, other):
  9737. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9738. def __ne__(self, other):
  9739. return not (self == other)
  9740. class get_role_names_args(object):
  9741. thrift_spec = (
  9742. )
  9743. def read(self, iprot):
  9744. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9745. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9746. return
  9747. iprot.readStructBegin()
  9748. while True:
  9749. (fname, ftype, fid) = iprot.readFieldBegin()
  9750. if ftype == TType.STOP:
  9751. break
  9752. else:
  9753. iprot.skip(ftype)
  9754. iprot.readFieldEnd()
  9755. iprot.readStructEnd()
  9756. def write(self, oprot):
  9757. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9758. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9759. return
  9760. oprot.writeStructBegin('get_role_names_args')
  9761. oprot.writeFieldStop()
  9762. oprot.writeStructEnd()
  9763. def validate(self):
  9764. return
  9765. def __repr__(self):
  9766. L = ['%s=%r' % (key, value)
  9767. for key, value in self.__dict__.iteritems()]
  9768. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9769. def __eq__(self, other):
  9770. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9771. def __ne__(self, other):
  9772. return not (self == other)
  9773. class get_role_names_result(object):
  9774. """
  9775. Attributes:
  9776. - success
  9777. - o1
  9778. """
  9779. thrift_spec = (
  9780. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  9781. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  9782. )
  9783. def __init__(self, success=None, o1=None,):
  9784. self.success = success
  9785. self.o1 = o1
  9786. def read(self, iprot):
  9787. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9788. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9789. return
  9790. iprot.readStructBegin()
  9791. while True:
  9792. (fname, ftype, fid) = iprot.readFieldBegin()
  9793. if ftype == TType.STOP:
  9794. break
  9795. if fid == 0:
  9796. if ftype == TType.LIST:
  9797. self.success = []
  9798. (_etype377, _size374) = iprot.readListBegin()
  9799. for _i378 in xrange(_size374):
  9800. _elem379 = iprot.readString();
  9801. self.success.append(_elem379)
  9802. iprot.readListEnd()
  9803. else:
  9804. iprot.skip(ftype)
  9805. elif fid == 1:
  9806. if ftype == TType.STRUCT:
  9807. self.o1 = MetaException()
  9808. self.o1.read(iprot)
  9809. else:
  9810. iprot.skip(ftype)
  9811. else:
  9812. iprot.skip(ftype)
  9813. iprot.readFieldEnd()
  9814. iprot.readStructEnd()
  9815. def write(self, oprot):
  9816. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9817. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9818. return
  9819. oprot.writeStructBegin('get_role_names_result')
  9820. if self.success is not None:
  9821. oprot.writeFieldBegin('success', TType.LIST, 0)
  9822. oprot.writeListBegin(TType.STRING, len(self.success))
  9823. for iter380 in self.success:
  9824. oprot.writeString(iter380)
  9825. oprot.writeListEnd()
  9826. oprot.writeFieldEnd()
  9827. if self.o1 is not None:
  9828. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9829. self.o1.write(oprot)
  9830. oprot.writeFieldEnd()
  9831. oprot.writeFieldStop()
  9832. oprot.writeStructEnd()
  9833. def validate(self):
  9834. return
  9835. def __repr__(self):
  9836. L = ['%s=%r' % (key, value)
  9837. for key, value in self.__dict__.iteritems()]
  9838. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9839. def __eq__(self, other):
  9840. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9841. def __ne__(self, other):
  9842. return not (self == other)
  9843. class grant_role_args(object):
  9844. """
  9845. Attributes:
  9846. - role_name
  9847. - principal_name
  9848. - principal_type
  9849. - grantor
  9850. - grantorType
  9851. - grant_option
  9852. """
  9853. thrift_spec = (
  9854. None, # 0
  9855. (1, TType.STRING, 'role_name', None, None, ), # 1
  9856. (2, TType.STRING, 'principal_name', None, None, ), # 2
  9857. (3, TType.I32, 'principal_type', None, None, ), # 3
  9858. (4, TType.STRING, 'grantor', None, None, ), # 4
  9859. (5, TType.I32, 'grantorType', None, None, ), # 5
  9860. (6, TType.BOOL, 'grant_option', None, None, ), # 6
  9861. )
  9862. def __init__(self, role_name=None, principal_name=None, principal_type=None, grantor=None, grantorType=None, grant_option=None,):
  9863. self.role_name = role_name
  9864. self.principal_name = principal_name
  9865. self.principal_type = principal_type
  9866. self.grantor = grantor
  9867. self.grantorType = grantorType
  9868. self.grant_option = grant_option
  9869. def read(self, iprot):
  9870. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9871. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9872. return
  9873. iprot.readStructBegin()
  9874. while True:
  9875. (fname, ftype, fid) = iprot.readFieldBegin()
  9876. if ftype == TType.STOP:
  9877. break
  9878. if fid == 1:
  9879. if ftype == TType.STRING:
  9880. self.role_name = iprot.readString();
  9881. else:
  9882. iprot.skip(ftype)
  9883. elif fid == 2:
  9884. if ftype == TType.STRING:
  9885. self.principal_name = iprot.readString();
  9886. else:
  9887. iprot.skip(ftype)
  9888. elif fid == 3:
  9889. if ftype == TType.I32:
  9890. self.principal_type = iprot.readI32();
  9891. else:
  9892. iprot.skip(ftype)
  9893. elif fid == 4:
  9894. if ftype == TType.STRING:
  9895. self.grantor = iprot.readString();
  9896. else:
  9897. iprot.skip(ftype)
  9898. elif fid == 5:
  9899. if ftype == TType.I32:
  9900. self.grantorType = iprot.readI32();
  9901. else:
  9902. iprot.skip(ftype)
  9903. elif fid == 6:
  9904. if ftype == TType.BOOL:
  9905. self.grant_option = iprot.readBool();
  9906. else:
  9907. iprot.skip(ftype)
  9908. else:
  9909. iprot.skip(ftype)
  9910. iprot.readFieldEnd()
  9911. iprot.readStructEnd()
  9912. def write(self, oprot):
  9913. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9914. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9915. return
  9916. oprot.writeStructBegin('grant_role_args')
  9917. if self.role_name is not None:
  9918. oprot.writeFieldBegin('role_name', TType.STRING, 1)
  9919. oprot.writeString(self.role_name)
  9920. oprot.writeFieldEnd()
  9921. if self.principal_name is not None:
  9922. oprot.writeFieldBegin('principal_name', TType.STRING, 2)
  9923. oprot.writeString(self.principal_name)
  9924. oprot.writeFieldEnd()
  9925. if self.principal_type is not None:
  9926. oprot.writeFieldBegin('principal_type', TType.I32, 3)
  9927. oprot.writeI32(self.principal_type)
  9928. oprot.writeFieldEnd()
  9929. if self.grantor is not None:
  9930. oprot.writeFieldBegin('grantor', TType.STRING, 4)
  9931. oprot.writeString(self.grantor)
  9932. oprot.writeFieldEnd()
  9933. if self.grantorType is not None:
  9934. oprot.writeFieldBegin('grantorType', TType.I32, 5)
  9935. oprot.writeI32(self.grantorType)
  9936. oprot.writeFieldEnd()
  9937. if self.grant_option is not None:
  9938. oprot.writeFieldBegin('grant_option', TType.BOOL, 6)
  9939. oprot.writeBool(self.grant_option)
  9940. oprot.writeFieldEnd()
  9941. oprot.writeFieldStop()
  9942. oprot.writeStructEnd()
  9943. def validate(self):
  9944. return
  9945. def __repr__(self):
  9946. L = ['%s=%r' % (key, value)
  9947. for key, value in self.__dict__.iteritems()]
  9948. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9949. def __eq__(self, other):
  9950. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9951. def __ne__(self, other):
  9952. return not (self == other)
  9953. class grant_role_result(object):
  9954. """
  9955. Attributes:
  9956. - success
  9957. - o1
  9958. """
  9959. thrift_spec = (
  9960. (0, TType.BOOL, 'success', None, None, ), # 0
  9961. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  9962. )
  9963. def __init__(self, success=None, o1=None,):
  9964. self.success = success
  9965. self.o1 = o1
  9966. def read(self, iprot):
  9967. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9968. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9969. return
  9970. iprot.readStructBegin()
  9971. while True:
  9972. (fname, ftype, fid) = iprot.readFieldBegin()
  9973. if ftype == TType.STOP:
  9974. break
  9975. if fid == 0:
  9976. if ftype == TType.BOOL:
  9977. self.success = iprot.readBool();
  9978. else:
  9979. iprot.skip(ftype)
  9980. elif fid == 1:
  9981. if ftype == TType.STRUCT:
  9982. self.o1 = MetaException()
  9983. self.o1.read(iprot)
  9984. else:
  9985. iprot.skip(ftype)
  9986. else:
  9987. iprot.skip(ftype)
  9988. iprot.readFieldEnd()
  9989. iprot.readStructEnd()
  9990. def write(self, oprot):
  9991. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9992. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9993. return
  9994. oprot.writeStructBegin('grant_role_result')
  9995. if self.success is not None:
  9996. oprot.writeFieldBegin('success', TType.BOOL, 0)
  9997. oprot.writeBool(self.success)
  9998. oprot.writeFieldEnd()
  9999. if self.o1 is not None:
  10000. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10001. self.o1.write(oprot)
  10002. oprot.writeFieldEnd()
  10003. oprot.writeFieldStop()
  10004. oprot.writeStructEnd()
  10005. def validate(self):
  10006. return
  10007. def __repr__(self):
  10008. L = ['%s=%r' % (key, value)
  10009. for key, value in self.__dict__.iteritems()]
  10010. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10011. def __eq__(self, other):
  10012. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10013. def __ne__(self, other):
  10014. return not (self == other)
  10015. class revoke_role_args(object):
  10016. """
  10017. Attributes:
  10018. - role_name
  10019. - principal_name
  10020. - principal_type
  10021. """
  10022. thrift_spec = (
  10023. None, # 0
  10024. (1, TType.STRING, 'role_name', None, None, ), # 1
  10025. (2, TType.STRING, 'principal_name', None, None, ), # 2
  10026. (3, TType.I32, 'principal_type', None, None, ), # 3
  10027. )
  10028. def __init__(self, role_name=None, principal_name=None, principal_type=None,):
  10029. self.role_name = role_name
  10030. self.principal_name = principal_name
  10031. self.principal_type = principal_type
  10032. def read(self, iprot):
  10033. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10034. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10035. return
  10036. iprot.readStructBegin()
  10037. while True:
  10038. (fname, ftype, fid) = iprot.readFieldBegin()
  10039. if ftype == TType.STOP:
  10040. break
  10041. if fid == 1:
  10042. if ftype == TType.STRING:
  10043. self.role_name = iprot.readString();
  10044. else:
  10045. iprot.skip(ftype)
  10046. elif fid == 2:
  10047. if ftype == TType.STRING:
  10048. self.principal_name = iprot.readString();
  10049. else:
  10050. iprot.skip(ftype)
  10051. elif fid == 3:
  10052. if ftype == TType.I32:
  10053. self.principal_type = iprot.readI32();
  10054. else:
  10055. iprot.skip(ftype)
  10056. else:
  10057. iprot.skip(ftype)
  10058. iprot.readFieldEnd()
  10059. iprot.readStructEnd()
  10060. def write(self, oprot):
  10061. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10062. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10063. return
  10064. oprot.writeStructBegin('revoke_role_args')
  10065. if self.role_name is not None:
  10066. oprot.writeFieldBegin('role_name', TType.STRING, 1)
  10067. oprot.writeString(self.role_name)
  10068. oprot.writeFieldEnd()
  10069. if self.principal_name is not None:
  10070. oprot.writeFieldBegin('principal_name', TType.STRING, 2)
  10071. oprot.writeString(self.principal_name)
  10072. oprot.writeFieldEnd()
  10073. if self.principal_type is not None:
  10074. oprot.writeFieldBegin('principal_type', TType.I32, 3)
  10075. oprot.writeI32(self.principal_type)
  10076. oprot.writeFieldEnd()
  10077. oprot.writeFieldStop()
  10078. oprot.writeStructEnd()
  10079. def validate(self):
  10080. return
  10081. def __repr__(self):
  10082. L = ['%s=%r' % (key, value)
  10083. for key, value in self.__dict__.iteritems()]
  10084. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10085. def __eq__(self, other):
  10086. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10087. def __ne__(self, other):
  10088. return not (self == other)
  10089. class revoke_role_result(object):
  10090. """
  10091. Attributes:
  10092. - success
  10093. - o1
  10094. """
  10095. thrift_spec = (
  10096. (0, TType.BOOL, 'success', None, None, ), # 0
  10097. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10098. )
  10099. def __init__(self, success=None, o1=None,):
  10100. self.success = success
  10101. self.o1 = o1
  10102. def read(self, iprot):
  10103. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10104. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10105. return
  10106. iprot.readStructBegin()
  10107. while True:
  10108. (fname, ftype, fid) = iprot.readFieldBegin()
  10109. if ftype == TType.STOP:
  10110. break
  10111. if fid == 0:
  10112. if ftype == TType.BOOL:
  10113. self.success = iprot.readBool();
  10114. else:
  10115. iprot.skip(ftype)
  10116. elif fid == 1:
  10117. if ftype == TType.STRUCT:
  10118. self.o1 = MetaException()
  10119. self.o1.read(iprot)
  10120. else:
  10121. iprot.skip(ftype)
  10122. else:
  10123. iprot.skip(ftype)
  10124. iprot.readFieldEnd()
  10125. iprot.readStructEnd()
  10126. def write(self, oprot):
  10127. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10128. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10129. return
  10130. oprot.writeStructBegin('revoke_role_result')
  10131. if self.success is not None:
  10132. oprot.writeFieldBegin('success', TType.BOOL, 0)
  10133. oprot.writeBool(self.success)
  10134. oprot.writeFieldEnd()
  10135. if self.o1 is not None:
  10136. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10137. self.o1.write(oprot)
  10138. oprot.writeFieldEnd()
  10139. oprot.writeFieldStop()
  10140. oprot.writeStructEnd()
  10141. def validate(self):
  10142. return
  10143. def __repr__(self):
  10144. L = ['%s=%r' % (key, value)
  10145. for key, value in self.__dict__.iteritems()]
  10146. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10147. def __eq__(self, other):
  10148. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10149. def __ne__(self, other):
  10150. return not (self == other)
  10151. class list_roles_args(object):
  10152. """
  10153. Attributes:
  10154. - principal_name
  10155. - principal_type
  10156. """
  10157. thrift_spec = (
  10158. None, # 0
  10159. (1, TType.STRING, 'principal_name', None, None, ), # 1
  10160. (2, TType.I32, 'principal_type', None, None, ), # 2
  10161. )
  10162. def __init__(self, principal_name=None, principal_type=None,):
  10163. self.principal_name = principal_name
  10164. self.principal_type = principal_type
  10165. def read(self, iprot):
  10166. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10167. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10168. return
  10169. iprot.readStructBegin()
  10170. while True:
  10171. (fname, ftype, fid) = iprot.readFieldBegin()
  10172. if ftype == TType.STOP:
  10173. break
  10174. if fid == 1:
  10175. if ftype == TType.STRING:
  10176. self.principal_name = iprot.readString();
  10177. else:
  10178. iprot.skip(ftype)
  10179. elif fid == 2:
  10180. if ftype == TType.I32:
  10181. self.principal_type = iprot.readI32();
  10182. else:
  10183. iprot.skip(ftype)
  10184. else:
  10185. iprot.skip(ftype)
  10186. iprot.readFieldEnd()
  10187. iprot.readStructEnd()
  10188. def write(self, oprot):
  10189. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10190. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10191. return
  10192. oprot.writeStructBegin('list_roles_args')
  10193. if self.principal_name is not None:
  10194. oprot.writeFieldBegin('principal_name', TType.STRING, 1)
  10195. oprot.writeString(self.principal_name)
  10196. oprot.writeFieldEnd()
  10197. if self.principal_type is not None:
  10198. oprot.writeFieldBegin('principal_type', TType.I32, 2)
  10199. oprot.writeI32(self.principal_type)
  10200. oprot.writeFieldEnd()
  10201. oprot.writeFieldStop()
  10202. oprot.writeStructEnd()
  10203. def validate(self):
  10204. return
  10205. def __repr__(self):
  10206. L = ['%s=%r' % (key, value)
  10207. for key, value in self.__dict__.iteritems()]
  10208. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10209. def __eq__(self, other):
  10210. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10211. def __ne__(self, other):
  10212. return not (self == other)
  10213. class list_roles_result(object):
  10214. """
  10215. Attributes:
  10216. - success
  10217. - o1
  10218. """
  10219. thrift_spec = (
  10220. (0, TType.LIST, 'success', (TType.STRUCT,(Role, Role.thrift_spec)), None, ), # 0
  10221. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10222. )
  10223. def __init__(self, success=None, o1=None,):
  10224. self.success = success
  10225. self.o1 = o1
  10226. def read(self, iprot):
  10227. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10228. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10229. return
  10230. iprot.readStructBegin()
  10231. while True:
  10232. (fname, ftype, fid) = iprot.readFieldBegin()
  10233. if ftype == TType.STOP:
  10234. break
  10235. if fid == 0:
  10236. if ftype == TType.LIST:
  10237. self.success = []
  10238. (_etype384, _size381) = iprot.readListBegin()
  10239. for _i385 in xrange(_size381):
  10240. _elem386 = Role()
  10241. _elem386.read(iprot)
  10242. self.success.append(_elem386)
  10243. iprot.readListEnd()
  10244. else:
  10245. iprot.skip(ftype)
  10246. elif fid == 1:
  10247. if ftype == TType.STRUCT:
  10248. self.o1 = MetaException()
  10249. self.o1.read(iprot)
  10250. else:
  10251. iprot.skip(ftype)
  10252. else:
  10253. iprot.skip(ftype)
  10254. iprot.readFieldEnd()
  10255. iprot.readStructEnd()
  10256. def write(self, oprot):
  10257. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10258. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10259. return
  10260. oprot.writeStructBegin('list_roles_result')
  10261. if self.success is not None:
  10262. oprot.writeFieldBegin('success', TType.LIST, 0)
  10263. oprot.writeListBegin(TType.STRUCT, len(self.success))
  10264. for iter387 in self.success:
  10265. iter387.write(oprot)
  10266. oprot.writeListEnd()
  10267. oprot.writeFieldEnd()
  10268. if self.o1 is not None:
  10269. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10270. self.o1.write(oprot)
  10271. oprot.writeFieldEnd()
  10272. oprot.writeFieldStop()
  10273. oprot.writeStructEnd()
  10274. def validate(self):
  10275. return
  10276. def __repr__(self):
  10277. L = ['%s=%r' % (key, value)
  10278. for key, value in self.__dict__.iteritems()]
  10279. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10280. def __eq__(self, other):
  10281. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10282. def __ne__(self, other):
  10283. return not (self == other)
  10284. class get_privilege_set_args(object):
  10285. """
  10286. Attributes:
  10287. - hiveObject
  10288. - user_name
  10289. - group_names
  10290. """
  10291. thrift_spec = (
  10292. None, # 0
  10293. (1, TType.STRUCT, 'hiveObject', (HiveObjectRef, HiveObjectRef.thrift_spec), None, ), # 1
  10294. (2, TType.STRING, 'user_name', None, None, ), # 2
  10295. (3, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 3
  10296. )
  10297. def __init__(self, hiveObject=None, user_name=None, group_names=None,):
  10298. self.hiveObject = hiveObject
  10299. self.user_name = user_name
  10300. self.group_names = group_names
  10301. def read(self, iprot):
  10302. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10303. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10304. return
  10305. iprot.readStructBegin()
  10306. while True:
  10307. (fname, ftype, fid) = iprot.readFieldBegin()
  10308. if ftype == TType.STOP:
  10309. break
  10310. if fid == 1:
  10311. if ftype == TType.STRUCT:
  10312. self.hiveObject = HiveObjectRef()
  10313. self.hiveObject.read(iprot)
  10314. else:
  10315. iprot.skip(ftype)
  10316. elif fid == 2:
  10317. if ftype == TType.STRING:
  10318. self.user_name = iprot.readString();
  10319. else:
  10320. iprot.skip(ftype)
  10321. elif fid == 3:
  10322. if ftype == TType.LIST:
  10323. self.group_names = []
  10324. (_etype391, _size388) = iprot.readListBegin()
  10325. for _i392 in xrange(_size388):
  10326. _elem393 = iprot.readString();
  10327. self.group_names.append(_elem393)
  10328. iprot.readListEnd()
  10329. else:
  10330. iprot.skip(ftype)
  10331. else:
  10332. iprot.skip(ftype)
  10333. iprot.readFieldEnd()
  10334. iprot.readStructEnd()
  10335. def write(self, oprot):
  10336. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10337. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10338. return
  10339. oprot.writeStructBegin('get_privilege_set_args')
  10340. if self.hiveObject is not None:
  10341. oprot.writeFieldBegin('hiveObject', TType.STRUCT, 1)
  10342. self.hiveObject.write(oprot)
  10343. oprot.writeFieldEnd()
  10344. if self.user_name is not None:
  10345. oprot.writeFieldBegin('user_name', TType.STRING, 2)
  10346. oprot.writeString(self.user_name)
  10347. oprot.writeFieldEnd()
  10348. if self.group_names is not None:
  10349. oprot.writeFieldBegin('group_names', TType.LIST, 3)
  10350. oprot.writeListBegin(TType.STRING, len(self.group_names))
  10351. for iter394 in self.group_names:
  10352. oprot.writeString(iter394)
  10353. oprot.writeListEnd()
  10354. oprot.writeFieldEnd()
  10355. oprot.writeFieldStop()
  10356. oprot.writeStructEnd()
  10357. def validate(self):
  10358. return
  10359. def __repr__(self):
  10360. L = ['%s=%r' % (key, value)
  10361. for key, value in self.__dict__.iteritems()]
  10362. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10363. def __eq__(self, other):
  10364. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10365. def __ne__(self, other):
  10366. return not (self == other)
  10367. class get_privilege_set_result(object):
  10368. """
  10369. Attributes:
  10370. - success
  10371. - o1
  10372. """
  10373. thrift_spec = (
  10374. (0, TType.STRUCT, 'success', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 0
  10375. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10376. )
  10377. def __init__(self, success=None, o1=None,):
  10378. self.success = success
  10379. self.o1 = o1
  10380. def read(self, iprot):
  10381. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10382. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10383. return
  10384. iprot.readStructBegin()
  10385. while True:
  10386. (fname, ftype, fid) = iprot.readFieldBegin()
  10387. if ftype == TType.STOP:
  10388. break
  10389. if fid == 0:
  10390. if ftype == TType.STRUCT:
  10391. self.success = PrincipalPrivilegeSet()
  10392. self.success.read(iprot)
  10393. else:
  10394. iprot.skip(ftype)
  10395. elif fid == 1:
  10396. if ftype == TType.STRUCT:
  10397. self.o1 = MetaException()
  10398. self.o1.read(iprot)
  10399. else:
  10400. iprot.skip(ftype)
  10401. else:
  10402. iprot.skip(ftype)
  10403. iprot.readFieldEnd()
  10404. iprot.readStructEnd()
  10405. def write(self, oprot):
  10406. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10407. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10408. return
  10409. oprot.writeStructBegin('get_privilege_set_result')
  10410. if self.success is not None:
  10411. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  10412. self.success.write(oprot)
  10413. oprot.writeFieldEnd()
  10414. if self.o1 is not None:
  10415. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10416. self.o1.write(oprot)
  10417. oprot.writeFieldEnd()
  10418. oprot.writeFieldStop()
  10419. oprot.writeStructEnd()
  10420. def validate(self):
  10421. return
  10422. def __repr__(self):
  10423. L = ['%s=%r' % (key, value)
  10424. for key, value in self.__dict__.iteritems()]
  10425. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10426. def __eq__(self, other):
  10427. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10428. def __ne__(self, other):
  10429. return not (self == other)
  10430. class list_privileges_args(object):
  10431. """
  10432. Attributes:
  10433. - principal_name
  10434. - principal_type
  10435. - hiveObject
  10436. """
  10437. thrift_spec = (
  10438. None, # 0
  10439. (1, TType.STRING, 'principal_name', None, None, ), # 1
  10440. (2, TType.I32, 'principal_type', None, None, ), # 2
  10441. (3, TType.STRUCT, 'hiveObject', (HiveObjectRef, HiveObjectRef.thrift_spec), None, ), # 3
  10442. )
  10443. def __init__(self, principal_name=None, principal_type=None, hiveObject=None,):
  10444. self.principal_name = principal_name
  10445. self.principal_type = principal_type
  10446. self.hiveObject = hiveObject
  10447. def read(self, iprot):
  10448. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10449. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10450. return
  10451. iprot.readStructBegin()
  10452. while True:
  10453. (fname, ftype, fid) = iprot.readFieldBegin()
  10454. if ftype == TType.STOP:
  10455. break
  10456. if fid == 1:
  10457. if ftype == TType.STRING:
  10458. self.principal_name = iprot.readString();
  10459. else:
  10460. iprot.skip(ftype)
  10461. elif fid == 2:
  10462. if ftype == TType.I32:
  10463. self.principal_type = iprot.readI32();
  10464. else:
  10465. iprot.skip(ftype)
  10466. elif fid == 3:
  10467. if ftype == TType.STRUCT:
  10468. self.hiveObject = HiveObjectRef()
  10469. self.hiveObject.read(iprot)
  10470. else:
  10471. iprot.skip(ftype)
  10472. else:
  10473. iprot.skip(ftype)
  10474. iprot.readFieldEnd()
  10475. iprot.readStructEnd()
  10476. def write(self, oprot):
  10477. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10478. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10479. return
  10480. oprot.writeStructBegin('list_privileges_args')
  10481. if self.principal_name is not None:
  10482. oprot.writeFieldBegin('principal_name', TType.STRING, 1)
  10483. oprot.writeString(self.principal_name)
  10484. oprot.writeFieldEnd()
  10485. if self.principal_type is not None:
  10486. oprot.writeFieldBegin('principal_type', TType.I32, 2)
  10487. oprot.writeI32(self.principal_type)
  10488. oprot.writeFieldEnd()
  10489. if self.hiveObject is not None:
  10490. oprot.writeFieldBegin('hiveObject', TType.STRUCT, 3)
  10491. self.hiveObject.write(oprot)
  10492. oprot.writeFieldEnd()
  10493. oprot.writeFieldStop()
  10494. oprot.writeStructEnd()
  10495. def validate(self):
  10496. return
  10497. def __repr__(self):
  10498. L = ['%s=%r' % (key, value)
  10499. for key, value in self.__dict__.iteritems()]
  10500. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10501. def __eq__(self, other):
  10502. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10503. def __ne__(self, other):
  10504. return not (self == other)
  10505. class list_privileges_result(object):
  10506. """
  10507. Attributes:
  10508. - success
  10509. - o1
  10510. """
  10511. thrift_spec = (
  10512. (0, TType.LIST, 'success', (TType.STRUCT,(HiveObjectPrivilege, HiveObjectPrivilege.thrift_spec)), None, ), # 0
  10513. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10514. )
  10515. def __init__(self, success=None, o1=None,):
  10516. self.success = success
  10517. self.o1 = o1
  10518. def read(self, iprot):
  10519. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10520. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10521. return
  10522. iprot.readStructBegin()
  10523. while True:
  10524. (fname, ftype, fid) = iprot.readFieldBegin()
  10525. if ftype == TType.STOP:
  10526. break
  10527. if fid == 0:
  10528. if ftype == TType.LIST:
  10529. self.success = []
  10530. (_etype398, _size395) = iprot.readListBegin()
  10531. for _i399 in xrange(_size395):
  10532. _elem400 = HiveObjectPrivilege()
  10533. _elem400.read(iprot)
  10534. self.success.append(_elem400)
  10535. iprot.readListEnd()
  10536. else:
  10537. iprot.skip(ftype)
  10538. elif fid == 1:
  10539. if ftype == TType.STRUCT:
  10540. self.o1 = MetaException()
  10541. self.o1.read(iprot)
  10542. else:
  10543. iprot.skip(ftype)
  10544. else:
  10545. iprot.skip(ftype)
  10546. iprot.readFieldEnd()
  10547. iprot.readStructEnd()
  10548. def write(self, oprot):
  10549. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10550. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10551. return
  10552. oprot.writeStructBegin('list_privileges_result')
  10553. if self.success is not None:
  10554. oprot.writeFieldBegin('success', TType.LIST, 0)
  10555. oprot.writeListBegin(TType.STRUCT, len(self.success))
  10556. for iter401 in self.success:
  10557. iter401.write(oprot)
  10558. oprot.writeListEnd()
  10559. oprot.writeFieldEnd()
  10560. if self.o1 is not None:
  10561. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10562. self.o1.write(oprot)
  10563. oprot.writeFieldEnd()
  10564. oprot.writeFieldStop()
  10565. oprot.writeStructEnd()
  10566. def validate(self):
  10567. return
  10568. def __repr__(self):
  10569. L = ['%s=%r' % (key, value)
  10570. for key, value in self.__dict__.iteritems()]
  10571. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10572. def __eq__(self, other):
  10573. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10574. def __ne__(self, other):
  10575. return not (self == other)
  10576. class grant_privileges_args(object):
  10577. """
  10578. Attributes:
  10579. - privileges
  10580. """
  10581. thrift_spec = (
  10582. None, # 0
  10583. (1, TType.STRUCT, 'privileges', (PrivilegeBag, PrivilegeBag.thrift_spec), None, ), # 1
  10584. )
  10585. def __init__(self, privileges=None,):
  10586. self.privileges = privileges
  10587. def read(self, iprot):
  10588. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10589. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10590. return
  10591. iprot.readStructBegin()
  10592. while True:
  10593. (fname, ftype, fid) = iprot.readFieldBegin()
  10594. if ftype == TType.STOP:
  10595. break
  10596. if fid == 1:
  10597. if ftype == TType.STRUCT:
  10598. self.privileges = PrivilegeBag()
  10599. self.privileges.read(iprot)
  10600. else:
  10601. iprot.skip(ftype)
  10602. else:
  10603. iprot.skip(ftype)
  10604. iprot.readFieldEnd()
  10605. iprot.readStructEnd()
  10606. def write(self, oprot):
  10607. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10608. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10609. return
  10610. oprot.writeStructBegin('grant_privileges_args')
  10611. if self.privileges is not None:
  10612. oprot.writeFieldBegin('privileges', TType.STRUCT, 1)
  10613. self.privileges.write(oprot)
  10614. oprot.writeFieldEnd()
  10615. oprot.writeFieldStop()
  10616. oprot.writeStructEnd()
  10617. def validate(self):
  10618. return
  10619. def __repr__(self):
  10620. L = ['%s=%r' % (key, value)
  10621. for key, value in self.__dict__.iteritems()]
  10622. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10623. def __eq__(self, other):
  10624. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10625. def __ne__(self, other):
  10626. return not (self == other)
  10627. class grant_privileges_result(object):
  10628. """
  10629. Attributes:
  10630. - success
  10631. - o1
  10632. """
  10633. thrift_spec = (
  10634. (0, TType.BOOL, 'success', None, None, ), # 0
  10635. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10636. )
  10637. def __init__(self, success=None, o1=None,):
  10638. self.success = success
  10639. self.o1 = o1
  10640. def read(self, iprot):
  10641. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10642. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10643. return
  10644. iprot.readStructBegin()
  10645. while True:
  10646. (fname, ftype, fid) = iprot.readFieldBegin()
  10647. if ftype == TType.STOP:
  10648. break
  10649. if fid == 0:
  10650. if ftype == TType.BOOL:
  10651. self.success = iprot.readBool();
  10652. else:
  10653. iprot.skip(ftype)
  10654. elif fid == 1:
  10655. if ftype == TType.STRUCT:
  10656. self.o1 = MetaException()
  10657. self.o1.read(iprot)
  10658. else:
  10659. iprot.skip(ftype)
  10660. else:
  10661. iprot.skip(ftype)
  10662. iprot.readFieldEnd()
  10663. iprot.readStructEnd()
  10664. def write(self, oprot):
  10665. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10666. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10667. return
  10668. oprot.writeStructBegin('grant_privileges_result')
  10669. if self.success is not None:
  10670. oprot.writeFieldBegin('success', TType.BOOL, 0)
  10671. oprot.writeBool(self.success)
  10672. oprot.writeFieldEnd()
  10673. if self.o1 is not None:
  10674. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10675. self.o1.write(oprot)
  10676. oprot.writeFieldEnd()
  10677. oprot.writeFieldStop()
  10678. oprot.writeStructEnd()
  10679. def validate(self):
  10680. return
  10681. def __repr__(self):
  10682. L = ['%s=%r' % (key, value)
  10683. for key, value in self.__dict__.iteritems()]
  10684. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10685. def __eq__(self, other):
  10686. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10687. def __ne__(self, other):
  10688. return not (self == other)
  10689. class revoke_privileges_args(object):
  10690. """
  10691. Attributes:
  10692. - privileges
  10693. """
  10694. thrift_spec = (
  10695. None, # 0
  10696. (1, TType.STRUCT, 'privileges', (PrivilegeBag, PrivilegeBag.thrift_spec), None, ), # 1
  10697. )
  10698. def __init__(self, privileges=None,):
  10699. self.privileges = privileges
  10700. def read(self, iprot):
  10701. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10702. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10703. return
  10704. iprot.readStructBegin()
  10705. while True:
  10706. (fname, ftype, fid) = iprot.readFieldBegin()
  10707. if ftype == TType.STOP:
  10708. break
  10709. if fid == 1:
  10710. if ftype == TType.STRUCT:
  10711. self.privileges = PrivilegeBag()
  10712. self.privileges.read(iprot)
  10713. else:
  10714. iprot.skip(ftype)
  10715. else:
  10716. iprot.skip(ftype)
  10717. iprot.readFieldEnd()
  10718. iprot.readStructEnd()
  10719. def write(self, oprot):
  10720. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10721. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10722. return
  10723. oprot.writeStructBegin('revoke_privileges_args')
  10724. if self.privileges is not None:
  10725. oprot.writeFieldBegin('privileges', TType.STRUCT, 1)
  10726. self.privileges.write(oprot)
  10727. oprot.writeFieldEnd()
  10728. oprot.writeFieldStop()
  10729. oprot.writeStructEnd()
  10730. def validate(self):
  10731. return
  10732. def __repr__(self):
  10733. L = ['%s=%r' % (key, value)
  10734. for key, value in self.__dict__.iteritems()]
  10735. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10736. def __eq__(self, other):
  10737. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10738. def __ne__(self, other):
  10739. return not (self == other)
  10740. class revoke_privileges_result(object):
  10741. """
  10742. Attributes:
  10743. - success
  10744. - o1
  10745. """
  10746. thrift_spec = (
  10747. (0, TType.BOOL, 'success', None, None, ), # 0
  10748. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10749. )
  10750. def __init__(self, success=None, o1=None,):
  10751. self.success = success
  10752. self.o1 = o1
  10753. def read(self, iprot):
  10754. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10755. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10756. return
  10757. iprot.readStructBegin()
  10758. while True:
  10759. (fname, ftype, fid) = iprot.readFieldBegin()
  10760. if ftype == TType.STOP:
  10761. break
  10762. if fid == 0:
  10763. if ftype == TType.BOOL:
  10764. self.success = iprot.readBool();
  10765. else:
  10766. iprot.skip(ftype)
  10767. elif fid == 1:
  10768. if ftype == TType.STRUCT:
  10769. self.o1 = MetaException()
  10770. self.o1.read(iprot)
  10771. else:
  10772. iprot.skip(ftype)
  10773. else:
  10774. iprot.skip(ftype)
  10775. iprot.readFieldEnd()
  10776. iprot.readStructEnd()
  10777. def write(self, oprot):
  10778. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10779. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10780. return
  10781. oprot.writeStructBegin('revoke_privileges_result')
  10782. if self.success is not None:
  10783. oprot.writeFieldBegin('success', TType.BOOL, 0)
  10784. oprot.writeBool(self.success)
  10785. oprot.writeFieldEnd()
  10786. if self.o1 is not None:
  10787. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10788. self.o1.write(oprot)
  10789. oprot.writeFieldEnd()
  10790. oprot.writeFieldStop()
  10791. oprot.writeStructEnd()
  10792. def validate(self):
  10793. return
  10794. def __repr__(self):
  10795. L = ['%s=%r' % (key, value)
  10796. for key, value in self.__dict__.iteritems()]
  10797. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10798. def __eq__(self, other):
  10799. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10800. def __ne__(self, other):
  10801. return not (self == other)
  10802. class get_delegation_token_args(object):
  10803. """
  10804. Attributes:
  10805. - renewer_kerberos_principal_name
  10806. """
  10807. thrift_spec = (
  10808. None, # 0
  10809. (1, TType.STRING, 'renewer_kerberos_principal_name', None, None, ), # 1
  10810. )
  10811. def __init__(self, renewer_kerberos_principal_name=None,):
  10812. self.renewer_kerberos_principal_name = renewer_kerberos_principal_name
  10813. def read(self, iprot):
  10814. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10815. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10816. return
  10817. iprot.readStructBegin()
  10818. while True:
  10819. (fname, ftype, fid) = iprot.readFieldBegin()
  10820. if ftype == TType.STOP:
  10821. break
  10822. if fid == 1:
  10823. if ftype == TType.STRING:
  10824. self.renewer_kerberos_principal_name = iprot.readString();
  10825. else:
  10826. iprot.skip(ftype)
  10827. else:
  10828. iprot.skip(ftype)
  10829. iprot.readFieldEnd()
  10830. iprot.readStructEnd()
  10831. def write(self, oprot):
  10832. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10833. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10834. return
  10835. oprot.writeStructBegin('get_delegation_token_args')
  10836. if self.renewer_kerberos_principal_name is not None:
  10837. oprot.writeFieldBegin('renewer_kerberos_principal_name', TType.STRING, 1)
  10838. oprot.writeString(self.renewer_kerberos_principal_name)
  10839. oprot.writeFieldEnd()
  10840. oprot.writeFieldStop()
  10841. oprot.writeStructEnd()
  10842. def validate(self):
  10843. return
  10844. def __repr__(self):
  10845. L = ['%s=%r' % (key, value)
  10846. for key, value in self.__dict__.iteritems()]
  10847. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10848. def __eq__(self, other):
  10849. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10850. def __ne__(self, other):
  10851. return not (self == other)
  10852. class get_delegation_token_result(object):
  10853. """
  10854. Attributes:
  10855. - success
  10856. - o1
  10857. """
  10858. thrift_spec = (
  10859. (0, TType.STRING, 'success', None, None, ), # 0
  10860. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10861. )
  10862. def __init__(self, success=None, o1=None,):
  10863. self.success = success
  10864. self.o1 = o1
  10865. def read(self, iprot):
  10866. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10867. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10868. return
  10869. iprot.readStructBegin()
  10870. while True:
  10871. (fname, ftype, fid) = iprot.readFieldBegin()
  10872. if ftype == TType.STOP:
  10873. break
  10874. if fid == 0:
  10875. if ftype == TType.STRING:
  10876. self.success = iprot.readString();
  10877. else:
  10878. iprot.skip(ftype)
  10879. elif fid == 1:
  10880. if ftype == TType.STRUCT:
  10881. self.o1 = MetaException()
  10882. self.o1.read(iprot)
  10883. else:
  10884. iprot.skip(ftype)
  10885. else:
  10886. iprot.skip(ftype)
  10887. iprot.readFieldEnd()
  10888. iprot.readStructEnd()
  10889. def write(self, oprot):
  10890. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10891. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10892. return
  10893. oprot.writeStructBegin('get_delegation_token_result')
  10894. if self.success is not None:
  10895. oprot.writeFieldBegin('success', TType.STRING, 0)
  10896. oprot.writeString(self.success)
  10897. oprot.writeFieldEnd()
  10898. if self.o1 is not None:
  10899. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10900. self.o1.write(oprot)
  10901. oprot.writeFieldEnd()
  10902. oprot.writeFieldStop()
  10903. oprot.writeStructEnd()
  10904. def validate(self):
  10905. return
  10906. def __repr__(self):
  10907. L = ['%s=%r' % (key, value)
  10908. for key, value in self.__dict__.iteritems()]
  10909. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10910. def __eq__(self, other):
  10911. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10912. def __ne__(self, other):
  10913. return not (self == other)
  10914. class get_delegation_token_with_signature_args(object):
  10915. """
  10916. Attributes:
  10917. - renewer_kerberos_principal_name
  10918. - token_signature
  10919. """
  10920. thrift_spec = (
  10921. None, # 0
  10922. (1, TType.STRING, 'renewer_kerberos_principal_name', None, None, ), # 1
  10923. (2, TType.STRING, 'token_signature', None, None, ), # 2
  10924. )
  10925. def __init__(self, renewer_kerberos_principal_name=None, token_signature=None,):
  10926. self.renewer_kerberos_principal_name = renewer_kerberos_principal_name
  10927. self.token_signature = token_signature
  10928. def read(self, iprot):
  10929. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10930. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10931. return
  10932. iprot.readStructBegin()
  10933. while True:
  10934. (fname, ftype, fid) = iprot.readFieldBegin()
  10935. if ftype == TType.STOP:
  10936. break
  10937. if fid == 1:
  10938. if ftype == TType.STRING:
  10939. self.renewer_kerberos_principal_name = iprot.readString();
  10940. else:
  10941. iprot.skip(ftype)
  10942. elif fid == 2:
  10943. if ftype == TType.STRING:
  10944. self.token_signature = iprot.readString();
  10945. else:
  10946. iprot.skip(ftype)
  10947. else:
  10948. iprot.skip(ftype)
  10949. iprot.readFieldEnd()
  10950. iprot.readStructEnd()
  10951. def write(self, oprot):
  10952. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10953. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10954. return
  10955. oprot.writeStructBegin('get_delegation_token_with_signature_args')
  10956. if self.renewer_kerberos_principal_name is not None:
  10957. oprot.writeFieldBegin('renewer_kerberos_principal_name', TType.STRING, 1)
  10958. oprot.writeString(self.renewer_kerberos_principal_name)
  10959. oprot.writeFieldEnd()
  10960. if self.token_signature is not None:
  10961. oprot.writeFieldBegin('token_signature', TType.STRING, 2)
  10962. oprot.writeString(self.token_signature)
  10963. oprot.writeFieldEnd()
  10964. oprot.writeFieldStop()
  10965. oprot.writeStructEnd()
  10966. def validate(self):
  10967. return
  10968. def __repr__(self):
  10969. L = ['%s=%r' % (key, value)
  10970. for key, value in self.__dict__.iteritems()]
  10971. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10972. def __eq__(self, other):
  10973. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10974. def __ne__(self, other):
  10975. return not (self == other)
  10976. class get_delegation_token_with_signature_result(object):
  10977. """
  10978. Attributes:
  10979. - success
  10980. - o1
  10981. """
  10982. thrift_spec = (
  10983. (0, TType.STRING, 'success', None, None, ), # 0
  10984. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10985. )
  10986. def __init__(self, success=None, o1=None,):
  10987. self.success = success
  10988. self.o1 = o1
  10989. def read(self, iprot):
  10990. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10991. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10992. return
  10993. iprot.readStructBegin()
  10994. while True:
  10995. (fname, ftype, fid) = iprot.readFieldBegin()
  10996. if ftype == TType.STOP:
  10997. break
  10998. if fid == 0:
  10999. if ftype == TType.STRING:
  11000. self.success = iprot.readString();
  11001. else:
  11002. iprot.skip(ftype)
  11003. elif fid == 1:
  11004. if ftype == TType.STRUCT:
  11005. self.o1 = MetaException()
  11006. self.o1.read(iprot)
  11007. else:
  11008. iprot.skip(ftype)
  11009. else:
  11010. iprot.skip(ftype)
  11011. iprot.readFieldEnd()
  11012. iprot.readStructEnd()
  11013. def write(self, oprot):
  11014. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11015. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11016. return
  11017. oprot.writeStructBegin('get_delegation_token_with_signature_result')
  11018. if self.success is not None:
  11019. oprot.writeFieldBegin('success', TType.STRING, 0)
  11020. oprot.writeString(self.success)
  11021. oprot.writeFieldEnd()
  11022. if self.o1 is not None:
  11023. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11024. self.o1.write(oprot)
  11025. oprot.writeFieldEnd()
  11026. oprot.writeFieldStop()
  11027. oprot.writeStructEnd()
  11028. def validate(self):
  11029. return
  11030. def __repr__(self):
  11031. L = ['%s=%r' % (key, value)
  11032. for key, value in self.__dict__.iteritems()]
  11033. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11034. def __eq__(self, other):
  11035. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11036. def __ne__(self, other):
  11037. return not (self == other)
  11038. class renew_delegation_token_args(object):
  11039. """
  11040. Attributes:
  11041. - token_str_form
  11042. """
  11043. thrift_spec = (
  11044. None, # 0
  11045. (1, TType.STRING, 'token_str_form', None, None, ), # 1
  11046. )
  11047. def __init__(self, token_str_form=None,):
  11048. self.token_str_form = token_str_form
  11049. def read(self, iprot):
  11050. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11051. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11052. return
  11053. iprot.readStructBegin()
  11054. while True:
  11055. (fname, ftype, fid) = iprot.readFieldBegin()
  11056. if ftype == TType.STOP:
  11057. break
  11058. if fid == 1:
  11059. if ftype == TType.STRING:
  11060. self.token_str_form = iprot.readString();
  11061. else:
  11062. iprot.skip(ftype)
  11063. else:
  11064. iprot.skip(ftype)
  11065. iprot.readFieldEnd()
  11066. iprot.readStructEnd()
  11067. def write(self, oprot):
  11068. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11069. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11070. return
  11071. oprot.writeStructBegin('renew_delegation_token_args')
  11072. if self.token_str_form is not None:
  11073. oprot.writeFieldBegin('token_str_form', TType.STRING, 1)
  11074. oprot.writeString(self.token_str_form)
  11075. oprot.writeFieldEnd()
  11076. oprot.writeFieldStop()
  11077. oprot.writeStructEnd()
  11078. def validate(self):
  11079. return
  11080. def __repr__(self):
  11081. L = ['%s=%r' % (key, value)
  11082. for key, value in self.__dict__.iteritems()]
  11083. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11084. def __eq__(self, other):
  11085. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11086. def __ne__(self, other):
  11087. return not (self == other)
  11088. class renew_delegation_token_result(object):
  11089. """
  11090. Attributes:
  11091. - success
  11092. - o1
  11093. """
  11094. thrift_spec = (
  11095. (0, TType.I64, 'success', None, None, ), # 0
  11096. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  11097. )
  11098. def __init__(self, success=None, o1=None,):
  11099. self.success = success
  11100. self.o1 = o1
  11101. def read(self, iprot):
  11102. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11103. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11104. return
  11105. iprot.readStructBegin()
  11106. while True:
  11107. (fname, ftype, fid) = iprot.readFieldBegin()
  11108. if ftype == TType.STOP:
  11109. break
  11110. if fid == 0:
  11111. if ftype == TType.I64:
  11112. self.success = iprot.readI64();
  11113. else:
  11114. iprot.skip(ftype)
  11115. elif fid == 1:
  11116. if ftype == TType.STRUCT:
  11117. self.o1 = MetaException()
  11118. self.o1.read(iprot)
  11119. else:
  11120. iprot.skip(ftype)
  11121. else:
  11122. iprot.skip(ftype)
  11123. iprot.readFieldEnd()
  11124. iprot.readStructEnd()
  11125. def write(self, oprot):
  11126. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11127. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11128. return
  11129. oprot.writeStructBegin('renew_delegation_token_result')
  11130. if self.success is not None:
  11131. oprot.writeFieldBegin('success', TType.I64, 0)
  11132. oprot.writeI64(self.success)
  11133. oprot.writeFieldEnd()
  11134. if self.o1 is not None:
  11135. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11136. self.o1.write(oprot)
  11137. oprot.writeFieldEnd()
  11138. oprot.writeFieldStop()
  11139. oprot.writeStructEnd()
  11140. def validate(self):
  11141. return
  11142. def __repr__(self):
  11143. L = ['%s=%r' % (key, value)
  11144. for key, value in self.__dict__.iteritems()]
  11145. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11146. def __eq__(self, other):
  11147. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11148. def __ne__(self, other):
  11149. return not (self == other)
  11150. class cancel_delegation_token_args(object):
  11151. """
  11152. Attributes:
  11153. - token_str_form
  11154. """
  11155. thrift_spec = (
  11156. None, # 0
  11157. (1, TType.STRING, 'token_str_form', None, None, ), # 1
  11158. )
  11159. def __init__(self, token_str_form=None,):
  11160. self.token_str_form = token_str_form
  11161. def read(self, iprot):
  11162. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11163. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11164. return
  11165. iprot.readStructBegin()
  11166. while True:
  11167. (fname, ftype, fid) = iprot.readFieldBegin()
  11168. if ftype == TType.STOP:
  11169. break
  11170. if fid == 1:
  11171. if ftype == TType.STRING:
  11172. self.token_str_form = iprot.readString();
  11173. else:
  11174. iprot.skip(ftype)
  11175. else:
  11176. iprot.skip(ftype)
  11177. iprot.readFieldEnd()
  11178. iprot.readStructEnd()
  11179. def write(self, oprot):
  11180. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11181. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11182. return
  11183. oprot.writeStructBegin('cancel_delegation_token_args')
  11184. if self.token_str_form is not None:
  11185. oprot.writeFieldBegin('token_str_form', TType.STRING, 1)
  11186. oprot.writeString(self.token_str_form)
  11187. oprot.writeFieldEnd()
  11188. oprot.writeFieldStop()
  11189. oprot.writeStructEnd()
  11190. def validate(self):
  11191. return
  11192. def __repr__(self):
  11193. L = ['%s=%r' % (key, value)
  11194. for key, value in self.__dict__.iteritems()]
  11195. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11196. def __eq__(self, other):
  11197. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11198. def __ne__(self, other):
  11199. return not (self == other)
  11200. class cancel_delegation_token_result(object):
  11201. """
  11202. Attributes:
  11203. - o1
  11204. """
  11205. thrift_spec = (
  11206. None, # 0
  11207. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  11208. )
  11209. def __init__(self, o1=None,):
  11210. self.o1 = o1
  11211. def read(self, iprot):
  11212. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11213. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11214. return
  11215. iprot.readStructBegin()
  11216. while True:
  11217. (fname, ftype, fid) = iprot.readFieldBegin()
  11218. if ftype == TType.STOP:
  11219. break
  11220. if fid == 1:
  11221. if ftype == TType.STRUCT:
  11222. self.o1 = MetaException()
  11223. self.o1.read(iprot)
  11224. else:
  11225. iprot.skip(ftype)
  11226. else:
  11227. iprot.skip(ftype)
  11228. iprot.readFieldEnd()
  11229. iprot.readStructEnd()
  11230. def write(self, oprot):
  11231. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11232. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11233. return
  11234. oprot.writeStructBegin('cancel_delegation_token_result')
  11235. if self.o1 is not None:
  11236. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11237. self.o1.write(oprot)
  11238. oprot.writeFieldEnd()
  11239. oprot.writeFieldStop()
  11240. oprot.writeStructEnd()
  11241. def validate(self):
  11242. return
  11243. def __repr__(self):
  11244. L = ['%s=%r' % (key, value)
  11245. for key, value in self.__dict__.iteritems()]
  11246. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11247. def __eq__(self, other):
  11248. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11249. def __ne__(self, other):
  11250. return not (self == other)