OmniSciDB  c1a53651b2
 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 694 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 763 of file ttypes.py.

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

Definition at line 766 of file ttypes.py.

767  def __ne__(self, other):
768  return not (self == other)
769 
def heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.__repr__ (   self)

Definition at line 758 of file ttypes.py.

759  def __repr__(self):
760  L = ['%s=%r' % (key, value)
761  for key, value in self.__dict__.items()]
762  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 707 of file ttypes.py.

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

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

Definition at line 755 of file ttypes.py.

756  def validate(self):
757  return
def heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.write (   self,
  oprot 
)

Definition at line 736 of file ttypes.py.

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

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

Member Data Documentation

heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.__dict__
private

Definition at line 764 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.serialized_result_set.ttypes.TCountDistinctSetStorage.bitmap

Definition at line 704 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 705 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: