OmniSciDB  94e8789169
 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 160 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 169 of file ttypes.py.

170  def __init__(self, slot_sizes=None, col_to_slot_map=None,):
171  self.slot_sizes = slot_sizes
172  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 246 of file ttypes.py.

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

Definition at line 249 of file ttypes.py.

250  def __ne__(self, other):
251  return not (self == other)
252 
def omnisci.serialized_result_set.ttypes.TColSlotContext.__repr__ (   self)

Definition at line 241 of file ttypes.py.

242  def __repr__(self):
243  L = ['%s=%r' % (key, value)
244  for key, value in self.__dict__.items()]
245  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 173 of file ttypes.py.

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

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

Definition at line 238 of file ttypes.py.

239  def validate(self):
240  return
def omnisci.serialized_result_set.ttypes.TColSlotContext.write (   self,
  oprot 
)

Definition at line 213 of file ttypes.py.

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

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

Member Data Documentation

omnisci.serialized_result_set.ttypes.TColSlotContext.__dict__
private

Definition at line 247 of file ttypes.py.

omnisci.serialized_result_set.ttypes.TColSlotContext.col_to_slot_map

Definition at line 171 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 170 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: