OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.extension_functions.ttypes.TUserDefinedTableFunction Class Reference
+ Inheritance diagram for heavydb.extension_functions.ttypes.TUserDefinedTableFunction:
+ Collaboration diagram for heavydb.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 280 of file ttypes.py.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 438 of file ttypes.py.

439  def __eq__(self, other):
440  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.extension_functions.ttypes.TUserDefinedTableFunction.__ne__ (   self,
  other 
)

Definition at line 441 of file ttypes.py.

442  def __ne__(self, other):
443  return not (self == other)
444 all_structs.append(TUserDefinedFunction)
TUserDefinedFunction.thrift_spec = (
def heavydb.extension_functions.ttypes.TUserDefinedTableFunction.__repr__ (   self)

Definition at line 433 of file ttypes.py.

434  def __repr__(self):
435  L = ['%s=%r' % (key, value)
436  for key, value in self.__dict__.items()]
437  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 heavydb.extension_functions.ttypes.TUserDefinedTableFunction.read (   self,
  iprot 
)

Definition at line 303 of file ttypes.py.

References heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.inputArgTypes, com.mapd.parser.extension.ddl.heavysql.HeavySqlTypeNameSpec.name, com.mapd.parser.extension.ddl.heavysql.HeavySqlColumn.name, com.mapd.parser.extension.ddl.SqlInsertValues.name, com.mapd.parser.extension.ddl.SqlDropUser.name, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.name, com.mapd.parser.extension.ddl.SqlDropDB.name, com.mapd.parser.extension.ddl.SqlRenameDB.name, com.mapd.parser.extension.ddl.SqlRenameUser.name, com.mapd.parser.extension.ddl.SqlCreateUser.name, com.mapd.parser.extension.ddl.SqlAlterUser.name, com.mapd.parser.extension.ddl.SqlCreateDB.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.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.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, benchmarks.StringDictionaryBenchmark.name, import_export::RasterImporter::ImportBandInfo.name, heavydb.extension_functions.ttypes.TUserDefinedFunction.name, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.outputArgTypes, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.sizerArgPos, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.sizerType, and heavydb.extension_functions.ttypes.TUserDefinedTableFunction.sqlArgTypes.

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

Definition at line 430 of file ttypes.py.

431  def validate(self):
432  return
def heavydb.extension_functions.ttypes.TUserDefinedTableFunction.write (   self,
  oprot 
)

Definition at line 378 of file ttypes.py.

References heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.inputArgTypes, com.mapd.parser.extension.ddl.heavysql.HeavySqlTypeNameSpec.name, com.mapd.parser.extension.ddl.heavysql.HeavySqlColumn.name, com.mapd.parser.extension.ddl.SqlInsertValues.name, com.mapd.parser.extension.ddl.SqlDropUser.name, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.name, com.mapd.parser.extension.ddl.SqlDropDB.name, com.mapd.parser.extension.ddl.SqlRenameDB.name, com.mapd.parser.extension.ddl.SqlRenameUser.name, com.mapd.parser.extension.ddl.SqlCreateUser.name, com.mapd.parser.extension.ddl.SqlAlterUser.name, com.mapd.parser.extension.ddl.SqlCreateDB.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.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.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, benchmarks.StringDictionaryBenchmark.name, import_export::RasterImporter::ImportBandInfo.name, heavydb.extension_functions.ttypes.TUserDefinedFunction.name, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.outputArgTypes, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.sizerArgPos, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.sizerType, and heavydb.extension_functions.ttypes.TUserDefinedTableFunction.sqlArgTypes.

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

Member Data Documentation

heavydb.extension_functions.ttypes.TUserDefinedTableFunction.__dict__
private

Definition at line 439 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations

Definition at line 301 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.Declaration.format_cpp_type(), generate_TableFunctionsFactory_init.ArgNode.get_annotation(), heavydb.extension_functions.ttypes.TUserDefinedTableFunction.read(), and heavydb.extension_functions.ttypes.TUserDefinedTableFunction.write().

heavydb.extension_functions.ttypes.TUserDefinedTableFunction.inputArgTypes

Definition at line 298 of file ttypes.py.

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

heavydb.extension_functions.ttypes.TUserDefinedTableFunction.name

Definition at line 295 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.format_sizer(), generate_TableFunctionsFactory_init.Bracket.normalize(), heavydb.extension_functions.ttypes.TUserDefinedTableFunction.read(), heavydb.thrift.ttypes.TDashboardGrantees.read(), heavydb.thrift.ttypes.TGeoFileLayerInfo.read(), heavydb.thrift.ttypes.TCustomExpression.read(), generate_TableFunctionsFactory_init.Bracket.tostring(), heavydb.extension_functions.ttypes.TUserDefinedTableFunction.write(), heavydb.thrift.ttypes.TDashboardGrantees.write(), heavydb.thrift.ttypes.TGeoFileLayerInfo.write(), and heavydb.thrift.ttypes.TCustomExpression.write().

heavydb.extension_functions.ttypes.TUserDefinedTableFunction.outputArgTypes

Definition at line 299 of file ttypes.py.

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

heavydb.extension_functions.ttypes.TUserDefinedTableFunction.sizerArgPos

Definition at line 297 of file ttypes.py.

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

heavydb.extension_functions.ttypes.TUserDefinedTableFunction.sizerType

Definition at line 296 of file ttypes.py.

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

heavydb.extension_functions.ttypes.TUserDefinedTableFunction.sqlArgTypes

Definition at line 300 of file ttypes.py.

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


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