OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.serialized_result_set.ttypes.TColSlotContext Class Reference
+ Inheritance diagram for omnisci.serialized_result_set.ttypes.TColSlotContext:
+ Collaboration diagram for omnisci.serialized_result_set.ttypes.TColSlotContext:

Public Member Functions

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

Public Attributes

 slot_sizes
 
 col_to_slot_map
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - slot_sizes
 - col_to_slot_map

Definition at line 157 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.serialized_result_set.ttypes.TColSlotContext.__init__ (   self,
  slot_sizes = None,
  col_to_slot_map = None 
)

Definition at line 166 of file ttypes.py.

167  def __init__(self, slot_sizes=None, col_to_slot_map=None,):
168  self.slot_sizes = slot_sizes
169  self.col_to_slot_map = col_to_slot_map

Member Function Documentation

def omnisci.serialized_result_set.ttypes.TColSlotContext.__eq__ (   self,
  other 
)

Definition at line 243 of file ttypes.py.

244  def __eq__(self, other):
245  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.serialized_result_set.ttypes.TColSlotContext.__ne__ (   self,
  other 
)

Definition at line 246 of file ttypes.py.

247  def __ne__(self, other):
248  return not (self == other)
249 
def omnisci.serialized_result_set.ttypes.TColSlotContext.__repr__ (   self)

Definition at line 238 of file ttypes.py.

239  def __repr__(self):
240  L = ['%s=%r' % (key, value)
241  for key, value in self.__dict__.items()]
242  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.serialized_result_set.ttypes.TColSlotContext.read (   self,
  iprot 
)

Definition at line 170 of file ttypes.py.

References omnisci.serialized_result_set.ttypes.TColSlotContext.col_to_slot_map, and omnisci.serialized_result_set.ttypes.TColSlotContext.slot_sizes.

171  def read(self, iprot):
172  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
173  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
174  return
175  iprot.readStructBegin()
176  while True:
177  (fname, ftype, fid) = iprot.readFieldBegin()
178  if ftype == TType.STOP:
179  break
180  if fid == 1:
181  if ftype == TType.LIST:
182  self.slot_sizes = []
183  (_etype3, _size0) = iprot.readListBegin()
184  for _i4 in range(_size0):
185  _elem5 = TSlotSize()
186  _elem5.read(iprot)
187  self.slot_sizes.append(_elem5)
188  iprot.readListEnd()
189  else:
190  iprot.skip(ftype)
191  elif fid == 2:
192  if ftype == TType.LIST:
193  self.col_to_slot_map = []
194  (_etype9, _size6) = iprot.readListBegin()
195  for _i10 in range(_size6):
196  _elem11 = []
197  (_etype15, _size12) = iprot.readListBegin()
198  for _i16 in range(_size12):
199  _elem17 = iprot.readI32()
200  _elem11.append(_elem17)
201  iprot.readListEnd()
202  self.col_to_slot_map.append(_elem11)
203  iprot.readListEnd()
204  else:
205  iprot.skip(ftype)
206  else:
207  iprot.skip(ftype)
208  iprot.readFieldEnd()
209  iprot.readStructEnd()
def omnisci.serialized_result_set.ttypes.TColSlotContext.validate (   self)

Definition at line 235 of file ttypes.py.

236  def validate(self):
237  return
def omnisci.serialized_result_set.ttypes.TColSlotContext.write (   self,
  oprot 
)

Definition at line 210 of file ttypes.py.

References omnisci.serialized_result_set.ttypes.TColSlotContext.col_to_slot_map, and omnisci.serialized_result_set.ttypes.TColSlotContext.slot_sizes.

211  def write(self, oprot):
212  if oprot._fast_encode is not None and self.thrift_spec is not None:
213  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
214  return
215  oprot.writeStructBegin('TColSlotContext')
216  if self.slot_sizes is not None:
217  oprot.writeFieldBegin('slot_sizes', TType.LIST, 1)
218  oprot.writeListBegin(TType.STRUCT, len(self.slot_sizes))
219  for iter18 in self.slot_sizes:
220  iter18.write(oprot)
221  oprot.writeListEnd()
222  oprot.writeFieldEnd()
223  if self.col_to_slot_map is not None:
224  oprot.writeFieldBegin('col_to_slot_map', TType.LIST, 2)
225  oprot.writeListBegin(TType.LIST, len(self.col_to_slot_map))
226  for iter19 in self.col_to_slot_map:
227  oprot.writeListBegin(TType.I32, len(iter19))
228  for iter20 in iter19:
229  oprot.writeI32(iter20)
230  oprot.writeListEnd()
231  oprot.writeListEnd()
232  oprot.writeFieldEnd()
233  oprot.writeFieldStop()
234  oprot.writeStructEnd()

Member Data Documentation

omnisci.serialized_result_set.ttypes.TColSlotContext.__dict__
private

Definition at line 244 of file ttypes.py.

omnisci.serialized_result_set.ttypes.TColSlotContext.col_to_slot_map

Definition at line 168 of file ttypes.py.

Referenced by omnisci.serialized_result_set.ttypes.TColSlotContext.read(), and omnisci.serialized_result_set.ttypes.TColSlotContext.write().

omnisci.serialized_result_set.ttypes.TColSlotContext.slot_sizes

Definition at line 167 of file ttypes.py.

Referenced by omnisci.serialized_result_set.ttypes.TColSlotContext.read(), and omnisci.serialized_result_set.ttypes.TColSlotContext.write().


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