OmniSciDB  a7179b2938
 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 662 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 673 of file ttypes.py.

674  def __init__(self, int_col=None, real_col=None, str_col=None, arr_col=None,):
675  self.int_col = int_col
676  self.real_col = real_col
677  self.str_col = str_col
678  self.arr_col = arr_col

Member Function Documentation

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

Definition at line 778 of file ttypes.py.

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

Definition at line 781 of file ttypes.py.

782  def __ne__(self, other):
783  return not (self == other)
784 
def omnisci.thrift.ttypes.TColumnData.__repr__ (   self)

Definition at line 773 of file ttypes.py.

774  def __repr__(self):
775  L = ['%s=%r' % (key, value)
776  for key, value in self.__dict__.items()]
777  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 679 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.

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

Definition at line 770 of file ttypes.py.

771  def validate(self):
772  return
def omnisci.thrift.ttypes.TColumnData.write (   self,
  oprot 
)

Definition at line 734 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.

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

Member Data Documentation

omnisci.thrift.ttypes.TColumnData.__dict__
private

Definition at line 779 of file ttypes.py.

omnisci.thrift.ttypes.TColumnData.arr_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.int_col

Definition at line 674 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 675 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 676 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: