OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.serialized_result_set.ttypes.TColSlotContext Class Reference
+ Inheritance diagram for heavydb.serialized_result_set.ttypes.TColSlotContext:
+ Collaboration diagram for heavydb.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 166 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 175 of file ttypes.py.

176  def __init__(self, slot_sizes=None, col_to_slot_map=None,):
177  self.slot_sizes = slot_sizes
178  self.col_to_slot_map = col_to_slot_map

Member Function Documentation

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

Definition at line 252 of file ttypes.py.

253  def __eq__(self, other):
254  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.serialized_result_set.ttypes.TColSlotContext.__ne__ (   self,
  other 
)

Definition at line 255 of file ttypes.py.

256  def __ne__(self, other):
257  return not (self == other)
258 
def heavydb.serialized_result_set.ttypes.TColSlotContext.__repr__ (   self)

Definition at line 247 of file ttypes.py.

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

Definition at line 179 of file ttypes.py.

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

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

Definition at line 244 of file ttypes.py.

245  def validate(self):
246  return
def heavydb.serialized_result_set.ttypes.TColSlotContext.write (   self,
  oprot 
)

Definition at line 219 of file ttypes.py.

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

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

Member Data Documentation

heavydb.serialized_result_set.ttypes.TColSlotContext.__dict__
private

Definition at line 253 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.serialized_result_set.ttypes.TColSlotContext.col_to_slot_map

Definition at line 177 of file ttypes.py.

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

heavydb.serialized_result_set.ttypes.TColSlotContext.slot_sizes

Definition at line 176 of file ttypes.py.

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


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