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

Public Member Functions

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

Public Attributes

 layout
 
 keyless
 
 entry_count
 
 idx_target_as_key
 
 min_val
 
 max_val
 
 bucket
 
 group_col_widths
 
 key_bytewidth
 
 col_slot_context
 
 target_groupby_indices
 
 count_distinct_descriptors
 
 force_4byte_float
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - layout
 - keyless
 - entry_count
 - idx_target_as_key
 - min_val
 - max_val
 - bucket
 - group_col_widths
 - key_bytewidth
 - col_slot_context
 - target_groupby_indices
 - count_distinct_descriptors
 - force_4byte_float

Definition at line 362 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.__init__ (   self,
  layout = None,
  keyless = None,
  entry_count = None,
  idx_target_as_key = None,
  min_val = None,
  max_val = None,
  bucket = None,
  group_col_widths = None,
  key_bytewidth = None,
  col_slot_context = None,
  target_groupby_indices = None,
  count_distinct_descriptors = None,
  force_4byte_float = None 
)

Definition at line 382 of file ttypes.py.

383  def __init__(self, layout=None, keyless=None, entry_count=None, idx_target_as_key=None, min_val=None, max_val=None, bucket=None, group_col_widths=None, key_bytewidth=None, col_slot_context=None, target_groupby_indices=None, count_distinct_descriptors=None, force_4byte_float=None,):
384  self.layout = layout
385  self.keyless = keyless
386  self.entry_count = entry_count
387  self.idx_target_as_key = idx_target_as_key
388  self.min_val = min_val
389  self.max_val = max_val
390  self.bucket = bucket
391  self.group_col_widths = group_col_widths
392  self.key_bytewidth = key_bytewidth
393  self.col_slot_context = col_slot_context
394  self.target_groupby_indices = target_groupby_indices
395  self.count_distinct_descriptors = count_distinct_descriptors
396  self.force_4byte_float = force_4byte_float

Member Function Documentation

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

Definition at line 570 of file ttypes.py.

571  def __eq__(self, other):
572  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.__ne__ (   self,
  other 
)

Definition at line 573 of file ttypes.py.

574  def __ne__(self, other):
575  return not (self == other)
576 
def omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.__repr__ (   self)

Definition at line 565 of file ttypes.py.

566  def __repr__(self):
567  L = ['%s=%r' % (key, value)
568  for key, value in self.__dict__.items()]
569  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.TResultSetBufferDescriptor.read (   self,
  iprot 
)

Definition at line 397 of file ttypes.py.

References omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.bucket, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.col_slot_context, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.count_distinct_descriptors, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.entry_count, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.force_4byte_float, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.group_col_widths, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.idx_target_as_key, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.key_bytewidth, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.keyless, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.layout, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.max_val, omnisci.serialized_result_set.ttypes.TCountDistinctDescriptor.min_val, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.min_val, and omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.target_groupby_indices.

398  def read(self, iprot):
399  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
400  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
401  return
402  iprot.readStructBegin()
403  while True:
404  (fname, ftype, fid) = iprot.readFieldBegin()
405  if ftype == TType.STOP:
406  break
407  if fid == 1:
408  if ftype == TType.I32:
409  self.layout = iprot.readI32()
410  else:
411  iprot.skip(ftype)
412  elif fid == 2:
413  if ftype == TType.BOOL:
414  self.keyless = iprot.readBool()
415  else:
416  iprot.skip(ftype)
417  elif fid == 3:
418  if ftype == TType.I32:
419  self.entry_count = iprot.readI32()
420  else:
421  iprot.skip(ftype)
422  elif fid == 4:
423  if ftype == TType.I32:
424  self.idx_target_as_key = iprot.readI32()
425  else:
426  iprot.skip(ftype)
427  elif fid == 5:
428  if ftype == TType.I64:
429  self.min_val = iprot.readI64()
430  else:
431  iprot.skip(ftype)
432  elif fid == 6:
433  if ftype == TType.I64:
434  self.max_val = iprot.readI64()
435  else:
436  iprot.skip(ftype)
437  elif fid == 7:
438  if ftype == TType.I64:
439  self.bucket = iprot.readI64()
440  else:
441  iprot.skip(ftype)
442  elif fid == 8:
443  if ftype == TType.LIST:
444  self.group_col_widths = []
445  (_etype24, _size21) = iprot.readListBegin()
446  for _i25 in range(_size21):
447  _elem26 = iprot.readI16()
448  self.group_col_widths.append(_elem26)
449  iprot.readListEnd()
450  else:
451  iprot.skip(ftype)
452  elif fid == 9:
453  if ftype == TType.I16:
454  self.key_bytewidth = iprot.readI16()
455  else:
456  iprot.skip(ftype)
457  elif fid == 10:
458  if ftype == TType.STRUCT:
460  self.col_slot_context.read(iprot)
461  else:
462  iprot.skip(ftype)
463  elif fid == 11:
464  if ftype == TType.LIST:
465  self.target_groupby_indices = []
466  (_etype30, _size27) = iprot.readListBegin()
467  for _i31 in range(_size27):
468  _elem32 = iprot.readI32()
469  self.target_groupby_indices.append(_elem32)
470  iprot.readListEnd()
471  else:
472  iprot.skip(ftype)
473  elif fid == 12:
474  if ftype == TType.LIST:
476  (_etype36, _size33) = iprot.readListBegin()
477  for _i37 in range(_size33):
478  _elem38 = TCountDistinctDescriptor()
479  _elem38.read(iprot)
480  self.count_distinct_descriptors.append(_elem38)
481  iprot.readListEnd()
482  else:
483  iprot.skip(ftype)
484  elif fid == 13:
485  if ftype == TType.BOOL:
486  self.force_4byte_float = iprot.readBool()
487  else:
488  iprot.skip(ftype)
489  else:
490  iprot.skip(ftype)
491  iprot.readFieldEnd()
492  iprot.readStructEnd()
def omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.validate (   self)

Definition at line 562 of file ttypes.py.

563  def validate(self):
564  return
def omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.write (   self,
  oprot 
)

Definition at line 493 of file ttypes.py.

References omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.bucket, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.col_slot_context, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.count_distinct_descriptors, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.entry_count, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.force_4byte_float, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.group_col_widths, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.idx_target_as_key, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.key_bytewidth, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.keyless, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.layout, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.max_val, omnisci.serialized_result_set.ttypes.TCountDistinctDescriptor.min_val, omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.min_val, and omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.target_groupby_indices.

494  def write(self, oprot):
495  if oprot._fast_encode is not None and self.thrift_spec is not None:
496  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
497  return
498  oprot.writeStructBegin('TResultSetBufferDescriptor')
499  if self.layout is not None:
500  oprot.writeFieldBegin('layout', TType.I32, 1)
501  oprot.writeI32(self.layout)
502  oprot.writeFieldEnd()
503  if self.keyless is not None:
504  oprot.writeFieldBegin('keyless', TType.BOOL, 2)
505  oprot.writeBool(self.keyless)
506  oprot.writeFieldEnd()
507  if self.entry_count is not None:
508  oprot.writeFieldBegin('entry_count', TType.I32, 3)
509  oprot.writeI32(self.entry_count)
510  oprot.writeFieldEnd()
511  if self.idx_target_as_key is not None:
512  oprot.writeFieldBegin('idx_target_as_key', TType.I32, 4)
513  oprot.writeI32(self.idx_target_as_key)
514  oprot.writeFieldEnd()
515  if self.min_val is not None:
516  oprot.writeFieldBegin('min_val', TType.I64, 5)
517  oprot.writeI64(self.min_val)
518  oprot.writeFieldEnd()
519  if self.max_val is not None:
520  oprot.writeFieldBegin('max_val', TType.I64, 6)
521  oprot.writeI64(self.max_val)
522  oprot.writeFieldEnd()
523  if self.bucket is not None:
524  oprot.writeFieldBegin('bucket', TType.I64, 7)
525  oprot.writeI64(self.bucket)
526  oprot.writeFieldEnd()
527  if self.group_col_widths is not None:
528  oprot.writeFieldBegin('group_col_widths', TType.LIST, 8)
529  oprot.writeListBegin(TType.I16, len(self.group_col_widths))
530  for iter39 in self.group_col_widths:
531  oprot.writeI16(iter39)
532  oprot.writeListEnd()
533  oprot.writeFieldEnd()
534  if self.key_bytewidth is not None:
535  oprot.writeFieldBegin('key_bytewidth', TType.I16, 9)
536  oprot.writeI16(self.key_bytewidth)
537  oprot.writeFieldEnd()
538  if self.col_slot_context is not None:
539  oprot.writeFieldBegin('col_slot_context', TType.STRUCT, 10)
540  self.col_slot_context.write(oprot)
541  oprot.writeFieldEnd()
542  if self.target_groupby_indices is not None:
543  oprot.writeFieldBegin('target_groupby_indices', TType.LIST, 11)
544  oprot.writeListBegin(TType.I32, len(self.target_groupby_indices))
545  for iter40 in self.target_groupby_indices:
546  oprot.writeI32(iter40)
547  oprot.writeListEnd()
548  oprot.writeFieldEnd()
549  if self.count_distinct_descriptors is not None:
550  oprot.writeFieldBegin('count_distinct_descriptors', TType.LIST, 12)
551  oprot.writeListBegin(TType.STRUCT, len(self.count_distinct_descriptors))
552  for iter41 in self.count_distinct_descriptors:
553  iter41.write(oprot)
554  oprot.writeListEnd()
555  oprot.writeFieldEnd()
556  if self.force_4byte_float is not None:
557  oprot.writeFieldBegin('force_4byte_float', TType.BOOL, 13)
558  oprot.writeBool(self.force_4byte_float)
559  oprot.writeFieldEnd()
560  oprot.writeFieldStop()
561  oprot.writeStructEnd()

Member Data Documentation

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.__dict__
private

Definition at line 571 of file ttypes.py.

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.bucket

Definition at line 389 of file ttypes.py.

Referenced by omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.read(), omnisci.thrift.ttypes.TColumnRange.read(), omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.write(), and omnisci.thrift.ttypes.TColumnRange.write().

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.col_slot_context

Definition at line 392 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.count_distinct_descriptors

Definition at line 394 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.entry_count

Definition at line 385 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.force_4byte_float

Definition at line 395 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.group_col_widths

Definition at line 390 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.idx_target_as_key

Definition at line 386 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.key_bytewidth

Definition at line 391 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.keyless

Definition at line 384 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.layout

Definition at line 383 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.max_val

Definition at line 388 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.min_val

Definition at line 387 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TResultSetBufferDescriptor.target_groupby_indices

Definition at line 393 of file ttypes.py.

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


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