OmniSciDB  a7179b2938
 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 148 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 228 of file ttypes.py.

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

Definition at line 231 of file ttypes.py.

232  def __ne__(self, other):
233  return not (self == other)
234 
def omnisci.extension_functions.ttypes.TUserDefinedFunction.__repr__ (   self)

Definition at line 223 of file ttypes.py.

224  def __repr__(self):
225  L = ['%s=%r' % (key, value)
226  for key, value in self.__dict__.items()]
227  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 163 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, com.mapd.parser.extension.ddl.SqlCheckConstraint.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.name, com.mapd.parser.extension.ddl.SqlKeyConstraint.name, foreign_storage::ForeignServer.name, com.mapd.parser.extension.ddl.SqlColumnDeclaration.name, omnisci.extension_functions.ttypes.TUserDefinedFunction.name, Parser::FunctionRef.name, import_export::Importer::GeoFileLayerInfo.name, Parser::NameValueAssign.name, and omnisci.extension_functions.ttypes.TUserDefinedFunction.retType.

164  def read(self, iprot):
165  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
166  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
167  return
168  iprot.readStructBegin()
169  while True:
170  (fname, ftype, fid) = iprot.readFieldBegin()
171  if ftype == TType.STOP:
172  break
173  if fid == 1:
174  if ftype == TType.STRING:
175  self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
176  else:
177  iprot.skip(ftype)
178  elif fid == 2:
179  if ftype == TType.LIST:
180  self.argTypes = []
181  (_etype3, _size0) = iprot.readListBegin()
182  for _i4 in range(_size0):
183  _elem5 = iprot.readI32()
184  self.argTypes.append(_elem5)
185  iprot.readListEnd()
186  else:
187  iprot.skip(ftype)
188  elif fid == 3:
189  if ftype == TType.I32:
190  self.retType = iprot.readI32()
191  else:
192  iprot.skip(ftype)
193  else:
194  iprot.skip(ftype)
195  iprot.readFieldEnd()
196  iprot.readStructEnd()
def omnisci.extension_functions.ttypes.TUserDefinedFunction.validate (   self)

Definition at line 220 of file ttypes.py.

221  def validate(self):
222  return
def omnisci.extension_functions.ttypes.TUserDefinedFunction.write (   self,
  oprot 
)

Definition at line 197 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, com.mapd.parser.extension.ddl.SqlCheckConstraint.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.name, com.mapd.parser.extension.ddl.SqlKeyConstraint.name, foreign_storage::ForeignServer.name, com.mapd.parser.extension.ddl.SqlColumnDeclaration.name, omnisci.extension_functions.ttypes.TUserDefinedFunction.name, Parser::FunctionRef.name, import_export::Importer::GeoFileLayerInfo.name, Parser::NameValueAssign.name, and omnisci.extension_functions.ttypes.TUserDefinedFunction.retType.

198  def write(self, oprot):
199  if oprot._fast_encode is not None and self.thrift_spec is not None:
200  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
201  return
202  oprot.writeStructBegin('TUserDefinedFunction')
203  if self.name is not None:
204  oprot.writeFieldBegin('name', TType.STRING, 1)
205  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
206  oprot.writeFieldEnd()
207  if self.argTypes is not None:
208  oprot.writeFieldBegin('argTypes', TType.LIST, 2)
209  oprot.writeListBegin(TType.I32, len(self.argTypes))
210  for iter6 in self.argTypes:
211  oprot.writeI32(iter6)
212  oprot.writeListEnd()
213  oprot.writeFieldEnd()
214  if self.retType is not None:
215  oprot.writeFieldBegin('retType', TType.I32, 3)
216  oprot.writeI32(self.retType)
217  oprot.writeFieldEnd()
218  oprot.writeFieldStop()
219  oprot.writeStructEnd()

Member Data Documentation

omnisci.extension_functions.ttypes.TUserDefinedFunction.__dict__
private

Definition at line 229 of file ttypes.py.

omnisci.extension_functions.ttypes.TUserDefinedFunction.argTypes

Definition at line 160 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 159 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 161 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: