OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.serialized_result_set.ttypes.TCountDistinctSetStorage Class Reference
+ Inheritance diagram for omnisci.serialized_result_set.ttypes.TCountDistinctSetStorage:
+ Collaboration diagram for omnisci.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 691 of file ttypes.py.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 760 of file ttypes.py.

761  def __eq__(self, other):
762  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.serialized_result_set.ttypes.TCountDistinctSetStorage.__ne__ (   self,
  other 
)

Definition at line 763 of file ttypes.py.

764  def __ne__(self, other):
765  return not (self == other)
766 
def omnisci.serialized_result_set.ttypes.TCountDistinctSetStorage.__repr__ (   self)

Definition at line 755 of file ttypes.py.

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

Definition at line 704 of file ttypes.py.

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

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

Definition at line 752 of file ttypes.py.

753  def validate(self):
754  return
def omnisci.serialized_result_set.ttypes.TCountDistinctSetStorage.write (   self,
  oprot 
)

Definition at line 733 of file ttypes.py.

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

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

Member Data Documentation

omnisci.serialized_result_set.ttypes.TCountDistinctSetStorage.__dict__
private

Definition at line 761 of file ttypes.py.

omnisci.serialized_result_set.ttypes.TCountDistinctSetStorage.bitmap

Definition at line 701 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TCountDistinctSetStorage.sparse_set

Definition at line 702 of file ttypes.py.

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


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