OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TDataFrame Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TDataFrame:
+ Collaboration diagram for heavydb.thrift.ttypes.TDataFrame:

Public Member Functions

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

Public Attributes

 sm_handle
 
 sm_size
 
 df_handle
 
 df_size
 
 execution_time_ms
 
 arrow_conversion_time_ms
 
 df_buffer
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - sm_handle
 - sm_size
 - df_handle
 - df_size
 - execution_time_ms
 - arrow_conversion_time_ms
 - df_buffer

Definition at line 1511 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TDataFrame.__init__ (   self,
  sm_handle = None,
  sm_size = None,
  df_handle = None,
  df_size = None,
  execution_time_ms = None,
  arrow_conversion_time_ms = None,
  df_buffer = None 
)

Definition at line 1525 of file ttypes.py.

1526  def __init__(self, sm_handle=None, sm_size=None, df_handle=None, df_size=None, execution_time_ms=None, arrow_conversion_time_ms=None, df_buffer=None,):
1527  self.sm_handle = sm_handle
1528  self.sm_size = sm_size
1529  self.df_handle = df_handle
1530  self.df_size = df_size
1531  self.execution_time_ms = execution_time_ms
1532  self.arrow_conversion_time_ms = arrow_conversion_time_ms
1533  self.df_buffer = df_buffer

Member Function Documentation

def heavydb.thrift.ttypes.TDataFrame.__eq__ (   self,
  other 
)

Definition at line 1627 of file ttypes.py.

1628  def __eq__(self, other):
1629  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TDataFrame.__ne__ (   self,
  other 
)

Definition at line 1630 of file ttypes.py.

1631  def __ne__(self, other):
1632  return not (self == other)
1633 
def heavydb.thrift.ttypes.TDataFrame.__repr__ (   self)

Definition at line 1622 of file ttypes.py.

1623  def __repr__(self):
1624  L = ['%s=%r' % (key, value)
1625  for key, value in self.__dict__.items()]
1626  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 heavydb.thrift.ttypes.TDataFrame.read (   self,
  iprot 
)

Definition at line 1534 of file ttypes.py.

References heavydb.thrift.ttypes.TDataFrame.arrow_conversion_time_ms, heavydb.thrift.ttypes.TDataFrame.df_buffer, heavydb.thrift.ttypes.TDataFrame.df_handle, heavydb.thrift.ttypes.TDataFrame.df_size, heavydb.thrift.ttypes.TQueryResult.execution_time_ms, heavydb.thrift.ttypes.TDataFrame.execution_time_ms, heavydb.thrift.ttypes.TDataFrame.sm_handle, and heavydb.thrift.ttypes.TDataFrame.sm_size.

1535  def read(self, iprot):
1536  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1537  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1538  return
1539  iprot.readStructBegin()
1540  while True:
1541  (fname, ftype, fid) = iprot.readFieldBegin()
1542  if ftype == TType.STOP:
1543  break
1544  if fid == 1:
1545  if ftype == TType.STRING:
1546  self.sm_handle = iprot.readBinary()
1547  else:
1548  iprot.skip(ftype)
1549  elif fid == 2:
1550  if ftype == TType.I64:
1551  self.sm_size = iprot.readI64()
1552  else:
1553  iprot.skip(ftype)
1554  elif fid == 3:
1555  if ftype == TType.STRING:
1556  self.df_handle = iprot.readBinary()
1557  else:
1558  iprot.skip(ftype)
1559  elif fid == 4:
1560  if ftype == TType.I64:
1561  self.df_size = iprot.readI64()
1562  else:
1563  iprot.skip(ftype)
1564  elif fid == 5:
1565  if ftype == TType.I64:
1566  self.execution_time_ms = iprot.readI64()
1567  else:
1568  iprot.skip(ftype)
1569  elif fid == 6:
1570  if ftype == TType.I64:
1571  self.arrow_conversion_time_ms = iprot.readI64()
1572  else:
1573  iprot.skip(ftype)
1574  elif fid == 7:
1575  if ftype == TType.STRING:
1576  self.df_buffer = iprot.readBinary()
1577  else:
1578  iprot.skip(ftype)
1579  else:
1580  iprot.skip(ftype)
1581  iprot.readFieldEnd()
1582  iprot.readStructEnd()
def heavydb.thrift.ttypes.TDataFrame.validate (   self)

Definition at line 1619 of file ttypes.py.

1620  def validate(self):
1621  return
def heavydb.thrift.ttypes.TDataFrame.write (   self,
  oprot 
)

Definition at line 1583 of file ttypes.py.

References heavydb.thrift.ttypes.TDataFrame.arrow_conversion_time_ms, heavydb.thrift.ttypes.TDataFrame.df_buffer, heavydb.thrift.ttypes.TDataFrame.df_handle, heavydb.thrift.ttypes.TDataFrame.df_size, heavydb.thrift.ttypes.TQueryResult.execution_time_ms, heavydb.thrift.ttypes.TDataFrame.execution_time_ms, heavydb.thrift.ttypes.TDataFrame.sm_handle, and heavydb.thrift.ttypes.TDataFrame.sm_size.

1584  def write(self, oprot):
1585  if oprot._fast_encode is not None and self.thrift_spec is not None:
1586  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1587  return
1588  oprot.writeStructBegin('TDataFrame')
1589  if self.sm_handle is not None:
1590  oprot.writeFieldBegin('sm_handle', TType.STRING, 1)
1591  oprot.writeBinary(self.sm_handle)
1592  oprot.writeFieldEnd()
1593  if self.sm_size is not None:
1594  oprot.writeFieldBegin('sm_size', TType.I64, 2)
1595  oprot.writeI64(self.sm_size)
1596  oprot.writeFieldEnd()
1597  if self.df_handle is not None:
1598  oprot.writeFieldBegin('df_handle', TType.STRING, 3)
1599  oprot.writeBinary(self.df_handle)
1600  oprot.writeFieldEnd()
1601  if self.df_size is not None:
1602  oprot.writeFieldBegin('df_size', TType.I64, 4)
1603  oprot.writeI64(self.df_size)
1604  oprot.writeFieldEnd()
1605  if self.execution_time_ms is not None:
1606  oprot.writeFieldBegin('execution_time_ms', TType.I64, 5)
1607  oprot.writeI64(self.execution_time_ms)
1608  oprot.writeFieldEnd()
1609  if self.arrow_conversion_time_ms is not None:
1610  oprot.writeFieldBegin('arrow_conversion_time_ms', TType.I64, 6)
1611  oprot.writeI64(self.arrow_conversion_time_ms)
1612  oprot.writeFieldEnd()
1613  if self.df_buffer is not None:
1614  oprot.writeFieldBegin('df_buffer', TType.STRING, 7)
1615  oprot.writeBinary(self.df_buffer)
1616  oprot.writeFieldEnd()
1617  oprot.writeFieldStop()
1618  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDataFrame.__dict__
private

Definition at line 1628 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TDataFrame.arrow_conversion_time_ms

Definition at line 1531 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDataFrame.read(), and heavydb.thrift.ttypes.TDataFrame.write().

heavydb.thrift.ttypes.TDataFrame.df_buffer

Definition at line 1532 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDataFrame.read(), and heavydb.thrift.ttypes.TDataFrame.write().

heavydb.thrift.ttypes.TDataFrame.df_handle

Definition at line 1528 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDataFrame.read(), and heavydb.thrift.ttypes.TDataFrame.write().

heavydb.thrift.ttypes.TDataFrame.df_size

Definition at line 1529 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDataFrame.read(), and heavydb.thrift.ttypes.TDataFrame.write().

heavydb.thrift.ttypes.TDataFrame.execution_time_ms

Definition at line 1530 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDataFrame.read(), heavydb.thrift.ttypes.TRenderResult.read(), heavydb.thrift.ttypes.TRenderParseResult.read(), heavydb.thrift.ttypes.TRenderStepResult.read(), heavydb.thrift.ttypes.TDataFrame.write(), heavydb.thrift.ttypes.TRenderResult.write(), heavydb.thrift.ttypes.TRenderParseResult.write(), and heavydb.thrift.ttypes.TRenderStepResult.write().

heavydb.thrift.ttypes.TDataFrame.sm_handle

Definition at line 1526 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDataFrame.read(), and heavydb.thrift.ttypes.TDataFrame.write().

heavydb.thrift.ttypes.TDataFrame.sm_size

Definition at line 1527 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDataFrame.read(), and heavydb.thrift.ttypes.TDataFrame.write().


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