TCLIService.py 134 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590
  1. from __future__ import absolute_import
  2. #
  3. # Autogenerated by Thrift Compiler (0.9.3)
  4. #
  5. # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  6. #
  7. # options string: py:new_style
  8. #
  9. from builtins import object
  10. from thrift.Thrift import TType, TMessageType, TException, TApplicationException
  11. import logging
  12. from .ttypes import *
  13. from thrift.Thrift import TProcessor
  14. from thrift.transport import TTransport
  15. from thrift.protocol import TBinaryProtocol, TProtocol
  16. try:
  17. from thrift.protocol import fastbinary
  18. except:
  19. fastbinary = None
  20. class Iface(object):
  21. def OpenSession(self, req):
  22. """
  23. Parameters:
  24. - req
  25. """
  26. pass
  27. def CloseSession(self, req):
  28. """
  29. Parameters:
  30. - req
  31. """
  32. pass
  33. def GetInfo(self, req):
  34. """
  35. Parameters:
  36. - req
  37. """
  38. pass
  39. def ExecuteStatement(self, req):
  40. """
  41. Parameters:
  42. - req
  43. """
  44. pass
  45. def GetTypeInfo(self, req):
  46. """
  47. Parameters:
  48. - req
  49. """
  50. pass
  51. def GetCatalogs(self, req):
  52. """
  53. Parameters:
  54. - req
  55. """
  56. pass
  57. def GetSchemas(self, req):
  58. """
  59. Parameters:
  60. - req
  61. """
  62. pass
  63. def GetTables(self, req):
  64. """
  65. Parameters:
  66. - req
  67. """
  68. pass
  69. def GetTableTypes(self, req):
  70. """
  71. Parameters:
  72. - req
  73. """
  74. pass
  75. def GetColumns(self, req):
  76. """
  77. Parameters:
  78. - req
  79. """
  80. pass
  81. def GetFunctions(self, req):
  82. """
  83. Parameters:
  84. - req
  85. """
  86. pass
  87. def GetPrimaryKeys(self, req):
  88. """
  89. Parameters:
  90. - req
  91. """
  92. pass
  93. def GetCrossReference(self, req):
  94. """
  95. Parameters:
  96. - req
  97. """
  98. pass
  99. def GetOperationStatus(self, req):
  100. """
  101. Parameters:
  102. - req
  103. """
  104. pass
  105. def CancelOperation(self, req):
  106. """
  107. Parameters:
  108. - req
  109. """
  110. pass
  111. def CloseOperation(self, req):
  112. """
  113. Parameters:
  114. - req
  115. """
  116. pass
  117. def GetResultSetMetadata(self, req):
  118. """
  119. Parameters:
  120. - req
  121. """
  122. pass
  123. def FetchResults(self, req):
  124. """
  125. Parameters:
  126. - req
  127. """
  128. pass
  129. def GetDelegationToken(self, req):
  130. """
  131. Parameters:
  132. - req
  133. """
  134. pass
  135. def CancelDelegationToken(self, req):
  136. """
  137. Parameters:
  138. - req
  139. """
  140. pass
  141. def RenewDelegationToken(self, req):
  142. """
  143. Parameters:
  144. - req
  145. """
  146. pass
  147. def GetQueryId(self, req):
  148. """
  149. Parameters:
  150. - req
  151. """
  152. pass
  153. def SetClientInfo(self, req):
  154. """
  155. Parameters:
  156. - req
  157. """
  158. pass
  159. def GetLog(self, req):
  160. """
  161. Parameters:
  162. - req
  163. """
  164. pass
  165. class Client(Iface):
  166. def __init__(self, iprot, oprot=None):
  167. self._iprot = self._oprot = iprot
  168. if oprot is not None:
  169. self._oprot = oprot
  170. self._seqid = 0
  171. def OpenSession(self, req):
  172. """
  173. Parameters:
  174. - req
  175. """
  176. self.send_OpenSession(req)
  177. return self.recv_OpenSession()
  178. def send_OpenSession(self, req):
  179. self._oprot.writeMessageBegin('OpenSession', TMessageType.CALL, self._seqid)
  180. args = OpenSession_args()
  181. args.req = req
  182. args.write(self._oprot)
  183. self._oprot.writeMessageEnd()
  184. self._oprot.trans.flush()
  185. def recv_OpenSession(self):
  186. iprot = self._iprot
  187. (fname, mtype, rseqid) = iprot.readMessageBegin()
  188. if mtype == TMessageType.EXCEPTION:
  189. x = TApplicationException()
  190. x.read(iprot)
  191. iprot.readMessageEnd()
  192. raise x
  193. result = OpenSession_result()
  194. result.read(iprot)
  195. iprot.readMessageEnd()
  196. if result.success is not None:
  197. return result.success
  198. raise TApplicationException(TApplicationException.MISSING_RESULT, "OpenSession failed: unknown result")
  199. def CloseSession(self, req):
  200. """
  201. Parameters:
  202. - req
  203. """
  204. self.send_CloseSession(req)
  205. return self.recv_CloseSession()
  206. def send_CloseSession(self, req):
  207. self._oprot.writeMessageBegin('CloseSession', TMessageType.CALL, self._seqid)
  208. args = CloseSession_args()
  209. args.req = req
  210. args.write(self._oprot)
  211. self._oprot.writeMessageEnd()
  212. self._oprot.trans.flush()
  213. def recv_CloseSession(self):
  214. iprot = self._iprot
  215. (fname, mtype, rseqid) = iprot.readMessageBegin()
  216. if mtype == TMessageType.EXCEPTION:
  217. x = TApplicationException()
  218. x.read(iprot)
  219. iprot.readMessageEnd()
  220. raise x
  221. result = CloseSession_result()
  222. result.read(iprot)
  223. iprot.readMessageEnd()
  224. if result.success is not None:
  225. return result.success
  226. raise TApplicationException(TApplicationException.MISSING_RESULT, "CloseSession failed: unknown result")
  227. def GetInfo(self, req):
  228. """
  229. Parameters:
  230. - req
  231. """
  232. self.send_GetInfo(req)
  233. return self.recv_GetInfo()
  234. def send_GetInfo(self, req):
  235. self._oprot.writeMessageBegin('GetInfo', TMessageType.CALL, self._seqid)
  236. args = GetInfo_args()
  237. args.req = req
  238. args.write(self._oprot)
  239. self._oprot.writeMessageEnd()
  240. self._oprot.trans.flush()
  241. def recv_GetInfo(self):
  242. iprot = self._iprot
  243. (fname, mtype, rseqid) = iprot.readMessageBegin()
  244. if mtype == TMessageType.EXCEPTION:
  245. x = TApplicationException()
  246. x.read(iprot)
  247. iprot.readMessageEnd()
  248. raise x
  249. result = GetInfo_result()
  250. result.read(iprot)
  251. iprot.readMessageEnd()
  252. if result.success is not None:
  253. return result.success
  254. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetInfo failed: unknown result")
  255. def ExecuteStatement(self, req):
  256. """
  257. Parameters:
  258. - req
  259. """
  260. self.send_ExecuteStatement(req)
  261. return self.recv_ExecuteStatement()
  262. def send_ExecuteStatement(self, req):
  263. self._oprot.writeMessageBegin('ExecuteStatement', TMessageType.CALL, self._seqid)
  264. args = ExecuteStatement_args()
  265. args.req = req
  266. args.write(self._oprot)
  267. self._oprot.writeMessageEnd()
  268. self._oprot.trans.flush()
  269. def recv_ExecuteStatement(self):
  270. iprot = self._iprot
  271. (fname, mtype, rseqid) = iprot.readMessageBegin()
  272. if mtype == TMessageType.EXCEPTION:
  273. x = TApplicationException()
  274. x.read(iprot)
  275. iprot.readMessageEnd()
  276. raise x
  277. result = ExecuteStatement_result()
  278. result.read(iprot)
  279. iprot.readMessageEnd()
  280. if result.success is not None:
  281. return result.success
  282. raise TApplicationException(TApplicationException.MISSING_RESULT, "ExecuteStatement failed: unknown result")
  283. def GetTypeInfo(self, req):
  284. """
  285. Parameters:
  286. - req
  287. """
  288. self.send_GetTypeInfo(req)
  289. return self.recv_GetTypeInfo()
  290. def send_GetTypeInfo(self, req):
  291. self._oprot.writeMessageBegin('GetTypeInfo', TMessageType.CALL, self._seqid)
  292. args = GetTypeInfo_args()
  293. args.req = req
  294. args.write(self._oprot)
  295. self._oprot.writeMessageEnd()
  296. self._oprot.trans.flush()
  297. def recv_GetTypeInfo(self):
  298. iprot = self._iprot
  299. (fname, mtype, rseqid) = iprot.readMessageBegin()
  300. if mtype == TMessageType.EXCEPTION:
  301. x = TApplicationException()
  302. x.read(iprot)
  303. iprot.readMessageEnd()
  304. raise x
  305. result = GetTypeInfo_result()
  306. result.read(iprot)
  307. iprot.readMessageEnd()
  308. if result.success is not None:
  309. return result.success
  310. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetTypeInfo failed: unknown result")
  311. def GetCatalogs(self, req):
  312. """
  313. Parameters:
  314. - req
  315. """
  316. self.send_GetCatalogs(req)
  317. return self.recv_GetCatalogs()
  318. def send_GetCatalogs(self, req):
  319. self._oprot.writeMessageBegin('GetCatalogs', TMessageType.CALL, self._seqid)
  320. args = GetCatalogs_args()
  321. args.req = req
  322. args.write(self._oprot)
  323. self._oprot.writeMessageEnd()
  324. self._oprot.trans.flush()
  325. def recv_GetCatalogs(self):
  326. iprot = self._iprot
  327. (fname, mtype, rseqid) = iprot.readMessageBegin()
  328. if mtype == TMessageType.EXCEPTION:
  329. x = TApplicationException()
  330. x.read(iprot)
  331. iprot.readMessageEnd()
  332. raise x
  333. result = GetCatalogs_result()
  334. result.read(iprot)
  335. iprot.readMessageEnd()
  336. if result.success is not None:
  337. return result.success
  338. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetCatalogs failed: unknown result")
  339. def GetSchemas(self, req):
  340. """
  341. Parameters:
  342. - req
  343. """
  344. self.send_GetSchemas(req)
  345. return self.recv_GetSchemas()
  346. def send_GetSchemas(self, req):
  347. self._oprot.writeMessageBegin('GetSchemas', TMessageType.CALL, self._seqid)
  348. args = GetSchemas_args()
  349. args.req = req
  350. args.write(self._oprot)
  351. self._oprot.writeMessageEnd()
  352. self._oprot.trans.flush()
  353. def recv_GetSchemas(self):
  354. iprot = self._iprot
  355. (fname, mtype, rseqid) = iprot.readMessageBegin()
  356. if mtype == TMessageType.EXCEPTION:
  357. x = TApplicationException()
  358. x.read(iprot)
  359. iprot.readMessageEnd()
  360. raise x
  361. result = GetSchemas_result()
  362. result.read(iprot)
  363. iprot.readMessageEnd()
  364. if result.success is not None:
  365. return result.success
  366. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetSchemas failed: unknown result")
  367. def GetTables(self, req):
  368. """
  369. Parameters:
  370. - req
  371. """
  372. self.send_GetTables(req)
  373. return self.recv_GetTables()
  374. def send_GetTables(self, req):
  375. self._oprot.writeMessageBegin('GetTables', TMessageType.CALL, self._seqid)
  376. args = GetTables_args()
  377. args.req = req
  378. args.write(self._oprot)
  379. self._oprot.writeMessageEnd()
  380. self._oprot.trans.flush()
  381. def recv_GetTables(self):
  382. iprot = self._iprot
  383. (fname, mtype, rseqid) = iprot.readMessageBegin()
  384. if mtype == TMessageType.EXCEPTION:
  385. x = TApplicationException()
  386. x.read(iprot)
  387. iprot.readMessageEnd()
  388. raise x
  389. result = GetTables_result()
  390. result.read(iprot)
  391. iprot.readMessageEnd()
  392. if result.success is not None:
  393. return result.success
  394. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetTables failed: unknown result")
  395. def GetTableTypes(self, req):
  396. """
  397. Parameters:
  398. - req
  399. """
  400. self.send_GetTableTypes(req)
  401. return self.recv_GetTableTypes()
  402. def send_GetTableTypes(self, req):
  403. self._oprot.writeMessageBegin('GetTableTypes', TMessageType.CALL, self._seqid)
  404. args = GetTableTypes_args()
  405. args.req = req
  406. args.write(self._oprot)
  407. self._oprot.writeMessageEnd()
  408. self._oprot.trans.flush()
  409. def recv_GetTableTypes(self):
  410. iprot = self._iprot
  411. (fname, mtype, rseqid) = iprot.readMessageBegin()
  412. if mtype == TMessageType.EXCEPTION:
  413. x = TApplicationException()
  414. x.read(iprot)
  415. iprot.readMessageEnd()
  416. raise x
  417. result = GetTableTypes_result()
  418. result.read(iprot)
  419. iprot.readMessageEnd()
  420. if result.success is not None:
  421. return result.success
  422. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetTableTypes failed: unknown result")
  423. def GetColumns(self, req):
  424. """
  425. Parameters:
  426. - req
  427. """
  428. self.send_GetColumns(req)
  429. return self.recv_GetColumns()
  430. def send_GetColumns(self, req):
  431. self._oprot.writeMessageBegin('GetColumns', TMessageType.CALL, self._seqid)
  432. args = GetColumns_args()
  433. args.req = req
  434. args.write(self._oprot)
  435. self._oprot.writeMessageEnd()
  436. self._oprot.trans.flush()
  437. def recv_GetColumns(self):
  438. iprot = self._iprot
  439. (fname, mtype, rseqid) = iprot.readMessageBegin()
  440. if mtype == TMessageType.EXCEPTION:
  441. x = TApplicationException()
  442. x.read(iprot)
  443. iprot.readMessageEnd()
  444. raise x
  445. result = GetColumns_result()
  446. result.read(iprot)
  447. iprot.readMessageEnd()
  448. if result.success is not None:
  449. return result.success
  450. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetColumns failed: unknown result")
  451. def GetFunctions(self, req):
  452. """
  453. Parameters:
  454. - req
  455. """
  456. self.send_GetFunctions(req)
  457. return self.recv_GetFunctions()
  458. def send_GetFunctions(self, req):
  459. self._oprot.writeMessageBegin('GetFunctions', TMessageType.CALL, self._seqid)
  460. args = GetFunctions_args()
  461. args.req = req
  462. args.write(self._oprot)
  463. self._oprot.writeMessageEnd()
  464. self._oprot.trans.flush()
  465. def recv_GetFunctions(self):
  466. iprot = self._iprot
  467. (fname, mtype, rseqid) = iprot.readMessageBegin()
  468. if mtype == TMessageType.EXCEPTION:
  469. x = TApplicationException()
  470. x.read(iprot)
  471. iprot.readMessageEnd()
  472. raise x
  473. result = GetFunctions_result()
  474. result.read(iprot)
  475. iprot.readMessageEnd()
  476. if result.success is not None:
  477. return result.success
  478. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetFunctions failed: unknown result")
  479. def GetPrimaryKeys(self, req):
  480. """
  481. Parameters:
  482. - req
  483. """
  484. self.send_GetPrimaryKeys(req)
  485. return self.recv_GetPrimaryKeys()
  486. def send_GetPrimaryKeys(self, req):
  487. self._oprot.writeMessageBegin('GetPrimaryKeys', TMessageType.CALL, self._seqid)
  488. args = GetPrimaryKeys_args()
  489. args.req = req
  490. args.write(self._oprot)
  491. self._oprot.writeMessageEnd()
  492. self._oprot.trans.flush()
  493. def recv_GetPrimaryKeys(self):
  494. iprot = self._iprot
  495. (fname, mtype, rseqid) = iprot.readMessageBegin()
  496. if mtype == TMessageType.EXCEPTION:
  497. x = TApplicationException()
  498. x.read(iprot)
  499. iprot.readMessageEnd()
  500. raise x
  501. result = GetPrimaryKeys_result()
  502. result.read(iprot)
  503. iprot.readMessageEnd()
  504. if result.success is not None:
  505. return result.success
  506. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetPrimaryKeys failed: unknown result")
  507. def GetCrossReference(self, req):
  508. """
  509. Parameters:
  510. - req
  511. """
  512. self.send_GetCrossReference(req)
  513. return self.recv_GetCrossReference()
  514. def send_GetCrossReference(self, req):
  515. self._oprot.writeMessageBegin('GetCrossReference', TMessageType.CALL, self._seqid)
  516. args = GetCrossReference_args()
  517. args.req = req
  518. args.write(self._oprot)
  519. self._oprot.writeMessageEnd()
  520. self._oprot.trans.flush()
  521. def recv_GetCrossReference(self):
  522. iprot = self._iprot
  523. (fname, mtype, rseqid) = iprot.readMessageBegin()
  524. if mtype == TMessageType.EXCEPTION:
  525. x = TApplicationException()
  526. x.read(iprot)
  527. iprot.readMessageEnd()
  528. raise x
  529. result = GetCrossReference_result()
  530. result.read(iprot)
  531. iprot.readMessageEnd()
  532. if result.success is not None:
  533. return result.success
  534. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetCrossReference failed: unknown result")
  535. def GetOperationStatus(self, req):
  536. """
  537. Parameters:
  538. - req
  539. """
  540. self.send_GetOperationStatus(req)
  541. return self.recv_GetOperationStatus()
  542. def send_GetOperationStatus(self, req):
  543. self._oprot.writeMessageBegin('GetOperationStatus', TMessageType.CALL, self._seqid)
  544. args = GetOperationStatus_args()
  545. args.req = req
  546. args.write(self._oprot)
  547. self._oprot.writeMessageEnd()
  548. self._oprot.trans.flush()
  549. def recv_GetOperationStatus(self):
  550. iprot = self._iprot
  551. (fname, mtype, rseqid) = iprot.readMessageBegin()
  552. if mtype == TMessageType.EXCEPTION:
  553. x = TApplicationException()
  554. x.read(iprot)
  555. iprot.readMessageEnd()
  556. raise x
  557. result = GetOperationStatus_result()
  558. result.read(iprot)
  559. iprot.readMessageEnd()
  560. if result.success is not None:
  561. return result.success
  562. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetOperationStatus failed: unknown result")
  563. def CancelOperation(self, req):
  564. """
  565. Parameters:
  566. - req
  567. """
  568. self.send_CancelOperation(req)
  569. return self.recv_CancelOperation()
  570. def send_CancelOperation(self, req):
  571. self._oprot.writeMessageBegin('CancelOperation', TMessageType.CALL, self._seqid)
  572. args = CancelOperation_args()
  573. args.req = req
  574. args.write(self._oprot)
  575. self._oprot.writeMessageEnd()
  576. self._oprot.trans.flush()
  577. def recv_CancelOperation(self):
  578. iprot = self._iprot
  579. (fname, mtype, rseqid) = iprot.readMessageBegin()
  580. if mtype == TMessageType.EXCEPTION:
  581. x = TApplicationException()
  582. x.read(iprot)
  583. iprot.readMessageEnd()
  584. raise x
  585. result = CancelOperation_result()
  586. result.read(iprot)
  587. iprot.readMessageEnd()
  588. if result.success is not None:
  589. return result.success
  590. raise TApplicationException(TApplicationException.MISSING_RESULT, "CancelOperation failed: unknown result")
  591. def CloseOperation(self, req):
  592. """
  593. Parameters:
  594. - req
  595. """
  596. self.send_CloseOperation(req)
  597. return self.recv_CloseOperation()
  598. def send_CloseOperation(self, req):
  599. self._oprot.writeMessageBegin('CloseOperation', TMessageType.CALL, self._seqid)
  600. args = CloseOperation_args()
  601. args.req = req
  602. args.write(self._oprot)
  603. self._oprot.writeMessageEnd()
  604. self._oprot.trans.flush()
  605. def recv_CloseOperation(self):
  606. iprot = self._iprot
  607. (fname, mtype, rseqid) = iprot.readMessageBegin()
  608. if mtype == TMessageType.EXCEPTION:
  609. x = TApplicationException()
  610. x.read(iprot)
  611. iprot.readMessageEnd()
  612. raise x
  613. result = CloseOperation_result()
  614. result.read(iprot)
  615. iprot.readMessageEnd()
  616. if result.success is not None:
  617. return result.success
  618. raise TApplicationException(TApplicationException.MISSING_RESULT, "CloseOperation failed: unknown result")
  619. def GetResultSetMetadata(self, req):
  620. """
  621. Parameters:
  622. - req
  623. """
  624. self.send_GetResultSetMetadata(req)
  625. return self.recv_GetResultSetMetadata()
  626. def send_GetResultSetMetadata(self, req):
  627. self._oprot.writeMessageBegin('GetResultSetMetadata', TMessageType.CALL, self._seqid)
  628. args = GetResultSetMetadata_args()
  629. args.req = req
  630. args.write(self._oprot)
  631. self._oprot.writeMessageEnd()
  632. self._oprot.trans.flush()
  633. def recv_GetResultSetMetadata(self):
  634. iprot = self._iprot
  635. (fname, mtype, rseqid) = iprot.readMessageBegin()
  636. if mtype == TMessageType.EXCEPTION:
  637. x = TApplicationException()
  638. x.read(iprot)
  639. iprot.readMessageEnd()
  640. raise x
  641. result = GetResultSetMetadata_result()
  642. result.read(iprot)
  643. iprot.readMessageEnd()
  644. if result.success is not None:
  645. return result.success
  646. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetResultSetMetadata failed: unknown result")
  647. def FetchResults(self, req):
  648. """
  649. Parameters:
  650. - req
  651. """
  652. self.send_FetchResults(req)
  653. return self.recv_FetchResults()
  654. def send_FetchResults(self, req):
  655. self._oprot.writeMessageBegin('FetchResults', TMessageType.CALL, self._seqid)
  656. args = FetchResults_args()
  657. args.req = req
  658. args.write(self._oprot)
  659. self._oprot.writeMessageEnd()
  660. self._oprot.trans.flush()
  661. def recv_FetchResults(self):
  662. iprot = self._iprot
  663. (fname, mtype, rseqid) = iprot.readMessageBegin()
  664. if mtype == TMessageType.EXCEPTION:
  665. x = TApplicationException()
  666. x.read(iprot)
  667. iprot.readMessageEnd()
  668. raise x
  669. result = FetchResults_result()
  670. result.read(iprot)
  671. iprot.readMessageEnd()
  672. if result.success is not None:
  673. return result.success
  674. raise TApplicationException(TApplicationException.MISSING_RESULT, "FetchResults failed: unknown result")
  675. def GetDelegationToken(self, req):
  676. """
  677. Parameters:
  678. - req
  679. """
  680. self.send_GetDelegationToken(req)
  681. return self.recv_GetDelegationToken()
  682. def send_GetDelegationToken(self, req):
  683. self._oprot.writeMessageBegin('GetDelegationToken', TMessageType.CALL, self._seqid)
  684. args = GetDelegationToken_args()
  685. args.req = req
  686. args.write(self._oprot)
  687. self._oprot.writeMessageEnd()
  688. self._oprot.trans.flush()
  689. def recv_GetDelegationToken(self):
  690. iprot = self._iprot
  691. (fname, mtype, rseqid) = iprot.readMessageBegin()
  692. if mtype == TMessageType.EXCEPTION:
  693. x = TApplicationException()
  694. x.read(iprot)
  695. iprot.readMessageEnd()
  696. raise x
  697. result = GetDelegationToken_result()
  698. result.read(iprot)
  699. iprot.readMessageEnd()
  700. if result.success is not None:
  701. return result.success
  702. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetDelegationToken failed: unknown result")
  703. def CancelDelegationToken(self, req):
  704. """
  705. Parameters:
  706. - req
  707. """
  708. self.send_CancelDelegationToken(req)
  709. return self.recv_CancelDelegationToken()
  710. def send_CancelDelegationToken(self, req):
  711. self._oprot.writeMessageBegin('CancelDelegationToken', TMessageType.CALL, self._seqid)
  712. args = CancelDelegationToken_args()
  713. args.req = req
  714. args.write(self._oprot)
  715. self._oprot.writeMessageEnd()
  716. self._oprot.trans.flush()
  717. def recv_CancelDelegationToken(self):
  718. iprot = self._iprot
  719. (fname, mtype, rseqid) = iprot.readMessageBegin()
  720. if mtype == TMessageType.EXCEPTION:
  721. x = TApplicationException()
  722. x.read(iprot)
  723. iprot.readMessageEnd()
  724. raise x
  725. result = CancelDelegationToken_result()
  726. result.read(iprot)
  727. iprot.readMessageEnd()
  728. if result.success is not None:
  729. return result.success
  730. raise TApplicationException(TApplicationException.MISSING_RESULT, "CancelDelegationToken failed: unknown result")
  731. def RenewDelegationToken(self, req):
  732. """
  733. Parameters:
  734. - req
  735. """
  736. self.send_RenewDelegationToken(req)
  737. return self.recv_RenewDelegationToken()
  738. def send_RenewDelegationToken(self, req):
  739. self._oprot.writeMessageBegin('RenewDelegationToken', TMessageType.CALL, self._seqid)
  740. args = RenewDelegationToken_args()
  741. args.req = req
  742. args.write(self._oprot)
  743. self._oprot.writeMessageEnd()
  744. self._oprot.trans.flush()
  745. def recv_RenewDelegationToken(self):
  746. iprot = self._iprot
  747. (fname, mtype, rseqid) = iprot.readMessageBegin()
  748. if mtype == TMessageType.EXCEPTION:
  749. x = TApplicationException()
  750. x.read(iprot)
  751. iprot.readMessageEnd()
  752. raise x
  753. result = RenewDelegationToken_result()
  754. result.read(iprot)
  755. iprot.readMessageEnd()
  756. if result.success is not None:
  757. return result.success
  758. raise TApplicationException(TApplicationException.MISSING_RESULT, "RenewDelegationToken failed: unknown result")
  759. def GetQueryId(self, req):
  760. """
  761. Parameters:
  762. - req
  763. """
  764. self.send_GetQueryId(req)
  765. return self.recv_GetQueryId()
  766. def send_GetQueryId(self, req):
  767. self._oprot.writeMessageBegin('GetQueryId', TMessageType.CALL, self._seqid)
  768. args = GetQueryId_args()
  769. args.req = req
  770. args.write(self._oprot)
  771. self._oprot.writeMessageEnd()
  772. self._oprot.trans.flush()
  773. def recv_GetQueryId(self):
  774. iprot = self._iprot
  775. (fname, mtype, rseqid) = iprot.readMessageBegin()
  776. if mtype == TMessageType.EXCEPTION:
  777. x = TApplicationException()
  778. x.read(iprot)
  779. iprot.readMessageEnd()
  780. raise x
  781. result = GetQueryId_result()
  782. result.read(iprot)
  783. iprot.readMessageEnd()
  784. if result.success is not None:
  785. return result.success
  786. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetQueryId failed: unknown result")
  787. def SetClientInfo(self, req):
  788. """
  789. Parameters:
  790. - req
  791. """
  792. self.send_SetClientInfo(req)
  793. return self.recv_SetClientInfo()
  794. def send_SetClientInfo(self, req):
  795. self._oprot.writeMessageBegin('SetClientInfo', TMessageType.CALL, self._seqid)
  796. args = SetClientInfo_args()
  797. args.req = req
  798. args.write(self._oprot)
  799. self._oprot.writeMessageEnd()
  800. self._oprot.trans.flush()
  801. def recv_SetClientInfo(self):
  802. iprot = self._iprot
  803. (fname, mtype, rseqid) = iprot.readMessageBegin()
  804. if mtype == TMessageType.EXCEPTION:
  805. x = TApplicationException()
  806. x.read(iprot)
  807. iprot.readMessageEnd()
  808. raise x
  809. result = SetClientInfo_result()
  810. result.read(iprot)
  811. iprot.readMessageEnd()
  812. if result.success is not None:
  813. return result.success
  814. raise TApplicationException(TApplicationException.MISSING_RESULT, "SetClientInfo failed: unknown result")
  815. def GetLog(self, req):
  816. """
  817. Parameters:
  818. - req
  819. """
  820. self.send_GetLog(req)
  821. return self.recv_GetLog()
  822. def send_GetLog(self, req):
  823. self._oprot.writeMessageBegin('GetLog', TMessageType.CALL, self._seqid)
  824. args = GetLog_args()
  825. args.req = req
  826. args.write(self._oprot)
  827. self._oprot.writeMessageEnd()
  828. self._oprot.trans.flush()
  829. def recv_GetLog(self):
  830. iprot = self._iprot
  831. (fname, mtype, rseqid) = iprot.readMessageBegin()
  832. if mtype == TMessageType.EXCEPTION:
  833. x = TApplicationException()
  834. x.read(iprot)
  835. iprot.readMessageEnd()
  836. raise x
  837. result = GetLog_result()
  838. result.read(iprot)
  839. iprot.readMessageEnd()
  840. if result.success is not None:
  841. return result.success
  842. raise TApplicationException(TApplicationException.MISSING_RESULT, "GetLog failed: unknown result")
  843. class Processor(Iface, TProcessor):
  844. def __init__(self, handler):
  845. self._handler = handler
  846. self._processMap = {}
  847. self._processMap["OpenSession"] = Processor.process_OpenSession
  848. self._processMap["CloseSession"] = Processor.process_CloseSession
  849. self._processMap["GetInfo"] = Processor.process_GetInfo
  850. self._processMap["ExecuteStatement"] = Processor.process_ExecuteStatement
  851. self._processMap["GetTypeInfo"] = Processor.process_GetTypeInfo
  852. self._processMap["GetCatalogs"] = Processor.process_GetCatalogs
  853. self._processMap["GetSchemas"] = Processor.process_GetSchemas
  854. self._processMap["GetTables"] = Processor.process_GetTables
  855. self._processMap["GetTableTypes"] = Processor.process_GetTableTypes
  856. self._processMap["GetColumns"] = Processor.process_GetColumns
  857. self._processMap["GetFunctions"] = Processor.process_GetFunctions
  858. self._processMap["GetPrimaryKeys"] = Processor.process_GetPrimaryKeys
  859. self._processMap["GetCrossReference"] = Processor.process_GetCrossReference
  860. self._processMap["GetOperationStatus"] = Processor.process_GetOperationStatus
  861. self._processMap["CancelOperation"] = Processor.process_CancelOperation
  862. self._processMap["CloseOperation"] = Processor.process_CloseOperation
  863. self._processMap["GetResultSetMetadata"] = Processor.process_GetResultSetMetadata
  864. self._processMap["FetchResults"] = Processor.process_FetchResults
  865. self._processMap["GetDelegationToken"] = Processor.process_GetDelegationToken
  866. self._processMap["CancelDelegationToken"] = Processor.process_CancelDelegationToken
  867. self._processMap["RenewDelegationToken"] = Processor.process_RenewDelegationToken
  868. self._processMap["GetQueryId"] = Processor.process_GetQueryId
  869. self._processMap["SetClientInfo"] = Processor.process_SetClientInfo
  870. self._processMap["GetLog"] = Processor.process_GetLog
  871. def process(self, iprot, oprot):
  872. (name, type, seqid) = iprot.readMessageBegin()
  873. if name not in self._processMap:
  874. iprot.skip(TType.STRUCT)
  875. iprot.readMessageEnd()
  876. x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
  877. oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
  878. x.write(oprot)
  879. oprot.writeMessageEnd()
  880. oprot.trans.flush()
  881. return
  882. else:
  883. self._processMap[name](self, seqid, iprot, oprot)
  884. return True
  885. def process_OpenSession(self, seqid, iprot, oprot):
  886. args = OpenSession_args()
  887. args.read(iprot)
  888. iprot.readMessageEnd()
  889. result = OpenSession_result()
  890. try:
  891. result.success = self._handler.OpenSession(args.req)
  892. msg_type = TMessageType.REPLY
  893. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  894. raise
  895. except Exception as ex:
  896. msg_type = TMessageType.EXCEPTION
  897. logging.exception(ex)
  898. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  899. oprot.writeMessageBegin("OpenSession", msg_type, seqid)
  900. result.write(oprot)
  901. oprot.writeMessageEnd()
  902. oprot.trans.flush()
  903. def process_CloseSession(self, seqid, iprot, oprot):
  904. args = CloseSession_args()
  905. args.read(iprot)
  906. iprot.readMessageEnd()
  907. result = CloseSession_result()
  908. try:
  909. result.success = self._handler.CloseSession(args.req)
  910. msg_type = TMessageType.REPLY
  911. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  912. raise
  913. except Exception as ex:
  914. msg_type = TMessageType.EXCEPTION
  915. logging.exception(ex)
  916. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  917. oprot.writeMessageBegin("CloseSession", msg_type, seqid)
  918. result.write(oprot)
  919. oprot.writeMessageEnd()
  920. oprot.trans.flush()
  921. def process_GetInfo(self, seqid, iprot, oprot):
  922. args = GetInfo_args()
  923. args.read(iprot)
  924. iprot.readMessageEnd()
  925. result = GetInfo_result()
  926. try:
  927. result.success = self._handler.GetInfo(args.req)
  928. msg_type = TMessageType.REPLY
  929. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  930. raise
  931. except Exception as ex:
  932. msg_type = TMessageType.EXCEPTION
  933. logging.exception(ex)
  934. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  935. oprot.writeMessageBegin("GetInfo", msg_type, seqid)
  936. result.write(oprot)
  937. oprot.writeMessageEnd()
  938. oprot.trans.flush()
  939. def process_ExecuteStatement(self, seqid, iprot, oprot):
  940. args = ExecuteStatement_args()
  941. args.read(iprot)
  942. iprot.readMessageEnd()
  943. result = ExecuteStatement_result()
  944. try:
  945. result.success = self._handler.ExecuteStatement(args.req)
  946. msg_type = TMessageType.REPLY
  947. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  948. raise
  949. except Exception as ex:
  950. msg_type = TMessageType.EXCEPTION
  951. logging.exception(ex)
  952. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  953. oprot.writeMessageBegin("ExecuteStatement", msg_type, seqid)
  954. result.write(oprot)
  955. oprot.writeMessageEnd()
  956. oprot.trans.flush()
  957. def process_GetTypeInfo(self, seqid, iprot, oprot):
  958. args = GetTypeInfo_args()
  959. args.read(iprot)
  960. iprot.readMessageEnd()
  961. result = GetTypeInfo_result()
  962. try:
  963. result.success = self._handler.GetTypeInfo(args.req)
  964. msg_type = TMessageType.REPLY
  965. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  966. raise
  967. except Exception as ex:
  968. msg_type = TMessageType.EXCEPTION
  969. logging.exception(ex)
  970. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  971. oprot.writeMessageBegin("GetTypeInfo", msg_type, seqid)
  972. result.write(oprot)
  973. oprot.writeMessageEnd()
  974. oprot.trans.flush()
  975. def process_GetCatalogs(self, seqid, iprot, oprot):
  976. args = GetCatalogs_args()
  977. args.read(iprot)
  978. iprot.readMessageEnd()
  979. result = GetCatalogs_result()
  980. try:
  981. result.success = self._handler.GetCatalogs(args.req)
  982. msg_type = TMessageType.REPLY
  983. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  984. raise
  985. except Exception as ex:
  986. msg_type = TMessageType.EXCEPTION
  987. logging.exception(ex)
  988. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  989. oprot.writeMessageBegin("GetCatalogs", msg_type, seqid)
  990. result.write(oprot)
  991. oprot.writeMessageEnd()
  992. oprot.trans.flush()
  993. def process_GetSchemas(self, seqid, iprot, oprot):
  994. args = GetSchemas_args()
  995. args.read(iprot)
  996. iprot.readMessageEnd()
  997. result = GetSchemas_result()
  998. try:
  999. result.success = self._handler.GetSchemas(args.req)
  1000. msg_type = TMessageType.REPLY
  1001. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1002. raise
  1003. except Exception as ex:
  1004. msg_type = TMessageType.EXCEPTION
  1005. logging.exception(ex)
  1006. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1007. oprot.writeMessageBegin("GetSchemas", msg_type, seqid)
  1008. result.write(oprot)
  1009. oprot.writeMessageEnd()
  1010. oprot.trans.flush()
  1011. def process_GetTables(self, seqid, iprot, oprot):
  1012. args = GetTables_args()
  1013. args.read(iprot)
  1014. iprot.readMessageEnd()
  1015. result = GetTables_result()
  1016. try:
  1017. result.success = self._handler.GetTables(args.req)
  1018. msg_type = TMessageType.REPLY
  1019. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1020. raise
  1021. except Exception as ex:
  1022. msg_type = TMessageType.EXCEPTION
  1023. logging.exception(ex)
  1024. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1025. oprot.writeMessageBegin("GetTables", msg_type, seqid)
  1026. result.write(oprot)
  1027. oprot.writeMessageEnd()
  1028. oprot.trans.flush()
  1029. def process_GetTableTypes(self, seqid, iprot, oprot):
  1030. args = GetTableTypes_args()
  1031. args.read(iprot)
  1032. iprot.readMessageEnd()
  1033. result = GetTableTypes_result()
  1034. try:
  1035. result.success = self._handler.GetTableTypes(args.req)
  1036. msg_type = TMessageType.REPLY
  1037. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1038. raise
  1039. except Exception as ex:
  1040. msg_type = TMessageType.EXCEPTION
  1041. logging.exception(ex)
  1042. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1043. oprot.writeMessageBegin("GetTableTypes", msg_type, seqid)
  1044. result.write(oprot)
  1045. oprot.writeMessageEnd()
  1046. oprot.trans.flush()
  1047. def process_GetColumns(self, seqid, iprot, oprot):
  1048. args = GetColumns_args()
  1049. args.read(iprot)
  1050. iprot.readMessageEnd()
  1051. result = GetColumns_result()
  1052. try:
  1053. result.success = self._handler.GetColumns(args.req)
  1054. msg_type = TMessageType.REPLY
  1055. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1056. raise
  1057. except Exception as ex:
  1058. msg_type = TMessageType.EXCEPTION
  1059. logging.exception(ex)
  1060. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1061. oprot.writeMessageBegin("GetColumns", msg_type, seqid)
  1062. result.write(oprot)
  1063. oprot.writeMessageEnd()
  1064. oprot.trans.flush()
  1065. def process_GetFunctions(self, seqid, iprot, oprot):
  1066. args = GetFunctions_args()
  1067. args.read(iprot)
  1068. iprot.readMessageEnd()
  1069. result = GetFunctions_result()
  1070. try:
  1071. result.success = self._handler.GetFunctions(args.req)
  1072. msg_type = TMessageType.REPLY
  1073. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1074. raise
  1075. except Exception as ex:
  1076. msg_type = TMessageType.EXCEPTION
  1077. logging.exception(ex)
  1078. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1079. oprot.writeMessageBegin("GetFunctions", msg_type, seqid)
  1080. result.write(oprot)
  1081. oprot.writeMessageEnd()
  1082. oprot.trans.flush()
  1083. def process_GetPrimaryKeys(self, seqid, iprot, oprot):
  1084. args = GetPrimaryKeys_args()
  1085. args.read(iprot)
  1086. iprot.readMessageEnd()
  1087. result = GetPrimaryKeys_result()
  1088. try:
  1089. result.success = self._handler.GetPrimaryKeys(args.req)
  1090. msg_type = TMessageType.REPLY
  1091. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1092. raise
  1093. except Exception as ex:
  1094. msg_type = TMessageType.EXCEPTION
  1095. logging.exception(ex)
  1096. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1097. oprot.writeMessageBegin("GetPrimaryKeys", msg_type, seqid)
  1098. result.write(oprot)
  1099. oprot.writeMessageEnd()
  1100. oprot.trans.flush()
  1101. def process_GetCrossReference(self, seqid, iprot, oprot):
  1102. args = GetCrossReference_args()
  1103. args.read(iprot)
  1104. iprot.readMessageEnd()
  1105. result = GetCrossReference_result()
  1106. try:
  1107. result.success = self._handler.GetCrossReference(args.req)
  1108. msg_type = TMessageType.REPLY
  1109. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1110. raise
  1111. except Exception as ex:
  1112. msg_type = TMessageType.EXCEPTION
  1113. logging.exception(ex)
  1114. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1115. oprot.writeMessageBegin("GetCrossReference", msg_type, seqid)
  1116. result.write(oprot)
  1117. oprot.writeMessageEnd()
  1118. oprot.trans.flush()
  1119. def process_GetOperationStatus(self, seqid, iprot, oprot):
  1120. args = GetOperationStatus_args()
  1121. args.read(iprot)
  1122. iprot.readMessageEnd()
  1123. result = GetOperationStatus_result()
  1124. try:
  1125. result.success = self._handler.GetOperationStatus(args.req)
  1126. msg_type = TMessageType.REPLY
  1127. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1128. raise
  1129. except Exception as ex:
  1130. msg_type = TMessageType.EXCEPTION
  1131. logging.exception(ex)
  1132. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1133. oprot.writeMessageBegin("GetOperationStatus", msg_type, seqid)
  1134. result.write(oprot)
  1135. oprot.writeMessageEnd()
  1136. oprot.trans.flush()
  1137. def process_CancelOperation(self, seqid, iprot, oprot):
  1138. args = CancelOperation_args()
  1139. args.read(iprot)
  1140. iprot.readMessageEnd()
  1141. result = CancelOperation_result()
  1142. try:
  1143. result.success = self._handler.CancelOperation(args.req)
  1144. msg_type = TMessageType.REPLY
  1145. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1146. raise
  1147. except Exception as ex:
  1148. msg_type = TMessageType.EXCEPTION
  1149. logging.exception(ex)
  1150. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1151. oprot.writeMessageBegin("CancelOperation", msg_type, seqid)
  1152. result.write(oprot)
  1153. oprot.writeMessageEnd()
  1154. oprot.trans.flush()
  1155. def process_CloseOperation(self, seqid, iprot, oprot):
  1156. args = CloseOperation_args()
  1157. args.read(iprot)
  1158. iprot.readMessageEnd()
  1159. result = CloseOperation_result()
  1160. try:
  1161. result.success = self._handler.CloseOperation(args.req)
  1162. msg_type = TMessageType.REPLY
  1163. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1164. raise
  1165. except Exception as ex:
  1166. msg_type = TMessageType.EXCEPTION
  1167. logging.exception(ex)
  1168. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1169. oprot.writeMessageBegin("CloseOperation", msg_type, seqid)
  1170. result.write(oprot)
  1171. oprot.writeMessageEnd()
  1172. oprot.trans.flush()
  1173. def process_GetResultSetMetadata(self, seqid, iprot, oprot):
  1174. args = GetResultSetMetadata_args()
  1175. args.read(iprot)
  1176. iprot.readMessageEnd()
  1177. result = GetResultSetMetadata_result()
  1178. try:
  1179. result.success = self._handler.GetResultSetMetadata(args.req)
  1180. msg_type = TMessageType.REPLY
  1181. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1182. raise
  1183. except Exception as ex:
  1184. msg_type = TMessageType.EXCEPTION
  1185. logging.exception(ex)
  1186. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1187. oprot.writeMessageBegin("GetResultSetMetadata", msg_type, seqid)
  1188. result.write(oprot)
  1189. oprot.writeMessageEnd()
  1190. oprot.trans.flush()
  1191. def process_FetchResults(self, seqid, iprot, oprot):
  1192. args = FetchResults_args()
  1193. args.read(iprot)
  1194. iprot.readMessageEnd()
  1195. result = FetchResults_result()
  1196. try:
  1197. result.success = self._handler.FetchResults(args.req)
  1198. msg_type = TMessageType.REPLY
  1199. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1200. raise
  1201. except Exception as ex:
  1202. msg_type = TMessageType.EXCEPTION
  1203. logging.exception(ex)
  1204. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1205. oprot.writeMessageBegin("FetchResults", msg_type, seqid)
  1206. result.write(oprot)
  1207. oprot.writeMessageEnd()
  1208. oprot.trans.flush()
  1209. def process_GetDelegationToken(self, seqid, iprot, oprot):
  1210. args = GetDelegationToken_args()
  1211. args.read(iprot)
  1212. iprot.readMessageEnd()
  1213. result = GetDelegationToken_result()
  1214. try:
  1215. result.success = self._handler.GetDelegationToken(args.req)
  1216. msg_type = TMessageType.REPLY
  1217. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1218. raise
  1219. except Exception as ex:
  1220. msg_type = TMessageType.EXCEPTION
  1221. logging.exception(ex)
  1222. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1223. oprot.writeMessageBegin("GetDelegationToken", msg_type, seqid)
  1224. result.write(oprot)
  1225. oprot.writeMessageEnd()
  1226. oprot.trans.flush()
  1227. def process_CancelDelegationToken(self, seqid, iprot, oprot):
  1228. args = CancelDelegationToken_args()
  1229. args.read(iprot)
  1230. iprot.readMessageEnd()
  1231. result = CancelDelegationToken_result()
  1232. try:
  1233. result.success = self._handler.CancelDelegationToken(args.req)
  1234. msg_type = TMessageType.REPLY
  1235. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1236. raise
  1237. except Exception as ex:
  1238. msg_type = TMessageType.EXCEPTION
  1239. logging.exception(ex)
  1240. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1241. oprot.writeMessageBegin("CancelDelegationToken", msg_type, seqid)
  1242. result.write(oprot)
  1243. oprot.writeMessageEnd()
  1244. oprot.trans.flush()
  1245. def process_RenewDelegationToken(self, seqid, iprot, oprot):
  1246. args = RenewDelegationToken_args()
  1247. args.read(iprot)
  1248. iprot.readMessageEnd()
  1249. result = RenewDelegationToken_result()
  1250. try:
  1251. result.success = self._handler.RenewDelegationToken(args.req)
  1252. msg_type = TMessageType.REPLY
  1253. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1254. raise
  1255. except Exception as ex:
  1256. msg_type = TMessageType.EXCEPTION
  1257. logging.exception(ex)
  1258. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1259. oprot.writeMessageBegin("RenewDelegationToken", msg_type, seqid)
  1260. result.write(oprot)
  1261. oprot.writeMessageEnd()
  1262. oprot.trans.flush()
  1263. def process_GetQueryId(self, seqid, iprot, oprot):
  1264. args = GetQueryId_args()
  1265. args.read(iprot)
  1266. iprot.readMessageEnd()
  1267. result = GetQueryId_result()
  1268. try:
  1269. result.success = self._handler.GetQueryId(args.req)
  1270. msg_type = TMessageType.REPLY
  1271. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1272. raise
  1273. except Exception as ex:
  1274. msg_type = TMessageType.EXCEPTION
  1275. logging.exception(ex)
  1276. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1277. oprot.writeMessageBegin("GetQueryId", msg_type, seqid)
  1278. result.write(oprot)
  1279. oprot.writeMessageEnd()
  1280. oprot.trans.flush()
  1281. def process_SetClientInfo(self, seqid, iprot, oprot):
  1282. args = SetClientInfo_args()
  1283. args.read(iprot)
  1284. iprot.readMessageEnd()
  1285. result = SetClientInfo_result()
  1286. try:
  1287. result.success = self._handler.SetClientInfo(args.req)
  1288. msg_type = TMessageType.REPLY
  1289. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1290. raise
  1291. except Exception as ex:
  1292. msg_type = TMessageType.EXCEPTION
  1293. logging.exception(ex)
  1294. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1295. oprot.writeMessageBegin("SetClientInfo", msg_type, seqid)
  1296. result.write(oprot)
  1297. oprot.writeMessageEnd()
  1298. oprot.trans.flush()
  1299. def process_GetLog(self, seqid, iprot, oprot):
  1300. args = GetLog_args()
  1301. args.read(iprot)
  1302. iprot.readMessageEnd()
  1303. result = GetLog_result()
  1304. try:
  1305. result.success = self._handler.GetLog(args.req)
  1306. msg_type = TMessageType.REPLY
  1307. except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
  1308. raise
  1309. except Exception as ex:
  1310. msg_type = TMessageType.EXCEPTION
  1311. logging.exception(ex)
  1312. result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
  1313. oprot.writeMessageBegin("GetLog", msg_type, seqid)
  1314. result.write(oprot)
  1315. oprot.writeMessageEnd()
  1316. oprot.trans.flush()
  1317. # HELPER FUNCTIONS AND STRUCTURES
  1318. class OpenSession_args(object):
  1319. """
  1320. Attributes:
  1321. - req
  1322. """
  1323. thrift_spec = (
  1324. None, # 0
  1325. (1, TType.STRUCT, 'req', (TOpenSessionReq, TOpenSessionReq.thrift_spec), None, ), # 1
  1326. )
  1327. def __init__(self, req=None,):
  1328. self.req = req
  1329. def read(self, iprot):
  1330. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1331. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1332. return
  1333. iprot.readStructBegin()
  1334. while True:
  1335. (fname, ftype, fid) = iprot.readFieldBegin()
  1336. if ftype == TType.STOP:
  1337. break
  1338. if fid == 1:
  1339. if ftype == TType.STRUCT:
  1340. self.req = TOpenSessionReq()
  1341. self.req.read(iprot)
  1342. else:
  1343. iprot.skip(ftype)
  1344. else:
  1345. iprot.skip(ftype)
  1346. iprot.readFieldEnd()
  1347. iprot.readStructEnd()
  1348. def write(self, oprot):
  1349. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  1350. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  1351. return
  1352. oprot.writeStructBegin('OpenSession_args')
  1353. if self.req is not None:
  1354. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  1355. self.req.write(oprot)
  1356. oprot.writeFieldEnd()
  1357. oprot.writeFieldStop()
  1358. oprot.writeStructEnd()
  1359. def validate(self):
  1360. return
  1361. def __hash__(self):
  1362. value = 17
  1363. value = (value * 31) ^ hash(self.req)
  1364. return value
  1365. def __repr__(self):
  1366. L = ['%s=%r' % (key, value)
  1367. for key, value in self.__dict__.items()]
  1368. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  1369. def __eq__(self, other):
  1370. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  1371. def __ne__(self, other):
  1372. return not (self == other)
  1373. class OpenSession_result(object):
  1374. """
  1375. Attributes:
  1376. - success
  1377. """
  1378. thrift_spec = (
  1379. (0, TType.STRUCT, 'success', (TOpenSessionResp, TOpenSessionResp.thrift_spec), None, ), # 0
  1380. )
  1381. def __init__(self, success=None,):
  1382. self.success = success
  1383. def read(self, iprot):
  1384. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1385. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1386. return
  1387. iprot.readStructBegin()
  1388. while True:
  1389. (fname, ftype, fid) = iprot.readFieldBegin()
  1390. if ftype == TType.STOP:
  1391. break
  1392. if fid == 0:
  1393. if ftype == TType.STRUCT:
  1394. self.success = TOpenSessionResp()
  1395. self.success.read(iprot)
  1396. else:
  1397. iprot.skip(ftype)
  1398. else:
  1399. iprot.skip(ftype)
  1400. iprot.readFieldEnd()
  1401. iprot.readStructEnd()
  1402. def write(self, oprot):
  1403. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  1404. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  1405. return
  1406. oprot.writeStructBegin('OpenSession_result')
  1407. if self.success is not None:
  1408. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  1409. self.success.write(oprot)
  1410. oprot.writeFieldEnd()
  1411. oprot.writeFieldStop()
  1412. oprot.writeStructEnd()
  1413. def validate(self):
  1414. return
  1415. def __hash__(self):
  1416. value = 17
  1417. value = (value * 31) ^ hash(self.success)
  1418. return value
  1419. def __repr__(self):
  1420. L = ['%s=%r' % (key, value)
  1421. for key, value in self.__dict__.items()]
  1422. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  1423. def __eq__(self, other):
  1424. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  1425. def __ne__(self, other):
  1426. return not (self == other)
  1427. class CloseSession_args(object):
  1428. """
  1429. Attributes:
  1430. - req
  1431. """
  1432. thrift_spec = (
  1433. None, # 0
  1434. (1, TType.STRUCT, 'req', (TCloseSessionReq, TCloseSessionReq.thrift_spec), None, ), # 1
  1435. )
  1436. def __init__(self, req=None,):
  1437. self.req = req
  1438. def read(self, iprot):
  1439. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1440. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1441. return
  1442. iprot.readStructBegin()
  1443. while True:
  1444. (fname, ftype, fid) = iprot.readFieldBegin()
  1445. if ftype == TType.STOP:
  1446. break
  1447. if fid == 1:
  1448. if ftype == TType.STRUCT:
  1449. self.req = TCloseSessionReq()
  1450. self.req.read(iprot)
  1451. else:
  1452. iprot.skip(ftype)
  1453. else:
  1454. iprot.skip(ftype)
  1455. iprot.readFieldEnd()
  1456. iprot.readStructEnd()
  1457. def write(self, oprot):
  1458. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  1459. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  1460. return
  1461. oprot.writeStructBegin('CloseSession_args')
  1462. if self.req is not None:
  1463. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  1464. self.req.write(oprot)
  1465. oprot.writeFieldEnd()
  1466. oprot.writeFieldStop()
  1467. oprot.writeStructEnd()
  1468. def validate(self):
  1469. return
  1470. def __hash__(self):
  1471. value = 17
  1472. value = (value * 31) ^ hash(self.req)
  1473. return value
  1474. def __repr__(self):
  1475. L = ['%s=%r' % (key, value)
  1476. for key, value in self.__dict__.items()]
  1477. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  1478. def __eq__(self, other):
  1479. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  1480. def __ne__(self, other):
  1481. return not (self == other)
  1482. class CloseSession_result(object):
  1483. """
  1484. Attributes:
  1485. - success
  1486. """
  1487. thrift_spec = (
  1488. (0, TType.STRUCT, 'success', (TCloseSessionResp, TCloseSessionResp.thrift_spec), None, ), # 0
  1489. )
  1490. def __init__(self, success=None,):
  1491. self.success = success
  1492. def read(self, iprot):
  1493. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1494. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1495. return
  1496. iprot.readStructBegin()
  1497. while True:
  1498. (fname, ftype, fid) = iprot.readFieldBegin()
  1499. if ftype == TType.STOP:
  1500. break
  1501. if fid == 0:
  1502. if ftype == TType.STRUCT:
  1503. self.success = TCloseSessionResp()
  1504. self.success.read(iprot)
  1505. else:
  1506. iprot.skip(ftype)
  1507. else:
  1508. iprot.skip(ftype)
  1509. iprot.readFieldEnd()
  1510. iprot.readStructEnd()
  1511. def write(self, oprot):
  1512. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  1513. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  1514. return
  1515. oprot.writeStructBegin('CloseSession_result')
  1516. if self.success is not None:
  1517. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  1518. self.success.write(oprot)
  1519. oprot.writeFieldEnd()
  1520. oprot.writeFieldStop()
  1521. oprot.writeStructEnd()
  1522. def validate(self):
  1523. return
  1524. def __hash__(self):
  1525. value = 17
  1526. value = (value * 31) ^ hash(self.success)
  1527. return value
  1528. def __repr__(self):
  1529. L = ['%s=%r' % (key, value)
  1530. for key, value in self.__dict__.items()]
  1531. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  1532. def __eq__(self, other):
  1533. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  1534. def __ne__(self, other):
  1535. return not (self == other)
  1536. class GetInfo_args(object):
  1537. """
  1538. Attributes:
  1539. - req
  1540. """
  1541. thrift_spec = (
  1542. None, # 0
  1543. (1, TType.STRUCT, 'req', (TGetInfoReq, TGetInfoReq.thrift_spec), None, ), # 1
  1544. )
  1545. def __init__(self, req=None,):
  1546. self.req = req
  1547. def read(self, iprot):
  1548. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1549. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1550. return
  1551. iprot.readStructBegin()
  1552. while True:
  1553. (fname, ftype, fid) = iprot.readFieldBegin()
  1554. if ftype == TType.STOP:
  1555. break
  1556. if fid == 1:
  1557. if ftype == TType.STRUCT:
  1558. self.req = TGetInfoReq()
  1559. self.req.read(iprot)
  1560. else:
  1561. iprot.skip(ftype)
  1562. else:
  1563. iprot.skip(ftype)
  1564. iprot.readFieldEnd()
  1565. iprot.readStructEnd()
  1566. def write(self, oprot):
  1567. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  1568. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  1569. return
  1570. oprot.writeStructBegin('GetInfo_args')
  1571. if self.req is not None:
  1572. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  1573. self.req.write(oprot)
  1574. oprot.writeFieldEnd()
  1575. oprot.writeFieldStop()
  1576. oprot.writeStructEnd()
  1577. def validate(self):
  1578. return
  1579. def __hash__(self):
  1580. value = 17
  1581. value = (value * 31) ^ hash(self.req)
  1582. return value
  1583. def __repr__(self):
  1584. L = ['%s=%r' % (key, value)
  1585. for key, value in self.__dict__.items()]
  1586. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  1587. def __eq__(self, other):
  1588. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  1589. def __ne__(self, other):
  1590. return not (self == other)
  1591. class GetInfo_result(object):
  1592. """
  1593. Attributes:
  1594. - success
  1595. """
  1596. thrift_spec = (
  1597. (0, TType.STRUCT, 'success', (TGetInfoResp, TGetInfoResp.thrift_spec), None, ), # 0
  1598. )
  1599. def __init__(self, success=None,):
  1600. self.success = success
  1601. def read(self, iprot):
  1602. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1603. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1604. return
  1605. iprot.readStructBegin()
  1606. while True:
  1607. (fname, ftype, fid) = iprot.readFieldBegin()
  1608. if ftype == TType.STOP:
  1609. break
  1610. if fid == 0:
  1611. if ftype == TType.STRUCT:
  1612. self.success = TGetInfoResp()
  1613. self.success.read(iprot)
  1614. else:
  1615. iprot.skip(ftype)
  1616. else:
  1617. iprot.skip(ftype)
  1618. iprot.readFieldEnd()
  1619. iprot.readStructEnd()
  1620. def write(self, oprot):
  1621. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  1622. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  1623. return
  1624. oprot.writeStructBegin('GetInfo_result')
  1625. if self.success is not None:
  1626. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  1627. self.success.write(oprot)
  1628. oprot.writeFieldEnd()
  1629. oprot.writeFieldStop()
  1630. oprot.writeStructEnd()
  1631. def validate(self):
  1632. return
  1633. def __hash__(self):
  1634. value = 17
  1635. value = (value * 31) ^ hash(self.success)
  1636. return value
  1637. def __repr__(self):
  1638. L = ['%s=%r' % (key, value)
  1639. for key, value in self.__dict__.items()]
  1640. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  1641. def __eq__(self, other):
  1642. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  1643. def __ne__(self, other):
  1644. return not (self == other)
  1645. class ExecuteStatement_args(object):
  1646. """
  1647. Attributes:
  1648. - req
  1649. """
  1650. thrift_spec = (
  1651. None, # 0
  1652. (1, TType.STRUCT, 'req', (TExecuteStatementReq, TExecuteStatementReq.thrift_spec), None, ), # 1
  1653. )
  1654. def __init__(self, req=None,):
  1655. self.req = req
  1656. def read(self, iprot):
  1657. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1658. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1659. return
  1660. iprot.readStructBegin()
  1661. while True:
  1662. (fname, ftype, fid) = iprot.readFieldBegin()
  1663. if ftype == TType.STOP:
  1664. break
  1665. if fid == 1:
  1666. if ftype == TType.STRUCT:
  1667. self.req = TExecuteStatementReq()
  1668. self.req.read(iprot)
  1669. else:
  1670. iprot.skip(ftype)
  1671. else:
  1672. iprot.skip(ftype)
  1673. iprot.readFieldEnd()
  1674. iprot.readStructEnd()
  1675. def write(self, oprot):
  1676. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  1677. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  1678. return
  1679. oprot.writeStructBegin('ExecuteStatement_args')
  1680. if self.req is not None:
  1681. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  1682. self.req.write(oprot)
  1683. oprot.writeFieldEnd()
  1684. oprot.writeFieldStop()
  1685. oprot.writeStructEnd()
  1686. def validate(self):
  1687. return
  1688. def __hash__(self):
  1689. value = 17
  1690. value = (value * 31) ^ hash(self.req)
  1691. return value
  1692. def __repr__(self):
  1693. L = ['%s=%r' % (key, value)
  1694. for key, value in self.__dict__.items()]
  1695. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  1696. def __eq__(self, other):
  1697. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  1698. def __ne__(self, other):
  1699. return not (self == other)
  1700. class ExecuteStatement_result(object):
  1701. """
  1702. Attributes:
  1703. - success
  1704. """
  1705. thrift_spec = (
  1706. (0, TType.STRUCT, 'success', (TExecuteStatementResp, TExecuteStatementResp.thrift_spec), None, ), # 0
  1707. )
  1708. def __init__(self, success=None,):
  1709. self.success = success
  1710. def read(self, iprot):
  1711. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1712. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1713. return
  1714. iprot.readStructBegin()
  1715. while True:
  1716. (fname, ftype, fid) = iprot.readFieldBegin()
  1717. if ftype == TType.STOP:
  1718. break
  1719. if fid == 0:
  1720. if ftype == TType.STRUCT:
  1721. self.success = TExecuteStatementResp()
  1722. self.success.read(iprot)
  1723. else:
  1724. iprot.skip(ftype)
  1725. else:
  1726. iprot.skip(ftype)
  1727. iprot.readFieldEnd()
  1728. iprot.readStructEnd()
  1729. def write(self, oprot):
  1730. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  1731. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  1732. return
  1733. oprot.writeStructBegin('ExecuteStatement_result')
  1734. if self.success is not None:
  1735. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  1736. self.success.write(oprot)
  1737. oprot.writeFieldEnd()
  1738. oprot.writeFieldStop()
  1739. oprot.writeStructEnd()
  1740. def validate(self):
  1741. return
  1742. def __hash__(self):
  1743. value = 17
  1744. value = (value * 31) ^ hash(self.success)
  1745. return value
  1746. def __repr__(self):
  1747. L = ['%s=%r' % (key, value)
  1748. for key, value in self.__dict__.items()]
  1749. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  1750. def __eq__(self, other):
  1751. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  1752. def __ne__(self, other):
  1753. return not (self == other)
  1754. class GetTypeInfo_args(object):
  1755. """
  1756. Attributes:
  1757. - req
  1758. """
  1759. thrift_spec = (
  1760. None, # 0
  1761. (1, TType.STRUCT, 'req', (TGetTypeInfoReq, TGetTypeInfoReq.thrift_spec), None, ), # 1
  1762. )
  1763. def __init__(self, req=None,):
  1764. self.req = req
  1765. def read(self, iprot):
  1766. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1767. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1768. return
  1769. iprot.readStructBegin()
  1770. while True:
  1771. (fname, ftype, fid) = iprot.readFieldBegin()
  1772. if ftype == TType.STOP:
  1773. break
  1774. if fid == 1:
  1775. if ftype == TType.STRUCT:
  1776. self.req = TGetTypeInfoReq()
  1777. self.req.read(iprot)
  1778. else:
  1779. iprot.skip(ftype)
  1780. else:
  1781. iprot.skip(ftype)
  1782. iprot.readFieldEnd()
  1783. iprot.readStructEnd()
  1784. def write(self, oprot):
  1785. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  1786. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  1787. return
  1788. oprot.writeStructBegin('GetTypeInfo_args')
  1789. if self.req is not None:
  1790. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  1791. self.req.write(oprot)
  1792. oprot.writeFieldEnd()
  1793. oprot.writeFieldStop()
  1794. oprot.writeStructEnd()
  1795. def validate(self):
  1796. return
  1797. def __hash__(self):
  1798. value = 17
  1799. value = (value * 31) ^ hash(self.req)
  1800. return value
  1801. def __repr__(self):
  1802. L = ['%s=%r' % (key, value)
  1803. for key, value in self.__dict__.items()]
  1804. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  1805. def __eq__(self, other):
  1806. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  1807. def __ne__(self, other):
  1808. return not (self == other)
  1809. class GetTypeInfo_result(object):
  1810. """
  1811. Attributes:
  1812. - success
  1813. """
  1814. thrift_spec = (
  1815. (0, TType.STRUCT, 'success', (TGetTypeInfoResp, TGetTypeInfoResp.thrift_spec), None, ), # 0
  1816. )
  1817. def __init__(self, success=None,):
  1818. self.success = success
  1819. def read(self, iprot):
  1820. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1821. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1822. return
  1823. iprot.readStructBegin()
  1824. while True:
  1825. (fname, ftype, fid) = iprot.readFieldBegin()
  1826. if ftype == TType.STOP:
  1827. break
  1828. if fid == 0:
  1829. if ftype == TType.STRUCT:
  1830. self.success = TGetTypeInfoResp()
  1831. self.success.read(iprot)
  1832. else:
  1833. iprot.skip(ftype)
  1834. else:
  1835. iprot.skip(ftype)
  1836. iprot.readFieldEnd()
  1837. iprot.readStructEnd()
  1838. def write(self, oprot):
  1839. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  1840. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  1841. return
  1842. oprot.writeStructBegin('GetTypeInfo_result')
  1843. if self.success is not None:
  1844. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  1845. self.success.write(oprot)
  1846. oprot.writeFieldEnd()
  1847. oprot.writeFieldStop()
  1848. oprot.writeStructEnd()
  1849. def validate(self):
  1850. return
  1851. def __hash__(self):
  1852. value = 17
  1853. value = (value * 31) ^ hash(self.success)
  1854. return value
  1855. def __repr__(self):
  1856. L = ['%s=%r' % (key, value)
  1857. for key, value in self.__dict__.items()]
  1858. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  1859. def __eq__(self, other):
  1860. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  1861. def __ne__(self, other):
  1862. return not (self == other)
  1863. class GetCatalogs_args(object):
  1864. """
  1865. Attributes:
  1866. - req
  1867. """
  1868. thrift_spec = (
  1869. None, # 0
  1870. (1, TType.STRUCT, 'req', (TGetCatalogsReq, TGetCatalogsReq.thrift_spec), None, ), # 1
  1871. )
  1872. def __init__(self, req=None,):
  1873. self.req = req
  1874. def read(self, iprot):
  1875. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1876. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1877. return
  1878. iprot.readStructBegin()
  1879. while True:
  1880. (fname, ftype, fid) = iprot.readFieldBegin()
  1881. if ftype == TType.STOP:
  1882. break
  1883. if fid == 1:
  1884. if ftype == TType.STRUCT:
  1885. self.req = TGetCatalogsReq()
  1886. self.req.read(iprot)
  1887. else:
  1888. iprot.skip(ftype)
  1889. else:
  1890. iprot.skip(ftype)
  1891. iprot.readFieldEnd()
  1892. iprot.readStructEnd()
  1893. def write(self, oprot):
  1894. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  1895. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  1896. return
  1897. oprot.writeStructBegin('GetCatalogs_args')
  1898. if self.req is not None:
  1899. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  1900. self.req.write(oprot)
  1901. oprot.writeFieldEnd()
  1902. oprot.writeFieldStop()
  1903. oprot.writeStructEnd()
  1904. def validate(self):
  1905. return
  1906. def __hash__(self):
  1907. value = 17
  1908. value = (value * 31) ^ hash(self.req)
  1909. return value
  1910. def __repr__(self):
  1911. L = ['%s=%r' % (key, value)
  1912. for key, value in self.__dict__.items()]
  1913. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  1914. def __eq__(self, other):
  1915. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  1916. def __ne__(self, other):
  1917. return not (self == other)
  1918. class GetCatalogs_result(object):
  1919. """
  1920. Attributes:
  1921. - success
  1922. """
  1923. thrift_spec = (
  1924. (0, TType.STRUCT, 'success', (TGetCatalogsResp, TGetCatalogsResp.thrift_spec), None, ), # 0
  1925. )
  1926. def __init__(self, success=None,):
  1927. self.success = success
  1928. def read(self, iprot):
  1929. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1930. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1931. return
  1932. iprot.readStructBegin()
  1933. while True:
  1934. (fname, ftype, fid) = iprot.readFieldBegin()
  1935. if ftype == TType.STOP:
  1936. break
  1937. if fid == 0:
  1938. if ftype == TType.STRUCT:
  1939. self.success = TGetCatalogsResp()
  1940. self.success.read(iprot)
  1941. else:
  1942. iprot.skip(ftype)
  1943. else:
  1944. iprot.skip(ftype)
  1945. iprot.readFieldEnd()
  1946. iprot.readStructEnd()
  1947. def write(self, oprot):
  1948. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  1949. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  1950. return
  1951. oprot.writeStructBegin('GetCatalogs_result')
  1952. if self.success is not None:
  1953. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  1954. self.success.write(oprot)
  1955. oprot.writeFieldEnd()
  1956. oprot.writeFieldStop()
  1957. oprot.writeStructEnd()
  1958. def validate(self):
  1959. return
  1960. def __hash__(self):
  1961. value = 17
  1962. value = (value * 31) ^ hash(self.success)
  1963. return value
  1964. def __repr__(self):
  1965. L = ['%s=%r' % (key, value)
  1966. for key, value in self.__dict__.items()]
  1967. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  1968. def __eq__(self, other):
  1969. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  1970. def __ne__(self, other):
  1971. return not (self == other)
  1972. class GetSchemas_args(object):
  1973. """
  1974. Attributes:
  1975. - req
  1976. """
  1977. thrift_spec = (
  1978. None, # 0
  1979. (1, TType.STRUCT, 'req', (TGetSchemasReq, TGetSchemasReq.thrift_spec), None, ), # 1
  1980. )
  1981. def __init__(self, req=None,):
  1982. self.req = req
  1983. def read(self, iprot):
  1984. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  1985. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  1986. return
  1987. iprot.readStructBegin()
  1988. while True:
  1989. (fname, ftype, fid) = iprot.readFieldBegin()
  1990. if ftype == TType.STOP:
  1991. break
  1992. if fid == 1:
  1993. if ftype == TType.STRUCT:
  1994. self.req = TGetSchemasReq()
  1995. self.req.read(iprot)
  1996. else:
  1997. iprot.skip(ftype)
  1998. else:
  1999. iprot.skip(ftype)
  2000. iprot.readFieldEnd()
  2001. iprot.readStructEnd()
  2002. def write(self, oprot):
  2003. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2004. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2005. return
  2006. oprot.writeStructBegin('GetSchemas_args')
  2007. if self.req is not None:
  2008. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  2009. self.req.write(oprot)
  2010. oprot.writeFieldEnd()
  2011. oprot.writeFieldStop()
  2012. oprot.writeStructEnd()
  2013. def validate(self):
  2014. return
  2015. def __hash__(self):
  2016. value = 17
  2017. value = (value * 31) ^ hash(self.req)
  2018. return value
  2019. def __repr__(self):
  2020. L = ['%s=%r' % (key, value)
  2021. for key, value in self.__dict__.items()]
  2022. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2023. def __eq__(self, other):
  2024. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2025. def __ne__(self, other):
  2026. return not (self == other)
  2027. class GetSchemas_result(object):
  2028. """
  2029. Attributes:
  2030. - success
  2031. """
  2032. thrift_spec = (
  2033. (0, TType.STRUCT, 'success', (TGetSchemasResp, TGetSchemasResp.thrift_spec), None, ), # 0
  2034. )
  2035. def __init__(self, success=None,):
  2036. self.success = success
  2037. def read(self, iprot):
  2038. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2039. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2040. return
  2041. iprot.readStructBegin()
  2042. while True:
  2043. (fname, ftype, fid) = iprot.readFieldBegin()
  2044. if ftype == TType.STOP:
  2045. break
  2046. if fid == 0:
  2047. if ftype == TType.STRUCT:
  2048. self.success = TGetSchemasResp()
  2049. self.success.read(iprot)
  2050. else:
  2051. iprot.skip(ftype)
  2052. else:
  2053. iprot.skip(ftype)
  2054. iprot.readFieldEnd()
  2055. iprot.readStructEnd()
  2056. def write(self, oprot):
  2057. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2058. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2059. return
  2060. oprot.writeStructBegin('GetSchemas_result')
  2061. if self.success is not None:
  2062. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  2063. self.success.write(oprot)
  2064. oprot.writeFieldEnd()
  2065. oprot.writeFieldStop()
  2066. oprot.writeStructEnd()
  2067. def validate(self):
  2068. return
  2069. def __hash__(self):
  2070. value = 17
  2071. value = (value * 31) ^ hash(self.success)
  2072. return value
  2073. def __repr__(self):
  2074. L = ['%s=%r' % (key, value)
  2075. for key, value in self.__dict__.items()]
  2076. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2077. def __eq__(self, other):
  2078. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2079. def __ne__(self, other):
  2080. return not (self == other)
  2081. class GetTables_args(object):
  2082. """
  2083. Attributes:
  2084. - req
  2085. """
  2086. thrift_spec = (
  2087. None, # 0
  2088. (1, TType.STRUCT, 'req', (TGetTablesReq, TGetTablesReq.thrift_spec), None, ), # 1
  2089. )
  2090. def __init__(self, req=None,):
  2091. self.req = req
  2092. def read(self, iprot):
  2093. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2094. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2095. return
  2096. iprot.readStructBegin()
  2097. while True:
  2098. (fname, ftype, fid) = iprot.readFieldBegin()
  2099. if ftype == TType.STOP:
  2100. break
  2101. if fid == 1:
  2102. if ftype == TType.STRUCT:
  2103. self.req = TGetTablesReq()
  2104. self.req.read(iprot)
  2105. else:
  2106. iprot.skip(ftype)
  2107. else:
  2108. iprot.skip(ftype)
  2109. iprot.readFieldEnd()
  2110. iprot.readStructEnd()
  2111. def write(self, oprot):
  2112. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2113. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2114. return
  2115. oprot.writeStructBegin('GetTables_args')
  2116. if self.req is not None:
  2117. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  2118. self.req.write(oprot)
  2119. oprot.writeFieldEnd()
  2120. oprot.writeFieldStop()
  2121. oprot.writeStructEnd()
  2122. def validate(self):
  2123. return
  2124. def __hash__(self):
  2125. value = 17
  2126. value = (value * 31) ^ hash(self.req)
  2127. return value
  2128. def __repr__(self):
  2129. L = ['%s=%r' % (key, value)
  2130. for key, value in self.__dict__.items()]
  2131. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2132. def __eq__(self, other):
  2133. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2134. def __ne__(self, other):
  2135. return not (self == other)
  2136. class GetTables_result(object):
  2137. """
  2138. Attributes:
  2139. - success
  2140. """
  2141. thrift_spec = (
  2142. (0, TType.STRUCT, 'success', (TGetTablesResp, TGetTablesResp.thrift_spec), None, ), # 0
  2143. )
  2144. def __init__(self, success=None,):
  2145. self.success = success
  2146. def read(self, iprot):
  2147. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2148. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2149. return
  2150. iprot.readStructBegin()
  2151. while True:
  2152. (fname, ftype, fid) = iprot.readFieldBegin()
  2153. if ftype == TType.STOP:
  2154. break
  2155. if fid == 0:
  2156. if ftype == TType.STRUCT:
  2157. self.success = TGetTablesResp()
  2158. self.success.read(iprot)
  2159. else:
  2160. iprot.skip(ftype)
  2161. else:
  2162. iprot.skip(ftype)
  2163. iprot.readFieldEnd()
  2164. iprot.readStructEnd()
  2165. def write(self, oprot):
  2166. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2167. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2168. return
  2169. oprot.writeStructBegin('GetTables_result')
  2170. if self.success is not None:
  2171. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  2172. self.success.write(oprot)
  2173. oprot.writeFieldEnd()
  2174. oprot.writeFieldStop()
  2175. oprot.writeStructEnd()
  2176. def validate(self):
  2177. return
  2178. def __hash__(self):
  2179. value = 17
  2180. value = (value * 31) ^ hash(self.success)
  2181. return value
  2182. def __repr__(self):
  2183. L = ['%s=%r' % (key, value)
  2184. for key, value in self.__dict__.items()]
  2185. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2186. def __eq__(self, other):
  2187. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2188. def __ne__(self, other):
  2189. return not (self == other)
  2190. class GetTableTypes_args(object):
  2191. """
  2192. Attributes:
  2193. - req
  2194. """
  2195. thrift_spec = (
  2196. None, # 0
  2197. (1, TType.STRUCT, 'req', (TGetTableTypesReq, TGetTableTypesReq.thrift_spec), None, ), # 1
  2198. )
  2199. def __init__(self, req=None,):
  2200. self.req = req
  2201. def read(self, iprot):
  2202. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2203. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2204. return
  2205. iprot.readStructBegin()
  2206. while True:
  2207. (fname, ftype, fid) = iprot.readFieldBegin()
  2208. if ftype == TType.STOP:
  2209. break
  2210. if fid == 1:
  2211. if ftype == TType.STRUCT:
  2212. self.req = TGetTableTypesReq()
  2213. self.req.read(iprot)
  2214. else:
  2215. iprot.skip(ftype)
  2216. else:
  2217. iprot.skip(ftype)
  2218. iprot.readFieldEnd()
  2219. iprot.readStructEnd()
  2220. def write(self, oprot):
  2221. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2222. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2223. return
  2224. oprot.writeStructBegin('GetTableTypes_args')
  2225. if self.req is not None:
  2226. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  2227. self.req.write(oprot)
  2228. oprot.writeFieldEnd()
  2229. oprot.writeFieldStop()
  2230. oprot.writeStructEnd()
  2231. def validate(self):
  2232. return
  2233. def __hash__(self):
  2234. value = 17
  2235. value = (value * 31) ^ hash(self.req)
  2236. return value
  2237. def __repr__(self):
  2238. L = ['%s=%r' % (key, value)
  2239. for key, value in self.__dict__.items()]
  2240. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2241. def __eq__(self, other):
  2242. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2243. def __ne__(self, other):
  2244. return not (self == other)
  2245. class GetTableTypes_result(object):
  2246. """
  2247. Attributes:
  2248. - success
  2249. """
  2250. thrift_spec = (
  2251. (0, TType.STRUCT, 'success', (TGetTableTypesResp, TGetTableTypesResp.thrift_spec), None, ), # 0
  2252. )
  2253. def __init__(self, success=None,):
  2254. self.success = success
  2255. def read(self, iprot):
  2256. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2257. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2258. return
  2259. iprot.readStructBegin()
  2260. while True:
  2261. (fname, ftype, fid) = iprot.readFieldBegin()
  2262. if ftype == TType.STOP:
  2263. break
  2264. if fid == 0:
  2265. if ftype == TType.STRUCT:
  2266. self.success = TGetTableTypesResp()
  2267. self.success.read(iprot)
  2268. else:
  2269. iprot.skip(ftype)
  2270. else:
  2271. iprot.skip(ftype)
  2272. iprot.readFieldEnd()
  2273. iprot.readStructEnd()
  2274. def write(self, oprot):
  2275. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2276. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2277. return
  2278. oprot.writeStructBegin('GetTableTypes_result')
  2279. if self.success is not None:
  2280. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  2281. self.success.write(oprot)
  2282. oprot.writeFieldEnd()
  2283. oprot.writeFieldStop()
  2284. oprot.writeStructEnd()
  2285. def validate(self):
  2286. return
  2287. def __hash__(self):
  2288. value = 17
  2289. value = (value * 31) ^ hash(self.success)
  2290. return value
  2291. def __repr__(self):
  2292. L = ['%s=%r' % (key, value)
  2293. for key, value in self.__dict__.items()]
  2294. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2295. def __eq__(self, other):
  2296. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2297. def __ne__(self, other):
  2298. return not (self == other)
  2299. class GetColumns_args(object):
  2300. """
  2301. Attributes:
  2302. - req
  2303. """
  2304. thrift_spec = (
  2305. None, # 0
  2306. (1, TType.STRUCT, 'req', (TGetColumnsReq, TGetColumnsReq.thrift_spec), None, ), # 1
  2307. )
  2308. def __init__(self, req=None,):
  2309. self.req = req
  2310. def read(self, iprot):
  2311. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2312. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2313. return
  2314. iprot.readStructBegin()
  2315. while True:
  2316. (fname, ftype, fid) = iprot.readFieldBegin()
  2317. if ftype == TType.STOP:
  2318. break
  2319. if fid == 1:
  2320. if ftype == TType.STRUCT:
  2321. self.req = TGetColumnsReq()
  2322. self.req.read(iprot)
  2323. else:
  2324. iprot.skip(ftype)
  2325. else:
  2326. iprot.skip(ftype)
  2327. iprot.readFieldEnd()
  2328. iprot.readStructEnd()
  2329. def write(self, oprot):
  2330. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2331. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2332. return
  2333. oprot.writeStructBegin('GetColumns_args')
  2334. if self.req is not None:
  2335. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  2336. self.req.write(oprot)
  2337. oprot.writeFieldEnd()
  2338. oprot.writeFieldStop()
  2339. oprot.writeStructEnd()
  2340. def validate(self):
  2341. return
  2342. def __hash__(self):
  2343. value = 17
  2344. value = (value * 31) ^ hash(self.req)
  2345. return value
  2346. def __repr__(self):
  2347. L = ['%s=%r' % (key, value)
  2348. for key, value in self.__dict__.items()]
  2349. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2350. def __eq__(self, other):
  2351. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2352. def __ne__(self, other):
  2353. return not (self == other)
  2354. class GetColumns_result(object):
  2355. """
  2356. Attributes:
  2357. - success
  2358. """
  2359. thrift_spec = (
  2360. (0, TType.STRUCT, 'success', (TGetColumnsResp, TGetColumnsResp.thrift_spec), None, ), # 0
  2361. )
  2362. def __init__(self, success=None,):
  2363. self.success = success
  2364. def read(self, iprot):
  2365. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2366. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2367. return
  2368. iprot.readStructBegin()
  2369. while True:
  2370. (fname, ftype, fid) = iprot.readFieldBegin()
  2371. if ftype == TType.STOP:
  2372. break
  2373. if fid == 0:
  2374. if ftype == TType.STRUCT:
  2375. self.success = TGetColumnsResp()
  2376. self.success.read(iprot)
  2377. else:
  2378. iprot.skip(ftype)
  2379. else:
  2380. iprot.skip(ftype)
  2381. iprot.readFieldEnd()
  2382. iprot.readStructEnd()
  2383. def write(self, oprot):
  2384. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2385. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2386. return
  2387. oprot.writeStructBegin('GetColumns_result')
  2388. if self.success is not None:
  2389. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  2390. self.success.write(oprot)
  2391. oprot.writeFieldEnd()
  2392. oprot.writeFieldStop()
  2393. oprot.writeStructEnd()
  2394. def validate(self):
  2395. return
  2396. def __hash__(self):
  2397. value = 17
  2398. value = (value * 31) ^ hash(self.success)
  2399. return value
  2400. def __repr__(self):
  2401. L = ['%s=%r' % (key, value)
  2402. for key, value in self.__dict__.items()]
  2403. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2404. def __eq__(self, other):
  2405. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2406. def __ne__(self, other):
  2407. return not (self == other)
  2408. class GetFunctions_args(object):
  2409. """
  2410. Attributes:
  2411. - req
  2412. """
  2413. thrift_spec = (
  2414. None, # 0
  2415. (1, TType.STRUCT, 'req', (TGetFunctionsReq, TGetFunctionsReq.thrift_spec), None, ), # 1
  2416. )
  2417. def __init__(self, req=None,):
  2418. self.req = req
  2419. def read(self, iprot):
  2420. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2421. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2422. return
  2423. iprot.readStructBegin()
  2424. while True:
  2425. (fname, ftype, fid) = iprot.readFieldBegin()
  2426. if ftype == TType.STOP:
  2427. break
  2428. if fid == 1:
  2429. if ftype == TType.STRUCT:
  2430. self.req = TGetFunctionsReq()
  2431. self.req.read(iprot)
  2432. else:
  2433. iprot.skip(ftype)
  2434. else:
  2435. iprot.skip(ftype)
  2436. iprot.readFieldEnd()
  2437. iprot.readStructEnd()
  2438. def write(self, oprot):
  2439. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2440. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2441. return
  2442. oprot.writeStructBegin('GetFunctions_args')
  2443. if self.req is not None:
  2444. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  2445. self.req.write(oprot)
  2446. oprot.writeFieldEnd()
  2447. oprot.writeFieldStop()
  2448. oprot.writeStructEnd()
  2449. def validate(self):
  2450. return
  2451. def __hash__(self):
  2452. value = 17
  2453. value = (value * 31) ^ hash(self.req)
  2454. return value
  2455. def __repr__(self):
  2456. L = ['%s=%r' % (key, value)
  2457. for key, value in self.__dict__.items()]
  2458. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2459. def __eq__(self, other):
  2460. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2461. def __ne__(self, other):
  2462. return not (self == other)
  2463. class GetFunctions_result(object):
  2464. """
  2465. Attributes:
  2466. - success
  2467. """
  2468. thrift_spec = (
  2469. (0, TType.STRUCT, 'success', (TGetFunctionsResp, TGetFunctionsResp.thrift_spec), None, ), # 0
  2470. )
  2471. def __init__(self, success=None,):
  2472. self.success = success
  2473. def read(self, iprot):
  2474. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2475. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2476. return
  2477. iprot.readStructBegin()
  2478. while True:
  2479. (fname, ftype, fid) = iprot.readFieldBegin()
  2480. if ftype == TType.STOP:
  2481. break
  2482. if fid == 0:
  2483. if ftype == TType.STRUCT:
  2484. self.success = TGetFunctionsResp()
  2485. self.success.read(iprot)
  2486. else:
  2487. iprot.skip(ftype)
  2488. else:
  2489. iprot.skip(ftype)
  2490. iprot.readFieldEnd()
  2491. iprot.readStructEnd()
  2492. def write(self, oprot):
  2493. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2494. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2495. return
  2496. oprot.writeStructBegin('GetFunctions_result')
  2497. if self.success is not None:
  2498. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  2499. self.success.write(oprot)
  2500. oprot.writeFieldEnd()
  2501. oprot.writeFieldStop()
  2502. oprot.writeStructEnd()
  2503. def validate(self):
  2504. return
  2505. def __hash__(self):
  2506. value = 17
  2507. value = (value * 31) ^ hash(self.success)
  2508. return value
  2509. def __repr__(self):
  2510. L = ['%s=%r' % (key, value)
  2511. for key, value in self.__dict__.items()]
  2512. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2513. def __eq__(self, other):
  2514. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2515. def __ne__(self, other):
  2516. return not (self == other)
  2517. class GetPrimaryKeys_args(object):
  2518. """
  2519. Attributes:
  2520. - req
  2521. """
  2522. thrift_spec = (
  2523. None, # 0
  2524. (1, TType.STRUCT, 'req', (TGetPrimaryKeysReq, TGetPrimaryKeysReq.thrift_spec), None, ), # 1
  2525. )
  2526. def __init__(self, req=None,):
  2527. self.req = req
  2528. def read(self, iprot):
  2529. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2530. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2531. return
  2532. iprot.readStructBegin()
  2533. while True:
  2534. (fname, ftype, fid) = iprot.readFieldBegin()
  2535. if ftype == TType.STOP:
  2536. break
  2537. if fid == 1:
  2538. if ftype == TType.STRUCT:
  2539. self.req = TGetPrimaryKeysReq()
  2540. self.req.read(iprot)
  2541. else:
  2542. iprot.skip(ftype)
  2543. else:
  2544. iprot.skip(ftype)
  2545. iprot.readFieldEnd()
  2546. iprot.readStructEnd()
  2547. def write(self, oprot):
  2548. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2549. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2550. return
  2551. oprot.writeStructBegin('GetPrimaryKeys_args')
  2552. if self.req is not None:
  2553. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  2554. self.req.write(oprot)
  2555. oprot.writeFieldEnd()
  2556. oprot.writeFieldStop()
  2557. oprot.writeStructEnd()
  2558. def validate(self):
  2559. return
  2560. def __hash__(self):
  2561. value = 17
  2562. value = (value * 31) ^ hash(self.req)
  2563. return value
  2564. def __repr__(self):
  2565. L = ['%s=%r' % (key, value)
  2566. for key, value in self.__dict__.items()]
  2567. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2568. def __eq__(self, other):
  2569. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2570. def __ne__(self, other):
  2571. return not (self == other)
  2572. class GetPrimaryKeys_result(object):
  2573. """
  2574. Attributes:
  2575. - success
  2576. """
  2577. thrift_spec = (
  2578. (0, TType.STRUCT, 'success', (TGetPrimaryKeysResp, TGetPrimaryKeysResp.thrift_spec), None, ), # 0
  2579. )
  2580. def __init__(self, success=None,):
  2581. self.success = success
  2582. def read(self, iprot):
  2583. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2584. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2585. return
  2586. iprot.readStructBegin()
  2587. while True:
  2588. (fname, ftype, fid) = iprot.readFieldBegin()
  2589. if ftype == TType.STOP:
  2590. break
  2591. if fid == 0:
  2592. if ftype == TType.STRUCT:
  2593. self.success = TGetPrimaryKeysResp()
  2594. self.success.read(iprot)
  2595. else:
  2596. iprot.skip(ftype)
  2597. else:
  2598. iprot.skip(ftype)
  2599. iprot.readFieldEnd()
  2600. iprot.readStructEnd()
  2601. def write(self, oprot):
  2602. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2603. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2604. return
  2605. oprot.writeStructBegin('GetPrimaryKeys_result')
  2606. if self.success is not None:
  2607. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  2608. self.success.write(oprot)
  2609. oprot.writeFieldEnd()
  2610. oprot.writeFieldStop()
  2611. oprot.writeStructEnd()
  2612. def validate(self):
  2613. return
  2614. def __hash__(self):
  2615. value = 17
  2616. value = (value * 31) ^ hash(self.success)
  2617. return value
  2618. def __repr__(self):
  2619. L = ['%s=%r' % (key, value)
  2620. for key, value in self.__dict__.items()]
  2621. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2622. def __eq__(self, other):
  2623. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2624. def __ne__(self, other):
  2625. return not (self == other)
  2626. class GetCrossReference_args(object):
  2627. """
  2628. Attributes:
  2629. - req
  2630. """
  2631. thrift_spec = (
  2632. None, # 0
  2633. (1, TType.STRUCT, 'req', (TGetCrossReferenceReq, TGetCrossReferenceReq.thrift_spec), None, ), # 1
  2634. )
  2635. def __init__(self, req=None,):
  2636. self.req = req
  2637. def read(self, iprot):
  2638. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2639. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2640. return
  2641. iprot.readStructBegin()
  2642. while True:
  2643. (fname, ftype, fid) = iprot.readFieldBegin()
  2644. if ftype == TType.STOP:
  2645. break
  2646. if fid == 1:
  2647. if ftype == TType.STRUCT:
  2648. self.req = TGetCrossReferenceReq()
  2649. self.req.read(iprot)
  2650. else:
  2651. iprot.skip(ftype)
  2652. else:
  2653. iprot.skip(ftype)
  2654. iprot.readFieldEnd()
  2655. iprot.readStructEnd()
  2656. def write(self, oprot):
  2657. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2658. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2659. return
  2660. oprot.writeStructBegin('GetCrossReference_args')
  2661. if self.req is not None:
  2662. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  2663. self.req.write(oprot)
  2664. oprot.writeFieldEnd()
  2665. oprot.writeFieldStop()
  2666. oprot.writeStructEnd()
  2667. def validate(self):
  2668. return
  2669. def __hash__(self):
  2670. value = 17
  2671. value = (value * 31) ^ hash(self.req)
  2672. return value
  2673. def __repr__(self):
  2674. L = ['%s=%r' % (key, value)
  2675. for key, value in self.__dict__.items()]
  2676. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2677. def __eq__(self, other):
  2678. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2679. def __ne__(self, other):
  2680. return not (self == other)
  2681. class GetCrossReference_result(object):
  2682. """
  2683. Attributes:
  2684. - success
  2685. """
  2686. thrift_spec = (
  2687. (0, TType.STRUCT, 'success', (TGetCrossReferenceResp, TGetCrossReferenceResp.thrift_spec), None, ), # 0
  2688. )
  2689. def __init__(self, success=None,):
  2690. self.success = success
  2691. def read(self, iprot):
  2692. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2693. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2694. return
  2695. iprot.readStructBegin()
  2696. while True:
  2697. (fname, ftype, fid) = iprot.readFieldBegin()
  2698. if ftype == TType.STOP:
  2699. break
  2700. if fid == 0:
  2701. if ftype == TType.STRUCT:
  2702. self.success = TGetCrossReferenceResp()
  2703. self.success.read(iprot)
  2704. else:
  2705. iprot.skip(ftype)
  2706. else:
  2707. iprot.skip(ftype)
  2708. iprot.readFieldEnd()
  2709. iprot.readStructEnd()
  2710. def write(self, oprot):
  2711. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2712. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2713. return
  2714. oprot.writeStructBegin('GetCrossReference_result')
  2715. if self.success is not None:
  2716. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  2717. self.success.write(oprot)
  2718. oprot.writeFieldEnd()
  2719. oprot.writeFieldStop()
  2720. oprot.writeStructEnd()
  2721. def validate(self):
  2722. return
  2723. def __hash__(self):
  2724. value = 17
  2725. value = (value * 31) ^ hash(self.success)
  2726. return value
  2727. def __repr__(self):
  2728. L = ['%s=%r' % (key, value)
  2729. for key, value in self.__dict__.items()]
  2730. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2731. def __eq__(self, other):
  2732. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2733. def __ne__(self, other):
  2734. return not (self == other)
  2735. class GetOperationStatus_args(object):
  2736. """
  2737. Attributes:
  2738. - req
  2739. """
  2740. thrift_spec = (
  2741. None, # 0
  2742. (1, TType.STRUCT, 'req', (TGetOperationStatusReq, TGetOperationStatusReq.thrift_spec), None, ), # 1
  2743. )
  2744. def __init__(self, req=None,):
  2745. self.req = req
  2746. def read(self, iprot):
  2747. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2748. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2749. return
  2750. iprot.readStructBegin()
  2751. while True:
  2752. (fname, ftype, fid) = iprot.readFieldBegin()
  2753. if ftype == TType.STOP:
  2754. break
  2755. if fid == 1:
  2756. if ftype == TType.STRUCT:
  2757. self.req = TGetOperationStatusReq()
  2758. self.req.read(iprot)
  2759. else:
  2760. iprot.skip(ftype)
  2761. else:
  2762. iprot.skip(ftype)
  2763. iprot.readFieldEnd()
  2764. iprot.readStructEnd()
  2765. def write(self, oprot):
  2766. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2767. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2768. return
  2769. oprot.writeStructBegin('GetOperationStatus_args')
  2770. if self.req is not None:
  2771. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  2772. self.req.write(oprot)
  2773. oprot.writeFieldEnd()
  2774. oprot.writeFieldStop()
  2775. oprot.writeStructEnd()
  2776. def validate(self):
  2777. return
  2778. def __hash__(self):
  2779. value = 17
  2780. value = (value * 31) ^ hash(self.req)
  2781. return value
  2782. def __repr__(self):
  2783. L = ['%s=%r' % (key, value)
  2784. for key, value in self.__dict__.items()]
  2785. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2786. def __eq__(self, other):
  2787. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2788. def __ne__(self, other):
  2789. return not (self == other)
  2790. class GetOperationStatus_result(object):
  2791. """
  2792. Attributes:
  2793. - success
  2794. """
  2795. thrift_spec = (
  2796. (0, TType.STRUCT, 'success', (TGetOperationStatusResp, TGetOperationStatusResp.thrift_spec), None, ), # 0
  2797. )
  2798. def __init__(self, success=None,):
  2799. self.success = success
  2800. def read(self, iprot):
  2801. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2802. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2803. return
  2804. iprot.readStructBegin()
  2805. while True:
  2806. (fname, ftype, fid) = iprot.readFieldBegin()
  2807. if ftype == TType.STOP:
  2808. break
  2809. if fid == 0:
  2810. if ftype == TType.STRUCT:
  2811. self.success = TGetOperationStatusResp()
  2812. self.success.read(iprot)
  2813. else:
  2814. iprot.skip(ftype)
  2815. else:
  2816. iprot.skip(ftype)
  2817. iprot.readFieldEnd()
  2818. iprot.readStructEnd()
  2819. def write(self, oprot):
  2820. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2821. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2822. return
  2823. oprot.writeStructBegin('GetOperationStatus_result')
  2824. if self.success is not None:
  2825. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  2826. self.success.write(oprot)
  2827. oprot.writeFieldEnd()
  2828. oprot.writeFieldStop()
  2829. oprot.writeStructEnd()
  2830. def validate(self):
  2831. return
  2832. def __hash__(self):
  2833. value = 17
  2834. value = (value * 31) ^ hash(self.success)
  2835. return value
  2836. def __repr__(self):
  2837. L = ['%s=%r' % (key, value)
  2838. for key, value in self.__dict__.items()]
  2839. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2840. def __eq__(self, other):
  2841. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2842. def __ne__(self, other):
  2843. return not (self == other)
  2844. class CancelOperation_args(object):
  2845. """
  2846. Attributes:
  2847. - req
  2848. """
  2849. thrift_spec = (
  2850. None, # 0
  2851. (1, TType.STRUCT, 'req', (TCancelOperationReq, TCancelOperationReq.thrift_spec), None, ), # 1
  2852. )
  2853. def __init__(self, req=None,):
  2854. self.req = req
  2855. def read(self, iprot):
  2856. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2857. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2858. return
  2859. iprot.readStructBegin()
  2860. while True:
  2861. (fname, ftype, fid) = iprot.readFieldBegin()
  2862. if ftype == TType.STOP:
  2863. break
  2864. if fid == 1:
  2865. if ftype == TType.STRUCT:
  2866. self.req = TCancelOperationReq()
  2867. self.req.read(iprot)
  2868. else:
  2869. iprot.skip(ftype)
  2870. else:
  2871. iprot.skip(ftype)
  2872. iprot.readFieldEnd()
  2873. iprot.readStructEnd()
  2874. def write(self, oprot):
  2875. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2876. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2877. return
  2878. oprot.writeStructBegin('CancelOperation_args')
  2879. if self.req is not None:
  2880. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  2881. self.req.write(oprot)
  2882. oprot.writeFieldEnd()
  2883. oprot.writeFieldStop()
  2884. oprot.writeStructEnd()
  2885. def validate(self):
  2886. return
  2887. def __hash__(self):
  2888. value = 17
  2889. value = (value * 31) ^ hash(self.req)
  2890. return value
  2891. def __repr__(self):
  2892. L = ['%s=%r' % (key, value)
  2893. for key, value in self.__dict__.items()]
  2894. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2895. def __eq__(self, other):
  2896. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2897. def __ne__(self, other):
  2898. return not (self == other)
  2899. class CancelOperation_result(object):
  2900. """
  2901. Attributes:
  2902. - success
  2903. """
  2904. thrift_spec = (
  2905. (0, TType.STRUCT, 'success', (TCancelOperationResp, TCancelOperationResp.thrift_spec), None, ), # 0
  2906. )
  2907. def __init__(self, success=None,):
  2908. self.success = success
  2909. def read(self, iprot):
  2910. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2911. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2912. return
  2913. iprot.readStructBegin()
  2914. while True:
  2915. (fname, ftype, fid) = iprot.readFieldBegin()
  2916. if ftype == TType.STOP:
  2917. break
  2918. if fid == 0:
  2919. if ftype == TType.STRUCT:
  2920. self.success = TCancelOperationResp()
  2921. self.success.read(iprot)
  2922. else:
  2923. iprot.skip(ftype)
  2924. else:
  2925. iprot.skip(ftype)
  2926. iprot.readFieldEnd()
  2927. iprot.readStructEnd()
  2928. def write(self, oprot):
  2929. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2930. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2931. return
  2932. oprot.writeStructBegin('CancelOperation_result')
  2933. if self.success is not None:
  2934. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  2935. self.success.write(oprot)
  2936. oprot.writeFieldEnd()
  2937. oprot.writeFieldStop()
  2938. oprot.writeStructEnd()
  2939. def validate(self):
  2940. return
  2941. def __hash__(self):
  2942. value = 17
  2943. value = (value * 31) ^ hash(self.success)
  2944. return value
  2945. def __repr__(self):
  2946. L = ['%s=%r' % (key, value)
  2947. for key, value in self.__dict__.items()]
  2948. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  2949. def __eq__(self, other):
  2950. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  2951. def __ne__(self, other):
  2952. return not (self == other)
  2953. class CloseOperation_args(object):
  2954. """
  2955. Attributes:
  2956. - req
  2957. """
  2958. thrift_spec = (
  2959. None, # 0
  2960. (1, TType.STRUCT, 'req', (TCloseOperationReq, TCloseOperationReq.thrift_spec), None, ), # 1
  2961. )
  2962. def __init__(self, req=None,):
  2963. self.req = req
  2964. def read(self, iprot):
  2965. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  2966. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  2967. return
  2968. iprot.readStructBegin()
  2969. while True:
  2970. (fname, ftype, fid) = iprot.readFieldBegin()
  2971. if ftype == TType.STOP:
  2972. break
  2973. if fid == 1:
  2974. if ftype == TType.STRUCT:
  2975. self.req = TCloseOperationReq()
  2976. self.req.read(iprot)
  2977. else:
  2978. iprot.skip(ftype)
  2979. else:
  2980. iprot.skip(ftype)
  2981. iprot.readFieldEnd()
  2982. iprot.readStructEnd()
  2983. def write(self, oprot):
  2984. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  2985. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  2986. return
  2987. oprot.writeStructBegin('CloseOperation_args')
  2988. if self.req is not None:
  2989. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  2990. self.req.write(oprot)
  2991. oprot.writeFieldEnd()
  2992. oprot.writeFieldStop()
  2993. oprot.writeStructEnd()
  2994. def validate(self):
  2995. return
  2996. def __hash__(self):
  2997. value = 17
  2998. value = (value * 31) ^ hash(self.req)
  2999. return value
  3000. def __repr__(self):
  3001. L = ['%s=%r' % (key, value)
  3002. for key, value in self.__dict__.items()]
  3003. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3004. def __eq__(self, other):
  3005. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3006. def __ne__(self, other):
  3007. return not (self == other)
  3008. class CloseOperation_result(object):
  3009. """
  3010. Attributes:
  3011. - success
  3012. """
  3013. thrift_spec = (
  3014. (0, TType.STRUCT, 'success', (TCloseOperationResp, TCloseOperationResp.thrift_spec), None, ), # 0
  3015. )
  3016. def __init__(self, success=None,):
  3017. self.success = success
  3018. def read(self, iprot):
  3019. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3020. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3021. return
  3022. iprot.readStructBegin()
  3023. while True:
  3024. (fname, ftype, fid) = iprot.readFieldBegin()
  3025. if ftype == TType.STOP:
  3026. break
  3027. if fid == 0:
  3028. if ftype == TType.STRUCT:
  3029. self.success = TCloseOperationResp()
  3030. self.success.read(iprot)
  3031. else:
  3032. iprot.skip(ftype)
  3033. else:
  3034. iprot.skip(ftype)
  3035. iprot.readFieldEnd()
  3036. iprot.readStructEnd()
  3037. def write(self, oprot):
  3038. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3039. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3040. return
  3041. oprot.writeStructBegin('CloseOperation_result')
  3042. if self.success is not None:
  3043. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  3044. self.success.write(oprot)
  3045. oprot.writeFieldEnd()
  3046. oprot.writeFieldStop()
  3047. oprot.writeStructEnd()
  3048. def validate(self):
  3049. return
  3050. def __hash__(self):
  3051. value = 17
  3052. value = (value * 31) ^ hash(self.success)
  3053. return value
  3054. def __repr__(self):
  3055. L = ['%s=%r' % (key, value)
  3056. for key, value in self.__dict__.items()]
  3057. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3058. def __eq__(self, other):
  3059. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3060. def __ne__(self, other):
  3061. return not (self == other)
  3062. class GetResultSetMetadata_args(object):
  3063. """
  3064. Attributes:
  3065. - req
  3066. """
  3067. thrift_spec = (
  3068. None, # 0
  3069. (1, TType.STRUCT, 'req', (TGetResultSetMetadataReq, TGetResultSetMetadataReq.thrift_spec), None, ), # 1
  3070. )
  3071. def __init__(self, req=None,):
  3072. self.req = req
  3073. def read(self, iprot):
  3074. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3075. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3076. return
  3077. iprot.readStructBegin()
  3078. while True:
  3079. (fname, ftype, fid) = iprot.readFieldBegin()
  3080. if ftype == TType.STOP:
  3081. break
  3082. if fid == 1:
  3083. if ftype == TType.STRUCT:
  3084. self.req = TGetResultSetMetadataReq()
  3085. self.req.read(iprot)
  3086. else:
  3087. iprot.skip(ftype)
  3088. else:
  3089. iprot.skip(ftype)
  3090. iprot.readFieldEnd()
  3091. iprot.readStructEnd()
  3092. def write(self, oprot):
  3093. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3094. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3095. return
  3096. oprot.writeStructBegin('GetResultSetMetadata_args')
  3097. if self.req is not None:
  3098. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  3099. self.req.write(oprot)
  3100. oprot.writeFieldEnd()
  3101. oprot.writeFieldStop()
  3102. oprot.writeStructEnd()
  3103. def validate(self):
  3104. return
  3105. def __hash__(self):
  3106. value = 17
  3107. value = (value * 31) ^ hash(self.req)
  3108. return value
  3109. def __repr__(self):
  3110. L = ['%s=%r' % (key, value)
  3111. for key, value in self.__dict__.items()]
  3112. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3113. def __eq__(self, other):
  3114. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3115. def __ne__(self, other):
  3116. return not (self == other)
  3117. class GetResultSetMetadata_result(object):
  3118. """
  3119. Attributes:
  3120. - success
  3121. """
  3122. thrift_spec = (
  3123. (0, TType.STRUCT, 'success', (TGetResultSetMetadataResp, TGetResultSetMetadataResp.thrift_spec), None, ), # 0
  3124. )
  3125. def __init__(self, success=None,):
  3126. self.success = success
  3127. def read(self, iprot):
  3128. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3129. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3130. return
  3131. iprot.readStructBegin()
  3132. while True:
  3133. (fname, ftype, fid) = iprot.readFieldBegin()
  3134. if ftype == TType.STOP:
  3135. break
  3136. if fid == 0:
  3137. if ftype == TType.STRUCT:
  3138. self.success = TGetResultSetMetadataResp()
  3139. self.success.read(iprot)
  3140. else:
  3141. iprot.skip(ftype)
  3142. else:
  3143. iprot.skip(ftype)
  3144. iprot.readFieldEnd()
  3145. iprot.readStructEnd()
  3146. def write(self, oprot):
  3147. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3148. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3149. return
  3150. oprot.writeStructBegin('GetResultSetMetadata_result')
  3151. if self.success is not None:
  3152. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  3153. self.success.write(oprot)
  3154. oprot.writeFieldEnd()
  3155. oprot.writeFieldStop()
  3156. oprot.writeStructEnd()
  3157. def validate(self):
  3158. return
  3159. def __hash__(self):
  3160. value = 17
  3161. value = (value * 31) ^ hash(self.success)
  3162. return value
  3163. def __repr__(self):
  3164. L = ['%s=%r' % (key, value)
  3165. for key, value in self.__dict__.items()]
  3166. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3167. def __eq__(self, other):
  3168. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3169. def __ne__(self, other):
  3170. return not (self == other)
  3171. class FetchResults_args(object):
  3172. """
  3173. Attributes:
  3174. - req
  3175. """
  3176. thrift_spec = (
  3177. None, # 0
  3178. (1, TType.STRUCT, 'req', (TFetchResultsReq, TFetchResultsReq.thrift_spec), None, ), # 1
  3179. )
  3180. def __init__(self, req=None,):
  3181. self.req = req
  3182. def read(self, iprot):
  3183. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3184. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3185. return
  3186. iprot.readStructBegin()
  3187. while True:
  3188. (fname, ftype, fid) = iprot.readFieldBegin()
  3189. if ftype == TType.STOP:
  3190. break
  3191. if fid == 1:
  3192. if ftype == TType.STRUCT:
  3193. self.req = TFetchResultsReq()
  3194. self.req.read(iprot)
  3195. else:
  3196. iprot.skip(ftype)
  3197. else:
  3198. iprot.skip(ftype)
  3199. iprot.readFieldEnd()
  3200. iprot.readStructEnd()
  3201. def write(self, oprot):
  3202. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3203. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3204. return
  3205. oprot.writeStructBegin('FetchResults_args')
  3206. if self.req is not None:
  3207. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  3208. self.req.write(oprot)
  3209. oprot.writeFieldEnd()
  3210. oprot.writeFieldStop()
  3211. oprot.writeStructEnd()
  3212. def validate(self):
  3213. return
  3214. def __hash__(self):
  3215. value = 17
  3216. value = (value * 31) ^ hash(self.req)
  3217. return value
  3218. def __repr__(self):
  3219. L = ['%s=%r' % (key, value)
  3220. for key, value in self.__dict__.items()]
  3221. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3222. def __eq__(self, other):
  3223. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3224. def __ne__(self, other):
  3225. return not (self == other)
  3226. class FetchResults_result(object):
  3227. """
  3228. Attributes:
  3229. - success
  3230. """
  3231. thrift_spec = (
  3232. (0, TType.STRUCT, 'success', (TFetchResultsResp, TFetchResultsResp.thrift_spec), None, ), # 0
  3233. )
  3234. def __init__(self, success=None,):
  3235. self.success = success
  3236. def read(self, iprot):
  3237. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3238. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3239. return
  3240. iprot.readStructBegin()
  3241. while True:
  3242. (fname, ftype, fid) = iprot.readFieldBegin()
  3243. if ftype == TType.STOP:
  3244. break
  3245. if fid == 0:
  3246. if ftype == TType.STRUCT:
  3247. self.success = TFetchResultsResp()
  3248. self.success.read(iprot)
  3249. else:
  3250. iprot.skip(ftype)
  3251. else:
  3252. iprot.skip(ftype)
  3253. iprot.readFieldEnd()
  3254. iprot.readStructEnd()
  3255. def write(self, oprot):
  3256. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3257. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3258. return
  3259. oprot.writeStructBegin('FetchResults_result')
  3260. if self.success is not None:
  3261. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  3262. self.success.write(oprot)
  3263. oprot.writeFieldEnd()
  3264. oprot.writeFieldStop()
  3265. oprot.writeStructEnd()
  3266. def validate(self):
  3267. return
  3268. def __hash__(self):
  3269. value = 17
  3270. value = (value * 31) ^ hash(self.success)
  3271. return value
  3272. def __repr__(self):
  3273. L = ['%s=%r' % (key, value)
  3274. for key, value in self.__dict__.items()]
  3275. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3276. def __eq__(self, other):
  3277. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3278. def __ne__(self, other):
  3279. return not (self == other)
  3280. class GetDelegationToken_args(object):
  3281. """
  3282. Attributes:
  3283. - req
  3284. """
  3285. thrift_spec = (
  3286. None, # 0
  3287. (1, TType.STRUCT, 'req', (TGetDelegationTokenReq, TGetDelegationTokenReq.thrift_spec), None, ), # 1
  3288. )
  3289. def __init__(self, req=None,):
  3290. self.req = req
  3291. def read(self, iprot):
  3292. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3293. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3294. return
  3295. iprot.readStructBegin()
  3296. while True:
  3297. (fname, ftype, fid) = iprot.readFieldBegin()
  3298. if ftype == TType.STOP:
  3299. break
  3300. if fid == 1:
  3301. if ftype == TType.STRUCT:
  3302. self.req = TGetDelegationTokenReq()
  3303. self.req.read(iprot)
  3304. else:
  3305. iprot.skip(ftype)
  3306. else:
  3307. iprot.skip(ftype)
  3308. iprot.readFieldEnd()
  3309. iprot.readStructEnd()
  3310. def write(self, oprot):
  3311. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3312. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3313. return
  3314. oprot.writeStructBegin('GetDelegationToken_args')
  3315. if self.req is not None:
  3316. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  3317. self.req.write(oprot)
  3318. oprot.writeFieldEnd()
  3319. oprot.writeFieldStop()
  3320. oprot.writeStructEnd()
  3321. def validate(self):
  3322. return
  3323. def __hash__(self):
  3324. value = 17
  3325. value = (value * 31) ^ hash(self.req)
  3326. return value
  3327. def __repr__(self):
  3328. L = ['%s=%r' % (key, value)
  3329. for key, value in self.__dict__.items()]
  3330. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3331. def __eq__(self, other):
  3332. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3333. def __ne__(self, other):
  3334. return not (self == other)
  3335. class GetDelegationToken_result(object):
  3336. """
  3337. Attributes:
  3338. - success
  3339. """
  3340. thrift_spec = (
  3341. (0, TType.STRUCT, 'success', (TGetDelegationTokenResp, TGetDelegationTokenResp.thrift_spec), None, ), # 0
  3342. )
  3343. def __init__(self, success=None,):
  3344. self.success = success
  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 == 0:
  3355. if ftype == TType.STRUCT:
  3356. self.success = TGetDelegationTokenResp()
  3357. self.success.read(iprot)
  3358. else:
  3359. iprot.skip(ftype)
  3360. else:
  3361. iprot.skip(ftype)
  3362. iprot.readFieldEnd()
  3363. iprot.readStructEnd()
  3364. def write(self, oprot):
  3365. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3366. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3367. return
  3368. oprot.writeStructBegin('GetDelegationToken_result')
  3369. if self.success is not None:
  3370. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  3371. self.success.write(oprot)
  3372. oprot.writeFieldEnd()
  3373. oprot.writeFieldStop()
  3374. oprot.writeStructEnd()
  3375. def validate(self):
  3376. return
  3377. def __hash__(self):
  3378. value = 17
  3379. value = (value * 31) ^ hash(self.success)
  3380. return value
  3381. def __repr__(self):
  3382. L = ['%s=%r' % (key, value)
  3383. for key, value in self.__dict__.items()]
  3384. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3385. def __eq__(self, other):
  3386. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3387. def __ne__(self, other):
  3388. return not (self == other)
  3389. class CancelDelegationToken_args(object):
  3390. """
  3391. Attributes:
  3392. - req
  3393. """
  3394. thrift_spec = (
  3395. None, # 0
  3396. (1, TType.STRUCT, 'req', (TCancelDelegationTokenReq, TCancelDelegationTokenReq.thrift_spec), None, ), # 1
  3397. )
  3398. def __init__(self, req=None,):
  3399. self.req = req
  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 == 1:
  3410. if ftype == TType.STRUCT:
  3411. self.req = TCancelDelegationTokenReq()
  3412. self.req.read(iprot)
  3413. else:
  3414. iprot.skip(ftype)
  3415. else:
  3416. iprot.skip(ftype)
  3417. iprot.readFieldEnd()
  3418. iprot.readStructEnd()
  3419. def write(self, oprot):
  3420. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3421. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3422. return
  3423. oprot.writeStructBegin('CancelDelegationToken_args')
  3424. if self.req is not None:
  3425. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  3426. self.req.write(oprot)
  3427. oprot.writeFieldEnd()
  3428. oprot.writeFieldStop()
  3429. oprot.writeStructEnd()
  3430. def validate(self):
  3431. return
  3432. def __hash__(self):
  3433. value = 17
  3434. value = (value * 31) ^ hash(self.req)
  3435. return value
  3436. def __repr__(self):
  3437. L = ['%s=%r' % (key, value)
  3438. for key, value in self.__dict__.items()]
  3439. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3440. def __eq__(self, other):
  3441. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3442. def __ne__(self, other):
  3443. return not (self == other)
  3444. class CancelDelegationToken_result(object):
  3445. """
  3446. Attributes:
  3447. - success
  3448. """
  3449. thrift_spec = (
  3450. (0, TType.STRUCT, 'success', (TCancelDelegationTokenResp, TCancelDelegationTokenResp.thrift_spec), None, ), # 0
  3451. )
  3452. def __init__(self, success=None,):
  3453. self.success = success
  3454. def read(self, iprot):
  3455. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3456. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3457. return
  3458. iprot.readStructBegin()
  3459. while True:
  3460. (fname, ftype, fid) = iprot.readFieldBegin()
  3461. if ftype == TType.STOP:
  3462. break
  3463. if fid == 0:
  3464. if ftype == TType.STRUCT:
  3465. self.success = TCancelDelegationTokenResp()
  3466. self.success.read(iprot)
  3467. else:
  3468. iprot.skip(ftype)
  3469. else:
  3470. iprot.skip(ftype)
  3471. iprot.readFieldEnd()
  3472. iprot.readStructEnd()
  3473. def write(self, oprot):
  3474. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3475. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3476. return
  3477. oprot.writeStructBegin('CancelDelegationToken_result')
  3478. if self.success is not None:
  3479. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  3480. self.success.write(oprot)
  3481. oprot.writeFieldEnd()
  3482. oprot.writeFieldStop()
  3483. oprot.writeStructEnd()
  3484. def validate(self):
  3485. return
  3486. def __hash__(self):
  3487. value = 17
  3488. value = (value * 31) ^ hash(self.success)
  3489. return value
  3490. def __repr__(self):
  3491. L = ['%s=%r' % (key, value)
  3492. for key, value in self.__dict__.items()]
  3493. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3494. def __eq__(self, other):
  3495. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3496. def __ne__(self, other):
  3497. return not (self == other)
  3498. class RenewDelegationToken_args(object):
  3499. """
  3500. Attributes:
  3501. - req
  3502. """
  3503. thrift_spec = (
  3504. None, # 0
  3505. (1, TType.STRUCT, 'req', (TRenewDelegationTokenReq, TRenewDelegationTokenReq.thrift_spec), None, ), # 1
  3506. )
  3507. def __init__(self, req=None,):
  3508. self.req = req
  3509. def read(self, iprot):
  3510. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3511. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3512. return
  3513. iprot.readStructBegin()
  3514. while True:
  3515. (fname, ftype, fid) = iprot.readFieldBegin()
  3516. if ftype == TType.STOP:
  3517. break
  3518. if fid == 1:
  3519. if ftype == TType.STRUCT:
  3520. self.req = TRenewDelegationTokenReq()
  3521. self.req.read(iprot)
  3522. else:
  3523. iprot.skip(ftype)
  3524. else:
  3525. iprot.skip(ftype)
  3526. iprot.readFieldEnd()
  3527. iprot.readStructEnd()
  3528. def write(self, oprot):
  3529. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3530. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3531. return
  3532. oprot.writeStructBegin('RenewDelegationToken_args')
  3533. if self.req is not None:
  3534. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  3535. self.req.write(oprot)
  3536. oprot.writeFieldEnd()
  3537. oprot.writeFieldStop()
  3538. oprot.writeStructEnd()
  3539. def validate(self):
  3540. return
  3541. def __hash__(self):
  3542. value = 17
  3543. value = (value * 31) ^ hash(self.req)
  3544. return value
  3545. def __repr__(self):
  3546. L = ['%s=%r' % (key, value)
  3547. for key, value in self.__dict__.items()]
  3548. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3549. def __eq__(self, other):
  3550. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3551. def __ne__(self, other):
  3552. return not (self == other)
  3553. class RenewDelegationToken_result(object):
  3554. """
  3555. Attributes:
  3556. - success
  3557. """
  3558. thrift_spec = (
  3559. (0, TType.STRUCT, 'success', (TRenewDelegationTokenResp, TRenewDelegationTokenResp.thrift_spec), None, ), # 0
  3560. )
  3561. def __init__(self, success=None,):
  3562. self.success = success
  3563. def read(self, iprot):
  3564. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3565. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3566. return
  3567. iprot.readStructBegin()
  3568. while True:
  3569. (fname, ftype, fid) = iprot.readFieldBegin()
  3570. if ftype == TType.STOP:
  3571. break
  3572. if fid == 0:
  3573. if ftype == TType.STRUCT:
  3574. self.success = TRenewDelegationTokenResp()
  3575. self.success.read(iprot)
  3576. else:
  3577. iprot.skip(ftype)
  3578. else:
  3579. iprot.skip(ftype)
  3580. iprot.readFieldEnd()
  3581. iprot.readStructEnd()
  3582. def write(self, oprot):
  3583. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3584. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3585. return
  3586. oprot.writeStructBegin('RenewDelegationToken_result')
  3587. if self.success is not None:
  3588. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  3589. self.success.write(oprot)
  3590. oprot.writeFieldEnd()
  3591. oprot.writeFieldStop()
  3592. oprot.writeStructEnd()
  3593. def validate(self):
  3594. return
  3595. def __hash__(self):
  3596. value = 17
  3597. value = (value * 31) ^ hash(self.success)
  3598. return value
  3599. def __repr__(self):
  3600. L = ['%s=%r' % (key, value)
  3601. for key, value in self.__dict__.items()]
  3602. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3603. def __eq__(self, other):
  3604. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3605. def __ne__(self, other):
  3606. return not (self == other)
  3607. class GetQueryId_args(object):
  3608. """
  3609. Attributes:
  3610. - req
  3611. """
  3612. thrift_spec = (
  3613. None, # 0
  3614. (1, TType.STRUCT, 'req', (TGetQueryIdReq, TGetQueryIdReq.thrift_spec), None, ), # 1
  3615. )
  3616. def __init__(self, req=None,):
  3617. self.req = req
  3618. def read(self, iprot):
  3619. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3620. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3621. return
  3622. iprot.readStructBegin()
  3623. while True:
  3624. (fname, ftype, fid) = iprot.readFieldBegin()
  3625. if ftype == TType.STOP:
  3626. break
  3627. if fid == 1:
  3628. if ftype == TType.STRUCT:
  3629. self.req = TGetQueryIdReq()
  3630. self.req.read(iprot)
  3631. else:
  3632. iprot.skip(ftype)
  3633. else:
  3634. iprot.skip(ftype)
  3635. iprot.readFieldEnd()
  3636. iprot.readStructEnd()
  3637. def write(self, oprot):
  3638. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3639. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3640. return
  3641. oprot.writeStructBegin('GetQueryId_args')
  3642. if self.req is not None:
  3643. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  3644. self.req.write(oprot)
  3645. oprot.writeFieldEnd()
  3646. oprot.writeFieldStop()
  3647. oprot.writeStructEnd()
  3648. def validate(self):
  3649. return
  3650. def __hash__(self):
  3651. value = 17
  3652. value = (value * 31) ^ hash(self.req)
  3653. return value
  3654. def __repr__(self):
  3655. L = ['%s=%r' % (key, value)
  3656. for key, value in self.__dict__.items()]
  3657. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3658. def __eq__(self, other):
  3659. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3660. def __ne__(self, other):
  3661. return not (self == other)
  3662. class GetQueryId_result(object):
  3663. """
  3664. Attributes:
  3665. - success
  3666. """
  3667. thrift_spec = (
  3668. (0, TType.STRUCT, 'success', (TGetQueryIdResp, TGetQueryIdResp.thrift_spec), None, ), # 0
  3669. )
  3670. def __init__(self, success=None,):
  3671. self.success = success
  3672. def read(self, iprot):
  3673. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3674. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3675. return
  3676. iprot.readStructBegin()
  3677. while True:
  3678. (fname, ftype, fid) = iprot.readFieldBegin()
  3679. if ftype == TType.STOP:
  3680. break
  3681. if fid == 0:
  3682. if ftype == TType.STRUCT:
  3683. self.success = TGetQueryIdResp()
  3684. self.success.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('GetQueryId_result')
  3696. if self.success is not None:
  3697. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  3698. self.success.write(oprot)
  3699. oprot.writeFieldEnd()
  3700. oprot.writeFieldStop()
  3701. oprot.writeStructEnd()
  3702. def validate(self):
  3703. return
  3704. def __hash__(self):
  3705. value = 17
  3706. value = (value * 31) ^ hash(self.success)
  3707. return value
  3708. def __repr__(self):
  3709. L = ['%s=%r' % (key, value)
  3710. for key, value in self.__dict__.items()]
  3711. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3712. def __eq__(self, other):
  3713. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3714. def __ne__(self, other):
  3715. return not (self == other)
  3716. class SetClientInfo_args(object):
  3717. """
  3718. Attributes:
  3719. - req
  3720. """
  3721. thrift_spec = (
  3722. None, # 0
  3723. (1, TType.STRUCT, 'req', (TSetClientInfoReq, TSetClientInfoReq.thrift_spec), None, ), # 1
  3724. )
  3725. def __init__(self, req=None,):
  3726. self.req = req
  3727. def read(self, iprot):
  3728. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3729. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3730. return
  3731. iprot.readStructBegin()
  3732. while True:
  3733. (fname, ftype, fid) = iprot.readFieldBegin()
  3734. if ftype == TType.STOP:
  3735. break
  3736. if fid == 1:
  3737. if ftype == TType.STRUCT:
  3738. self.req = TSetClientInfoReq()
  3739. self.req.read(iprot)
  3740. else:
  3741. iprot.skip(ftype)
  3742. else:
  3743. iprot.skip(ftype)
  3744. iprot.readFieldEnd()
  3745. iprot.readStructEnd()
  3746. def write(self, oprot):
  3747. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3748. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3749. return
  3750. oprot.writeStructBegin('SetClientInfo_args')
  3751. if self.req is not None:
  3752. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  3753. self.req.write(oprot)
  3754. oprot.writeFieldEnd()
  3755. oprot.writeFieldStop()
  3756. oprot.writeStructEnd()
  3757. def validate(self):
  3758. return
  3759. def __hash__(self):
  3760. value = 17
  3761. value = (value * 31) ^ hash(self.req)
  3762. return value
  3763. def __repr__(self):
  3764. L = ['%s=%r' % (key, value)
  3765. for key, value in self.__dict__.items()]
  3766. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3767. def __eq__(self, other):
  3768. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3769. def __ne__(self, other):
  3770. return not (self == other)
  3771. class SetClientInfo_result(object):
  3772. """
  3773. Attributes:
  3774. - success
  3775. """
  3776. thrift_spec = (
  3777. (0, TType.STRUCT, 'success', (TSetClientInfoResp, TSetClientInfoResp.thrift_spec), None, ), # 0
  3778. )
  3779. def __init__(self, success=None,):
  3780. self.success = success
  3781. def read(self, iprot):
  3782. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3783. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3784. return
  3785. iprot.readStructBegin()
  3786. while True:
  3787. (fname, ftype, fid) = iprot.readFieldBegin()
  3788. if ftype == TType.STOP:
  3789. break
  3790. if fid == 0:
  3791. if ftype == TType.STRUCT:
  3792. self.success = TSetClientInfoResp()
  3793. self.success.read(iprot)
  3794. else:
  3795. iprot.skip(ftype)
  3796. else:
  3797. iprot.skip(ftype)
  3798. iprot.readFieldEnd()
  3799. iprot.readStructEnd()
  3800. def write(self, oprot):
  3801. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3802. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3803. return
  3804. oprot.writeStructBegin('SetClientInfo_result')
  3805. if self.success is not None:
  3806. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  3807. self.success.write(oprot)
  3808. oprot.writeFieldEnd()
  3809. oprot.writeFieldStop()
  3810. oprot.writeStructEnd()
  3811. def validate(self):
  3812. return
  3813. def __hash__(self):
  3814. value = 17
  3815. value = (value * 31) ^ hash(self.success)
  3816. return value
  3817. def __repr__(self):
  3818. L = ['%s=%r' % (key, value)
  3819. for key, value in self.__dict__.items()]
  3820. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3821. def __eq__(self, other):
  3822. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3823. def __ne__(self, other):
  3824. return not (self == other)
  3825. class GetLog_args(object):
  3826. """
  3827. Attributes:
  3828. - req
  3829. """
  3830. thrift_spec = (
  3831. None, # 0
  3832. (1, TType.STRUCT, 'req', (TGetLogReq, TGetLogReq.thrift_spec), None, ), # 1
  3833. )
  3834. def __init__(self, req=None,):
  3835. self.req = req
  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.STRUCT:
  3847. self.req = TGetLogReq()
  3848. self.req.read(iprot)
  3849. else:
  3850. iprot.skip(ftype)
  3851. else:
  3852. iprot.skip(ftype)
  3853. iprot.readFieldEnd()
  3854. iprot.readStructEnd()
  3855. def write(self, oprot):
  3856. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3857. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3858. return
  3859. oprot.writeStructBegin('GetLog_args')
  3860. if self.req is not None:
  3861. oprot.writeFieldBegin('req', TType.STRUCT, 1)
  3862. self.req.write(oprot)
  3863. oprot.writeFieldEnd()
  3864. oprot.writeFieldStop()
  3865. oprot.writeStructEnd()
  3866. def validate(self):
  3867. return
  3868. def __hash__(self):
  3869. value = 17
  3870. value = (value * 31) ^ hash(self.req)
  3871. return value
  3872. def __repr__(self):
  3873. L = ['%s=%r' % (key, value)
  3874. for key, value in self.__dict__.items()]
  3875. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3876. def __eq__(self, other):
  3877. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3878. def __ne__(self, other):
  3879. return not (self == other)
  3880. class GetLog_result(object):
  3881. """
  3882. Attributes:
  3883. - success
  3884. """
  3885. thrift_spec = (
  3886. (0, TType.STRUCT, 'success', (TGetLogResp, TGetLogResp.thrift_spec), None, ), # 0
  3887. )
  3888. def __init__(self, success=None,):
  3889. self.success = success
  3890. def read(self, iprot):
  3891. if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
  3892. fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
  3893. return
  3894. iprot.readStructBegin()
  3895. while True:
  3896. (fname, ftype, fid) = iprot.readFieldBegin()
  3897. if ftype == TType.STOP:
  3898. break
  3899. if fid == 0:
  3900. if ftype == TType.STRUCT:
  3901. self.success = TGetLogResp()
  3902. self.success.read(iprot)
  3903. else:
  3904. iprot.skip(ftype)
  3905. else:
  3906. iprot.skip(ftype)
  3907. iprot.readFieldEnd()
  3908. iprot.readStructEnd()
  3909. def write(self, oprot):
  3910. if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
  3911. oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
  3912. return
  3913. oprot.writeStructBegin('GetLog_result')
  3914. if self.success is not None:
  3915. oprot.writeFieldBegin('success', TType.STRUCT, 0)
  3916. self.success.write(oprot)
  3917. oprot.writeFieldEnd()
  3918. oprot.writeFieldStop()
  3919. oprot.writeStructEnd()
  3920. def validate(self):
  3921. return
  3922. def __hash__(self):
  3923. value = 17
  3924. value = (value * 31) ^ hash(self.success)
  3925. return value
  3926. def __repr__(self):
  3927. L = ['%s=%r' % (key, value)
  3928. for key, value in self.__dict__.items()]
  3929. return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
  3930. def __eq__(self, other):
  3931. return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
  3932. def __ne__(self, other):
  3933. return not (self == other)