OmniSciDB  a7179b2938
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TDictionaryGeneration Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TDictionaryGeneration:
+ Collaboration diagram for omnisci.thrift.ttypes.TDictionaryGeneration:

Public Member Functions

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

Public Attributes

 dict_id
 
 entry_count
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - dict_id
 - entry_count

Definition at line 3828 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TDictionaryGeneration.__init__ (   self,
  dict_id = None,
  entry_count = None 
)

Definition at line 3837 of file ttypes.py.

3838  def __init__(self, dict_id=None, entry_count=None,):
3839  self.dict_id = dict_id
3840  self.entry_count = entry_count

Member Function Documentation

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

Definition at line 3889 of file ttypes.py.

3890  def __eq__(self, other):
3891  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TDictionaryGeneration.__ne__ (   self,
  other 
)

Definition at line 3892 of file ttypes.py.

3893  def __ne__(self, other):
3894  return not (self == other)
3895 
def omnisci.thrift.ttypes.TDictionaryGeneration.__repr__ (   self)

Definition at line 3884 of file ttypes.py.

3885  def __repr__(self):
3886  L = ['%s=%r' % (key, value)
3887  for key, value in self.__dict__.items()]
3888  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.TDictionaryGeneration.read (   self,
  iprot 
)

Definition at line 3841 of file ttypes.py.

References omnisci.thrift.ttypes.TDictionaryGeneration.dict_id, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.entry_count, and omnisci.thrift.ttypes.TDictionaryGeneration.entry_count.

3842  def read(self, iprot):
3843  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3844  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3845  return
3846  iprot.readStructBegin()
3847  while True:
3848  (fname, ftype, fid) = iprot.readFieldBegin()
3849  if ftype == TType.STOP:
3850  break
3851  if fid == 1:
3852  if ftype == TType.I32:
3853  self.dict_id = iprot.readI32()
3854  else:
3855  iprot.skip(ftype)
3856  elif fid == 2:
3857  if ftype == TType.I64:
3858  self.entry_count = iprot.readI64()
3859  else:
3860  iprot.skip(ftype)
3861  else:
3862  iprot.skip(ftype)
3863  iprot.readFieldEnd()
3864  iprot.readStructEnd()
def omnisci.thrift.ttypes.TDictionaryGeneration.validate (   self)

Definition at line 3881 of file ttypes.py.

3882  def validate(self):
3883  return
def omnisci.thrift.ttypes.TDictionaryGeneration.write (   self,
  oprot 
)

Definition at line 3865 of file ttypes.py.

References omnisci.thrift.ttypes.TDictionaryGeneration.dict_id, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.entry_count, and omnisci.thrift.ttypes.TDictionaryGeneration.entry_count.

3866  def write(self, oprot):
3867  if oprot._fast_encode is not None and self.thrift_spec is not None:
3868  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3869  return
3870  oprot.writeStructBegin('TDictionaryGeneration')
3871  if self.dict_id is not None:
3872  oprot.writeFieldBegin('dict_id', TType.I32, 1)
3873  oprot.writeI32(self.dict_id)
3874  oprot.writeFieldEnd()
3875  if self.entry_count is not None:
3876  oprot.writeFieldBegin('entry_count', TType.I64, 2)
3877  oprot.writeI64(self.entry_count)
3878  oprot.writeFieldEnd()
3879  oprot.writeFieldStop()
3880  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TDictionaryGeneration.__dict__
private

Definition at line 3890 of file ttypes.py.

omnisci.thrift.ttypes.TDictionaryGeneration.dict_id

Definition at line 3838 of file ttypes.py.

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

omnisci.thrift.ttypes.TDictionaryGeneration.entry_count

Definition at line 3839 of file ttypes.py.

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


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