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

Constructor & Destructor Documentation

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

Definition at line 825 of file ttypes.py.

826  def __init__(self, int_col=None, real_col=None, str_col=None, arr_col=None,):
827  self.int_col = int_col
828  self.real_col = real_col
829  self.str_col = str_col
830  self.arr_col = arr_col

Member Function Documentation

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

Definition at line 930 of file ttypes.py.

931  def __eq__(self, other):
932  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TColumnData.__ne__ (   self,
  other 
)

Definition at line 933 of file ttypes.py.

934  def __ne__(self, other):
935  return not (self == other)
936 
def heavydb.thrift.ttypes.TColumnData.__repr__ (   self)

Definition at line 925 of file ttypes.py.

926  def __repr__(self):
927  L = ['%s=%r' % (key, value)
928  for key, value in self.__dict__.items()]
929  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.thrift.ttypes.TColumnData.read (   self,
  iprot 
)

Definition at line 831 of file ttypes.py.

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

832  def read(self, iprot):
833  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
834  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
835  return
836  iprot.readStructBegin()
837  while True:
838  (fname, ftype, fid) = iprot.readFieldBegin()
839  if ftype == TType.STOP:
840  break
841  if fid == 1:
842  if ftype == TType.LIST:
843  self.int_col = []
844  (_etype17, _size14) = iprot.readListBegin()
845  for _i18 in range(_size14):
846  _elem19 = iprot.readI64()
847  self.int_col.append(_elem19)
848  iprot.readListEnd()
849  else:
850  iprot.skip(ftype)
851  elif fid == 2:
852  if ftype == TType.LIST:
853  self.real_col = []
854  (_etype23, _size20) = iprot.readListBegin()
855  for _i24 in range(_size20):
856  _elem25 = iprot.readDouble()
857  self.real_col.append(_elem25)
858  iprot.readListEnd()
859  else:
860  iprot.skip(ftype)
861  elif fid == 3:
862  if ftype == TType.LIST:
863  self.str_col = []
864  (_etype29, _size26) = iprot.readListBegin()
865  for _i30 in range(_size26):
866  _elem31 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
867  self.str_col.append(_elem31)
868  iprot.readListEnd()
869  else:
870  iprot.skip(ftype)
871  elif fid == 4:
872  if ftype == TType.LIST:
873  self.arr_col = []
874  (_etype35, _size32) = iprot.readListBegin()
875  for _i36 in range(_size32):
876  _elem37 = TColumn()
877  _elem37.read(iprot)
878  self.arr_col.append(_elem37)
879  iprot.readListEnd()
880  else:
881  iprot.skip(ftype)
882  else:
883  iprot.skip(ftype)
884  iprot.readFieldEnd()
885  iprot.readStructEnd()
def heavydb.thrift.ttypes.TColumnData.validate (   self)

Definition at line 922 of file ttypes.py.

923  def validate(self):
924  return
def heavydb.thrift.ttypes.TColumnData.write (   self,
  oprot 
)

Definition at line 886 of file ttypes.py.

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

887  def write(self, oprot):
888  if oprot._fast_encode is not None and self.thrift_spec is not None:
889  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
890  return
891  oprot.writeStructBegin('TColumnData')
892  if self.int_col is not None:
893  oprot.writeFieldBegin('int_col', TType.LIST, 1)
894  oprot.writeListBegin(TType.I64, len(self.int_col))
895  for iter38 in self.int_col:
896  oprot.writeI64(iter38)
897  oprot.writeListEnd()
898  oprot.writeFieldEnd()
899  if self.real_col is not None:
900  oprot.writeFieldBegin('real_col', TType.LIST, 2)
901  oprot.writeListBegin(TType.DOUBLE, len(self.real_col))
902  for iter39 in self.real_col:
903  oprot.writeDouble(iter39)
904  oprot.writeListEnd()
905  oprot.writeFieldEnd()
906  if self.str_col is not None:
907  oprot.writeFieldBegin('str_col', TType.LIST, 3)
908  oprot.writeListBegin(TType.STRING, len(self.str_col))
909  for iter40 in self.str_col:
910  oprot.writeString(iter40.encode('utf-8') if sys.version_info[0] == 2 else iter40)
911  oprot.writeListEnd()
912  oprot.writeFieldEnd()
913  if self.arr_col is not None:
914  oprot.writeFieldBegin('arr_col', TType.LIST, 4)
915  oprot.writeListBegin(TType.STRUCT, len(self.arr_col))
916  for iter41 in self.arr_col:
917  iter41.write(oprot)
918  oprot.writeListEnd()
919  oprot.writeFieldEnd()
920  oprot.writeFieldStop()
921  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TColumnData.__dict__
private

Definition at line 931 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TColumnData.arr_col

Definition at line 829 of file ttypes.py.

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

heavydb.thrift.ttypes.TColumnData.int_col

Definition at line 826 of file ttypes.py.

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

heavydb.thrift.ttypes.TColumnData.real_col

Definition at line 827 of file ttypes.py.

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

heavydb.thrift.ttypes.TColumnData.str_col

Definition at line 828 of file ttypes.py.

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


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