OmniSciDB  a575cb28ea
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.extension_functions.ttypes.TUserDefinedTableFunction Class Reference
+ Inheritance diagram for omnisci.extension_functions.ttypes.TUserDefinedTableFunction:
+ Collaboration diagram for omnisci.extension_functions.ttypes.TUserDefinedTableFunction:

Public Member Functions

def __init__
 
def read
 
def write
 
def validate
 
def __repr__
 
def __eq__
 
def __ne__
 

Public Attributes

 name
 
 sizerType
 
 sizerArgPos
 
 inputArgTypes
 
 outputArgTypes
 
 sqlArgTypes
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - name
 - sizerType
 - sizerArgPos
 - inputArgTypes
 - outputArgTypes
 - sqlArgTypes

Definition at line 247 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.__init__ (   self,
  name = None,
  sizerType = None,
  sizerArgPos = None,
  inputArgTypes = None,
  outputArgTypes = None,
  sqlArgTypes = None 
)

Member Function Documentation

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

Definition at line 376 of file ttypes.py.

377  def __eq__(self, other):
378  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.__ne__ (   self,
  other 
)

Definition at line 379 of file ttypes.py.

380  def __ne__(self, other):
381  return not (self == other)
382 all_structs.append(TUserDefinedFunction)
TUserDefinedFunction.thrift_spec = (
def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.__repr__ (   self)

Definition at line 371 of file ttypes.py.

372  def __repr__(self):
373  L = ['%s=%r' % (key, value)
374  for key, value in self.__dict__.items()]
375  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.TUserDefinedTableFunction.read (   self,
  iprot 
)

Definition at line 268 of file ttypes.py.

References omnisci.extension_functions.ttypes.TUserDefinedTableFunction.inputArgTypes, 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, omnisci.extension_functions.ttypes.TUserDefinedFunction.name, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.name, Parser::FunctionRef.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, Parser::NameValueAssign.name, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.outputArgTypes, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sizerArgPos, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sizerType, and omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sqlArgTypes.

269  def read(self, iprot):
270  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
271  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
272  return
273  iprot.readStructBegin()
274  while True:
275  (fname, ftype, fid) = iprot.readFieldBegin()
276  if ftype == TType.STOP:
277  break
278  if fid == 1:
279  if ftype == TType.STRING:
280  self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
281  else:
282  iprot.skip(ftype)
283  elif fid == 2:
284  if ftype == TType.I32:
285  self.sizerType = iprot.readI32()
286  else:
287  iprot.skip(ftype)
288  elif fid == 3:
289  if ftype == TType.I32:
290  self.sizerArgPos = iprot.readI32()
291  else:
292  iprot.skip(ftype)
293  elif fid == 4:
294  if ftype == TType.LIST:
295  self.inputArgTypes = []
296  (_etype10, _size7) = iprot.readListBegin()
297  for _i11 in range(_size7):
298  _elem12 = iprot.readI32()
299  self.inputArgTypes.append(_elem12)
300  iprot.readListEnd()
301  else:
302  iprot.skip(ftype)
303  elif fid == 5:
304  if ftype == TType.LIST:
305  self.outputArgTypes = []
306  (_etype16, _size13) = iprot.readListBegin()
307  for _i17 in range(_size13):
308  _elem18 = iprot.readI32()
309  self.outputArgTypes.append(_elem18)
310  iprot.readListEnd()
311  else:
312  iprot.skip(ftype)
313  elif fid == 6:
314  if ftype == TType.LIST:
315  self.sqlArgTypes = []
316  (_etype22, _size19) = iprot.readListBegin()
317  for _i23 in range(_size19):
318  _elem24 = iprot.readI32()
319  self.sqlArgTypes.append(_elem24)
320  iprot.readListEnd()
321  else:
322  iprot.skip(ftype)
323  else:
324  iprot.skip(ftype)
325  iprot.readFieldEnd()
326  iprot.readStructEnd()
def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.validate (   self)

Definition at line 368 of file ttypes.py.

369  def validate(self):
370  return
def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.write (   self,
  oprot 
)

Definition at line 327 of file ttypes.py.

References omnisci.extension_functions.ttypes.TUserDefinedTableFunction.inputArgTypes, 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, omnisci.extension_functions.ttypes.TUserDefinedFunction.name, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.name, Parser::FunctionRef.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, Parser::NameValueAssign.name, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.outputArgTypes, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sizerArgPos, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sizerType, and omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sqlArgTypes.

328  def write(self, oprot):
329  if oprot._fast_encode is not None and self.thrift_spec is not None:
330  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
331  return
332  oprot.writeStructBegin('TUserDefinedTableFunction')
333  if self.name is not None:
334  oprot.writeFieldBegin('name', TType.STRING, 1)
335  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
336  oprot.writeFieldEnd()
337  if self.sizerType is not None:
338  oprot.writeFieldBegin('sizerType', TType.I32, 2)
339  oprot.writeI32(self.sizerType)
340  oprot.writeFieldEnd()
341  if self.sizerArgPos is not None:
342  oprot.writeFieldBegin('sizerArgPos', TType.I32, 3)
343  oprot.writeI32(self.sizerArgPos)
344  oprot.writeFieldEnd()
345  if self.inputArgTypes is not None:
346  oprot.writeFieldBegin('inputArgTypes', TType.LIST, 4)
347  oprot.writeListBegin(TType.I32, len(self.inputArgTypes))
348  for iter25 in self.inputArgTypes:
349  oprot.writeI32(iter25)
350  oprot.writeListEnd()
351  oprot.writeFieldEnd()
352  if self.outputArgTypes is not None:
353  oprot.writeFieldBegin('outputArgTypes', TType.LIST, 5)
354  oprot.writeListBegin(TType.I32, len(self.outputArgTypes))
355  for iter26 in self.outputArgTypes:
356  oprot.writeI32(iter26)
357  oprot.writeListEnd()
358  oprot.writeFieldEnd()
359  if self.sqlArgTypes is not None:
360  oprot.writeFieldBegin('sqlArgTypes', TType.LIST, 6)
361  oprot.writeListBegin(TType.I32, len(self.sqlArgTypes))
362  for iter27 in self.sqlArgTypes:
363  oprot.writeI32(iter27)
364  oprot.writeListEnd()
365  oprot.writeFieldEnd()
366  oprot.writeFieldStop()
367  oprot.writeStructEnd()

Member Data Documentation

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.__dict__
private

Definition at line 377 of file ttypes.py.

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.inputArgTypes

Definition at line 264 of file ttypes.py.

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

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.name

Definition at line 261 of file ttypes.py.

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

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.outputArgTypes

Definition at line 265 of file ttypes.py.

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

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sizerArgPos

Definition at line 263 of file ttypes.py.

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

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sizerType

Definition at line 262 of file ttypes.py.

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

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.sqlArgTypes

Definition at line 266 of file ttypes.py.

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


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