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

Public Member Functions

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

Public Attributes

 data
 
 nulls
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - data
 - nulls

Definition at line 937 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TColumn.__init__ (   self,
  data = None,
  nulls = None 
)

Definition at line 946 of file ttypes.py.

947  def __init__(self, data=None, nulls=None,):
948  self.data = data
949  self.nulls = nulls

Member Function Documentation

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

Definition at line 1007 of file ttypes.py.

1008  def __eq__(self, other):
1009  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TColumn.__ne__ (   self,
  other 
)

Definition at line 1010 of file ttypes.py.

1011  def __ne__(self, other):
1012  return not (self == other)
1013 
def heavydb.thrift.ttypes.TColumn.__repr__ (   self)

Definition at line 1002 of file ttypes.py.

1003  def __repr__(self):
1004  L = ['%s=%r' % (key, value)
1005  for key, value in self.__dict__.items()]
1006  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.TColumn.read (   self,
  iprot 
)

Definition at line 950 of file ttypes.py.

References analyze_benchmark.BenchmarkLoader.data, Fragmenter_Namespace::InsertData.data, anonymous_namespace{ArrowImporter.h}::ArrowValueBase< VALUE_TYPE >.data, heavydb.thrift.ttypes.TColumn.data, and heavydb.thrift.ttypes.TColumn.nulls.

951  def read(self, iprot):
952  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
953  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
954  return
955  iprot.readStructBegin()
956  while True:
957  (fname, ftype, fid) = iprot.readFieldBegin()
958  if ftype == TType.STOP:
959  break
960  if fid == 1:
961  if ftype == TType.STRUCT:
962  self.data = TColumnData()
963  self.data.read(iprot)
964  else:
965  iprot.skip(ftype)
966  elif fid == 2:
967  if ftype == TType.LIST:
968  self.nulls = []
969  (_etype45, _size42) = iprot.readListBegin()
970  for _i46 in range(_size42):
971  _elem47 = iprot.readBool()
972  self.nulls.append(_elem47)
973  iprot.readListEnd()
974  else:
975  iprot.skip(ftype)
976  else:
977  iprot.skip(ftype)
978  iprot.readFieldEnd()
979  iprot.readStructEnd()
def heavydb.thrift.ttypes.TColumn.validate (   self)

Definition at line 999 of file ttypes.py.

1000  def validate(self):
1001  return
def heavydb.thrift.ttypes.TColumn.write (   self,
  oprot 
)

Definition at line 980 of file ttypes.py.

References analyze_benchmark.BenchmarkLoader.data, Fragmenter_Namespace::InsertData.data, anonymous_namespace{ArrowImporter.h}::ArrowValueBase< VALUE_TYPE >.data, heavydb.thrift.ttypes.TColumn.data, and heavydb.thrift.ttypes.TColumn.nulls.

981  def write(self, oprot):
982  if oprot._fast_encode is not None and self.thrift_spec is not None:
983  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
984  return
985  oprot.writeStructBegin('TColumn')
986  if self.data is not None:
987  oprot.writeFieldBegin('data', TType.STRUCT, 1)
988  self.data.write(oprot)
989  oprot.writeFieldEnd()
990  if self.nulls is not None:
991  oprot.writeFieldBegin('nulls', TType.LIST, 2)
992  oprot.writeListBegin(TType.BOOL, len(self.nulls))
993  for iter48 in self.nulls:
994  oprot.writeBool(iter48)
995  oprot.writeListEnd()
996  oprot.writeFieldEnd()
997  oprot.writeFieldStop()
998  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TColumn.__dict__
private

Definition at line 1008 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TColumn.data

Definition at line 947 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TColumn.read(), heavydb.thrift.ttypes.TInsertData.read(), heavydb.thrift.ttypes.TInsertChunks.read(), heavydb.thrift.ttypes.TColumn.write(), heavydb.thrift.ttypes.TInsertData.write(), and heavydb.thrift.ttypes.TInsertChunks.write().

heavydb.thrift.ttypes.TColumn.nulls

Definition at line 948 of file ttypes.py.

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


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