OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
omnisci.extension_functions.ttypes.TUserDefinedTableFunction Class Reference
+ Inheritance diagram for omnisci.extension_functions.ttypes.TUserDefinedTableFunction:
+ Collaboration diagram for omnisci.extension_functions.ttypes.TUserDefinedTableFunction:

Public Member Functions

def __init__
 
def read
 
def write
 
def validate
 
def __repr__
 
def __eq__
 
def __ne__
 

Public Attributes

 name
 
 sizerType
 
 sizerArgPos
 
 inputArgTypes
 
 outputArgTypes
 
 sqlArgTypes
 
 annotations
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - name
 - sizerType
 - sizerArgPos
 - inputArgTypes
 - outputArgTypes
 - sqlArgTypes
 - annotations

Definition at line 271 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.__init__ (   self,
  name = None,
  sizerType = None,
  sizerArgPos = None,
  inputArgTypes = None,
  outputArgTypes = None,
  sqlArgTypes = None,
  annotations = None 
)

Member Function Documentation

def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.__eq__ (   self,
  other 
)

Definition at line 429 of file ttypes.py.

430  def __eq__(self, other):
431  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.__ne__ (   self,
  other 
)

Definition at line 432 of file ttypes.py.

433  def __ne__(self, other):
434  return not (self == other)
435 all_structs.append(TUserDefinedFunction)
TUserDefinedFunction.thrift_spec = (
def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.__repr__ (   self)

Definition at line 424 of file ttypes.py.

425  def __repr__(self):
426  L = ['%s=%r' % (key, value)
427  for key, value in self.__dict__.items()]
428  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
std::string join(T const &container, std::string const &delim)

+ Here is the call graph for this function:

def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.read (   self,
  iprot 
)

Definition at line 294 of file ttypes.py.

References omnisci.extension_functions.ttypes.TUserDefinedTableFunction.annotations, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.inputArgTypes, com.mapd.parser.extension.ddl.omnisql.OmniSqlTypeNameSpec.name, com.mapd.parser.extension.ddl.omnisql.OmniSqlColumn.name, com.mapd.parser.extension.ddl.SqlDropUser.name, com.mapd.parser.extension.ddl.SqlDropDB.name, com.mapd.parser.extension.ddl.SqlRenameDB.name, com.mapd.parser.extension.ddl.SqlRenameUser.name, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.name, com.mapd.parser.extension.ddl.SqlCreateDB.name, com.mapd.parser.extension.ddl.SqlCreateUser.name, com.mapd.parser.extension.ddl.SqlAlterUser.name, foreign_storage::ForeignServer.name, com.mapd.parser.extension.ddl.SqlCreateDataframe.name, com.mapd.parser.extension.ddl.SqlInsertIntoTable.name, com.mapd.parser.extension.ddl.SqlCheckConstraint.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.name, com.mapd.parser.extension.ddl.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlKeyConstraint.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlColumnDeclaration.name, Catalog_Namespace::CustomExpression.name, omnisci.extension_functions.ttypes.TUserDefinedFunction.name, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.outputArgTypes, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sizerArgPos, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sizerType, and omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sqlArgTypes.

295  def read(self, iprot):
296  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
297  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
298  return
299  iprot.readStructBegin()
300  while True:
301  (fname, ftype, fid) = iprot.readFieldBegin()
302  if ftype == TType.STOP:
303  break
304  if fid == 1:
305  if ftype == TType.STRING:
306  self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
307  else:
308  iprot.skip(ftype)
309  elif fid == 2:
310  if ftype == TType.I32:
311  self.sizerType = iprot.readI32()
312  else:
313  iprot.skip(ftype)
314  elif fid == 3:
315  if ftype == TType.I32:
316  self.sizerArgPos = iprot.readI32()
317  else:
318  iprot.skip(ftype)
319  elif fid == 4:
320  if ftype == TType.LIST:
321  self.inputArgTypes = []
322  (_etype10, _size7) = iprot.readListBegin()
323  for _i11 in range(_size7):
324  _elem12 = iprot.readI32()
325  self.inputArgTypes.append(_elem12)
326  iprot.readListEnd()
327  else:
328  iprot.skip(ftype)
329  elif fid == 5:
330  if ftype == TType.LIST:
331  self.outputArgTypes = []
332  (_etype16, _size13) = iprot.readListBegin()
333  for _i17 in range(_size13):
334  _elem18 = iprot.readI32()
335  self.outputArgTypes.append(_elem18)
336  iprot.readListEnd()
337  else:
338  iprot.skip(ftype)
339  elif fid == 6:
340  if ftype == TType.LIST:
341  self.sqlArgTypes = []
342  (_etype22, _size19) = iprot.readListBegin()
343  for _i23 in range(_size19):
344  _elem24 = iprot.readI32()
345  self.sqlArgTypes.append(_elem24)
346  iprot.readListEnd()
347  else:
348  iprot.skip(ftype)
349  elif fid == 7:
350  if ftype == TType.LIST:
351  self.annotations = []
352  (_etype28, _size25) = iprot.readListBegin()
353  for _i29 in range(_size25):
354  _elem30 = {}
355  (_ktype32, _vtype33, _size31) = iprot.readMapBegin()
356  for _i35 in range(_size31):
357  _key36 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
358  _val37 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
359  _elem30[_key36] = _val37
360  iprot.readMapEnd()
361  self.annotations.append(_elem30)
362  iprot.readListEnd()
363  else:
364  iprot.skip(ftype)
365  else:
366  iprot.skip(ftype)
367  iprot.readFieldEnd()
368  iprot.readStructEnd()
def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.validate (   self)

Definition at line 421 of file ttypes.py.

422  def validate(self):
423  return
def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.write (   self,
  oprot 
)

Definition at line 369 of file ttypes.py.

References omnisci.extension_functions.ttypes.TUserDefinedTableFunction.annotations, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.inputArgTypes, com.mapd.parser.extension.ddl.omnisql.OmniSqlTypeNameSpec.name, com.mapd.parser.extension.ddl.omnisql.OmniSqlColumn.name, com.mapd.parser.extension.ddl.SqlDropUser.name, com.mapd.parser.extension.ddl.SqlDropDB.name, com.mapd.parser.extension.ddl.SqlRenameDB.name, com.mapd.parser.extension.ddl.SqlRenameUser.name, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.name, com.mapd.parser.extension.ddl.SqlCreateDB.name, com.mapd.parser.extension.ddl.SqlCreateUser.name, com.mapd.parser.extension.ddl.SqlAlterUser.name, foreign_storage::ForeignServer.name, com.mapd.parser.extension.ddl.SqlCreateDataframe.name, com.mapd.parser.extension.ddl.SqlInsertIntoTable.name, com.mapd.parser.extension.ddl.SqlCheckConstraint.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.name, com.mapd.parser.extension.ddl.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlKeyConstraint.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlColumnDeclaration.name, Catalog_Namespace::CustomExpression.name, omnisci.extension_functions.ttypes.TUserDefinedFunction.name, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.outputArgTypes, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sizerArgPos, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sizerType, and omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sqlArgTypes.

370  def write(self, oprot):
371  if oprot._fast_encode is not None and self.thrift_spec is not None:
372  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
373  return
374  oprot.writeStructBegin('TUserDefinedTableFunction')
375  if self.name is not None:
376  oprot.writeFieldBegin('name', TType.STRING, 1)
377  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
378  oprot.writeFieldEnd()
379  if self.sizerType is not None:
380  oprot.writeFieldBegin('sizerType', TType.I32, 2)
381  oprot.writeI32(self.sizerType)
382  oprot.writeFieldEnd()
383  if self.sizerArgPos is not None:
384  oprot.writeFieldBegin('sizerArgPos', TType.I32, 3)
385  oprot.writeI32(self.sizerArgPos)
386  oprot.writeFieldEnd()
387  if self.inputArgTypes is not None:
388  oprot.writeFieldBegin('inputArgTypes', TType.LIST, 4)
389  oprot.writeListBegin(TType.I32, len(self.inputArgTypes))
390  for iter38 in self.inputArgTypes:
391  oprot.writeI32(iter38)
392  oprot.writeListEnd()
393  oprot.writeFieldEnd()
394  if self.outputArgTypes is not None:
395  oprot.writeFieldBegin('outputArgTypes', TType.LIST, 5)
396  oprot.writeListBegin(TType.I32, len(self.outputArgTypes))
397  for iter39 in self.outputArgTypes:
398  oprot.writeI32(iter39)
399  oprot.writeListEnd()
400  oprot.writeFieldEnd()
401  if self.sqlArgTypes is not None:
402  oprot.writeFieldBegin('sqlArgTypes', TType.LIST, 6)
403  oprot.writeListBegin(TType.I32, len(self.sqlArgTypes))
404  for iter40 in self.sqlArgTypes:
405  oprot.writeI32(iter40)
406  oprot.writeListEnd()
407  oprot.writeFieldEnd()
408  if self.annotations is not None:
409  oprot.writeFieldBegin('annotations', TType.LIST, 7)
410  oprot.writeListBegin(TType.MAP, len(self.annotations))
411  for iter41 in self.annotations:
412  oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter41))
413  for kiter42, viter43 in iter41.items():
414  oprot.writeString(kiter42.encode('utf-8') if sys.version_info[0] == 2 else kiter42)
415  oprot.writeString(viter43.encode('utf-8') if sys.version_info[0] == 2 else viter43)
416  oprot.writeMapEnd()
417  oprot.writeListEnd()
418  oprot.writeFieldEnd()
419  oprot.writeFieldStop()
420  oprot.writeStructEnd()

Member Data Documentation

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.__dict__
private

Definition at line 430 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.annotations

Definition at line 292 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.UdtfNode.__iter__(), generate_TableFunctionsFactory_init.ArgNode.__iter__(), generate_TableFunctionsFactory_init.Declaration.__repr__(), generate_TableFunctionsFactory_init.Declaration.__str__(), generate_TableFunctionsFactory_init.UdtfNode.__str__(), generate_TableFunctionsFactory_init.ArgNode.__str__(), generate_TableFunctionsFactory_init.Declaration.apply_column(), generate_TableFunctionsFactory_init.Declaration.apply_namespace(), generate_TableFunctionsFactory_init.ArgNode.get_annotation(), omnisci.extension_functions.ttypes.TUserDefinedTableFunction.read(), and omnisci.extension_functions.ttypes.TUserDefinedTableFunction.write().

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.inputArgTypes

Definition at line 289 of file ttypes.py.

Referenced by omnisci.extension_functions.ttypes.TUserDefinedTableFunction.read(), and omnisci.extension_functions.ttypes.TUserDefinedTableFunction.write().

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.name

Definition at line 286 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Bracket.__repr__(), generate_TableFunctionsFactory_init.Bracket.__str__(), generate_TableFunctionsFactory_init.UdtfNode.__str__(), generate_TableFunctionsFactory_init.Bracket.apply_column(), generate_TableFunctionsFactory_init.Bracket.apply_namespace(), generate_TableFunctionsFactory_init.Bracket.normalize(), omnisci.extension_functions.ttypes.TUserDefinedTableFunction.read(), omnisci.thrift.ttypes.TDashboardGrantees.read(), omnisci.thrift.ttypes.TGeoFileLayerInfo.read(), omnisci.thrift.ttypes.TCustomExpression.read(), generate_TableFunctionsFactory_init.Bracket.tostring(), omnisci.extension_functions.ttypes.TUserDefinedTableFunction.write(), omnisci.thrift.ttypes.TDashboardGrantees.write(), omnisci.thrift.ttypes.TGeoFileLayerInfo.write(), and omnisci.thrift.ttypes.TCustomExpression.write().

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.outputArgTypes

Definition at line 290 of file ttypes.py.

Referenced by omnisci.extension_functions.ttypes.TUserDefinedTableFunction.read(), and omnisci.extension_functions.ttypes.TUserDefinedTableFunction.write().

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sizerArgPos

Definition at line 288 of file ttypes.py.

Referenced by omnisci.extension_functions.ttypes.TUserDefinedTableFunction.read(), and omnisci.extension_functions.ttypes.TUserDefinedTableFunction.write().

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sizerType

Definition at line 287 of file ttypes.py.

Referenced by omnisci.extension_functions.ttypes.TUserDefinedTableFunction.read(), and omnisci.extension_functions.ttypes.TUserDefinedTableFunction.write().

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sqlArgTypes

Definition at line 291 of file ttypes.py.

Referenced by omnisci.extension_functions.ttypes.TUserDefinedTableFunction.read(), and omnisci.extension_functions.ttypes.TUserDefinedTableFunction.write().


The documentation for this class was generated from the following file: