OmniSciDB  94e8789169
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TColumnType Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TColumnType:
+ Collaboration diagram for omnisci.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
 

Private Attributes

 __dict__
 

Detailed Description

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

Definition at line 475 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.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 
)

Definition at line 489 of file ttypes.py.

490  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,):
491  self.col_name = col_name
492  self.col_type = col_type
493  self.is_reserved_keyword = is_reserved_keyword
494  self.src_name = src_name
495  self.is_system = is_system
496  self.is_physical = is_physical
497  self.col_id = col_id

Member Function Documentation

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

Definition at line 592 of file ttypes.py.

593  def __eq__(self, other):
594  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TColumnType.__ne__ (   self,
  other 
)

Definition at line 595 of file ttypes.py.

596  def __ne__(self, other):
597  return not (self == other)
598 
def omnisci.thrift.ttypes.TColumnType.__repr__ (   self)

Definition at line 587 of file ttypes.py.

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

Definition at line 498 of file ttypes.py.

References omnisci.thrift.ttypes.TColumnType.col_id, omnisci.thrift.ttypes.TColumnType.col_name, omnisci.thrift.ttypes.TColumnType.col_type, omnisci.thrift.ttypes.TColumnType.is_physical, omnisci.thrift.ttypes.TColumnType.is_reserved_keyword, omnisci.thrift.ttypes.TColumnType.is_system, and omnisci.thrift.ttypes.TColumnType.src_name.

499  def read(self, iprot):
500  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
501  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
502  return
503  iprot.readStructBegin()
504  while True:
505  (fname, ftype, fid) = iprot.readFieldBegin()
506  if ftype == TType.STOP:
507  break
508  if fid == 1:
509  if ftype == TType.STRING:
510  self.col_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
511  else:
512  iprot.skip(ftype)
513  elif fid == 2:
514  if ftype == TType.STRUCT:
516  self.col_type.read(iprot)
517  else:
518  iprot.skip(ftype)
519  elif fid == 3:
520  if ftype == TType.BOOL:
521  self.is_reserved_keyword = iprot.readBool()
522  else:
523  iprot.skip(ftype)
524  elif fid == 4:
525  if ftype == TType.STRING:
526  self.src_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
527  else:
528  iprot.skip(ftype)
529  elif fid == 5:
530  if ftype == TType.BOOL:
531  self.is_system = iprot.readBool()
532  else:
533  iprot.skip(ftype)
534  elif fid == 6:
535  if ftype == TType.BOOL:
536  self.is_physical = iprot.readBool()
537  else:
538  iprot.skip(ftype)
539  elif fid == 7:
540  if ftype == TType.I64:
541  self.col_id = iprot.readI64()
542  else:
543  iprot.skip(ftype)
544  else:
545  iprot.skip(ftype)
546  iprot.readFieldEnd()
547  iprot.readStructEnd()
def omnisci.thrift.ttypes.TColumnType.validate (   self)

Definition at line 584 of file ttypes.py.

585  def validate(self):
586  return
def omnisci.thrift.ttypes.TColumnType.write (   self,
  oprot 
)

Definition at line 548 of file ttypes.py.

References omnisci.thrift.ttypes.TColumnType.col_id, omnisci.thrift.ttypes.TColumnType.col_name, omnisci.thrift.ttypes.TColumnType.col_type, omnisci.thrift.ttypes.TColumnType.is_physical, omnisci.thrift.ttypes.TColumnType.is_reserved_keyword, omnisci.thrift.ttypes.TColumnType.is_system, and omnisci.thrift.ttypes.TColumnType.src_name.

549  def write(self, oprot):
550  if oprot._fast_encode is not None and self.thrift_spec is not None:
551  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
552  return
553  oprot.writeStructBegin('TColumnType')
554  if self.col_name is not None:
555  oprot.writeFieldBegin('col_name', TType.STRING, 1)
556  oprot.writeString(self.col_name.encode('utf-8') if sys.version_info[0] == 2 else self.col_name)
557  oprot.writeFieldEnd()
558  if self.col_type is not None:
559  oprot.writeFieldBegin('col_type', TType.STRUCT, 2)
560  self.col_type.write(oprot)
561  oprot.writeFieldEnd()
562  if self.is_reserved_keyword is not None:
563  oprot.writeFieldBegin('is_reserved_keyword', TType.BOOL, 3)
564  oprot.writeBool(self.is_reserved_keyword)
565  oprot.writeFieldEnd()
566  if self.src_name is not None:
567  oprot.writeFieldBegin('src_name', TType.STRING, 4)
568  oprot.writeString(self.src_name.encode('utf-8') if sys.version_info[0] == 2 else self.src_name)
569  oprot.writeFieldEnd()
570  if self.is_system is not None:
571  oprot.writeFieldBegin('is_system', TType.BOOL, 5)
572  oprot.writeBool(self.is_system)
573  oprot.writeFieldEnd()
574  if self.is_physical is not None:
575  oprot.writeFieldBegin('is_physical', TType.BOOL, 6)
576  oprot.writeBool(self.is_physical)
577  oprot.writeFieldEnd()
578  if self.col_id is not None:
579  oprot.writeFieldBegin('col_id', TType.I64, 7)
580  oprot.writeI64(self.col_id)
581  oprot.writeFieldEnd()
582  oprot.writeFieldStop()
583  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TColumnType.__dict__
private

Definition at line 593 of file ttypes.py.

omnisci.thrift.ttypes.TColumnType.col_id

Definition at line 496 of file ttypes.py.

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

omnisci.thrift.ttypes.TColumnType.col_name

Definition at line 490 of file ttypes.py.

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

omnisci.thrift.ttypes.TColumnType.col_type

Definition at line 491 of file ttypes.py.

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

omnisci.thrift.ttypes.TColumnType.is_physical

Definition at line 495 of file ttypes.py.

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

omnisci.thrift.ttypes.TColumnType.is_reserved_keyword

Definition at line 492 of file ttypes.py.

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

omnisci.thrift.ttypes.TColumnType.is_system

Definition at line 494 of file ttypes.py.

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

omnisci.thrift.ttypes.TColumnType.src_name

Definition at line 493 of file ttypes.py.

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


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