OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TColumn Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TColumn:
+ Collaboration diagram for omnisci.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 788 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 797 of file ttypes.py.

798  def __init__(self, data=None, nulls=None,):
799  self.data = data
800  self.nulls = nulls

Member Function Documentation

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

Definition at line 858 of file ttypes.py.

859  def __eq__(self, other):
860  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TColumn.__ne__ (   self,
  other 
)

Definition at line 861 of file ttypes.py.

862  def __ne__(self, other):
863  return not (self == other)
864 
def omnisci.thrift.ttypes.TColumn.__repr__ (   self)

Definition at line 853 of file ttypes.py.

854  def __repr__(self):
855  L = ['%s=%r' % (key, value)
856  for key, value in self.__dict__.items()]
857  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.thrift.ttypes.TColumn.read (   self,
  iprot 
)

Definition at line 801 of file ttypes.py.

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

802  def read(self, iprot):
803  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
804  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
805  return
806  iprot.readStructBegin()
807  while True:
808  (fname, ftype, fid) = iprot.readFieldBegin()
809  if ftype == TType.STOP:
810  break
811  if fid == 1:
812  if ftype == TType.STRUCT:
813  self.data = TColumnData()
814  self.data.read(iprot)
815  else:
816  iprot.skip(ftype)
817  elif fid == 2:
818  if ftype == TType.LIST:
819  self.nulls = []
820  (_etype45, _size42) = iprot.readListBegin()
821  for _i46 in range(_size42):
822  _elem47 = iprot.readBool()
823  self.nulls.append(_elem47)
824  iprot.readListEnd()
825  else:
826  iprot.skip(ftype)
827  else:
828  iprot.skip(ftype)
829  iprot.readFieldEnd()
830  iprot.readStructEnd()
def omnisci.thrift.ttypes.TColumn.validate (   self)

Definition at line 850 of file ttypes.py.

851  def validate(self):
852  return
def omnisci.thrift.ttypes.TColumn.write (   self,
  oprot 
)

Definition at line 831 of file ttypes.py.

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

832  def write(self, oprot):
833  if oprot._fast_encode is not None and self.thrift_spec is not None:
834  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
835  return
836  oprot.writeStructBegin('TColumn')
837  if self.data is not None:
838  oprot.writeFieldBegin('data', TType.STRUCT, 1)
839  self.data.write(oprot)
840  oprot.writeFieldEnd()
841  if self.nulls is not None:
842  oprot.writeFieldBegin('nulls', TType.LIST, 2)
843  oprot.writeListBegin(TType.BOOL, len(self.nulls))
844  for iter48 in self.nulls:
845  oprot.writeBool(iter48)
846  oprot.writeListEnd()
847  oprot.writeFieldEnd()
848  oprot.writeFieldStop()
849  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TColumn.__dict__
private

Definition at line 859 of file ttypes.py.

omnisci.thrift.ttypes.TColumn.data

Definition at line 798 of file ttypes.py.

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

omnisci.thrift.ttypes.TColumn.nulls

Definition at line 799 of file ttypes.py.

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


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