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

Public Member Functions

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

Public Attributes

 bitmap
 
 sparse_set
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - bitmap
 - sparse_set

Definition at line 700 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.__init__ (   self,
  bitmap = None,
  sparse_set = None 
)

Member Function Documentation

def heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.__eq__ (   self,
  other 
)

Definition at line 769 of file ttypes.py.

770  def __eq__(self, other):
771  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.__ne__ (   self,
  other 
)

Definition at line 772 of file ttypes.py.

773  def __ne__(self, other):
774  return not (self == other)
775 
def heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.__repr__ (   self)

Definition at line 764 of file ttypes.py.

765  def __repr__(self):
766  L = ['%s=%r' % (key, value)
767  for key, value in self.__dict__.items()]
768  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.serialized_result_set.ttypes.TCountDistinctSetStorage.read (   self,
  iprot 
)

Definition at line 713 of file ttypes.py.

References heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.bitmap, and heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.sparse_set.

714  def read(self, iprot):
715  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
716  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
717  return
718  iprot.readStructBegin()
719  while True:
720  (fname, ftype, fid) = iprot.readFieldBegin()
721  if ftype == TType.STOP:
722  break
723  if fid == 1:
724  if ftype == TType.STRING:
725  self.bitmap = iprot.readBinary()
726  else:
727  iprot.skip(ftype)
728  elif fid == 2:
729  if ftype == TType.SET:
730  self.sparse_set = set()
731  (_etype45, _size42) = iprot.readSetBegin()
732  for _i46 in range(_size42):
733  _elem47 = iprot.readI64()
734  self.sparse_set.add(_elem47)
735  iprot.readSetEnd()
736  else:
737  iprot.skip(ftype)
738  else:
739  iprot.skip(ftype)
740  iprot.readFieldEnd()
741  iprot.readStructEnd()
def heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.validate (   self)

Definition at line 761 of file ttypes.py.

762  def validate(self):
763  return
def heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.write (   self,
  oprot 
)

Definition at line 742 of file ttypes.py.

References heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.bitmap, and heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.sparse_set.

743  def write(self, oprot):
744  if oprot._fast_encode is not None and self.thrift_spec is not None:
745  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
746  return
747  oprot.writeStructBegin('TCountDistinctSetStorage')
748  if self.bitmap is not None:
749  oprot.writeFieldBegin('bitmap', TType.STRING, 1)
750  oprot.writeBinary(self.bitmap)
751  oprot.writeFieldEnd()
752  if self.sparse_set is not None:
753  oprot.writeFieldBegin('sparse_set', TType.SET, 2)
754  oprot.writeSetBegin(TType.I64, len(self.sparse_set))
755  for iter48 in self.sparse_set:
756  oprot.writeI64(iter48)
757  oprot.writeSetEnd()
758  oprot.writeFieldEnd()
759  oprot.writeFieldStop()
760  oprot.writeStructEnd()

Member Data Documentation

heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.__dict__
private

Definition at line 770 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.bitmap

Definition at line 710 of file ttypes.py.

Referenced by heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.read(), and heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.write().

heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.sparse_set

Definition at line 711 of file ttypes.py.

Referenced by heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.read(), and heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.write().


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