OmniSciDB  a575cb28ea
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TColumnData Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TColumnData:
+ Collaboration diagram for omnisci.thrift.ttypes.TColumnData:

Public Member Functions

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

Public Attributes

 int_col
 
 real_col
 
 str_col
 
 arr_col
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - int_col
 - real_col
 - str_col
 - arr_col

Definition at line 665 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TColumnData.__init__ (   self,
  int_col = None,
  real_col = None,
  str_col = None,
  arr_col = None 
)

Definition at line 676 of file ttypes.py.

677  def __init__(self, int_col=None, real_col=None, str_col=None, arr_col=None,):
678  self.int_col = int_col
679  self.real_col = real_col
680  self.str_col = str_col
681  self.arr_col = arr_col

Member Function Documentation

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

Definition at line 781 of file ttypes.py.

782  def __eq__(self, other):
783  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TColumnData.__ne__ (   self,
  other 
)

Definition at line 784 of file ttypes.py.

785  def __ne__(self, other):
786  return not (self == other)
787 
def omnisci.thrift.ttypes.TColumnData.__repr__ (   self)

Definition at line 776 of file ttypes.py.

777  def __repr__(self):
778  L = ['%s=%r' % (key, value)
779  for key, value in self.__dict__.items()]
780  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.TColumnData.read (   self,
  iprot 
)

Definition at line 682 of file ttypes.py.

References omnisci.thrift.ttypes.TColumnData.arr_col, omnisci.thrift.ttypes.TColumnData.int_col, omnisci.thrift.ttypes.TColumnData.real_col, and omnisci.thrift.ttypes.TColumnData.str_col.

683  def read(self, iprot):
684  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
685  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
686  return
687  iprot.readStructBegin()
688  while True:
689  (fname, ftype, fid) = iprot.readFieldBegin()
690  if ftype == TType.STOP:
691  break
692  if fid == 1:
693  if ftype == TType.LIST:
694  self.int_col = []
695  (_etype17, _size14) = iprot.readListBegin()
696  for _i18 in range(_size14):
697  _elem19 = iprot.readI64()
698  self.int_col.append(_elem19)
699  iprot.readListEnd()
700  else:
701  iprot.skip(ftype)
702  elif fid == 2:
703  if ftype == TType.LIST:
704  self.real_col = []
705  (_etype23, _size20) = iprot.readListBegin()
706  for _i24 in range(_size20):
707  _elem25 = iprot.readDouble()
708  self.real_col.append(_elem25)
709  iprot.readListEnd()
710  else:
711  iprot.skip(ftype)
712  elif fid == 3:
713  if ftype == TType.LIST:
714  self.str_col = []
715  (_etype29, _size26) = iprot.readListBegin()
716  for _i30 in range(_size26):
717  _elem31 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
718  self.str_col.append(_elem31)
719  iprot.readListEnd()
720  else:
721  iprot.skip(ftype)
722  elif fid == 4:
723  if ftype == TType.LIST:
724  self.arr_col = []
725  (_etype35, _size32) = iprot.readListBegin()
726  for _i36 in range(_size32):
727  _elem37 = TColumn()
728  _elem37.read(iprot)
729  self.arr_col.append(_elem37)
730  iprot.readListEnd()
731  else:
732  iprot.skip(ftype)
733  else:
734  iprot.skip(ftype)
735  iprot.readFieldEnd()
736  iprot.readStructEnd()
def omnisci.thrift.ttypes.TColumnData.validate (   self)

Definition at line 773 of file ttypes.py.

774  def validate(self):
775  return
def omnisci.thrift.ttypes.TColumnData.write (   self,
  oprot 
)

Definition at line 737 of file ttypes.py.

References omnisci.thrift.ttypes.TColumnData.arr_col, omnisci.thrift.ttypes.TColumnData.int_col, omnisci.thrift.ttypes.TColumnData.real_col, and omnisci.thrift.ttypes.TColumnData.str_col.

738  def write(self, oprot):
739  if oprot._fast_encode is not None and self.thrift_spec is not None:
740  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
741  return
742  oprot.writeStructBegin('TColumnData')
743  if self.int_col is not None:
744  oprot.writeFieldBegin('int_col', TType.LIST, 1)
745  oprot.writeListBegin(TType.I64, len(self.int_col))
746  for iter38 in self.int_col:
747  oprot.writeI64(iter38)
748  oprot.writeListEnd()
749  oprot.writeFieldEnd()
750  if self.real_col is not None:
751  oprot.writeFieldBegin('real_col', TType.LIST, 2)
752  oprot.writeListBegin(TType.DOUBLE, len(self.real_col))
753  for iter39 in self.real_col:
754  oprot.writeDouble(iter39)
755  oprot.writeListEnd()
756  oprot.writeFieldEnd()
757  if self.str_col is not None:
758  oprot.writeFieldBegin('str_col', TType.LIST, 3)
759  oprot.writeListBegin(TType.STRING, len(self.str_col))
760  for iter40 in self.str_col:
761  oprot.writeString(iter40.encode('utf-8') if sys.version_info[0] == 2 else iter40)
762  oprot.writeListEnd()
763  oprot.writeFieldEnd()
764  if self.arr_col is not None:
765  oprot.writeFieldBegin('arr_col', TType.LIST, 4)
766  oprot.writeListBegin(TType.STRUCT, len(self.arr_col))
767  for iter41 in self.arr_col:
768  iter41.write(oprot)
769  oprot.writeListEnd()
770  oprot.writeFieldEnd()
771  oprot.writeFieldStop()
772  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TColumnData.__dict__
private

Definition at line 782 of file ttypes.py.

omnisci.thrift.ttypes.TColumnData.arr_col

Definition at line 680 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.TColumnData.read(), and omnisci.thrift.ttypes.TColumnData.write().

omnisci.thrift.ttypes.TColumnData.int_col

Definition at line 677 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.TColumnData.read(), and omnisci.thrift.ttypes.TColumnData.write().

omnisci.thrift.ttypes.TColumnData.real_col

Definition at line 678 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.TColumnData.read(), and omnisci.thrift.ttypes.TColumnData.write().

omnisci.thrift.ttypes.TColumnData.str_col

Definition at line 679 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.TColumnData.read(), and omnisci.thrift.ttypes.TColumnData.write().


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