OmniSciDB  cde582ebc3
 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
 

Private Attributes

 __dict__
 

Detailed Description

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

Definition at line 4328 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 
)

Definition at line 4340 of file ttypes.py.

4341  def __init__(self, id=None, column_ranges=None, dictionary_generations=None, table_generations=None, parent_session_id=None,):
4342  self.id = id
4343  self.column_ranges = column_ranges
4344  self.dictionary_generations = dictionary_generations
4345  self.table_generations = table_generations
4346  self.parent_session_id = parent_session_id

Member Function Documentation

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

Definition at line 4449 of file ttypes.py.

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

Definition at line 4452 of file ttypes.py.

4453  def __ne__(self, other):
4454  return not (self == other)
4455 
def heavydb.thrift.ttypes.TPendingQuery.__repr__ (   self)

Definition at line 4444 of file ttypes.py.

4445  def __repr__(self):
4446  L = ['%s=%r' % (key, value)
4447  for key, value in self.__dict__.items()]
4448  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 4347 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, heavydb.thrift.Heavy.update_custom_expression_args.id, heavydb.thrift.ttypes.TPendingQuery.parent_session_id, and heavydb.thrift.ttypes.TPendingQuery.table_generations.

4348  def read(self, iprot):
4349  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4350  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4351  return
4352  iprot.readStructBegin()
4353  while True:
4354  (fname, ftype, fid) = iprot.readFieldBegin()
4355  if ftype == TType.STOP:
4356  break
4357  if fid == 1:
4358  if ftype == TType.I64:
4359  self.id = iprot.readI64()
4360  else:
4361  iprot.skip(ftype)
4362  elif fid == 2:
4363  if ftype == TType.LIST:
4364  self.column_ranges = []
4365  (_etype150, _size147) = iprot.readListBegin()
4366  for _i151 in range(_size147):
4367  _elem152 = TColumnRange()
4368  _elem152.read(iprot)
4369  self.column_ranges.append(_elem152)
4370  iprot.readListEnd()
4371  else:
4372  iprot.skip(ftype)
4373  elif fid == 3:
4374  if ftype == TType.LIST:
4375  self.dictionary_generations = []
4376  (_etype156, _size153) = iprot.readListBegin()
4377  for _i157 in range(_size153):
4378  _elem158 = TDictionaryGeneration()
4379  _elem158.read(iprot)
4380  self.dictionary_generations.append(_elem158)
4381  iprot.readListEnd()
4382  else:
4383  iprot.skip(ftype)
4384  elif fid == 4:
4385  if ftype == TType.LIST:
4386  self.table_generations = []
4387  (_etype162, _size159) = iprot.readListBegin()
4388  for _i163 in range(_size159):
4389  _elem164 = TTableGeneration()
4390  _elem164.read(iprot)
4391  self.table_generations.append(_elem164)
4392  iprot.readListEnd()
4393  else:
4394  iprot.skip(ftype)
4395  elif fid == 5:
4396  if ftype == TType.STRING:
4397  self.parent_session_id = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
4398  else:
4399  iprot.skip(ftype)
4400  else:
4401  iprot.skip(ftype)
4402  iprot.readFieldEnd()
4403  iprot.readStructEnd()
def heavydb.thrift.ttypes.TPendingQuery.validate (   self)

Definition at line 4441 of file ttypes.py.

4442  def validate(self):
4443  return
def heavydb.thrift.ttypes.TPendingQuery.write (   self,
  oprot 
)

Definition at line 4404 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, heavydb.thrift.Heavy.update_custom_expression_args.id, heavydb.thrift.ttypes.TPendingQuery.parent_session_id, and heavydb.thrift.ttypes.TPendingQuery.table_generations.

4405  def write(self, oprot):
4406  if oprot._fast_encode is not None and self.thrift_spec is not None:
4407  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4408  return
4409  oprot.writeStructBegin('TPendingQuery')
4410  if self.id is not None:
4411  oprot.writeFieldBegin('id', TType.I64, 1)
4412  oprot.writeI64(self.id)
4413  oprot.writeFieldEnd()
4414  if self.column_ranges is not None:
4415  oprot.writeFieldBegin('column_ranges', TType.LIST, 2)
4416  oprot.writeListBegin(TType.STRUCT, len(self.column_ranges))
4417  for iter165 in self.column_ranges:
4418  iter165.write(oprot)
4419  oprot.writeListEnd()
4420  oprot.writeFieldEnd()
4421  if self.dictionary_generations is not None:
4422  oprot.writeFieldBegin('dictionary_generations', TType.LIST, 3)
4423  oprot.writeListBegin(TType.STRUCT, len(self.dictionary_generations))
4424  for iter166 in self.dictionary_generations:
4425  iter166.write(oprot)
4426  oprot.writeListEnd()
4427  oprot.writeFieldEnd()
4428  if self.table_generations is not None:
4429  oprot.writeFieldBegin('table_generations', TType.LIST, 4)
4430  oprot.writeListBegin(TType.STRUCT, len(self.table_generations))
4431  for iter167 in self.table_generations:
4432  iter167.write(oprot)
4433  oprot.writeListEnd()
4434  oprot.writeFieldEnd()
4435  if self.parent_session_id is not None:
4436  oprot.writeFieldBegin('parent_session_id', TType.STRING, 5)
4437  oprot.writeString(self.parent_session_id.encode('utf-8') if sys.version_info[0] == 2 else self.parent_session_id)
4438  oprot.writeFieldEnd()
4439  oprot.writeFieldStop()
4440  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TPendingQuery.__dict__
private

Definition at line 4450 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TPendingQuery.column_ranges

Definition at line 4342 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 4343 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 4341 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 4345 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 4344 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: