OmniSciDB  085a039ca4
 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
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - name
 - argTypes
 - retType

Definition at line 193 of file ttypes.py.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 273 of file ttypes.py.

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

Definition at line 276 of file ttypes.py.

277  def __ne__(self, other):
278  return not (self == other)
279 
def heavydb.extension_functions.ttypes.TUserDefinedFunction.__repr__ (   self)

Definition at line 268 of file ttypes.py.

269  def __repr__(self):
270  L = ['%s=%r' % (key, value)
271  for key, value in self.__dict__.items()]
272  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 208 of file ttypes.py.

References 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.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, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, and heavydb.extension_functions.ttypes.TUserDefinedFunction.retType.

209  def read(self, iprot):
210  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
211  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
212  return
213  iprot.readStructBegin()
214  while True:
215  (fname, ftype, fid) = iprot.readFieldBegin()
216  if ftype == TType.STOP:
217  break
218  if fid == 1:
219  if ftype == TType.STRING:
220  self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
221  else:
222  iprot.skip(ftype)
223  elif fid == 2:
224  if ftype == TType.LIST:
225  self.argTypes = []
226  (_etype3, _size0) = iprot.readListBegin()
227  for _i4 in range(_size0):
228  _elem5 = iprot.readI32()
229  self.argTypes.append(_elem5)
230  iprot.readListEnd()
231  else:
232  iprot.skip(ftype)
233  elif fid == 3:
234  if ftype == TType.I32:
235  self.retType = iprot.readI32()
236  else:
237  iprot.skip(ftype)
238  else:
239  iprot.skip(ftype)
240  iprot.readFieldEnd()
241  iprot.readStructEnd()
def heavydb.extension_functions.ttypes.TUserDefinedFunction.validate (   self)

Definition at line 265 of file ttypes.py.

266  def validate(self):
267  return
def heavydb.extension_functions.ttypes.TUserDefinedFunction.write (   self,
  oprot 
)

Definition at line 242 of file ttypes.py.

References 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.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, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, and heavydb.extension_functions.ttypes.TUserDefinedFunction.retType.

243  def write(self, oprot):
244  if oprot._fast_encode is not None and self.thrift_spec is not None:
245  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
246  return
247  oprot.writeStructBegin('TUserDefinedFunction')
248  if self.name is not None:
249  oprot.writeFieldBegin('name', TType.STRING, 1)
250  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
251  oprot.writeFieldEnd()
252  if self.argTypes is not None:
253  oprot.writeFieldBegin('argTypes', TType.LIST, 2)
254  oprot.writeListBegin(TType.I32, len(self.argTypes))
255  for iter6 in self.argTypes:
256  oprot.writeI32(iter6)
257  oprot.writeListEnd()
258  oprot.writeFieldEnd()
259  if self.retType is not None:
260  oprot.writeFieldBegin('retType', TType.I32, 3)
261  oprot.writeI32(self.retType)
262  oprot.writeFieldEnd()
263  oprot.writeFieldStop()
264  oprot.writeStructEnd()

Member Data Documentation

heavydb.extension_functions.ttypes.TUserDefinedFunction.__dict__
private

Definition at line 274 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.extension_functions.ttypes.TUserDefinedFunction.argTypes

Definition at line 205 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 204 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.TUserDefinedFunction.read(), 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.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 206 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: