ThriftHiveMetastore.py 390 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680
  1. #
  2. # Autogenerated by Thrift Compiler (0.7.0)
  3. #
  4. # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5. #
  6. from thrift.Thrift import *
  7. import fb303.FacebookService
  8. from ttypes import *
  9. from thrift.Thrift import TProcessor
  10. from thrift.transport import TTransport
  11. from thrift.protocol import TBinaryProtocol, TProtocol
  12. try:
  13. from thrift.protocol import fastbinary
  14. except:
  15. fastbinary = None
  16. class Iface(fb303.FacebookService.Iface):
  17. """
  18. This interface is live.
  19. """
  20. def create_database(self, database):
  21. """
  22. Parameters:
  23. - database
  24. """
  25. pass
  26. def get_database(self, name):
  27. """
  28. Parameters:
  29. - name
  30. """
  31. pass
  32. def drop_database(self, name, deleteData):
  33. """
  34. Parameters:
  35. - name
  36. - deleteData
  37. """
  38. pass
  39. def get_databases(self, pattern):
  40. """
  41. Parameters:
  42. - pattern
  43. """
  44. pass
  45. def get_all_databases(self, ):
  46. pass
  47. def alter_database(self, dbname, db):
  48. """
  49. Parameters:
  50. - dbname
  51. - db
  52. """
  53. pass
  54. def get_type(self, name):
  55. """
  56. Parameters:
  57. - name
  58. """
  59. pass
  60. def create_type(self, type):
  61. """
  62. Parameters:
  63. - type
  64. """
  65. pass
  66. def drop_type(self, type):
  67. """
  68. Parameters:
  69. - type
  70. """
  71. pass
  72. def get_type_all(self, name):
  73. """
  74. Parameters:
  75. - name
  76. """
  77. pass
  78. def get_fields(self, db_name, table_name):
  79. """
  80. Parameters:
  81. - db_name
  82. - table_name
  83. """
  84. pass
  85. def get_schema(self, db_name, table_name):
  86. """
  87. Parameters:
  88. - db_name
  89. - table_name
  90. """
  91. pass
  92. def create_table(self, tbl):
  93. """
  94. Parameters:
  95. - tbl
  96. """
  97. pass
  98. def drop_table(self, dbname, name, deleteData):
  99. """
  100. Parameters:
  101. - dbname
  102. - name
  103. - deleteData
  104. """
  105. pass
  106. def get_tables(self, db_name, pattern):
  107. """
  108. Parameters:
  109. - db_name
  110. - pattern
  111. """
  112. pass
  113. def get_all_tables(self, db_name):
  114. """
  115. Parameters:
  116. - db_name
  117. """
  118. pass
  119. def get_table(self, dbname, tbl_name):
  120. """
  121. Parameters:
  122. - dbname
  123. - tbl_name
  124. """
  125. pass
  126. def alter_table(self, dbname, tbl_name, new_tbl):
  127. """
  128. Parameters:
  129. - dbname
  130. - tbl_name
  131. - new_tbl
  132. """
  133. pass
  134. def add_partition(self, new_part):
  135. """
  136. Parameters:
  137. - new_part
  138. """
  139. pass
  140. def append_partition(self, db_name, tbl_name, part_vals):
  141. """
  142. Parameters:
  143. - db_name
  144. - tbl_name
  145. - part_vals
  146. """
  147. pass
  148. def append_partition_by_name(self, db_name, tbl_name, part_name):
  149. """
  150. Parameters:
  151. - db_name
  152. - tbl_name
  153. - part_name
  154. """
  155. pass
  156. def drop_partition(self, db_name, tbl_name, part_vals, deleteData):
  157. """
  158. Parameters:
  159. - db_name
  160. - tbl_name
  161. - part_vals
  162. - deleteData
  163. """
  164. pass
  165. def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
  166. """
  167. Parameters:
  168. - db_name
  169. - tbl_name
  170. - part_name
  171. - deleteData
  172. """
  173. pass
  174. def get_partition(self, db_name, tbl_name, part_vals):
  175. """
  176. Parameters:
  177. - db_name
  178. - tbl_name
  179. - part_vals
  180. """
  181. pass
  182. def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
  183. """
  184. Parameters:
  185. - db_name
  186. - tbl_name
  187. - part_vals
  188. - user_name
  189. - group_names
  190. """
  191. pass
  192. def get_partition_by_name(self, db_name, tbl_name, part_name):
  193. """
  194. Parameters:
  195. - db_name
  196. - tbl_name
  197. - part_name
  198. """
  199. pass
  200. def get_partitions(self, db_name, tbl_name, max_parts):
  201. """
  202. Parameters:
  203. - db_name
  204. - tbl_name
  205. - max_parts
  206. """
  207. pass
  208. def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
  209. """
  210. Parameters:
  211. - db_name
  212. - tbl_name
  213. - max_parts
  214. - user_name
  215. - group_names
  216. """
  217. pass
  218. def get_partition_names(self, db_name, tbl_name, max_parts):
  219. """
  220. Parameters:
  221. - db_name
  222. - tbl_name
  223. - max_parts
  224. """
  225. pass
  226. def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
  227. """
  228. Parameters:
  229. - db_name
  230. - tbl_name
  231. - part_vals
  232. - max_parts
  233. """
  234. pass
  235. def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
  236. """
  237. Parameters:
  238. - db_name
  239. - tbl_name
  240. - part_vals
  241. - max_parts
  242. - user_name
  243. - group_names
  244. """
  245. pass
  246. def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
  247. """
  248. Parameters:
  249. - db_name
  250. - tbl_name
  251. - part_vals
  252. - max_parts
  253. """
  254. pass
  255. def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
  256. """
  257. Parameters:
  258. - db_name
  259. - tbl_name
  260. - filter
  261. - max_parts
  262. """
  263. pass
  264. def alter_partition(self, db_name, tbl_name, new_part):
  265. """
  266. Parameters:
  267. - db_name
  268. - tbl_name
  269. - new_part
  270. """
  271. pass
  272. def get_config_value(self, name, defaultValue):
  273. """
  274. Parameters:
  275. - name
  276. - defaultValue
  277. """
  278. pass
  279. def partition_name_to_vals(self, part_name):
  280. """
  281. Parameters:
  282. - part_name
  283. """
  284. pass
  285. def partition_name_to_spec(self, part_name):
  286. """
  287. Parameters:
  288. - part_name
  289. """
  290. pass
  291. def add_index(self, new_index, index_table):
  292. """
  293. Parameters:
  294. - new_index
  295. - index_table
  296. """
  297. pass
  298. def alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
  299. """
  300. Parameters:
  301. - dbname
  302. - base_tbl_name
  303. - idx_name
  304. - new_idx
  305. """
  306. pass
  307. def drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
  308. """
  309. Parameters:
  310. - db_name
  311. - tbl_name
  312. - index_name
  313. - deleteData
  314. """
  315. pass
  316. def get_index_by_name(self, db_name, tbl_name, index_name):
  317. """
  318. Parameters:
  319. - db_name
  320. - tbl_name
  321. - index_name
  322. """
  323. pass
  324. def get_indexes(self, db_name, tbl_name, max_indexes):
  325. """
  326. Parameters:
  327. - db_name
  328. - tbl_name
  329. - max_indexes
  330. """
  331. pass
  332. def get_index_names(self, db_name, tbl_name, max_indexes):
  333. """
  334. Parameters:
  335. - db_name
  336. - tbl_name
  337. - max_indexes
  338. """
  339. pass
  340. def create_role(self, role):
  341. """
  342. Parameters:
  343. - role
  344. """
  345. pass
  346. def drop_role(self, role_name):
  347. """
  348. Parameters:
  349. - role_name
  350. """
  351. pass
  352. def get_role_names(self, ):
  353. pass
  354. def grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
  355. """
  356. Parameters:
  357. - role_name
  358. - principal_name
  359. - principal_type
  360. - grantor
  361. - grantorType
  362. - grant_option
  363. """
  364. pass
  365. def revoke_role(self, role_name, principal_name, principal_type):
  366. """
  367. Parameters:
  368. - role_name
  369. - principal_name
  370. - principal_type
  371. """
  372. pass
  373. def list_roles(self, principal_name, principal_type):
  374. """
  375. Parameters:
  376. - principal_name
  377. - principal_type
  378. """
  379. pass
  380. def get_privilege_set(self, hiveObject, user_name, group_names):
  381. """
  382. Parameters:
  383. - hiveObject
  384. - user_name
  385. - group_names
  386. """
  387. pass
  388. def list_privileges(self, principal_name, principal_type, hiveObject):
  389. """
  390. Parameters:
  391. - principal_name
  392. - principal_type
  393. - hiveObject
  394. """
  395. pass
  396. def grant_privileges(self, privileges):
  397. """
  398. Parameters:
  399. - privileges
  400. """
  401. pass
  402. def revoke_privileges(self, privileges):
  403. """
  404. Parameters:
  405. - privileges
  406. """
  407. pass
  408. def get_delegation_token(self, renewer_kerberos_principal_name):
  409. """
  410. Parameters:
  411. - renewer_kerberos_principal_name
  412. """
  413. pass
  414. def get_delegation_token_with_signature(self, renewer_kerberos_principal_name, token_signature):
  415. """
  416. Parameters:
  417. - renewer_kerberos_principal_name
  418. - token_signature
  419. """
  420. pass
  421. def renew_delegation_token(self, token_str_form):
  422. """
  423. Parameters:
  424. - token_str_form
  425. """
  426. pass
  427. def cancel_delegation_token(self, token_str_form):
  428. """
  429. Parameters:
  430. - token_str_form
  431. """
  432. pass
  433. class Client(fb303.FacebookService.Client, Iface):
  434. """
  435. This interface is live.
  436. """
  437. def __init__(self, iprot, oprot=None):
  438. fb303.FacebookService.Client.__init__(self, iprot, oprot)
  439. def create_database(self, database):
  440. """
  441. Parameters:
  442. - database
  443. """
  444. self.send_create_database(database)
  445. self.recv_create_database()
  446. def send_create_database(self, database):
  447. self._oprot.writeMessageBegin('create_database', TMessageType.CALL, self._seqid)
  448. args = create_database_args()
  449. args.database = database
  450. args.write(self._oprot)
  451. self._oprot.writeMessageEnd()
  452. self._oprot.trans.flush()
  453. def recv_create_database(self, ):
  454. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  455. if mtype == TMessageType.EXCEPTION:
  456. x = TApplicationException()
  457. x.read(self._iprot)
  458. self._iprot.readMessageEnd()
  459. raise x
  460. result = create_database_result()
  461. result.read(self._iprot)
  462. self._iprot.readMessageEnd()
  463. if result.o1 is not None:
  464. raise result.o1
  465. if result.o2 is not None:
  466. raise result.o2
  467. if result.o3 is not None:
  468. raise result.o3
  469. return
  470. def get_database(self, name):
  471. """
  472. Parameters:
  473. - name
  474. """
  475. self.send_get_database(name)
  476. return self.recv_get_database()
  477. def send_get_database(self, name):
  478. self._oprot.writeMessageBegin('get_database', TMessageType.CALL, self._seqid)
  479. args = get_database_args()
  480. args.name = name
  481. args.write(self._oprot)
  482. self._oprot.writeMessageEnd()
  483. self._oprot.trans.flush()
  484. def recv_get_database(self, ):
  485. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  486. if mtype == TMessageType.EXCEPTION:
  487. x = TApplicationException()
  488. x.read(self._iprot)
  489. self._iprot.readMessageEnd()
  490. raise x
  491. result = get_database_result()
  492. result.read(self._iprot)
  493. self._iprot.readMessageEnd()
  494. if result.success is not None:
  495. return result.success
  496. if result.o1 is not None:
  497. raise result.o1
  498. if result.o2 is not None:
  499. raise result.o2
  500. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result");
  501. def drop_database(self, name, deleteData):
  502. """
  503. Parameters:
  504. - name
  505. - deleteData
  506. """
  507. self.send_drop_database(name, deleteData)
  508. self.recv_drop_database()
  509. def send_drop_database(self, name, deleteData):
  510. self._oprot.writeMessageBegin('drop_database', TMessageType.CALL, self._seqid)
  511. args = drop_database_args()
  512. args.name = name
  513. args.deleteData = deleteData
  514. args.write(self._oprot)
  515. self._oprot.writeMessageEnd()
  516. self._oprot.trans.flush()
  517. def recv_drop_database(self, ):
  518. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  519. if mtype == TMessageType.EXCEPTION:
  520. x = TApplicationException()
  521. x.read(self._iprot)
  522. self._iprot.readMessageEnd()
  523. raise x
  524. result = drop_database_result()
  525. result.read(self._iprot)
  526. self._iprot.readMessageEnd()
  527. if result.o1 is not None:
  528. raise result.o1
  529. if result.o2 is not None:
  530. raise result.o2
  531. if result.o3 is not None:
  532. raise result.o3
  533. return
  534. def get_databases(self, pattern):
  535. """
  536. Parameters:
  537. - pattern
  538. """
  539. self.send_get_databases(pattern)
  540. return self.recv_get_databases()
  541. def send_get_databases(self, pattern):
  542. self._oprot.writeMessageBegin('get_databases', TMessageType.CALL, self._seqid)
  543. args = get_databases_args()
  544. args.pattern = pattern
  545. args.write(self._oprot)
  546. self._oprot.writeMessageEnd()
  547. self._oprot.trans.flush()
  548. def recv_get_databases(self, ):
  549. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  550. if mtype == TMessageType.EXCEPTION:
  551. x = TApplicationException()
  552. x.read(self._iprot)
  553. self._iprot.readMessageEnd()
  554. raise x
  555. result = get_databases_result()
  556. result.read(self._iprot)
  557. self._iprot.readMessageEnd()
  558. if result.success is not None:
  559. return result.success
  560. if result.o1 is not None:
  561. raise result.o1
  562. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result");
  563. def get_all_databases(self, ):
  564. self.send_get_all_databases()
  565. return self.recv_get_all_databases()
  566. def send_get_all_databases(self, ):
  567. self._oprot.writeMessageBegin('get_all_databases', TMessageType.CALL, self._seqid)
  568. args = get_all_databases_args()
  569. args.write(self._oprot)
  570. self._oprot.writeMessageEnd()
  571. self._oprot.trans.flush()
  572. def recv_get_all_databases(self, ):
  573. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  574. if mtype == TMessageType.EXCEPTION:
  575. x = TApplicationException()
  576. x.read(self._iprot)
  577. self._iprot.readMessageEnd()
  578. raise x
  579. result = get_all_databases_result()
  580. result.read(self._iprot)
  581. self._iprot.readMessageEnd()
  582. if result.success is not None:
  583. return result.success
  584. if result.o1 is not None:
  585. raise result.o1
  586. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result");
  587. def alter_database(self, dbname, db):
  588. """
  589. Parameters:
  590. - dbname
  591. - db
  592. """
  593. self.send_alter_database(dbname, db)
  594. self.recv_alter_database()
  595. def send_alter_database(self, dbname, db):
  596. self._oprot.writeMessageBegin('alter_database', TMessageType.CALL, self._seqid)
  597. args = alter_database_args()
  598. args.dbname = dbname
  599. args.db = db
  600. args.write(self._oprot)
  601. self._oprot.writeMessageEnd()
  602. self._oprot.trans.flush()
  603. def recv_alter_database(self, ):
  604. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  605. if mtype == TMessageType.EXCEPTION:
  606. x = TApplicationException()
  607. x.read(self._iprot)
  608. self._iprot.readMessageEnd()
  609. raise x
  610. result = alter_database_result()
  611. result.read(self._iprot)
  612. self._iprot.readMessageEnd()
  613. if result.o1 is not None:
  614. raise result.o1
  615. if result.o2 is not None:
  616. raise result.o2
  617. return
  618. def get_type(self, name):
  619. """
  620. Parameters:
  621. - name
  622. """
  623. self.send_get_type(name)
  624. return self.recv_get_type()
  625. def send_get_type(self, name):
  626. self._oprot.writeMessageBegin('get_type', TMessageType.CALL, self._seqid)
  627. args = get_type_args()
  628. args.name = name
  629. args.write(self._oprot)
  630. self._oprot.writeMessageEnd()
  631. self._oprot.trans.flush()
  632. def recv_get_type(self, ):
  633. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  634. if mtype == TMessageType.EXCEPTION:
  635. x = TApplicationException()
  636. x.read(self._iprot)
  637. self._iprot.readMessageEnd()
  638. raise x
  639. result = get_type_result()
  640. result.read(self._iprot)
  641. self._iprot.readMessageEnd()
  642. if result.success is not None:
  643. return result.success
  644. if result.o1 is not None:
  645. raise result.o1
  646. if result.o2 is not None:
  647. raise result.o2
  648. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type failed: unknown result");
  649. def create_type(self, type):
  650. """
  651. Parameters:
  652. - type
  653. """
  654. self.send_create_type(type)
  655. return self.recv_create_type()
  656. def send_create_type(self, type):
  657. self._oprot.writeMessageBegin('create_type', TMessageType.CALL, self._seqid)
  658. args = create_type_args()
  659. args.type = type
  660. args.write(self._oprot)
  661. self._oprot.writeMessageEnd()
  662. self._oprot.trans.flush()
  663. def recv_create_type(self, ):
  664. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  665. if mtype == TMessageType.EXCEPTION:
  666. x = TApplicationException()
  667. x.read(self._iprot)
  668. self._iprot.readMessageEnd()
  669. raise x
  670. result = create_type_result()
  671. result.read(self._iprot)
  672. self._iprot.readMessageEnd()
  673. if result.success is not None:
  674. return result.success
  675. if result.o1 is not None:
  676. raise result.o1
  677. if result.o2 is not None:
  678. raise result.o2
  679. if result.o3 is not None:
  680. raise result.o3
  681. raise TApplicationException(TApplicationException.MISSING_RESULT, "create_type failed: unknown result");
  682. def drop_type(self, type):
  683. """
  684. Parameters:
  685. - type
  686. """
  687. self.send_drop_type(type)
  688. return self.recv_drop_type()
  689. def send_drop_type(self, type):
  690. self._oprot.writeMessageBegin('drop_type', TMessageType.CALL, self._seqid)
  691. args = drop_type_args()
  692. args.type = type
  693. args.write(self._oprot)
  694. self._oprot.writeMessageEnd()
  695. self._oprot.trans.flush()
  696. def recv_drop_type(self, ):
  697. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  698. if mtype == TMessageType.EXCEPTION:
  699. x = TApplicationException()
  700. x.read(self._iprot)
  701. self._iprot.readMessageEnd()
  702. raise x
  703. result = drop_type_result()
  704. result.read(self._iprot)
  705. self._iprot.readMessageEnd()
  706. if result.success is not None:
  707. return result.success
  708. if result.o1 is not None:
  709. raise result.o1
  710. if result.o2 is not None:
  711. raise result.o2
  712. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_type failed: unknown result");
  713. def get_type_all(self, name):
  714. """
  715. Parameters:
  716. - name
  717. """
  718. self.send_get_type_all(name)
  719. return self.recv_get_type_all()
  720. def send_get_type_all(self, name):
  721. self._oprot.writeMessageBegin('get_type_all', TMessageType.CALL, self._seqid)
  722. args = get_type_all_args()
  723. args.name = name
  724. args.write(self._oprot)
  725. self._oprot.writeMessageEnd()
  726. self._oprot.trans.flush()
  727. def recv_get_type_all(self, ):
  728. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  729. if mtype == TMessageType.EXCEPTION:
  730. x = TApplicationException()
  731. x.read(self._iprot)
  732. self._iprot.readMessageEnd()
  733. raise x
  734. result = get_type_all_result()
  735. result.read(self._iprot)
  736. self._iprot.readMessageEnd()
  737. if result.success is not None:
  738. return result.success
  739. if result.o2 is not None:
  740. raise result.o2
  741. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result");
  742. def get_fields(self, db_name, table_name):
  743. """
  744. Parameters:
  745. - db_name
  746. - table_name
  747. """
  748. self.send_get_fields(db_name, table_name)
  749. return self.recv_get_fields()
  750. def send_get_fields(self, db_name, table_name):
  751. self._oprot.writeMessageBegin('get_fields', TMessageType.CALL, self._seqid)
  752. args = get_fields_args()
  753. args.db_name = db_name
  754. args.table_name = table_name
  755. args.write(self._oprot)
  756. self._oprot.writeMessageEnd()
  757. self._oprot.trans.flush()
  758. def recv_get_fields(self, ):
  759. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  760. if mtype == TMessageType.EXCEPTION:
  761. x = TApplicationException()
  762. x.read(self._iprot)
  763. self._iprot.readMessageEnd()
  764. raise x
  765. result = get_fields_result()
  766. result.read(self._iprot)
  767. self._iprot.readMessageEnd()
  768. if result.success is not None:
  769. return result.success
  770. if result.o1 is not None:
  771. raise result.o1
  772. if result.o2 is not None:
  773. raise result.o2
  774. if result.o3 is not None:
  775. raise result.o3
  776. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields failed: unknown result");
  777. def get_schema(self, db_name, table_name):
  778. """
  779. Parameters:
  780. - db_name
  781. - table_name
  782. """
  783. self.send_get_schema(db_name, table_name)
  784. return self.recv_get_schema()
  785. def send_get_schema(self, db_name, table_name):
  786. self._oprot.writeMessageBegin('get_schema', TMessageType.CALL, self._seqid)
  787. args = get_schema_args()
  788. args.db_name = db_name
  789. args.table_name = table_name
  790. args.write(self._oprot)
  791. self._oprot.writeMessageEnd()
  792. self._oprot.trans.flush()
  793. def recv_get_schema(self, ):
  794. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  795. if mtype == TMessageType.EXCEPTION:
  796. x = TApplicationException()
  797. x.read(self._iprot)
  798. self._iprot.readMessageEnd()
  799. raise x
  800. result = get_schema_result()
  801. result.read(self._iprot)
  802. self._iprot.readMessageEnd()
  803. if result.success is not None:
  804. return result.success
  805. if result.o1 is not None:
  806. raise result.o1
  807. if result.o2 is not None:
  808. raise result.o2
  809. if result.o3 is not None:
  810. raise result.o3
  811. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema failed: unknown result");
  812. def create_table(self, tbl):
  813. """
  814. Parameters:
  815. - tbl
  816. """
  817. self.send_create_table(tbl)
  818. self.recv_create_table()
  819. def send_create_table(self, tbl):
  820. self._oprot.writeMessageBegin('create_table', TMessageType.CALL, self._seqid)
  821. args = create_table_args()
  822. args.tbl = tbl
  823. args.write(self._oprot)
  824. self._oprot.writeMessageEnd()
  825. self._oprot.trans.flush()
  826. def recv_create_table(self, ):
  827. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  828. if mtype == TMessageType.EXCEPTION:
  829. x = TApplicationException()
  830. x.read(self._iprot)
  831. self._iprot.readMessageEnd()
  832. raise x
  833. result = create_table_result()
  834. result.read(self._iprot)
  835. self._iprot.readMessageEnd()
  836. if result.o1 is not None:
  837. raise result.o1
  838. if result.o2 is not None:
  839. raise result.o2
  840. if result.o3 is not None:
  841. raise result.o3
  842. if result.o4 is not None:
  843. raise result.o4
  844. return
  845. def drop_table(self, dbname, name, deleteData):
  846. """
  847. Parameters:
  848. - dbname
  849. - name
  850. - deleteData
  851. """
  852. self.send_drop_table(dbname, name, deleteData)
  853. self.recv_drop_table()
  854. def send_drop_table(self, dbname, name, deleteData):
  855. self._oprot.writeMessageBegin('drop_table', TMessageType.CALL, self._seqid)
  856. args = drop_table_args()
  857. args.dbname = dbname
  858. args.name = name
  859. args.deleteData = deleteData
  860. args.write(self._oprot)
  861. self._oprot.writeMessageEnd()
  862. self._oprot.trans.flush()
  863. def recv_drop_table(self, ):
  864. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  865. if mtype == TMessageType.EXCEPTION:
  866. x = TApplicationException()
  867. x.read(self._iprot)
  868. self._iprot.readMessageEnd()
  869. raise x
  870. result = drop_table_result()
  871. result.read(self._iprot)
  872. self._iprot.readMessageEnd()
  873. if result.o1 is not None:
  874. raise result.o1
  875. if result.o3 is not None:
  876. raise result.o3
  877. return
  878. def get_tables(self, db_name, pattern):
  879. """
  880. Parameters:
  881. - db_name
  882. - pattern
  883. """
  884. self.send_get_tables(db_name, pattern)
  885. return self.recv_get_tables()
  886. def send_get_tables(self, db_name, pattern):
  887. self._oprot.writeMessageBegin('get_tables', TMessageType.CALL, self._seqid)
  888. args = get_tables_args()
  889. args.db_name = db_name
  890. args.pattern = pattern
  891. args.write(self._oprot)
  892. self._oprot.writeMessageEnd()
  893. self._oprot.trans.flush()
  894. def recv_get_tables(self, ):
  895. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  896. if mtype == TMessageType.EXCEPTION:
  897. x = TApplicationException()
  898. x.read(self._iprot)
  899. self._iprot.readMessageEnd()
  900. raise x
  901. result = get_tables_result()
  902. result.read(self._iprot)
  903. self._iprot.readMessageEnd()
  904. if result.success is not None:
  905. return result.success
  906. if result.o1 is not None:
  907. raise result.o1
  908. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result");
  909. def get_all_tables(self, db_name):
  910. """
  911. Parameters:
  912. - db_name
  913. """
  914. self.send_get_all_tables(db_name)
  915. return self.recv_get_all_tables()
  916. def send_get_all_tables(self, db_name):
  917. self._oprot.writeMessageBegin('get_all_tables', TMessageType.CALL, self._seqid)
  918. args = get_all_tables_args()
  919. args.db_name = db_name
  920. args.write(self._oprot)
  921. self._oprot.writeMessageEnd()
  922. self._oprot.trans.flush()
  923. def recv_get_all_tables(self, ):
  924. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  925. if mtype == TMessageType.EXCEPTION:
  926. x = TApplicationException()
  927. x.read(self._iprot)
  928. self._iprot.readMessageEnd()
  929. raise x
  930. result = get_all_tables_result()
  931. result.read(self._iprot)
  932. self._iprot.readMessageEnd()
  933. if result.success is not None:
  934. return result.success
  935. if result.o1 is not None:
  936. raise result.o1
  937. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result");
  938. def get_table(self, dbname, tbl_name):
  939. """
  940. Parameters:
  941. - dbname
  942. - tbl_name
  943. """
  944. self.send_get_table(dbname, tbl_name)
  945. return self.recv_get_table()
  946. def send_get_table(self, dbname, tbl_name):
  947. self._oprot.writeMessageBegin('get_table', TMessageType.CALL, self._seqid)
  948. args = get_table_args()
  949. args.dbname = dbname
  950. args.tbl_name = tbl_name
  951. args.write(self._oprot)
  952. self._oprot.writeMessageEnd()
  953. self._oprot.trans.flush()
  954. def recv_get_table(self, ):
  955. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  956. if mtype == TMessageType.EXCEPTION:
  957. x = TApplicationException()
  958. x.read(self._iprot)
  959. self._iprot.readMessageEnd()
  960. raise x
  961. result = get_table_result()
  962. result.read(self._iprot)
  963. self._iprot.readMessageEnd()
  964. if result.success is not None:
  965. return result.success
  966. if result.o1 is not None:
  967. raise result.o1
  968. if result.o2 is not None:
  969. raise result.o2
  970. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table failed: unknown result");
  971. def alter_table(self, dbname, tbl_name, new_tbl):
  972. """
  973. Parameters:
  974. - dbname
  975. - tbl_name
  976. - new_tbl
  977. """
  978. self.send_alter_table(dbname, tbl_name, new_tbl)
  979. self.recv_alter_table()
  980. def send_alter_table(self, dbname, tbl_name, new_tbl):
  981. self._oprot.writeMessageBegin('alter_table', TMessageType.CALL, self._seqid)
  982. args = alter_table_args()
  983. args.dbname = dbname
  984. args.tbl_name = tbl_name
  985. args.new_tbl = new_tbl
  986. args.write(self._oprot)
  987. self._oprot.writeMessageEnd()
  988. self._oprot.trans.flush()
  989. def recv_alter_table(self, ):
  990. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  991. if mtype == TMessageType.EXCEPTION:
  992. x = TApplicationException()
  993. x.read(self._iprot)
  994. self._iprot.readMessageEnd()
  995. raise x
  996. result = alter_table_result()
  997. result.read(self._iprot)
  998. self._iprot.readMessageEnd()
  999. if result.o1 is not None:
  1000. raise result.o1
  1001. if result.o2 is not None:
  1002. raise result.o2
  1003. return
  1004. def add_partition(self, new_part):
  1005. """
  1006. Parameters:
  1007. - new_part
  1008. """
  1009. self.send_add_partition(new_part)
  1010. return self.recv_add_partition()
  1011. def send_add_partition(self, new_part):
  1012. self._oprot.writeMessageBegin('add_partition', TMessageType.CALL, self._seqid)
  1013. args = add_partition_args()
  1014. args.new_part = new_part
  1015. args.write(self._oprot)
  1016. self._oprot.writeMessageEnd()
  1017. self._oprot.trans.flush()
  1018. def recv_add_partition(self, ):
  1019. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1020. if mtype == TMessageType.EXCEPTION:
  1021. x = TApplicationException()
  1022. x.read(self._iprot)
  1023. self._iprot.readMessageEnd()
  1024. raise x
  1025. result = add_partition_result()
  1026. result.read(self._iprot)
  1027. self._iprot.readMessageEnd()
  1028. if result.success is not None:
  1029. return result.success
  1030. if result.o1 is not None:
  1031. raise result.o1
  1032. if result.o2 is not None:
  1033. raise result.o2
  1034. if result.o3 is not None:
  1035. raise result.o3
  1036. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition failed: unknown result");
  1037. def append_partition(self, db_name, tbl_name, part_vals):
  1038. """
  1039. Parameters:
  1040. - db_name
  1041. - tbl_name
  1042. - part_vals
  1043. """
  1044. self.send_append_partition(db_name, tbl_name, part_vals)
  1045. return self.recv_append_partition()
  1046. def send_append_partition(self, db_name, tbl_name, part_vals):
  1047. self._oprot.writeMessageBegin('append_partition', TMessageType.CALL, self._seqid)
  1048. args = append_partition_args()
  1049. args.db_name = db_name
  1050. args.tbl_name = tbl_name
  1051. args.part_vals = part_vals
  1052. args.write(self._oprot)
  1053. self._oprot.writeMessageEnd()
  1054. self._oprot.trans.flush()
  1055. def recv_append_partition(self, ):
  1056. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1057. if mtype == TMessageType.EXCEPTION:
  1058. x = TApplicationException()
  1059. x.read(self._iprot)
  1060. self._iprot.readMessageEnd()
  1061. raise x
  1062. result = append_partition_result()
  1063. result.read(self._iprot)
  1064. self._iprot.readMessageEnd()
  1065. if result.success is not None:
  1066. return result.success
  1067. if result.o1 is not None:
  1068. raise result.o1
  1069. if result.o2 is not None:
  1070. raise result.o2
  1071. if result.o3 is not None:
  1072. raise result.o3
  1073. raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition failed: unknown result");
  1074. def append_partition_by_name(self, db_name, tbl_name, part_name):
  1075. """
  1076. Parameters:
  1077. - db_name
  1078. - tbl_name
  1079. - part_name
  1080. """
  1081. self.send_append_partition_by_name(db_name, tbl_name, part_name)
  1082. return self.recv_append_partition_by_name()
  1083. def send_append_partition_by_name(self, db_name, tbl_name, part_name):
  1084. self._oprot.writeMessageBegin('append_partition_by_name', TMessageType.CALL, self._seqid)
  1085. args = append_partition_by_name_args()
  1086. args.db_name = db_name
  1087. args.tbl_name = tbl_name
  1088. args.part_name = part_name
  1089. args.write(self._oprot)
  1090. self._oprot.writeMessageEnd()
  1091. self._oprot.trans.flush()
  1092. def recv_append_partition_by_name(self, ):
  1093. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1094. if mtype == TMessageType.EXCEPTION:
  1095. x = TApplicationException()
  1096. x.read(self._iprot)
  1097. self._iprot.readMessageEnd()
  1098. raise x
  1099. result = append_partition_by_name_result()
  1100. result.read(self._iprot)
  1101. self._iprot.readMessageEnd()
  1102. if result.success is not None:
  1103. return result.success
  1104. if result.o1 is not None:
  1105. raise result.o1
  1106. if result.o2 is not None:
  1107. raise result.o2
  1108. if result.o3 is not None:
  1109. raise result.o3
  1110. raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name failed: unknown result");
  1111. def drop_partition(self, db_name, tbl_name, part_vals, deleteData):
  1112. """
  1113. Parameters:
  1114. - db_name
  1115. - tbl_name
  1116. - part_vals
  1117. - deleteData
  1118. """
  1119. self.send_drop_partition(db_name, tbl_name, part_vals, deleteData)
  1120. return self.recv_drop_partition()
  1121. def send_drop_partition(self, db_name, tbl_name, part_vals, deleteData):
  1122. self._oprot.writeMessageBegin('drop_partition', TMessageType.CALL, self._seqid)
  1123. args = drop_partition_args()
  1124. args.db_name = db_name
  1125. args.tbl_name = tbl_name
  1126. args.part_vals = part_vals
  1127. args.deleteData = deleteData
  1128. args.write(self._oprot)
  1129. self._oprot.writeMessageEnd()
  1130. self._oprot.trans.flush()
  1131. def recv_drop_partition(self, ):
  1132. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1133. if mtype == TMessageType.EXCEPTION:
  1134. x = TApplicationException()
  1135. x.read(self._iprot)
  1136. self._iprot.readMessageEnd()
  1137. raise x
  1138. result = drop_partition_result()
  1139. result.read(self._iprot)
  1140. self._iprot.readMessageEnd()
  1141. if result.success is not None:
  1142. return result.success
  1143. if result.o1 is not None:
  1144. raise result.o1
  1145. if result.o2 is not None:
  1146. raise result.o2
  1147. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition failed: unknown result");
  1148. def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
  1149. """
  1150. Parameters:
  1151. - db_name
  1152. - tbl_name
  1153. - part_name
  1154. - deleteData
  1155. """
  1156. self.send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
  1157. return self.recv_drop_partition_by_name()
  1158. def send_drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
  1159. self._oprot.writeMessageBegin('drop_partition_by_name', TMessageType.CALL, self._seqid)
  1160. args = drop_partition_by_name_args()
  1161. args.db_name = db_name
  1162. args.tbl_name = tbl_name
  1163. args.part_name = part_name
  1164. args.deleteData = deleteData
  1165. args.write(self._oprot)
  1166. self._oprot.writeMessageEnd()
  1167. self._oprot.trans.flush()
  1168. def recv_drop_partition_by_name(self, ):
  1169. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1170. if mtype == TMessageType.EXCEPTION:
  1171. x = TApplicationException()
  1172. x.read(self._iprot)
  1173. self._iprot.readMessageEnd()
  1174. raise x
  1175. result = drop_partition_by_name_result()
  1176. result.read(self._iprot)
  1177. self._iprot.readMessageEnd()
  1178. if result.success is not None:
  1179. return result.success
  1180. if result.o1 is not None:
  1181. raise result.o1
  1182. if result.o2 is not None:
  1183. raise result.o2
  1184. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name failed: unknown result");
  1185. def get_partition(self, db_name, tbl_name, part_vals):
  1186. """
  1187. Parameters:
  1188. - db_name
  1189. - tbl_name
  1190. - part_vals
  1191. """
  1192. self.send_get_partition(db_name, tbl_name, part_vals)
  1193. return self.recv_get_partition()
  1194. def send_get_partition(self, db_name, tbl_name, part_vals):
  1195. self._oprot.writeMessageBegin('get_partition', TMessageType.CALL, self._seqid)
  1196. args = get_partition_args()
  1197. args.db_name = db_name
  1198. args.tbl_name = tbl_name
  1199. args.part_vals = part_vals
  1200. args.write(self._oprot)
  1201. self._oprot.writeMessageEnd()
  1202. self._oprot.trans.flush()
  1203. def recv_get_partition(self, ):
  1204. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1205. if mtype == TMessageType.EXCEPTION:
  1206. x = TApplicationException()
  1207. x.read(self._iprot)
  1208. self._iprot.readMessageEnd()
  1209. raise x
  1210. result = get_partition_result()
  1211. result.read(self._iprot)
  1212. self._iprot.readMessageEnd()
  1213. if result.success is not None:
  1214. return result.success
  1215. if result.o1 is not None:
  1216. raise result.o1
  1217. if result.o2 is not None:
  1218. raise result.o2
  1219. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition failed: unknown result");
  1220. def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
  1221. """
  1222. Parameters:
  1223. - db_name
  1224. - tbl_name
  1225. - part_vals
  1226. - user_name
  1227. - group_names
  1228. """
  1229. self.send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
  1230. return self.recv_get_partition_with_auth()
  1231. def send_get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
  1232. self._oprot.writeMessageBegin('get_partition_with_auth', TMessageType.CALL, self._seqid)
  1233. args = get_partition_with_auth_args()
  1234. args.db_name = db_name
  1235. args.tbl_name = tbl_name
  1236. args.part_vals = part_vals
  1237. args.user_name = user_name
  1238. args.group_names = group_names
  1239. args.write(self._oprot)
  1240. self._oprot.writeMessageEnd()
  1241. self._oprot.trans.flush()
  1242. def recv_get_partition_with_auth(self, ):
  1243. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1244. if mtype == TMessageType.EXCEPTION:
  1245. x = TApplicationException()
  1246. x.read(self._iprot)
  1247. self._iprot.readMessageEnd()
  1248. raise x
  1249. result = get_partition_with_auth_result()
  1250. result.read(self._iprot)
  1251. self._iprot.readMessageEnd()
  1252. if result.success is not None:
  1253. return result.success
  1254. if result.o1 is not None:
  1255. raise result.o1
  1256. if result.o2 is not None:
  1257. raise result.o2
  1258. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_with_auth failed: unknown result");
  1259. def get_partition_by_name(self, db_name, tbl_name, part_name):
  1260. """
  1261. Parameters:
  1262. - db_name
  1263. - tbl_name
  1264. - part_name
  1265. """
  1266. self.send_get_partition_by_name(db_name, tbl_name, part_name)
  1267. return self.recv_get_partition_by_name()
  1268. def send_get_partition_by_name(self, db_name, tbl_name, part_name):
  1269. self._oprot.writeMessageBegin('get_partition_by_name', TMessageType.CALL, self._seqid)
  1270. args = get_partition_by_name_args()
  1271. args.db_name = db_name
  1272. args.tbl_name = tbl_name
  1273. args.part_name = part_name
  1274. args.write(self._oprot)
  1275. self._oprot.writeMessageEnd()
  1276. self._oprot.trans.flush()
  1277. def recv_get_partition_by_name(self, ):
  1278. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1279. if mtype == TMessageType.EXCEPTION:
  1280. x = TApplicationException()
  1281. x.read(self._iprot)
  1282. self._iprot.readMessageEnd()
  1283. raise x
  1284. result = get_partition_by_name_result()
  1285. result.read(self._iprot)
  1286. self._iprot.readMessageEnd()
  1287. if result.success is not None:
  1288. return result.success
  1289. if result.o1 is not None:
  1290. raise result.o1
  1291. if result.o2 is not None:
  1292. raise result.o2
  1293. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_by_name failed: unknown result");
  1294. def get_partitions(self, db_name, tbl_name, max_parts):
  1295. """
  1296. Parameters:
  1297. - db_name
  1298. - tbl_name
  1299. - max_parts
  1300. """
  1301. self.send_get_partitions(db_name, tbl_name, max_parts)
  1302. return self.recv_get_partitions()
  1303. def send_get_partitions(self, db_name, tbl_name, max_parts):
  1304. self._oprot.writeMessageBegin('get_partitions', TMessageType.CALL, self._seqid)
  1305. args = get_partitions_args()
  1306. args.db_name = db_name
  1307. args.tbl_name = tbl_name
  1308. args.max_parts = max_parts
  1309. args.write(self._oprot)
  1310. self._oprot.writeMessageEnd()
  1311. self._oprot.trans.flush()
  1312. def recv_get_partitions(self, ):
  1313. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1314. if mtype == TMessageType.EXCEPTION:
  1315. x = TApplicationException()
  1316. x.read(self._iprot)
  1317. self._iprot.readMessageEnd()
  1318. raise x
  1319. result = get_partitions_result()
  1320. result.read(self._iprot)
  1321. self._iprot.readMessageEnd()
  1322. if result.success is not None:
  1323. return result.success
  1324. if result.o1 is not None:
  1325. raise result.o1
  1326. if result.o2 is not None:
  1327. raise result.o2
  1328. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions failed: unknown result");
  1329. def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
  1330. """
  1331. Parameters:
  1332. - db_name
  1333. - tbl_name
  1334. - max_parts
  1335. - user_name
  1336. - group_names
  1337. """
  1338. self.send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
  1339. return self.recv_get_partitions_with_auth()
  1340. def send_get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
  1341. self._oprot.writeMessageBegin('get_partitions_with_auth', TMessageType.CALL, self._seqid)
  1342. args = get_partitions_with_auth_args()
  1343. args.db_name = db_name
  1344. args.tbl_name = tbl_name
  1345. args.max_parts = max_parts
  1346. args.user_name = user_name
  1347. args.group_names = group_names
  1348. args.write(self._oprot)
  1349. self._oprot.writeMessageEnd()
  1350. self._oprot.trans.flush()
  1351. def recv_get_partitions_with_auth(self, ):
  1352. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1353. if mtype == TMessageType.EXCEPTION:
  1354. x = TApplicationException()
  1355. x.read(self._iprot)
  1356. self._iprot.readMessageEnd()
  1357. raise x
  1358. result = get_partitions_with_auth_result()
  1359. result.read(self._iprot)
  1360. self._iprot.readMessageEnd()
  1361. if result.success is not None:
  1362. return result.success
  1363. if result.o1 is not None:
  1364. raise result.o1
  1365. if result.o2 is not None:
  1366. raise result.o2
  1367. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_with_auth failed: unknown result");
  1368. def get_partition_names(self, db_name, tbl_name, max_parts):
  1369. """
  1370. Parameters:
  1371. - db_name
  1372. - tbl_name
  1373. - max_parts
  1374. """
  1375. self.send_get_partition_names(db_name, tbl_name, max_parts)
  1376. return self.recv_get_partition_names()
  1377. def send_get_partition_names(self, db_name, tbl_name, max_parts):
  1378. self._oprot.writeMessageBegin('get_partition_names', TMessageType.CALL, self._seqid)
  1379. args = get_partition_names_args()
  1380. args.db_name = db_name
  1381. args.tbl_name = tbl_name
  1382. args.max_parts = max_parts
  1383. args.write(self._oprot)
  1384. self._oprot.writeMessageEnd()
  1385. self._oprot.trans.flush()
  1386. def recv_get_partition_names(self, ):
  1387. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1388. if mtype == TMessageType.EXCEPTION:
  1389. x = TApplicationException()
  1390. x.read(self._iprot)
  1391. self._iprot.readMessageEnd()
  1392. raise x
  1393. result = get_partition_names_result()
  1394. result.read(self._iprot)
  1395. self._iprot.readMessageEnd()
  1396. if result.success is not None:
  1397. return result.success
  1398. if result.o2 is not None:
  1399. raise result.o2
  1400. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result");
  1401. def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
  1402. """
  1403. Parameters:
  1404. - db_name
  1405. - tbl_name
  1406. - part_vals
  1407. - max_parts
  1408. """
  1409. self.send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
  1410. return self.recv_get_partitions_ps()
  1411. def send_get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
  1412. self._oprot.writeMessageBegin('get_partitions_ps', TMessageType.CALL, self._seqid)
  1413. args = get_partitions_ps_args()
  1414. args.db_name = db_name
  1415. args.tbl_name = tbl_name
  1416. args.part_vals = part_vals
  1417. args.max_parts = max_parts
  1418. args.write(self._oprot)
  1419. self._oprot.writeMessageEnd()
  1420. self._oprot.trans.flush()
  1421. def recv_get_partitions_ps(self, ):
  1422. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1423. if mtype == TMessageType.EXCEPTION:
  1424. x = TApplicationException()
  1425. x.read(self._iprot)
  1426. self._iprot.readMessageEnd()
  1427. raise x
  1428. result = get_partitions_ps_result()
  1429. result.read(self._iprot)
  1430. self._iprot.readMessageEnd()
  1431. if result.success is not None:
  1432. return result.success
  1433. if result.o1 is not None:
  1434. raise result.o1
  1435. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps failed: unknown result");
  1436. def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
  1437. """
  1438. Parameters:
  1439. - db_name
  1440. - tbl_name
  1441. - part_vals
  1442. - max_parts
  1443. - user_name
  1444. - group_names
  1445. """
  1446. self.send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
  1447. return self.recv_get_partitions_ps_with_auth()
  1448. def send_get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
  1449. self._oprot.writeMessageBegin('get_partitions_ps_with_auth', TMessageType.CALL, self._seqid)
  1450. args = get_partitions_ps_with_auth_args()
  1451. args.db_name = db_name
  1452. args.tbl_name = tbl_name
  1453. args.part_vals = part_vals
  1454. args.max_parts = max_parts
  1455. args.user_name = user_name
  1456. args.group_names = group_names
  1457. args.write(self._oprot)
  1458. self._oprot.writeMessageEnd()
  1459. self._oprot.trans.flush()
  1460. def recv_get_partitions_ps_with_auth(self, ):
  1461. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1462. if mtype == TMessageType.EXCEPTION:
  1463. x = TApplicationException()
  1464. x.read(self._iprot)
  1465. self._iprot.readMessageEnd()
  1466. raise x
  1467. result = get_partitions_ps_with_auth_result()
  1468. result.read(self._iprot)
  1469. self._iprot.readMessageEnd()
  1470. if result.success is not None:
  1471. return result.success
  1472. if result.o1 is not None:
  1473. raise result.o1
  1474. if result.o2 is not None:
  1475. raise result.o2
  1476. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result");
  1477. def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
  1478. """
  1479. Parameters:
  1480. - db_name
  1481. - tbl_name
  1482. - part_vals
  1483. - max_parts
  1484. """
  1485. self.send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
  1486. return self.recv_get_partition_names_ps()
  1487. def send_get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
  1488. self._oprot.writeMessageBegin('get_partition_names_ps', TMessageType.CALL, self._seqid)
  1489. args = get_partition_names_ps_args()
  1490. args.db_name = db_name
  1491. args.tbl_name = tbl_name
  1492. args.part_vals = part_vals
  1493. args.max_parts = max_parts
  1494. args.write(self._oprot)
  1495. self._oprot.writeMessageEnd()
  1496. self._oprot.trans.flush()
  1497. def recv_get_partition_names_ps(self, ):
  1498. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1499. if mtype == TMessageType.EXCEPTION:
  1500. x = TApplicationException()
  1501. x.read(self._iprot)
  1502. self._iprot.readMessageEnd()
  1503. raise x
  1504. result = get_partition_names_ps_result()
  1505. result.read(self._iprot)
  1506. self._iprot.readMessageEnd()
  1507. if result.success is not None:
  1508. return result.success
  1509. if result.o1 is not None:
  1510. raise result.o1
  1511. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names_ps failed: unknown result");
  1512. def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
  1513. """
  1514. Parameters:
  1515. - db_name
  1516. - tbl_name
  1517. - filter
  1518. - max_parts
  1519. """
  1520. self.send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
  1521. return self.recv_get_partitions_by_filter()
  1522. def send_get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
  1523. self._oprot.writeMessageBegin('get_partitions_by_filter', TMessageType.CALL, self._seqid)
  1524. args = get_partitions_by_filter_args()
  1525. args.db_name = db_name
  1526. args.tbl_name = tbl_name
  1527. args.filter = filter
  1528. args.max_parts = max_parts
  1529. args.write(self._oprot)
  1530. self._oprot.writeMessageEnd()
  1531. self._oprot.trans.flush()
  1532. def recv_get_partitions_by_filter(self, ):
  1533. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1534. if mtype == TMessageType.EXCEPTION:
  1535. x = TApplicationException()
  1536. x.read(self._iprot)
  1537. self._iprot.readMessageEnd()
  1538. raise x
  1539. result = get_partitions_by_filter_result()
  1540. result.read(self._iprot)
  1541. self._iprot.readMessageEnd()
  1542. if result.success is not None:
  1543. return result.success
  1544. if result.o1 is not None:
  1545. raise result.o1
  1546. if result.o2 is not None:
  1547. raise result.o2
  1548. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_filter failed: unknown result");
  1549. def alter_partition(self, db_name, tbl_name, new_part):
  1550. """
  1551. Parameters:
  1552. - db_name
  1553. - tbl_name
  1554. - new_part
  1555. """
  1556. self.send_alter_partition(db_name, tbl_name, new_part)
  1557. self.recv_alter_partition()
  1558. def send_alter_partition(self, db_name, tbl_name, new_part):
  1559. self._oprot.writeMessageBegin('alter_partition', TMessageType.CALL, self._seqid)
  1560. args = alter_partition_args()
  1561. args.db_name = db_name
  1562. args.tbl_name = tbl_name
  1563. args.new_part = new_part
  1564. args.write(self._oprot)
  1565. self._oprot.writeMessageEnd()
  1566. self._oprot.trans.flush()
  1567. def recv_alter_partition(self, ):
  1568. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1569. if mtype == TMessageType.EXCEPTION:
  1570. x = TApplicationException()
  1571. x.read(self._iprot)
  1572. self._iprot.readMessageEnd()
  1573. raise x
  1574. result = alter_partition_result()
  1575. result.read(self._iprot)
  1576. self._iprot.readMessageEnd()
  1577. if result.o1 is not None:
  1578. raise result.o1
  1579. if result.o2 is not None:
  1580. raise result.o2
  1581. return
  1582. def get_config_value(self, name, defaultValue):
  1583. """
  1584. Parameters:
  1585. - name
  1586. - defaultValue
  1587. """
  1588. self.send_get_config_value(name, defaultValue)
  1589. return self.recv_get_config_value()
  1590. def send_get_config_value(self, name, defaultValue):
  1591. self._oprot.writeMessageBegin('get_config_value', TMessageType.CALL, self._seqid)
  1592. args = get_config_value_args()
  1593. args.name = name
  1594. args.defaultValue = defaultValue
  1595. args.write(self._oprot)
  1596. self._oprot.writeMessageEnd()
  1597. self._oprot.trans.flush()
  1598. def recv_get_config_value(self, ):
  1599. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1600. if mtype == TMessageType.EXCEPTION:
  1601. x = TApplicationException()
  1602. x.read(self._iprot)
  1603. self._iprot.readMessageEnd()
  1604. raise x
  1605. result = get_config_value_result()
  1606. result.read(self._iprot)
  1607. self._iprot.readMessageEnd()
  1608. if result.success is not None:
  1609. return result.success
  1610. if result.o1 is not None:
  1611. raise result.o1
  1612. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_config_value failed: unknown result");
  1613. def partition_name_to_vals(self, part_name):
  1614. """
  1615. Parameters:
  1616. - part_name
  1617. """
  1618. self.send_partition_name_to_vals(part_name)
  1619. return self.recv_partition_name_to_vals()
  1620. def send_partition_name_to_vals(self, part_name):
  1621. self._oprot.writeMessageBegin('partition_name_to_vals', TMessageType.CALL, self._seqid)
  1622. args = partition_name_to_vals_args()
  1623. args.part_name = part_name
  1624. args.write(self._oprot)
  1625. self._oprot.writeMessageEnd()
  1626. self._oprot.trans.flush()
  1627. def recv_partition_name_to_vals(self, ):
  1628. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1629. if mtype == TMessageType.EXCEPTION:
  1630. x = TApplicationException()
  1631. x.read(self._iprot)
  1632. self._iprot.readMessageEnd()
  1633. raise x
  1634. result = partition_name_to_vals_result()
  1635. result.read(self._iprot)
  1636. self._iprot.readMessageEnd()
  1637. if result.success is not None:
  1638. return result.success
  1639. if result.o1 is not None:
  1640. raise result.o1
  1641. raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_vals failed: unknown result");
  1642. def partition_name_to_spec(self, part_name):
  1643. """
  1644. Parameters:
  1645. - part_name
  1646. """
  1647. self.send_partition_name_to_spec(part_name)
  1648. return self.recv_partition_name_to_spec()
  1649. def send_partition_name_to_spec(self, part_name):
  1650. self._oprot.writeMessageBegin('partition_name_to_spec', TMessageType.CALL, self._seqid)
  1651. args = partition_name_to_spec_args()
  1652. args.part_name = part_name
  1653. args.write(self._oprot)
  1654. self._oprot.writeMessageEnd()
  1655. self._oprot.trans.flush()
  1656. def recv_partition_name_to_spec(self, ):
  1657. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1658. if mtype == TMessageType.EXCEPTION:
  1659. x = TApplicationException()
  1660. x.read(self._iprot)
  1661. self._iprot.readMessageEnd()
  1662. raise x
  1663. result = partition_name_to_spec_result()
  1664. result.read(self._iprot)
  1665. self._iprot.readMessageEnd()
  1666. if result.success is not None:
  1667. return result.success
  1668. if result.o1 is not None:
  1669. raise result.o1
  1670. raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_spec failed: unknown result");
  1671. def add_index(self, new_index, index_table):
  1672. """
  1673. Parameters:
  1674. - new_index
  1675. - index_table
  1676. """
  1677. self.send_add_index(new_index, index_table)
  1678. return self.recv_add_index()
  1679. def send_add_index(self, new_index, index_table):
  1680. self._oprot.writeMessageBegin('add_index', TMessageType.CALL, self._seqid)
  1681. args = add_index_args()
  1682. args.new_index = new_index
  1683. args.index_table = index_table
  1684. args.write(self._oprot)
  1685. self._oprot.writeMessageEnd()
  1686. self._oprot.trans.flush()
  1687. def recv_add_index(self, ):
  1688. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1689. if mtype == TMessageType.EXCEPTION:
  1690. x = TApplicationException()
  1691. x.read(self._iprot)
  1692. self._iprot.readMessageEnd()
  1693. raise x
  1694. result = add_index_result()
  1695. result.read(self._iprot)
  1696. self._iprot.readMessageEnd()
  1697. if result.success is not None:
  1698. return result.success
  1699. if result.o1 is not None:
  1700. raise result.o1
  1701. if result.o2 is not None:
  1702. raise result.o2
  1703. if result.o3 is not None:
  1704. raise result.o3
  1705. raise TApplicationException(TApplicationException.MISSING_RESULT, "add_index failed: unknown result");
  1706. def alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
  1707. """
  1708. Parameters:
  1709. - dbname
  1710. - base_tbl_name
  1711. - idx_name
  1712. - new_idx
  1713. """
  1714. self.send_alter_index(dbname, base_tbl_name, idx_name, new_idx)
  1715. self.recv_alter_index()
  1716. def send_alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
  1717. self._oprot.writeMessageBegin('alter_index', TMessageType.CALL, self._seqid)
  1718. args = alter_index_args()
  1719. args.dbname = dbname
  1720. args.base_tbl_name = base_tbl_name
  1721. args.idx_name = idx_name
  1722. args.new_idx = new_idx
  1723. args.write(self._oprot)
  1724. self._oprot.writeMessageEnd()
  1725. self._oprot.trans.flush()
  1726. def recv_alter_index(self, ):
  1727. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1728. if mtype == TMessageType.EXCEPTION:
  1729. x = TApplicationException()
  1730. x.read(self._iprot)
  1731. self._iprot.readMessageEnd()
  1732. raise x
  1733. result = alter_index_result()
  1734. result.read(self._iprot)
  1735. self._iprot.readMessageEnd()
  1736. if result.o1 is not None:
  1737. raise result.o1
  1738. if result.o2 is not None:
  1739. raise result.o2
  1740. return
  1741. def drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
  1742. """
  1743. Parameters:
  1744. - db_name
  1745. - tbl_name
  1746. - index_name
  1747. - deleteData
  1748. """
  1749. self.send_drop_index_by_name(db_name, tbl_name, index_name, deleteData)
  1750. return self.recv_drop_index_by_name()
  1751. def send_drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
  1752. self._oprot.writeMessageBegin('drop_index_by_name', TMessageType.CALL, self._seqid)
  1753. args = drop_index_by_name_args()
  1754. args.db_name = db_name
  1755. args.tbl_name = tbl_name
  1756. args.index_name = index_name
  1757. args.deleteData = deleteData
  1758. args.write(self._oprot)
  1759. self._oprot.writeMessageEnd()
  1760. self._oprot.trans.flush()
  1761. def recv_drop_index_by_name(self, ):
  1762. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1763. if mtype == TMessageType.EXCEPTION:
  1764. x = TApplicationException()
  1765. x.read(self._iprot)
  1766. self._iprot.readMessageEnd()
  1767. raise x
  1768. result = drop_index_by_name_result()
  1769. result.read(self._iprot)
  1770. self._iprot.readMessageEnd()
  1771. if result.success is not None:
  1772. return result.success
  1773. if result.o1 is not None:
  1774. raise result.o1
  1775. if result.o2 is not None:
  1776. raise result.o2
  1777. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_index_by_name failed: unknown result");
  1778. def get_index_by_name(self, db_name, tbl_name, index_name):
  1779. """
  1780. Parameters:
  1781. - db_name
  1782. - tbl_name
  1783. - index_name
  1784. """
  1785. self.send_get_index_by_name(db_name, tbl_name, index_name)
  1786. return self.recv_get_index_by_name()
  1787. def send_get_index_by_name(self, db_name, tbl_name, index_name):
  1788. self._oprot.writeMessageBegin('get_index_by_name', TMessageType.CALL, self._seqid)
  1789. args = get_index_by_name_args()
  1790. args.db_name = db_name
  1791. args.tbl_name = tbl_name
  1792. args.index_name = index_name
  1793. args.write(self._oprot)
  1794. self._oprot.writeMessageEnd()
  1795. self._oprot.trans.flush()
  1796. def recv_get_index_by_name(self, ):
  1797. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1798. if mtype == TMessageType.EXCEPTION:
  1799. x = TApplicationException()
  1800. x.read(self._iprot)
  1801. self._iprot.readMessageEnd()
  1802. raise x
  1803. result = get_index_by_name_result()
  1804. result.read(self._iprot)
  1805. self._iprot.readMessageEnd()
  1806. if result.success is not None:
  1807. return result.success
  1808. if result.o1 is not None:
  1809. raise result.o1
  1810. if result.o2 is not None:
  1811. raise result.o2
  1812. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_by_name failed: unknown result");
  1813. def get_indexes(self, db_name, tbl_name, max_indexes):
  1814. """
  1815. Parameters:
  1816. - db_name
  1817. - tbl_name
  1818. - max_indexes
  1819. """
  1820. self.send_get_indexes(db_name, tbl_name, max_indexes)
  1821. return self.recv_get_indexes()
  1822. def send_get_indexes(self, db_name, tbl_name, max_indexes):
  1823. self._oprot.writeMessageBegin('get_indexes', TMessageType.CALL, self._seqid)
  1824. args = get_indexes_args()
  1825. args.db_name = db_name
  1826. args.tbl_name = tbl_name
  1827. args.max_indexes = max_indexes
  1828. args.write(self._oprot)
  1829. self._oprot.writeMessageEnd()
  1830. self._oprot.trans.flush()
  1831. def recv_get_indexes(self, ):
  1832. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1833. if mtype == TMessageType.EXCEPTION:
  1834. x = TApplicationException()
  1835. x.read(self._iprot)
  1836. self._iprot.readMessageEnd()
  1837. raise x
  1838. result = get_indexes_result()
  1839. result.read(self._iprot)
  1840. self._iprot.readMessageEnd()
  1841. if result.success is not None:
  1842. return result.success
  1843. if result.o1 is not None:
  1844. raise result.o1
  1845. if result.o2 is not None:
  1846. raise result.o2
  1847. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_indexes failed: unknown result");
  1848. def get_index_names(self, db_name, tbl_name, max_indexes):
  1849. """
  1850. Parameters:
  1851. - db_name
  1852. - tbl_name
  1853. - max_indexes
  1854. """
  1855. self.send_get_index_names(db_name, tbl_name, max_indexes)
  1856. return self.recv_get_index_names()
  1857. def send_get_index_names(self, db_name, tbl_name, max_indexes):
  1858. self._oprot.writeMessageBegin('get_index_names', TMessageType.CALL, self._seqid)
  1859. args = get_index_names_args()
  1860. args.db_name = db_name
  1861. args.tbl_name = tbl_name
  1862. args.max_indexes = max_indexes
  1863. args.write(self._oprot)
  1864. self._oprot.writeMessageEnd()
  1865. self._oprot.trans.flush()
  1866. def recv_get_index_names(self, ):
  1867. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1868. if mtype == TMessageType.EXCEPTION:
  1869. x = TApplicationException()
  1870. x.read(self._iprot)
  1871. self._iprot.readMessageEnd()
  1872. raise x
  1873. result = get_index_names_result()
  1874. result.read(self._iprot)
  1875. self._iprot.readMessageEnd()
  1876. if result.success is not None:
  1877. return result.success
  1878. if result.o2 is not None:
  1879. raise result.o2
  1880. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_names failed: unknown result");
  1881. def create_role(self, role):
  1882. """
  1883. Parameters:
  1884. - role
  1885. """
  1886. self.send_create_role(role)
  1887. return self.recv_create_role()
  1888. def send_create_role(self, role):
  1889. self._oprot.writeMessageBegin('create_role', TMessageType.CALL, self._seqid)
  1890. args = create_role_args()
  1891. args.role = role
  1892. args.write(self._oprot)
  1893. self._oprot.writeMessageEnd()
  1894. self._oprot.trans.flush()
  1895. def recv_create_role(self, ):
  1896. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1897. if mtype == TMessageType.EXCEPTION:
  1898. x = TApplicationException()
  1899. x.read(self._iprot)
  1900. self._iprot.readMessageEnd()
  1901. raise x
  1902. result = create_role_result()
  1903. result.read(self._iprot)
  1904. self._iprot.readMessageEnd()
  1905. if result.success is not None:
  1906. return result.success
  1907. if result.o1 is not None:
  1908. raise result.o1
  1909. raise TApplicationException(TApplicationException.MISSING_RESULT, "create_role failed: unknown result");
  1910. def drop_role(self, role_name):
  1911. """
  1912. Parameters:
  1913. - role_name
  1914. """
  1915. self.send_drop_role(role_name)
  1916. return self.recv_drop_role()
  1917. def send_drop_role(self, role_name):
  1918. self._oprot.writeMessageBegin('drop_role', TMessageType.CALL, self._seqid)
  1919. args = drop_role_args()
  1920. args.role_name = role_name
  1921. args.write(self._oprot)
  1922. self._oprot.writeMessageEnd()
  1923. self._oprot.trans.flush()
  1924. def recv_drop_role(self, ):
  1925. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1926. if mtype == TMessageType.EXCEPTION:
  1927. x = TApplicationException()
  1928. x.read(self._iprot)
  1929. self._iprot.readMessageEnd()
  1930. raise x
  1931. result = drop_role_result()
  1932. result.read(self._iprot)
  1933. self._iprot.readMessageEnd()
  1934. if result.success is not None:
  1935. return result.success
  1936. if result.o1 is not None:
  1937. raise result.o1
  1938. raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_role failed: unknown result");
  1939. def get_role_names(self, ):
  1940. self.send_get_role_names()
  1941. return self.recv_get_role_names()
  1942. def send_get_role_names(self, ):
  1943. self._oprot.writeMessageBegin('get_role_names', TMessageType.CALL, self._seqid)
  1944. args = get_role_names_args()
  1945. args.write(self._oprot)
  1946. self._oprot.writeMessageEnd()
  1947. self._oprot.trans.flush()
  1948. def recv_get_role_names(self, ):
  1949. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1950. if mtype == TMessageType.EXCEPTION:
  1951. x = TApplicationException()
  1952. x.read(self._iprot)
  1953. self._iprot.readMessageEnd()
  1954. raise x
  1955. result = get_role_names_result()
  1956. result.read(self._iprot)
  1957. self._iprot.readMessageEnd()
  1958. if result.success is not None:
  1959. return result.success
  1960. if result.o1 is not None:
  1961. raise result.o1
  1962. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_role_names failed: unknown result");
  1963. def grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
  1964. """
  1965. Parameters:
  1966. - role_name
  1967. - principal_name
  1968. - principal_type
  1969. - grantor
  1970. - grantorType
  1971. - grant_option
  1972. """
  1973. self.send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
  1974. return self.recv_grant_role()
  1975. def send_grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
  1976. self._oprot.writeMessageBegin('grant_role', TMessageType.CALL, self._seqid)
  1977. args = grant_role_args()
  1978. args.role_name = role_name
  1979. args.principal_name = principal_name
  1980. args.principal_type = principal_type
  1981. args.grantor = grantor
  1982. args.grantorType = grantorType
  1983. args.grant_option = grant_option
  1984. args.write(self._oprot)
  1985. self._oprot.writeMessageEnd()
  1986. self._oprot.trans.flush()
  1987. def recv_grant_role(self, ):
  1988. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  1989. if mtype == TMessageType.EXCEPTION:
  1990. x = TApplicationException()
  1991. x.read(self._iprot)
  1992. self._iprot.readMessageEnd()
  1993. raise x
  1994. result = grant_role_result()
  1995. result.read(self._iprot)
  1996. self._iprot.readMessageEnd()
  1997. if result.success is not None:
  1998. return result.success
  1999. if result.o1 is not None:
  2000. raise result.o1
  2001. raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_role failed: unknown result");
  2002. def revoke_role(self, role_name, principal_name, principal_type):
  2003. """
  2004. Parameters:
  2005. - role_name
  2006. - principal_name
  2007. - principal_type
  2008. """
  2009. self.send_revoke_role(role_name, principal_name, principal_type)
  2010. return self.recv_revoke_role()
  2011. def send_revoke_role(self, role_name, principal_name, principal_type):
  2012. self._oprot.writeMessageBegin('revoke_role', TMessageType.CALL, self._seqid)
  2013. args = revoke_role_args()
  2014. args.role_name = role_name
  2015. args.principal_name = principal_name
  2016. args.principal_type = principal_type
  2017. args.write(self._oprot)
  2018. self._oprot.writeMessageEnd()
  2019. self._oprot.trans.flush()
  2020. def recv_revoke_role(self, ):
  2021. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2022. if mtype == TMessageType.EXCEPTION:
  2023. x = TApplicationException()
  2024. x.read(self._iprot)
  2025. self._iprot.readMessageEnd()
  2026. raise x
  2027. result = revoke_role_result()
  2028. result.read(self._iprot)
  2029. self._iprot.readMessageEnd()
  2030. if result.success is not None:
  2031. return result.success
  2032. if result.o1 is not None:
  2033. raise result.o1
  2034. raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_role failed: unknown result");
  2035. def list_roles(self, principal_name, principal_type):
  2036. """
  2037. Parameters:
  2038. - principal_name
  2039. - principal_type
  2040. """
  2041. self.send_list_roles(principal_name, principal_type)
  2042. return self.recv_list_roles()
  2043. def send_list_roles(self, principal_name, principal_type):
  2044. self._oprot.writeMessageBegin('list_roles', TMessageType.CALL, self._seqid)
  2045. args = list_roles_args()
  2046. args.principal_name = principal_name
  2047. args.principal_type = principal_type
  2048. args.write(self._oprot)
  2049. self._oprot.writeMessageEnd()
  2050. self._oprot.trans.flush()
  2051. def recv_list_roles(self, ):
  2052. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2053. if mtype == TMessageType.EXCEPTION:
  2054. x = TApplicationException()
  2055. x.read(self._iprot)
  2056. self._iprot.readMessageEnd()
  2057. raise x
  2058. result = list_roles_result()
  2059. result.read(self._iprot)
  2060. self._iprot.readMessageEnd()
  2061. if result.success is not None:
  2062. return result.success
  2063. if result.o1 is not None:
  2064. raise result.o1
  2065. raise TApplicationException(TApplicationException.MISSING_RESULT, "list_roles failed: unknown result");
  2066. def get_privilege_set(self, hiveObject, user_name, group_names):
  2067. """
  2068. Parameters:
  2069. - hiveObject
  2070. - user_name
  2071. - group_names
  2072. """
  2073. self.send_get_privilege_set(hiveObject, user_name, group_names)
  2074. return self.recv_get_privilege_set()
  2075. def send_get_privilege_set(self, hiveObject, user_name, group_names):
  2076. self._oprot.writeMessageBegin('get_privilege_set', TMessageType.CALL, self._seqid)
  2077. args = get_privilege_set_args()
  2078. args.hiveObject = hiveObject
  2079. args.user_name = user_name
  2080. args.group_names = group_names
  2081. args.write(self._oprot)
  2082. self._oprot.writeMessageEnd()
  2083. self._oprot.trans.flush()
  2084. def recv_get_privilege_set(self, ):
  2085. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2086. if mtype == TMessageType.EXCEPTION:
  2087. x = TApplicationException()
  2088. x.read(self._iprot)
  2089. self._iprot.readMessageEnd()
  2090. raise x
  2091. result = get_privilege_set_result()
  2092. result.read(self._iprot)
  2093. self._iprot.readMessageEnd()
  2094. if result.success is not None:
  2095. return result.success
  2096. if result.o1 is not None:
  2097. raise result.o1
  2098. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_privilege_set failed: unknown result");
  2099. def list_privileges(self, principal_name, principal_type, hiveObject):
  2100. """
  2101. Parameters:
  2102. - principal_name
  2103. - principal_type
  2104. - hiveObject
  2105. """
  2106. self.send_list_privileges(principal_name, principal_type, hiveObject)
  2107. return self.recv_list_privileges()
  2108. def send_list_privileges(self, principal_name, principal_type, hiveObject):
  2109. self._oprot.writeMessageBegin('list_privileges', TMessageType.CALL, self._seqid)
  2110. args = list_privileges_args()
  2111. args.principal_name = principal_name
  2112. args.principal_type = principal_type
  2113. args.hiveObject = hiveObject
  2114. args.write(self._oprot)
  2115. self._oprot.writeMessageEnd()
  2116. self._oprot.trans.flush()
  2117. def recv_list_privileges(self, ):
  2118. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2119. if mtype == TMessageType.EXCEPTION:
  2120. x = TApplicationException()
  2121. x.read(self._iprot)
  2122. self._iprot.readMessageEnd()
  2123. raise x
  2124. result = list_privileges_result()
  2125. result.read(self._iprot)
  2126. self._iprot.readMessageEnd()
  2127. if result.success is not None:
  2128. return result.success
  2129. if result.o1 is not None:
  2130. raise result.o1
  2131. raise TApplicationException(TApplicationException.MISSING_RESULT, "list_privileges failed: unknown result");
  2132. def grant_privileges(self, privileges):
  2133. """
  2134. Parameters:
  2135. - privileges
  2136. """
  2137. self.send_grant_privileges(privileges)
  2138. return self.recv_grant_privileges()
  2139. def send_grant_privileges(self, privileges):
  2140. self._oprot.writeMessageBegin('grant_privileges', TMessageType.CALL, self._seqid)
  2141. args = grant_privileges_args()
  2142. args.privileges = privileges
  2143. args.write(self._oprot)
  2144. self._oprot.writeMessageEnd()
  2145. self._oprot.trans.flush()
  2146. def recv_grant_privileges(self, ):
  2147. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2148. if mtype == TMessageType.EXCEPTION:
  2149. x = TApplicationException()
  2150. x.read(self._iprot)
  2151. self._iprot.readMessageEnd()
  2152. raise x
  2153. result = grant_privileges_result()
  2154. result.read(self._iprot)
  2155. self._iprot.readMessageEnd()
  2156. if result.success is not None:
  2157. return result.success
  2158. if result.o1 is not None:
  2159. raise result.o1
  2160. raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_privileges failed: unknown result");
  2161. def revoke_privileges(self, privileges):
  2162. """
  2163. Parameters:
  2164. - privileges
  2165. """
  2166. self.send_revoke_privileges(privileges)
  2167. return self.recv_revoke_privileges()
  2168. def send_revoke_privileges(self, privileges):
  2169. self._oprot.writeMessageBegin('revoke_privileges', TMessageType.CALL, self._seqid)
  2170. args = revoke_privileges_args()
  2171. args.privileges = privileges
  2172. args.write(self._oprot)
  2173. self._oprot.writeMessageEnd()
  2174. self._oprot.trans.flush()
  2175. def recv_revoke_privileges(self, ):
  2176. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2177. if mtype == TMessageType.EXCEPTION:
  2178. x = TApplicationException()
  2179. x.read(self._iprot)
  2180. self._iprot.readMessageEnd()
  2181. raise x
  2182. result = revoke_privileges_result()
  2183. result.read(self._iprot)
  2184. self._iprot.readMessageEnd()
  2185. if result.success is not None:
  2186. return result.success
  2187. if result.o1 is not None:
  2188. raise result.o1
  2189. raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_privileges failed: unknown result");
  2190. def get_delegation_token(self, renewer_kerberos_principal_name):
  2191. """
  2192. Parameters:
  2193. - renewer_kerberos_principal_name
  2194. """
  2195. self.send_get_delegation_token(renewer_kerberos_principal_name)
  2196. return self.recv_get_delegation_token()
  2197. def send_get_delegation_token(self, renewer_kerberos_principal_name):
  2198. self._oprot.writeMessageBegin('get_delegation_token', TMessageType.CALL, self._seqid)
  2199. args = get_delegation_token_args()
  2200. args.renewer_kerberos_principal_name = renewer_kerberos_principal_name
  2201. args.write(self._oprot)
  2202. self._oprot.writeMessageEnd()
  2203. self._oprot.trans.flush()
  2204. def recv_get_delegation_token(self, ):
  2205. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2206. if mtype == TMessageType.EXCEPTION:
  2207. x = TApplicationException()
  2208. x.read(self._iprot)
  2209. self._iprot.readMessageEnd()
  2210. raise x
  2211. result = get_delegation_token_result()
  2212. result.read(self._iprot)
  2213. self._iprot.readMessageEnd()
  2214. if result.success is not None:
  2215. return result.success
  2216. if result.o1 is not None:
  2217. raise result.o1
  2218. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_delegation_token failed: unknown result");
  2219. def get_delegation_token_with_signature(self, renewer_kerberos_principal_name, token_signature):
  2220. """
  2221. Parameters:
  2222. - renewer_kerberos_principal_name
  2223. - token_signature
  2224. """
  2225. self.send_get_delegation_token_with_signature(renewer_kerberos_principal_name, token_signature)
  2226. return self.recv_get_delegation_token_with_signature()
  2227. def send_get_delegation_token_with_signature(self, renewer_kerberos_principal_name, token_signature):
  2228. self._oprot.writeMessageBegin('get_delegation_token_with_signature', TMessageType.CALL, self._seqid)
  2229. args = get_delegation_token_with_signature_args()
  2230. args.renewer_kerberos_principal_name = renewer_kerberos_principal_name
  2231. args.token_signature = token_signature
  2232. args.write(self._oprot)
  2233. self._oprot.writeMessageEnd()
  2234. self._oprot.trans.flush()
  2235. def recv_get_delegation_token_with_signature(self, ):
  2236. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2237. if mtype == TMessageType.EXCEPTION:
  2238. x = TApplicationException()
  2239. x.read(self._iprot)
  2240. self._iprot.readMessageEnd()
  2241. raise x
  2242. result = get_delegation_token_with_signature_result()
  2243. result.read(self._iprot)
  2244. self._iprot.readMessageEnd()
  2245. if result.success is not None:
  2246. return result.success
  2247. if result.o1 is not None:
  2248. raise result.o1
  2249. raise TApplicationException(TApplicationException.MISSING_RESULT, "get_delegation_token_with_signature failed: unknown result");
  2250. def renew_delegation_token(self, token_str_form):
  2251. """
  2252. Parameters:
  2253. - token_str_form
  2254. """
  2255. self.send_renew_delegation_token(token_str_form)
  2256. return self.recv_renew_delegation_token()
  2257. def send_renew_delegation_token(self, token_str_form):
  2258. self._oprot.writeMessageBegin('renew_delegation_token', TMessageType.CALL, self._seqid)
  2259. args = renew_delegation_token_args()
  2260. args.token_str_form = token_str_form
  2261. args.write(self._oprot)
  2262. self._oprot.writeMessageEnd()
  2263. self._oprot.trans.flush()
  2264. def recv_renew_delegation_token(self, ):
  2265. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2266. if mtype == TMessageType.EXCEPTION:
  2267. x = TApplicationException()
  2268. x.read(self._iprot)
  2269. self._iprot.readMessageEnd()
  2270. raise x
  2271. result = renew_delegation_token_result()
  2272. result.read(self._iprot)
  2273. self._iprot.readMessageEnd()
  2274. if result.success is not None:
  2275. return result.success
  2276. if result.o1 is not None:
  2277. raise result.o1
  2278. raise TApplicationException(TApplicationException.MISSING_RESULT, "renew_delegation_token failed: unknown result");
  2279. def cancel_delegation_token(self, token_str_form):
  2280. """
  2281. Parameters:
  2282. - token_str_form
  2283. """
  2284. self.send_cancel_delegation_token(token_str_form)
  2285. self.recv_cancel_delegation_token()
  2286. def send_cancel_delegation_token(self, token_str_form):
  2287. self._oprot.writeMessageBegin('cancel_delegation_token', TMessageType.CALL, self._seqid)
  2288. args = cancel_delegation_token_args()
  2289. args.token_str_form = token_str_form
  2290. args.write(self._oprot)
  2291. self._oprot.writeMessageEnd()
  2292. self._oprot.trans.flush()
  2293. def recv_cancel_delegation_token(self, ):
  2294. (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  2295. if mtype == TMessageType.EXCEPTION:
  2296. x = TApplicationException()
  2297. x.read(self._iprot)
  2298. self._iprot.readMessageEnd()
  2299. raise x
  2300. result = cancel_delegation_token_result()
  2301. result.read(self._iprot)
  2302. self._iprot.readMessageEnd()
  2303. if result.o1 is not None:
  2304. raise result.o1
  2305. return
  2306. class Processor(fb303.FacebookService.Processor, Iface, TProcessor):
  2307. def __init__(self, handler):
  2308. fb303.FacebookService.Processor.__init__(self, handler)
  2309. self._processMap["create_database"] = Processor.process_create_database
  2310. self._processMap["get_database"] = Processor.process_get_database
  2311. self._processMap["drop_database"] = Processor.process_drop_database
  2312. self._processMap["get_databases"] = Processor.process_get_databases
  2313. self._processMap["get_all_databases"] = Processor.process_get_all_databases
  2314. self._processMap["alter_database"] = Processor.process_alter_database
  2315. self._processMap["get_type"] = Processor.process_get_type
  2316. self._processMap["create_type"] = Processor.process_create_type
  2317. self._processMap["drop_type"] = Processor.process_drop_type
  2318. self._processMap["get_type_all"] = Processor.process_get_type_all
  2319. self._processMap["get_fields"] = Processor.process_get_fields
  2320. self._processMap["get_schema"] = Processor.process_get_schema
  2321. self._processMap["create_table"] = Processor.process_create_table
  2322. self._processMap["drop_table"] = Processor.process_drop_table
  2323. self._processMap["get_tables"] = Processor.process_get_tables
  2324. self._processMap["get_all_tables"] = Processor.process_get_all_tables
  2325. self._processMap["get_table"] = Processor.process_get_table
  2326. self._processMap["alter_table"] = Processor.process_alter_table
  2327. self._processMap["add_partition"] = Processor.process_add_partition
  2328. self._processMap["append_partition"] = Processor.process_append_partition
  2329. self._processMap["append_partition_by_name"] = Processor.process_append_partition_by_name
  2330. self._processMap["drop_partition"] = Processor.process_drop_partition
  2331. self._processMap["drop_partition_by_name"] = Processor.process_drop_partition_by_name
  2332. self._processMap["get_partition"] = Processor.process_get_partition
  2333. self._processMap["get_partition_with_auth"] = Processor.process_get_partition_with_auth
  2334. self._processMap["get_partition_by_name"] = Processor.process_get_partition_by_name
  2335. self._processMap["get_partitions"] = Processor.process_get_partitions
  2336. self._processMap["get_partitions_with_auth"] = Processor.process_get_partitions_with_auth
  2337. self._processMap["get_partition_names"] = Processor.process_get_partition_names
  2338. self._processMap["get_partitions_ps"] = Processor.process_get_partitions_ps
  2339. self._processMap["get_partitions_ps_with_auth"] = Processor.process_get_partitions_ps_with_auth
  2340. self._processMap["get_partition_names_ps"] = Processor.process_get_partition_names_ps
  2341. self._processMap["get_partitions_by_filter"] = Processor.process_get_partitions_by_filter
  2342. self._processMap["alter_partition"] = Processor.process_alter_partition
  2343. self._processMap["get_config_value"] = Processor.process_get_config_value
  2344. self._processMap["partition_name_to_vals"] = Processor.process_partition_name_to_vals
  2345. self._processMap["partition_name_to_spec"] = Processor.process_partition_name_to_spec
  2346. self._processMap["add_index"] = Processor.process_add_index
  2347. self._processMap["alter_index"] = Processor.process_alter_index
  2348. self._processMap["drop_index_by_name"] = Processor.process_drop_index_by_name
  2349. self._processMap["get_index_by_name"] = Processor.process_get_index_by_name
  2350. self._processMap["get_indexes"] = Processor.process_get_indexes
  2351. self._processMap["get_index_names"] = Processor.process_get_index_names
  2352. self._processMap["create_role"] = Processor.process_create_role
  2353. self._processMap["drop_role"] = Processor.process_drop_role
  2354. self._processMap["get_role_names"] = Processor.process_get_role_names
  2355. self._processMap["grant_role"] = Processor.process_grant_role
  2356. self._processMap["revoke_role"] = Processor.process_revoke_role
  2357. self._processMap["list_roles"] = Processor.process_list_roles
  2358. self._processMap["get_privilege_set"] = Processor.process_get_privilege_set
  2359. self._processMap["list_privileges"] = Processor.process_list_privileges
  2360. self._processMap["grant_privileges"] = Processor.process_grant_privileges
  2361. self._processMap["revoke_privileges"] = Processor.process_revoke_privileges
  2362. self._processMap["get_delegation_token"] = Processor.process_get_delegation_token
  2363. self._processMap["get_delegation_token_with_signature"] = Processor.process_get_delegation_token_with_signature
  2364. self._processMap["renew_delegation_token"] = Processor.process_renew_delegation_token
  2365. self._processMap["cancel_delegation_token"] = Processor.process_cancel_delegation_token
  2366. def process(self, iprot, oprot):
  2367. (name, type, seqid) = iprot.readMessageBegin()
  2368. if name not in self._processMap:
  2369. iprot.skip(TType.STRUCT)
  2370. iprot.readMessageEnd()
  2371. x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
  2372. oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
  2373. x.write(oprot)
  2374. oprot.writeMessageEnd()
  2375. oprot.trans.flush()
  2376. return
  2377. else:
  2378. self._processMap[name](self, seqid, iprot, oprot)
  2379. return True
  2380. def process_create_database(self, seqid, iprot, oprot):
  2381. args = create_database_args()
  2382. args.read(iprot)
  2383. iprot.readMessageEnd()
  2384. result = create_database_result()
  2385. try:
  2386. self._handler.create_database(args.database)
  2387. except AlreadyExistsException, o1:
  2388. result.o1 = o1
  2389. except InvalidObjectException, o2:
  2390. result.o2 = o2
  2391. except MetaException, o3:
  2392. result.o3 = o3
  2393. oprot.writeMessageBegin("create_database", TMessageType.REPLY, seqid)
  2394. result.write(oprot)
  2395. oprot.writeMessageEnd()
  2396. oprot.trans.flush()
  2397. def process_get_database(self, seqid, iprot, oprot):
  2398. args = get_database_args()
  2399. args.read(iprot)
  2400. iprot.readMessageEnd()
  2401. result = get_database_result()
  2402. try:
  2403. result.success = self._handler.get_database(args.name)
  2404. except NoSuchObjectException, o1:
  2405. result.o1 = o1
  2406. except MetaException, o2:
  2407. result.o2 = o2
  2408. oprot.writeMessageBegin("get_database", TMessageType.REPLY, seqid)
  2409. result.write(oprot)
  2410. oprot.writeMessageEnd()
  2411. oprot.trans.flush()
  2412. def process_drop_database(self, seqid, iprot, oprot):
  2413. args = drop_database_args()
  2414. args.read(iprot)
  2415. iprot.readMessageEnd()
  2416. result = drop_database_result()
  2417. try:
  2418. self._handler.drop_database(args.name, args.deleteData)
  2419. except NoSuchObjectException, o1:
  2420. result.o1 = o1
  2421. except InvalidOperationException, o2:
  2422. result.o2 = o2
  2423. except MetaException, o3:
  2424. result.o3 = o3
  2425. oprot.writeMessageBegin("drop_database", TMessageType.REPLY, seqid)
  2426. result.write(oprot)
  2427. oprot.writeMessageEnd()
  2428. oprot.trans.flush()
  2429. def process_get_databases(self, seqid, iprot, oprot):
  2430. args = get_databases_args()
  2431. args.read(iprot)
  2432. iprot.readMessageEnd()
  2433. result = get_databases_result()
  2434. try:
  2435. result.success = self._handler.get_databases(args.pattern)
  2436. except MetaException, o1:
  2437. result.o1 = o1
  2438. oprot.writeMessageBegin("get_databases", TMessageType.REPLY, seqid)
  2439. result.write(oprot)
  2440. oprot.writeMessageEnd()
  2441. oprot.trans.flush()
  2442. def process_get_all_databases(self, seqid, iprot, oprot):
  2443. args = get_all_databases_args()
  2444. args.read(iprot)
  2445. iprot.readMessageEnd()
  2446. result = get_all_databases_result()
  2447. try:
  2448. result.success = self._handler.get_all_databases()
  2449. except MetaException, o1:
  2450. result.o1 = o1
  2451. oprot.writeMessageBegin("get_all_databases", TMessageType.REPLY, seqid)
  2452. result.write(oprot)
  2453. oprot.writeMessageEnd()
  2454. oprot.trans.flush()
  2455. def process_alter_database(self, seqid, iprot, oprot):
  2456. args = alter_database_args()
  2457. args.read(iprot)
  2458. iprot.readMessageEnd()
  2459. result = alter_database_result()
  2460. try:
  2461. self._handler.alter_database(args.dbname, args.db)
  2462. except MetaException, o1:
  2463. result.o1 = o1
  2464. except NoSuchObjectException, o2:
  2465. result.o2 = o2
  2466. oprot.writeMessageBegin("alter_database", TMessageType.REPLY, seqid)
  2467. result.write(oprot)
  2468. oprot.writeMessageEnd()
  2469. oprot.trans.flush()
  2470. def process_get_type(self, seqid, iprot, oprot):
  2471. args = get_type_args()
  2472. args.read(iprot)
  2473. iprot.readMessageEnd()
  2474. result = get_type_result()
  2475. try:
  2476. result.success = self._handler.get_type(args.name)
  2477. except MetaException, o1:
  2478. result.o1 = o1
  2479. except NoSuchObjectException, o2:
  2480. result.o2 = o2
  2481. oprot.writeMessageBegin("get_type", TMessageType.REPLY, seqid)
  2482. result.write(oprot)
  2483. oprot.writeMessageEnd()
  2484. oprot.trans.flush()
  2485. def process_create_type(self, seqid, iprot, oprot):
  2486. args = create_type_args()
  2487. args.read(iprot)
  2488. iprot.readMessageEnd()
  2489. result = create_type_result()
  2490. try:
  2491. result.success = self._handler.create_type(args.type)
  2492. except AlreadyExistsException, o1:
  2493. result.o1 = o1
  2494. except InvalidObjectException, o2:
  2495. result.o2 = o2
  2496. except MetaException, o3:
  2497. result.o3 = o3
  2498. oprot.writeMessageBegin("create_type", TMessageType.REPLY, seqid)
  2499. result.write(oprot)
  2500. oprot.writeMessageEnd()
  2501. oprot.trans.flush()
  2502. def process_drop_type(self, seqid, iprot, oprot):
  2503. args = drop_type_args()
  2504. args.read(iprot)
  2505. iprot.readMessageEnd()
  2506. result = drop_type_result()
  2507. try:
  2508. result.success = self._handler.drop_type(args.type)
  2509. except MetaException, o1:
  2510. result.o1 = o1
  2511. except NoSuchObjectException, o2:
  2512. result.o2 = o2
  2513. oprot.writeMessageBegin("drop_type", TMessageType.REPLY, seqid)
  2514. result.write(oprot)
  2515. oprot.writeMessageEnd()
  2516. oprot.trans.flush()
  2517. def process_get_type_all(self, seqid, iprot, oprot):
  2518. args = get_type_all_args()
  2519. args.read(iprot)
  2520. iprot.readMessageEnd()
  2521. result = get_type_all_result()
  2522. try:
  2523. result.success = self._handler.get_type_all(args.name)
  2524. except MetaException, o2:
  2525. result.o2 = o2
  2526. oprot.writeMessageBegin("get_type_all", TMessageType.REPLY, seqid)
  2527. result.write(oprot)
  2528. oprot.writeMessageEnd()
  2529. oprot.trans.flush()
  2530. def process_get_fields(self, seqid, iprot, oprot):
  2531. args = get_fields_args()
  2532. args.read(iprot)
  2533. iprot.readMessageEnd()
  2534. result = get_fields_result()
  2535. try:
  2536. result.success = self._handler.get_fields(args.db_name, args.table_name)
  2537. except MetaException, o1:
  2538. result.o1 = o1
  2539. except UnknownTableException, o2:
  2540. result.o2 = o2
  2541. except UnknownDBException, o3:
  2542. result.o3 = o3
  2543. oprot.writeMessageBegin("get_fields", TMessageType.REPLY, seqid)
  2544. result.write(oprot)
  2545. oprot.writeMessageEnd()
  2546. oprot.trans.flush()
  2547. def process_get_schema(self, seqid, iprot, oprot):
  2548. args = get_schema_args()
  2549. args.read(iprot)
  2550. iprot.readMessageEnd()
  2551. result = get_schema_result()
  2552. try:
  2553. result.success = self._handler.get_schema(args.db_name, args.table_name)
  2554. except MetaException, o1:
  2555. result.o1 = o1
  2556. except UnknownTableException, o2:
  2557. result.o2 = o2
  2558. except UnknownDBException, o3:
  2559. result.o3 = o3
  2560. oprot.writeMessageBegin("get_schema", TMessageType.REPLY, seqid)
  2561. result.write(oprot)
  2562. oprot.writeMessageEnd()
  2563. oprot.trans.flush()
  2564. def process_create_table(self, seqid, iprot, oprot):
  2565. args = create_table_args()
  2566. args.read(iprot)
  2567. iprot.readMessageEnd()
  2568. result = create_table_result()
  2569. try:
  2570. self._handler.create_table(args.tbl)
  2571. except AlreadyExistsException, o1:
  2572. result.o1 = o1
  2573. except InvalidObjectException, o2:
  2574. result.o2 = o2
  2575. except MetaException, o3:
  2576. result.o3 = o3
  2577. except NoSuchObjectException, o4:
  2578. result.o4 = o4
  2579. oprot.writeMessageBegin("create_table", TMessageType.REPLY, seqid)
  2580. result.write(oprot)
  2581. oprot.writeMessageEnd()
  2582. oprot.trans.flush()
  2583. def process_drop_table(self, seqid, iprot, oprot):
  2584. args = drop_table_args()
  2585. args.read(iprot)
  2586. iprot.readMessageEnd()
  2587. result = drop_table_result()
  2588. try:
  2589. self._handler.drop_table(args.dbname, args.name, args.deleteData)
  2590. except NoSuchObjectException, o1:
  2591. result.o1 = o1
  2592. except MetaException, o3:
  2593. result.o3 = o3
  2594. oprot.writeMessageBegin("drop_table", TMessageType.REPLY, seqid)
  2595. result.write(oprot)
  2596. oprot.writeMessageEnd()
  2597. oprot.trans.flush()
  2598. def process_get_tables(self, seqid, iprot, oprot):
  2599. args = get_tables_args()
  2600. args.read(iprot)
  2601. iprot.readMessageEnd()
  2602. result = get_tables_result()
  2603. try:
  2604. result.success = self._handler.get_tables(args.db_name, args.pattern)
  2605. except MetaException, o1:
  2606. result.o1 = o1
  2607. oprot.writeMessageBegin("get_tables", TMessageType.REPLY, seqid)
  2608. result.write(oprot)
  2609. oprot.writeMessageEnd()
  2610. oprot.trans.flush()
  2611. def process_get_all_tables(self, seqid, iprot, oprot):
  2612. args = get_all_tables_args()
  2613. args.read(iprot)
  2614. iprot.readMessageEnd()
  2615. result = get_all_tables_result()
  2616. try:
  2617. result.success = self._handler.get_all_tables(args.db_name)
  2618. except MetaException, o1:
  2619. result.o1 = o1
  2620. oprot.writeMessageBegin("get_all_tables", TMessageType.REPLY, seqid)
  2621. result.write(oprot)
  2622. oprot.writeMessageEnd()
  2623. oprot.trans.flush()
  2624. def process_get_table(self, seqid, iprot, oprot):
  2625. args = get_table_args()
  2626. args.read(iprot)
  2627. iprot.readMessageEnd()
  2628. result = get_table_result()
  2629. try:
  2630. result.success = self._handler.get_table(args.dbname, args.tbl_name)
  2631. except MetaException, o1:
  2632. result.o1 = o1
  2633. except NoSuchObjectException, o2:
  2634. result.o2 = o2
  2635. oprot.writeMessageBegin("get_table", TMessageType.REPLY, seqid)
  2636. result.write(oprot)
  2637. oprot.writeMessageEnd()
  2638. oprot.trans.flush()
  2639. def process_alter_table(self, seqid, iprot, oprot):
  2640. args = alter_table_args()
  2641. args.read(iprot)
  2642. iprot.readMessageEnd()
  2643. result = alter_table_result()
  2644. try:
  2645. self._handler.alter_table(args.dbname, args.tbl_name, args.new_tbl)
  2646. except InvalidOperationException, o1:
  2647. result.o1 = o1
  2648. except MetaException, o2:
  2649. result.o2 = o2
  2650. oprot.writeMessageBegin("alter_table", TMessageType.REPLY, seqid)
  2651. result.write(oprot)
  2652. oprot.writeMessageEnd()
  2653. oprot.trans.flush()
  2654. def process_add_partition(self, seqid, iprot, oprot):
  2655. args = add_partition_args()
  2656. args.read(iprot)
  2657. iprot.readMessageEnd()
  2658. result = add_partition_result()
  2659. try:
  2660. result.success = self._handler.add_partition(args.new_part)
  2661. except InvalidObjectException, o1:
  2662. result.o1 = o1
  2663. except AlreadyExistsException, o2:
  2664. result.o2 = o2
  2665. except MetaException, o3:
  2666. result.o3 = o3
  2667. oprot.writeMessageBegin("add_partition", TMessageType.REPLY, seqid)
  2668. result.write(oprot)
  2669. oprot.writeMessageEnd()
  2670. oprot.trans.flush()
  2671. def process_append_partition(self, seqid, iprot, oprot):
  2672. args = append_partition_args()
  2673. args.read(iprot)
  2674. iprot.readMessageEnd()
  2675. result = append_partition_result()
  2676. try:
  2677. result.success = self._handler.append_partition(args.db_name, args.tbl_name, args.part_vals)
  2678. except InvalidObjectException, o1:
  2679. result.o1 = o1
  2680. except AlreadyExistsException, o2:
  2681. result.o2 = o2
  2682. except MetaException, o3:
  2683. result.o3 = o3
  2684. oprot.writeMessageBegin("append_partition", TMessageType.REPLY, seqid)
  2685. result.write(oprot)
  2686. oprot.writeMessageEnd()
  2687. oprot.trans.flush()
  2688. def process_append_partition_by_name(self, seqid, iprot, oprot):
  2689. args = append_partition_by_name_args()
  2690. args.read(iprot)
  2691. iprot.readMessageEnd()
  2692. result = append_partition_by_name_result()
  2693. try:
  2694. result.success = self._handler.append_partition_by_name(args.db_name, args.tbl_name, args.part_name)
  2695. except InvalidObjectException, o1:
  2696. result.o1 = o1
  2697. except AlreadyExistsException, o2:
  2698. result.o2 = o2
  2699. except MetaException, o3:
  2700. result.o3 = o3
  2701. oprot.writeMessageBegin("append_partition_by_name", TMessageType.REPLY, seqid)
  2702. result.write(oprot)
  2703. oprot.writeMessageEnd()
  2704. oprot.trans.flush()
  2705. def process_drop_partition(self, seqid, iprot, oprot):
  2706. args = drop_partition_args()
  2707. args.read(iprot)
  2708. iprot.readMessageEnd()
  2709. result = drop_partition_result()
  2710. try:
  2711. result.success = self._handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData)
  2712. except NoSuchObjectException, o1:
  2713. result.o1 = o1
  2714. except MetaException, o2:
  2715. result.o2 = o2
  2716. oprot.writeMessageBegin("drop_partition", TMessageType.REPLY, seqid)
  2717. result.write(oprot)
  2718. oprot.writeMessageEnd()
  2719. oprot.trans.flush()
  2720. def process_drop_partition_by_name(self, seqid, iprot, oprot):
  2721. args = drop_partition_by_name_args()
  2722. args.read(iprot)
  2723. iprot.readMessageEnd()
  2724. result = drop_partition_by_name_result()
  2725. try:
  2726. result.success = self._handler.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData)
  2727. except NoSuchObjectException, o1:
  2728. result.o1 = o1
  2729. except MetaException, o2:
  2730. result.o2 = o2
  2731. oprot.writeMessageBegin("drop_partition_by_name", TMessageType.REPLY, seqid)
  2732. result.write(oprot)
  2733. oprot.writeMessageEnd()
  2734. oprot.trans.flush()
  2735. def process_get_partition(self, seqid, iprot, oprot):
  2736. args = get_partition_args()
  2737. args.read(iprot)
  2738. iprot.readMessageEnd()
  2739. result = get_partition_result()
  2740. try:
  2741. result.success = self._handler.get_partition(args.db_name, args.tbl_name, args.part_vals)
  2742. except MetaException, o1:
  2743. result.o1 = o1
  2744. except NoSuchObjectException, o2:
  2745. result.o2 = o2
  2746. oprot.writeMessageBegin("get_partition", TMessageType.REPLY, seqid)
  2747. result.write(oprot)
  2748. oprot.writeMessageEnd()
  2749. oprot.trans.flush()
  2750. def process_get_partition_with_auth(self, seqid, iprot, oprot):
  2751. args = get_partition_with_auth_args()
  2752. args.read(iprot)
  2753. iprot.readMessageEnd()
  2754. result = get_partition_with_auth_result()
  2755. try:
  2756. result.success = self._handler.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names)
  2757. except MetaException, o1:
  2758. result.o1 = o1
  2759. except NoSuchObjectException, o2:
  2760. result.o2 = o2
  2761. oprot.writeMessageBegin("get_partition_with_auth", TMessageType.REPLY, seqid)
  2762. result.write(oprot)
  2763. oprot.writeMessageEnd()
  2764. oprot.trans.flush()
  2765. def process_get_partition_by_name(self, seqid, iprot, oprot):
  2766. args = get_partition_by_name_args()
  2767. args.read(iprot)
  2768. iprot.readMessageEnd()
  2769. result = get_partition_by_name_result()
  2770. try:
  2771. result.success = self._handler.get_partition_by_name(args.db_name, args.tbl_name, args.part_name)
  2772. except MetaException, o1:
  2773. result.o1 = o1
  2774. except NoSuchObjectException, o2:
  2775. result.o2 = o2
  2776. oprot.writeMessageBegin("get_partition_by_name", TMessageType.REPLY, seqid)
  2777. result.write(oprot)
  2778. oprot.writeMessageEnd()
  2779. oprot.trans.flush()
  2780. def process_get_partitions(self, seqid, iprot, oprot):
  2781. args = get_partitions_args()
  2782. args.read(iprot)
  2783. iprot.readMessageEnd()
  2784. result = get_partitions_result()
  2785. try:
  2786. result.success = self._handler.get_partitions(args.db_name, args.tbl_name, args.max_parts)
  2787. except NoSuchObjectException, o1:
  2788. result.o1 = o1
  2789. except MetaException, o2:
  2790. result.o2 = o2
  2791. oprot.writeMessageBegin("get_partitions", TMessageType.REPLY, seqid)
  2792. result.write(oprot)
  2793. oprot.writeMessageEnd()
  2794. oprot.trans.flush()
  2795. def process_get_partitions_with_auth(self, seqid, iprot, oprot):
  2796. args = get_partitions_with_auth_args()
  2797. args.read(iprot)
  2798. iprot.readMessageEnd()
  2799. result = get_partitions_with_auth_result()
  2800. try:
  2801. result.success = self._handler.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names)
  2802. except NoSuchObjectException, o1:
  2803. result.o1 = o1
  2804. except MetaException, o2:
  2805. result.o2 = o2
  2806. oprot.writeMessageBegin("get_partitions_with_auth", TMessageType.REPLY, seqid)
  2807. result.write(oprot)
  2808. oprot.writeMessageEnd()
  2809. oprot.trans.flush()
  2810. def process_get_partition_names(self, seqid, iprot, oprot):
  2811. args = get_partition_names_args()
  2812. args.read(iprot)
  2813. iprot.readMessageEnd()
  2814. result = get_partition_names_result()
  2815. try:
  2816. result.success = self._handler.get_partition_names(args.db_name, args.tbl_name, args.max_parts)
  2817. except MetaException, o2:
  2818. result.o2 = o2
  2819. oprot.writeMessageBegin("get_partition_names", TMessageType.REPLY, seqid)
  2820. result.write(oprot)
  2821. oprot.writeMessageEnd()
  2822. oprot.trans.flush()
  2823. def process_get_partitions_ps(self, seqid, iprot, oprot):
  2824. args = get_partitions_ps_args()
  2825. args.read(iprot)
  2826. iprot.readMessageEnd()
  2827. result = get_partitions_ps_result()
  2828. try:
  2829. result.success = self._handler.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
  2830. except MetaException, o1:
  2831. result.o1 = o1
  2832. oprot.writeMessageBegin("get_partitions_ps", TMessageType.REPLY, seqid)
  2833. result.write(oprot)
  2834. oprot.writeMessageEnd()
  2835. oprot.trans.flush()
  2836. def process_get_partitions_ps_with_auth(self, seqid, iprot, oprot):
  2837. args = get_partitions_ps_with_auth_args()
  2838. args.read(iprot)
  2839. iprot.readMessageEnd()
  2840. result = get_partitions_ps_with_auth_result()
  2841. try:
  2842. 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)
  2843. except NoSuchObjectException, o1:
  2844. result.o1 = o1
  2845. except MetaException, o2:
  2846. result.o2 = o2
  2847. oprot.writeMessageBegin("get_partitions_ps_with_auth", TMessageType.REPLY, seqid)
  2848. result.write(oprot)
  2849. oprot.writeMessageEnd()
  2850. oprot.trans.flush()
  2851. def process_get_partition_names_ps(self, seqid, iprot, oprot):
  2852. args = get_partition_names_ps_args()
  2853. args.read(iprot)
  2854. iprot.readMessageEnd()
  2855. result = get_partition_names_ps_result()
  2856. try:
  2857. result.success = self._handler.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
  2858. except MetaException, o1:
  2859. result.o1 = o1
  2860. oprot.writeMessageBegin("get_partition_names_ps", TMessageType.REPLY, seqid)
  2861. result.write(oprot)
  2862. oprot.writeMessageEnd()
  2863. oprot.trans.flush()
  2864. def process_get_partitions_by_filter(self, seqid, iprot, oprot):
  2865. args = get_partitions_by_filter_args()
  2866. args.read(iprot)
  2867. iprot.readMessageEnd()
  2868. result = get_partitions_by_filter_result()
  2869. try:
  2870. result.success = self._handler.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts)
  2871. except MetaException, o1:
  2872. result.o1 = o1
  2873. except NoSuchObjectException, o2:
  2874. result.o2 = o2
  2875. oprot.writeMessageBegin("get_partitions_by_filter", TMessageType.REPLY, seqid)
  2876. result.write(oprot)
  2877. oprot.writeMessageEnd()
  2878. oprot.trans.flush()
  2879. def process_alter_partition(self, seqid, iprot, oprot):
  2880. args = alter_partition_args()
  2881. args.read(iprot)
  2882. iprot.readMessageEnd()
  2883. result = alter_partition_result()
  2884. try:
  2885. self._handler.alter_partition(args.db_name, args.tbl_name, args.new_part)
  2886. except InvalidOperationException, o1:
  2887. result.o1 = o1
  2888. except MetaException, o2:
  2889. result.o2 = o2
  2890. oprot.writeMessageBegin("alter_partition", TMessageType.REPLY, seqid)
  2891. result.write(oprot)
  2892. oprot.writeMessageEnd()
  2893. oprot.trans.flush()
  2894. def process_get_config_value(self, seqid, iprot, oprot):
  2895. args = get_config_value_args()
  2896. args.read(iprot)
  2897. iprot.readMessageEnd()
  2898. result = get_config_value_result()
  2899. try:
  2900. result.success = self._handler.get_config_value(args.name, args.defaultValue)
  2901. except ConfigValSecurityException, o1:
  2902. result.o1 = o1
  2903. oprot.writeMessageBegin("get_config_value", TMessageType.REPLY, seqid)
  2904. result.write(oprot)
  2905. oprot.writeMessageEnd()
  2906. oprot.trans.flush()
  2907. def process_partition_name_to_vals(self, seqid, iprot, oprot):
  2908. args = partition_name_to_vals_args()
  2909. args.read(iprot)
  2910. iprot.readMessageEnd()
  2911. result = partition_name_to_vals_result()
  2912. try:
  2913. result.success = self._handler.partition_name_to_vals(args.part_name)
  2914. except MetaException, o1:
  2915. result.o1 = o1
  2916. oprot.writeMessageBegin("partition_name_to_vals", TMessageType.REPLY, seqid)
  2917. result.write(oprot)
  2918. oprot.writeMessageEnd()
  2919. oprot.trans.flush()
  2920. def process_partition_name_to_spec(self, seqid, iprot, oprot):
  2921. args = partition_name_to_spec_args()
  2922. args.read(iprot)
  2923. iprot.readMessageEnd()
  2924. result = partition_name_to_spec_result()
  2925. try:
  2926. result.success = self._handler.partition_name_to_spec(args.part_name)
  2927. except MetaException, o1:
  2928. result.o1 = o1
  2929. oprot.writeMessageBegin("partition_name_to_spec", TMessageType.REPLY, seqid)
  2930. result.write(oprot)
  2931. oprot.writeMessageEnd()
  2932. oprot.trans.flush()
  2933. def process_add_index(self, seqid, iprot, oprot):
  2934. args = add_index_args()
  2935. args.read(iprot)
  2936. iprot.readMessageEnd()
  2937. result = add_index_result()
  2938. try:
  2939. result.success = self._handler.add_index(args.new_index, args.index_table)
  2940. except InvalidObjectException, o1:
  2941. result.o1 = o1
  2942. except AlreadyExistsException, o2:
  2943. result.o2 = o2
  2944. except MetaException, o3:
  2945. result.o3 = o3
  2946. oprot.writeMessageBegin("add_index", TMessageType.REPLY, seqid)
  2947. result.write(oprot)
  2948. oprot.writeMessageEnd()
  2949. oprot.trans.flush()
  2950. def process_alter_index(self, seqid, iprot, oprot):
  2951. args = alter_index_args()
  2952. args.read(iprot)
  2953. iprot.readMessageEnd()
  2954. result = alter_index_result()
  2955. try:
  2956. self._handler.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx)
  2957. except InvalidOperationException, o1:
  2958. result.o1 = o1
  2959. except MetaException, o2:
  2960. result.o2 = o2
  2961. oprot.writeMessageBegin("alter_index", TMessageType.REPLY, seqid)
  2962. result.write(oprot)
  2963. oprot.writeMessageEnd()
  2964. oprot.trans.flush()
  2965. def process_drop_index_by_name(self, seqid, iprot, oprot):
  2966. args = drop_index_by_name_args()
  2967. args.read(iprot)
  2968. iprot.readMessageEnd()
  2969. result = drop_index_by_name_result()
  2970. try:
  2971. result.success = self._handler.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData)
  2972. except NoSuchObjectException, o1:
  2973. result.o1 = o1
  2974. except MetaException, o2:
  2975. result.o2 = o2
  2976. oprot.writeMessageBegin("drop_index_by_name", TMessageType.REPLY, seqid)
  2977. result.write(oprot)
  2978. oprot.writeMessageEnd()
  2979. oprot.trans.flush()
  2980. def process_get_index_by_name(self, seqid, iprot, oprot):
  2981. args = get_index_by_name_args()
  2982. args.read(iprot)
  2983. iprot.readMessageEnd()
  2984. result = get_index_by_name_result()
  2985. try:
  2986. result.success = self._handler.get_index_by_name(args.db_name, args.tbl_name, args.index_name)
  2987. except MetaException, o1:
  2988. result.o1 = o1
  2989. except NoSuchObjectException, o2:
  2990. result.o2 = o2
  2991. oprot.writeMessageBegin("get_index_by_name", TMessageType.REPLY, seqid)
  2992. result.write(oprot)
  2993. oprot.writeMessageEnd()
  2994. oprot.trans.flush()
  2995. def process_get_indexes(self, seqid, iprot, oprot):
  2996. args = get_indexes_args()
  2997. args.read(iprot)
  2998. iprot.readMessageEnd()
  2999. result = get_indexes_result()
  3000. try:
  3001. result.success = self._handler.get_indexes(args.db_name, args.tbl_name, args.max_indexes)
  3002. except NoSuchObjectException, o1:
  3003. result.o1 = o1
  3004. except MetaException, o2:
  3005. result.o2 = o2
  3006. oprot.writeMessageBegin("get_indexes", TMessageType.REPLY, seqid)
  3007. result.write(oprot)
  3008. oprot.writeMessageEnd()
  3009. oprot.trans.flush()
  3010. def process_get_index_names(self, seqid, iprot, oprot):
  3011. args = get_index_names_args()
  3012. args.read(iprot)
  3013. iprot.readMessageEnd()
  3014. result = get_index_names_result()
  3015. try:
  3016. result.success = self._handler.get_index_names(args.db_name, args.tbl_name, args.max_indexes)
  3017. except MetaException, o2:
  3018. result.o2 = o2
  3019. oprot.writeMessageBegin("get_index_names", TMessageType.REPLY, seqid)
  3020. result.write(oprot)
  3021. oprot.writeMessageEnd()
  3022. oprot.trans.flush()
  3023. def process_create_role(self, seqid, iprot, oprot):
  3024. args = create_role_args()
  3025. args.read(iprot)
  3026. iprot.readMessageEnd()
  3027. result = create_role_result()
  3028. try:
  3029. result.success = self._handler.create_role(args.role)
  3030. except MetaException, o1:
  3031. result.o1 = o1
  3032. oprot.writeMessageBegin("create_role", TMessageType.REPLY, seqid)
  3033. result.write(oprot)
  3034. oprot.writeMessageEnd()
  3035. oprot.trans.flush()
  3036. def process_drop_role(self, seqid, iprot, oprot):
  3037. args = drop_role_args()
  3038. args.read(iprot)
  3039. iprot.readMessageEnd()
  3040. result = drop_role_result()
  3041. try:
  3042. result.success = self._handler.drop_role(args.role_name)
  3043. except MetaException, o1:
  3044. result.o1 = o1
  3045. oprot.writeMessageBegin("drop_role", TMessageType.REPLY, seqid)
  3046. result.write(oprot)
  3047. oprot.writeMessageEnd()
  3048. oprot.trans.flush()
  3049. def process_get_role_names(self, seqid, iprot, oprot):
  3050. args = get_role_names_args()
  3051. args.read(iprot)
  3052. iprot.readMessageEnd()
  3053. result = get_role_names_result()
  3054. try:
  3055. result.success = self._handler.get_role_names()
  3056. except MetaException, o1:
  3057. result.o1 = o1
  3058. oprot.writeMessageBegin("get_role_names", TMessageType.REPLY, seqid)
  3059. result.write(oprot)
  3060. oprot.writeMessageEnd()
  3061. oprot.trans.flush()
  3062. def process_grant_role(self, seqid, iprot, oprot):
  3063. args = grant_role_args()
  3064. args.read(iprot)
  3065. iprot.readMessageEnd()
  3066. result = grant_role_result()
  3067. try:
  3068. result.success = self._handler.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option)
  3069. except MetaException, o1:
  3070. result.o1 = o1
  3071. oprot.writeMessageBegin("grant_role", TMessageType.REPLY, seqid)
  3072. result.write(oprot)
  3073. oprot.writeMessageEnd()
  3074. oprot.trans.flush()
  3075. def process_revoke_role(self, seqid, iprot, oprot):
  3076. args = revoke_role_args()
  3077. args.read(iprot)
  3078. iprot.readMessageEnd()
  3079. result = revoke_role_result()
  3080. try:
  3081. result.success = self._handler.revoke_role(args.role_name, args.principal_name, args.principal_type)
  3082. except MetaException, o1:
  3083. result.o1 = o1
  3084. oprot.writeMessageBegin("revoke_role", TMessageType.REPLY, seqid)
  3085. result.write(oprot)
  3086. oprot.writeMessageEnd()
  3087. oprot.trans.flush()
  3088. def process_list_roles(self, seqid, iprot, oprot):
  3089. args = list_roles_args()
  3090. args.read(iprot)
  3091. iprot.readMessageEnd()
  3092. result = list_roles_result()
  3093. try:
  3094. result.success = self._handler.list_roles(args.principal_name, args.principal_type)
  3095. except MetaException, o1:
  3096. result.o1 = o1
  3097. oprot.writeMessageBegin("list_roles", TMessageType.REPLY, seqid)
  3098. result.write(oprot)
  3099. oprot.writeMessageEnd()
  3100. oprot.trans.flush()
  3101. def process_get_privilege_set(self, seqid, iprot, oprot):
  3102. args = get_privilege_set_args()
  3103. args.read(iprot)
  3104. iprot.readMessageEnd()
  3105. result = get_privilege_set_result()
  3106. try:
  3107. result.success = self._handler.get_privilege_set(args.hiveObject, args.user_name, args.group_names)
  3108. except MetaException, o1:
  3109. result.o1 = o1
  3110. oprot.writeMessageBegin("get_privilege_set", TMessageType.REPLY, seqid)
  3111. result.write(oprot)
  3112. oprot.writeMessageEnd()
  3113. oprot.trans.flush()
  3114. def process_list_privileges(self, seqid, iprot, oprot):
  3115. args = list_privileges_args()
  3116. args.read(iprot)
  3117. iprot.readMessageEnd()
  3118. result = list_privileges_result()
  3119. try:
  3120. result.success = self._handler.list_privileges(args.principal_name, args.principal_type, args.hiveObject)
  3121. except MetaException, o1:
  3122. result.o1 = o1
  3123. oprot.writeMessageBegin("list_privileges", TMessageType.REPLY, seqid)
  3124. result.write(oprot)
  3125. oprot.writeMessageEnd()
  3126. oprot.trans.flush()
  3127. def process_grant_privileges(self, seqid, iprot, oprot):
  3128. args = grant_privileges_args()
  3129. args.read(iprot)
  3130. iprot.readMessageEnd()
  3131. result = grant_privileges_result()
  3132. try:
  3133. result.success = self._handler.grant_privileges(args.privileges)
  3134. except MetaException, o1:
  3135. result.o1 = o1
  3136. oprot.writeMessageBegin("grant_privileges", TMessageType.REPLY, seqid)
  3137. result.write(oprot)
  3138. oprot.writeMessageEnd()
  3139. oprot.trans.flush()
  3140. def process_revoke_privileges(self, seqid, iprot, oprot):
  3141. args = revoke_privileges_args()
  3142. args.read(iprot)
  3143. iprot.readMessageEnd()
  3144. result = revoke_privileges_result()
  3145. try:
  3146. result.success = self._handler.revoke_privileges(args.privileges)
  3147. except MetaException, o1:
  3148. result.o1 = o1
  3149. oprot.writeMessageBegin("revoke_privileges", TMessageType.REPLY, seqid)
  3150. result.write(oprot)
  3151. oprot.writeMessageEnd()
  3152. oprot.trans.flush()
  3153. def process_get_delegation_token(self, seqid, iprot, oprot):
  3154. args = get_delegation_token_args()
  3155. args.read(iprot)
  3156. iprot.readMessageEnd()
  3157. result = get_delegation_token_result()
  3158. try:
  3159. result.success = self._handler.get_delegation_token(args.renewer_kerberos_principal_name)
  3160. except MetaException, o1:
  3161. result.o1 = o1
  3162. oprot.writeMessageBegin("get_delegation_token", TMessageType.REPLY, seqid)
  3163. result.write(oprot)
  3164. oprot.writeMessageEnd()
  3165. oprot.trans.flush()
  3166. def process_get_delegation_token_with_signature(self, seqid, iprot, oprot):
  3167. args = get_delegation_token_with_signature_args()
  3168. args.read(iprot)
  3169. iprot.readMessageEnd()
  3170. result = get_delegation_token_with_signature_result()
  3171. try:
  3172. result.success = self._handler.get_delegation_token_with_signature(args.renewer_kerberos_principal_name, args.token_signature)
  3173. except MetaException, o1:
  3174. result.o1 = o1
  3175. oprot.writeMessageBegin("get_delegation_token_with_signature", TMessageType.REPLY, seqid)
  3176. result.write(oprot)
  3177. oprot.writeMessageEnd()
  3178. oprot.trans.flush()
  3179. def process_renew_delegation_token(self, seqid, iprot, oprot):
  3180. args = renew_delegation_token_args()
  3181. args.read(iprot)
  3182. iprot.readMessageEnd()
  3183. result = renew_delegation_token_result()
  3184. try:
  3185. result.success = self._handler.renew_delegation_token(args.token_str_form)
  3186. except MetaException, o1:
  3187. result.o1 = o1
  3188. oprot.writeMessageBegin("renew_delegation_token", TMessageType.REPLY, seqid)
  3189. result.write(oprot)
  3190. oprot.writeMessageEnd()
  3191. oprot.trans.flush()
  3192. def process_cancel_delegation_token(self, seqid, iprot, oprot):
  3193. args = cancel_delegation_token_args()
  3194. args.read(iprot)
  3195. iprot.readMessageEnd()
  3196. result = cancel_delegation_token_result()
  3197. try:
  3198. self._handler.cancel_delegation_token(args.token_str_form)
  3199. except MetaException, o1:
  3200. result.o1 = o1
  3201. oprot.writeMessageBegin("cancel_delegation_token", TMessageType.REPLY, seqid)
  3202. result.write(oprot)
  3203. oprot.writeMessageEnd()
  3204. oprot.trans.flush()
  3205. # HELPER FUNCTIONS AND STRUCTURES
  3206. class create_database_args(object):
  3207. """
  3208. Attributes:
  3209. - database
  3210. """
  3211. thrift_spec = (
  3212. None, # 0
  3213. (1, TType.STRUCT, 'database', (Database, Database.thrift_spec), None, ), # 1
  3214. )
  3215. def __init__(self, database=None,):
  3216. self.database = database
  3217. def read(self, iprot):
  3218. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3219. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3220. return
  3221. iprot.readStructBegin()
  3222. while True:
  3223. (fname, ftype, fid) = iprot.readFieldBegin()
  3224. if ftype == TType.STOP:
  3225. break
  3226. if fid == 1:
  3227. if ftype == TType.STRUCT:
  3228. self.database = Database()
  3229. self.database.read(iprot)
  3230. else:
  3231. iprot.skip(ftype)
  3232. else:
  3233. iprot.skip(ftype)
  3234. iprot.readFieldEnd()
  3235. iprot.readStructEnd()
  3236. def write(self, oprot):
  3237. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3238. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3239. return
  3240. oprot.writeStructBegin('create_database_args')
  3241. if self.database is not None:
  3242. oprot.writeFieldBegin('database', TType.STRUCT, 1)
  3243. self.database.write(oprot)
  3244. oprot.writeFieldEnd()
  3245. oprot.writeFieldStop()
  3246. oprot.writeStructEnd()
  3247. def validate(self):
  3248. return
  3249. def __repr__(self):
  3250. L = ['%s=%r' % (key, value)
  3251. for key, value in self.__dict__.iteritems()]
  3252. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3253. def __eq__(self, other):
  3254. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3255. def __ne__(self, other):
  3256. return not (self == other)
  3257. class create_database_result(object):
  3258. """
  3259. Attributes:
  3260. - o1
  3261. - o2
  3262. - o3
  3263. """
  3264. thrift_spec = (
  3265. None, # 0
  3266. (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1
  3267. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  3268. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  3269. )
  3270. def __init__(self, o1=None, o2=None, o3=None,):
  3271. self.o1 = o1
  3272. self.o2 = o2
  3273. self.o3 = o3
  3274. def read(self, iprot):
  3275. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3276. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3277. return
  3278. iprot.readStructBegin()
  3279. while True:
  3280. (fname, ftype, fid) = iprot.readFieldBegin()
  3281. if ftype == TType.STOP:
  3282. break
  3283. if fid == 1:
  3284. if ftype == TType.STRUCT:
  3285. self.o1 = AlreadyExistsException()
  3286. self.o1.read(iprot)
  3287. else:
  3288. iprot.skip(ftype)
  3289. elif fid == 2:
  3290. if ftype == TType.STRUCT:
  3291. self.o2 = InvalidObjectException()
  3292. self.o2.read(iprot)
  3293. else:
  3294. iprot.skip(ftype)
  3295. elif fid == 3:
  3296. if ftype == TType.STRUCT:
  3297. self.o3 = MetaException()
  3298. self.o3.read(iprot)
  3299. else:
  3300. iprot.skip(ftype)
  3301. else:
  3302. iprot.skip(ftype)
  3303. iprot.readFieldEnd()
  3304. iprot.readStructEnd()
  3305. def write(self, oprot):
  3306. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3307. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3308. return
  3309. oprot.writeStructBegin('create_database_result')
  3310. if self.o1 is not None:
  3311. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  3312. self.o1.write(oprot)
  3313. oprot.writeFieldEnd()
  3314. if self.o2 is not None:
  3315. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  3316. self.o2.write(oprot)
  3317. oprot.writeFieldEnd()
  3318. if self.o3 is not None:
  3319. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  3320. self.o3.write(oprot)
  3321. oprot.writeFieldEnd()
  3322. oprot.writeFieldStop()
  3323. oprot.writeStructEnd()
  3324. def validate(self):
  3325. return
  3326. def __repr__(self):
  3327. L = ['%s=%r' % (key, value)
  3328. for key, value in self.__dict__.iteritems()]
  3329. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3330. def __eq__(self, other):
  3331. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3332. def __ne__(self, other):
  3333. return not (self == other)
  3334. class get_database_args(object):
  3335. """
  3336. Attributes:
  3337. - name
  3338. """
  3339. thrift_spec = (
  3340. None, # 0
  3341. (1, TType.STRING, 'name', None, None, ), # 1
  3342. )
  3343. def __init__(self, name=None,):
  3344. self.name = name
  3345. def read(self, iprot):
  3346. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3347. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3348. return
  3349. iprot.readStructBegin()
  3350. while True:
  3351. (fname, ftype, fid) = iprot.readFieldBegin()
  3352. if ftype == TType.STOP:
  3353. break
  3354. if fid == 1:
  3355. if ftype == TType.STRING:
  3356. self.name = iprot.readString();
  3357. else:
  3358. iprot.skip(ftype)
  3359. else:
  3360. iprot.skip(ftype)
  3361. iprot.readFieldEnd()
  3362. iprot.readStructEnd()
  3363. def write(self, oprot):
  3364. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3365. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3366. return
  3367. oprot.writeStructBegin('get_database_args')
  3368. if self.name is not None:
  3369. oprot.writeFieldBegin('name', TType.STRING, 1)
  3370. oprot.writeString(self.name)
  3371. oprot.writeFieldEnd()
  3372. oprot.writeFieldStop()
  3373. oprot.writeStructEnd()
  3374. def validate(self):
  3375. return
  3376. def __repr__(self):
  3377. L = ['%s=%r' % (key, value)
  3378. for key, value in self.__dict__.iteritems()]
  3379. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3380. def __eq__(self, other):
  3381. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3382. def __ne__(self, other):
  3383. return not (self == other)
  3384. class get_database_result(object):
  3385. """
  3386. Attributes:
  3387. - success
  3388. - o1
  3389. - o2
  3390. """
  3391. thrift_spec = (
  3392. (0, TType.STRUCT, 'success', (Database, Database.thrift_spec), None, ), # 0
  3393. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  3394. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  3395. )
  3396. def __init__(self, success=None, o1=None, o2=None,):
  3397. self.success = success
  3398. self.o1 = o1
  3399. self.o2 = o2
  3400. def read(self, iprot):
  3401. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3402. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3403. return
  3404. iprot.readStructBegin()
  3405. while True:
  3406. (fname, ftype, fid) = iprot.readFieldBegin()
  3407. if ftype == TType.STOP:
  3408. break
  3409. if fid == 0:
  3410. if ftype == TType.STRUCT:
  3411. self.success = Database()
  3412. self.success.read(iprot)
  3413. else:
  3414. iprot.skip(ftype)
  3415. elif fid == 1:
  3416. if ftype == TType.STRUCT:
  3417. self.o1 = NoSuchObjectException()
  3418. self.o1.read(iprot)
  3419. else:
  3420. iprot.skip(ftype)
  3421. elif fid == 2:
  3422. if ftype == TType.STRUCT:
  3423. self.o2 = MetaException()
  3424. self.o2.read(iprot)
  3425. else:
  3426. iprot.skip(ftype)
  3427. else:
  3428. iprot.skip(ftype)
  3429. iprot.readFieldEnd()
  3430. iprot.readStructEnd()
  3431. def write(self, oprot):
  3432. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3433. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3434. return
  3435. oprot.writeStructBegin('get_database_result')
  3436. if self.success is not None:
  3437. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  3438. self.success.write(oprot)
  3439. oprot.writeFieldEnd()
  3440. if self.o1 is not None:
  3441. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  3442. self.o1.write(oprot)
  3443. oprot.writeFieldEnd()
  3444. if self.o2 is not None:
  3445. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  3446. self.o2.write(oprot)
  3447. oprot.writeFieldEnd()
  3448. oprot.writeFieldStop()
  3449. oprot.writeStructEnd()
  3450. def validate(self):
  3451. return
  3452. def __repr__(self):
  3453. L = ['%s=%r' % (key, value)
  3454. for key, value in self.__dict__.iteritems()]
  3455. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3456. def __eq__(self, other):
  3457. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3458. def __ne__(self, other):
  3459. return not (self == other)
  3460. class drop_database_args(object):
  3461. """
  3462. Attributes:
  3463. - name
  3464. - deleteData
  3465. """
  3466. thrift_spec = (
  3467. None, # 0
  3468. (1, TType.STRING, 'name', None, None, ), # 1
  3469. (2, TType.BOOL, 'deleteData', None, None, ), # 2
  3470. )
  3471. def __init__(self, name=None, deleteData=None,):
  3472. self.name = name
  3473. self.deleteData = deleteData
  3474. def read(self, iprot):
  3475. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3476. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3477. return
  3478. iprot.readStructBegin()
  3479. while True:
  3480. (fname, ftype, fid) = iprot.readFieldBegin()
  3481. if ftype == TType.STOP:
  3482. break
  3483. if fid == 1:
  3484. if ftype == TType.STRING:
  3485. self.name = iprot.readString();
  3486. else:
  3487. iprot.skip(ftype)
  3488. elif fid == 2:
  3489. if ftype == TType.BOOL:
  3490. self.deleteData = iprot.readBool();
  3491. else:
  3492. iprot.skip(ftype)
  3493. else:
  3494. iprot.skip(ftype)
  3495. iprot.readFieldEnd()
  3496. iprot.readStructEnd()
  3497. def write(self, oprot):
  3498. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3499. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3500. return
  3501. oprot.writeStructBegin('drop_database_args')
  3502. if self.name is not None:
  3503. oprot.writeFieldBegin('name', TType.STRING, 1)
  3504. oprot.writeString(self.name)
  3505. oprot.writeFieldEnd()
  3506. if self.deleteData is not None:
  3507. oprot.writeFieldBegin('deleteData', TType.BOOL, 2)
  3508. oprot.writeBool(self.deleteData)
  3509. oprot.writeFieldEnd()
  3510. oprot.writeFieldStop()
  3511. oprot.writeStructEnd()
  3512. def validate(self):
  3513. return
  3514. def __repr__(self):
  3515. L = ['%s=%r' % (key, value)
  3516. for key, value in self.__dict__.iteritems()]
  3517. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3518. def __eq__(self, other):
  3519. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3520. def __ne__(self, other):
  3521. return not (self == other)
  3522. class drop_database_result(object):
  3523. """
  3524. Attributes:
  3525. - o1
  3526. - o2
  3527. - o3
  3528. """
  3529. thrift_spec = (
  3530. None, # 0
  3531. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  3532. (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2
  3533. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  3534. )
  3535. def __init__(self, o1=None, o2=None, o3=None,):
  3536. self.o1 = o1
  3537. self.o2 = o2
  3538. self.o3 = o3
  3539. def read(self, iprot):
  3540. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3541. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3542. return
  3543. iprot.readStructBegin()
  3544. while True:
  3545. (fname, ftype, fid) = iprot.readFieldBegin()
  3546. if ftype == TType.STOP:
  3547. break
  3548. if fid == 1:
  3549. if ftype == TType.STRUCT:
  3550. self.o1 = NoSuchObjectException()
  3551. self.o1.read(iprot)
  3552. else:
  3553. iprot.skip(ftype)
  3554. elif fid == 2:
  3555. if ftype == TType.STRUCT:
  3556. self.o2 = InvalidOperationException()
  3557. self.o2.read(iprot)
  3558. else:
  3559. iprot.skip(ftype)
  3560. elif fid == 3:
  3561. if ftype == TType.STRUCT:
  3562. self.o3 = MetaException()
  3563. self.o3.read(iprot)
  3564. else:
  3565. iprot.skip(ftype)
  3566. else:
  3567. iprot.skip(ftype)
  3568. iprot.readFieldEnd()
  3569. iprot.readStructEnd()
  3570. def write(self, oprot):
  3571. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3572. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3573. return
  3574. oprot.writeStructBegin('drop_database_result')
  3575. if self.o1 is not None:
  3576. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  3577. self.o1.write(oprot)
  3578. oprot.writeFieldEnd()
  3579. if self.o2 is not None:
  3580. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  3581. self.o2.write(oprot)
  3582. oprot.writeFieldEnd()
  3583. if self.o3 is not None:
  3584. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  3585. self.o3.write(oprot)
  3586. oprot.writeFieldEnd()
  3587. oprot.writeFieldStop()
  3588. oprot.writeStructEnd()
  3589. def validate(self):
  3590. return
  3591. def __repr__(self):
  3592. L = ['%s=%r' % (key, value)
  3593. for key, value in self.__dict__.iteritems()]
  3594. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3595. def __eq__(self, other):
  3596. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3597. def __ne__(self, other):
  3598. return not (self == other)
  3599. class get_databases_args(object):
  3600. """
  3601. Attributes:
  3602. - pattern
  3603. """
  3604. thrift_spec = (
  3605. None, # 0
  3606. (1, TType.STRING, 'pattern', None, None, ), # 1
  3607. )
  3608. def __init__(self, pattern=None,):
  3609. self.pattern = pattern
  3610. def read(self, iprot):
  3611. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3612. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3613. return
  3614. iprot.readStructBegin()
  3615. while True:
  3616. (fname, ftype, fid) = iprot.readFieldBegin()
  3617. if ftype == TType.STOP:
  3618. break
  3619. if fid == 1:
  3620. if ftype == TType.STRING:
  3621. self.pattern = iprot.readString();
  3622. else:
  3623. iprot.skip(ftype)
  3624. else:
  3625. iprot.skip(ftype)
  3626. iprot.readFieldEnd()
  3627. iprot.readStructEnd()
  3628. def write(self, oprot):
  3629. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3630. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3631. return
  3632. oprot.writeStructBegin('get_databases_args')
  3633. if self.pattern is not None:
  3634. oprot.writeFieldBegin('pattern', TType.STRING, 1)
  3635. oprot.writeString(self.pattern)
  3636. oprot.writeFieldEnd()
  3637. oprot.writeFieldStop()
  3638. oprot.writeStructEnd()
  3639. def validate(self):
  3640. return
  3641. def __repr__(self):
  3642. L = ['%s=%r' % (key, value)
  3643. for key, value in self.__dict__.iteritems()]
  3644. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3645. def __eq__(self, other):
  3646. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3647. def __ne__(self, other):
  3648. return not (self == other)
  3649. class get_databases_result(object):
  3650. """
  3651. Attributes:
  3652. - success
  3653. - o1
  3654. """
  3655. thrift_spec = (
  3656. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  3657. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  3658. )
  3659. def __init__(self, success=None, o1=None,):
  3660. self.success = success
  3661. self.o1 = o1
  3662. def read(self, iprot):
  3663. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3664. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3665. return
  3666. iprot.readStructBegin()
  3667. while True:
  3668. (fname, ftype, fid) = iprot.readFieldBegin()
  3669. if ftype == TType.STOP:
  3670. break
  3671. if fid == 0:
  3672. if ftype == TType.LIST:
  3673. self.success = []
  3674. (_etype177, _size174) = iprot.readListBegin()
  3675. for _i178 in xrange(_size174):
  3676. _elem179 = iprot.readString();
  3677. self.success.append(_elem179)
  3678. iprot.readListEnd()
  3679. else:
  3680. iprot.skip(ftype)
  3681. elif fid == 1:
  3682. if ftype == TType.STRUCT:
  3683. self.o1 = MetaException()
  3684. self.o1.read(iprot)
  3685. else:
  3686. iprot.skip(ftype)
  3687. else:
  3688. iprot.skip(ftype)
  3689. iprot.readFieldEnd()
  3690. iprot.readStructEnd()
  3691. def write(self, oprot):
  3692. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3693. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3694. return
  3695. oprot.writeStructBegin('get_databases_result')
  3696. if self.success is not None:
  3697. oprot.writeFieldBegin('success', TType.LIST, 0)
  3698. oprot.writeListBegin(TType.STRING, len(self.success))
  3699. for iter180 in self.success:
  3700. oprot.writeString(iter180)
  3701. oprot.writeListEnd()
  3702. oprot.writeFieldEnd()
  3703. if self.o1 is not None:
  3704. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  3705. self.o1.write(oprot)
  3706. oprot.writeFieldEnd()
  3707. oprot.writeFieldStop()
  3708. oprot.writeStructEnd()
  3709. def validate(self):
  3710. return
  3711. def __repr__(self):
  3712. L = ['%s=%r' % (key, value)
  3713. for key, value in self.__dict__.iteritems()]
  3714. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3715. def __eq__(self, other):
  3716. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3717. def __ne__(self, other):
  3718. return not (self == other)
  3719. class get_all_databases_args(object):
  3720. thrift_spec = (
  3721. )
  3722. def read(self, iprot):
  3723. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3724. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3725. return
  3726. iprot.readStructBegin()
  3727. while True:
  3728. (fname, ftype, fid) = iprot.readFieldBegin()
  3729. if ftype == TType.STOP:
  3730. break
  3731. else:
  3732. iprot.skip(ftype)
  3733. iprot.readFieldEnd()
  3734. iprot.readStructEnd()
  3735. def write(self, oprot):
  3736. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3737. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3738. return
  3739. oprot.writeStructBegin('get_all_databases_args')
  3740. oprot.writeFieldStop()
  3741. oprot.writeStructEnd()
  3742. def validate(self):
  3743. return
  3744. def __repr__(self):
  3745. L = ['%s=%r' % (key, value)
  3746. for key, value in self.__dict__.iteritems()]
  3747. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3748. def __eq__(self, other):
  3749. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3750. def __ne__(self, other):
  3751. return not (self == other)
  3752. class get_all_databases_result(object):
  3753. """
  3754. Attributes:
  3755. - success
  3756. - o1
  3757. """
  3758. thrift_spec = (
  3759. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  3760. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  3761. )
  3762. def __init__(self, success=None, o1=None,):
  3763. self.success = success
  3764. self.o1 = o1
  3765. def read(self, iprot):
  3766. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3767. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3768. return
  3769. iprot.readStructBegin()
  3770. while True:
  3771. (fname, ftype, fid) = iprot.readFieldBegin()
  3772. if ftype == TType.STOP:
  3773. break
  3774. if fid == 0:
  3775. if ftype == TType.LIST:
  3776. self.success = []
  3777. (_etype184, _size181) = iprot.readListBegin()
  3778. for _i185 in xrange(_size181):
  3779. _elem186 = iprot.readString();
  3780. self.success.append(_elem186)
  3781. iprot.readListEnd()
  3782. else:
  3783. iprot.skip(ftype)
  3784. elif fid == 1:
  3785. if ftype == TType.STRUCT:
  3786. self.o1 = MetaException()
  3787. self.o1.read(iprot)
  3788. else:
  3789. iprot.skip(ftype)
  3790. else:
  3791. iprot.skip(ftype)
  3792. iprot.readFieldEnd()
  3793. iprot.readStructEnd()
  3794. def write(self, oprot):
  3795. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3796. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3797. return
  3798. oprot.writeStructBegin('get_all_databases_result')
  3799. if self.success is not None:
  3800. oprot.writeFieldBegin('success', TType.LIST, 0)
  3801. oprot.writeListBegin(TType.STRING, len(self.success))
  3802. for iter187 in self.success:
  3803. oprot.writeString(iter187)
  3804. oprot.writeListEnd()
  3805. oprot.writeFieldEnd()
  3806. if self.o1 is not None:
  3807. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  3808. self.o1.write(oprot)
  3809. oprot.writeFieldEnd()
  3810. oprot.writeFieldStop()
  3811. oprot.writeStructEnd()
  3812. def validate(self):
  3813. return
  3814. def __repr__(self):
  3815. L = ['%s=%r' % (key, value)
  3816. for key, value in self.__dict__.iteritems()]
  3817. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3818. def __eq__(self, other):
  3819. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3820. def __ne__(self, other):
  3821. return not (self == other)
  3822. class alter_database_args(object):
  3823. """
  3824. Attributes:
  3825. - dbname
  3826. - db
  3827. """
  3828. thrift_spec = (
  3829. None, # 0
  3830. (1, TType.STRING, 'dbname', None, None, ), # 1
  3831. (2, TType.STRUCT, 'db', (Database, Database.thrift_spec), None, ), # 2
  3832. )
  3833. def __init__(self, dbname=None, db=None,):
  3834. self.dbname = dbname
  3835. self.db = db
  3836. def read(self, iprot):
  3837. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3838. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3839. return
  3840. iprot.readStructBegin()
  3841. while True:
  3842. (fname, ftype, fid) = iprot.readFieldBegin()
  3843. if ftype == TType.STOP:
  3844. break
  3845. if fid == 1:
  3846. if ftype == TType.STRING:
  3847. self.dbname = iprot.readString();
  3848. else:
  3849. iprot.skip(ftype)
  3850. elif fid == 2:
  3851. if ftype == TType.STRUCT:
  3852. self.db = Database()
  3853. self.db.read(iprot)
  3854. else:
  3855. iprot.skip(ftype)
  3856. else:
  3857. iprot.skip(ftype)
  3858. iprot.readFieldEnd()
  3859. iprot.readStructEnd()
  3860. def write(self, oprot):
  3861. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3862. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3863. return
  3864. oprot.writeStructBegin('alter_database_args')
  3865. if self.dbname is not None:
  3866. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  3867. oprot.writeString(self.dbname)
  3868. oprot.writeFieldEnd()
  3869. if self.db is not None:
  3870. oprot.writeFieldBegin('db', TType.STRUCT, 2)
  3871. self.db.write(oprot)
  3872. oprot.writeFieldEnd()
  3873. oprot.writeFieldStop()
  3874. oprot.writeStructEnd()
  3875. def validate(self):
  3876. return
  3877. def __repr__(self):
  3878. L = ['%s=%r' % (key, value)
  3879. for key, value in self.__dict__.iteritems()]
  3880. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3881. def __eq__(self, other):
  3882. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3883. def __ne__(self, other):
  3884. return not (self == other)
  3885. class alter_database_result(object):
  3886. """
  3887. Attributes:
  3888. - o1
  3889. - o2
  3890. """
  3891. thrift_spec = (
  3892. None, # 0
  3893. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  3894. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  3895. )
  3896. def __init__(self, o1=None, o2=None,):
  3897. self.o1 = o1
  3898. self.o2 = o2
  3899. def read(self, iprot):
  3900. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3901. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3902. return
  3903. iprot.readStructBegin()
  3904. while True:
  3905. (fname, ftype, fid) = iprot.readFieldBegin()
  3906. if ftype == TType.STOP:
  3907. break
  3908. if fid == 1:
  3909. if ftype == TType.STRUCT:
  3910. self.o1 = MetaException()
  3911. self.o1.read(iprot)
  3912. else:
  3913. iprot.skip(ftype)
  3914. elif fid == 2:
  3915. if ftype == TType.STRUCT:
  3916. self.o2 = NoSuchObjectException()
  3917. self.o2.read(iprot)
  3918. else:
  3919. iprot.skip(ftype)
  3920. else:
  3921. iprot.skip(ftype)
  3922. iprot.readFieldEnd()
  3923. iprot.readStructEnd()
  3924. def write(self, oprot):
  3925. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3926. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3927. return
  3928. oprot.writeStructBegin('alter_database_result')
  3929. if self.o1 is not None:
  3930. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  3931. self.o1.write(oprot)
  3932. oprot.writeFieldEnd()
  3933. if self.o2 is not None:
  3934. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  3935. self.o2.write(oprot)
  3936. oprot.writeFieldEnd()
  3937. oprot.writeFieldStop()
  3938. oprot.writeStructEnd()
  3939. def validate(self):
  3940. return
  3941. def __repr__(self):
  3942. L = ['%s=%r' % (key, value)
  3943. for key, value in self.__dict__.iteritems()]
  3944. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3945. def __eq__(self, other):
  3946. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3947. def __ne__(self, other):
  3948. return not (self == other)
  3949. class get_type_args(object):
  3950. """
  3951. Attributes:
  3952. - name
  3953. """
  3954. thrift_spec = (
  3955. None, # 0
  3956. (1, TType.STRING, 'name', None, None, ), # 1
  3957. )
  3958. def __init__(self, name=None,):
  3959. self.name = name
  3960. def read(self, iprot):
  3961. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3962. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3963. return
  3964. iprot.readStructBegin()
  3965. while True:
  3966. (fname, ftype, fid) = iprot.readFieldBegin()
  3967. if ftype == TType.STOP:
  3968. break
  3969. if fid == 1:
  3970. if ftype == TType.STRING:
  3971. self.name = iprot.readString();
  3972. else:
  3973. iprot.skip(ftype)
  3974. else:
  3975. iprot.skip(ftype)
  3976. iprot.readFieldEnd()
  3977. iprot.readStructEnd()
  3978. def write(self, oprot):
  3979. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3980. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3981. return
  3982. oprot.writeStructBegin('get_type_args')
  3983. if self.name is not None:
  3984. oprot.writeFieldBegin('name', TType.STRING, 1)
  3985. oprot.writeString(self.name)
  3986. oprot.writeFieldEnd()
  3987. oprot.writeFieldStop()
  3988. oprot.writeStructEnd()
  3989. def validate(self):
  3990. return
  3991. def __repr__(self):
  3992. L = ['%s=%r' % (key, value)
  3993. for key, value in self.__dict__.iteritems()]
  3994. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3995. def __eq__(self, other):
  3996. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3997. def __ne__(self, other):
  3998. return not (self == other)
  3999. class get_type_result(object):
  4000. """
  4001. Attributes:
  4002. - success
  4003. - o1
  4004. - o2
  4005. """
  4006. thrift_spec = (
  4007. (0, TType.STRUCT, 'success', (Type, Type.thrift_spec), None, ), # 0
  4008. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  4009. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  4010. )
  4011. def __init__(self, success=None, o1=None, o2=None,):
  4012. self.success = success
  4013. self.o1 = o1
  4014. self.o2 = o2
  4015. def read(self, iprot):
  4016. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4017. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4018. return
  4019. iprot.readStructBegin()
  4020. while True:
  4021. (fname, ftype, fid) = iprot.readFieldBegin()
  4022. if ftype == TType.STOP:
  4023. break
  4024. if fid == 0:
  4025. if ftype == TType.STRUCT:
  4026. self.success = Type()
  4027. self.success.read(iprot)
  4028. else:
  4029. iprot.skip(ftype)
  4030. elif fid == 1:
  4031. if ftype == TType.STRUCT:
  4032. self.o1 = MetaException()
  4033. self.o1.read(iprot)
  4034. else:
  4035. iprot.skip(ftype)
  4036. elif fid == 2:
  4037. if ftype == TType.STRUCT:
  4038. self.o2 = NoSuchObjectException()
  4039. self.o2.read(iprot)
  4040. else:
  4041. iprot.skip(ftype)
  4042. else:
  4043. iprot.skip(ftype)
  4044. iprot.readFieldEnd()
  4045. iprot.readStructEnd()
  4046. def write(self, oprot):
  4047. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4048. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4049. return
  4050. oprot.writeStructBegin('get_type_result')
  4051. if self.success is not None:
  4052. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  4053. self.success.write(oprot)
  4054. oprot.writeFieldEnd()
  4055. if self.o1 is not None:
  4056. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  4057. self.o1.write(oprot)
  4058. oprot.writeFieldEnd()
  4059. if self.o2 is not None:
  4060. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  4061. self.o2.write(oprot)
  4062. oprot.writeFieldEnd()
  4063. oprot.writeFieldStop()
  4064. oprot.writeStructEnd()
  4065. def validate(self):
  4066. return
  4067. def __repr__(self):
  4068. L = ['%s=%r' % (key, value)
  4069. for key, value in self.__dict__.iteritems()]
  4070. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4071. def __eq__(self, other):
  4072. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4073. def __ne__(self, other):
  4074. return not (self == other)
  4075. class create_type_args(object):
  4076. """
  4077. Attributes:
  4078. - type
  4079. """
  4080. thrift_spec = (
  4081. None, # 0
  4082. (1, TType.STRUCT, 'type', (Type, Type.thrift_spec), None, ), # 1
  4083. )
  4084. def __init__(self, type=None,):
  4085. self.type = type
  4086. def read(self, iprot):
  4087. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4088. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4089. return
  4090. iprot.readStructBegin()
  4091. while True:
  4092. (fname, ftype, fid) = iprot.readFieldBegin()
  4093. if ftype == TType.STOP:
  4094. break
  4095. if fid == 1:
  4096. if ftype == TType.STRUCT:
  4097. self.type = Type()
  4098. self.type.read(iprot)
  4099. else:
  4100. iprot.skip(ftype)
  4101. else:
  4102. iprot.skip(ftype)
  4103. iprot.readFieldEnd()
  4104. iprot.readStructEnd()
  4105. def write(self, oprot):
  4106. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4107. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4108. return
  4109. oprot.writeStructBegin('create_type_args')
  4110. if self.type is not None:
  4111. oprot.writeFieldBegin('type', TType.STRUCT, 1)
  4112. self.type.write(oprot)
  4113. oprot.writeFieldEnd()
  4114. oprot.writeFieldStop()
  4115. oprot.writeStructEnd()
  4116. def validate(self):
  4117. return
  4118. def __repr__(self):
  4119. L = ['%s=%r' % (key, value)
  4120. for key, value in self.__dict__.iteritems()]
  4121. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4122. def __eq__(self, other):
  4123. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4124. def __ne__(self, other):
  4125. return not (self == other)
  4126. class create_type_result(object):
  4127. """
  4128. Attributes:
  4129. - success
  4130. - o1
  4131. - o2
  4132. - o3
  4133. """
  4134. thrift_spec = (
  4135. (0, TType.BOOL, 'success', None, None, ), # 0
  4136. (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1
  4137. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  4138. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  4139. )
  4140. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  4141. self.success = success
  4142. self.o1 = o1
  4143. self.o2 = o2
  4144. self.o3 = o3
  4145. def read(self, iprot):
  4146. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4147. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4148. return
  4149. iprot.readStructBegin()
  4150. while True:
  4151. (fname, ftype, fid) = iprot.readFieldBegin()
  4152. if ftype == TType.STOP:
  4153. break
  4154. if fid == 0:
  4155. if ftype == TType.BOOL:
  4156. self.success = iprot.readBool();
  4157. else:
  4158. iprot.skip(ftype)
  4159. elif fid == 1:
  4160. if ftype == TType.STRUCT:
  4161. self.o1 = AlreadyExistsException()
  4162. self.o1.read(iprot)
  4163. else:
  4164. iprot.skip(ftype)
  4165. elif fid == 2:
  4166. if ftype == TType.STRUCT:
  4167. self.o2 = InvalidObjectException()
  4168. self.o2.read(iprot)
  4169. else:
  4170. iprot.skip(ftype)
  4171. elif fid == 3:
  4172. if ftype == TType.STRUCT:
  4173. self.o3 = MetaException()
  4174. self.o3.read(iprot)
  4175. else:
  4176. iprot.skip(ftype)
  4177. else:
  4178. iprot.skip(ftype)
  4179. iprot.readFieldEnd()
  4180. iprot.readStructEnd()
  4181. def write(self, oprot):
  4182. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4183. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4184. return
  4185. oprot.writeStructBegin('create_type_result')
  4186. if self.success is not None:
  4187. oprot.writeFieldBegin('success', TType.BOOL, 0)
  4188. oprot.writeBool(self.success)
  4189. oprot.writeFieldEnd()
  4190. if self.o1 is not None:
  4191. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  4192. self.o1.write(oprot)
  4193. oprot.writeFieldEnd()
  4194. if self.o2 is not None:
  4195. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  4196. self.o2.write(oprot)
  4197. oprot.writeFieldEnd()
  4198. if self.o3 is not None:
  4199. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  4200. self.o3.write(oprot)
  4201. oprot.writeFieldEnd()
  4202. oprot.writeFieldStop()
  4203. oprot.writeStructEnd()
  4204. def validate(self):
  4205. return
  4206. def __repr__(self):
  4207. L = ['%s=%r' % (key, value)
  4208. for key, value in self.__dict__.iteritems()]
  4209. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4210. def __eq__(self, other):
  4211. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4212. def __ne__(self, other):
  4213. return not (self == other)
  4214. class drop_type_args(object):
  4215. """
  4216. Attributes:
  4217. - type
  4218. """
  4219. thrift_spec = (
  4220. None, # 0
  4221. (1, TType.STRING, 'type', None, None, ), # 1
  4222. )
  4223. def __init__(self, type=None,):
  4224. self.type = type
  4225. def read(self, iprot):
  4226. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4227. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4228. return
  4229. iprot.readStructBegin()
  4230. while True:
  4231. (fname, ftype, fid) = iprot.readFieldBegin()
  4232. if ftype == TType.STOP:
  4233. break
  4234. if fid == 1:
  4235. if ftype == TType.STRING:
  4236. self.type = iprot.readString();
  4237. else:
  4238. iprot.skip(ftype)
  4239. else:
  4240. iprot.skip(ftype)
  4241. iprot.readFieldEnd()
  4242. iprot.readStructEnd()
  4243. def write(self, oprot):
  4244. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4245. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4246. return
  4247. oprot.writeStructBegin('drop_type_args')
  4248. if self.type is not None:
  4249. oprot.writeFieldBegin('type', TType.STRING, 1)
  4250. oprot.writeString(self.type)
  4251. oprot.writeFieldEnd()
  4252. oprot.writeFieldStop()
  4253. oprot.writeStructEnd()
  4254. def validate(self):
  4255. return
  4256. def __repr__(self):
  4257. L = ['%s=%r' % (key, value)
  4258. for key, value in self.__dict__.iteritems()]
  4259. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4260. def __eq__(self, other):
  4261. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4262. def __ne__(self, other):
  4263. return not (self == other)
  4264. class drop_type_result(object):
  4265. """
  4266. Attributes:
  4267. - success
  4268. - o1
  4269. - o2
  4270. """
  4271. thrift_spec = (
  4272. (0, TType.BOOL, 'success', None, None, ), # 0
  4273. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  4274. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  4275. )
  4276. def __init__(self, success=None, o1=None, o2=None,):
  4277. self.success = success
  4278. self.o1 = o1
  4279. self.o2 = o2
  4280. def read(self, iprot):
  4281. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4282. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4283. return
  4284. iprot.readStructBegin()
  4285. while True:
  4286. (fname, ftype, fid) = iprot.readFieldBegin()
  4287. if ftype == TType.STOP:
  4288. break
  4289. if fid == 0:
  4290. if ftype == TType.BOOL:
  4291. self.success = iprot.readBool();
  4292. else:
  4293. iprot.skip(ftype)
  4294. elif fid == 1:
  4295. if ftype == TType.STRUCT:
  4296. self.o1 = MetaException()
  4297. self.o1.read(iprot)
  4298. else:
  4299. iprot.skip(ftype)
  4300. elif fid == 2:
  4301. if ftype == TType.STRUCT:
  4302. self.o2 = NoSuchObjectException()
  4303. self.o2.read(iprot)
  4304. else:
  4305. iprot.skip(ftype)
  4306. else:
  4307. iprot.skip(ftype)
  4308. iprot.readFieldEnd()
  4309. iprot.readStructEnd()
  4310. def write(self, oprot):
  4311. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4312. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4313. return
  4314. oprot.writeStructBegin('drop_type_result')
  4315. if self.success is not None:
  4316. oprot.writeFieldBegin('success', TType.BOOL, 0)
  4317. oprot.writeBool(self.success)
  4318. oprot.writeFieldEnd()
  4319. if self.o1 is not None:
  4320. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  4321. self.o1.write(oprot)
  4322. oprot.writeFieldEnd()
  4323. if self.o2 is not None:
  4324. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  4325. self.o2.write(oprot)
  4326. oprot.writeFieldEnd()
  4327. oprot.writeFieldStop()
  4328. oprot.writeStructEnd()
  4329. def validate(self):
  4330. return
  4331. def __repr__(self):
  4332. L = ['%s=%r' % (key, value)
  4333. for key, value in self.__dict__.iteritems()]
  4334. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4335. def __eq__(self, other):
  4336. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4337. def __ne__(self, other):
  4338. return not (self == other)
  4339. class get_type_all_args(object):
  4340. """
  4341. Attributes:
  4342. - name
  4343. """
  4344. thrift_spec = (
  4345. None, # 0
  4346. (1, TType.STRING, 'name', None, None, ), # 1
  4347. )
  4348. def __init__(self, name=None,):
  4349. self.name = name
  4350. def read(self, iprot):
  4351. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4352. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4353. return
  4354. iprot.readStructBegin()
  4355. while True:
  4356. (fname, ftype, fid) = iprot.readFieldBegin()
  4357. if ftype == TType.STOP:
  4358. break
  4359. if fid == 1:
  4360. if ftype == TType.STRING:
  4361. self.name = iprot.readString();
  4362. else:
  4363. iprot.skip(ftype)
  4364. else:
  4365. iprot.skip(ftype)
  4366. iprot.readFieldEnd()
  4367. iprot.readStructEnd()
  4368. def write(self, oprot):
  4369. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4370. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4371. return
  4372. oprot.writeStructBegin('get_type_all_args')
  4373. if self.name is not None:
  4374. oprot.writeFieldBegin('name', TType.STRING, 1)
  4375. oprot.writeString(self.name)
  4376. oprot.writeFieldEnd()
  4377. oprot.writeFieldStop()
  4378. oprot.writeStructEnd()
  4379. def validate(self):
  4380. return
  4381. def __repr__(self):
  4382. L = ['%s=%r' % (key, value)
  4383. for key, value in self.__dict__.iteritems()]
  4384. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4385. def __eq__(self, other):
  4386. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4387. def __ne__(self, other):
  4388. return not (self == other)
  4389. class get_type_all_result(object):
  4390. """
  4391. Attributes:
  4392. - success
  4393. - o2
  4394. """
  4395. thrift_spec = (
  4396. (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(Type, Type.thrift_spec)), None, ), # 0
  4397. (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1
  4398. )
  4399. def __init__(self, success=None, o2=None,):
  4400. self.success = success
  4401. self.o2 = o2
  4402. def read(self, iprot):
  4403. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4404. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4405. return
  4406. iprot.readStructBegin()
  4407. while True:
  4408. (fname, ftype, fid) = iprot.readFieldBegin()
  4409. if ftype == TType.STOP:
  4410. break
  4411. if fid == 0:
  4412. if ftype == TType.MAP:
  4413. self.success = {}
  4414. (_ktype189, _vtype190, _size188 ) = iprot.readMapBegin()
  4415. for _i192 in xrange(_size188):
  4416. _key193 = iprot.readString();
  4417. _val194 = Type()
  4418. _val194.read(iprot)
  4419. self.success[_key193] = _val194
  4420. iprot.readMapEnd()
  4421. else:
  4422. iprot.skip(ftype)
  4423. elif fid == 1:
  4424. if ftype == TType.STRUCT:
  4425. self.o2 = MetaException()
  4426. self.o2.read(iprot)
  4427. else:
  4428. iprot.skip(ftype)
  4429. else:
  4430. iprot.skip(ftype)
  4431. iprot.readFieldEnd()
  4432. iprot.readStructEnd()
  4433. def write(self, oprot):
  4434. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4435. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4436. return
  4437. oprot.writeStructBegin('get_type_all_result')
  4438. if self.success is not None:
  4439. oprot.writeFieldBegin('success', TType.MAP, 0)
  4440. oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
  4441. for kiter195,viter196 in self.success.items():
  4442. oprot.writeString(kiter195)
  4443. viter196.write(oprot)
  4444. oprot.writeMapEnd()
  4445. oprot.writeFieldEnd()
  4446. if self.o2 is not None:
  4447. oprot.writeFieldBegin('o2', TType.STRUCT, 1)
  4448. self.o2.write(oprot)
  4449. oprot.writeFieldEnd()
  4450. oprot.writeFieldStop()
  4451. oprot.writeStructEnd()
  4452. def validate(self):
  4453. return
  4454. def __repr__(self):
  4455. L = ['%s=%r' % (key, value)
  4456. for key, value in self.__dict__.iteritems()]
  4457. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4458. def __eq__(self, other):
  4459. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4460. def __ne__(self, other):
  4461. return not (self == other)
  4462. class get_fields_args(object):
  4463. """
  4464. Attributes:
  4465. - db_name
  4466. - table_name
  4467. """
  4468. thrift_spec = (
  4469. None, # 0
  4470. (1, TType.STRING, 'db_name', None, None, ), # 1
  4471. (2, TType.STRING, 'table_name', None, None, ), # 2
  4472. )
  4473. def __init__(self, db_name=None, table_name=None,):
  4474. self.db_name = db_name
  4475. self.table_name = table_name
  4476. def read(self, iprot):
  4477. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4478. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4479. return
  4480. iprot.readStructBegin()
  4481. while True:
  4482. (fname, ftype, fid) = iprot.readFieldBegin()
  4483. if ftype == TType.STOP:
  4484. break
  4485. if fid == 1:
  4486. if ftype == TType.STRING:
  4487. self.db_name = iprot.readString();
  4488. else:
  4489. iprot.skip(ftype)
  4490. elif fid == 2:
  4491. if ftype == TType.STRING:
  4492. self.table_name = iprot.readString();
  4493. else:
  4494. iprot.skip(ftype)
  4495. else:
  4496. iprot.skip(ftype)
  4497. iprot.readFieldEnd()
  4498. iprot.readStructEnd()
  4499. def write(self, oprot):
  4500. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4501. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4502. return
  4503. oprot.writeStructBegin('get_fields_args')
  4504. if self.db_name is not None:
  4505. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  4506. oprot.writeString(self.db_name)
  4507. oprot.writeFieldEnd()
  4508. if self.table_name is not None:
  4509. oprot.writeFieldBegin('table_name', TType.STRING, 2)
  4510. oprot.writeString(self.table_name)
  4511. oprot.writeFieldEnd()
  4512. oprot.writeFieldStop()
  4513. oprot.writeStructEnd()
  4514. def validate(self):
  4515. return
  4516. def __repr__(self):
  4517. L = ['%s=%r' % (key, value)
  4518. for key, value in self.__dict__.iteritems()]
  4519. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4520. def __eq__(self, other):
  4521. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4522. def __ne__(self, other):
  4523. return not (self == other)
  4524. class get_fields_result(object):
  4525. """
  4526. Attributes:
  4527. - success
  4528. - o1
  4529. - o2
  4530. - o3
  4531. """
  4532. thrift_spec = (
  4533. (0, TType.LIST, 'success', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 0
  4534. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  4535. (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2
  4536. (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3
  4537. )
  4538. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  4539. self.success = success
  4540. self.o1 = o1
  4541. self.o2 = o2
  4542. self.o3 = o3
  4543. def read(self, iprot):
  4544. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4545. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4546. return
  4547. iprot.readStructBegin()
  4548. while True:
  4549. (fname, ftype, fid) = iprot.readFieldBegin()
  4550. if ftype == TType.STOP:
  4551. break
  4552. if fid == 0:
  4553. if ftype == TType.LIST:
  4554. self.success = []
  4555. (_etype200, _size197) = iprot.readListBegin()
  4556. for _i201 in xrange(_size197):
  4557. _elem202 = FieldSchema()
  4558. _elem202.read(iprot)
  4559. self.success.append(_elem202)
  4560. iprot.readListEnd()
  4561. else:
  4562. iprot.skip(ftype)
  4563. elif fid == 1:
  4564. if ftype == TType.STRUCT:
  4565. self.o1 = MetaException()
  4566. self.o1.read(iprot)
  4567. else:
  4568. iprot.skip(ftype)
  4569. elif fid == 2:
  4570. if ftype == TType.STRUCT:
  4571. self.o2 = UnknownTableException()
  4572. self.o2.read(iprot)
  4573. else:
  4574. iprot.skip(ftype)
  4575. elif fid == 3:
  4576. if ftype == TType.STRUCT:
  4577. self.o3 = UnknownDBException()
  4578. self.o3.read(iprot)
  4579. else:
  4580. iprot.skip(ftype)
  4581. else:
  4582. iprot.skip(ftype)
  4583. iprot.readFieldEnd()
  4584. iprot.readStructEnd()
  4585. def write(self, oprot):
  4586. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4587. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4588. return
  4589. oprot.writeStructBegin('get_fields_result')
  4590. if self.success is not None:
  4591. oprot.writeFieldBegin('success', TType.LIST, 0)
  4592. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4593. for iter203 in self.success:
  4594. iter203.write(oprot)
  4595. oprot.writeListEnd()
  4596. oprot.writeFieldEnd()
  4597. if self.o1 is not None:
  4598. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  4599. self.o1.write(oprot)
  4600. oprot.writeFieldEnd()
  4601. if self.o2 is not None:
  4602. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  4603. self.o2.write(oprot)
  4604. oprot.writeFieldEnd()
  4605. if self.o3 is not None:
  4606. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  4607. self.o3.write(oprot)
  4608. oprot.writeFieldEnd()
  4609. oprot.writeFieldStop()
  4610. oprot.writeStructEnd()
  4611. def validate(self):
  4612. return
  4613. def __repr__(self):
  4614. L = ['%s=%r' % (key, value)
  4615. for key, value in self.__dict__.iteritems()]
  4616. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4617. def __eq__(self, other):
  4618. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4619. def __ne__(self, other):
  4620. return not (self == other)
  4621. class get_schema_args(object):
  4622. """
  4623. Attributes:
  4624. - db_name
  4625. - table_name
  4626. """
  4627. thrift_spec = (
  4628. None, # 0
  4629. (1, TType.STRING, 'db_name', None, None, ), # 1
  4630. (2, TType.STRING, 'table_name', None, None, ), # 2
  4631. )
  4632. def __init__(self, db_name=None, table_name=None,):
  4633. self.db_name = db_name
  4634. self.table_name = table_name
  4635. def read(self, iprot):
  4636. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4637. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4638. return
  4639. iprot.readStructBegin()
  4640. while True:
  4641. (fname, ftype, fid) = iprot.readFieldBegin()
  4642. if ftype == TType.STOP:
  4643. break
  4644. if fid == 1:
  4645. if ftype == TType.STRING:
  4646. self.db_name = iprot.readString();
  4647. else:
  4648. iprot.skip(ftype)
  4649. elif fid == 2:
  4650. if ftype == TType.STRING:
  4651. self.table_name = iprot.readString();
  4652. else:
  4653. iprot.skip(ftype)
  4654. else:
  4655. iprot.skip(ftype)
  4656. iprot.readFieldEnd()
  4657. iprot.readStructEnd()
  4658. def write(self, oprot):
  4659. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4660. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4661. return
  4662. oprot.writeStructBegin('get_schema_args')
  4663. if self.db_name is not None:
  4664. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  4665. oprot.writeString(self.db_name)
  4666. oprot.writeFieldEnd()
  4667. if self.table_name is not None:
  4668. oprot.writeFieldBegin('table_name', TType.STRING, 2)
  4669. oprot.writeString(self.table_name)
  4670. oprot.writeFieldEnd()
  4671. oprot.writeFieldStop()
  4672. oprot.writeStructEnd()
  4673. def validate(self):
  4674. return
  4675. def __repr__(self):
  4676. L = ['%s=%r' % (key, value)
  4677. for key, value in self.__dict__.iteritems()]
  4678. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4679. def __eq__(self, other):
  4680. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4681. def __ne__(self, other):
  4682. return not (self == other)
  4683. class get_schema_result(object):
  4684. """
  4685. Attributes:
  4686. - success
  4687. - o1
  4688. - o2
  4689. - o3
  4690. """
  4691. thrift_spec = (
  4692. (0, TType.LIST, 'success', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 0
  4693. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  4694. (2, TType.STRUCT, 'o2', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 2
  4695. (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3
  4696. )
  4697. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  4698. self.success = success
  4699. self.o1 = o1
  4700. self.o2 = o2
  4701. self.o3 = o3
  4702. def read(self, iprot):
  4703. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4704. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4705. return
  4706. iprot.readStructBegin()
  4707. while True:
  4708. (fname, ftype, fid) = iprot.readFieldBegin()
  4709. if ftype == TType.STOP:
  4710. break
  4711. if fid == 0:
  4712. if ftype == TType.LIST:
  4713. self.success = []
  4714. (_etype207, _size204) = iprot.readListBegin()
  4715. for _i208 in xrange(_size204):
  4716. _elem209 = FieldSchema()
  4717. _elem209.read(iprot)
  4718. self.success.append(_elem209)
  4719. iprot.readListEnd()
  4720. else:
  4721. iprot.skip(ftype)
  4722. elif fid == 1:
  4723. if ftype == TType.STRUCT:
  4724. self.o1 = MetaException()
  4725. self.o1.read(iprot)
  4726. else:
  4727. iprot.skip(ftype)
  4728. elif fid == 2:
  4729. if ftype == TType.STRUCT:
  4730. self.o2 = UnknownTableException()
  4731. self.o2.read(iprot)
  4732. else:
  4733. iprot.skip(ftype)
  4734. elif fid == 3:
  4735. if ftype == TType.STRUCT:
  4736. self.o3 = UnknownDBException()
  4737. self.o3.read(iprot)
  4738. else:
  4739. iprot.skip(ftype)
  4740. else:
  4741. iprot.skip(ftype)
  4742. iprot.readFieldEnd()
  4743. iprot.readStructEnd()
  4744. def write(self, oprot):
  4745. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4746. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4747. return
  4748. oprot.writeStructBegin('get_schema_result')
  4749. if self.success is not None:
  4750. oprot.writeFieldBegin('success', TType.LIST, 0)
  4751. oprot.writeListBegin(TType.STRUCT, len(self.success))
  4752. for iter210 in self.success:
  4753. iter210.write(oprot)
  4754. oprot.writeListEnd()
  4755. oprot.writeFieldEnd()
  4756. if self.o1 is not None:
  4757. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  4758. self.o1.write(oprot)
  4759. oprot.writeFieldEnd()
  4760. if self.o2 is not None:
  4761. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  4762. self.o2.write(oprot)
  4763. oprot.writeFieldEnd()
  4764. if self.o3 is not None:
  4765. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  4766. self.o3.write(oprot)
  4767. oprot.writeFieldEnd()
  4768. oprot.writeFieldStop()
  4769. oprot.writeStructEnd()
  4770. def validate(self):
  4771. return
  4772. def __repr__(self):
  4773. L = ['%s=%r' % (key, value)
  4774. for key, value in self.__dict__.iteritems()]
  4775. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4776. def __eq__(self, other):
  4777. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4778. def __ne__(self, other):
  4779. return not (self == other)
  4780. class create_table_args(object):
  4781. """
  4782. Attributes:
  4783. - tbl
  4784. """
  4785. thrift_spec = (
  4786. None, # 0
  4787. (1, TType.STRUCT, 'tbl', (Table, Table.thrift_spec), None, ), # 1
  4788. )
  4789. def __init__(self, tbl=None,):
  4790. self.tbl = tbl
  4791. def read(self, iprot):
  4792. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4793. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4794. return
  4795. iprot.readStructBegin()
  4796. while True:
  4797. (fname, ftype, fid) = iprot.readFieldBegin()
  4798. if ftype == TType.STOP:
  4799. break
  4800. if fid == 1:
  4801. if ftype == TType.STRUCT:
  4802. self.tbl = Table()
  4803. self.tbl.read(iprot)
  4804. else:
  4805. iprot.skip(ftype)
  4806. else:
  4807. iprot.skip(ftype)
  4808. iprot.readFieldEnd()
  4809. iprot.readStructEnd()
  4810. def write(self, oprot):
  4811. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4812. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4813. return
  4814. oprot.writeStructBegin('create_table_args')
  4815. if self.tbl is not None:
  4816. oprot.writeFieldBegin('tbl', TType.STRUCT, 1)
  4817. self.tbl.write(oprot)
  4818. oprot.writeFieldEnd()
  4819. oprot.writeFieldStop()
  4820. oprot.writeStructEnd()
  4821. def validate(self):
  4822. return
  4823. def __repr__(self):
  4824. L = ['%s=%r' % (key, value)
  4825. for key, value in self.__dict__.iteritems()]
  4826. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4827. def __eq__(self, other):
  4828. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4829. def __ne__(self, other):
  4830. return not (self == other)
  4831. class create_table_result(object):
  4832. """
  4833. Attributes:
  4834. - o1
  4835. - o2
  4836. - o3
  4837. - o4
  4838. """
  4839. thrift_spec = (
  4840. None, # 0
  4841. (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1
  4842. (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2
  4843. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  4844. (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4
  4845. )
  4846. def __init__(self, o1=None, o2=None, o3=None, o4=None,):
  4847. self.o1 = o1
  4848. self.o2 = o2
  4849. self.o3 = o3
  4850. self.o4 = o4
  4851. def read(self, iprot):
  4852. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4853. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4854. return
  4855. iprot.readStructBegin()
  4856. while True:
  4857. (fname, ftype, fid) = iprot.readFieldBegin()
  4858. if ftype == TType.STOP:
  4859. break
  4860. if fid == 1:
  4861. if ftype == TType.STRUCT:
  4862. self.o1 = AlreadyExistsException()
  4863. self.o1.read(iprot)
  4864. else:
  4865. iprot.skip(ftype)
  4866. elif fid == 2:
  4867. if ftype == TType.STRUCT:
  4868. self.o2 = InvalidObjectException()
  4869. self.o2.read(iprot)
  4870. else:
  4871. iprot.skip(ftype)
  4872. elif fid == 3:
  4873. if ftype == TType.STRUCT:
  4874. self.o3 = MetaException()
  4875. self.o3.read(iprot)
  4876. else:
  4877. iprot.skip(ftype)
  4878. elif fid == 4:
  4879. if ftype == TType.STRUCT:
  4880. self.o4 = NoSuchObjectException()
  4881. self.o4.read(iprot)
  4882. else:
  4883. iprot.skip(ftype)
  4884. else:
  4885. iprot.skip(ftype)
  4886. iprot.readFieldEnd()
  4887. iprot.readStructEnd()
  4888. def write(self, oprot):
  4889. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4890. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4891. return
  4892. oprot.writeStructBegin('create_table_result')
  4893. if self.o1 is not None:
  4894. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  4895. self.o1.write(oprot)
  4896. oprot.writeFieldEnd()
  4897. if self.o2 is not None:
  4898. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  4899. self.o2.write(oprot)
  4900. oprot.writeFieldEnd()
  4901. if self.o3 is not None:
  4902. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  4903. self.o3.write(oprot)
  4904. oprot.writeFieldEnd()
  4905. if self.o4 is not None:
  4906. oprot.writeFieldBegin('o4', TType.STRUCT, 4)
  4907. self.o4.write(oprot)
  4908. oprot.writeFieldEnd()
  4909. oprot.writeFieldStop()
  4910. oprot.writeStructEnd()
  4911. def validate(self):
  4912. return
  4913. def __repr__(self):
  4914. L = ['%s=%r' % (key, value)
  4915. for key, value in self.__dict__.iteritems()]
  4916. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4917. def __eq__(self, other):
  4918. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4919. def __ne__(self, other):
  4920. return not (self == other)
  4921. class drop_table_args(object):
  4922. """
  4923. Attributes:
  4924. - dbname
  4925. - name
  4926. - deleteData
  4927. """
  4928. thrift_spec = (
  4929. None, # 0
  4930. (1, TType.STRING, 'dbname', None, None, ), # 1
  4931. (2, TType.STRING, 'name', None, None, ), # 2
  4932. (3, TType.BOOL, 'deleteData', None, None, ), # 3
  4933. )
  4934. def __init__(self, dbname=None, name=None, deleteData=None,):
  4935. self.dbname = dbname
  4936. self.name = name
  4937. self.deleteData = deleteData
  4938. def read(self, iprot):
  4939. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  4940. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  4941. return
  4942. iprot.readStructBegin()
  4943. while True:
  4944. (fname, ftype, fid) = iprot.readFieldBegin()
  4945. if ftype == TType.STOP:
  4946. break
  4947. if fid == 1:
  4948. if ftype == TType.STRING:
  4949. self.dbname = iprot.readString();
  4950. else:
  4951. iprot.skip(ftype)
  4952. elif fid == 2:
  4953. if ftype == TType.STRING:
  4954. self.name = iprot.readString();
  4955. else:
  4956. iprot.skip(ftype)
  4957. elif fid == 3:
  4958. if ftype == TType.BOOL:
  4959. self.deleteData = iprot.readBool();
  4960. else:
  4961. iprot.skip(ftype)
  4962. else:
  4963. iprot.skip(ftype)
  4964. iprot.readFieldEnd()
  4965. iprot.readStructEnd()
  4966. def write(self, oprot):
  4967. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  4968. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  4969. return
  4970. oprot.writeStructBegin('drop_table_args')
  4971. if self.dbname is not None:
  4972. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  4973. oprot.writeString(self.dbname)
  4974. oprot.writeFieldEnd()
  4975. if self.name is not None:
  4976. oprot.writeFieldBegin('name', TType.STRING, 2)
  4977. oprot.writeString(self.name)
  4978. oprot.writeFieldEnd()
  4979. if self.deleteData is not None:
  4980. oprot.writeFieldBegin('deleteData', TType.BOOL, 3)
  4981. oprot.writeBool(self.deleteData)
  4982. oprot.writeFieldEnd()
  4983. oprot.writeFieldStop()
  4984. oprot.writeStructEnd()
  4985. def validate(self):
  4986. return
  4987. def __repr__(self):
  4988. L = ['%s=%r' % (key, value)
  4989. for key, value in self.__dict__.iteritems()]
  4990. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  4991. def __eq__(self, other):
  4992. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  4993. def __ne__(self, other):
  4994. return not (self == other)
  4995. class drop_table_result(object):
  4996. """
  4997. Attributes:
  4998. - o1
  4999. - o3
  5000. """
  5001. thrift_spec = (
  5002. None, # 0
  5003. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  5004. (2, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 2
  5005. )
  5006. def __init__(self, o1=None, o3=None,):
  5007. self.o1 = o1
  5008. self.o3 = o3
  5009. def read(self, iprot):
  5010. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5011. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5012. return
  5013. iprot.readStructBegin()
  5014. while True:
  5015. (fname, ftype, fid) = iprot.readFieldBegin()
  5016. if ftype == TType.STOP:
  5017. break
  5018. if fid == 1:
  5019. if ftype == TType.STRUCT:
  5020. self.o1 = NoSuchObjectException()
  5021. self.o1.read(iprot)
  5022. else:
  5023. iprot.skip(ftype)
  5024. elif fid == 2:
  5025. if ftype == TType.STRUCT:
  5026. self.o3 = MetaException()
  5027. self.o3.read(iprot)
  5028. else:
  5029. iprot.skip(ftype)
  5030. else:
  5031. iprot.skip(ftype)
  5032. iprot.readFieldEnd()
  5033. iprot.readStructEnd()
  5034. def write(self, oprot):
  5035. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5036. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5037. return
  5038. oprot.writeStructBegin('drop_table_result')
  5039. if self.o1 is not None:
  5040. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5041. self.o1.write(oprot)
  5042. oprot.writeFieldEnd()
  5043. if self.o3 is not None:
  5044. oprot.writeFieldBegin('o3', TType.STRUCT, 2)
  5045. self.o3.write(oprot)
  5046. oprot.writeFieldEnd()
  5047. oprot.writeFieldStop()
  5048. oprot.writeStructEnd()
  5049. def validate(self):
  5050. return
  5051. def __repr__(self):
  5052. L = ['%s=%r' % (key, value)
  5053. for key, value in self.__dict__.iteritems()]
  5054. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5055. def __eq__(self, other):
  5056. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5057. def __ne__(self, other):
  5058. return not (self == other)
  5059. class get_tables_args(object):
  5060. """
  5061. Attributes:
  5062. - db_name
  5063. - pattern
  5064. """
  5065. thrift_spec = (
  5066. None, # 0
  5067. (1, TType.STRING, 'db_name', None, None, ), # 1
  5068. (2, TType.STRING, 'pattern', None, None, ), # 2
  5069. )
  5070. def __init__(self, db_name=None, pattern=None,):
  5071. self.db_name = db_name
  5072. self.pattern = pattern
  5073. def read(self, iprot):
  5074. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5075. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5076. return
  5077. iprot.readStructBegin()
  5078. while True:
  5079. (fname, ftype, fid) = iprot.readFieldBegin()
  5080. if ftype == TType.STOP:
  5081. break
  5082. if fid == 1:
  5083. if ftype == TType.STRING:
  5084. self.db_name = iprot.readString();
  5085. else:
  5086. iprot.skip(ftype)
  5087. elif fid == 2:
  5088. if ftype == TType.STRING:
  5089. self.pattern = iprot.readString();
  5090. else:
  5091. iprot.skip(ftype)
  5092. else:
  5093. iprot.skip(ftype)
  5094. iprot.readFieldEnd()
  5095. iprot.readStructEnd()
  5096. def write(self, oprot):
  5097. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5098. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5099. return
  5100. oprot.writeStructBegin('get_tables_args')
  5101. if self.db_name is not None:
  5102. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  5103. oprot.writeString(self.db_name)
  5104. oprot.writeFieldEnd()
  5105. if self.pattern is not None:
  5106. oprot.writeFieldBegin('pattern', TType.STRING, 2)
  5107. oprot.writeString(self.pattern)
  5108. oprot.writeFieldEnd()
  5109. oprot.writeFieldStop()
  5110. oprot.writeStructEnd()
  5111. def validate(self):
  5112. return
  5113. def __repr__(self):
  5114. L = ['%s=%r' % (key, value)
  5115. for key, value in self.__dict__.iteritems()]
  5116. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5117. def __eq__(self, other):
  5118. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5119. def __ne__(self, other):
  5120. return not (self == other)
  5121. class get_tables_result(object):
  5122. """
  5123. Attributes:
  5124. - success
  5125. - o1
  5126. """
  5127. thrift_spec = (
  5128. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  5129. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  5130. )
  5131. def __init__(self, success=None, o1=None,):
  5132. self.success = success
  5133. self.o1 = o1
  5134. def read(self, iprot):
  5135. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5136. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5137. return
  5138. iprot.readStructBegin()
  5139. while True:
  5140. (fname, ftype, fid) = iprot.readFieldBegin()
  5141. if ftype == TType.STOP:
  5142. break
  5143. if fid == 0:
  5144. if ftype == TType.LIST:
  5145. self.success = []
  5146. (_etype214, _size211) = iprot.readListBegin()
  5147. for _i215 in xrange(_size211):
  5148. _elem216 = iprot.readString();
  5149. self.success.append(_elem216)
  5150. iprot.readListEnd()
  5151. else:
  5152. iprot.skip(ftype)
  5153. elif fid == 1:
  5154. if ftype == TType.STRUCT:
  5155. self.o1 = MetaException()
  5156. self.o1.read(iprot)
  5157. else:
  5158. iprot.skip(ftype)
  5159. else:
  5160. iprot.skip(ftype)
  5161. iprot.readFieldEnd()
  5162. iprot.readStructEnd()
  5163. def write(self, oprot):
  5164. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5165. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5166. return
  5167. oprot.writeStructBegin('get_tables_result')
  5168. if self.success is not None:
  5169. oprot.writeFieldBegin('success', TType.LIST, 0)
  5170. oprot.writeListBegin(TType.STRING, len(self.success))
  5171. for iter217 in self.success:
  5172. oprot.writeString(iter217)
  5173. oprot.writeListEnd()
  5174. oprot.writeFieldEnd()
  5175. if self.o1 is not None:
  5176. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5177. self.o1.write(oprot)
  5178. oprot.writeFieldEnd()
  5179. oprot.writeFieldStop()
  5180. oprot.writeStructEnd()
  5181. def validate(self):
  5182. return
  5183. def __repr__(self):
  5184. L = ['%s=%r' % (key, value)
  5185. for key, value in self.__dict__.iteritems()]
  5186. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5187. def __eq__(self, other):
  5188. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5189. def __ne__(self, other):
  5190. return not (self == other)
  5191. class get_all_tables_args(object):
  5192. """
  5193. Attributes:
  5194. - db_name
  5195. """
  5196. thrift_spec = (
  5197. None, # 0
  5198. (1, TType.STRING, 'db_name', None, None, ), # 1
  5199. )
  5200. def __init__(self, db_name=None,):
  5201. self.db_name = db_name
  5202. def read(self, iprot):
  5203. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5204. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5205. return
  5206. iprot.readStructBegin()
  5207. while True:
  5208. (fname, ftype, fid) = iprot.readFieldBegin()
  5209. if ftype == TType.STOP:
  5210. break
  5211. if fid == 1:
  5212. if ftype == TType.STRING:
  5213. self.db_name = iprot.readString();
  5214. else:
  5215. iprot.skip(ftype)
  5216. else:
  5217. iprot.skip(ftype)
  5218. iprot.readFieldEnd()
  5219. iprot.readStructEnd()
  5220. def write(self, oprot):
  5221. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5222. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5223. return
  5224. oprot.writeStructBegin('get_all_tables_args')
  5225. if self.db_name is not None:
  5226. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  5227. oprot.writeString(self.db_name)
  5228. oprot.writeFieldEnd()
  5229. oprot.writeFieldStop()
  5230. oprot.writeStructEnd()
  5231. def validate(self):
  5232. return
  5233. def __repr__(self):
  5234. L = ['%s=%r' % (key, value)
  5235. for key, value in self.__dict__.iteritems()]
  5236. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5237. def __eq__(self, other):
  5238. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5239. def __ne__(self, other):
  5240. return not (self == other)
  5241. class get_all_tables_result(object):
  5242. """
  5243. Attributes:
  5244. - success
  5245. - o1
  5246. """
  5247. thrift_spec = (
  5248. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  5249. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  5250. )
  5251. def __init__(self, success=None, o1=None,):
  5252. self.success = success
  5253. self.o1 = o1
  5254. def read(self, iprot):
  5255. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5256. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5257. return
  5258. iprot.readStructBegin()
  5259. while True:
  5260. (fname, ftype, fid) = iprot.readFieldBegin()
  5261. if ftype == TType.STOP:
  5262. break
  5263. if fid == 0:
  5264. if ftype == TType.LIST:
  5265. self.success = []
  5266. (_etype221, _size218) = iprot.readListBegin()
  5267. for _i222 in xrange(_size218):
  5268. _elem223 = iprot.readString();
  5269. self.success.append(_elem223)
  5270. iprot.readListEnd()
  5271. else:
  5272. iprot.skip(ftype)
  5273. elif fid == 1:
  5274. if ftype == TType.STRUCT:
  5275. self.o1 = MetaException()
  5276. self.o1.read(iprot)
  5277. else:
  5278. iprot.skip(ftype)
  5279. else:
  5280. iprot.skip(ftype)
  5281. iprot.readFieldEnd()
  5282. iprot.readStructEnd()
  5283. def write(self, oprot):
  5284. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5285. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5286. return
  5287. oprot.writeStructBegin('get_all_tables_result')
  5288. if self.success is not None:
  5289. oprot.writeFieldBegin('success', TType.LIST, 0)
  5290. oprot.writeListBegin(TType.STRING, len(self.success))
  5291. for iter224 in self.success:
  5292. oprot.writeString(iter224)
  5293. oprot.writeListEnd()
  5294. oprot.writeFieldEnd()
  5295. if self.o1 is not None:
  5296. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5297. self.o1.write(oprot)
  5298. oprot.writeFieldEnd()
  5299. oprot.writeFieldStop()
  5300. oprot.writeStructEnd()
  5301. def validate(self):
  5302. return
  5303. def __repr__(self):
  5304. L = ['%s=%r' % (key, value)
  5305. for key, value in self.__dict__.iteritems()]
  5306. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5307. def __eq__(self, other):
  5308. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5309. def __ne__(self, other):
  5310. return not (self == other)
  5311. class get_table_args(object):
  5312. """
  5313. Attributes:
  5314. - dbname
  5315. - tbl_name
  5316. """
  5317. thrift_spec = (
  5318. None, # 0
  5319. (1, TType.STRING, 'dbname', None, None, ), # 1
  5320. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  5321. )
  5322. def __init__(self, dbname=None, tbl_name=None,):
  5323. self.dbname = dbname
  5324. self.tbl_name = tbl_name
  5325. def read(self, iprot):
  5326. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5327. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5328. return
  5329. iprot.readStructBegin()
  5330. while True:
  5331. (fname, ftype, fid) = iprot.readFieldBegin()
  5332. if ftype == TType.STOP:
  5333. break
  5334. if fid == 1:
  5335. if ftype == TType.STRING:
  5336. self.dbname = iprot.readString();
  5337. else:
  5338. iprot.skip(ftype)
  5339. elif fid == 2:
  5340. if ftype == TType.STRING:
  5341. self.tbl_name = iprot.readString();
  5342. else:
  5343. iprot.skip(ftype)
  5344. else:
  5345. iprot.skip(ftype)
  5346. iprot.readFieldEnd()
  5347. iprot.readStructEnd()
  5348. def write(self, oprot):
  5349. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5350. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5351. return
  5352. oprot.writeStructBegin('get_table_args')
  5353. if self.dbname is not None:
  5354. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  5355. oprot.writeString(self.dbname)
  5356. oprot.writeFieldEnd()
  5357. if self.tbl_name is not None:
  5358. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  5359. oprot.writeString(self.tbl_name)
  5360. oprot.writeFieldEnd()
  5361. oprot.writeFieldStop()
  5362. oprot.writeStructEnd()
  5363. def validate(self):
  5364. return
  5365. def __repr__(self):
  5366. L = ['%s=%r' % (key, value)
  5367. for key, value in self.__dict__.iteritems()]
  5368. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5369. def __eq__(self, other):
  5370. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5371. def __ne__(self, other):
  5372. return not (self == other)
  5373. class get_table_result(object):
  5374. """
  5375. Attributes:
  5376. - success
  5377. - o1
  5378. - o2
  5379. """
  5380. thrift_spec = (
  5381. (0, TType.STRUCT, 'success', (Table, Table.thrift_spec), None, ), # 0
  5382. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  5383. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  5384. )
  5385. def __init__(self, success=None, o1=None, o2=None,):
  5386. self.success = success
  5387. self.o1 = o1
  5388. self.o2 = o2
  5389. def read(self, iprot):
  5390. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5391. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5392. return
  5393. iprot.readStructBegin()
  5394. while True:
  5395. (fname, ftype, fid) = iprot.readFieldBegin()
  5396. if ftype == TType.STOP:
  5397. break
  5398. if fid == 0:
  5399. if ftype == TType.STRUCT:
  5400. self.success = Table()
  5401. self.success.read(iprot)
  5402. else:
  5403. iprot.skip(ftype)
  5404. elif fid == 1:
  5405. if ftype == TType.STRUCT:
  5406. self.o1 = MetaException()
  5407. self.o1.read(iprot)
  5408. else:
  5409. iprot.skip(ftype)
  5410. elif fid == 2:
  5411. if ftype == TType.STRUCT:
  5412. self.o2 = NoSuchObjectException()
  5413. self.o2.read(iprot)
  5414. else:
  5415. iprot.skip(ftype)
  5416. else:
  5417. iprot.skip(ftype)
  5418. iprot.readFieldEnd()
  5419. iprot.readStructEnd()
  5420. def write(self, oprot):
  5421. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5422. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5423. return
  5424. oprot.writeStructBegin('get_table_result')
  5425. if self.success is not None:
  5426. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  5427. self.success.write(oprot)
  5428. oprot.writeFieldEnd()
  5429. if self.o1 is not None:
  5430. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5431. self.o1.write(oprot)
  5432. oprot.writeFieldEnd()
  5433. if self.o2 is not None:
  5434. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  5435. self.o2.write(oprot)
  5436. oprot.writeFieldEnd()
  5437. oprot.writeFieldStop()
  5438. oprot.writeStructEnd()
  5439. def validate(self):
  5440. return
  5441. def __repr__(self):
  5442. L = ['%s=%r' % (key, value)
  5443. for key, value in self.__dict__.iteritems()]
  5444. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5445. def __eq__(self, other):
  5446. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5447. def __ne__(self, other):
  5448. return not (self == other)
  5449. class alter_table_args(object):
  5450. """
  5451. Attributes:
  5452. - dbname
  5453. - tbl_name
  5454. - new_tbl
  5455. """
  5456. thrift_spec = (
  5457. None, # 0
  5458. (1, TType.STRING, 'dbname', None, None, ), # 1
  5459. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  5460. (3, TType.STRUCT, 'new_tbl', (Table, Table.thrift_spec), None, ), # 3
  5461. )
  5462. def __init__(self, dbname=None, tbl_name=None, new_tbl=None,):
  5463. self.dbname = dbname
  5464. self.tbl_name = tbl_name
  5465. self.new_tbl = new_tbl
  5466. def read(self, iprot):
  5467. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5468. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5469. return
  5470. iprot.readStructBegin()
  5471. while True:
  5472. (fname, ftype, fid) = iprot.readFieldBegin()
  5473. if ftype == TType.STOP:
  5474. break
  5475. if fid == 1:
  5476. if ftype == TType.STRING:
  5477. self.dbname = iprot.readString();
  5478. else:
  5479. iprot.skip(ftype)
  5480. elif fid == 2:
  5481. if ftype == TType.STRING:
  5482. self.tbl_name = iprot.readString();
  5483. else:
  5484. iprot.skip(ftype)
  5485. elif fid == 3:
  5486. if ftype == TType.STRUCT:
  5487. self.new_tbl = Table()
  5488. self.new_tbl.read(iprot)
  5489. else:
  5490. iprot.skip(ftype)
  5491. else:
  5492. iprot.skip(ftype)
  5493. iprot.readFieldEnd()
  5494. iprot.readStructEnd()
  5495. def write(self, oprot):
  5496. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5497. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5498. return
  5499. oprot.writeStructBegin('alter_table_args')
  5500. if self.dbname is not None:
  5501. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  5502. oprot.writeString(self.dbname)
  5503. oprot.writeFieldEnd()
  5504. if self.tbl_name is not None:
  5505. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  5506. oprot.writeString(self.tbl_name)
  5507. oprot.writeFieldEnd()
  5508. if self.new_tbl is not None:
  5509. oprot.writeFieldBegin('new_tbl', TType.STRUCT, 3)
  5510. self.new_tbl.write(oprot)
  5511. oprot.writeFieldEnd()
  5512. oprot.writeFieldStop()
  5513. oprot.writeStructEnd()
  5514. def validate(self):
  5515. return
  5516. def __repr__(self):
  5517. L = ['%s=%r' % (key, value)
  5518. for key, value in self.__dict__.iteritems()]
  5519. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5520. def __eq__(self, other):
  5521. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5522. def __ne__(self, other):
  5523. return not (self == other)
  5524. class alter_table_result(object):
  5525. """
  5526. Attributes:
  5527. - o1
  5528. - o2
  5529. """
  5530. thrift_spec = (
  5531. None, # 0
  5532. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  5533. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  5534. )
  5535. def __init__(self, o1=None, o2=None,):
  5536. self.o1 = o1
  5537. self.o2 = o2
  5538. def read(self, iprot):
  5539. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5540. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5541. return
  5542. iprot.readStructBegin()
  5543. while True:
  5544. (fname, ftype, fid) = iprot.readFieldBegin()
  5545. if ftype == TType.STOP:
  5546. break
  5547. if fid == 1:
  5548. if ftype == TType.STRUCT:
  5549. self.o1 = InvalidOperationException()
  5550. self.o1.read(iprot)
  5551. else:
  5552. iprot.skip(ftype)
  5553. elif fid == 2:
  5554. if ftype == TType.STRUCT:
  5555. self.o2 = MetaException()
  5556. self.o2.read(iprot)
  5557. else:
  5558. iprot.skip(ftype)
  5559. else:
  5560. iprot.skip(ftype)
  5561. iprot.readFieldEnd()
  5562. iprot.readStructEnd()
  5563. def write(self, oprot):
  5564. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5565. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5566. return
  5567. oprot.writeStructBegin('alter_table_result')
  5568. if self.o1 is not None:
  5569. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5570. self.o1.write(oprot)
  5571. oprot.writeFieldEnd()
  5572. if self.o2 is not None:
  5573. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  5574. self.o2.write(oprot)
  5575. oprot.writeFieldEnd()
  5576. oprot.writeFieldStop()
  5577. oprot.writeStructEnd()
  5578. def validate(self):
  5579. return
  5580. def __repr__(self):
  5581. L = ['%s=%r' % (key, value)
  5582. for key, value in self.__dict__.iteritems()]
  5583. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5584. def __eq__(self, other):
  5585. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5586. def __ne__(self, other):
  5587. return not (self == other)
  5588. class add_partition_args(object):
  5589. """
  5590. Attributes:
  5591. - new_part
  5592. """
  5593. thrift_spec = (
  5594. None, # 0
  5595. (1, TType.STRUCT, 'new_part', (Partition, Partition.thrift_spec), None, ), # 1
  5596. )
  5597. def __init__(self, new_part=None,):
  5598. self.new_part = new_part
  5599. def read(self, iprot):
  5600. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5601. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5602. return
  5603. iprot.readStructBegin()
  5604. while True:
  5605. (fname, ftype, fid) = iprot.readFieldBegin()
  5606. if ftype == TType.STOP:
  5607. break
  5608. if fid == 1:
  5609. if ftype == TType.STRUCT:
  5610. self.new_part = Partition()
  5611. self.new_part.read(iprot)
  5612. else:
  5613. iprot.skip(ftype)
  5614. else:
  5615. iprot.skip(ftype)
  5616. iprot.readFieldEnd()
  5617. iprot.readStructEnd()
  5618. def write(self, oprot):
  5619. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5620. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5621. return
  5622. oprot.writeStructBegin('add_partition_args')
  5623. if self.new_part is not None:
  5624. oprot.writeFieldBegin('new_part', TType.STRUCT, 1)
  5625. self.new_part.write(oprot)
  5626. oprot.writeFieldEnd()
  5627. oprot.writeFieldStop()
  5628. oprot.writeStructEnd()
  5629. def validate(self):
  5630. return
  5631. def __repr__(self):
  5632. L = ['%s=%r' % (key, value)
  5633. for key, value in self.__dict__.iteritems()]
  5634. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5635. def __eq__(self, other):
  5636. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5637. def __ne__(self, other):
  5638. return not (self == other)
  5639. class add_partition_result(object):
  5640. """
  5641. Attributes:
  5642. - success
  5643. - o1
  5644. - o2
  5645. - o3
  5646. """
  5647. thrift_spec = (
  5648. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  5649. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  5650. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  5651. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  5652. )
  5653. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  5654. self.success = success
  5655. self.o1 = o1
  5656. self.o2 = o2
  5657. self.o3 = o3
  5658. def read(self, iprot):
  5659. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5660. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5661. return
  5662. iprot.readStructBegin()
  5663. while True:
  5664. (fname, ftype, fid) = iprot.readFieldBegin()
  5665. if ftype == TType.STOP:
  5666. break
  5667. if fid == 0:
  5668. if ftype == TType.STRUCT:
  5669. self.success = Partition()
  5670. self.success.read(iprot)
  5671. else:
  5672. iprot.skip(ftype)
  5673. elif fid == 1:
  5674. if ftype == TType.STRUCT:
  5675. self.o1 = InvalidObjectException()
  5676. self.o1.read(iprot)
  5677. else:
  5678. iprot.skip(ftype)
  5679. elif fid == 2:
  5680. if ftype == TType.STRUCT:
  5681. self.o2 = AlreadyExistsException()
  5682. self.o2.read(iprot)
  5683. else:
  5684. iprot.skip(ftype)
  5685. elif fid == 3:
  5686. if ftype == TType.STRUCT:
  5687. self.o3 = MetaException()
  5688. self.o3.read(iprot)
  5689. else:
  5690. iprot.skip(ftype)
  5691. else:
  5692. iprot.skip(ftype)
  5693. iprot.readFieldEnd()
  5694. iprot.readStructEnd()
  5695. def write(self, oprot):
  5696. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5697. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5698. return
  5699. oprot.writeStructBegin('add_partition_result')
  5700. if self.success is not None:
  5701. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  5702. self.success.write(oprot)
  5703. oprot.writeFieldEnd()
  5704. if self.o1 is not None:
  5705. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5706. self.o1.write(oprot)
  5707. oprot.writeFieldEnd()
  5708. if self.o2 is not None:
  5709. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  5710. self.o2.write(oprot)
  5711. oprot.writeFieldEnd()
  5712. if self.o3 is not None:
  5713. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  5714. self.o3.write(oprot)
  5715. oprot.writeFieldEnd()
  5716. oprot.writeFieldStop()
  5717. oprot.writeStructEnd()
  5718. def validate(self):
  5719. return
  5720. def __repr__(self):
  5721. L = ['%s=%r' % (key, value)
  5722. for key, value in self.__dict__.iteritems()]
  5723. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5724. def __eq__(self, other):
  5725. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5726. def __ne__(self, other):
  5727. return not (self == other)
  5728. class append_partition_args(object):
  5729. """
  5730. Attributes:
  5731. - db_name
  5732. - tbl_name
  5733. - part_vals
  5734. """
  5735. thrift_spec = (
  5736. None, # 0
  5737. (1, TType.STRING, 'db_name', None, None, ), # 1
  5738. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  5739. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  5740. )
  5741. def __init__(self, db_name=None, tbl_name=None, part_vals=None,):
  5742. self.db_name = db_name
  5743. self.tbl_name = tbl_name
  5744. self.part_vals = part_vals
  5745. def read(self, iprot):
  5746. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5747. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5748. return
  5749. iprot.readStructBegin()
  5750. while True:
  5751. (fname, ftype, fid) = iprot.readFieldBegin()
  5752. if ftype == TType.STOP:
  5753. break
  5754. if fid == 1:
  5755. if ftype == TType.STRING:
  5756. self.db_name = iprot.readString();
  5757. else:
  5758. iprot.skip(ftype)
  5759. elif fid == 2:
  5760. if ftype == TType.STRING:
  5761. self.tbl_name = iprot.readString();
  5762. else:
  5763. iprot.skip(ftype)
  5764. elif fid == 3:
  5765. if ftype == TType.LIST:
  5766. self.part_vals = []
  5767. (_etype228, _size225) = iprot.readListBegin()
  5768. for _i229 in xrange(_size225):
  5769. _elem230 = iprot.readString();
  5770. self.part_vals.append(_elem230)
  5771. iprot.readListEnd()
  5772. else:
  5773. iprot.skip(ftype)
  5774. else:
  5775. iprot.skip(ftype)
  5776. iprot.readFieldEnd()
  5777. iprot.readStructEnd()
  5778. def write(self, oprot):
  5779. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5780. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5781. return
  5782. oprot.writeStructBegin('append_partition_args')
  5783. if self.db_name is not None:
  5784. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  5785. oprot.writeString(self.db_name)
  5786. oprot.writeFieldEnd()
  5787. if self.tbl_name is not None:
  5788. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  5789. oprot.writeString(self.tbl_name)
  5790. oprot.writeFieldEnd()
  5791. if self.part_vals is not None:
  5792. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  5793. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  5794. for iter231 in self.part_vals:
  5795. oprot.writeString(iter231)
  5796. oprot.writeListEnd()
  5797. oprot.writeFieldEnd()
  5798. oprot.writeFieldStop()
  5799. oprot.writeStructEnd()
  5800. def validate(self):
  5801. return
  5802. def __repr__(self):
  5803. L = ['%s=%r' % (key, value)
  5804. for key, value in self.__dict__.iteritems()]
  5805. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5806. def __eq__(self, other):
  5807. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5808. def __ne__(self, other):
  5809. return not (self == other)
  5810. class append_partition_result(object):
  5811. """
  5812. Attributes:
  5813. - success
  5814. - o1
  5815. - o2
  5816. - o3
  5817. """
  5818. thrift_spec = (
  5819. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  5820. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  5821. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  5822. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  5823. )
  5824. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  5825. self.success = success
  5826. self.o1 = o1
  5827. self.o2 = o2
  5828. self.o3 = o3
  5829. def read(self, iprot):
  5830. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5831. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5832. return
  5833. iprot.readStructBegin()
  5834. while True:
  5835. (fname, ftype, fid) = iprot.readFieldBegin()
  5836. if ftype == TType.STOP:
  5837. break
  5838. if fid == 0:
  5839. if ftype == TType.STRUCT:
  5840. self.success = Partition()
  5841. self.success.read(iprot)
  5842. else:
  5843. iprot.skip(ftype)
  5844. elif fid == 1:
  5845. if ftype == TType.STRUCT:
  5846. self.o1 = InvalidObjectException()
  5847. self.o1.read(iprot)
  5848. else:
  5849. iprot.skip(ftype)
  5850. elif fid == 2:
  5851. if ftype == TType.STRUCT:
  5852. self.o2 = AlreadyExistsException()
  5853. self.o2.read(iprot)
  5854. else:
  5855. iprot.skip(ftype)
  5856. elif fid == 3:
  5857. if ftype == TType.STRUCT:
  5858. self.o3 = MetaException()
  5859. self.o3.read(iprot)
  5860. else:
  5861. iprot.skip(ftype)
  5862. else:
  5863. iprot.skip(ftype)
  5864. iprot.readFieldEnd()
  5865. iprot.readStructEnd()
  5866. def write(self, oprot):
  5867. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5868. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5869. return
  5870. oprot.writeStructBegin('append_partition_result')
  5871. if self.success is not None:
  5872. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  5873. self.success.write(oprot)
  5874. oprot.writeFieldEnd()
  5875. if self.o1 is not None:
  5876. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  5877. self.o1.write(oprot)
  5878. oprot.writeFieldEnd()
  5879. if self.o2 is not None:
  5880. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  5881. self.o2.write(oprot)
  5882. oprot.writeFieldEnd()
  5883. if self.o3 is not None:
  5884. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  5885. self.o3.write(oprot)
  5886. oprot.writeFieldEnd()
  5887. oprot.writeFieldStop()
  5888. oprot.writeStructEnd()
  5889. def validate(self):
  5890. return
  5891. def __repr__(self):
  5892. L = ['%s=%r' % (key, value)
  5893. for key, value in self.__dict__.iteritems()]
  5894. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5895. def __eq__(self, other):
  5896. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5897. def __ne__(self, other):
  5898. return not (self == other)
  5899. class append_partition_by_name_args(object):
  5900. """
  5901. Attributes:
  5902. - db_name
  5903. - tbl_name
  5904. - part_name
  5905. """
  5906. thrift_spec = (
  5907. None, # 0
  5908. (1, TType.STRING, 'db_name', None, None, ), # 1
  5909. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  5910. (3, TType.STRING, 'part_name', None, None, ), # 3
  5911. )
  5912. def __init__(self, db_name=None, tbl_name=None, part_name=None,):
  5913. self.db_name = db_name
  5914. self.tbl_name = tbl_name
  5915. self.part_name = part_name
  5916. def read(self, iprot):
  5917. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5918. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5919. return
  5920. iprot.readStructBegin()
  5921. while True:
  5922. (fname, ftype, fid) = iprot.readFieldBegin()
  5923. if ftype == TType.STOP:
  5924. break
  5925. if fid == 1:
  5926. if ftype == TType.STRING:
  5927. self.db_name = iprot.readString();
  5928. else:
  5929. iprot.skip(ftype)
  5930. elif fid == 2:
  5931. if ftype == TType.STRING:
  5932. self.tbl_name = iprot.readString();
  5933. else:
  5934. iprot.skip(ftype)
  5935. elif fid == 3:
  5936. if ftype == TType.STRING:
  5937. self.part_name = iprot.readString();
  5938. else:
  5939. iprot.skip(ftype)
  5940. else:
  5941. iprot.skip(ftype)
  5942. iprot.readFieldEnd()
  5943. iprot.readStructEnd()
  5944. def write(self, oprot):
  5945. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  5946. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  5947. return
  5948. oprot.writeStructBegin('append_partition_by_name_args')
  5949. if self.db_name is not None:
  5950. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  5951. oprot.writeString(self.db_name)
  5952. oprot.writeFieldEnd()
  5953. if self.tbl_name is not None:
  5954. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  5955. oprot.writeString(self.tbl_name)
  5956. oprot.writeFieldEnd()
  5957. if self.part_name is not None:
  5958. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  5959. oprot.writeString(self.part_name)
  5960. oprot.writeFieldEnd()
  5961. oprot.writeFieldStop()
  5962. oprot.writeStructEnd()
  5963. def validate(self):
  5964. return
  5965. def __repr__(self):
  5966. L = ['%s=%r' % (key, value)
  5967. for key, value in self.__dict__.iteritems()]
  5968. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  5969. def __eq__(self, other):
  5970. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  5971. def __ne__(self, other):
  5972. return not (self == other)
  5973. class append_partition_by_name_result(object):
  5974. """
  5975. Attributes:
  5976. - success
  5977. - o1
  5978. - o2
  5979. - o3
  5980. """
  5981. thrift_spec = (
  5982. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  5983. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  5984. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  5985. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  5986. )
  5987. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  5988. self.success = success
  5989. self.o1 = o1
  5990. self.o2 = o2
  5991. self.o3 = o3
  5992. def read(self, iprot):
  5993. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  5994. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  5995. return
  5996. iprot.readStructBegin()
  5997. while True:
  5998. (fname, ftype, fid) = iprot.readFieldBegin()
  5999. if ftype == TType.STOP:
  6000. break
  6001. if fid == 0:
  6002. if ftype == TType.STRUCT:
  6003. self.success = Partition()
  6004. self.success.read(iprot)
  6005. else:
  6006. iprot.skip(ftype)
  6007. elif fid == 1:
  6008. if ftype == TType.STRUCT:
  6009. self.o1 = InvalidObjectException()
  6010. self.o1.read(iprot)
  6011. else:
  6012. iprot.skip(ftype)
  6013. elif fid == 2:
  6014. if ftype == TType.STRUCT:
  6015. self.o2 = AlreadyExistsException()
  6016. self.o2.read(iprot)
  6017. else:
  6018. iprot.skip(ftype)
  6019. elif fid == 3:
  6020. if ftype == TType.STRUCT:
  6021. self.o3 = MetaException()
  6022. self.o3.read(iprot)
  6023. else:
  6024. iprot.skip(ftype)
  6025. else:
  6026. iprot.skip(ftype)
  6027. iprot.readFieldEnd()
  6028. iprot.readStructEnd()
  6029. def write(self, oprot):
  6030. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6031. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6032. return
  6033. oprot.writeStructBegin('append_partition_by_name_result')
  6034. if self.success is not None:
  6035. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  6036. self.success.write(oprot)
  6037. oprot.writeFieldEnd()
  6038. if self.o1 is not None:
  6039. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  6040. self.o1.write(oprot)
  6041. oprot.writeFieldEnd()
  6042. if self.o2 is not None:
  6043. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  6044. self.o2.write(oprot)
  6045. oprot.writeFieldEnd()
  6046. if self.o3 is not None:
  6047. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  6048. self.o3.write(oprot)
  6049. oprot.writeFieldEnd()
  6050. oprot.writeFieldStop()
  6051. oprot.writeStructEnd()
  6052. def validate(self):
  6053. return
  6054. def __repr__(self):
  6055. L = ['%s=%r' % (key, value)
  6056. for key, value in self.__dict__.iteritems()]
  6057. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6058. def __eq__(self, other):
  6059. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6060. def __ne__(self, other):
  6061. return not (self == other)
  6062. class drop_partition_args(object):
  6063. """
  6064. Attributes:
  6065. - db_name
  6066. - tbl_name
  6067. - part_vals
  6068. - deleteData
  6069. """
  6070. thrift_spec = (
  6071. None, # 0
  6072. (1, TType.STRING, 'db_name', None, None, ), # 1
  6073. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  6074. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  6075. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  6076. )
  6077. def __init__(self, db_name=None, tbl_name=None, part_vals=None, deleteData=None,):
  6078. self.db_name = db_name
  6079. self.tbl_name = tbl_name
  6080. self.part_vals = part_vals
  6081. self.deleteData = deleteData
  6082. def read(self, iprot):
  6083. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6084. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6085. return
  6086. iprot.readStructBegin()
  6087. while True:
  6088. (fname, ftype, fid) = iprot.readFieldBegin()
  6089. if ftype == TType.STOP:
  6090. break
  6091. if fid == 1:
  6092. if ftype == TType.STRING:
  6093. self.db_name = iprot.readString();
  6094. else:
  6095. iprot.skip(ftype)
  6096. elif fid == 2:
  6097. if ftype == TType.STRING:
  6098. self.tbl_name = iprot.readString();
  6099. else:
  6100. iprot.skip(ftype)
  6101. elif fid == 3:
  6102. if ftype == TType.LIST:
  6103. self.part_vals = []
  6104. (_etype235, _size232) = iprot.readListBegin()
  6105. for _i236 in xrange(_size232):
  6106. _elem237 = iprot.readString();
  6107. self.part_vals.append(_elem237)
  6108. iprot.readListEnd()
  6109. else:
  6110. iprot.skip(ftype)
  6111. elif fid == 4:
  6112. if ftype == TType.BOOL:
  6113. self.deleteData = iprot.readBool();
  6114. else:
  6115. iprot.skip(ftype)
  6116. else:
  6117. iprot.skip(ftype)
  6118. iprot.readFieldEnd()
  6119. iprot.readStructEnd()
  6120. def write(self, oprot):
  6121. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6122. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6123. return
  6124. oprot.writeStructBegin('drop_partition_args')
  6125. if self.db_name is not None:
  6126. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  6127. oprot.writeString(self.db_name)
  6128. oprot.writeFieldEnd()
  6129. if self.tbl_name is not None:
  6130. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  6131. oprot.writeString(self.tbl_name)
  6132. oprot.writeFieldEnd()
  6133. if self.part_vals is not None:
  6134. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  6135. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  6136. for iter238 in self.part_vals:
  6137. oprot.writeString(iter238)
  6138. oprot.writeListEnd()
  6139. oprot.writeFieldEnd()
  6140. if self.deleteData is not None:
  6141. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  6142. oprot.writeBool(self.deleteData)
  6143. oprot.writeFieldEnd()
  6144. oprot.writeFieldStop()
  6145. oprot.writeStructEnd()
  6146. def validate(self):
  6147. return
  6148. def __repr__(self):
  6149. L = ['%s=%r' % (key, value)
  6150. for key, value in self.__dict__.iteritems()]
  6151. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6152. def __eq__(self, other):
  6153. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6154. def __ne__(self, other):
  6155. return not (self == other)
  6156. class drop_partition_result(object):
  6157. """
  6158. Attributes:
  6159. - success
  6160. - o1
  6161. - o2
  6162. """
  6163. thrift_spec = (
  6164. (0, TType.BOOL, 'success', None, None, ), # 0
  6165. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  6166. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  6167. )
  6168. def __init__(self, success=None, o1=None, o2=None,):
  6169. self.success = success
  6170. self.o1 = o1
  6171. self.o2 = o2
  6172. def read(self, iprot):
  6173. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6174. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6175. return
  6176. iprot.readStructBegin()
  6177. while True:
  6178. (fname, ftype, fid) = iprot.readFieldBegin()
  6179. if ftype == TType.STOP:
  6180. break
  6181. if fid == 0:
  6182. if ftype == TType.BOOL:
  6183. self.success = iprot.readBool();
  6184. else:
  6185. iprot.skip(ftype)
  6186. elif fid == 1:
  6187. if ftype == TType.STRUCT:
  6188. self.o1 = NoSuchObjectException()
  6189. self.o1.read(iprot)
  6190. else:
  6191. iprot.skip(ftype)
  6192. elif fid == 2:
  6193. if ftype == TType.STRUCT:
  6194. self.o2 = MetaException()
  6195. self.o2.read(iprot)
  6196. else:
  6197. iprot.skip(ftype)
  6198. else:
  6199. iprot.skip(ftype)
  6200. iprot.readFieldEnd()
  6201. iprot.readStructEnd()
  6202. def write(self, oprot):
  6203. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6204. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6205. return
  6206. oprot.writeStructBegin('drop_partition_result')
  6207. if self.success is not None:
  6208. oprot.writeFieldBegin('success', TType.BOOL, 0)
  6209. oprot.writeBool(self.success)
  6210. oprot.writeFieldEnd()
  6211. if self.o1 is not None:
  6212. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  6213. self.o1.write(oprot)
  6214. oprot.writeFieldEnd()
  6215. if self.o2 is not None:
  6216. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  6217. self.o2.write(oprot)
  6218. oprot.writeFieldEnd()
  6219. oprot.writeFieldStop()
  6220. oprot.writeStructEnd()
  6221. def validate(self):
  6222. return
  6223. def __repr__(self):
  6224. L = ['%s=%r' % (key, value)
  6225. for key, value in self.__dict__.iteritems()]
  6226. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6227. def __eq__(self, other):
  6228. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6229. def __ne__(self, other):
  6230. return not (self == other)
  6231. class drop_partition_by_name_args(object):
  6232. """
  6233. Attributes:
  6234. - db_name
  6235. - tbl_name
  6236. - part_name
  6237. - deleteData
  6238. """
  6239. thrift_spec = (
  6240. None, # 0
  6241. (1, TType.STRING, 'db_name', None, None, ), # 1
  6242. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  6243. (3, TType.STRING, 'part_name', None, None, ), # 3
  6244. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  6245. )
  6246. def __init__(self, db_name=None, tbl_name=None, part_name=None, deleteData=None,):
  6247. self.db_name = db_name
  6248. self.tbl_name = tbl_name
  6249. self.part_name = part_name
  6250. self.deleteData = deleteData
  6251. def read(self, iprot):
  6252. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6253. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6254. return
  6255. iprot.readStructBegin()
  6256. while True:
  6257. (fname, ftype, fid) = iprot.readFieldBegin()
  6258. if ftype == TType.STOP:
  6259. break
  6260. if fid == 1:
  6261. if ftype == TType.STRING:
  6262. self.db_name = iprot.readString();
  6263. else:
  6264. iprot.skip(ftype)
  6265. elif fid == 2:
  6266. if ftype == TType.STRING:
  6267. self.tbl_name = iprot.readString();
  6268. else:
  6269. iprot.skip(ftype)
  6270. elif fid == 3:
  6271. if ftype == TType.STRING:
  6272. self.part_name = iprot.readString();
  6273. else:
  6274. iprot.skip(ftype)
  6275. elif fid == 4:
  6276. if ftype == TType.BOOL:
  6277. self.deleteData = iprot.readBool();
  6278. else:
  6279. iprot.skip(ftype)
  6280. else:
  6281. iprot.skip(ftype)
  6282. iprot.readFieldEnd()
  6283. iprot.readStructEnd()
  6284. def write(self, oprot):
  6285. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6286. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6287. return
  6288. oprot.writeStructBegin('drop_partition_by_name_args')
  6289. if self.db_name is not None:
  6290. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  6291. oprot.writeString(self.db_name)
  6292. oprot.writeFieldEnd()
  6293. if self.tbl_name is not None:
  6294. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  6295. oprot.writeString(self.tbl_name)
  6296. oprot.writeFieldEnd()
  6297. if self.part_name is not None:
  6298. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  6299. oprot.writeString(self.part_name)
  6300. oprot.writeFieldEnd()
  6301. if self.deleteData is not None:
  6302. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  6303. oprot.writeBool(self.deleteData)
  6304. oprot.writeFieldEnd()
  6305. oprot.writeFieldStop()
  6306. oprot.writeStructEnd()
  6307. def validate(self):
  6308. return
  6309. def __repr__(self):
  6310. L = ['%s=%r' % (key, value)
  6311. for key, value in self.__dict__.iteritems()]
  6312. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6313. def __eq__(self, other):
  6314. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6315. def __ne__(self, other):
  6316. return not (self == other)
  6317. class drop_partition_by_name_result(object):
  6318. """
  6319. Attributes:
  6320. - success
  6321. - o1
  6322. - o2
  6323. """
  6324. thrift_spec = (
  6325. (0, TType.BOOL, 'success', None, None, ), # 0
  6326. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  6327. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  6328. )
  6329. def __init__(self, success=None, o1=None, o2=None,):
  6330. self.success = success
  6331. self.o1 = o1
  6332. self.o2 = o2
  6333. def read(self, iprot):
  6334. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6335. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6336. return
  6337. iprot.readStructBegin()
  6338. while True:
  6339. (fname, ftype, fid) = iprot.readFieldBegin()
  6340. if ftype == TType.STOP:
  6341. break
  6342. if fid == 0:
  6343. if ftype == TType.BOOL:
  6344. self.success = iprot.readBool();
  6345. else:
  6346. iprot.skip(ftype)
  6347. elif fid == 1:
  6348. if ftype == TType.STRUCT:
  6349. self.o1 = NoSuchObjectException()
  6350. self.o1.read(iprot)
  6351. else:
  6352. iprot.skip(ftype)
  6353. elif fid == 2:
  6354. if ftype == TType.STRUCT:
  6355. self.o2 = MetaException()
  6356. self.o2.read(iprot)
  6357. else:
  6358. iprot.skip(ftype)
  6359. else:
  6360. iprot.skip(ftype)
  6361. iprot.readFieldEnd()
  6362. iprot.readStructEnd()
  6363. def write(self, oprot):
  6364. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6365. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6366. return
  6367. oprot.writeStructBegin('drop_partition_by_name_result')
  6368. if self.success is not None:
  6369. oprot.writeFieldBegin('success', TType.BOOL, 0)
  6370. oprot.writeBool(self.success)
  6371. oprot.writeFieldEnd()
  6372. if self.o1 is not None:
  6373. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  6374. self.o1.write(oprot)
  6375. oprot.writeFieldEnd()
  6376. if self.o2 is not None:
  6377. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  6378. self.o2.write(oprot)
  6379. oprot.writeFieldEnd()
  6380. oprot.writeFieldStop()
  6381. oprot.writeStructEnd()
  6382. def validate(self):
  6383. return
  6384. def __repr__(self):
  6385. L = ['%s=%r' % (key, value)
  6386. for key, value in self.__dict__.iteritems()]
  6387. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6388. def __eq__(self, other):
  6389. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6390. def __ne__(self, other):
  6391. return not (self == other)
  6392. class get_partition_args(object):
  6393. """
  6394. Attributes:
  6395. - db_name
  6396. - tbl_name
  6397. - part_vals
  6398. """
  6399. thrift_spec = (
  6400. None, # 0
  6401. (1, TType.STRING, 'db_name', None, None, ), # 1
  6402. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  6403. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  6404. )
  6405. def __init__(self, db_name=None, tbl_name=None, part_vals=None,):
  6406. self.db_name = db_name
  6407. self.tbl_name = tbl_name
  6408. self.part_vals = part_vals
  6409. def read(self, iprot):
  6410. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6411. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6412. return
  6413. iprot.readStructBegin()
  6414. while True:
  6415. (fname, ftype, fid) = iprot.readFieldBegin()
  6416. if ftype == TType.STOP:
  6417. break
  6418. if fid == 1:
  6419. if ftype == TType.STRING:
  6420. self.db_name = iprot.readString();
  6421. else:
  6422. iprot.skip(ftype)
  6423. elif fid == 2:
  6424. if ftype == TType.STRING:
  6425. self.tbl_name = iprot.readString();
  6426. else:
  6427. iprot.skip(ftype)
  6428. elif fid == 3:
  6429. if ftype == TType.LIST:
  6430. self.part_vals = []
  6431. (_etype242, _size239) = iprot.readListBegin()
  6432. for _i243 in xrange(_size239):
  6433. _elem244 = iprot.readString();
  6434. self.part_vals.append(_elem244)
  6435. iprot.readListEnd()
  6436. else:
  6437. iprot.skip(ftype)
  6438. else:
  6439. iprot.skip(ftype)
  6440. iprot.readFieldEnd()
  6441. iprot.readStructEnd()
  6442. def write(self, oprot):
  6443. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6444. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6445. return
  6446. oprot.writeStructBegin('get_partition_args')
  6447. if self.db_name is not None:
  6448. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  6449. oprot.writeString(self.db_name)
  6450. oprot.writeFieldEnd()
  6451. if self.tbl_name is not None:
  6452. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  6453. oprot.writeString(self.tbl_name)
  6454. oprot.writeFieldEnd()
  6455. if self.part_vals is not None:
  6456. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  6457. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  6458. for iter245 in self.part_vals:
  6459. oprot.writeString(iter245)
  6460. oprot.writeListEnd()
  6461. oprot.writeFieldEnd()
  6462. oprot.writeFieldStop()
  6463. oprot.writeStructEnd()
  6464. def validate(self):
  6465. return
  6466. def __repr__(self):
  6467. L = ['%s=%r' % (key, value)
  6468. for key, value in self.__dict__.iteritems()]
  6469. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6470. def __eq__(self, other):
  6471. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6472. def __ne__(self, other):
  6473. return not (self == other)
  6474. class get_partition_result(object):
  6475. """
  6476. Attributes:
  6477. - success
  6478. - o1
  6479. - o2
  6480. """
  6481. thrift_spec = (
  6482. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  6483. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  6484. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  6485. )
  6486. def __init__(self, success=None, o1=None, o2=None,):
  6487. self.success = success
  6488. self.o1 = o1
  6489. self.o2 = o2
  6490. def read(self, iprot):
  6491. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6492. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6493. return
  6494. iprot.readStructBegin()
  6495. while True:
  6496. (fname, ftype, fid) = iprot.readFieldBegin()
  6497. if ftype == TType.STOP:
  6498. break
  6499. if fid == 0:
  6500. if ftype == TType.STRUCT:
  6501. self.success = Partition()
  6502. self.success.read(iprot)
  6503. else:
  6504. iprot.skip(ftype)
  6505. elif fid == 1:
  6506. if ftype == TType.STRUCT:
  6507. self.o1 = MetaException()
  6508. self.o1.read(iprot)
  6509. else:
  6510. iprot.skip(ftype)
  6511. elif fid == 2:
  6512. if ftype == TType.STRUCT:
  6513. self.o2 = NoSuchObjectException()
  6514. self.o2.read(iprot)
  6515. else:
  6516. iprot.skip(ftype)
  6517. else:
  6518. iprot.skip(ftype)
  6519. iprot.readFieldEnd()
  6520. iprot.readStructEnd()
  6521. def write(self, oprot):
  6522. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6523. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6524. return
  6525. oprot.writeStructBegin('get_partition_result')
  6526. if self.success is not None:
  6527. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  6528. self.success.write(oprot)
  6529. oprot.writeFieldEnd()
  6530. if self.o1 is not None:
  6531. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  6532. self.o1.write(oprot)
  6533. oprot.writeFieldEnd()
  6534. if self.o2 is not None:
  6535. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  6536. self.o2.write(oprot)
  6537. oprot.writeFieldEnd()
  6538. oprot.writeFieldStop()
  6539. oprot.writeStructEnd()
  6540. def validate(self):
  6541. return
  6542. def __repr__(self):
  6543. L = ['%s=%r' % (key, value)
  6544. for key, value in self.__dict__.iteritems()]
  6545. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6546. def __eq__(self, other):
  6547. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6548. def __ne__(self, other):
  6549. return not (self == other)
  6550. class get_partition_with_auth_args(object):
  6551. """
  6552. Attributes:
  6553. - db_name
  6554. - tbl_name
  6555. - part_vals
  6556. - user_name
  6557. - group_names
  6558. """
  6559. thrift_spec = (
  6560. None, # 0
  6561. (1, TType.STRING, 'db_name', None, None, ), # 1
  6562. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  6563. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  6564. (4, TType.STRING, 'user_name', None, None, ), # 4
  6565. (5, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 5
  6566. )
  6567. def __init__(self, db_name=None, tbl_name=None, part_vals=None, user_name=None, group_names=None,):
  6568. self.db_name = db_name
  6569. self.tbl_name = tbl_name
  6570. self.part_vals = part_vals
  6571. self.user_name = user_name
  6572. self.group_names = group_names
  6573. def read(self, iprot):
  6574. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6575. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6576. return
  6577. iprot.readStructBegin()
  6578. while True:
  6579. (fname, ftype, fid) = iprot.readFieldBegin()
  6580. if ftype == TType.STOP:
  6581. break
  6582. if fid == 1:
  6583. if ftype == TType.STRING:
  6584. self.db_name = iprot.readString();
  6585. else:
  6586. iprot.skip(ftype)
  6587. elif fid == 2:
  6588. if ftype == TType.STRING:
  6589. self.tbl_name = iprot.readString();
  6590. else:
  6591. iprot.skip(ftype)
  6592. elif fid == 3:
  6593. if ftype == TType.LIST:
  6594. self.part_vals = []
  6595. (_etype249, _size246) = iprot.readListBegin()
  6596. for _i250 in xrange(_size246):
  6597. _elem251 = iprot.readString();
  6598. self.part_vals.append(_elem251)
  6599. iprot.readListEnd()
  6600. else:
  6601. iprot.skip(ftype)
  6602. elif fid == 4:
  6603. if ftype == TType.STRING:
  6604. self.user_name = iprot.readString();
  6605. else:
  6606. iprot.skip(ftype)
  6607. elif fid == 5:
  6608. if ftype == TType.LIST:
  6609. self.group_names = []
  6610. (_etype255, _size252) = iprot.readListBegin()
  6611. for _i256 in xrange(_size252):
  6612. _elem257 = iprot.readString();
  6613. self.group_names.append(_elem257)
  6614. iprot.readListEnd()
  6615. else:
  6616. iprot.skip(ftype)
  6617. else:
  6618. iprot.skip(ftype)
  6619. iprot.readFieldEnd()
  6620. iprot.readStructEnd()
  6621. def write(self, oprot):
  6622. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6623. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6624. return
  6625. oprot.writeStructBegin('get_partition_with_auth_args')
  6626. if self.db_name is not None:
  6627. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  6628. oprot.writeString(self.db_name)
  6629. oprot.writeFieldEnd()
  6630. if self.tbl_name is not None:
  6631. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  6632. oprot.writeString(self.tbl_name)
  6633. oprot.writeFieldEnd()
  6634. if self.part_vals is not None:
  6635. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  6636. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  6637. for iter258 in self.part_vals:
  6638. oprot.writeString(iter258)
  6639. oprot.writeListEnd()
  6640. oprot.writeFieldEnd()
  6641. if self.user_name is not None:
  6642. oprot.writeFieldBegin('user_name', TType.STRING, 4)
  6643. oprot.writeString(self.user_name)
  6644. oprot.writeFieldEnd()
  6645. if self.group_names is not None:
  6646. oprot.writeFieldBegin('group_names', TType.LIST, 5)
  6647. oprot.writeListBegin(TType.STRING, len(self.group_names))
  6648. for iter259 in self.group_names:
  6649. oprot.writeString(iter259)
  6650. oprot.writeListEnd()
  6651. oprot.writeFieldEnd()
  6652. oprot.writeFieldStop()
  6653. oprot.writeStructEnd()
  6654. def validate(self):
  6655. return
  6656. def __repr__(self):
  6657. L = ['%s=%r' % (key, value)
  6658. for key, value in self.__dict__.iteritems()]
  6659. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6660. def __eq__(self, other):
  6661. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6662. def __ne__(self, other):
  6663. return not (self == other)
  6664. class get_partition_with_auth_result(object):
  6665. """
  6666. Attributes:
  6667. - success
  6668. - o1
  6669. - o2
  6670. """
  6671. thrift_spec = (
  6672. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  6673. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  6674. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  6675. )
  6676. def __init__(self, success=None, o1=None, o2=None,):
  6677. self.success = success
  6678. self.o1 = o1
  6679. self.o2 = o2
  6680. def read(self, iprot):
  6681. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6682. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6683. return
  6684. iprot.readStructBegin()
  6685. while True:
  6686. (fname, ftype, fid) = iprot.readFieldBegin()
  6687. if ftype == TType.STOP:
  6688. break
  6689. if fid == 0:
  6690. if ftype == TType.STRUCT:
  6691. self.success = Partition()
  6692. self.success.read(iprot)
  6693. else:
  6694. iprot.skip(ftype)
  6695. elif fid == 1:
  6696. if ftype == TType.STRUCT:
  6697. self.o1 = MetaException()
  6698. self.o1.read(iprot)
  6699. else:
  6700. iprot.skip(ftype)
  6701. elif fid == 2:
  6702. if ftype == TType.STRUCT:
  6703. self.o2 = NoSuchObjectException()
  6704. self.o2.read(iprot)
  6705. else:
  6706. iprot.skip(ftype)
  6707. else:
  6708. iprot.skip(ftype)
  6709. iprot.readFieldEnd()
  6710. iprot.readStructEnd()
  6711. def write(self, oprot):
  6712. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6713. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6714. return
  6715. oprot.writeStructBegin('get_partition_with_auth_result')
  6716. if self.success is not None:
  6717. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  6718. self.success.write(oprot)
  6719. oprot.writeFieldEnd()
  6720. if self.o1 is not None:
  6721. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  6722. self.o1.write(oprot)
  6723. oprot.writeFieldEnd()
  6724. if self.o2 is not None:
  6725. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  6726. self.o2.write(oprot)
  6727. oprot.writeFieldEnd()
  6728. oprot.writeFieldStop()
  6729. oprot.writeStructEnd()
  6730. def validate(self):
  6731. return
  6732. def __repr__(self):
  6733. L = ['%s=%r' % (key, value)
  6734. for key, value in self.__dict__.iteritems()]
  6735. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6736. def __eq__(self, other):
  6737. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6738. def __ne__(self, other):
  6739. return not (self == other)
  6740. class get_partition_by_name_args(object):
  6741. """
  6742. Attributes:
  6743. - db_name
  6744. - tbl_name
  6745. - part_name
  6746. """
  6747. thrift_spec = (
  6748. None, # 0
  6749. (1, TType.STRING, 'db_name', None, None, ), # 1
  6750. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  6751. (3, TType.STRING, 'part_name', None, None, ), # 3
  6752. )
  6753. def __init__(self, db_name=None, tbl_name=None, part_name=None,):
  6754. self.db_name = db_name
  6755. self.tbl_name = tbl_name
  6756. self.part_name = part_name
  6757. def read(self, iprot):
  6758. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6759. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6760. return
  6761. iprot.readStructBegin()
  6762. while True:
  6763. (fname, ftype, fid) = iprot.readFieldBegin()
  6764. if ftype == TType.STOP:
  6765. break
  6766. if fid == 1:
  6767. if ftype == TType.STRING:
  6768. self.db_name = iprot.readString();
  6769. else:
  6770. iprot.skip(ftype)
  6771. elif fid == 2:
  6772. if ftype == TType.STRING:
  6773. self.tbl_name = iprot.readString();
  6774. else:
  6775. iprot.skip(ftype)
  6776. elif fid == 3:
  6777. if ftype == TType.STRING:
  6778. self.part_name = iprot.readString();
  6779. else:
  6780. iprot.skip(ftype)
  6781. else:
  6782. iprot.skip(ftype)
  6783. iprot.readFieldEnd()
  6784. iprot.readStructEnd()
  6785. def write(self, oprot):
  6786. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6787. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6788. return
  6789. oprot.writeStructBegin('get_partition_by_name_args')
  6790. if self.db_name is not None:
  6791. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  6792. oprot.writeString(self.db_name)
  6793. oprot.writeFieldEnd()
  6794. if self.tbl_name is not None:
  6795. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  6796. oprot.writeString(self.tbl_name)
  6797. oprot.writeFieldEnd()
  6798. if self.part_name is not None:
  6799. oprot.writeFieldBegin('part_name', TType.STRING, 3)
  6800. oprot.writeString(self.part_name)
  6801. oprot.writeFieldEnd()
  6802. oprot.writeFieldStop()
  6803. oprot.writeStructEnd()
  6804. def validate(self):
  6805. return
  6806. def __repr__(self):
  6807. L = ['%s=%r' % (key, value)
  6808. for key, value in self.__dict__.iteritems()]
  6809. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6810. def __eq__(self, other):
  6811. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6812. def __ne__(self, other):
  6813. return not (self == other)
  6814. class get_partition_by_name_result(object):
  6815. """
  6816. Attributes:
  6817. - success
  6818. - o1
  6819. - o2
  6820. """
  6821. thrift_spec = (
  6822. (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0
  6823. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  6824. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  6825. )
  6826. def __init__(self, success=None, o1=None, o2=None,):
  6827. self.success = success
  6828. self.o1 = o1
  6829. self.o2 = o2
  6830. def read(self, iprot):
  6831. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6832. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6833. return
  6834. iprot.readStructBegin()
  6835. while True:
  6836. (fname, ftype, fid) = iprot.readFieldBegin()
  6837. if ftype == TType.STOP:
  6838. break
  6839. if fid == 0:
  6840. if ftype == TType.STRUCT:
  6841. self.success = Partition()
  6842. self.success.read(iprot)
  6843. else:
  6844. iprot.skip(ftype)
  6845. elif fid == 1:
  6846. if ftype == TType.STRUCT:
  6847. self.o1 = MetaException()
  6848. self.o1.read(iprot)
  6849. else:
  6850. iprot.skip(ftype)
  6851. elif fid == 2:
  6852. if ftype == TType.STRUCT:
  6853. self.o2 = NoSuchObjectException()
  6854. self.o2.read(iprot)
  6855. else:
  6856. iprot.skip(ftype)
  6857. else:
  6858. iprot.skip(ftype)
  6859. iprot.readFieldEnd()
  6860. iprot.readStructEnd()
  6861. def write(self, oprot):
  6862. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6863. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6864. return
  6865. oprot.writeStructBegin('get_partition_by_name_result')
  6866. if self.success is not None:
  6867. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  6868. self.success.write(oprot)
  6869. oprot.writeFieldEnd()
  6870. if self.o1 is not None:
  6871. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  6872. self.o1.write(oprot)
  6873. oprot.writeFieldEnd()
  6874. if self.o2 is not None:
  6875. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  6876. self.o2.write(oprot)
  6877. oprot.writeFieldEnd()
  6878. oprot.writeFieldStop()
  6879. oprot.writeStructEnd()
  6880. def validate(self):
  6881. return
  6882. def __repr__(self):
  6883. L = ['%s=%r' % (key, value)
  6884. for key, value in self.__dict__.iteritems()]
  6885. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6886. def __eq__(self, other):
  6887. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6888. def __ne__(self, other):
  6889. return not (self == other)
  6890. class get_partitions_args(object):
  6891. """
  6892. Attributes:
  6893. - db_name
  6894. - tbl_name
  6895. - max_parts
  6896. """
  6897. thrift_spec = (
  6898. None, # 0
  6899. (1, TType.STRING, 'db_name', None, None, ), # 1
  6900. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  6901. (3, TType.I16, 'max_parts', None, -1, ), # 3
  6902. )
  6903. def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4],):
  6904. self.db_name = db_name
  6905. self.tbl_name = tbl_name
  6906. self.max_parts = max_parts
  6907. def read(self, iprot):
  6908. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6909. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6910. return
  6911. iprot.readStructBegin()
  6912. while True:
  6913. (fname, ftype, fid) = iprot.readFieldBegin()
  6914. if ftype == TType.STOP:
  6915. break
  6916. if fid == 1:
  6917. if ftype == TType.STRING:
  6918. self.db_name = iprot.readString();
  6919. else:
  6920. iprot.skip(ftype)
  6921. elif fid == 2:
  6922. if ftype == TType.STRING:
  6923. self.tbl_name = iprot.readString();
  6924. else:
  6925. iprot.skip(ftype)
  6926. elif fid == 3:
  6927. if ftype == TType.I16:
  6928. self.max_parts = iprot.readI16();
  6929. else:
  6930. iprot.skip(ftype)
  6931. else:
  6932. iprot.skip(ftype)
  6933. iprot.readFieldEnd()
  6934. iprot.readStructEnd()
  6935. def write(self, oprot):
  6936. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  6937. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  6938. return
  6939. oprot.writeStructBegin('get_partitions_args')
  6940. if self.db_name is not None:
  6941. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  6942. oprot.writeString(self.db_name)
  6943. oprot.writeFieldEnd()
  6944. if self.tbl_name is not None:
  6945. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  6946. oprot.writeString(self.tbl_name)
  6947. oprot.writeFieldEnd()
  6948. if self.max_parts is not None:
  6949. oprot.writeFieldBegin('max_parts', TType.I16, 3)
  6950. oprot.writeI16(self.max_parts)
  6951. oprot.writeFieldEnd()
  6952. oprot.writeFieldStop()
  6953. oprot.writeStructEnd()
  6954. def validate(self):
  6955. return
  6956. def __repr__(self):
  6957. L = ['%s=%r' % (key, value)
  6958. for key, value in self.__dict__.iteritems()]
  6959. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  6960. def __eq__(self, other):
  6961. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  6962. def __ne__(self, other):
  6963. return not (self == other)
  6964. class get_partitions_result(object):
  6965. """
  6966. Attributes:
  6967. - success
  6968. - o1
  6969. - o2
  6970. """
  6971. thrift_spec = (
  6972. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  6973. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  6974. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  6975. )
  6976. def __init__(self, success=None, o1=None, o2=None,):
  6977. self.success = success
  6978. self.o1 = o1
  6979. self.o2 = o2
  6980. def read(self, iprot):
  6981. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  6982. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  6983. return
  6984. iprot.readStructBegin()
  6985. while True:
  6986. (fname, ftype, fid) = iprot.readFieldBegin()
  6987. if ftype == TType.STOP:
  6988. break
  6989. if fid == 0:
  6990. if ftype == TType.LIST:
  6991. self.success = []
  6992. (_etype263, _size260) = iprot.readListBegin()
  6993. for _i264 in xrange(_size260):
  6994. _elem265 = Partition()
  6995. _elem265.read(iprot)
  6996. self.success.append(_elem265)
  6997. iprot.readListEnd()
  6998. else:
  6999. iprot.skip(ftype)
  7000. elif fid == 1:
  7001. if ftype == TType.STRUCT:
  7002. self.o1 = NoSuchObjectException()
  7003. self.o1.read(iprot)
  7004. else:
  7005. iprot.skip(ftype)
  7006. elif fid == 2:
  7007. if ftype == TType.STRUCT:
  7008. self.o2 = MetaException()
  7009. self.o2.read(iprot)
  7010. else:
  7011. iprot.skip(ftype)
  7012. else:
  7013. iprot.skip(ftype)
  7014. iprot.readFieldEnd()
  7015. iprot.readStructEnd()
  7016. def write(self, oprot):
  7017. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7018. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7019. return
  7020. oprot.writeStructBegin('get_partitions_result')
  7021. if self.success is not None:
  7022. oprot.writeFieldBegin('success', TType.LIST, 0)
  7023. oprot.writeListBegin(TType.STRUCT, len(self.success))
  7024. for iter266 in self.success:
  7025. iter266.write(oprot)
  7026. oprot.writeListEnd()
  7027. oprot.writeFieldEnd()
  7028. if self.o1 is not None:
  7029. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  7030. self.o1.write(oprot)
  7031. oprot.writeFieldEnd()
  7032. if self.o2 is not None:
  7033. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  7034. self.o2.write(oprot)
  7035. oprot.writeFieldEnd()
  7036. oprot.writeFieldStop()
  7037. oprot.writeStructEnd()
  7038. def validate(self):
  7039. return
  7040. def __repr__(self):
  7041. L = ['%s=%r' % (key, value)
  7042. for key, value in self.__dict__.iteritems()]
  7043. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7044. def __eq__(self, other):
  7045. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7046. def __ne__(self, other):
  7047. return not (self == other)
  7048. class get_partitions_with_auth_args(object):
  7049. """
  7050. Attributes:
  7051. - db_name
  7052. - tbl_name
  7053. - max_parts
  7054. - user_name
  7055. - group_names
  7056. """
  7057. thrift_spec = (
  7058. None, # 0
  7059. (1, TType.STRING, 'db_name', None, None, ), # 1
  7060. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  7061. (3, TType.I16, 'max_parts', None, -1, ), # 3
  7062. (4, TType.STRING, 'user_name', None, None, ), # 4
  7063. (5, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 5
  7064. )
  7065. def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4], user_name=None, group_names=None,):
  7066. self.db_name = db_name
  7067. self.tbl_name = tbl_name
  7068. self.max_parts = max_parts
  7069. self.user_name = user_name
  7070. self.group_names = group_names
  7071. def read(self, iprot):
  7072. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7073. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7074. return
  7075. iprot.readStructBegin()
  7076. while True:
  7077. (fname, ftype, fid) = iprot.readFieldBegin()
  7078. if ftype == TType.STOP:
  7079. break
  7080. if fid == 1:
  7081. if ftype == TType.STRING:
  7082. self.db_name = iprot.readString();
  7083. else:
  7084. iprot.skip(ftype)
  7085. elif fid == 2:
  7086. if ftype == TType.STRING:
  7087. self.tbl_name = iprot.readString();
  7088. else:
  7089. iprot.skip(ftype)
  7090. elif fid == 3:
  7091. if ftype == TType.I16:
  7092. self.max_parts = iprot.readI16();
  7093. else:
  7094. iprot.skip(ftype)
  7095. elif fid == 4:
  7096. if ftype == TType.STRING:
  7097. self.user_name = iprot.readString();
  7098. else:
  7099. iprot.skip(ftype)
  7100. elif fid == 5:
  7101. if ftype == TType.LIST:
  7102. self.group_names = []
  7103. (_etype270, _size267) = iprot.readListBegin()
  7104. for _i271 in xrange(_size267):
  7105. _elem272 = iprot.readString();
  7106. self.group_names.append(_elem272)
  7107. iprot.readListEnd()
  7108. else:
  7109. iprot.skip(ftype)
  7110. else:
  7111. iprot.skip(ftype)
  7112. iprot.readFieldEnd()
  7113. iprot.readStructEnd()
  7114. def write(self, oprot):
  7115. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7116. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7117. return
  7118. oprot.writeStructBegin('get_partitions_with_auth_args')
  7119. if self.db_name is not None:
  7120. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  7121. oprot.writeString(self.db_name)
  7122. oprot.writeFieldEnd()
  7123. if self.tbl_name is not None:
  7124. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  7125. oprot.writeString(self.tbl_name)
  7126. oprot.writeFieldEnd()
  7127. if self.max_parts is not None:
  7128. oprot.writeFieldBegin('max_parts', TType.I16, 3)
  7129. oprot.writeI16(self.max_parts)
  7130. oprot.writeFieldEnd()
  7131. if self.user_name is not None:
  7132. oprot.writeFieldBegin('user_name', TType.STRING, 4)
  7133. oprot.writeString(self.user_name)
  7134. oprot.writeFieldEnd()
  7135. if self.group_names is not None:
  7136. oprot.writeFieldBegin('group_names', TType.LIST, 5)
  7137. oprot.writeListBegin(TType.STRING, len(self.group_names))
  7138. for iter273 in self.group_names:
  7139. oprot.writeString(iter273)
  7140. oprot.writeListEnd()
  7141. oprot.writeFieldEnd()
  7142. oprot.writeFieldStop()
  7143. oprot.writeStructEnd()
  7144. def validate(self):
  7145. return
  7146. def __repr__(self):
  7147. L = ['%s=%r' % (key, value)
  7148. for key, value in self.__dict__.iteritems()]
  7149. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7150. def __eq__(self, other):
  7151. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7152. def __ne__(self, other):
  7153. return not (self == other)
  7154. class get_partitions_with_auth_result(object):
  7155. """
  7156. Attributes:
  7157. - success
  7158. - o1
  7159. - o2
  7160. """
  7161. thrift_spec = (
  7162. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  7163. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  7164. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  7165. )
  7166. def __init__(self, success=None, o1=None, o2=None,):
  7167. self.success = success
  7168. self.o1 = o1
  7169. self.o2 = o2
  7170. def read(self, iprot):
  7171. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7172. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7173. return
  7174. iprot.readStructBegin()
  7175. while True:
  7176. (fname, ftype, fid) = iprot.readFieldBegin()
  7177. if ftype == TType.STOP:
  7178. break
  7179. if fid == 0:
  7180. if ftype == TType.LIST:
  7181. self.success = []
  7182. (_etype277, _size274) = iprot.readListBegin()
  7183. for _i278 in xrange(_size274):
  7184. _elem279 = Partition()
  7185. _elem279.read(iprot)
  7186. self.success.append(_elem279)
  7187. iprot.readListEnd()
  7188. else:
  7189. iprot.skip(ftype)
  7190. elif fid == 1:
  7191. if ftype == TType.STRUCT:
  7192. self.o1 = NoSuchObjectException()
  7193. self.o1.read(iprot)
  7194. else:
  7195. iprot.skip(ftype)
  7196. elif fid == 2:
  7197. if ftype == TType.STRUCT:
  7198. self.o2 = MetaException()
  7199. self.o2.read(iprot)
  7200. else:
  7201. iprot.skip(ftype)
  7202. else:
  7203. iprot.skip(ftype)
  7204. iprot.readFieldEnd()
  7205. iprot.readStructEnd()
  7206. def write(self, oprot):
  7207. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7208. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7209. return
  7210. oprot.writeStructBegin('get_partitions_with_auth_result')
  7211. if self.success is not None:
  7212. oprot.writeFieldBegin('success', TType.LIST, 0)
  7213. oprot.writeListBegin(TType.STRUCT, len(self.success))
  7214. for iter280 in self.success:
  7215. iter280.write(oprot)
  7216. oprot.writeListEnd()
  7217. oprot.writeFieldEnd()
  7218. if self.o1 is not None:
  7219. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  7220. self.o1.write(oprot)
  7221. oprot.writeFieldEnd()
  7222. if self.o2 is not None:
  7223. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  7224. self.o2.write(oprot)
  7225. oprot.writeFieldEnd()
  7226. oprot.writeFieldStop()
  7227. oprot.writeStructEnd()
  7228. def validate(self):
  7229. return
  7230. def __repr__(self):
  7231. L = ['%s=%r' % (key, value)
  7232. for key, value in self.__dict__.iteritems()]
  7233. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7234. def __eq__(self, other):
  7235. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7236. def __ne__(self, other):
  7237. return not (self == other)
  7238. class get_partition_names_args(object):
  7239. """
  7240. Attributes:
  7241. - db_name
  7242. - tbl_name
  7243. - max_parts
  7244. """
  7245. thrift_spec = (
  7246. None, # 0
  7247. (1, TType.STRING, 'db_name', None, None, ), # 1
  7248. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  7249. (3, TType.I16, 'max_parts', None, -1, ), # 3
  7250. )
  7251. def __init__(self, db_name=None, tbl_name=None, max_parts=thrift_spec[3][4],):
  7252. self.db_name = db_name
  7253. self.tbl_name = tbl_name
  7254. self.max_parts = max_parts
  7255. def read(self, iprot):
  7256. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7257. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7258. return
  7259. iprot.readStructBegin()
  7260. while True:
  7261. (fname, ftype, fid) = iprot.readFieldBegin()
  7262. if ftype == TType.STOP:
  7263. break
  7264. if fid == 1:
  7265. if ftype == TType.STRING:
  7266. self.db_name = iprot.readString();
  7267. else:
  7268. iprot.skip(ftype)
  7269. elif fid == 2:
  7270. if ftype == TType.STRING:
  7271. self.tbl_name = iprot.readString();
  7272. else:
  7273. iprot.skip(ftype)
  7274. elif fid == 3:
  7275. if ftype == TType.I16:
  7276. self.max_parts = iprot.readI16();
  7277. else:
  7278. iprot.skip(ftype)
  7279. else:
  7280. iprot.skip(ftype)
  7281. iprot.readFieldEnd()
  7282. iprot.readStructEnd()
  7283. def write(self, oprot):
  7284. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7285. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7286. return
  7287. oprot.writeStructBegin('get_partition_names_args')
  7288. if self.db_name is not None:
  7289. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  7290. oprot.writeString(self.db_name)
  7291. oprot.writeFieldEnd()
  7292. if self.tbl_name is not None:
  7293. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  7294. oprot.writeString(self.tbl_name)
  7295. oprot.writeFieldEnd()
  7296. if self.max_parts is not None:
  7297. oprot.writeFieldBegin('max_parts', TType.I16, 3)
  7298. oprot.writeI16(self.max_parts)
  7299. oprot.writeFieldEnd()
  7300. oprot.writeFieldStop()
  7301. oprot.writeStructEnd()
  7302. def validate(self):
  7303. return
  7304. def __repr__(self):
  7305. L = ['%s=%r' % (key, value)
  7306. for key, value in self.__dict__.iteritems()]
  7307. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7308. def __eq__(self, other):
  7309. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7310. def __ne__(self, other):
  7311. return not (self == other)
  7312. class get_partition_names_result(object):
  7313. """
  7314. Attributes:
  7315. - success
  7316. - o2
  7317. """
  7318. thrift_spec = (
  7319. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  7320. (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1
  7321. )
  7322. def __init__(self, success=None, o2=None,):
  7323. self.success = success
  7324. self.o2 = o2
  7325. def read(self, iprot):
  7326. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7327. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7328. return
  7329. iprot.readStructBegin()
  7330. while True:
  7331. (fname, ftype, fid) = iprot.readFieldBegin()
  7332. if ftype == TType.STOP:
  7333. break
  7334. if fid == 0:
  7335. if ftype == TType.LIST:
  7336. self.success = []
  7337. (_etype284, _size281) = iprot.readListBegin()
  7338. for _i285 in xrange(_size281):
  7339. _elem286 = iprot.readString();
  7340. self.success.append(_elem286)
  7341. iprot.readListEnd()
  7342. else:
  7343. iprot.skip(ftype)
  7344. elif fid == 1:
  7345. if ftype == TType.STRUCT:
  7346. self.o2 = MetaException()
  7347. self.o2.read(iprot)
  7348. else:
  7349. iprot.skip(ftype)
  7350. else:
  7351. iprot.skip(ftype)
  7352. iprot.readFieldEnd()
  7353. iprot.readStructEnd()
  7354. def write(self, oprot):
  7355. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7356. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7357. return
  7358. oprot.writeStructBegin('get_partition_names_result')
  7359. if self.success is not None:
  7360. oprot.writeFieldBegin('success', TType.LIST, 0)
  7361. oprot.writeListBegin(TType.STRING, len(self.success))
  7362. for iter287 in self.success:
  7363. oprot.writeString(iter287)
  7364. oprot.writeListEnd()
  7365. oprot.writeFieldEnd()
  7366. if self.o2 is not None:
  7367. oprot.writeFieldBegin('o2', TType.STRUCT, 1)
  7368. self.o2.write(oprot)
  7369. oprot.writeFieldEnd()
  7370. oprot.writeFieldStop()
  7371. oprot.writeStructEnd()
  7372. def validate(self):
  7373. return
  7374. def __repr__(self):
  7375. L = ['%s=%r' % (key, value)
  7376. for key, value in self.__dict__.iteritems()]
  7377. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7378. def __eq__(self, other):
  7379. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7380. def __ne__(self, other):
  7381. return not (self == other)
  7382. class get_partitions_ps_args(object):
  7383. """
  7384. Attributes:
  7385. - db_name
  7386. - tbl_name
  7387. - part_vals
  7388. - max_parts
  7389. """
  7390. thrift_spec = (
  7391. None, # 0
  7392. (1, TType.STRING, 'db_name', None, None, ), # 1
  7393. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  7394. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  7395. (4, TType.I16, 'max_parts', None, -1, ), # 4
  7396. )
  7397. def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4],):
  7398. self.db_name = db_name
  7399. self.tbl_name = tbl_name
  7400. self.part_vals = part_vals
  7401. self.max_parts = max_parts
  7402. def read(self, iprot):
  7403. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7404. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7405. return
  7406. iprot.readStructBegin()
  7407. while True:
  7408. (fname, ftype, fid) = iprot.readFieldBegin()
  7409. if ftype == TType.STOP:
  7410. break
  7411. if fid == 1:
  7412. if ftype == TType.STRING:
  7413. self.db_name = iprot.readString();
  7414. else:
  7415. iprot.skip(ftype)
  7416. elif fid == 2:
  7417. if ftype == TType.STRING:
  7418. self.tbl_name = iprot.readString();
  7419. else:
  7420. iprot.skip(ftype)
  7421. elif fid == 3:
  7422. if ftype == TType.LIST:
  7423. self.part_vals = []
  7424. (_etype291, _size288) = iprot.readListBegin()
  7425. for _i292 in xrange(_size288):
  7426. _elem293 = iprot.readString();
  7427. self.part_vals.append(_elem293)
  7428. iprot.readListEnd()
  7429. else:
  7430. iprot.skip(ftype)
  7431. elif fid == 4:
  7432. if ftype == TType.I16:
  7433. self.max_parts = iprot.readI16();
  7434. else:
  7435. iprot.skip(ftype)
  7436. else:
  7437. iprot.skip(ftype)
  7438. iprot.readFieldEnd()
  7439. iprot.readStructEnd()
  7440. def write(self, oprot):
  7441. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7442. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7443. return
  7444. oprot.writeStructBegin('get_partitions_ps_args')
  7445. if self.db_name is not None:
  7446. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  7447. oprot.writeString(self.db_name)
  7448. oprot.writeFieldEnd()
  7449. if self.tbl_name is not None:
  7450. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  7451. oprot.writeString(self.tbl_name)
  7452. oprot.writeFieldEnd()
  7453. if self.part_vals is not None:
  7454. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  7455. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  7456. for iter294 in self.part_vals:
  7457. oprot.writeString(iter294)
  7458. oprot.writeListEnd()
  7459. oprot.writeFieldEnd()
  7460. if self.max_parts is not None:
  7461. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  7462. oprot.writeI16(self.max_parts)
  7463. oprot.writeFieldEnd()
  7464. oprot.writeFieldStop()
  7465. oprot.writeStructEnd()
  7466. def validate(self):
  7467. return
  7468. def __repr__(self):
  7469. L = ['%s=%r' % (key, value)
  7470. for key, value in self.__dict__.iteritems()]
  7471. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7472. def __eq__(self, other):
  7473. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7474. def __ne__(self, other):
  7475. return not (self == other)
  7476. class get_partitions_ps_result(object):
  7477. """
  7478. Attributes:
  7479. - success
  7480. - o1
  7481. """
  7482. thrift_spec = (
  7483. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  7484. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  7485. )
  7486. def __init__(self, success=None, o1=None,):
  7487. self.success = success
  7488. self.o1 = o1
  7489. def read(self, iprot):
  7490. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7491. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7492. return
  7493. iprot.readStructBegin()
  7494. while True:
  7495. (fname, ftype, fid) = iprot.readFieldBegin()
  7496. if ftype == TType.STOP:
  7497. break
  7498. if fid == 0:
  7499. if ftype == TType.LIST:
  7500. self.success = []
  7501. (_etype298, _size295) = iprot.readListBegin()
  7502. for _i299 in xrange(_size295):
  7503. _elem300 = Partition()
  7504. _elem300.read(iprot)
  7505. self.success.append(_elem300)
  7506. iprot.readListEnd()
  7507. else:
  7508. iprot.skip(ftype)
  7509. elif fid == 1:
  7510. if ftype == TType.STRUCT:
  7511. self.o1 = MetaException()
  7512. self.o1.read(iprot)
  7513. else:
  7514. iprot.skip(ftype)
  7515. else:
  7516. iprot.skip(ftype)
  7517. iprot.readFieldEnd()
  7518. iprot.readStructEnd()
  7519. def write(self, oprot):
  7520. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7521. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7522. return
  7523. oprot.writeStructBegin('get_partitions_ps_result')
  7524. if self.success is not None:
  7525. oprot.writeFieldBegin('success', TType.LIST, 0)
  7526. oprot.writeListBegin(TType.STRUCT, len(self.success))
  7527. for iter301 in self.success:
  7528. iter301.write(oprot)
  7529. oprot.writeListEnd()
  7530. oprot.writeFieldEnd()
  7531. if self.o1 is not None:
  7532. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  7533. self.o1.write(oprot)
  7534. oprot.writeFieldEnd()
  7535. oprot.writeFieldStop()
  7536. oprot.writeStructEnd()
  7537. def validate(self):
  7538. return
  7539. def __repr__(self):
  7540. L = ['%s=%r' % (key, value)
  7541. for key, value in self.__dict__.iteritems()]
  7542. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7543. def __eq__(self, other):
  7544. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7545. def __ne__(self, other):
  7546. return not (self == other)
  7547. class get_partitions_ps_with_auth_args(object):
  7548. """
  7549. Attributes:
  7550. - db_name
  7551. - tbl_name
  7552. - part_vals
  7553. - max_parts
  7554. - user_name
  7555. - group_names
  7556. """
  7557. thrift_spec = (
  7558. None, # 0
  7559. (1, TType.STRING, 'db_name', None, None, ), # 1
  7560. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  7561. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  7562. (4, TType.I16, 'max_parts', None, -1, ), # 4
  7563. (5, TType.STRING, 'user_name', None, None, ), # 5
  7564. (6, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 6
  7565. )
  7566. def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4], user_name=None, group_names=None,):
  7567. self.db_name = db_name
  7568. self.tbl_name = tbl_name
  7569. self.part_vals = part_vals
  7570. self.max_parts = max_parts
  7571. self.user_name = user_name
  7572. self.group_names = group_names
  7573. def read(self, iprot):
  7574. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7575. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7576. return
  7577. iprot.readStructBegin()
  7578. while True:
  7579. (fname, ftype, fid) = iprot.readFieldBegin()
  7580. if ftype == TType.STOP:
  7581. break
  7582. if fid == 1:
  7583. if ftype == TType.STRING:
  7584. self.db_name = iprot.readString();
  7585. else:
  7586. iprot.skip(ftype)
  7587. elif fid == 2:
  7588. if ftype == TType.STRING:
  7589. self.tbl_name = iprot.readString();
  7590. else:
  7591. iprot.skip(ftype)
  7592. elif fid == 3:
  7593. if ftype == TType.LIST:
  7594. self.part_vals = []
  7595. (_etype305, _size302) = iprot.readListBegin()
  7596. for _i306 in xrange(_size302):
  7597. _elem307 = iprot.readString();
  7598. self.part_vals.append(_elem307)
  7599. iprot.readListEnd()
  7600. else:
  7601. iprot.skip(ftype)
  7602. elif fid == 4:
  7603. if ftype == TType.I16:
  7604. self.max_parts = iprot.readI16();
  7605. else:
  7606. iprot.skip(ftype)
  7607. elif fid == 5:
  7608. if ftype == TType.STRING:
  7609. self.user_name = iprot.readString();
  7610. else:
  7611. iprot.skip(ftype)
  7612. elif fid == 6:
  7613. if ftype == TType.LIST:
  7614. self.group_names = []
  7615. (_etype311, _size308) = iprot.readListBegin()
  7616. for _i312 in xrange(_size308):
  7617. _elem313 = iprot.readString();
  7618. self.group_names.append(_elem313)
  7619. iprot.readListEnd()
  7620. else:
  7621. iprot.skip(ftype)
  7622. else:
  7623. iprot.skip(ftype)
  7624. iprot.readFieldEnd()
  7625. iprot.readStructEnd()
  7626. def write(self, oprot):
  7627. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7628. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7629. return
  7630. oprot.writeStructBegin('get_partitions_ps_with_auth_args')
  7631. if self.db_name is not None:
  7632. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  7633. oprot.writeString(self.db_name)
  7634. oprot.writeFieldEnd()
  7635. if self.tbl_name is not None:
  7636. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  7637. oprot.writeString(self.tbl_name)
  7638. oprot.writeFieldEnd()
  7639. if self.part_vals is not None:
  7640. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  7641. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  7642. for iter314 in self.part_vals:
  7643. oprot.writeString(iter314)
  7644. oprot.writeListEnd()
  7645. oprot.writeFieldEnd()
  7646. if self.max_parts is not None:
  7647. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  7648. oprot.writeI16(self.max_parts)
  7649. oprot.writeFieldEnd()
  7650. if self.user_name is not None:
  7651. oprot.writeFieldBegin('user_name', TType.STRING, 5)
  7652. oprot.writeString(self.user_name)
  7653. oprot.writeFieldEnd()
  7654. if self.group_names is not None:
  7655. oprot.writeFieldBegin('group_names', TType.LIST, 6)
  7656. oprot.writeListBegin(TType.STRING, len(self.group_names))
  7657. for iter315 in self.group_names:
  7658. oprot.writeString(iter315)
  7659. oprot.writeListEnd()
  7660. oprot.writeFieldEnd()
  7661. oprot.writeFieldStop()
  7662. oprot.writeStructEnd()
  7663. def validate(self):
  7664. return
  7665. def __repr__(self):
  7666. L = ['%s=%r' % (key, value)
  7667. for key, value in self.__dict__.iteritems()]
  7668. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7669. def __eq__(self, other):
  7670. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7671. def __ne__(self, other):
  7672. return not (self == other)
  7673. class get_partitions_ps_with_auth_result(object):
  7674. """
  7675. Attributes:
  7676. - success
  7677. - o1
  7678. - o2
  7679. """
  7680. thrift_spec = (
  7681. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  7682. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  7683. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  7684. )
  7685. def __init__(self, success=None, o1=None, o2=None,):
  7686. self.success = success
  7687. self.o1 = o1
  7688. self.o2 = o2
  7689. def read(self, iprot):
  7690. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7691. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7692. return
  7693. iprot.readStructBegin()
  7694. while True:
  7695. (fname, ftype, fid) = iprot.readFieldBegin()
  7696. if ftype == TType.STOP:
  7697. break
  7698. if fid == 0:
  7699. if ftype == TType.LIST:
  7700. self.success = []
  7701. (_etype319, _size316) = iprot.readListBegin()
  7702. for _i320 in xrange(_size316):
  7703. _elem321 = Partition()
  7704. _elem321.read(iprot)
  7705. self.success.append(_elem321)
  7706. iprot.readListEnd()
  7707. else:
  7708. iprot.skip(ftype)
  7709. elif fid == 1:
  7710. if ftype == TType.STRUCT:
  7711. self.o1 = NoSuchObjectException()
  7712. self.o1.read(iprot)
  7713. else:
  7714. iprot.skip(ftype)
  7715. elif fid == 2:
  7716. if ftype == TType.STRUCT:
  7717. self.o2 = MetaException()
  7718. self.o2.read(iprot)
  7719. else:
  7720. iprot.skip(ftype)
  7721. else:
  7722. iprot.skip(ftype)
  7723. iprot.readFieldEnd()
  7724. iprot.readStructEnd()
  7725. def write(self, oprot):
  7726. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7727. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7728. return
  7729. oprot.writeStructBegin('get_partitions_ps_with_auth_result')
  7730. if self.success is not None:
  7731. oprot.writeFieldBegin('success', TType.LIST, 0)
  7732. oprot.writeListBegin(TType.STRUCT, len(self.success))
  7733. for iter322 in self.success:
  7734. iter322.write(oprot)
  7735. oprot.writeListEnd()
  7736. oprot.writeFieldEnd()
  7737. if self.o1 is not None:
  7738. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  7739. self.o1.write(oprot)
  7740. oprot.writeFieldEnd()
  7741. if self.o2 is not None:
  7742. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  7743. self.o2.write(oprot)
  7744. oprot.writeFieldEnd()
  7745. oprot.writeFieldStop()
  7746. oprot.writeStructEnd()
  7747. def validate(self):
  7748. return
  7749. def __repr__(self):
  7750. L = ['%s=%r' % (key, value)
  7751. for key, value in self.__dict__.iteritems()]
  7752. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7753. def __eq__(self, other):
  7754. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7755. def __ne__(self, other):
  7756. return not (self == other)
  7757. class get_partition_names_ps_args(object):
  7758. """
  7759. Attributes:
  7760. - db_name
  7761. - tbl_name
  7762. - part_vals
  7763. - max_parts
  7764. """
  7765. thrift_spec = (
  7766. None, # 0
  7767. (1, TType.STRING, 'db_name', None, None, ), # 1
  7768. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  7769. (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3
  7770. (4, TType.I16, 'max_parts', None, -1, ), # 4
  7771. )
  7772. def __init__(self, db_name=None, tbl_name=None, part_vals=None, max_parts=thrift_spec[4][4],):
  7773. self.db_name = db_name
  7774. self.tbl_name = tbl_name
  7775. self.part_vals = part_vals
  7776. self.max_parts = max_parts
  7777. def read(self, iprot):
  7778. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7779. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7780. return
  7781. iprot.readStructBegin()
  7782. while True:
  7783. (fname, ftype, fid) = iprot.readFieldBegin()
  7784. if ftype == TType.STOP:
  7785. break
  7786. if fid == 1:
  7787. if ftype == TType.STRING:
  7788. self.db_name = iprot.readString();
  7789. else:
  7790. iprot.skip(ftype)
  7791. elif fid == 2:
  7792. if ftype == TType.STRING:
  7793. self.tbl_name = iprot.readString();
  7794. else:
  7795. iprot.skip(ftype)
  7796. elif fid == 3:
  7797. if ftype == TType.LIST:
  7798. self.part_vals = []
  7799. (_etype326, _size323) = iprot.readListBegin()
  7800. for _i327 in xrange(_size323):
  7801. _elem328 = iprot.readString();
  7802. self.part_vals.append(_elem328)
  7803. iprot.readListEnd()
  7804. else:
  7805. iprot.skip(ftype)
  7806. elif fid == 4:
  7807. if ftype == TType.I16:
  7808. self.max_parts = iprot.readI16();
  7809. else:
  7810. iprot.skip(ftype)
  7811. else:
  7812. iprot.skip(ftype)
  7813. iprot.readFieldEnd()
  7814. iprot.readStructEnd()
  7815. def write(self, oprot):
  7816. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7817. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7818. return
  7819. oprot.writeStructBegin('get_partition_names_ps_args')
  7820. if self.db_name is not None:
  7821. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  7822. oprot.writeString(self.db_name)
  7823. oprot.writeFieldEnd()
  7824. if self.tbl_name is not None:
  7825. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  7826. oprot.writeString(self.tbl_name)
  7827. oprot.writeFieldEnd()
  7828. if self.part_vals is not None:
  7829. oprot.writeFieldBegin('part_vals', TType.LIST, 3)
  7830. oprot.writeListBegin(TType.STRING, len(self.part_vals))
  7831. for iter329 in self.part_vals:
  7832. oprot.writeString(iter329)
  7833. oprot.writeListEnd()
  7834. oprot.writeFieldEnd()
  7835. if self.max_parts is not None:
  7836. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  7837. oprot.writeI16(self.max_parts)
  7838. oprot.writeFieldEnd()
  7839. oprot.writeFieldStop()
  7840. oprot.writeStructEnd()
  7841. def validate(self):
  7842. return
  7843. def __repr__(self):
  7844. L = ['%s=%r' % (key, value)
  7845. for key, value in self.__dict__.iteritems()]
  7846. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7847. def __eq__(self, other):
  7848. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7849. def __ne__(self, other):
  7850. return not (self == other)
  7851. class get_partition_names_ps_result(object):
  7852. """
  7853. Attributes:
  7854. - success
  7855. - o1
  7856. """
  7857. thrift_spec = (
  7858. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  7859. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  7860. )
  7861. def __init__(self, success=None, o1=None,):
  7862. self.success = success
  7863. self.o1 = o1
  7864. def read(self, iprot):
  7865. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7866. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7867. return
  7868. iprot.readStructBegin()
  7869. while True:
  7870. (fname, ftype, fid) = iprot.readFieldBegin()
  7871. if ftype == TType.STOP:
  7872. break
  7873. if fid == 0:
  7874. if ftype == TType.LIST:
  7875. self.success = []
  7876. (_etype333, _size330) = iprot.readListBegin()
  7877. for _i334 in xrange(_size330):
  7878. _elem335 = iprot.readString();
  7879. self.success.append(_elem335)
  7880. iprot.readListEnd()
  7881. else:
  7882. iprot.skip(ftype)
  7883. elif fid == 1:
  7884. if ftype == TType.STRUCT:
  7885. self.o1 = MetaException()
  7886. self.o1.read(iprot)
  7887. else:
  7888. iprot.skip(ftype)
  7889. else:
  7890. iprot.skip(ftype)
  7891. iprot.readFieldEnd()
  7892. iprot.readStructEnd()
  7893. def write(self, oprot):
  7894. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7895. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7896. return
  7897. oprot.writeStructBegin('get_partition_names_ps_result')
  7898. if self.success is not None:
  7899. oprot.writeFieldBegin('success', TType.LIST, 0)
  7900. oprot.writeListBegin(TType.STRING, len(self.success))
  7901. for iter336 in self.success:
  7902. oprot.writeString(iter336)
  7903. oprot.writeListEnd()
  7904. oprot.writeFieldEnd()
  7905. if self.o1 is not None:
  7906. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  7907. self.o1.write(oprot)
  7908. oprot.writeFieldEnd()
  7909. oprot.writeFieldStop()
  7910. oprot.writeStructEnd()
  7911. def validate(self):
  7912. return
  7913. def __repr__(self):
  7914. L = ['%s=%r' % (key, value)
  7915. for key, value in self.__dict__.iteritems()]
  7916. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  7917. def __eq__(self, other):
  7918. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  7919. def __ne__(self, other):
  7920. return not (self == other)
  7921. class get_partitions_by_filter_args(object):
  7922. """
  7923. Attributes:
  7924. - db_name
  7925. - tbl_name
  7926. - filter
  7927. - max_parts
  7928. """
  7929. thrift_spec = (
  7930. None, # 0
  7931. (1, TType.STRING, 'db_name', None, None, ), # 1
  7932. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  7933. (3, TType.STRING, 'filter', None, None, ), # 3
  7934. (4, TType.I16, 'max_parts', None, -1, ), # 4
  7935. )
  7936. def __init__(self, db_name=None, tbl_name=None, filter=None, max_parts=thrift_spec[4][4],):
  7937. self.db_name = db_name
  7938. self.tbl_name = tbl_name
  7939. self.filter = filter
  7940. self.max_parts = max_parts
  7941. def read(self, iprot):
  7942. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  7943. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  7944. return
  7945. iprot.readStructBegin()
  7946. while True:
  7947. (fname, ftype, fid) = iprot.readFieldBegin()
  7948. if ftype == TType.STOP:
  7949. break
  7950. if fid == 1:
  7951. if ftype == TType.STRING:
  7952. self.db_name = iprot.readString();
  7953. else:
  7954. iprot.skip(ftype)
  7955. elif fid == 2:
  7956. if ftype == TType.STRING:
  7957. self.tbl_name = iprot.readString();
  7958. else:
  7959. iprot.skip(ftype)
  7960. elif fid == 3:
  7961. if ftype == TType.STRING:
  7962. self.filter = iprot.readString();
  7963. else:
  7964. iprot.skip(ftype)
  7965. elif fid == 4:
  7966. if ftype == TType.I16:
  7967. self.max_parts = iprot.readI16();
  7968. else:
  7969. iprot.skip(ftype)
  7970. else:
  7971. iprot.skip(ftype)
  7972. iprot.readFieldEnd()
  7973. iprot.readStructEnd()
  7974. def write(self, oprot):
  7975. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  7976. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  7977. return
  7978. oprot.writeStructBegin('get_partitions_by_filter_args')
  7979. if self.db_name is not None:
  7980. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  7981. oprot.writeString(self.db_name)
  7982. oprot.writeFieldEnd()
  7983. if self.tbl_name is not None:
  7984. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  7985. oprot.writeString(self.tbl_name)
  7986. oprot.writeFieldEnd()
  7987. if self.filter is not None:
  7988. oprot.writeFieldBegin('filter', TType.STRING, 3)
  7989. oprot.writeString(self.filter)
  7990. oprot.writeFieldEnd()
  7991. if self.max_parts is not None:
  7992. oprot.writeFieldBegin('max_parts', TType.I16, 4)
  7993. oprot.writeI16(self.max_parts)
  7994. oprot.writeFieldEnd()
  7995. oprot.writeFieldStop()
  7996. oprot.writeStructEnd()
  7997. def validate(self):
  7998. return
  7999. def __repr__(self):
  8000. L = ['%s=%r' % (key, value)
  8001. for key, value in self.__dict__.iteritems()]
  8002. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8003. def __eq__(self, other):
  8004. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8005. def __ne__(self, other):
  8006. return not (self == other)
  8007. class get_partitions_by_filter_result(object):
  8008. """
  8009. Attributes:
  8010. - success
  8011. - o1
  8012. - o2
  8013. """
  8014. thrift_spec = (
  8015. (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0
  8016. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  8017. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  8018. )
  8019. def __init__(self, success=None, o1=None, o2=None,):
  8020. self.success = success
  8021. self.o1 = o1
  8022. self.o2 = o2
  8023. def read(self, iprot):
  8024. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8025. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8026. return
  8027. iprot.readStructBegin()
  8028. while True:
  8029. (fname, ftype, fid) = iprot.readFieldBegin()
  8030. if ftype == TType.STOP:
  8031. break
  8032. if fid == 0:
  8033. if ftype == TType.LIST:
  8034. self.success = []
  8035. (_etype340, _size337) = iprot.readListBegin()
  8036. for _i341 in xrange(_size337):
  8037. _elem342 = Partition()
  8038. _elem342.read(iprot)
  8039. self.success.append(_elem342)
  8040. iprot.readListEnd()
  8041. else:
  8042. iprot.skip(ftype)
  8043. elif fid == 1:
  8044. if ftype == TType.STRUCT:
  8045. self.o1 = MetaException()
  8046. self.o1.read(iprot)
  8047. else:
  8048. iprot.skip(ftype)
  8049. elif fid == 2:
  8050. if ftype == TType.STRUCT:
  8051. self.o2 = NoSuchObjectException()
  8052. self.o2.read(iprot)
  8053. else:
  8054. iprot.skip(ftype)
  8055. else:
  8056. iprot.skip(ftype)
  8057. iprot.readFieldEnd()
  8058. iprot.readStructEnd()
  8059. def write(self, oprot):
  8060. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8061. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8062. return
  8063. oprot.writeStructBegin('get_partitions_by_filter_result')
  8064. if self.success is not None:
  8065. oprot.writeFieldBegin('success', TType.LIST, 0)
  8066. oprot.writeListBegin(TType.STRUCT, len(self.success))
  8067. for iter343 in self.success:
  8068. iter343.write(oprot)
  8069. oprot.writeListEnd()
  8070. oprot.writeFieldEnd()
  8071. if self.o1 is not None:
  8072. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8073. self.o1.write(oprot)
  8074. oprot.writeFieldEnd()
  8075. if self.o2 is not None:
  8076. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  8077. self.o2.write(oprot)
  8078. oprot.writeFieldEnd()
  8079. oprot.writeFieldStop()
  8080. oprot.writeStructEnd()
  8081. def validate(self):
  8082. return
  8083. def __repr__(self):
  8084. L = ['%s=%r' % (key, value)
  8085. for key, value in self.__dict__.iteritems()]
  8086. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8087. def __eq__(self, other):
  8088. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8089. def __ne__(self, other):
  8090. return not (self == other)
  8091. class alter_partition_args(object):
  8092. """
  8093. Attributes:
  8094. - db_name
  8095. - tbl_name
  8096. - new_part
  8097. """
  8098. thrift_spec = (
  8099. None, # 0
  8100. (1, TType.STRING, 'db_name', None, None, ), # 1
  8101. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  8102. (3, TType.STRUCT, 'new_part', (Partition, Partition.thrift_spec), None, ), # 3
  8103. )
  8104. def __init__(self, db_name=None, tbl_name=None, new_part=None,):
  8105. self.db_name = db_name
  8106. self.tbl_name = tbl_name
  8107. self.new_part = new_part
  8108. def read(self, iprot):
  8109. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8110. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8111. return
  8112. iprot.readStructBegin()
  8113. while True:
  8114. (fname, ftype, fid) = iprot.readFieldBegin()
  8115. if ftype == TType.STOP:
  8116. break
  8117. if fid == 1:
  8118. if ftype == TType.STRING:
  8119. self.db_name = iprot.readString();
  8120. else:
  8121. iprot.skip(ftype)
  8122. elif fid == 2:
  8123. if ftype == TType.STRING:
  8124. self.tbl_name = iprot.readString();
  8125. else:
  8126. iprot.skip(ftype)
  8127. elif fid == 3:
  8128. if ftype == TType.STRUCT:
  8129. self.new_part = Partition()
  8130. self.new_part.read(iprot)
  8131. else:
  8132. iprot.skip(ftype)
  8133. else:
  8134. iprot.skip(ftype)
  8135. iprot.readFieldEnd()
  8136. iprot.readStructEnd()
  8137. def write(self, oprot):
  8138. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8139. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8140. return
  8141. oprot.writeStructBegin('alter_partition_args')
  8142. if self.db_name is not None:
  8143. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  8144. oprot.writeString(self.db_name)
  8145. oprot.writeFieldEnd()
  8146. if self.tbl_name is not None:
  8147. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  8148. oprot.writeString(self.tbl_name)
  8149. oprot.writeFieldEnd()
  8150. if self.new_part is not None:
  8151. oprot.writeFieldBegin('new_part', TType.STRUCT, 3)
  8152. self.new_part.write(oprot)
  8153. oprot.writeFieldEnd()
  8154. oprot.writeFieldStop()
  8155. oprot.writeStructEnd()
  8156. def validate(self):
  8157. return
  8158. def __repr__(self):
  8159. L = ['%s=%r' % (key, value)
  8160. for key, value in self.__dict__.iteritems()]
  8161. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8162. def __eq__(self, other):
  8163. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8164. def __ne__(self, other):
  8165. return not (self == other)
  8166. class alter_partition_result(object):
  8167. """
  8168. Attributes:
  8169. - o1
  8170. - o2
  8171. """
  8172. thrift_spec = (
  8173. None, # 0
  8174. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  8175. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  8176. )
  8177. def __init__(self, o1=None, o2=None,):
  8178. self.o1 = o1
  8179. self.o2 = o2
  8180. def read(self, iprot):
  8181. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8182. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8183. return
  8184. iprot.readStructBegin()
  8185. while True:
  8186. (fname, ftype, fid) = iprot.readFieldBegin()
  8187. if ftype == TType.STOP:
  8188. break
  8189. if fid == 1:
  8190. if ftype == TType.STRUCT:
  8191. self.o1 = InvalidOperationException()
  8192. self.o1.read(iprot)
  8193. else:
  8194. iprot.skip(ftype)
  8195. elif fid == 2:
  8196. if ftype == TType.STRUCT:
  8197. self.o2 = MetaException()
  8198. self.o2.read(iprot)
  8199. else:
  8200. iprot.skip(ftype)
  8201. else:
  8202. iprot.skip(ftype)
  8203. iprot.readFieldEnd()
  8204. iprot.readStructEnd()
  8205. def write(self, oprot):
  8206. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8207. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8208. return
  8209. oprot.writeStructBegin('alter_partition_result')
  8210. if self.o1 is not None:
  8211. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8212. self.o1.write(oprot)
  8213. oprot.writeFieldEnd()
  8214. if self.o2 is not None:
  8215. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  8216. self.o2.write(oprot)
  8217. oprot.writeFieldEnd()
  8218. oprot.writeFieldStop()
  8219. oprot.writeStructEnd()
  8220. def validate(self):
  8221. return
  8222. def __repr__(self):
  8223. L = ['%s=%r' % (key, value)
  8224. for key, value in self.__dict__.iteritems()]
  8225. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8226. def __eq__(self, other):
  8227. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8228. def __ne__(self, other):
  8229. return not (self == other)
  8230. class get_config_value_args(object):
  8231. """
  8232. Attributes:
  8233. - name
  8234. - defaultValue
  8235. """
  8236. thrift_spec = (
  8237. None, # 0
  8238. (1, TType.STRING, 'name', None, None, ), # 1
  8239. (2, TType.STRING, 'defaultValue', None, None, ), # 2
  8240. )
  8241. def __init__(self, name=None, defaultValue=None,):
  8242. self.name = name
  8243. self.defaultValue = defaultValue
  8244. def read(self, iprot):
  8245. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8246. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8247. return
  8248. iprot.readStructBegin()
  8249. while True:
  8250. (fname, ftype, fid) = iprot.readFieldBegin()
  8251. if ftype == TType.STOP:
  8252. break
  8253. if fid == 1:
  8254. if ftype == TType.STRING:
  8255. self.name = iprot.readString();
  8256. else:
  8257. iprot.skip(ftype)
  8258. elif fid == 2:
  8259. if ftype == TType.STRING:
  8260. self.defaultValue = iprot.readString();
  8261. else:
  8262. iprot.skip(ftype)
  8263. else:
  8264. iprot.skip(ftype)
  8265. iprot.readFieldEnd()
  8266. iprot.readStructEnd()
  8267. def write(self, oprot):
  8268. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8269. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8270. return
  8271. oprot.writeStructBegin('get_config_value_args')
  8272. if self.name is not None:
  8273. oprot.writeFieldBegin('name', TType.STRING, 1)
  8274. oprot.writeString(self.name)
  8275. oprot.writeFieldEnd()
  8276. if self.defaultValue is not None:
  8277. oprot.writeFieldBegin('defaultValue', TType.STRING, 2)
  8278. oprot.writeString(self.defaultValue)
  8279. oprot.writeFieldEnd()
  8280. oprot.writeFieldStop()
  8281. oprot.writeStructEnd()
  8282. def validate(self):
  8283. return
  8284. def __repr__(self):
  8285. L = ['%s=%r' % (key, value)
  8286. for key, value in self.__dict__.iteritems()]
  8287. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8288. def __eq__(self, other):
  8289. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8290. def __ne__(self, other):
  8291. return not (self == other)
  8292. class get_config_value_result(object):
  8293. """
  8294. Attributes:
  8295. - success
  8296. - o1
  8297. """
  8298. thrift_spec = (
  8299. (0, TType.STRING, 'success', None, None, ), # 0
  8300. (1, TType.STRUCT, 'o1', (ConfigValSecurityException, ConfigValSecurityException.thrift_spec), None, ), # 1
  8301. )
  8302. def __init__(self, success=None, o1=None,):
  8303. self.success = success
  8304. self.o1 = o1
  8305. def read(self, iprot):
  8306. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8307. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8308. return
  8309. iprot.readStructBegin()
  8310. while True:
  8311. (fname, ftype, fid) = iprot.readFieldBegin()
  8312. if ftype == TType.STOP:
  8313. break
  8314. if fid == 0:
  8315. if ftype == TType.STRING:
  8316. self.success = iprot.readString();
  8317. else:
  8318. iprot.skip(ftype)
  8319. elif fid == 1:
  8320. if ftype == TType.STRUCT:
  8321. self.o1 = ConfigValSecurityException()
  8322. self.o1.read(iprot)
  8323. else:
  8324. iprot.skip(ftype)
  8325. else:
  8326. iprot.skip(ftype)
  8327. iprot.readFieldEnd()
  8328. iprot.readStructEnd()
  8329. def write(self, oprot):
  8330. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8331. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8332. return
  8333. oprot.writeStructBegin('get_config_value_result')
  8334. if self.success is not None:
  8335. oprot.writeFieldBegin('success', TType.STRING, 0)
  8336. oprot.writeString(self.success)
  8337. oprot.writeFieldEnd()
  8338. if self.o1 is not None:
  8339. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8340. self.o1.write(oprot)
  8341. oprot.writeFieldEnd()
  8342. oprot.writeFieldStop()
  8343. oprot.writeStructEnd()
  8344. def validate(self):
  8345. return
  8346. def __repr__(self):
  8347. L = ['%s=%r' % (key, value)
  8348. for key, value in self.__dict__.iteritems()]
  8349. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8350. def __eq__(self, other):
  8351. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8352. def __ne__(self, other):
  8353. return not (self == other)
  8354. class partition_name_to_vals_args(object):
  8355. """
  8356. Attributes:
  8357. - part_name
  8358. """
  8359. thrift_spec = (
  8360. None, # 0
  8361. (1, TType.STRING, 'part_name', None, None, ), # 1
  8362. )
  8363. def __init__(self, part_name=None,):
  8364. self.part_name = part_name
  8365. def read(self, iprot):
  8366. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8367. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8368. return
  8369. iprot.readStructBegin()
  8370. while True:
  8371. (fname, ftype, fid) = iprot.readFieldBegin()
  8372. if ftype == TType.STOP:
  8373. break
  8374. if fid == 1:
  8375. if ftype == TType.STRING:
  8376. self.part_name = iprot.readString();
  8377. else:
  8378. iprot.skip(ftype)
  8379. else:
  8380. iprot.skip(ftype)
  8381. iprot.readFieldEnd()
  8382. iprot.readStructEnd()
  8383. def write(self, oprot):
  8384. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8385. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8386. return
  8387. oprot.writeStructBegin('partition_name_to_vals_args')
  8388. if self.part_name is not None:
  8389. oprot.writeFieldBegin('part_name', TType.STRING, 1)
  8390. oprot.writeString(self.part_name)
  8391. oprot.writeFieldEnd()
  8392. oprot.writeFieldStop()
  8393. oprot.writeStructEnd()
  8394. def validate(self):
  8395. return
  8396. def __repr__(self):
  8397. L = ['%s=%r' % (key, value)
  8398. for key, value in self.__dict__.iteritems()]
  8399. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8400. def __eq__(self, other):
  8401. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8402. def __ne__(self, other):
  8403. return not (self == other)
  8404. class partition_name_to_vals_result(object):
  8405. """
  8406. Attributes:
  8407. - success
  8408. - o1
  8409. """
  8410. thrift_spec = (
  8411. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  8412. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  8413. )
  8414. def __init__(self, success=None, o1=None,):
  8415. self.success = success
  8416. self.o1 = o1
  8417. def read(self, iprot):
  8418. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8419. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8420. return
  8421. iprot.readStructBegin()
  8422. while True:
  8423. (fname, ftype, fid) = iprot.readFieldBegin()
  8424. if ftype == TType.STOP:
  8425. break
  8426. if fid == 0:
  8427. if ftype == TType.LIST:
  8428. self.success = []
  8429. (_etype347, _size344) = iprot.readListBegin()
  8430. for _i348 in xrange(_size344):
  8431. _elem349 = iprot.readString();
  8432. self.success.append(_elem349)
  8433. iprot.readListEnd()
  8434. else:
  8435. iprot.skip(ftype)
  8436. elif fid == 1:
  8437. if ftype == TType.STRUCT:
  8438. self.o1 = MetaException()
  8439. self.o1.read(iprot)
  8440. else:
  8441. iprot.skip(ftype)
  8442. else:
  8443. iprot.skip(ftype)
  8444. iprot.readFieldEnd()
  8445. iprot.readStructEnd()
  8446. def write(self, oprot):
  8447. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8448. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8449. return
  8450. oprot.writeStructBegin('partition_name_to_vals_result')
  8451. if self.success is not None:
  8452. oprot.writeFieldBegin('success', TType.LIST, 0)
  8453. oprot.writeListBegin(TType.STRING, len(self.success))
  8454. for iter350 in self.success:
  8455. oprot.writeString(iter350)
  8456. oprot.writeListEnd()
  8457. oprot.writeFieldEnd()
  8458. if self.o1 is not None:
  8459. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8460. self.o1.write(oprot)
  8461. oprot.writeFieldEnd()
  8462. oprot.writeFieldStop()
  8463. oprot.writeStructEnd()
  8464. def validate(self):
  8465. return
  8466. def __repr__(self):
  8467. L = ['%s=%r' % (key, value)
  8468. for key, value in self.__dict__.iteritems()]
  8469. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8470. def __eq__(self, other):
  8471. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8472. def __ne__(self, other):
  8473. return not (self == other)
  8474. class partition_name_to_spec_args(object):
  8475. """
  8476. Attributes:
  8477. - part_name
  8478. """
  8479. thrift_spec = (
  8480. None, # 0
  8481. (1, TType.STRING, 'part_name', None, None, ), # 1
  8482. )
  8483. def __init__(self, part_name=None,):
  8484. self.part_name = part_name
  8485. def read(self, iprot):
  8486. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8487. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8488. return
  8489. iprot.readStructBegin()
  8490. while True:
  8491. (fname, ftype, fid) = iprot.readFieldBegin()
  8492. if ftype == TType.STOP:
  8493. break
  8494. if fid == 1:
  8495. if ftype == TType.STRING:
  8496. self.part_name = iprot.readString();
  8497. else:
  8498. iprot.skip(ftype)
  8499. else:
  8500. iprot.skip(ftype)
  8501. iprot.readFieldEnd()
  8502. iprot.readStructEnd()
  8503. def write(self, oprot):
  8504. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8505. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8506. return
  8507. oprot.writeStructBegin('partition_name_to_spec_args')
  8508. if self.part_name is not None:
  8509. oprot.writeFieldBegin('part_name', TType.STRING, 1)
  8510. oprot.writeString(self.part_name)
  8511. oprot.writeFieldEnd()
  8512. oprot.writeFieldStop()
  8513. oprot.writeStructEnd()
  8514. def validate(self):
  8515. return
  8516. def __repr__(self):
  8517. L = ['%s=%r' % (key, value)
  8518. for key, value in self.__dict__.iteritems()]
  8519. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8520. def __eq__(self, other):
  8521. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8522. def __ne__(self, other):
  8523. return not (self == other)
  8524. class partition_name_to_spec_result(object):
  8525. """
  8526. Attributes:
  8527. - success
  8528. - o1
  8529. """
  8530. thrift_spec = (
  8531. (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0
  8532. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  8533. )
  8534. def __init__(self, success=None, o1=None,):
  8535. self.success = success
  8536. self.o1 = o1
  8537. def read(self, iprot):
  8538. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8539. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8540. return
  8541. iprot.readStructBegin()
  8542. while True:
  8543. (fname, ftype, fid) = iprot.readFieldBegin()
  8544. if ftype == TType.STOP:
  8545. break
  8546. if fid == 0:
  8547. if ftype == TType.MAP:
  8548. self.success = {}
  8549. (_ktype352, _vtype353, _size351 ) = iprot.readMapBegin()
  8550. for _i355 in xrange(_size351):
  8551. _key356 = iprot.readString();
  8552. _val357 = iprot.readString();
  8553. self.success[_key356] = _val357
  8554. iprot.readMapEnd()
  8555. else:
  8556. iprot.skip(ftype)
  8557. elif fid == 1:
  8558. if ftype == TType.STRUCT:
  8559. self.o1 = MetaException()
  8560. self.o1.read(iprot)
  8561. else:
  8562. iprot.skip(ftype)
  8563. else:
  8564. iprot.skip(ftype)
  8565. iprot.readFieldEnd()
  8566. iprot.readStructEnd()
  8567. def write(self, oprot):
  8568. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8569. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8570. return
  8571. oprot.writeStructBegin('partition_name_to_spec_result')
  8572. if self.success is not None:
  8573. oprot.writeFieldBegin('success', TType.MAP, 0)
  8574. oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
  8575. for kiter358,viter359 in self.success.items():
  8576. oprot.writeString(kiter358)
  8577. oprot.writeString(viter359)
  8578. oprot.writeMapEnd()
  8579. oprot.writeFieldEnd()
  8580. if self.o1 is not None:
  8581. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8582. self.o1.write(oprot)
  8583. oprot.writeFieldEnd()
  8584. oprot.writeFieldStop()
  8585. oprot.writeStructEnd()
  8586. def validate(self):
  8587. return
  8588. def __repr__(self):
  8589. L = ['%s=%r' % (key, value)
  8590. for key, value in self.__dict__.iteritems()]
  8591. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8592. def __eq__(self, other):
  8593. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8594. def __ne__(self, other):
  8595. return not (self == other)
  8596. class add_index_args(object):
  8597. """
  8598. Attributes:
  8599. - new_index
  8600. - index_table
  8601. """
  8602. thrift_spec = (
  8603. None, # 0
  8604. (1, TType.STRUCT, 'new_index', (Index, Index.thrift_spec), None, ), # 1
  8605. (2, TType.STRUCT, 'index_table', (Table, Table.thrift_spec), None, ), # 2
  8606. )
  8607. def __init__(self, new_index=None, index_table=None,):
  8608. self.new_index = new_index
  8609. self.index_table = index_table
  8610. def read(self, iprot):
  8611. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8612. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8613. return
  8614. iprot.readStructBegin()
  8615. while True:
  8616. (fname, ftype, fid) = iprot.readFieldBegin()
  8617. if ftype == TType.STOP:
  8618. break
  8619. if fid == 1:
  8620. if ftype == TType.STRUCT:
  8621. self.new_index = Index()
  8622. self.new_index.read(iprot)
  8623. else:
  8624. iprot.skip(ftype)
  8625. elif fid == 2:
  8626. if ftype == TType.STRUCT:
  8627. self.index_table = Table()
  8628. self.index_table.read(iprot)
  8629. else:
  8630. iprot.skip(ftype)
  8631. else:
  8632. iprot.skip(ftype)
  8633. iprot.readFieldEnd()
  8634. iprot.readStructEnd()
  8635. def write(self, oprot):
  8636. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8637. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8638. return
  8639. oprot.writeStructBegin('add_index_args')
  8640. if self.new_index is not None:
  8641. oprot.writeFieldBegin('new_index', TType.STRUCT, 1)
  8642. self.new_index.write(oprot)
  8643. oprot.writeFieldEnd()
  8644. if self.index_table is not None:
  8645. oprot.writeFieldBegin('index_table', TType.STRUCT, 2)
  8646. self.index_table.write(oprot)
  8647. oprot.writeFieldEnd()
  8648. oprot.writeFieldStop()
  8649. oprot.writeStructEnd()
  8650. def validate(self):
  8651. return
  8652. def __repr__(self):
  8653. L = ['%s=%r' % (key, value)
  8654. for key, value in self.__dict__.iteritems()]
  8655. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8656. def __eq__(self, other):
  8657. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8658. def __ne__(self, other):
  8659. return not (self == other)
  8660. class add_index_result(object):
  8661. """
  8662. Attributes:
  8663. - success
  8664. - o1
  8665. - o2
  8666. - o3
  8667. """
  8668. thrift_spec = (
  8669. (0, TType.STRUCT, 'success', (Index, Index.thrift_spec), None, ), # 0
  8670. (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1
  8671. (2, TType.STRUCT, 'o2', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 2
  8672. (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
  8673. )
  8674. def __init__(self, success=None, o1=None, o2=None, o3=None,):
  8675. self.success = success
  8676. self.o1 = o1
  8677. self.o2 = o2
  8678. self.o3 = o3
  8679. def read(self, iprot):
  8680. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8681. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8682. return
  8683. iprot.readStructBegin()
  8684. while True:
  8685. (fname, ftype, fid) = iprot.readFieldBegin()
  8686. if ftype == TType.STOP:
  8687. break
  8688. if fid == 0:
  8689. if ftype == TType.STRUCT:
  8690. self.success = Index()
  8691. self.success.read(iprot)
  8692. else:
  8693. iprot.skip(ftype)
  8694. elif fid == 1:
  8695. if ftype == TType.STRUCT:
  8696. self.o1 = InvalidObjectException()
  8697. self.o1.read(iprot)
  8698. else:
  8699. iprot.skip(ftype)
  8700. elif fid == 2:
  8701. if ftype == TType.STRUCT:
  8702. self.o2 = AlreadyExistsException()
  8703. self.o2.read(iprot)
  8704. else:
  8705. iprot.skip(ftype)
  8706. elif fid == 3:
  8707. if ftype == TType.STRUCT:
  8708. self.o3 = MetaException()
  8709. self.o3.read(iprot)
  8710. else:
  8711. iprot.skip(ftype)
  8712. else:
  8713. iprot.skip(ftype)
  8714. iprot.readFieldEnd()
  8715. iprot.readStructEnd()
  8716. def write(self, oprot):
  8717. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8718. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8719. return
  8720. oprot.writeStructBegin('add_index_result')
  8721. if self.success is not None:
  8722. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  8723. self.success.write(oprot)
  8724. oprot.writeFieldEnd()
  8725. if self.o1 is not None:
  8726. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8727. self.o1.write(oprot)
  8728. oprot.writeFieldEnd()
  8729. if self.o2 is not None:
  8730. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  8731. self.o2.write(oprot)
  8732. oprot.writeFieldEnd()
  8733. if self.o3 is not None:
  8734. oprot.writeFieldBegin('o3', TType.STRUCT, 3)
  8735. self.o3.write(oprot)
  8736. oprot.writeFieldEnd()
  8737. oprot.writeFieldStop()
  8738. oprot.writeStructEnd()
  8739. def validate(self):
  8740. return
  8741. def __repr__(self):
  8742. L = ['%s=%r' % (key, value)
  8743. for key, value in self.__dict__.iteritems()]
  8744. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8745. def __eq__(self, other):
  8746. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8747. def __ne__(self, other):
  8748. return not (self == other)
  8749. class alter_index_args(object):
  8750. """
  8751. Attributes:
  8752. - dbname
  8753. - base_tbl_name
  8754. - idx_name
  8755. - new_idx
  8756. """
  8757. thrift_spec = (
  8758. None, # 0
  8759. (1, TType.STRING, 'dbname', None, None, ), # 1
  8760. (2, TType.STRING, 'base_tbl_name', None, None, ), # 2
  8761. (3, TType.STRING, 'idx_name', None, None, ), # 3
  8762. (4, TType.STRUCT, 'new_idx', (Index, Index.thrift_spec), None, ), # 4
  8763. )
  8764. def __init__(self, dbname=None, base_tbl_name=None, idx_name=None, new_idx=None,):
  8765. self.dbname = dbname
  8766. self.base_tbl_name = base_tbl_name
  8767. self.idx_name = idx_name
  8768. self.new_idx = new_idx
  8769. def read(self, iprot):
  8770. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8771. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8772. return
  8773. iprot.readStructBegin()
  8774. while True:
  8775. (fname, ftype, fid) = iprot.readFieldBegin()
  8776. if ftype == TType.STOP:
  8777. break
  8778. if fid == 1:
  8779. if ftype == TType.STRING:
  8780. self.dbname = iprot.readString();
  8781. else:
  8782. iprot.skip(ftype)
  8783. elif fid == 2:
  8784. if ftype == TType.STRING:
  8785. self.base_tbl_name = iprot.readString();
  8786. else:
  8787. iprot.skip(ftype)
  8788. elif fid == 3:
  8789. if ftype == TType.STRING:
  8790. self.idx_name = iprot.readString();
  8791. else:
  8792. iprot.skip(ftype)
  8793. elif fid == 4:
  8794. if ftype == TType.STRUCT:
  8795. self.new_idx = Index()
  8796. self.new_idx.read(iprot)
  8797. else:
  8798. iprot.skip(ftype)
  8799. else:
  8800. iprot.skip(ftype)
  8801. iprot.readFieldEnd()
  8802. iprot.readStructEnd()
  8803. def write(self, oprot):
  8804. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8805. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8806. return
  8807. oprot.writeStructBegin('alter_index_args')
  8808. if self.dbname is not None:
  8809. oprot.writeFieldBegin('dbname', TType.STRING, 1)
  8810. oprot.writeString(self.dbname)
  8811. oprot.writeFieldEnd()
  8812. if self.base_tbl_name is not None:
  8813. oprot.writeFieldBegin('base_tbl_name', TType.STRING, 2)
  8814. oprot.writeString(self.base_tbl_name)
  8815. oprot.writeFieldEnd()
  8816. if self.idx_name is not None:
  8817. oprot.writeFieldBegin('idx_name', TType.STRING, 3)
  8818. oprot.writeString(self.idx_name)
  8819. oprot.writeFieldEnd()
  8820. if self.new_idx is not None:
  8821. oprot.writeFieldBegin('new_idx', TType.STRUCT, 4)
  8822. self.new_idx.write(oprot)
  8823. oprot.writeFieldEnd()
  8824. oprot.writeFieldStop()
  8825. oprot.writeStructEnd()
  8826. def validate(self):
  8827. return
  8828. def __repr__(self):
  8829. L = ['%s=%r' % (key, value)
  8830. for key, value in self.__dict__.iteritems()]
  8831. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8832. def __eq__(self, other):
  8833. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8834. def __ne__(self, other):
  8835. return not (self == other)
  8836. class alter_index_result(object):
  8837. """
  8838. Attributes:
  8839. - o1
  8840. - o2
  8841. """
  8842. thrift_spec = (
  8843. None, # 0
  8844. (1, TType.STRUCT, 'o1', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 1
  8845. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  8846. )
  8847. def __init__(self, o1=None, o2=None,):
  8848. self.o1 = o1
  8849. self.o2 = o2
  8850. def read(self, iprot):
  8851. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8852. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8853. return
  8854. iprot.readStructBegin()
  8855. while True:
  8856. (fname, ftype, fid) = iprot.readFieldBegin()
  8857. if ftype == TType.STOP:
  8858. break
  8859. if fid == 1:
  8860. if ftype == TType.STRUCT:
  8861. self.o1 = InvalidOperationException()
  8862. self.o1.read(iprot)
  8863. else:
  8864. iprot.skip(ftype)
  8865. elif fid == 2:
  8866. if ftype == TType.STRUCT:
  8867. self.o2 = MetaException()
  8868. self.o2.read(iprot)
  8869. else:
  8870. iprot.skip(ftype)
  8871. else:
  8872. iprot.skip(ftype)
  8873. iprot.readFieldEnd()
  8874. iprot.readStructEnd()
  8875. def write(self, oprot):
  8876. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8877. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8878. return
  8879. oprot.writeStructBegin('alter_index_result')
  8880. if self.o1 is not None:
  8881. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  8882. self.o1.write(oprot)
  8883. oprot.writeFieldEnd()
  8884. if self.o2 is not None:
  8885. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  8886. self.o2.write(oprot)
  8887. oprot.writeFieldEnd()
  8888. oprot.writeFieldStop()
  8889. oprot.writeStructEnd()
  8890. def validate(self):
  8891. return
  8892. def __repr__(self):
  8893. L = ['%s=%r' % (key, value)
  8894. for key, value in self.__dict__.iteritems()]
  8895. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8896. def __eq__(self, other):
  8897. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8898. def __ne__(self, other):
  8899. return not (self == other)
  8900. class drop_index_by_name_args(object):
  8901. """
  8902. Attributes:
  8903. - db_name
  8904. - tbl_name
  8905. - index_name
  8906. - deleteData
  8907. """
  8908. thrift_spec = (
  8909. None, # 0
  8910. (1, TType.STRING, 'db_name', None, None, ), # 1
  8911. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  8912. (3, TType.STRING, 'index_name', None, None, ), # 3
  8913. (4, TType.BOOL, 'deleteData', None, None, ), # 4
  8914. )
  8915. def __init__(self, db_name=None, tbl_name=None, index_name=None, deleteData=None,):
  8916. self.db_name = db_name
  8917. self.tbl_name = tbl_name
  8918. self.index_name = index_name
  8919. self.deleteData = deleteData
  8920. def read(self, iprot):
  8921. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  8922. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  8923. return
  8924. iprot.readStructBegin()
  8925. while True:
  8926. (fname, ftype, fid) = iprot.readFieldBegin()
  8927. if ftype == TType.STOP:
  8928. break
  8929. if fid == 1:
  8930. if ftype == TType.STRING:
  8931. self.db_name = iprot.readString();
  8932. else:
  8933. iprot.skip(ftype)
  8934. elif fid == 2:
  8935. if ftype == TType.STRING:
  8936. self.tbl_name = iprot.readString();
  8937. else:
  8938. iprot.skip(ftype)
  8939. elif fid == 3:
  8940. if ftype == TType.STRING:
  8941. self.index_name = iprot.readString();
  8942. else:
  8943. iprot.skip(ftype)
  8944. elif fid == 4:
  8945. if ftype == TType.BOOL:
  8946. self.deleteData = iprot.readBool();
  8947. else:
  8948. iprot.skip(ftype)
  8949. else:
  8950. iprot.skip(ftype)
  8951. iprot.readFieldEnd()
  8952. iprot.readStructEnd()
  8953. def write(self, oprot):
  8954. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  8955. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  8956. return
  8957. oprot.writeStructBegin('drop_index_by_name_args')
  8958. if self.db_name is not None:
  8959. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  8960. oprot.writeString(self.db_name)
  8961. oprot.writeFieldEnd()
  8962. if self.tbl_name is not None:
  8963. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  8964. oprot.writeString(self.tbl_name)
  8965. oprot.writeFieldEnd()
  8966. if self.index_name is not None:
  8967. oprot.writeFieldBegin('index_name', TType.STRING, 3)
  8968. oprot.writeString(self.index_name)
  8969. oprot.writeFieldEnd()
  8970. if self.deleteData is not None:
  8971. oprot.writeFieldBegin('deleteData', TType.BOOL, 4)
  8972. oprot.writeBool(self.deleteData)
  8973. oprot.writeFieldEnd()
  8974. oprot.writeFieldStop()
  8975. oprot.writeStructEnd()
  8976. def validate(self):
  8977. return
  8978. def __repr__(self):
  8979. L = ['%s=%r' % (key, value)
  8980. for key, value in self.__dict__.iteritems()]
  8981. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  8982. def __eq__(self, other):
  8983. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  8984. def __ne__(self, other):
  8985. return not (self == other)
  8986. class drop_index_by_name_result(object):
  8987. """
  8988. Attributes:
  8989. - success
  8990. - o1
  8991. - o2
  8992. """
  8993. thrift_spec = (
  8994. (0, TType.BOOL, 'success', None, None, ), # 0
  8995. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  8996. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  8997. )
  8998. def __init__(self, success=None, o1=None, o2=None,):
  8999. self.success = success
  9000. self.o1 = o1
  9001. self.o2 = o2
  9002. def read(self, iprot):
  9003. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9004. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9005. return
  9006. iprot.readStructBegin()
  9007. while True:
  9008. (fname, ftype, fid) = iprot.readFieldBegin()
  9009. if ftype == TType.STOP:
  9010. break
  9011. if fid == 0:
  9012. if ftype == TType.BOOL:
  9013. self.success = iprot.readBool();
  9014. else:
  9015. iprot.skip(ftype)
  9016. elif fid == 1:
  9017. if ftype == TType.STRUCT:
  9018. self.o1 = NoSuchObjectException()
  9019. self.o1.read(iprot)
  9020. else:
  9021. iprot.skip(ftype)
  9022. elif fid == 2:
  9023. if ftype == TType.STRUCT:
  9024. self.o2 = MetaException()
  9025. self.o2.read(iprot)
  9026. else:
  9027. iprot.skip(ftype)
  9028. else:
  9029. iprot.skip(ftype)
  9030. iprot.readFieldEnd()
  9031. iprot.readStructEnd()
  9032. def write(self, oprot):
  9033. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9034. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9035. return
  9036. oprot.writeStructBegin('drop_index_by_name_result')
  9037. if self.success is not None:
  9038. oprot.writeFieldBegin('success', TType.BOOL, 0)
  9039. oprot.writeBool(self.success)
  9040. oprot.writeFieldEnd()
  9041. if self.o1 is not None:
  9042. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9043. self.o1.write(oprot)
  9044. oprot.writeFieldEnd()
  9045. if self.o2 is not None:
  9046. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  9047. self.o2.write(oprot)
  9048. oprot.writeFieldEnd()
  9049. oprot.writeFieldStop()
  9050. oprot.writeStructEnd()
  9051. def validate(self):
  9052. return
  9053. def __repr__(self):
  9054. L = ['%s=%r' % (key, value)
  9055. for key, value in self.__dict__.iteritems()]
  9056. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9057. def __eq__(self, other):
  9058. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9059. def __ne__(self, other):
  9060. return not (self == other)
  9061. class get_index_by_name_args(object):
  9062. """
  9063. Attributes:
  9064. - db_name
  9065. - tbl_name
  9066. - index_name
  9067. """
  9068. thrift_spec = (
  9069. None, # 0
  9070. (1, TType.STRING, 'db_name', None, None, ), # 1
  9071. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  9072. (3, TType.STRING, 'index_name', None, None, ), # 3
  9073. )
  9074. def __init__(self, db_name=None, tbl_name=None, index_name=None,):
  9075. self.db_name = db_name
  9076. self.tbl_name = tbl_name
  9077. self.index_name = index_name
  9078. def read(self, iprot):
  9079. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9080. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9081. return
  9082. iprot.readStructBegin()
  9083. while True:
  9084. (fname, ftype, fid) = iprot.readFieldBegin()
  9085. if ftype == TType.STOP:
  9086. break
  9087. if fid == 1:
  9088. if ftype == TType.STRING:
  9089. self.db_name = iprot.readString();
  9090. else:
  9091. iprot.skip(ftype)
  9092. elif fid == 2:
  9093. if ftype == TType.STRING:
  9094. self.tbl_name = iprot.readString();
  9095. else:
  9096. iprot.skip(ftype)
  9097. elif fid == 3:
  9098. if ftype == TType.STRING:
  9099. self.index_name = iprot.readString();
  9100. else:
  9101. iprot.skip(ftype)
  9102. else:
  9103. iprot.skip(ftype)
  9104. iprot.readFieldEnd()
  9105. iprot.readStructEnd()
  9106. def write(self, oprot):
  9107. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9108. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9109. return
  9110. oprot.writeStructBegin('get_index_by_name_args')
  9111. if self.db_name is not None:
  9112. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  9113. oprot.writeString(self.db_name)
  9114. oprot.writeFieldEnd()
  9115. if self.tbl_name is not None:
  9116. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  9117. oprot.writeString(self.tbl_name)
  9118. oprot.writeFieldEnd()
  9119. if self.index_name is not None:
  9120. oprot.writeFieldBegin('index_name', TType.STRING, 3)
  9121. oprot.writeString(self.index_name)
  9122. oprot.writeFieldEnd()
  9123. oprot.writeFieldStop()
  9124. oprot.writeStructEnd()
  9125. def validate(self):
  9126. return
  9127. def __repr__(self):
  9128. L = ['%s=%r' % (key, value)
  9129. for key, value in self.__dict__.iteritems()]
  9130. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9131. def __eq__(self, other):
  9132. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9133. def __ne__(self, other):
  9134. return not (self == other)
  9135. class get_index_by_name_result(object):
  9136. """
  9137. Attributes:
  9138. - success
  9139. - o1
  9140. - o2
  9141. """
  9142. thrift_spec = (
  9143. (0, TType.STRUCT, 'success', (Index, Index.thrift_spec), None, ), # 0
  9144. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  9145. (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
  9146. )
  9147. def __init__(self, success=None, o1=None, o2=None,):
  9148. self.success = success
  9149. self.o1 = o1
  9150. self.o2 = o2
  9151. def read(self, iprot):
  9152. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9153. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9154. return
  9155. iprot.readStructBegin()
  9156. while True:
  9157. (fname, ftype, fid) = iprot.readFieldBegin()
  9158. if ftype == TType.STOP:
  9159. break
  9160. if fid == 0:
  9161. if ftype == TType.STRUCT:
  9162. self.success = Index()
  9163. self.success.read(iprot)
  9164. else:
  9165. iprot.skip(ftype)
  9166. elif fid == 1:
  9167. if ftype == TType.STRUCT:
  9168. self.o1 = MetaException()
  9169. self.o1.read(iprot)
  9170. else:
  9171. iprot.skip(ftype)
  9172. elif fid == 2:
  9173. if ftype == TType.STRUCT:
  9174. self.o2 = NoSuchObjectException()
  9175. self.o2.read(iprot)
  9176. else:
  9177. iprot.skip(ftype)
  9178. else:
  9179. iprot.skip(ftype)
  9180. iprot.readFieldEnd()
  9181. iprot.readStructEnd()
  9182. def write(self, oprot):
  9183. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9184. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9185. return
  9186. oprot.writeStructBegin('get_index_by_name_result')
  9187. if self.success is not None:
  9188. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  9189. self.success.write(oprot)
  9190. oprot.writeFieldEnd()
  9191. if self.o1 is not None:
  9192. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9193. self.o1.write(oprot)
  9194. oprot.writeFieldEnd()
  9195. if self.o2 is not None:
  9196. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  9197. self.o2.write(oprot)
  9198. oprot.writeFieldEnd()
  9199. oprot.writeFieldStop()
  9200. oprot.writeStructEnd()
  9201. def validate(self):
  9202. return
  9203. def __repr__(self):
  9204. L = ['%s=%r' % (key, value)
  9205. for key, value in self.__dict__.iteritems()]
  9206. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9207. def __eq__(self, other):
  9208. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9209. def __ne__(self, other):
  9210. return not (self == other)
  9211. class get_indexes_args(object):
  9212. """
  9213. Attributes:
  9214. - db_name
  9215. - tbl_name
  9216. - max_indexes
  9217. """
  9218. thrift_spec = (
  9219. None, # 0
  9220. (1, TType.STRING, 'db_name', None, None, ), # 1
  9221. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  9222. (3, TType.I16, 'max_indexes', None, -1, ), # 3
  9223. )
  9224. def __init__(self, db_name=None, tbl_name=None, max_indexes=thrift_spec[3][4],):
  9225. self.db_name = db_name
  9226. self.tbl_name = tbl_name
  9227. self.max_indexes = max_indexes
  9228. def read(self, iprot):
  9229. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9230. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9231. return
  9232. iprot.readStructBegin()
  9233. while True:
  9234. (fname, ftype, fid) = iprot.readFieldBegin()
  9235. if ftype == TType.STOP:
  9236. break
  9237. if fid == 1:
  9238. if ftype == TType.STRING:
  9239. self.db_name = iprot.readString();
  9240. else:
  9241. iprot.skip(ftype)
  9242. elif fid == 2:
  9243. if ftype == TType.STRING:
  9244. self.tbl_name = iprot.readString();
  9245. else:
  9246. iprot.skip(ftype)
  9247. elif fid == 3:
  9248. if ftype == TType.I16:
  9249. self.max_indexes = iprot.readI16();
  9250. else:
  9251. iprot.skip(ftype)
  9252. else:
  9253. iprot.skip(ftype)
  9254. iprot.readFieldEnd()
  9255. iprot.readStructEnd()
  9256. def write(self, oprot):
  9257. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9258. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9259. return
  9260. oprot.writeStructBegin('get_indexes_args')
  9261. if self.db_name is not None:
  9262. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  9263. oprot.writeString(self.db_name)
  9264. oprot.writeFieldEnd()
  9265. if self.tbl_name is not None:
  9266. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  9267. oprot.writeString(self.tbl_name)
  9268. oprot.writeFieldEnd()
  9269. if self.max_indexes is not None:
  9270. oprot.writeFieldBegin('max_indexes', TType.I16, 3)
  9271. oprot.writeI16(self.max_indexes)
  9272. oprot.writeFieldEnd()
  9273. oprot.writeFieldStop()
  9274. oprot.writeStructEnd()
  9275. def validate(self):
  9276. return
  9277. def __repr__(self):
  9278. L = ['%s=%r' % (key, value)
  9279. for key, value in self.__dict__.iteritems()]
  9280. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9281. def __eq__(self, other):
  9282. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9283. def __ne__(self, other):
  9284. return not (self == other)
  9285. class get_indexes_result(object):
  9286. """
  9287. Attributes:
  9288. - success
  9289. - o1
  9290. - o2
  9291. """
  9292. thrift_spec = (
  9293. (0, TType.LIST, 'success', (TType.STRUCT,(Index, Index.thrift_spec)), None, ), # 0
  9294. (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
  9295. (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2
  9296. )
  9297. def __init__(self, success=None, o1=None, o2=None,):
  9298. self.success = success
  9299. self.o1 = o1
  9300. self.o2 = o2
  9301. def read(self, iprot):
  9302. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9303. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9304. return
  9305. iprot.readStructBegin()
  9306. while True:
  9307. (fname, ftype, fid) = iprot.readFieldBegin()
  9308. if ftype == TType.STOP:
  9309. break
  9310. if fid == 0:
  9311. if ftype == TType.LIST:
  9312. self.success = []
  9313. (_etype363, _size360) = iprot.readListBegin()
  9314. for _i364 in xrange(_size360):
  9315. _elem365 = Index()
  9316. _elem365.read(iprot)
  9317. self.success.append(_elem365)
  9318. iprot.readListEnd()
  9319. else:
  9320. iprot.skip(ftype)
  9321. elif fid == 1:
  9322. if ftype == TType.STRUCT:
  9323. self.o1 = NoSuchObjectException()
  9324. self.o1.read(iprot)
  9325. else:
  9326. iprot.skip(ftype)
  9327. elif fid == 2:
  9328. if ftype == TType.STRUCT:
  9329. self.o2 = MetaException()
  9330. self.o2.read(iprot)
  9331. else:
  9332. iprot.skip(ftype)
  9333. else:
  9334. iprot.skip(ftype)
  9335. iprot.readFieldEnd()
  9336. iprot.readStructEnd()
  9337. def write(self, oprot):
  9338. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9339. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9340. return
  9341. oprot.writeStructBegin('get_indexes_result')
  9342. if self.success is not None:
  9343. oprot.writeFieldBegin('success', TType.LIST, 0)
  9344. oprot.writeListBegin(TType.STRUCT, len(self.success))
  9345. for iter366 in self.success:
  9346. iter366.write(oprot)
  9347. oprot.writeListEnd()
  9348. oprot.writeFieldEnd()
  9349. if self.o1 is not None:
  9350. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9351. self.o1.write(oprot)
  9352. oprot.writeFieldEnd()
  9353. if self.o2 is not None:
  9354. oprot.writeFieldBegin('o2', TType.STRUCT, 2)
  9355. self.o2.write(oprot)
  9356. oprot.writeFieldEnd()
  9357. oprot.writeFieldStop()
  9358. oprot.writeStructEnd()
  9359. def validate(self):
  9360. return
  9361. def __repr__(self):
  9362. L = ['%s=%r' % (key, value)
  9363. for key, value in self.__dict__.iteritems()]
  9364. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9365. def __eq__(self, other):
  9366. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9367. def __ne__(self, other):
  9368. return not (self == other)
  9369. class get_index_names_args(object):
  9370. """
  9371. Attributes:
  9372. - db_name
  9373. - tbl_name
  9374. - max_indexes
  9375. """
  9376. thrift_spec = (
  9377. None, # 0
  9378. (1, TType.STRING, 'db_name', None, None, ), # 1
  9379. (2, TType.STRING, 'tbl_name', None, None, ), # 2
  9380. (3, TType.I16, 'max_indexes', None, -1, ), # 3
  9381. )
  9382. def __init__(self, db_name=None, tbl_name=None, max_indexes=thrift_spec[3][4],):
  9383. self.db_name = db_name
  9384. self.tbl_name = tbl_name
  9385. self.max_indexes = max_indexes
  9386. def read(self, iprot):
  9387. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9388. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9389. return
  9390. iprot.readStructBegin()
  9391. while True:
  9392. (fname, ftype, fid) = iprot.readFieldBegin()
  9393. if ftype == TType.STOP:
  9394. break
  9395. if fid == 1:
  9396. if ftype == TType.STRING:
  9397. self.db_name = iprot.readString();
  9398. else:
  9399. iprot.skip(ftype)
  9400. elif fid == 2:
  9401. if ftype == TType.STRING:
  9402. self.tbl_name = iprot.readString();
  9403. else:
  9404. iprot.skip(ftype)
  9405. elif fid == 3:
  9406. if ftype == TType.I16:
  9407. self.max_indexes = iprot.readI16();
  9408. else:
  9409. iprot.skip(ftype)
  9410. else:
  9411. iprot.skip(ftype)
  9412. iprot.readFieldEnd()
  9413. iprot.readStructEnd()
  9414. def write(self, oprot):
  9415. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9416. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9417. return
  9418. oprot.writeStructBegin('get_index_names_args')
  9419. if self.db_name is not None:
  9420. oprot.writeFieldBegin('db_name', TType.STRING, 1)
  9421. oprot.writeString(self.db_name)
  9422. oprot.writeFieldEnd()
  9423. if self.tbl_name is not None:
  9424. oprot.writeFieldBegin('tbl_name', TType.STRING, 2)
  9425. oprot.writeString(self.tbl_name)
  9426. oprot.writeFieldEnd()
  9427. if self.max_indexes is not None:
  9428. oprot.writeFieldBegin('max_indexes', TType.I16, 3)
  9429. oprot.writeI16(self.max_indexes)
  9430. oprot.writeFieldEnd()
  9431. oprot.writeFieldStop()
  9432. oprot.writeStructEnd()
  9433. def validate(self):
  9434. return
  9435. def __repr__(self):
  9436. L = ['%s=%r' % (key, value)
  9437. for key, value in self.__dict__.iteritems()]
  9438. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9439. def __eq__(self, other):
  9440. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9441. def __ne__(self, other):
  9442. return not (self == other)
  9443. class get_index_names_result(object):
  9444. """
  9445. Attributes:
  9446. - success
  9447. - o2
  9448. """
  9449. thrift_spec = (
  9450. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  9451. (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1
  9452. )
  9453. def __init__(self, success=None, o2=None,):
  9454. self.success = success
  9455. self.o2 = o2
  9456. def read(self, iprot):
  9457. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9458. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9459. return
  9460. iprot.readStructBegin()
  9461. while True:
  9462. (fname, ftype, fid) = iprot.readFieldBegin()
  9463. if ftype == TType.STOP:
  9464. break
  9465. if fid == 0:
  9466. if ftype == TType.LIST:
  9467. self.success = []
  9468. (_etype370, _size367) = iprot.readListBegin()
  9469. for _i371 in xrange(_size367):
  9470. _elem372 = iprot.readString();
  9471. self.success.append(_elem372)
  9472. iprot.readListEnd()
  9473. else:
  9474. iprot.skip(ftype)
  9475. elif fid == 1:
  9476. if ftype == TType.STRUCT:
  9477. self.o2 = MetaException()
  9478. self.o2.read(iprot)
  9479. else:
  9480. iprot.skip(ftype)
  9481. else:
  9482. iprot.skip(ftype)
  9483. iprot.readFieldEnd()
  9484. iprot.readStructEnd()
  9485. def write(self, oprot):
  9486. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9487. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9488. return
  9489. oprot.writeStructBegin('get_index_names_result')
  9490. if self.success is not None:
  9491. oprot.writeFieldBegin('success', TType.LIST, 0)
  9492. oprot.writeListBegin(TType.STRING, len(self.success))
  9493. for iter373 in self.success:
  9494. oprot.writeString(iter373)
  9495. oprot.writeListEnd()
  9496. oprot.writeFieldEnd()
  9497. if self.o2 is not None:
  9498. oprot.writeFieldBegin('o2', TType.STRUCT, 1)
  9499. self.o2.write(oprot)
  9500. oprot.writeFieldEnd()
  9501. oprot.writeFieldStop()
  9502. oprot.writeStructEnd()
  9503. def validate(self):
  9504. return
  9505. def __repr__(self):
  9506. L = ['%s=%r' % (key, value)
  9507. for key, value in self.__dict__.iteritems()]
  9508. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9509. def __eq__(self, other):
  9510. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9511. def __ne__(self, other):
  9512. return not (self == other)
  9513. class create_role_args(object):
  9514. """
  9515. Attributes:
  9516. - role
  9517. """
  9518. thrift_spec = (
  9519. None, # 0
  9520. (1, TType.STRUCT, 'role', (Role, Role.thrift_spec), None, ), # 1
  9521. )
  9522. def __init__(self, role=None,):
  9523. self.role = role
  9524. def read(self, iprot):
  9525. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9526. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9527. return
  9528. iprot.readStructBegin()
  9529. while True:
  9530. (fname, ftype, fid) = iprot.readFieldBegin()
  9531. if ftype == TType.STOP:
  9532. break
  9533. if fid == 1:
  9534. if ftype == TType.STRUCT:
  9535. self.role = Role()
  9536. self.role.read(iprot)
  9537. else:
  9538. iprot.skip(ftype)
  9539. else:
  9540. iprot.skip(ftype)
  9541. iprot.readFieldEnd()
  9542. iprot.readStructEnd()
  9543. def write(self, oprot):
  9544. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9545. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9546. return
  9547. oprot.writeStructBegin('create_role_args')
  9548. if self.role is not None:
  9549. oprot.writeFieldBegin('role', TType.STRUCT, 1)
  9550. self.role.write(oprot)
  9551. oprot.writeFieldEnd()
  9552. oprot.writeFieldStop()
  9553. oprot.writeStructEnd()
  9554. def validate(self):
  9555. return
  9556. def __repr__(self):
  9557. L = ['%s=%r' % (key, value)
  9558. for key, value in self.__dict__.iteritems()]
  9559. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9560. def __eq__(self, other):
  9561. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9562. def __ne__(self, other):
  9563. return not (self == other)
  9564. class create_role_result(object):
  9565. """
  9566. Attributes:
  9567. - success
  9568. - o1
  9569. """
  9570. thrift_spec = (
  9571. (0, TType.BOOL, 'success', None, None, ), # 0
  9572. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  9573. )
  9574. def __init__(self, success=None, o1=None,):
  9575. self.success = success
  9576. self.o1 = o1
  9577. def read(self, iprot):
  9578. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9579. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9580. return
  9581. iprot.readStructBegin()
  9582. while True:
  9583. (fname, ftype, fid) = iprot.readFieldBegin()
  9584. if ftype == TType.STOP:
  9585. break
  9586. if fid == 0:
  9587. if ftype == TType.BOOL:
  9588. self.success = iprot.readBool();
  9589. else:
  9590. iprot.skip(ftype)
  9591. elif fid == 1:
  9592. if ftype == TType.STRUCT:
  9593. self.o1 = MetaException()
  9594. self.o1.read(iprot)
  9595. else:
  9596. iprot.skip(ftype)
  9597. else:
  9598. iprot.skip(ftype)
  9599. iprot.readFieldEnd()
  9600. iprot.readStructEnd()
  9601. def write(self, oprot):
  9602. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9603. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9604. return
  9605. oprot.writeStructBegin('create_role_result')
  9606. if self.success is not None:
  9607. oprot.writeFieldBegin('success', TType.BOOL, 0)
  9608. oprot.writeBool(self.success)
  9609. oprot.writeFieldEnd()
  9610. if self.o1 is not None:
  9611. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9612. self.o1.write(oprot)
  9613. oprot.writeFieldEnd()
  9614. oprot.writeFieldStop()
  9615. oprot.writeStructEnd()
  9616. def validate(self):
  9617. return
  9618. def __repr__(self):
  9619. L = ['%s=%r' % (key, value)
  9620. for key, value in self.__dict__.iteritems()]
  9621. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9622. def __eq__(self, other):
  9623. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9624. def __ne__(self, other):
  9625. return not (self == other)
  9626. class drop_role_args(object):
  9627. """
  9628. Attributes:
  9629. - role_name
  9630. """
  9631. thrift_spec = (
  9632. None, # 0
  9633. (1, TType.STRING, 'role_name', None, None, ), # 1
  9634. )
  9635. def __init__(self, role_name=None,):
  9636. self.role_name = role_name
  9637. def read(self, iprot):
  9638. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9639. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9640. return
  9641. iprot.readStructBegin()
  9642. while True:
  9643. (fname, ftype, fid) = iprot.readFieldBegin()
  9644. if ftype == TType.STOP:
  9645. break
  9646. if fid == 1:
  9647. if ftype == TType.STRING:
  9648. self.role_name = iprot.readString();
  9649. else:
  9650. iprot.skip(ftype)
  9651. else:
  9652. iprot.skip(ftype)
  9653. iprot.readFieldEnd()
  9654. iprot.readStructEnd()
  9655. def write(self, oprot):
  9656. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9657. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9658. return
  9659. oprot.writeStructBegin('drop_role_args')
  9660. if self.role_name is not None:
  9661. oprot.writeFieldBegin('role_name', TType.STRING, 1)
  9662. oprot.writeString(self.role_name)
  9663. oprot.writeFieldEnd()
  9664. oprot.writeFieldStop()
  9665. oprot.writeStructEnd()
  9666. def validate(self):
  9667. return
  9668. def __repr__(self):
  9669. L = ['%s=%r' % (key, value)
  9670. for key, value in self.__dict__.iteritems()]
  9671. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9672. def __eq__(self, other):
  9673. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9674. def __ne__(self, other):
  9675. return not (self == other)
  9676. class drop_role_result(object):
  9677. """
  9678. Attributes:
  9679. - success
  9680. - o1
  9681. """
  9682. thrift_spec = (
  9683. (0, TType.BOOL, 'success', None, None, ), # 0
  9684. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  9685. )
  9686. def __init__(self, success=None, o1=None,):
  9687. self.success = success
  9688. self.o1 = o1
  9689. def read(self, iprot):
  9690. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9691. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9692. return
  9693. iprot.readStructBegin()
  9694. while True:
  9695. (fname, ftype, fid) = iprot.readFieldBegin()
  9696. if ftype == TType.STOP:
  9697. break
  9698. if fid == 0:
  9699. if ftype == TType.BOOL:
  9700. self.success = iprot.readBool();
  9701. else:
  9702. iprot.skip(ftype)
  9703. elif fid == 1:
  9704. if ftype == TType.STRUCT:
  9705. self.o1 = MetaException()
  9706. self.o1.read(iprot)
  9707. else:
  9708. iprot.skip(ftype)
  9709. else:
  9710. iprot.skip(ftype)
  9711. iprot.readFieldEnd()
  9712. iprot.readStructEnd()
  9713. def write(self, oprot):
  9714. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9715. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9716. return
  9717. oprot.writeStructBegin('drop_role_result')
  9718. if self.success is not None:
  9719. oprot.writeFieldBegin('success', TType.BOOL, 0)
  9720. oprot.writeBool(self.success)
  9721. oprot.writeFieldEnd()
  9722. if self.o1 is not None:
  9723. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9724. self.o1.write(oprot)
  9725. oprot.writeFieldEnd()
  9726. oprot.writeFieldStop()
  9727. oprot.writeStructEnd()
  9728. def validate(self):
  9729. return
  9730. def __repr__(self):
  9731. L = ['%s=%r' % (key, value)
  9732. for key, value in self.__dict__.iteritems()]
  9733. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9734. def __eq__(self, other):
  9735. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9736. def __ne__(self, other):
  9737. return not (self == other)
  9738. class get_role_names_args(object):
  9739. thrift_spec = (
  9740. )
  9741. def read(self, iprot):
  9742. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9743. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9744. return
  9745. iprot.readStructBegin()
  9746. while True:
  9747. (fname, ftype, fid) = iprot.readFieldBegin()
  9748. if ftype == TType.STOP:
  9749. break
  9750. else:
  9751. iprot.skip(ftype)
  9752. iprot.readFieldEnd()
  9753. iprot.readStructEnd()
  9754. def write(self, oprot):
  9755. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9756. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9757. return
  9758. oprot.writeStructBegin('get_role_names_args')
  9759. oprot.writeFieldStop()
  9760. oprot.writeStructEnd()
  9761. def validate(self):
  9762. return
  9763. def __repr__(self):
  9764. L = ['%s=%r' % (key, value)
  9765. for key, value in self.__dict__.iteritems()]
  9766. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9767. def __eq__(self, other):
  9768. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9769. def __ne__(self, other):
  9770. return not (self == other)
  9771. class get_role_names_result(object):
  9772. """
  9773. Attributes:
  9774. - success
  9775. - o1
  9776. """
  9777. thrift_spec = (
  9778. (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
  9779. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  9780. )
  9781. def __init__(self, success=None, o1=None,):
  9782. self.success = success
  9783. self.o1 = o1
  9784. def read(self, iprot):
  9785. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9786. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9787. return
  9788. iprot.readStructBegin()
  9789. while True:
  9790. (fname, ftype, fid) = iprot.readFieldBegin()
  9791. if ftype == TType.STOP:
  9792. break
  9793. if fid == 0:
  9794. if ftype == TType.LIST:
  9795. self.success = []
  9796. (_etype377, _size374) = iprot.readListBegin()
  9797. for _i378 in xrange(_size374):
  9798. _elem379 = iprot.readString();
  9799. self.success.append(_elem379)
  9800. iprot.readListEnd()
  9801. else:
  9802. iprot.skip(ftype)
  9803. elif fid == 1:
  9804. if ftype == TType.STRUCT:
  9805. self.o1 = MetaException()
  9806. self.o1.read(iprot)
  9807. else:
  9808. iprot.skip(ftype)
  9809. else:
  9810. iprot.skip(ftype)
  9811. iprot.readFieldEnd()
  9812. iprot.readStructEnd()
  9813. def write(self, oprot):
  9814. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9815. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9816. return
  9817. oprot.writeStructBegin('get_role_names_result')
  9818. if self.success is not None:
  9819. oprot.writeFieldBegin('success', TType.LIST, 0)
  9820. oprot.writeListBegin(TType.STRING, len(self.success))
  9821. for iter380 in self.success:
  9822. oprot.writeString(iter380)
  9823. oprot.writeListEnd()
  9824. oprot.writeFieldEnd()
  9825. if self.o1 is not None:
  9826. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9827. self.o1.write(oprot)
  9828. oprot.writeFieldEnd()
  9829. oprot.writeFieldStop()
  9830. oprot.writeStructEnd()
  9831. def validate(self):
  9832. return
  9833. def __repr__(self):
  9834. L = ['%s=%r' % (key, value)
  9835. for key, value in self.__dict__.iteritems()]
  9836. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9837. def __eq__(self, other):
  9838. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9839. def __ne__(self, other):
  9840. return not (self == other)
  9841. class grant_role_args(object):
  9842. """
  9843. Attributes:
  9844. - role_name
  9845. - principal_name
  9846. - principal_type
  9847. - grantor
  9848. - grantorType
  9849. - grant_option
  9850. """
  9851. thrift_spec = (
  9852. None, # 0
  9853. (1, TType.STRING, 'role_name', None, None, ), # 1
  9854. (2, TType.STRING, 'principal_name', None, None, ), # 2
  9855. (3, TType.I32, 'principal_type', None, None, ), # 3
  9856. (4, TType.STRING, 'grantor', None, None, ), # 4
  9857. (5, TType.I32, 'grantorType', None, None, ), # 5
  9858. (6, TType.BOOL, 'grant_option', None, None, ), # 6
  9859. )
  9860. def __init__(self, role_name=None, principal_name=None, principal_type=None, grantor=None, grantorType=None, grant_option=None,):
  9861. self.role_name = role_name
  9862. self.principal_name = principal_name
  9863. self.principal_type = principal_type
  9864. self.grantor = grantor
  9865. self.grantorType = grantorType
  9866. self.grant_option = grant_option
  9867. def read(self, iprot):
  9868. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9869. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9870. return
  9871. iprot.readStructBegin()
  9872. while True:
  9873. (fname, ftype, fid) = iprot.readFieldBegin()
  9874. if ftype == TType.STOP:
  9875. break
  9876. if fid == 1:
  9877. if ftype == TType.STRING:
  9878. self.role_name = iprot.readString();
  9879. else:
  9880. iprot.skip(ftype)
  9881. elif fid == 2:
  9882. if ftype == TType.STRING:
  9883. self.principal_name = iprot.readString();
  9884. else:
  9885. iprot.skip(ftype)
  9886. elif fid == 3:
  9887. if ftype == TType.I32:
  9888. self.principal_type = iprot.readI32();
  9889. else:
  9890. iprot.skip(ftype)
  9891. elif fid == 4:
  9892. if ftype == TType.STRING:
  9893. self.grantor = iprot.readString();
  9894. else:
  9895. iprot.skip(ftype)
  9896. elif fid == 5:
  9897. if ftype == TType.I32:
  9898. self.grantorType = iprot.readI32();
  9899. else:
  9900. iprot.skip(ftype)
  9901. elif fid == 6:
  9902. if ftype == TType.BOOL:
  9903. self.grant_option = iprot.readBool();
  9904. else:
  9905. iprot.skip(ftype)
  9906. else:
  9907. iprot.skip(ftype)
  9908. iprot.readFieldEnd()
  9909. iprot.readStructEnd()
  9910. def write(self, oprot):
  9911. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9912. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9913. return
  9914. oprot.writeStructBegin('grant_role_args')
  9915. if self.role_name is not None:
  9916. oprot.writeFieldBegin('role_name', TType.STRING, 1)
  9917. oprot.writeString(self.role_name)
  9918. oprot.writeFieldEnd()
  9919. if self.principal_name is not None:
  9920. oprot.writeFieldBegin('principal_name', TType.STRING, 2)
  9921. oprot.writeString(self.principal_name)
  9922. oprot.writeFieldEnd()
  9923. if self.principal_type is not None:
  9924. oprot.writeFieldBegin('principal_type', TType.I32, 3)
  9925. oprot.writeI32(self.principal_type)
  9926. oprot.writeFieldEnd()
  9927. if self.grantor is not None:
  9928. oprot.writeFieldBegin('grantor', TType.STRING, 4)
  9929. oprot.writeString(self.grantor)
  9930. oprot.writeFieldEnd()
  9931. if self.grantorType is not None:
  9932. oprot.writeFieldBegin('grantorType', TType.I32, 5)
  9933. oprot.writeI32(self.grantorType)
  9934. oprot.writeFieldEnd()
  9935. if self.grant_option is not None:
  9936. oprot.writeFieldBegin('grant_option', TType.BOOL, 6)
  9937. oprot.writeBool(self.grant_option)
  9938. oprot.writeFieldEnd()
  9939. oprot.writeFieldStop()
  9940. oprot.writeStructEnd()
  9941. def validate(self):
  9942. return
  9943. def __repr__(self):
  9944. L = ['%s=%r' % (key, value)
  9945. for key, value in self.__dict__.iteritems()]
  9946. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  9947. def __eq__(self, other):
  9948. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  9949. def __ne__(self, other):
  9950. return not (self == other)
  9951. class grant_role_result(object):
  9952. """
  9953. Attributes:
  9954. - success
  9955. - o1
  9956. """
  9957. thrift_spec = (
  9958. (0, TType.BOOL, 'success', None, None, ), # 0
  9959. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  9960. )
  9961. def __init__(self, success=None, o1=None,):
  9962. self.success = success
  9963. self.o1 = o1
  9964. def read(self, iprot):
  9965. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  9966. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  9967. return
  9968. iprot.readStructBegin()
  9969. while True:
  9970. (fname, ftype, fid) = iprot.readFieldBegin()
  9971. if ftype == TType.STOP:
  9972. break
  9973. if fid == 0:
  9974. if ftype == TType.BOOL:
  9975. self.success = iprot.readBool();
  9976. else:
  9977. iprot.skip(ftype)
  9978. elif fid == 1:
  9979. if ftype == TType.STRUCT:
  9980. self.o1 = MetaException()
  9981. self.o1.read(iprot)
  9982. else:
  9983. iprot.skip(ftype)
  9984. else:
  9985. iprot.skip(ftype)
  9986. iprot.readFieldEnd()
  9987. iprot.readStructEnd()
  9988. def write(self, oprot):
  9989. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  9990. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  9991. return
  9992. oprot.writeStructBegin('grant_role_result')
  9993. if self.success is not None:
  9994. oprot.writeFieldBegin('success', TType.BOOL, 0)
  9995. oprot.writeBool(self.success)
  9996. oprot.writeFieldEnd()
  9997. if self.o1 is not None:
  9998. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  9999. self.o1.write(oprot)
  10000. oprot.writeFieldEnd()
  10001. oprot.writeFieldStop()
  10002. oprot.writeStructEnd()
  10003. def validate(self):
  10004. return
  10005. def __repr__(self):
  10006. L = ['%s=%r' % (key, value)
  10007. for key, value in self.__dict__.iteritems()]
  10008. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10009. def __eq__(self, other):
  10010. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10011. def __ne__(self, other):
  10012. return not (self == other)
  10013. class revoke_role_args(object):
  10014. """
  10015. Attributes:
  10016. - role_name
  10017. - principal_name
  10018. - principal_type
  10019. """
  10020. thrift_spec = (
  10021. None, # 0
  10022. (1, TType.STRING, 'role_name', None, None, ), # 1
  10023. (2, TType.STRING, 'principal_name', None, None, ), # 2
  10024. (3, TType.I32, 'principal_type', None, None, ), # 3
  10025. )
  10026. def __init__(self, role_name=None, principal_name=None, principal_type=None,):
  10027. self.role_name = role_name
  10028. self.principal_name = principal_name
  10029. self.principal_type = principal_type
  10030. def read(self, iprot):
  10031. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10032. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10033. return
  10034. iprot.readStructBegin()
  10035. while True:
  10036. (fname, ftype, fid) = iprot.readFieldBegin()
  10037. if ftype == TType.STOP:
  10038. break
  10039. if fid == 1:
  10040. if ftype == TType.STRING:
  10041. self.role_name = iprot.readString();
  10042. else:
  10043. iprot.skip(ftype)
  10044. elif fid == 2:
  10045. if ftype == TType.STRING:
  10046. self.principal_name = iprot.readString();
  10047. else:
  10048. iprot.skip(ftype)
  10049. elif fid == 3:
  10050. if ftype == TType.I32:
  10051. self.principal_type = iprot.readI32();
  10052. else:
  10053. iprot.skip(ftype)
  10054. else:
  10055. iprot.skip(ftype)
  10056. iprot.readFieldEnd()
  10057. iprot.readStructEnd()
  10058. def write(self, oprot):
  10059. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10060. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10061. return
  10062. oprot.writeStructBegin('revoke_role_args')
  10063. if self.role_name is not None:
  10064. oprot.writeFieldBegin('role_name', TType.STRING, 1)
  10065. oprot.writeString(self.role_name)
  10066. oprot.writeFieldEnd()
  10067. if self.principal_name is not None:
  10068. oprot.writeFieldBegin('principal_name', TType.STRING, 2)
  10069. oprot.writeString(self.principal_name)
  10070. oprot.writeFieldEnd()
  10071. if self.principal_type is not None:
  10072. oprot.writeFieldBegin('principal_type', TType.I32, 3)
  10073. oprot.writeI32(self.principal_type)
  10074. oprot.writeFieldEnd()
  10075. oprot.writeFieldStop()
  10076. oprot.writeStructEnd()
  10077. def validate(self):
  10078. return
  10079. def __repr__(self):
  10080. L = ['%s=%r' % (key, value)
  10081. for key, value in self.__dict__.iteritems()]
  10082. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10083. def __eq__(self, other):
  10084. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10085. def __ne__(self, other):
  10086. return not (self == other)
  10087. class revoke_role_result(object):
  10088. """
  10089. Attributes:
  10090. - success
  10091. - o1
  10092. """
  10093. thrift_spec = (
  10094. (0, TType.BOOL, 'success', None, None, ), # 0
  10095. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10096. )
  10097. def __init__(self, success=None, o1=None,):
  10098. self.success = success
  10099. self.o1 = o1
  10100. def read(self, iprot):
  10101. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10102. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10103. return
  10104. iprot.readStructBegin()
  10105. while True:
  10106. (fname, ftype, fid) = iprot.readFieldBegin()
  10107. if ftype == TType.STOP:
  10108. break
  10109. if fid == 0:
  10110. if ftype == TType.BOOL:
  10111. self.success = iprot.readBool();
  10112. else:
  10113. iprot.skip(ftype)
  10114. elif fid == 1:
  10115. if ftype == TType.STRUCT:
  10116. self.o1 = MetaException()
  10117. self.o1.read(iprot)
  10118. else:
  10119. iprot.skip(ftype)
  10120. else:
  10121. iprot.skip(ftype)
  10122. iprot.readFieldEnd()
  10123. iprot.readStructEnd()
  10124. def write(self, oprot):
  10125. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10126. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10127. return
  10128. oprot.writeStructBegin('revoke_role_result')
  10129. if self.success is not None:
  10130. oprot.writeFieldBegin('success', TType.BOOL, 0)
  10131. oprot.writeBool(self.success)
  10132. oprot.writeFieldEnd()
  10133. if self.o1 is not None:
  10134. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10135. self.o1.write(oprot)
  10136. oprot.writeFieldEnd()
  10137. oprot.writeFieldStop()
  10138. oprot.writeStructEnd()
  10139. def validate(self):
  10140. return
  10141. def __repr__(self):
  10142. L = ['%s=%r' % (key, value)
  10143. for key, value in self.__dict__.iteritems()]
  10144. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10145. def __eq__(self, other):
  10146. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10147. def __ne__(self, other):
  10148. return not (self == other)
  10149. class list_roles_args(object):
  10150. """
  10151. Attributes:
  10152. - principal_name
  10153. - principal_type
  10154. """
  10155. thrift_spec = (
  10156. None, # 0
  10157. (1, TType.STRING, 'principal_name', None, None, ), # 1
  10158. (2, TType.I32, 'principal_type', None, None, ), # 2
  10159. )
  10160. def __init__(self, principal_name=None, principal_type=None,):
  10161. self.principal_name = principal_name
  10162. self.principal_type = principal_type
  10163. def read(self, iprot):
  10164. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10165. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10166. return
  10167. iprot.readStructBegin()
  10168. while True:
  10169. (fname, ftype, fid) = iprot.readFieldBegin()
  10170. if ftype == TType.STOP:
  10171. break
  10172. if fid == 1:
  10173. if ftype == TType.STRING:
  10174. self.principal_name = iprot.readString();
  10175. else:
  10176. iprot.skip(ftype)
  10177. elif fid == 2:
  10178. if ftype == TType.I32:
  10179. self.principal_type = iprot.readI32();
  10180. else:
  10181. iprot.skip(ftype)
  10182. else:
  10183. iprot.skip(ftype)
  10184. iprot.readFieldEnd()
  10185. iprot.readStructEnd()
  10186. def write(self, oprot):
  10187. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10188. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10189. return
  10190. oprot.writeStructBegin('list_roles_args')
  10191. if self.principal_name is not None:
  10192. oprot.writeFieldBegin('principal_name', TType.STRING, 1)
  10193. oprot.writeString(self.principal_name)
  10194. oprot.writeFieldEnd()
  10195. if self.principal_type is not None:
  10196. oprot.writeFieldBegin('principal_type', TType.I32, 2)
  10197. oprot.writeI32(self.principal_type)
  10198. oprot.writeFieldEnd()
  10199. oprot.writeFieldStop()
  10200. oprot.writeStructEnd()
  10201. def validate(self):
  10202. return
  10203. def __repr__(self):
  10204. L = ['%s=%r' % (key, value)
  10205. for key, value in self.__dict__.iteritems()]
  10206. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10207. def __eq__(self, other):
  10208. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10209. def __ne__(self, other):
  10210. return not (self == other)
  10211. class list_roles_result(object):
  10212. """
  10213. Attributes:
  10214. - success
  10215. - o1
  10216. """
  10217. thrift_spec = (
  10218. (0, TType.LIST, 'success', (TType.STRUCT,(Role, Role.thrift_spec)), None, ), # 0
  10219. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10220. )
  10221. def __init__(self, success=None, o1=None,):
  10222. self.success = success
  10223. self.o1 = o1
  10224. def read(self, iprot):
  10225. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10226. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10227. return
  10228. iprot.readStructBegin()
  10229. while True:
  10230. (fname, ftype, fid) = iprot.readFieldBegin()
  10231. if ftype == TType.STOP:
  10232. break
  10233. if fid == 0:
  10234. if ftype == TType.LIST:
  10235. self.success = []
  10236. (_etype384, _size381) = iprot.readListBegin()
  10237. for _i385 in xrange(_size381):
  10238. _elem386 = Role()
  10239. _elem386.read(iprot)
  10240. self.success.append(_elem386)
  10241. iprot.readListEnd()
  10242. else:
  10243. iprot.skip(ftype)
  10244. elif fid == 1:
  10245. if ftype == TType.STRUCT:
  10246. self.o1 = MetaException()
  10247. self.o1.read(iprot)
  10248. else:
  10249. iprot.skip(ftype)
  10250. else:
  10251. iprot.skip(ftype)
  10252. iprot.readFieldEnd()
  10253. iprot.readStructEnd()
  10254. def write(self, oprot):
  10255. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10256. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10257. return
  10258. oprot.writeStructBegin('list_roles_result')
  10259. if self.success is not None:
  10260. oprot.writeFieldBegin('success', TType.LIST, 0)
  10261. oprot.writeListBegin(TType.STRUCT, len(self.success))
  10262. for iter387 in self.success:
  10263. iter387.write(oprot)
  10264. oprot.writeListEnd()
  10265. oprot.writeFieldEnd()
  10266. if self.o1 is not None:
  10267. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10268. self.o1.write(oprot)
  10269. oprot.writeFieldEnd()
  10270. oprot.writeFieldStop()
  10271. oprot.writeStructEnd()
  10272. def validate(self):
  10273. return
  10274. def __repr__(self):
  10275. L = ['%s=%r' % (key, value)
  10276. for key, value in self.__dict__.iteritems()]
  10277. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10278. def __eq__(self, other):
  10279. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10280. def __ne__(self, other):
  10281. return not (self == other)
  10282. class get_privilege_set_args(object):
  10283. """
  10284. Attributes:
  10285. - hiveObject
  10286. - user_name
  10287. - group_names
  10288. """
  10289. thrift_spec = (
  10290. None, # 0
  10291. (1, TType.STRUCT, 'hiveObject', (HiveObjectRef, HiveObjectRef.thrift_spec), None, ), # 1
  10292. (2, TType.STRING, 'user_name', None, None, ), # 2
  10293. (3, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 3
  10294. )
  10295. def __init__(self, hiveObject=None, user_name=None, group_names=None,):
  10296. self.hiveObject = hiveObject
  10297. self.user_name = user_name
  10298. self.group_names = group_names
  10299. def read(self, iprot):
  10300. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10301. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10302. return
  10303. iprot.readStructBegin()
  10304. while True:
  10305. (fname, ftype, fid) = iprot.readFieldBegin()
  10306. if ftype == TType.STOP:
  10307. break
  10308. if fid == 1:
  10309. if ftype == TType.STRUCT:
  10310. self.hiveObject = HiveObjectRef()
  10311. self.hiveObject.read(iprot)
  10312. else:
  10313. iprot.skip(ftype)
  10314. elif fid == 2:
  10315. if ftype == TType.STRING:
  10316. self.user_name = iprot.readString();
  10317. else:
  10318. iprot.skip(ftype)
  10319. elif fid == 3:
  10320. if ftype == TType.LIST:
  10321. self.group_names = []
  10322. (_etype391, _size388) = iprot.readListBegin()
  10323. for _i392 in xrange(_size388):
  10324. _elem393 = iprot.readString();
  10325. self.group_names.append(_elem393)
  10326. iprot.readListEnd()
  10327. else:
  10328. iprot.skip(ftype)
  10329. else:
  10330. iprot.skip(ftype)
  10331. iprot.readFieldEnd()
  10332. iprot.readStructEnd()
  10333. def write(self, oprot):
  10334. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10335. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10336. return
  10337. oprot.writeStructBegin('get_privilege_set_args')
  10338. if self.hiveObject is not None:
  10339. oprot.writeFieldBegin('hiveObject', TType.STRUCT, 1)
  10340. self.hiveObject.write(oprot)
  10341. oprot.writeFieldEnd()
  10342. if self.user_name is not None:
  10343. oprot.writeFieldBegin('user_name', TType.STRING, 2)
  10344. oprot.writeString(self.user_name)
  10345. oprot.writeFieldEnd()
  10346. if self.group_names is not None:
  10347. oprot.writeFieldBegin('group_names', TType.LIST, 3)
  10348. oprot.writeListBegin(TType.STRING, len(self.group_names))
  10349. for iter394 in self.group_names:
  10350. oprot.writeString(iter394)
  10351. oprot.writeListEnd()
  10352. oprot.writeFieldEnd()
  10353. oprot.writeFieldStop()
  10354. oprot.writeStructEnd()
  10355. def validate(self):
  10356. return
  10357. def __repr__(self):
  10358. L = ['%s=%r' % (key, value)
  10359. for key, value in self.__dict__.iteritems()]
  10360. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10361. def __eq__(self, other):
  10362. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10363. def __ne__(self, other):
  10364. return not (self == other)
  10365. class get_privilege_set_result(object):
  10366. """
  10367. Attributes:
  10368. - success
  10369. - o1
  10370. """
  10371. thrift_spec = (
  10372. (0, TType.STRUCT, 'success', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 0
  10373. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10374. )
  10375. def __init__(self, success=None, o1=None,):
  10376. self.success = success
  10377. self.o1 = o1
  10378. def read(self, iprot):
  10379. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10380. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10381. return
  10382. iprot.readStructBegin()
  10383. while True:
  10384. (fname, ftype, fid) = iprot.readFieldBegin()
  10385. if ftype == TType.STOP:
  10386. break
  10387. if fid == 0:
  10388. if ftype == TType.STRUCT:
  10389. self.success = PrincipalPrivilegeSet()
  10390. self.success.read(iprot)
  10391. else:
  10392. iprot.skip(ftype)
  10393. elif fid == 1:
  10394. if ftype == TType.STRUCT:
  10395. self.o1 = MetaException()
  10396. self.o1.read(iprot)
  10397. else:
  10398. iprot.skip(ftype)
  10399. else:
  10400. iprot.skip(ftype)
  10401. iprot.readFieldEnd()
  10402. iprot.readStructEnd()
  10403. def write(self, oprot):
  10404. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10405. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10406. return
  10407. oprot.writeStructBegin('get_privilege_set_result')
  10408. if self.success is not None:
  10409. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  10410. self.success.write(oprot)
  10411. oprot.writeFieldEnd()
  10412. if self.o1 is not None:
  10413. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10414. self.o1.write(oprot)
  10415. oprot.writeFieldEnd()
  10416. oprot.writeFieldStop()
  10417. oprot.writeStructEnd()
  10418. def validate(self):
  10419. return
  10420. def __repr__(self):
  10421. L = ['%s=%r' % (key, value)
  10422. for key, value in self.__dict__.iteritems()]
  10423. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10424. def __eq__(self, other):
  10425. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10426. def __ne__(self, other):
  10427. return not (self == other)
  10428. class list_privileges_args(object):
  10429. """
  10430. Attributes:
  10431. - principal_name
  10432. - principal_type
  10433. - hiveObject
  10434. """
  10435. thrift_spec = (
  10436. None, # 0
  10437. (1, TType.STRING, 'principal_name', None, None, ), # 1
  10438. (2, TType.I32, 'principal_type', None, None, ), # 2
  10439. (3, TType.STRUCT, 'hiveObject', (HiveObjectRef, HiveObjectRef.thrift_spec), None, ), # 3
  10440. )
  10441. def __init__(self, principal_name=None, principal_type=None, hiveObject=None,):
  10442. self.principal_name = principal_name
  10443. self.principal_type = principal_type
  10444. self.hiveObject = hiveObject
  10445. def read(self, iprot):
  10446. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10447. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10448. return
  10449. iprot.readStructBegin()
  10450. while True:
  10451. (fname, ftype, fid) = iprot.readFieldBegin()
  10452. if ftype == TType.STOP:
  10453. break
  10454. if fid == 1:
  10455. if ftype == TType.STRING:
  10456. self.principal_name = iprot.readString();
  10457. else:
  10458. iprot.skip(ftype)
  10459. elif fid == 2:
  10460. if ftype == TType.I32:
  10461. self.principal_type = iprot.readI32();
  10462. else:
  10463. iprot.skip(ftype)
  10464. elif fid == 3:
  10465. if ftype == TType.STRUCT:
  10466. self.hiveObject = HiveObjectRef()
  10467. self.hiveObject.read(iprot)
  10468. else:
  10469. iprot.skip(ftype)
  10470. else:
  10471. iprot.skip(ftype)
  10472. iprot.readFieldEnd()
  10473. iprot.readStructEnd()
  10474. def write(self, oprot):
  10475. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10476. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10477. return
  10478. oprot.writeStructBegin('list_privileges_args')
  10479. if self.principal_name is not None:
  10480. oprot.writeFieldBegin('principal_name', TType.STRING, 1)
  10481. oprot.writeString(self.principal_name)
  10482. oprot.writeFieldEnd()
  10483. if self.principal_type is not None:
  10484. oprot.writeFieldBegin('principal_type', TType.I32, 2)
  10485. oprot.writeI32(self.principal_type)
  10486. oprot.writeFieldEnd()
  10487. if self.hiveObject is not None:
  10488. oprot.writeFieldBegin('hiveObject', TType.STRUCT, 3)
  10489. self.hiveObject.write(oprot)
  10490. oprot.writeFieldEnd()
  10491. oprot.writeFieldStop()
  10492. oprot.writeStructEnd()
  10493. def validate(self):
  10494. return
  10495. def __repr__(self):
  10496. L = ['%s=%r' % (key, value)
  10497. for key, value in self.__dict__.iteritems()]
  10498. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10499. def __eq__(self, other):
  10500. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10501. def __ne__(self, other):
  10502. return not (self == other)
  10503. class list_privileges_result(object):
  10504. """
  10505. Attributes:
  10506. - success
  10507. - o1
  10508. """
  10509. thrift_spec = (
  10510. (0, TType.LIST, 'success', (TType.STRUCT,(HiveObjectPrivilege, HiveObjectPrivilege.thrift_spec)), None, ), # 0
  10511. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10512. )
  10513. def __init__(self, success=None, o1=None,):
  10514. self.success = success
  10515. self.o1 = o1
  10516. def read(self, iprot):
  10517. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10518. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10519. return
  10520. iprot.readStructBegin()
  10521. while True:
  10522. (fname, ftype, fid) = iprot.readFieldBegin()
  10523. if ftype == TType.STOP:
  10524. break
  10525. if fid == 0:
  10526. if ftype == TType.LIST:
  10527. self.success = []
  10528. (_etype398, _size395) = iprot.readListBegin()
  10529. for _i399 in xrange(_size395):
  10530. _elem400 = HiveObjectPrivilege()
  10531. _elem400.read(iprot)
  10532. self.success.append(_elem400)
  10533. iprot.readListEnd()
  10534. else:
  10535. iprot.skip(ftype)
  10536. elif fid == 1:
  10537. if ftype == TType.STRUCT:
  10538. self.o1 = MetaException()
  10539. self.o1.read(iprot)
  10540. else:
  10541. iprot.skip(ftype)
  10542. else:
  10543. iprot.skip(ftype)
  10544. iprot.readFieldEnd()
  10545. iprot.readStructEnd()
  10546. def write(self, oprot):
  10547. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10548. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10549. return
  10550. oprot.writeStructBegin('list_privileges_result')
  10551. if self.success is not None:
  10552. oprot.writeFieldBegin('success', TType.LIST, 0)
  10553. oprot.writeListBegin(TType.STRUCT, len(self.success))
  10554. for iter401 in self.success:
  10555. iter401.write(oprot)
  10556. oprot.writeListEnd()
  10557. oprot.writeFieldEnd()
  10558. if self.o1 is not None:
  10559. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10560. self.o1.write(oprot)
  10561. oprot.writeFieldEnd()
  10562. oprot.writeFieldStop()
  10563. oprot.writeStructEnd()
  10564. def validate(self):
  10565. return
  10566. def __repr__(self):
  10567. L = ['%s=%r' % (key, value)
  10568. for key, value in self.__dict__.iteritems()]
  10569. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10570. def __eq__(self, other):
  10571. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10572. def __ne__(self, other):
  10573. return not (self == other)
  10574. class grant_privileges_args(object):
  10575. """
  10576. Attributes:
  10577. - privileges
  10578. """
  10579. thrift_spec = (
  10580. None, # 0
  10581. (1, TType.STRUCT, 'privileges', (PrivilegeBag, PrivilegeBag.thrift_spec), None, ), # 1
  10582. )
  10583. def __init__(self, privileges=None,):
  10584. self.privileges = privileges
  10585. def read(self, iprot):
  10586. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10587. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10588. return
  10589. iprot.readStructBegin()
  10590. while True:
  10591. (fname, ftype, fid) = iprot.readFieldBegin()
  10592. if ftype == TType.STOP:
  10593. break
  10594. if fid == 1:
  10595. if ftype == TType.STRUCT:
  10596. self.privileges = PrivilegeBag()
  10597. self.privileges.read(iprot)
  10598. else:
  10599. iprot.skip(ftype)
  10600. else:
  10601. iprot.skip(ftype)
  10602. iprot.readFieldEnd()
  10603. iprot.readStructEnd()
  10604. def write(self, oprot):
  10605. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10606. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10607. return
  10608. oprot.writeStructBegin('grant_privileges_args')
  10609. if self.privileges is not None:
  10610. oprot.writeFieldBegin('privileges', TType.STRUCT, 1)
  10611. self.privileges.write(oprot)
  10612. oprot.writeFieldEnd()
  10613. oprot.writeFieldStop()
  10614. oprot.writeStructEnd()
  10615. def validate(self):
  10616. return
  10617. def __repr__(self):
  10618. L = ['%s=%r' % (key, value)
  10619. for key, value in self.__dict__.iteritems()]
  10620. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10621. def __eq__(self, other):
  10622. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10623. def __ne__(self, other):
  10624. return not (self == other)
  10625. class grant_privileges_result(object):
  10626. """
  10627. Attributes:
  10628. - success
  10629. - o1
  10630. """
  10631. thrift_spec = (
  10632. (0, TType.BOOL, 'success', None, None, ), # 0
  10633. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10634. )
  10635. def __init__(self, success=None, o1=None,):
  10636. self.success = success
  10637. self.o1 = o1
  10638. def read(self, iprot):
  10639. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10640. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10641. return
  10642. iprot.readStructBegin()
  10643. while True:
  10644. (fname, ftype, fid) = iprot.readFieldBegin()
  10645. if ftype == TType.STOP:
  10646. break
  10647. if fid == 0:
  10648. if ftype == TType.BOOL:
  10649. self.success = iprot.readBool();
  10650. else:
  10651. iprot.skip(ftype)
  10652. elif fid == 1:
  10653. if ftype == TType.STRUCT:
  10654. self.o1 = MetaException()
  10655. self.o1.read(iprot)
  10656. else:
  10657. iprot.skip(ftype)
  10658. else:
  10659. iprot.skip(ftype)
  10660. iprot.readFieldEnd()
  10661. iprot.readStructEnd()
  10662. def write(self, oprot):
  10663. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10664. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10665. return
  10666. oprot.writeStructBegin('grant_privileges_result')
  10667. if self.success is not None:
  10668. oprot.writeFieldBegin('success', TType.BOOL, 0)
  10669. oprot.writeBool(self.success)
  10670. oprot.writeFieldEnd()
  10671. if self.o1 is not None:
  10672. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10673. self.o1.write(oprot)
  10674. oprot.writeFieldEnd()
  10675. oprot.writeFieldStop()
  10676. oprot.writeStructEnd()
  10677. def validate(self):
  10678. return
  10679. def __repr__(self):
  10680. L = ['%s=%r' % (key, value)
  10681. for key, value in self.__dict__.iteritems()]
  10682. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10683. def __eq__(self, other):
  10684. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10685. def __ne__(self, other):
  10686. return not (self == other)
  10687. class revoke_privileges_args(object):
  10688. """
  10689. Attributes:
  10690. - privileges
  10691. """
  10692. thrift_spec = (
  10693. None, # 0
  10694. (1, TType.STRUCT, 'privileges', (PrivilegeBag, PrivilegeBag.thrift_spec), None, ), # 1
  10695. )
  10696. def __init__(self, privileges=None,):
  10697. self.privileges = privileges
  10698. def read(self, iprot):
  10699. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10700. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10701. return
  10702. iprot.readStructBegin()
  10703. while True:
  10704. (fname, ftype, fid) = iprot.readFieldBegin()
  10705. if ftype == TType.STOP:
  10706. break
  10707. if fid == 1:
  10708. if ftype == TType.STRUCT:
  10709. self.privileges = PrivilegeBag()
  10710. self.privileges.read(iprot)
  10711. else:
  10712. iprot.skip(ftype)
  10713. else:
  10714. iprot.skip(ftype)
  10715. iprot.readFieldEnd()
  10716. iprot.readStructEnd()
  10717. def write(self, oprot):
  10718. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10719. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10720. return
  10721. oprot.writeStructBegin('revoke_privileges_args')
  10722. if self.privileges is not None:
  10723. oprot.writeFieldBegin('privileges', TType.STRUCT, 1)
  10724. self.privileges.write(oprot)
  10725. oprot.writeFieldEnd()
  10726. oprot.writeFieldStop()
  10727. oprot.writeStructEnd()
  10728. def validate(self):
  10729. return
  10730. def __repr__(self):
  10731. L = ['%s=%r' % (key, value)
  10732. for key, value in self.__dict__.iteritems()]
  10733. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10734. def __eq__(self, other):
  10735. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10736. def __ne__(self, other):
  10737. return not (self == other)
  10738. class revoke_privileges_result(object):
  10739. """
  10740. Attributes:
  10741. - success
  10742. - o1
  10743. """
  10744. thrift_spec = (
  10745. (0, TType.BOOL, 'success', None, None, ), # 0
  10746. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10747. )
  10748. def __init__(self, success=None, o1=None,):
  10749. self.success = success
  10750. self.o1 = o1
  10751. def read(self, iprot):
  10752. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10753. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10754. return
  10755. iprot.readStructBegin()
  10756. while True:
  10757. (fname, ftype, fid) = iprot.readFieldBegin()
  10758. if ftype == TType.STOP:
  10759. break
  10760. if fid == 0:
  10761. if ftype == TType.BOOL:
  10762. self.success = iprot.readBool();
  10763. else:
  10764. iprot.skip(ftype)
  10765. elif fid == 1:
  10766. if ftype == TType.STRUCT:
  10767. self.o1 = MetaException()
  10768. self.o1.read(iprot)
  10769. else:
  10770. iprot.skip(ftype)
  10771. else:
  10772. iprot.skip(ftype)
  10773. iprot.readFieldEnd()
  10774. iprot.readStructEnd()
  10775. def write(self, oprot):
  10776. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10777. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10778. return
  10779. oprot.writeStructBegin('revoke_privileges_result')
  10780. if self.success is not None:
  10781. oprot.writeFieldBegin('success', TType.BOOL, 0)
  10782. oprot.writeBool(self.success)
  10783. oprot.writeFieldEnd()
  10784. if self.o1 is not None:
  10785. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10786. self.o1.write(oprot)
  10787. oprot.writeFieldEnd()
  10788. oprot.writeFieldStop()
  10789. oprot.writeStructEnd()
  10790. def validate(self):
  10791. return
  10792. def __repr__(self):
  10793. L = ['%s=%r' % (key, value)
  10794. for key, value in self.__dict__.iteritems()]
  10795. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10796. def __eq__(self, other):
  10797. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10798. def __ne__(self, other):
  10799. return not (self == other)
  10800. class get_delegation_token_args(object):
  10801. """
  10802. Attributes:
  10803. - renewer_kerberos_principal_name
  10804. """
  10805. thrift_spec = (
  10806. None, # 0
  10807. (1, TType.STRING, 'renewer_kerberos_principal_name', None, None, ), # 1
  10808. )
  10809. def __init__(self, renewer_kerberos_principal_name=None,):
  10810. self.renewer_kerberos_principal_name = renewer_kerberos_principal_name
  10811. def read(self, iprot):
  10812. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10813. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10814. return
  10815. iprot.readStructBegin()
  10816. while True:
  10817. (fname, ftype, fid) = iprot.readFieldBegin()
  10818. if ftype == TType.STOP:
  10819. break
  10820. if fid == 1:
  10821. if ftype == TType.STRING:
  10822. self.renewer_kerberos_principal_name = iprot.readString();
  10823. else:
  10824. iprot.skip(ftype)
  10825. else:
  10826. iprot.skip(ftype)
  10827. iprot.readFieldEnd()
  10828. iprot.readStructEnd()
  10829. def write(self, oprot):
  10830. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10831. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10832. return
  10833. oprot.writeStructBegin('get_delegation_token_args')
  10834. if self.renewer_kerberos_principal_name is not None:
  10835. oprot.writeFieldBegin('renewer_kerberos_principal_name', TType.STRING, 1)
  10836. oprot.writeString(self.renewer_kerberos_principal_name)
  10837. oprot.writeFieldEnd()
  10838. oprot.writeFieldStop()
  10839. oprot.writeStructEnd()
  10840. def validate(self):
  10841. return
  10842. def __repr__(self):
  10843. L = ['%s=%r' % (key, value)
  10844. for key, value in self.__dict__.iteritems()]
  10845. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10846. def __eq__(self, other):
  10847. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10848. def __ne__(self, other):
  10849. return not (self == other)
  10850. class get_delegation_token_result(object):
  10851. """
  10852. Attributes:
  10853. - success
  10854. - o1
  10855. """
  10856. thrift_spec = (
  10857. (0, TType.STRING, 'success', None, None, ), # 0
  10858. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10859. )
  10860. def __init__(self, success=None, o1=None,):
  10861. self.success = success
  10862. self.o1 = o1
  10863. def read(self, iprot):
  10864. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10865. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10866. return
  10867. iprot.readStructBegin()
  10868. while True:
  10869. (fname, ftype, fid) = iprot.readFieldBegin()
  10870. if ftype == TType.STOP:
  10871. break
  10872. if fid == 0:
  10873. if ftype == TType.STRING:
  10874. self.success = iprot.readString();
  10875. else:
  10876. iprot.skip(ftype)
  10877. elif fid == 1:
  10878. if ftype == TType.STRUCT:
  10879. self.o1 = MetaException()
  10880. self.o1.read(iprot)
  10881. else:
  10882. iprot.skip(ftype)
  10883. else:
  10884. iprot.skip(ftype)
  10885. iprot.readFieldEnd()
  10886. iprot.readStructEnd()
  10887. def write(self, oprot):
  10888. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10889. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10890. return
  10891. oprot.writeStructBegin('get_delegation_token_result')
  10892. if self.success is not None:
  10893. oprot.writeFieldBegin('success', TType.STRING, 0)
  10894. oprot.writeString(self.success)
  10895. oprot.writeFieldEnd()
  10896. if self.o1 is not None:
  10897. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  10898. self.o1.write(oprot)
  10899. oprot.writeFieldEnd()
  10900. oprot.writeFieldStop()
  10901. oprot.writeStructEnd()
  10902. def validate(self):
  10903. return
  10904. def __repr__(self):
  10905. L = ['%s=%r' % (key, value)
  10906. for key, value in self.__dict__.iteritems()]
  10907. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10908. def __eq__(self, other):
  10909. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10910. def __ne__(self, other):
  10911. return not (self == other)
  10912. class get_delegation_token_with_signature_args(object):
  10913. """
  10914. Attributes:
  10915. - renewer_kerberos_principal_name
  10916. - token_signature
  10917. """
  10918. thrift_spec = (
  10919. None, # 0
  10920. (1, TType.STRING, 'renewer_kerberos_principal_name', None, None, ), # 1
  10921. (2, TType.STRING, 'token_signature', None, None, ), # 2
  10922. )
  10923. def __init__(self, renewer_kerberos_principal_name=None, token_signature=None,):
  10924. self.renewer_kerberos_principal_name = renewer_kerberos_principal_name
  10925. self.token_signature = token_signature
  10926. def read(self, iprot):
  10927. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10928. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10929. return
  10930. iprot.readStructBegin()
  10931. while True:
  10932. (fname, ftype, fid) = iprot.readFieldBegin()
  10933. if ftype == TType.STOP:
  10934. break
  10935. if fid == 1:
  10936. if ftype == TType.STRING:
  10937. self.renewer_kerberos_principal_name = iprot.readString();
  10938. else:
  10939. iprot.skip(ftype)
  10940. elif fid == 2:
  10941. if ftype == TType.STRING:
  10942. self.token_signature = iprot.readString();
  10943. else:
  10944. iprot.skip(ftype)
  10945. else:
  10946. iprot.skip(ftype)
  10947. iprot.readFieldEnd()
  10948. iprot.readStructEnd()
  10949. def write(self, oprot):
  10950. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  10951. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  10952. return
  10953. oprot.writeStructBegin('get_delegation_token_with_signature_args')
  10954. if self.renewer_kerberos_principal_name is not None:
  10955. oprot.writeFieldBegin('renewer_kerberos_principal_name', TType.STRING, 1)
  10956. oprot.writeString(self.renewer_kerberos_principal_name)
  10957. oprot.writeFieldEnd()
  10958. if self.token_signature is not None:
  10959. oprot.writeFieldBegin('token_signature', TType.STRING, 2)
  10960. oprot.writeString(self.token_signature)
  10961. oprot.writeFieldEnd()
  10962. oprot.writeFieldStop()
  10963. oprot.writeStructEnd()
  10964. def validate(self):
  10965. return
  10966. def __repr__(self):
  10967. L = ['%s=%r' % (key, value)
  10968. for key, value in self.__dict__.iteritems()]
  10969. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  10970. def __eq__(self, other):
  10971. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  10972. def __ne__(self, other):
  10973. return not (self == other)
  10974. class get_delegation_token_with_signature_result(object):
  10975. """
  10976. Attributes:
  10977. - success
  10978. - o1
  10979. """
  10980. thrift_spec = (
  10981. (0, TType.STRING, 'success', None, None, ), # 0
  10982. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  10983. )
  10984. def __init__(self, success=None, o1=None,):
  10985. self.success = success
  10986. self.o1 = o1
  10987. def read(self, iprot):
  10988. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  10989. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  10990. return
  10991. iprot.readStructBegin()
  10992. while True:
  10993. (fname, ftype, fid) = iprot.readFieldBegin()
  10994. if ftype == TType.STOP:
  10995. break
  10996. if fid == 0:
  10997. if ftype == TType.STRING:
  10998. self.success = iprot.readString();
  10999. else:
  11000. iprot.skip(ftype)
  11001. elif fid == 1:
  11002. if ftype == TType.STRUCT:
  11003. self.o1 = MetaException()
  11004. self.o1.read(iprot)
  11005. else:
  11006. iprot.skip(ftype)
  11007. else:
  11008. iprot.skip(ftype)
  11009. iprot.readFieldEnd()
  11010. iprot.readStructEnd()
  11011. def write(self, oprot):
  11012. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11013. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11014. return
  11015. oprot.writeStructBegin('get_delegation_token_with_signature_result')
  11016. if self.success is not None:
  11017. oprot.writeFieldBegin('success', TType.STRING, 0)
  11018. oprot.writeString(self.success)
  11019. oprot.writeFieldEnd()
  11020. if self.o1 is not None:
  11021. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11022. self.o1.write(oprot)
  11023. oprot.writeFieldEnd()
  11024. oprot.writeFieldStop()
  11025. oprot.writeStructEnd()
  11026. def validate(self):
  11027. return
  11028. def __repr__(self):
  11029. L = ['%s=%r' % (key, value)
  11030. for key, value in self.__dict__.iteritems()]
  11031. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11032. def __eq__(self, other):
  11033. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11034. def __ne__(self, other):
  11035. return not (self == other)
  11036. class renew_delegation_token_args(object):
  11037. """
  11038. Attributes:
  11039. - token_str_form
  11040. """
  11041. thrift_spec = (
  11042. None, # 0
  11043. (1, TType.STRING, 'token_str_form', None, None, ), # 1
  11044. )
  11045. def __init__(self, token_str_form=None,):
  11046. self.token_str_form = token_str_form
  11047. def read(self, iprot):
  11048. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11049. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11050. return
  11051. iprot.readStructBegin()
  11052. while True:
  11053. (fname, ftype, fid) = iprot.readFieldBegin()
  11054. if ftype == TType.STOP:
  11055. break
  11056. if fid == 1:
  11057. if ftype == TType.STRING:
  11058. self.token_str_form = iprot.readString();
  11059. else:
  11060. iprot.skip(ftype)
  11061. else:
  11062. iprot.skip(ftype)
  11063. iprot.readFieldEnd()
  11064. iprot.readStructEnd()
  11065. def write(self, oprot):
  11066. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11067. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11068. return
  11069. oprot.writeStructBegin('renew_delegation_token_args')
  11070. if self.token_str_form is not None:
  11071. oprot.writeFieldBegin('token_str_form', TType.STRING, 1)
  11072. oprot.writeString(self.token_str_form)
  11073. oprot.writeFieldEnd()
  11074. oprot.writeFieldStop()
  11075. oprot.writeStructEnd()
  11076. def validate(self):
  11077. return
  11078. def __repr__(self):
  11079. L = ['%s=%r' % (key, value)
  11080. for key, value in self.__dict__.iteritems()]
  11081. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11082. def __eq__(self, other):
  11083. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11084. def __ne__(self, other):
  11085. return not (self == other)
  11086. class renew_delegation_token_result(object):
  11087. """
  11088. Attributes:
  11089. - success
  11090. - o1
  11091. """
  11092. thrift_spec = (
  11093. (0, TType.I64, 'success', None, None, ), # 0
  11094. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  11095. )
  11096. def __init__(self, success=None, o1=None,):
  11097. self.success = success
  11098. self.o1 = o1
  11099. def read(self, iprot):
  11100. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11101. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11102. return
  11103. iprot.readStructBegin()
  11104. while True:
  11105. (fname, ftype, fid) = iprot.readFieldBegin()
  11106. if ftype == TType.STOP:
  11107. break
  11108. if fid == 0:
  11109. if ftype == TType.I64:
  11110. self.success = iprot.readI64();
  11111. else:
  11112. iprot.skip(ftype)
  11113. elif fid == 1:
  11114. if ftype == TType.STRUCT:
  11115. self.o1 = MetaException()
  11116. self.o1.read(iprot)
  11117. else:
  11118. iprot.skip(ftype)
  11119. else:
  11120. iprot.skip(ftype)
  11121. iprot.readFieldEnd()
  11122. iprot.readStructEnd()
  11123. def write(self, oprot):
  11124. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11125. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11126. return
  11127. oprot.writeStructBegin('renew_delegation_token_result')
  11128. if self.success is not None:
  11129. oprot.writeFieldBegin('success', TType.I64, 0)
  11130. oprot.writeI64(self.success)
  11131. oprot.writeFieldEnd()
  11132. if self.o1 is not None:
  11133. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11134. self.o1.write(oprot)
  11135. oprot.writeFieldEnd()
  11136. oprot.writeFieldStop()
  11137. oprot.writeStructEnd()
  11138. def validate(self):
  11139. return
  11140. def __repr__(self):
  11141. L = ['%s=%r' % (key, value)
  11142. for key, value in self.__dict__.iteritems()]
  11143. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11144. def __eq__(self, other):
  11145. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11146. def __ne__(self, other):
  11147. return not (self == other)
  11148. class cancel_delegation_token_args(object):
  11149. """
  11150. Attributes:
  11151. - token_str_form
  11152. """
  11153. thrift_spec = (
  11154. None, # 0
  11155. (1, TType.STRING, 'token_str_form', None, None, ), # 1
  11156. )
  11157. def __init__(self, token_str_form=None,):
  11158. self.token_str_form = token_str_form
  11159. def read(self, iprot):
  11160. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11161. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11162. return
  11163. iprot.readStructBegin()
  11164. while True:
  11165. (fname, ftype, fid) = iprot.readFieldBegin()
  11166. if ftype == TType.STOP:
  11167. break
  11168. if fid == 1:
  11169. if ftype == TType.STRING:
  11170. self.token_str_form = iprot.readString();
  11171. else:
  11172. iprot.skip(ftype)
  11173. else:
  11174. iprot.skip(ftype)
  11175. iprot.readFieldEnd()
  11176. iprot.readStructEnd()
  11177. def write(self, oprot):
  11178. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11179. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11180. return
  11181. oprot.writeStructBegin('cancel_delegation_token_args')
  11182. if self.token_str_form is not None:
  11183. oprot.writeFieldBegin('token_str_form', TType.STRING, 1)
  11184. oprot.writeString(self.token_str_form)
  11185. oprot.writeFieldEnd()
  11186. oprot.writeFieldStop()
  11187. oprot.writeStructEnd()
  11188. def validate(self):
  11189. return
  11190. def __repr__(self):
  11191. L = ['%s=%r' % (key, value)
  11192. for key, value in self.__dict__.iteritems()]
  11193. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11194. def __eq__(self, other):
  11195. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11196. def __ne__(self, other):
  11197. return not (self == other)
  11198. class cancel_delegation_token_result(object):
  11199. """
  11200. Attributes:
  11201. - o1
  11202. """
  11203. thrift_spec = (
  11204. None, # 0
  11205. (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
  11206. )
  11207. def __init__(self, o1=None,):
  11208. self.o1 = o1
  11209. def read(self, iprot):
  11210. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  11211. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  11212. return
  11213. iprot.readStructBegin()
  11214. while True:
  11215. (fname, ftype, fid) = iprot.readFieldBegin()
  11216. if ftype == TType.STOP:
  11217. break
  11218. if fid == 1:
  11219. if ftype == TType.STRUCT:
  11220. self.o1 = MetaException()
  11221. self.o1.read(iprot)
  11222. else:
  11223. iprot.skip(ftype)
  11224. else:
  11225. iprot.skip(ftype)
  11226. iprot.readFieldEnd()
  11227. iprot.readStructEnd()
  11228. def write(self, oprot):
  11229. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  11230. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  11231. return
  11232. oprot.writeStructBegin('cancel_delegation_token_result')
  11233. if self.o1 is not None:
  11234. oprot.writeFieldBegin('o1', TType.STRUCT, 1)
  11235. self.o1.write(oprot)
  11236. oprot.writeFieldEnd()
  11237. oprot.writeFieldStop()
  11238. oprot.writeStructEnd()
  11239. def validate(self):
  11240. return
  11241. def __repr__(self):
  11242. L = ['%s=%r' % (key, value)
  11243. for key, value in self.__dict__.iteritems()]
  11244. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  11245. def __eq__(self, other):
  11246. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  11247. def __ne__(self, other):
  11248. return not (self == other)