OmniSciDB  a7179b2938
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TPendingQuery Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TPendingQuery:
+ Collaboration diagram for omnisci.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 3975 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 3987 of file ttypes.py.

3988  def __init__(self, id=None, column_ranges=None, dictionary_generations=None, table_generations=None, parent_session_id=None,):
3989  self.id = id
3990  self.column_ranges = column_ranges
3991  self.dictionary_generations = dictionary_generations
3992  self.table_generations = table_generations
3993  self.parent_session_id = parent_session_id

Member Function Documentation

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

Definition at line 4096 of file ttypes.py.

4097  def __eq__(self, other):
4098  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TPendingQuery.__ne__ (   self,
  other 
)

Definition at line 4099 of file ttypes.py.

4100  def __ne__(self, other):
4101  return not (self == other)
4102 
def omnisci.thrift.ttypes.TPendingQuery.__repr__ (   self)

Definition at line 4091 of file ttypes.py.

4092  def __repr__(self):
4093  L = ['%s=%r' % (key, value)
4094  for key, value in self.__dict__.items()]
4095  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.TPendingQuery.read (   self,
  iprot 
)

Definition at line 3994 of file ttypes.py.

References omnisci.thrift.ttypes.TPendingQuery.column_ranges, omnisci.thrift.ttypes.TPendingQuery.dictionary_generations, foreign_storage::ForeignServer.id, omnisci.thrift.ttypes.TPendingQuery.id, omnisci.thrift.ttypes.TPendingQuery.parent_session_id, and omnisci.thrift.ttypes.TPendingQuery.table_generations.

3995  def read(self, iprot):
3996  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3997  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3998  return
3999  iprot.readStructBegin()
4000  while True:
4001  (fname, ftype, fid) = iprot.readFieldBegin()
4002  if ftype == TType.STOP:
4003  break
4004  if fid == 1:
4005  if ftype == TType.I64:
4006  self.id = iprot.readI64()
4007  else:
4008  iprot.skip(ftype)
4009  elif fid == 2:
4010  if ftype == TType.LIST:
4011  self.column_ranges = []
4012  (_etype150, _size147) = iprot.readListBegin()
4013  for _i151 in range(_size147):
4014  _elem152 = TColumnRange()
4015  _elem152.read(iprot)
4016  self.column_ranges.append(_elem152)
4017  iprot.readListEnd()
4018  else:
4019  iprot.skip(ftype)
4020  elif fid == 3:
4021  if ftype == TType.LIST:
4022  self.dictionary_generations = []
4023  (_etype156, _size153) = iprot.readListBegin()
4024  for _i157 in range(_size153):
4025  _elem158 = TDictionaryGeneration()
4026  _elem158.read(iprot)
4027  self.dictionary_generations.append(_elem158)
4028  iprot.readListEnd()
4029  else:
4030  iprot.skip(ftype)
4031  elif fid == 4:
4032  if ftype == TType.LIST:
4033  self.table_generations = []
4034  (_etype162, _size159) = iprot.readListBegin()
4035  for _i163 in range(_size159):
4036  _elem164 = TTableGeneration()
4037  _elem164.read(iprot)
4038  self.table_generations.append(_elem164)
4039  iprot.readListEnd()
4040  else:
4041  iprot.skip(ftype)
4042  elif fid == 5:
4043  if ftype == TType.STRING:
4044  self.parent_session_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
4045  else:
4046  iprot.skip(ftype)
4047  else:
4048  iprot.skip(ftype)
4049  iprot.readFieldEnd()
4050  iprot.readStructEnd()
def omnisci.thrift.ttypes.TPendingQuery.validate (   self)

Definition at line 4088 of file ttypes.py.

4089  def validate(self):
4090  return
def omnisci.thrift.ttypes.TPendingQuery.write (   self,
  oprot 
)

Definition at line 4051 of file ttypes.py.

References omnisci.thrift.ttypes.TPendingQuery.column_ranges, omnisci.thrift.ttypes.TPendingQuery.dictionary_generations, foreign_storage::ForeignServer.id, omnisci.thrift.ttypes.TPendingQuery.id, omnisci.thrift.ttypes.TPendingQuery.parent_session_id, and omnisci.thrift.ttypes.TPendingQuery.table_generations.

4052  def write(self, oprot):
4053  if oprot._fast_encode is not None and self.thrift_spec is not None:
4054  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4055  return
4056  oprot.writeStructBegin('TPendingQuery')
4057  if self.id is not None:
4058  oprot.writeFieldBegin('id', TType.I64, 1)
4059  oprot.writeI64(self.id)
4060  oprot.writeFieldEnd()
4061  if self.column_ranges is not None:
4062  oprot.writeFieldBegin('column_ranges', TType.LIST, 2)
4063  oprot.writeListBegin(TType.STRUCT, len(self.column_ranges))
4064  for iter165 in self.column_ranges:
4065  iter165.write(oprot)
4066  oprot.writeListEnd()
4067  oprot.writeFieldEnd()
4068  if self.dictionary_generations is not None:
4069  oprot.writeFieldBegin('dictionary_generations', TType.LIST, 3)
4070  oprot.writeListBegin(TType.STRUCT, len(self.dictionary_generations))
4071  for iter166 in self.dictionary_generations:
4072  iter166.write(oprot)
4073  oprot.writeListEnd()
4074  oprot.writeFieldEnd()
4075  if self.table_generations is not None:
4076  oprot.writeFieldBegin('table_generations', TType.LIST, 4)
4077  oprot.writeListBegin(TType.STRUCT, len(self.table_generations))
4078  for iter167 in self.table_generations:
4079  iter167.write(oprot)
4080  oprot.writeListEnd()
4081  oprot.writeFieldEnd()
4082  if self.parent_session_id is not None:
4083  oprot.writeFieldBegin('parent_session_id', TType.STRING, 5)
4084  oprot.writeString(self.parent_session_id.encode('utf-8') if sys.version_info[0] == 2 else self.parent_session_id)
4085  oprot.writeFieldEnd()
4086  oprot.writeFieldStop()
4087  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TPendingQuery.__dict__
private

Definition at line 4097 of file ttypes.py.

omnisci.thrift.ttypes.TPendingQuery.column_ranges

Definition at line 3989 of file ttypes.py.

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

omnisci.thrift.ttypes.TPendingQuery.dictionary_generations

Definition at line 3990 of file ttypes.py.

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

omnisci.thrift.ttypes.TPendingQuery.id

Definition at line 3988 of file ttypes.py.

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

omnisci.thrift.ttypes.TPendingQuery.parent_session_id

Definition at line 3992 of file ttypes.py.

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

omnisci.thrift.ttypes.TPendingQuery.table_generations

Definition at line 3991 of file ttypes.py.

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


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