OmniSciDB  340b00dbf6
 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 785 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 794 of file ttypes.py.

795  def __init__(self, data=None, nulls=None,):
796  self.data = data
797  self.nulls = nulls

Member Function Documentation

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

Definition at line 855 of file ttypes.py.

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

Definition at line 858 of file ttypes.py.

859  def __ne__(self, other):
860  return not (self == other)
861 
def omnisci.thrift.ttypes.TColumn.__repr__ (   self)

Definition at line 850 of file ttypes.py.

851  def __repr__(self):
852  L = ['%s=%r' % (key, value)
853  for key, value in self.__dict__.items()]
854  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 798 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.

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

Definition at line 847 of file ttypes.py.

848  def validate(self):
849  return
def omnisci.thrift.ttypes.TColumn.write (   self,
  oprot 
)

Definition at line 828 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.

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

Member Data Documentation

omnisci.thrift.ttypes.TColumn.__dict__
private

Definition at line 856 of file ttypes.py.

omnisci.thrift.ttypes.TColumn.data

Definition at line 795 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 796 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: