OmniSciDB  a7179b2938
 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 472 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 486 of file ttypes.py.

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

Member Function Documentation

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

Definition at line 589 of file ttypes.py.

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

Definition at line 592 of file ttypes.py.

593  def __ne__(self, other):
594  return not (self == other)
595 
def omnisci.thrift.ttypes.TColumnType.__repr__ (   self)

Definition at line 584 of file ttypes.py.

585  def __repr__(self):
586  L = ['%s=%r' % (key, value)
587  for key, value in self.__dict__.items()]
588  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 495 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.

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

Definition at line 581 of file ttypes.py.

582  def validate(self):
583  return
def omnisci.thrift.ttypes.TColumnType.write (   self,
  oprot 
)

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

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

Member Data Documentation

omnisci.thrift.ttypes.TColumnType.__dict__
private

Definition at line 590 of file ttypes.py.

omnisci.thrift.ttypes.TColumnType.col_id

Definition at line 493 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 487 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 488 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 492 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 489 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 491 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 490 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: