OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor Class Reference
+ Inheritance diagram for heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor:
+ Collaboration diagram for heavydb.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 371 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.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 391 of file ttypes.py.

392  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,):
393  self.layout = layout
394  self.keyless = keyless
395  self.entry_count = entry_count
396  self.idx_target_as_key = idx_target_as_key
397  self.min_val = min_val
398  self.max_val = max_val
399  self.bucket = bucket
400  self.group_col_widths = group_col_widths
401  self.key_bytewidth = key_bytewidth
402  self.col_slot_context = col_slot_context
403  self.target_groupby_indices = target_groupby_indices
404  self.count_distinct_descriptors = count_distinct_descriptors
405  self.force_4byte_float = force_4byte_float

Member Function Documentation

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

Definition at line 579 of file ttypes.py.

580  def __eq__(self, other):
581  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.__ne__ (   self,
  other 
)

Definition at line 582 of file ttypes.py.

583  def __ne__(self, other):
584  return not (self == other)
585 
def heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.__repr__ (   self)

Definition at line 574 of file ttypes.py.

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

Definition at line 406 of file ttypes.py.

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

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

Definition at line 571 of file ttypes.py.

572  def validate(self):
573  return
def heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.write (   self,
  oprot 
)

Definition at line 502 of file ttypes.py.

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

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

Member Data Documentation

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.__dict__
private

Definition at line 580 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.bucket

Definition at line 398 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.col_slot_context

Definition at line 401 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.count_distinct_descriptors

Definition at line 403 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.entry_count

Definition at line 394 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.force_4byte_float

Definition at line 404 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.group_col_widths

Definition at line 399 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.idx_target_as_key

Definition at line 395 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.key_bytewidth

Definition at line 400 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.keyless

Definition at line 393 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.layout

Definition at line 392 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.max_val

Definition at line 397 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.min_val

Definition at line 396 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TResultSetBufferDescriptor.target_groupby_indices

Definition at line 402 of file ttypes.py.

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


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