OmniSciDB  a7179b2938
 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 235 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 364 of file ttypes.py.

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

Definition at line 367 of file ttypes.py.

368  def __ne__(self, other):
369  return not (self == other)
370 all_structs.append(TUserDefinedFunction)
TUserDefinedFunction.thrift_spec = (
def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.__repr__ (   self)

Definition at line 359 of file ttypes.py.

360  def __repr__(self):
361  L = ['%s=%r' % (key, value)
362  for key, value in self.__dict__.items()]
363  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 256 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, 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, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.name, Parser::FunctionRef.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.

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

Definition at line 356 of file ttypes.py.

357  def validate(self):
358  return
def omnisci.extension_functions.ttypes.TUserDefinedTableFunction.write (   self,
  oprot 
)

Definition at line 315 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, 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, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.name, Parser::FunctionRef.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.

316  def write(self, oprot):
317  if oprot._fast_encode is not None and self.thrift_spec is not None:
318  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
319  return
320  oprot.writeStructBegin('TUserDefinedTableFunction')
321  if self.name is not None:
322  oprot.writeFieldBegin('name', TType.STRING, 1)
323  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
324  oprot.writeFieldEnd()
325  if self.sizerType is not None:
326  oprot.writeFieldBegin('sizerType', TType.I32, 2)
327  oprot.writeI32(self.sizerType)
328  oprot.writeFieldEnd()
329  if self.sizerArgPos is not None:
330  oprot.writeFieldBegin('sizerArgPos', TType.I32, 3)
331  oprot.writeI32(self.sizerArgPos)
332  oprot.writeFieldEnd()
333  if self.inputArgTypes is not None:
334  oprot.writeFieldBegin('inputArgTypes', TType.LIST, 4)
335  oprot.writeListBegin(TType.I32, len(self.inputArgTypes))
336  for iter25 in self.inputArgTypes:
337  oprot.writeI32(iter25)
338  oprot.writeListEnd()
339  oprot.writeFieldEnd()
340  if self.outputArgTypes is not None:
341  oprot.writeFieldBegin('outputArgTypes', TType.LIST, 5)
342  oprot.writeListBegin(TType.I32, len(self.outputArgTypes))
343  for iter26 in self.outputArgTypes:
344  oprot.writeI32(iter26)
345  oprot.writeListEnd()
346  oprot.writeFieldEnd()
347  if self.sqlArgTypes is not None:
348  oprot.writeFieldBegin('sqlArgTypes', TType.LIST, 6)
349  oprot.writeListBegin(TType.I32, len(self.sqlArgTypes))
350  for iter27 in self.sqlArgTypes:
351  oprot.writeI32(iter27)
352  oprot.writeListEnd()
353  oprot.writeFieldEnd()
354  oprot.writeFieldStop()
355  oprot.writeStructEnd()

Member Data Documentation

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.__dict__
private

Definition at line 365 of file ttypes.py.

omnisci.extension_functions.ttypes.TUserDefinedTableFunction.inputArgTypes

Definition at line 252 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 249 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 253 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 251 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 250 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 254 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: