OmniSciDB  a987f07e93
 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 6828 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 6842 of file ttypes.py.

6843  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,):
6844  self.id = id
6845  self.name = name
6846  self.expression_json = expression_json
6847  self.data_source_type = data_source_type
6848  self.data_source_id = data_source_id
6849  self.is_deleted = is_deleted
6850  self.data_source_name = data_source_name

Member Function Documentation

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

Definition at line 6944 of file ttypes.py.

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

Definition at line 6947 of file ttypes.py.

6948  def __ne__(self, other):
6949  return not (self == other)
6950 
def heavydb.thrift.ttypes.TCustomExpression.__repr__ (   self)

Definition at line 6939 of file ttypes.py.

6940  def __repr__(self):
6941  L = ['%s=%r' % (key, value)
6942  for key, value in self.__dict__.items()]
6943  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 6851 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, org.apache.calcite.sql.validate.SqlValidatorImpl.IdInfo.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.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, 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, 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.

6852  def read(self, iprot):
6853  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6854  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6855  return
6856  iprot.readStructBegin()
6857  while True:
6858  (fname, ftype, fid) = iprot.readFieldBegin()
6859  if ftype == TType.STOP:
6860  break
6861  if fid == 1:
6862  if ftype == TType.I32:
6863  self.id = iprot.readI32()
6864  else:
6865  iprot.skip(ftype)
6866  elif fid == 2:
6867  if ftype == TType.STRING:
6868  self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6869  else:
6870  iprot.skip(ftype)
6871  elif fid == 4:
6872  if ftype == TType.STRING:
6873  self.expression_json = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6874  else:
6875  iprot.skip(ftype)
6876  elif fid == 5:
6877  if ftype == TType.I32:
6878  self.data_source_type = iprot.readI32()
6879  else:
6880  iprot.skip(ftype)
6881  elif fid == 6:
6882  if ftype == TType.I32:
6883  self.data_source_id = iprot.readI32()
6884  else:
6885  iprot.skip(ftype)
6886  elif fid == 7:
6887  if ftype == TType.BOOL:
6888  self.is_deleted = iprot.readBool()
6889  else:
6890  iprot.skip(ftype)
6891  elif fid == 8:
6892  if ftype == TType.STRING:
6893  self.data_source_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6894  else:
6895  iprot.skip(ftype)
6896  else:
6897  iprot.skip(ftype)
6898  iprot.readFieldEnd()
6899  iprot.readStructEnd()
def heavydb.thrift.ttypes.TCustomExpression.validate (   self)

Definition at line 6936 of file ttypes.py.

6937  def validate(self):
6938  return
def heavydb.thrift.ttypes.TCustomExpression.write (   self,
  oprot 
)

Definition at line 6900 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, org.apache.calcite.sql.validate.SqlValidatorImpl.IdInfo.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.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, 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, 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.

6901  def write(self, oprot):
6902  if oprot._fast_encode is not None and self.thrift_spec is not None:
6903  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6904  return
6905  oprot.writeStructBegin('TCustomExpression')
6906  if self.id is not None:
6907  oprot.writeFieldBegin('id', TType.I32, 1)
6908  oprot.writeI32(self.id)
6909  oprot.writeFieldEnd()
6910  if self.name is not None:
6911  oprot.writeFieldBegin('name', TType.STRING, 2)
6912  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
6913  oprot.writeFieldEnd()
6914  if self.expression_json is not None:
6915  oprot.writeFieldBegin('expression_json', TType.STRING, 4)
6916  oprot.writeString(self.expression_json.encode('utf-8') if sys.version_info[0] == 2 else self.expression_json)
6917  oprot.writeFieldEnd()
6918  if self.data_source_type is not None:
6919  oprot.writeFieldBegin('data_source_type', TType.I32, 5)
6920  oprot.writeI32(self.data_source_type)
6921  oprot.writeFieldEnd()
6922  if self.data_source_id is not None:
6923  oprot.writeFieldBegin('data_source_id', TType.I32, 6)
6924  oprot.writeI32(self.data_source_id)
6925  oprot.writeFieldEnd()
6926  if self.is_deleted is not None:
6927  oprot.writeFieldBegin('is_deleted', TType.BOOL, 7)
6928  oprot.writeBool(self.is_deleted)
6929  oprot.writeFieldEnd()
6930  if self.data_source_name is not None:
6931  oprot.writeFieldBegin('data_source_name', TType.STRING, 8)
6932  oprot.writeString(self.data_source_name.encode('utf-8') if sys.version_info[0] == 2 else self.data_source_name)
6933  oprot.writeFieldEnd()
6934  oprot.writeFieldStop()
6935  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TCustomExpression.__dict__
private

Definition at line 6945 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TCustomExpression.data_source_id

Definition at line 6847 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 6849 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 6846 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 6845 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 6843 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 6848 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 6844 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: