TCLIService.py 112 KB

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