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

Public Member Functions

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

Public Attributes

 padded
 
 logical
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - padded
 - logical

Definition at line 89 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.serialized_result_set.ttypes.TSlotSize.__init__ (   self,
  padded = None,
  logical = None 
)

Definition at line 98 of file ttypes.py.

98 
99  def __init__(self, padded=None, logical=None,):
100  self.padded = padded
101  self.logical = logical

Member Function Documentation

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

Definition at line 150 of file ttypes.py.

151  def __eq__(self, other):
152  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.serialized_result_set.ttypes.TSlotSize.__ne__ (   self,
  other 
)

Definition at line 153 of file ttypes.py.

154  def __ne__(self, other):
155  return not (self == other)
156 
def omnisci.serialized_result_set.ttypes.TSlotSize.__repr__ (   self)

Definition at line 145 of file ttypes.py.

146  def __repr__(self):
147  L = ['%s=%r' % (key, value)
148  for key, value in self.__dict__.items()]
149  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.TSlotSize.read (   self,
  iprot 
)

Definition at line 102 of file ttypes.py.

References omnisci.serialized_result_set.ttypes.TSlotSize.logical, and omnisci.serialized_result_set.ttypes.TSlotSize.padded.

103  def read(self, iprot):
104  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
105  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
106  return
107  iprot.readStructBegin()
108  while True:
109  (fname, ftype, fid) = iprot.readFieldBegin()
110  if ftype == TType.STOP:
111  break
112  if fid == 1:
113  if ftype == TType.I16:
114  self.padded = iprot.readI16()
115  else:
116  iprot.skip(ftype)
117  elif fid == 2:
118  if ftype == TType.I16:
119  self.logical = iprot.readI16()
120  else:
121  iprot.skip(ftype)
122  else:
123  iprot.skip(ftype)
124  iprot.readFieldEnd()
125  iprot.readStructEnd()
def omnisci.serialized_result_set.ttypes.TSlotSize.validate (   self)

Definition at line 142 of file ttypes.py.

143  def validate(self):
144  return
def omnisci.serialized_result_set.ttypes.TSlotSize.write (   self,
  oprot 
)

Definition at line 126 of file ttypes.py.

References omnisci.serialized_result_set.ttypes.TSlotSize.logical, and omnisci.serialized_result_set.ttypes.TSlotSize.padded.

127  def write(self, oprot):
128  if oprot._fast_encode is not None and self.thrift_spec is not None:
129  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
130  return
131  oprot.writeStructBegin('TSlotSize')
132  if self.padded is not None:
133  oprot.writeFieldBegin('padded', TType.I16, 1)
134  oprot.writeI16(self.padded)
135  oprot.writeFieldEnd()
136  if self.logical is not None:
137  oprot.writeFieldBegin('logical', TType.I16, 2)
138  oprot.writeI16(self.logical)
139  oprot.writeFieldEnd()
140  oprot.writeFieldStop()
141  oprot.writeStructEnd()

Member Data Documentation

omnisci.serialized_result_set.ttypes.TSlotSize.__dict__
private

Definition at line 151 of file ttypes.py.

omnisci.serialized_result_set.ttypes.TSlotSize.logical

Definition at line 100 of file ttypes.py.

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

omnisci.serialized_result_set.ttypes.TSlotSize.padded

Definition at line 99 of file ttypes.py.

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


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