OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TColumnType Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TColumnType:
+ Collaboration diagram for heavydb.thrift.ttypes.TColumnType:

Public Member Functions

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

Public Attributes

 col_name
 
 col_type
 
 is_reserved_keyword
 
 src_name
 
 is_system
 
 is_physical
 
 col_id
 
 default_value
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - col_name
 - col_type
 - is_reserved_keyword
 - src_name
 - is_system
 - is_physical
 - col_id
 - default_value

Definition at line 613 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TColumnType.__init__ (   self,
  col_name = None,
  col_type = None,
  is_reserved_keyword = None,
  src_name = None,
  is_system = None,
  is_physical = None,
  col_id = None,
  default_value = None 
)

Definition at line 628 of file ttypes.py.

629  def __init__(self, col_name=None, col_type=None, is_reserved_keyword=None, src_name=None, is_system=None, is_physical=None, col_id=None, default_value=None,):
630  self.col_name = col_name
631  self.col_type = col_type
632  self.is_reserved_keyword = is_reserved_keyword
633  self.src_name = src_name
634  self.is_system = is_system
635  self.is_physical = is_physical
636  self.col_id = col_id
637  self.default_value = default_value

Member Function Documentation

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

Definition at line 741 of file ttypes.py.

742  def __eq__(self, other):
743  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TColumnType.__ne__ (   self,
  other 
)

Definition at line 744 of file ttypes.py.

745  def __ne__(self, other):
746  return not (self == other)
747 
def heavydb.thrift.ttypes.TColumnType.__repr__ (   self)

Definition at line 736 of file ttypes.py.

737  def __repr__(self):
738  L = ['%s=%r' % (key, value)
739  for key, value in self.__dict__.items()]
740  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.TColumnType.read (   self,
  iprot 
)

Definition at line 638 of file ttypes.py.

References heavydb.thrift.ttypes.TColumnType.col_id, EmbeddedDatabase::ColumnDetails.col_name, heavydb.thrift.ttypes.TColumnType.col_name, EmbeddedDatabase::ColumnDetails.col_type, heavydb.thrift.ttypes.TColumnType.col_type, ColumnDescriptor.default_value, heavydb.thrift.ttypes.TColumnType.default_value, heavydb.thrift.ttypes.TColumnType.is_physical, heavydb.thrift.ttypes.TColumnType.is_reserved_keyword, heavydb.thrift.ttypes.TColumnType.is_system, and heavydb.thrift.ttypes.TColumnType.src_name.

639  def read(self, iprot):
640  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
641  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
642  return
643  iprot.readStructBegin()
644  while True:
645  (fname, ftype, fid) = iprot.readFieldBegin()
646  if ftype == TType.STOP:
647  break
648  if fid == 1:
649  if ftype == TType.STRING:
650  self.col_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
651  else:
652  iprot.skip(ftype)
653  elif fid == 2:
654  if ftype == TType.STRUCT:
656  self.col_type.read(iprot)
657  else:
658  iprot.skip(ftype)
659  elif fid == 3:
660  if ftype == TType.BOOL:
661  self.is_reserved_keyword = iprot.readBool()
662  else:
663  iprot.skip(ftype)
664  elif fid == 4:
665  if ftype == TType.STRING:
666  self.src_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
667  else:
668  iprot.skip(ftype)
669  elif fid == 5:
670  if ftype == TType.BOOL:
671  self.is_system = iprot.readBool()
672  else:
673  iprot.skip(ftype)
674  elif fid == 6:
675  if ftype == TType.BOOL:
676  self.is_physical = iprot.readBool()
677  else:
678  iprot.skip(ftype)
679  elif fid == 7:
680  if ftype == TType.I64:
681  self.col_id = iprot.readI64()
682  else:
683  iprot.skip(ftype)
684  elif fid == 8:
685  if ftype == TType.STRING:
686  self.default_value = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
687  else:
688  iprot.skip(ftype)
689  else:
690  iprot.skip(ftype)
691  iprot.readFieldEnd()
692  iprot.readStructEnd()
def heavydb.thrift.ttypes.TColumnType.validate (   self)

Definition at line 733 of file ttypes.py.

734  def validate(self):
735  return
def heavydb.thrift.ttypes.TColumnType.write (   self,
  oprot 
)

Definition at line 693 of file ttypes.py.

References heavydb.thrift.ttypes.TColumnType.col_id, EmbeddedDatabase::ColumnDetails.col_name, heavydb.thrift.ttypes.TColumnType.col_name, EmbeddedDatabase::ColumnDetails.col_type, heavydb.thrift.ttypes.TColumnType.col_type, ColumnDescriptor.default_value, heavydb.thrift.ttypes.TColumnType.default_value, heavydb.thrift.ttypes.TColumnType.is_physical, heavydb.thrift.ttypes.TColumnType.is_reserved_keyword, heavydb.thrift.ttypes.TColumnType.is_system, and heavydb.thrift.ttypes.TColumnType.src_name.

694  def write(self, oprot):
695  if oprot._fast_encode is not None and self.thrift_spec is not None:
696  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
697  return
698  oprot.writeStructBegin('TColumnType')
699  if self.col_name is not None:
700  oprot.writeFieldBegin('col_name', TType.STRING, 1)
701  oprot.writeString(self.col_name.encode('utf-8') if sys.version_info[0] == 2 else self.col_name)
702  oprot.writeFieldEnd()
703  if self.col_type is not None:
704  oprot.writeFieldBegin('col_type', TType.STRUCT, 2)
705  self.col_type.write(oprot)
706  oprot.writeFieldEnd()
707  if self.is_reserved_keyword is not None:
708  oprot.writeFieldBegin('is_reserved_keyword', TType.BOOL, 3)
709  oprot.writeBool(self.is_reserved_keyword)
710  oprot.writeFieldEnd()
711  if self.src_name is not None:
712  oprot.writeFieldBegin('src_name', TType.STRING, 4)
713  oprot.writeString(self.src_name.encode('utf-8') if sys.version_info[0] == 2 else self.src_name)
714  oprot.writeFieldEnd()
715  if self.is_system is not None:
716  oprot.writeFieldBegin('is_system', TType.BOOL, 5)
717  oprot.writeBool(self.is_system)
718  oprot.writeFieldEnd()
719  if self.is_physical is not None:
720  oprot.writeFieldBegin('is_physical', TType.BOOL, 6)
721  oprot.writeBool(self.is_physical)
722  oprot.writeFieldEnd()
723  if self.col_id is not None:
724  oprot.writeFieldBegin('col_id', TType.I64, 7)
725  oprot.writeI64(self.col_id)
726  oprot.writeFieldEnd()
727  if self.default_value is not None:
728  oprot.writeFieldBegin('default_value', TType.STRING, 8)
729  oprot.writeString(self.default_value.encode('utf-8') if sys.version_info[0] == 2 else self.default_value)
730  oprot.writeFieldEnd()
731  oprot.writeFieldStop()
732  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TColumnType.__dict__
private

Definition at line 742 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TColumnType.col_id

Definition at line 635 of file ttypes.py.

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

heavydb.thrift.ttypes.TColumnType.col_name

Definition at line 629 of file ttypes.py.

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

heavydb.thrift.ttypes.TColumnType.col_type

Definition at line 630 of file ttypes.py.

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

heavydb.thrift.ttypes.TColumnType.default_value

Definition at line 636 of file ttypes.py.

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

heavydb.thrift.ttypes.TColumnType.is_physical

Definition at line 634 of file ttypes.py.

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

heavydb.thrift.ttypes.TColumnType.is_reserved_keyword

Definition at line 631 of file ttypes.py.

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

heavydb.thrift.ttypes.TColumnType.is_system

Definition at line 633 of file ttypes.py.

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

heavydb.thrift.ttypes.TColumnType.src_name

Definition at line 632 of file ttypes.py.

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


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