OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 160 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 240 of file ttypes.py.

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

Definition at line 243 of file ttypes.py.

244  def __ne__(self, other):
245  return not (self == other)
246 
def omnisci.extension_functions.ttypes.TUserDefinedFunction.__repr__ (   self)

Definition at line 235 of file ttypes.py.

236  def __repr__(self):
237  L = ['%s=%r' % (key, value)
238  for key, value in self.__dict__.items()]
239  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 175 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.omnisci.jdbc.OmniSciColumnTypeTest.Answer.name, foreign_storage::ForeignServer.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.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, Parser::FunctionRef.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, Parser::NameValueAssign.name, and omnisci.extension_functions.ttypes.TUserDefinedFunction.retType.

176  def read(self, iprot):
177  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
178  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
179  return
180  iprot.readStructBegin()
181  while True:
182  (fname, ftype, fid) = iprot.readFieldBegin()
183  if ftype == TType.STOP:
184  break
185  if fid == 1:
186  if ftype == TType.STRING:
187  self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
188  else:
189  iprot.skip(ftype)
190  elif fid == 2:
191  if ftype == TType.LIST:
192  self.argTypes = []
193  (_etype3, _size0) = iprot.readListBegin()
194  for _i4 in range(_size0):
195  _elem5 = iprot.readI32()
196  self.argTypes.append(_elem5)
197  iprot.readListEnd()
198  else:
199  iprot.skip(ftype)
200  elif fid == 3:
201  if ftype == TType.I32:
202  self.retType = iprot.readI32()
203  else:
204  iprot.skip(ftype)
205  else:
206  iprot.skip(ftype)
207  iprot.readFieldEnd()
208  iprot.readStructEnd()
def omnisci.extension_functions.ttypes.TUserDefinedFunction.validate (   self)

Definition at line 232 of file ttypes.py.

233  def validate(self):
234  return
def omnisci.extension_functions.ttypes.TUserDefinedFunction.write (   self,
  oprot 
)

Definition at line 209 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.omnisci.jdbc.OmniSciColumnTypeTest.Answer.name, foreign_storage::ForeignServer.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.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, Parser::FunctionRef.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, Parser::NameValueAssign.name, and omnisci.extension_functions.ttypes.TUserDefinedFunction.retType.

210  def write(self, oprot):
211  if oprot._fast_encode is not None and self.thrift_spec is not None:
212  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
213  return
214  oprot.writeStructBegin('TUserDefinedFunction')
215  if self.name is not None:
216  oprot.writeFieldBegin('name', TType.STRING, 1)
217  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
218  oprot.writeFieldEnd()
219  if self.argTypes is not None:
220  oprot.writeFieldBegin('argTypes', TType.LIST, 2)
221  oprot.writeListBegin(TType.I32, len(self.argTypes))
222  for iter6 in self.argTypes:
223  oprot.writeI32(iter6)
224  oprot.writeListEnd()
225  oprot.writeFieldEnd()
226  if self.retType is not None:
227  oprot.writeFieldBegin('retType', TType.I32, 3)
228  oprot.writeI32(self.retType)
229  oprot.writeFieldEnd()
230  oprot.writeFieldStop()
231  oprot.writeStructEnd()

Member Data Documentation

omnisci.extension_functions.ttypes.TUserDefinedFunction.__dict__
private

Definition at line 241 of file ttypes.py.

omnisci.extension_functions.ttypes.TUserDefinedFunction.argTypes

Definition at line 172 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 171 of file ttypes.py.

Referenced by omnisci.extension_functions.ttypes.TUserDefinedFunction.read(), omnisci.extension_functions.ttypes.TUserDefinedTableFunction.read(), omnisci.thrift.ttypes.TDashboardGrantees.read(), omnisci.thrift.ttypes.TGeoFileLayerInfo.read(), omnisci.extension_functions.ttypes.TUserDefinedFunction.write(), omnisci.extension_functions.ttypes.TUserDefinedTableFunction.write(), omnisci.thrift.ttypes.TDashboardGrantees.write(), and omnisci.thrift.ttypes.TGeoFileLayerInfo.write().

omnisci.extension_functions.ttypes.TUserDefinedFunction.retType

Definition at line 173 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: