OmniSciDB  a575cb28ea
 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 3855 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 3867 of file ttypes.py.

3868  def __init__(self, id=None, column_ranges=None, dictionary_generations=None, table_generations=None, parent_session_id=None,):
3869  self.id = id
3870  self.column_ranges = column_ranges
3871  self.dictionary_generations = dictionary_generations
3872  self.table_generations = table_generations
3873  self.parent_session_id = parent_session_id

Member Function Documentation

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

Definition at line 3976 of file ttypes.py.

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

Definition at line 3979 of file ttypes.py.

3980  def __ne__(self, other):
3981  return not (self == other)
3982 
def omnisci.thrift.ttypes.TPendingQuery.__repr__ (   self)

Definition at line 3971 of file ttypes.py.

3972  def __repr__(self):
3973  L = ['%s=%r' % (key, value)
3974  for key, value in self.__dict__.items()]
3975  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 3874 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.

3875  def read(self, iprot):
3876  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3877  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3878  return
3879  iprot.readStructBegin()
3880  while True:
3881  (fname, ftype, fid) = iprot.readFieldBegin()
3882  if ftype == TType.STOP:
3883  break
3884  if fid == 1:
3885  if ftype == TType.I64:
3886  self.id = iprot.readI64()
3887  else:
3888  iprot.skip(ftype)
3889  elif fid == 2:
3890  if ftype == TType.LIST:
3891  self.column_ranges = []
3892  (_etype150, _size147) = iprot.readListBegin()
3893  for _i151 in range(_size147):
3894  _elem152 = TColumnRange()
3895  _elem152.read(iprot)
3896  self.column_ranges.append(_elem152)
3897  iprot.readListEnd()
3898  else:
3899  iprot.skip(ftype)
3900  elif fid == 3:
3901  if ftype == TType.LIST:
3902  self.dictionary_generations = []
3903  (_etype156, _size153) = iprot.readListBegin()
3904  for _i157 in range(_size153):
3905  _elem158 = TDictionaryGeneration()
3906  _elem158.read(iprot)
3907  self.dictionary_generations.append(_elem158)
3908  iprot.readListEnd()
3909  else:
3910  iprot.skip(ftype)
3911  elif fid == 4:
3912  if ftype == TType.LIST:
3913  self.table_generations = []
3914  (_etype162, _size159) = iprot.readListBegin()
3915  for _i163 in range(_size159):
3916  _elem164 = TTableGeneration()
3917  _elem164.read(iprot)
3918  self.table_generations.append(_elem164)
3919  iprot.readListEnd()
3920  else:
3921  iprot.skip(ftype)
3922  elif fid == 5:
3923  if ftype == TType.STRING:
3924  self.parent_session_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
3925  else:
3926  iprot.skip(ftype)
3927  else:
3928  iprot.skip(ftype)
3929  iprot.readFieldEnd()
3930  iprot.readStructEnd()
def omnisci.thrift.ttypes.TPendingQuery.validate (   self)

Definition at line 3968 of file ttypes.py.

3969  def validate(self):
3970  return
def omnisci.thrift.ttypes.TPendingQuery.write (   self,
  oprot 
)

Definition at line 3931 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.

3932  def write(self, oprot):
3933  if oprot._fast_encode is not None and self.thrift_spec is not None:
3934  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3935  return
3936  oprot.writeStructBegin('TPendingQuery')
3937  if self.id is not None:
3938  oprot.writeFieldBegin('id', TType.I64, 1)
3939  oprot.writeI64(self.id)
3940  oprot.writeFieldEnd()
3941  if self.column_ranges is not None:
3942  oprot.writeFieldBegin('column_ranges', TType.LIST, 2)
3943  oprot.writeListBegin(TType.STRUCT, len(self.column_ranges))
3944  for iter165 in self.column_ranges:
3945  iter165.write(oprot)
3946  oprot.writeListEnd()
3947  oprot.writeFieldEnd()
3948  if self.dictionary_generations is not None:
3949  oprot.writeFieldBegin('dictionary_generations', TType.LIST, 3)
3950  oprot.writeListBegin(TType.STRUCT, len(self.dictionary_generations))
3951  for iter166 in self.dictionary_generations:
3952  iter166.write(oprot)
3953  oprot.writeListEnd()
3954  oprot.writeFieldEnd()
3955  if self.table_generations is not None:
3956  oprot.writeFieldBegin('table_generations', TType.LIST, 4)
3957  oprot.writeListBegin(TType.STRUCT, len(self.table_generations))
3958  for iter167 in self.table_generations:
3959  iter167.write(oprot)
3960  oprot.writeListEnd()
3961  oprot.writeFieldEnd()
3962  if self.parent_session_id is not None:
3963  oprot.writeFieldBegin('parent_session_id', TType.STRING, 5)
3964  oprot.writeString(self.parent_session_id.encode('utf-8') if sys.version_info[0] == 2 else self.parent_session_id)
3965  oprot.writeFieldEnd()
3966  oprot.writeFieldStop()
3967  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TPendingQuery.__dict__
private

Definition at line 3977 of file ttypes.py.

omnisci.thrift.ttypes.TPendingQuery.column_ranges

Definition at line 3869 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 3870 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 3868 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 3872 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 3871 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: