OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
omnisci.extension_functions.ttypes.TUserDefinedFunction Class Reference
+ Inheritance diagram for omnisci.extension_functions.ttypes.TUserDefinedFunction:
+ Collaboration diagram for omnisci.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 184 of file ttypes.py.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 264 of file ttypes.py.

265  def __eq__(self, other):
266  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.extension_functions.ttypes.TUserDefinedFunction.__ne__ (   self,
  other 
)

Definition at line 267 of file ttypes.py.

268  def __ne__(self, other):
269  return not (self == other)
270 
def omnisci.extension_functions.ttypes.TUserDefinedFunction.__repr__ (   self)

Definition at line 259 of file ttypes.py.

260  def __repr__(self):
261  L = ['%s=%r' % (key, value)
262  for key, value in self.__dict__.items()]
263  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 omnisci.extension_functions.ttypes.TUserDefinedFunction.read (   self,
  iprot 
)

Definition at line 199 of file ttypes.py.

References omnisci.extension_functions.ttypes.TUserDefinedFunction.argTypes, com.mapd.parser.extension.ddl.omnisql.OmniSqlTypeNameSpec.name, com.mapd.parser.extension.ddl.omnisql.OmniSqlColumn.name, com.mapd.parser.extension.ddl.SqlDropUser.name, com.mapd.parser.extension.ddl.SqlDropDB.name, com.mapd.parser.extension.ddl.SqlRenameDB.name, com.mapd.parser.extension.ddl.SqlRenameUser.name, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.name, com.mapd.parser.extension.ddl.SqlCreateDB.name, com.mapd.parser.extension.ddl.SqlAlterUser.name, com.mapd.parser.extension.ddl.SqlCreateUser.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.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, omnisci.extension_functions.ttypes.TUserDefinedFunction.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, and omnisci.extension_functions.ttypes.TUserDefinedFunction.retType.

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

Definition at line 256 of file ttypes.py.

257  def validate(self):
258  return
def omnisci.extension_functions.ttypes.TUserDefinedFunction.write (   self,
  oprot 
)

Definition at line 233 of file ttypes.py.

References omnisci.extension_functions.ttypes.TUserDefinedFunction.argTypes, com.mapd.parser.extension.ddl.omnisql.OmniSqlTypeNameSpec.name, com.mapd.parser.extension.ddl.omnisql.OmniSqlColumn.name, com.mapd.parser.extension.ddl.SqlDropUser.name, com.mapd.parser.extension.ddl.SqlDropDB.name, com.mapd.parser.extension.ddl.SqlRenameDB.name, com.mapd.parser.extension.ddl.SqlRenameUser.name, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.name, com.mapd.parser.extension.ddl.SqlCreateDB.name, com.mapd.parser.extension.ddl.SqlAlterUser.name, com.mapd.parser.extension.ddl.SqlCreateUser.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.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, omnisci.extension_functions.ttypes.TUserDefinedFunction.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, and omnisci.extension_functions.ttypes.TUserDefinedFunction.retType.

234  def write(self, oprot):
235  if oprot._fast_encode is not None and self.thrift_spec is not None:
236  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
237  return
238  oprot.writeStructBegin('TUserDefinedFunction')
239  if self.name is not None:
240  oprot.writeFieldBegin('name', TType.STRING, 1)
241  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
242  oprot.writeFieldEnd()
243  if self.argTypes is not None:
244  oprot.writeFieldBegin('argTypes', TType.LIST, 2)
245  oprot.writeListBegin(TType.I32, len(self.argTypes))
246  for iter6 in self.argTypes:
247  oprot.writeI32(iter6)
248  oprot.writeListEnd()
249  oprot.writeFieldEnd()
250  if self.retType is not None:
251  oprot.writeFieldBegin('retType', TType.I32, 3)
252  oprot.writeI32(self.retType)
253  oprot.writeFieldEnd()
254  oprot.writeFieldStop()
255  oprot.writeStructEnd()

Member Data Documentation

omnisci.extension_functions.ttypes.TUserDefinedFunction.__dict__
private

Definition at line 265 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

omnisci.extension_functions.ttypes.TUserDefinedFunction.argTypes

Definition at line 196 of file ttypes.py.

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

omnisci.extension_functions.ttypes.TUserDefinedFunction.name

Definition at line 195 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.normalize(), omnisci.extension_functions.ttypes.TUserDefinedFunction.read(), omnisci.extension_functions.ttypes.TUserDefinedTableFunction.read(), omnisci.thrift.ttypes.TDashboardGrantees.read(), omnisci.thrift.ttypes.TGeoFileLayerInfo.read(), omnisci.thrift.ttypes.TCustomExpression.read(), generate_TableFunctionsFactory_init.Bracket.tostring(), omnisci.extension_functions.ttypes.TUserDefinedFunction.write(), omnisci.extension_functions.ttypes.TUserDefinedTableFunction.write(), omnisci.thrift.ttypes.TDashboardGrantees.write(), omnisci.thrift.ttypes.TGeoFileLayerInfo.write(), and omnisci.thrift.ttypes.TCustomExpression.write().

omnisci.extension_functions.ttypes.TUserDefinedFunction.retType

Definition at line 197 of file ttypes.py.

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


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