OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TPendingQuery Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TPendingQuery:
+ Collaboration diagram for heavydb.thrift.ttypes.TPendingQuery:

Public Member Functions

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

Public Attributes

 id
 
 column_ranges
 
 dictionary_generations
 
 table_generations
 
 parent_session_id
 
 table_cache_status
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - id
 - column_ranges
 - dictionary_generations
 - table_generations
 - parent_session_id
 - table_cache_status

Definition at line 4495 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TPendingQuery.__init__ (   self,
  id = None,
  column_ranges = None,
  dictionary_generations = None,
  table_generations = None,
  parent_session_id = None,
  table_cache_status = None 
)

Definition at line 4508 of file ttypes.py.

4509  def __init__(self, id=None, column_ranges=None, dictionary_generations=None, table_generations=None, parent_session_id=None, table_cache_status=None,):
4510  self.id = id
4511  self.column_ranges = column_ranges
4512  self.dictionary_generations = dictionary_generations
4513  self.table_generations = table_generations
4514  self.parent_session_id = parent_session_id
4515  self.table_cache_status = table_cache_status

Member Function Documentation

def heavydb.thrift.ttypes.TPendingQuery.__eq__ (   self,
  other 
)

Definition at line 4636 of file ttypes.py.

4637  def __eq__(self, other):
4638  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TPendingQuery.__ne__ (   self,
  other 
)

Definition at line 4639 of file ttypes.py.

4640  def __ne__(self, other):
4641  return not (self == other)
4642 
def heavydb.thrift.ttypes.TPendingQuery.__repr__ (   self)

Definition at line 4631 of file ttypes.py.

4632  def __repr__(self):
4633  L = ['%s=%r' % (key, value)
4634  for key, value in self.__dict__.items()]
4635  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.thrift.ttypes.TPendingQuery.read (   self,
  iprot 
)

Definition at line 4516 of file ttypes.py.

References heavydb.thrift.ttypes.TPendingQuery.column_ranges, heavydb.thrift.ttypes.TPendingQuery.dictionary_generations, foreign_storage::ForeignServer.id, foreign_storage::UserMapping.id, Catalog_Namespace::CustomExpression.id, heavydb.thrift.ttypes.TPendingQuery.id, org.apache.calcite.sql.validate.SqlValidatorImpl.IdInfo.id, heavydb.thrift.Heavy.update_custom_expression_args.id, heavydb.thrift.ttypes.TPendingQuery.parent_session_id, heavydb.thrift.ttypes.TPendingQuery.table_cache_status, and heavydb.thrift.ttypes.TPendingQuery.table_generations.

4517  def read(self, iprot):
4518  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4519  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4520  return
4521  iprot.readStructBegin()
4522  while True:
4523  (fname, ftype, fid) = iprot.readFieldBegin()
4524  if ftype == TType.STOP:
4525  break
4526  if fid == 1:
4527  if ftype == TType.I64:
4528  self.id = iprot.readI64()
4529  else:
4530  iprot.skip(ftype)
4531  elif fid == 2:
4532  if ftype == TType.LIST:
4533  self.column_ranges = []
4534  (_etype150, _size147) = iprot.readListBegin()
4535  for _i151 in range(_size147):
4536  _elem152 = TColumnRange()
4537  _elem152.read(iprot)
4538  self.column_ranges.append(_elem152)
4539  iprot.readListEnd()
4540  else:
4541  iprot.skip(ftype)
4542  elif fid == 3:
4543  if ftype == TType.LIST:
4544  self.dictionary_generations = []
4545  (_etype156, _size153) = iprot.readListBegin()
4546  for _i157 in range(_size153):
4547  _elem158 = TDictionaryGeneration()
4548  _elem158.read(iprot)
4549  self.dictionary_generations.append(_elem158)
4550  iprot.readListEnd()
4551  else:
4552  iprot.skip(ftype)
4553  elif fid == 4:
4554  if ftype == TType.LIST:
4555  self.table_generations = []
4556  (_etype162, _size159) = iprot.readListBegin()
4557  for _i163 in range(_size159):
4558  _elem164 = TTableGeneration()
4559  _elem164.read(iprot)
4560  self.table_generations.append(_elem164)
4561  iprot.readListEnd()
4562  else:
4563  iprot.skip(ftype)
4564  elif fid == 5:
4565  if ftype == TType.STRING:
4566  self.parent_session_id = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
4567  else:
4568  iprot.skip(ftype)
4569  elif fid == 6:
4570  if ftype == TType.LIST:
4571  self.table_cache_status = []
4572  (_etype168, _size165) = iprot.readListBegin()
4573  for _i169 in range(_size165):
4574  _elem170 = TTableCacheStatus()
4575  _elem170.read(iprot)
4576  self.table_cache_status.append(_elem170)
4577  iprot.readListEnd()
4578  else:
4579  iprot.skip(ftype)
4580  else:
4581  iprot.skip(ftype)
4582  iprot.readFieldEnd()
4583  iprot.readStructEnd()
def heavydb.thrift.ttypes.TPendingQuery.validate (   self)

Definition at line 4628 of file ttypes.py.

4629  def validate(self):
4630  return
def heavydb.thrift.ttypes.TPendingQuery.write (   self,
  oprot 
)

Definition at line 4584 of file ttypes.py.

References heavydb.thrift.ttypes.TPendingQuery.column_ranges, heavydb.thrift.ttypes.TPendingQuery.dictionary_generations, foreign_storage::ForeignServer.id, foreign_storage::UserMapping.id, Catalog_Namespace::CustomExpression.id, heavydb.thrift.ttypes.TPendingQuery.id, org.apache.calcite.sql.validate.SqlValidatorImpl.IdInfo.id, heavydb.thrift.Heavy.update_custom_expression_args.id, heavydb.thrift.ttypes.TPendingQuery.parent_session_id, heavydb.thrift.ttypes.TPendingQuery.table_cache_status, and heavydb.thrift.ttypes.TPendingQuery.table_generations.

4585  def write(self, oprot):
4586  if oprot._fast_encode is not None and self.thrift_spec is not None:
4587  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4588  return
4589  oprot.writeStructBegin('TPendingQuery')
4590  if self.id is not None:
4591  oprot.writeFieldBegin('id', TType.I64, 1)
4592  oprot.writeI64(self.id)
4593  oprot.writeFieldEnd()
4594  if self.column_ranges is not None:
4595  oprot.writeFieldBegin('column_ranges', TType.LIST, 2)
4596  oprot.writeListBegin(TType.STRUCT, len(self.column_ranges))
4597  for iter171 in self.column_ranges:
4598  iter171.write(oprot)
4599  oprot.writeListEnd()
4600  oprot.writeFieldEnd()
4601  if self.dictionary_generations is not None:
4602  oprot.writeFieldBegin('dictionary_generations', TType.LIST, 3)
4603  oprot.writeListBegin(TType.STRUCT, len(self.dictionary_generations))
4604  for iter172 in self.dictionary_generations:
4605  iter172.write(oprot)
4606  oprot.writeListEnd()
4607  oprot.writeFieldEnd()
4608  if self.table_generations is not None:
4609  oprot.writeFieldBegin('table_generations', TType.LIST, 4)
4610  oprot.writeListBegin(TType.STRUCT, len(self.table_generations))
4611  for iter173 in self.table_generations:
4612  iter173.write(oprot)
4613  oprot.writeListEnd()
4614  oprot.writeFieldEnd()
4615  if self.parent_session_id is not None:
4616  oprot.writeFieldBegin('parent_session_id', TType.STRING, 5)
4617  oprot.writeString(self.parent_session_id.encode('utf-8') if sys.version_info[0] == 2 else self.parent_session_id)
4618  oprot.writeFieldEnd()
4619  if self.table_cache_status is not None:
4620  oprot.writeFieldBegin('table_cache_status', TType.LIST, 6)
4621  oprot.writeListBegin(TType.STRUCT, len(self.table_cache_status))
4622  for iter174 in self.table_cache_status:
4623  iter174.write(oprot)
4624  oprot.writeListEnd()
4625  oprot.writeFieldEnd()
4626  oprot.writeFieldStop()
4627  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TPendingQuery.__dict__
private

Definition at line 4637 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TPendingQuery.column_ranges

Definition at line 4510 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TPendingQuery.read(), and heavydb.thrift.ttypes.TPendingQuery.write().

heavydb.thrift.ttypes.TPendingQuery.dictionary_generations

Definition at line 4511 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TPendingQuery.read(), and heavydb.thrift.ttypes.TPendingQuery.write().

heavydb.thrift.ttypes.TPendingQuery.id

Definition at line 4509 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TPendingQuery.read(), heavydb.thrift.ttypes.TPendingRenderQuery.read(), heavydb.thrift.ttypes.TCustomExpression.read(), heavydb.thrift.ttypes.TPendingQuery.write(), heavydb.thrift.ttypes.TPendingRenderQuery.write(), and heavydb.thrift.ttypes.TCustomExpression.write().

heavydb.thrift.ttypes.TPendingQuery.parent_session_id

Definition at line 4513 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TPendingQuery.read(), and heavydb.thrift.ttypes.TPendingQuery.write().

heavydb.thrift.ttypes.TPendingQuery.table_cache_status

Definition at line 4514 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TPendingQuery.read(), and heavydb.thrift.ttypes.TPendingQuery.write().

heavydb.thrift.ttypes.TPendingQuery.table_generations

Definition at line 4512 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TPendingQuery.read(), and heavydb.thrift.ttypes.TPendingQuery.write().


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