OmniSciDB  72c90bc290
 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 6993 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 7007 of file ttypes.py.

7008  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,):
7009  self.id = id
7010  self.name = name
7011  self.expression_json = expression_json
7012  self.data_source_type = data_source_type
7013  self.data_source_id = data_source_id
7014  self.is_deleted = is_deleted
7015  self.data_source_name = data_source_name

Member Function Documentation

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

Definition at line 7109 of file ttypes.py.

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

Definition at line 7112 of file ttypes.py.

7113  def __ne__(self, other):
7114  return not (self == other)
7115 
def heavydb.thrift.ttypes.TCustomExpression.__repr__ (   self)

Definition at line 7104 of file ttypes.py.

7105  def __repr__(self):
7106  L = ['%s=%r' % (key, value)
7107  for key, value in self.__dict__.items()]
7108  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 7016 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.SqlKeyConstraint.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlCreateModel.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.

7017  def read(self, iprot):
7018  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
7019  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7020  return
7021  iprot.readStructBegin()
7022  while True:
7023  (fname, ftype, fid) = iprot.readFieldBegin()
7024  if ftype == TType.STOP:
7025  break
7026  if fid == 1:
7027  if ftype == TType.I32:
7028  self.id = iprot.readI32()
7029  else:
7030  iprot.skip(ftype)
7031  elif fid == 2:
7032  if ftype == TType.STRING:
7033  self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7034  else:
7035  iprot.skip(ftype)
7036  elif fid == 4:
7037  if ftype == TType.STRING:
7038  self.expression_json = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7039  else:
7040  iprot.skip(ftype)
7041  elif fid == 5:
7042  if ftype == TType.I32:
7043  self.data_source_type = iprot.readI32()
7044  else:
7045  iprot.skip(ftype)
7046  elif fid == 6:
7047  if ftype == TType.I32:
7048  self.data_source_id = iprot.readI32()
7049  else:
7050  iprot.skip(ftype)
7051  elif fid == 7:
7052  if ftype == TType.BOOL:
7053  self.is_deleted = iprot.readBool()
7054  else:
7055  iprot.skip(ftype)
7056  elif fid == 8:
7057  if ftype == TType.STRING:
7058  self.data_source_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7059  else:
7060  iprot.skip(ftype)
7061  else:
7062  iprot.skip(ftype)
7063  iprot.readFieldEnd()
7064  iprot.readStructEnd()
def heavydb.thrift.ttypes.TCustomExpression.validate (   self)

Definition at line 7101 of file ttypes.py.

7102  def validate(self):
7103  return
def heavydb.thrift.ttypes.TCustomExpression.write (   self,
  oprot 
)

Definition at line 7065 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.SqlKeyConstraint.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlCreateModel.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.

7066  def write(self, oprot):
7067  if oprot._fast_encode is not None and self.thrift_spec is not None:
7068  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7069  return
7070  oprot.writeStructBegin('TCustomExpression')
7071  if self.id is not None:
7072  oprot.writeFieldBegin('id', TType.I32, 1)
7073  oprot.writeI32(self.id)
7074  oprot.writeFieldEnd()
7075  if self.name is not None:
7076  oprot.writeFieldBegin('name', TType.STRING, 2)
7077  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
7078  oprot.writeFieldEnd()
7079  if self.expression_json is not None:
7080  oprot.writeFieldBegin('expression_json', TType.STRING, 4)
7081  oprot.writeString(self.expression_json.encode('utf-8') if sys.version_info[0] == 2 else self.expression_json)
7082  oprot.writeFieldEnd()
7083  if self.data_source_type is not None:
7084  oprot.writeFieldBegin('data_source_type', TType.I32, 5)
7085  oprot.writeI32(self.data_source_type)
7086  oprot.writeFieldEnd()
7087  if self.data_source_id is not None:
7088  oprot.writeFieldBegin('data_source_id', TType.I32, 6)
7089  oprot.writeI32(self.data_source_id)
7090  oprot.writeFieldEnd()
7091  if self.is_deleted is not None:
7092  oprot.writeFieldBegin('is_deleted', TType.BOOL, 7)
7093  oprot.writeBool(self.is_deleted)
7094  oprot.writeFieldEnd()
7095  if self.data_source_name is not None:
7096  oprot.writeFieldBegin('data_source_name', TType.STRING, 8)
7097  oprot.writeString(self.data_source_name.encode('utf-8') if sys.version_info[0] == 2 else self.data_source_name)
7098  oprot.writeFieldEnd()
7099  oprot.writeFieldStop()
7100  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TCustomExpression.__dict__
private

Definition at line 7110 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TCustomExpression.data_source_id

Definition at line 7012 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 7014 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 7011 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 7010 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 7008 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 7013 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 7009 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.thrift.ttypes.TCustomExpression.read(), TableFunctionsFactory_declbracket.Bracket.tostring(), and heavydb.thrift.ttypes.TCustomExpression.write().


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