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

Public Member Functions

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

Public Attributes

 id
 
 name
 
 expression_json
 
 data_source_type
 
 data_source_id
 
 is_deleted
 
 data_source_name
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - id
 - name
 - expression_json
 - data_source_type
 - data_source_id
 - is_deleted
 - data_source_name

Definition at line 6806 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TCustomExpression.__init__ (   self,
  id = None,
  name = None,
  expression_json = None,
  data_source_type = None,
  data_source_id = None,
  is_deleted = None,
  data_source_name = None 
)

Definition at line 6820 of file ttypes.py.

6821  def __init__(self, id=None, name=None, expression_json=None, data_source_type=None, data_source_id=None, is_deleted=None, data_source_name=None,):
6822  self.id = id
6823  self.name = name
6824  self.expression_json = expression_json
6825  self.data_source_type = data_source_type
6826  self.data_source_id = data_source_id
6827  self.is_deleted = is_deleted
6828  self.data_source_name = data_source_name

Member Function Documentation

def heavydb.thrift.ttypes.TCustomExpression.__eq__ (   self,
  other 
)

Definition at line 6922 of file ttypes.py.

6923  def __eq__(self, other):
6924  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TCustomExpression.__ne__ (   self,
  other 
)

Definition at line 6925 of file ttypes.py.

6926  def __ne__(self, other):
6927  return not (self == other)
6928 
def heavydb.thrift.ttypes.TCustomExpression.__repr__ (   self)

Definition at line 6917 of file ttypes.py.

6918  def __repr__(self):
6919  L = ['%s=%r' % (key, value)
6920  for key, value in self.__dict__.items()]
6921  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.thrift.ttypes.TCustomExpression.read (   self,
  iprot 
)

Definition at line 6829 of file ttypes.py.

References Catalog_Namespace::CustomExpression.data_source_id, heavydb.thrift.ttypes.TCustomExpression.data_source_id, heavydb.thrift.ttypes.TCustomExpression.data_source_name, Catalog_Namespace::CustomExpression.data_source_type, heavydb.thrift.ttypes.TCustomExpression.data_source_type, Catalog_Namespace::CustomExpression.expression_json, heavydb.thrift.ttypes.TCustomExpression.expression_json, heavydb.thrift.Heavy.update_custom_expression_args.expression_json, foreign_storage::ForeignServer.id, foreign_storage::UserMapping.id, Catalog_Namespace::CustomExpression.id, heavydb.thrift.ttypes.TPendingQuery.id, heavydb.thrift.ttypes.TPendingRenderQuery.id, heavydb.thrift.ttypes.TCustomExpression.id, heavydb.thrift.Heavy.update_custom_expression_args.id, Catalog_Namespace::CustomExpression.is_deleted, heavydb.thrift.ttypes.TCustomExpression.is_deleted, 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.SqlRenameDB.name, com.mapd.parser.extension.ddl.SqlInsertValues.name, com.mapd.parser.extension.ddl.SqlAlterUser.name, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.name, com.mapd.parser.extension.ddl.SqlDropUser.name, com.mapd.parser.extension.ddl.SqlDropDB.name, com.mapd.parser.extension.ddl.SqlCreateDB.name, com.mapd.parser.extension.ddl.SqlCreateUser.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.SqlAttributeDefinition.name, com.mapd.parser.extension.ddl.SqlCreateView.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, import_export::RasterImporter::ImportBandInfo.name, benchmarks.StringDictionaryBenchmark.name, benchmarks.TPC_DS_10GB.name, heavydb.extension_functions.ttypes.TUserDefinedFunction.name, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, heavydb.thrift.ttypes.TDashboardGrantees.name, heavydb.thrift.ttypes.TGeoFileLayerInfo.name, and heavydb.thrift.ttypes.TCustomExpression.name.

6830  def read(self, iprot):
6831  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6832  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6833  return
6834  iprot.readStructBegin()
6835  while True:
6836  (fname, ftype, fid) = iprot.readFieldBegin()
6837  if ftype == TType.STOP:
6838  break
6839  if fid == 1:
6840  if ftype == TType.I32:
6841  self.id = iprot.readI32()
6842  else:
6843  iprot.skip(ftype)
6844  elif fid == 2:
6845  if ftype == TType.STRING:
6846  self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6847  else:
6848  iprot.skip(ftype)
6849  elif fid == 4:
6850  if ftype == TType.STRING:
6851  self.expression_json = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6852  else:
6853  iprot.skip(ftype)
6854  elif fid == 5:
6855  if ftype == TType.I32:
6856  self.data_source_type = iprot.readI32()
6857  else:
6858  iprot.skip(ftype)
6859  elif fid == 6:
6860  if ftype == TType.I32:
6861  self.data_source_id = iprot.readI32()
6862  else:
6863  iprot.skip(ftype)
6864  elif fid == 7:
6865  if ftype == TType.BOOL:
6866  self.is_deleted = iprot.readBool()
6867  else:
6868  iprot.skip(ftype)
6869  elif fid == 8:
6870  if ftype == TType.STRING:
6871  self.data_source_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6872  else:
6873  iprot.skip(ftype)
6874  else:
6875  iprot.skip(ftype)
6876  iprot.readFieldEnd()
6877  iprot.readStructEnd()
def heavydb.thrift.ttypes.TCustomExpression.validate (   self)

Definition at line 6914 of file ttypes.py.

6915  def validate(self):
6916  return
def heavydb.thrift.ttypes.TCustomExpression.write (   self,
  oprot 
)

Definition at line 6878 of file ttypes.py.

References Catalog_Namespace::CustomExpression.data_source_id, heavydb.thrift.ttypes.TCustomExpression.data_source_id, heavydb.thrift.ttypes.TCustomExpression.data_source_name, Catalog_Namespace::CustomExpression.data_source_type, heavydb.thrift.ttypes.TCustomExpression.data_source_type, Catalog_Namespace::CustomExpression.expression_json, heavydb.thrift.ttypes.TCustomExpression.expression_json, heavydb.thrift.Heavy.update_custom_expression_args.expression_json, foreign_storage::ForeignServer.id, foreign_storage::UserMapping.id, Catalog_Namespace::CustomExpression.id, heavydb.thrift.ttypes.TPendingQuery.id, heavydb.thrift.ttypes.TPendingRenderQuery.id, heavydb.thrift.ttypes.TCustomExpression.id, heavydb.thrift.Heavy.update_custom_expression_args.id, Catalog_Namespace::CustomExpression.is_deleted, heavydb.thrift.ttypes.TCustomExpression.is_deleted, 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.SqlRenameDB.name, com.mapd.parser.extension.ddl.SqlInsertValues.name, com.mapd.parser.extension.ddl.SqlAlterUser.name, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.name, com.mapd.parser.extension.ddl.SqlDropUser.name, com.mapd.parser.extension.ddl.SqlDropDB.name, com.mapd.parser.extension.ddl.SqlCreateDB.name, com.mapd.parser.extension.ddl.SqlCreateUser.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.SqlAttributeDefinition.name, com.mapd.parser.extension.ddl.SqlCreateView.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, import_export::RasterImporter::ImportBandInfo.name, benchmarks.StringDictionaryBenchmark.name, benchmarks.TPC_DS_10GB.name, heavydb.extension_functions.ttypes.TUserDefinedFunction.name, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, heavydb.thrift.ttypes.TDashboardGrantees.name, heavydb.thrift.ttypes.TGeoFileLayerInfo.name, and heavydb.thrift.ttypes.TCustomExpression.name.

6879  def write(self, oprot):
6880  if oprot._fast_encode is not None and self.thrift_spec is not None:
6881  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6882  return
6883  oprot.writeStructBegin('TCustomExpression')
6884  if self.id is not None:
6885  oprot.writeFieldBegin('id', TType.I32, 1)
6886  oprot.writeI32(self.id)
6887  oprot.writeFieldEnd()
6888  if self.name is not None:
6889  oprot.writeFieldBegin('name', TType.STRING, 2)
6890  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
6891  oprot.writeFieldEnd()
6892  if self.expression_json is not None:
6893  oprot.writeFieldBegin('expression_json', TType.STRING, 4)
6894  oprot.writeString(self.expression_json.encode('utf-8') if sys.version_info[0] == 2 else self.expression_json)
6895  oprot.writeFieldEnd()
6896  if self.data_source_type is not None:
6897  oprot.writeFieldBegin('data_source_type', TType.I32, 5)
6898  oprot.writeI32(self.data_source_type)
6899  oprot.writeFieldEnd()
6900  if self.data_source_id is not None:
6901  oprot.writeFieldBegin('data_source_id', TType.I32, 6)
6902  oprot.writeI32(self.data_source_id)
6903  oprot.writeFieldEnd()
6904  if self.is_deleted is not None:
6905  oprot.writeFieldBegin('is_deleted', TType.BOOL, 7)
6906  oprot.writeBool(self.is_deleted)
6907  oprot.writeFieldEnd()
6908  if self.data_source_name is not None:
6909  oprot.writeFieldBegin('data_source_name', TType.STRING, 8)
6910  oprot.writeString(self.data_source_name.encode('utf-8') if sys.version_info[0] == 2 else self.data_source_name)
6911  oprot.writeFieldEnd()
6912  oprot.writeFieldStop()
6913  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TCustomExpression.__dict__
private

Definition at line 6923 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TCustomExpression.data_source_id

Definition at line 6825 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TCustomExpression.read(), and heavydb.thrift.ttypes.TCustomExpression.write().

heavydb.thrift.ttypes.TCustomExpression.data_source_name

Definition at line 6827 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TCustomExpression.read(), and heavydb.thrift.ttypes.TCustomExpression.write().

heavydb.thrift.ttypes.TCustomExpression.data_source_type

Definition at line 6824 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TCustomExpression.read(), and heavydb.thrift.ttypes.TCustomExpression.write().

heavydb.thrift.ttypes.TCustomExpression.expression_json

Definition at line 6823 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TCustomExpression.read(), and heavydb.thrift.ttypes.TCustomExpression.write().

heavydb.thrift.ttypes.TCustomExpression.id

Definition at line 6821 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TCustomExpression.read(), and heavydb.thrift.ttypes.TCustomExpression.write().

heavydb.thrift.ttypes.TCustomExpression.is_deleted

Definition at line 6826 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TCustomExpression.read(), and heavydb.thrift.ttypes.TCustomExpression.write().

heavydb.thrift.ttypes.TCustomExpression.name

Definition at line 6822 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.thrift.ttypes.TCustomExpression.read(), generate_TableFunctionsFactory_init.Bracket.tostring(), and heavydb.thrift.ttypes.TCustomExpression.write().


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