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

Public Member Functions

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

Public Attributes

 name
 
 argTypes
 
 retType
 
 annotations
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - name
 - argTypes
 - retType
 - annotations

Definition at line 307 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.extension_functions.ttypes.TUserDefinedFunction.__init__ (   self,
  name = None,
  argTypes = None,
  retType = None,
  annotations = None 
)

Member Function Documentation

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

Definition at line 416 of file ttypes.py.

417  def __eq__(self, other):
418  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.extension_functions.ttypes.TUserDefinedFunction.__ne__ (   self,
  other 
)

Definition at line 419 of file ttypes.py.

420  def __ne__(self, other):
421  return not (self == other)
422 
def heavydb.extension_functions.ttypes.TUserDefinedFunction.__repr__ (   self)

Definition at line 411 of file ttypes.py.

412  def __repr__(self):
413  L = ['%s=%r' % (key, value)
414  for key, value in self.__dict__.items()]
415  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.TUserDefinedFunction.read (   self,
  iprot 
)

Definition at line 324 of file ttypes.py.

References heavydb.extension_functions.ttypes.TUserDefinedFunction.annotations, com.mapd.parser.server.ExtensionFunction.annotations, heavydb.extension_functions.ttypes.TUserDefinedFunction.argTypes, com.mapd.parser.extension.ddl.heavysql.HeavySqlTypeNameSpec.name, com.mapd.parser.extension.ddl.heavysql.HeavySqlColumn.name, com.mapd.parser.extension.ddl.SqlRenameUser.name, com.mapd.parser.extension.ddl.SqlInsertValues.name, com.mapd.parser.extension.ddl.SqlAlterUser.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.SqlCreateUser.name, com.mapd.parser.extension.ddl.SqlCreateDB.name, com.mapd.parser.extension.ddl.SqlInsertIntoTable.name, foreign_storage::ForeignServer.name, com.mapd.parser.extension.ddl.SqlCreateDataframe.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.SqlCreateModel.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlKeyConstraint.name, com.mapd.parser.extension.ddl.SqlColumnDeclaration.name, Catalog_Namespace::CustomExpression.name, org.apache.calcite.sql.SqlOperator.name, import_export::RasterImporter::ImportBandInfo.name, benchmarks.StringDictionaryBenchmark.name, benchmarks.TPC_DS_10GB.name, heavydb.extension_functions.ttypes.TUserDefinedFunction.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, and heavydb.extension_functions.ttypes.TUserDefinedFunction.retType.

325  def read(self, iprot):
326  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
327  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
328  return
329  iprot.readStructBegin()
330  while True:
331  (fname, ftype, fid) = iprot.readFieldBegin()
332  if ftype == TType.STOP:
333  break
334  if fid == 1:
335  if ftype == TType.STRING:
336  self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
337  else:
338  iprot.skip(ftype)
339  elif fid == 2:
340  if ftype == TType.LIST:
341  self.argTypes = []
342  (_etype3, _size0) = iprot.readListBegin()
343  for _i4 in range(_size0):
344  _elem5 = iprot.readI32()
345  self.argTypes.append(_elem5)
346  iprot.readListEnd()
347  else:
348  iprot.skip(ftype)
349  elif fid == 3:
350  if ftype == TType.I32:
351  self.retType = iprot.readI32()
352  else:
353  iprot.skip(ftype)
354  elif fid == 4:
355  if ftype == TType.LIST:
356  self.annotations = []
357  (_etype9, _size6) = iprot.readListBegin()
358  for _i10 in range(_size6):
359  _elem11 = {}
360  (_ktype13, _vtype14, _size12) = iprot.readMapBegin()
361  for _i16 in range(_size12):
362  _key17 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
363  _val18 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
364  _elem11[_key17] = _val18
365  iprot.readMapEnd()
366  self.annotations.append(_elem11)
367  iprot.readListEnd()
368  else:
369  iprot.skip(ftype)
370  else:
371  iprot.skip(ftype)
372  iprot.readFieldEnd()
373  iprot.readStructEnd()
def heavydb.extension_functions.ttypes.TUserDefinedFunction.validate (   self)

Definition at line 408 of file ttypes.py.

409  def validate(self):
410  return
def heavydb.extension_functions.ttypes.TUserDefinedFunction.write (   self,
  oprot 
)

Definition at line 374 of file ttypes.py.

References heavydb.extension_functions.ttypes.TUserDefinedFunction.annotations, com.mapd.parser.server.ExtensionFunction.annotations, heavydb.extension_functions.ttypes.TUserDefinedFunction.argTypes, com.mapd.parser.extension.ddl.heavysql.HeavySqlTypeNameSpec.name, com.mapd.parser.extension.ddl.heavysql.HeavySqlColumn.name, com.mapd.parser.extension.ddl.SqlRenameUser.name, com.mapd.parser.extension.ddl.SqlInsertValues.name, com.mapd.parser.extension.ddl.SqlAlterUser.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.SqlCreateUser.name, com.mapd.parser.extension.ddl.SqlCreateDB.name, com.mapd.parser.extension.ddl.SqlInsertIntoTable.name, foreign_storage::ForeignServer.name, com.mapd.parser.extension.ddl.SqlCreateDataframe.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.SqlCreateModel.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlKeyConstraint.name, com.mapd.parser.extension.ddl.SqlColumnDeclaration.name, Catalog_Namespace::CustomExpression.name, org.apache.calcite.sql.SqlOperator.name, import_export::RasterImporter::ImportBandInfo.name, benchmarks.StringDictionaryBenchmark.name, benchmarks.TPC_DS_10GB.name, heavydb.extension_functions.ttypes.TUserDefinedFunction.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, and heavydb.extension_functions.ttypes.TUserDefinedFunction.retType.

375  def write(self, oprot):
376  if oprot._fast_encode is not None and self.thrift_spec is not None:
377  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
378  return
379  oprot.writeStructBegin('TUserDefinedFunction')
380  if self.name is not None:
381  oprot.writeFieldBegin('name', TType.STRING, 1)
382  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
383  oprot.writeFieldEnd()
384  if self.argTypes is not None:
385  oprot.writeFieldBegin('argTypes', TType.LIST, 2)
386  oprot.writeListBegin(TType.I32, len(self.argTypes))
387  for iter19 in self.argTypes:
388  oprot.writeI32(iter19)
389  oprot.writeListEnd()
390  oprot.writeFieldEnd()
391  if self.retType is not None:
392  oprot.writeFieldBegin('retType', TType.I32, 3)
393  oprot.writeI32(self.retType)
394  oprot.writeFieldEnd()
395  if self.annotations is not None:
396  oprot.writeFieldBegin('annotations', TType.LIST, 4)
397  oprot.writeListBegin(TType.MAP, len(self.annotations))
398  for iter20 in self.annotations:
399  oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter20))
400  for kiter21, viter22 in iter20.items():
401  oprot.writeString(kiter21.encode('utf-8') if sys.version_info[0] == 2 else kiter21)
402  oprot.writeString(viter22.encode('utf-8') if sys.version_info[0] == 2 else viter22)
403  oprot.writeMapEnd()
404  oprot.writeListEnd()
405  oprot.writeFieldEnd()
406  oprot.writeFieldStop()
407  oprot.writeStructEnd()

Member Data Documentation

heavydb.extension_functions.ttypes.TUserDefinedFunction.__dict__
private

Definition at line 417 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.extension_functions.ttypes.TUserDefinedFunction.annotations

Definition at line 322 of file ttypes.py.

Referenced by TableFunctionsFactory_node.UdtfNode.__iter__(), TableFunctionsFactory_node.ArgNode.__iter__(), TableFunctionsFactory_declbracket.Declaration.__repr__(), TableFunctionsFactory_declbracket.Declaration.__str__(), TableFunctionsFactory_declbracket.Declaration.apply_column(), TableFunctionsFactory_declbracket.Declaration.apply_namespace(), TableFunctionsFactory_declbracket.Declaration.format_cpp_type(), TableFunctionsFactory_node.ArgNode.get_annotation(), heavydb.extension_functions.ttypes.TUserDefinedFunction.read(), heavydb.extension_functions.ttypes.TUserDefinedTableFunction.read(), TableFunctionsFactory_node.ArgNode.set_annotation(), heavydb.extension_functions.ttypes.TUserDefinedFunction.write(), and heavydb.extension_functions.ttypes.TUserDefinedTableFunction.write().

heavydb.extension_functions.ttypes.TUserDefinedFunction.argTypes

Definition at line 320 of file ttypes.py.

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

heavydb.extension_functions.ttypes.TUserDefinedFunction.name

Definition at line 319 of file ttypes.py.

Referenced by TableFunctionsFactory_declbracket.Bracket.__repr__(), TableFunctionsFactory_declbracket.Bracket.__str__(), TableFunctionsFactory_declbracket.Bracket.apply_column(), TableFunctionsFactory_declbracket.Bracket.apply_namespace(), TableFunctionsFactory_declbracket.Bracket.format_sizer(), TableFunctionsFactory_declbracket.Bracket.normalize(), heavydb.extension_functions.ttypes.TUserDefinedFunction.read(), heavydb.extension_functions.ttypes.TUserDefinedTableFunction.read(), heavydb.thrift.ttypes.TDashboardGrantees.read(), heavydb.thrift.ttypes.TGeoFileLayerInfo.read(), heavydb.thrift.ttypes.TCustomExpression.read(), TableFunctionsFactory_declbracket.Bracket.tostring(), heavydb.extension_functions.ttypes.TUserDefinedFunction.write(), 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.TUserDefinedFunction.retType

Definition at line 321 of file ttypes.py.

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


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