OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.serialized_result_set.ttypes.TTargetInfo Class Reference
+ Inheritance diagram for omnisci.serialized_result_set.ttypes.TTargetInfo:
+ Collaboration diagram for omnisci.serialized_result_set.ttypes.TTargetInfo:

Public Member Functions

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

Public Attributes

 is_agg
 
 kind
 
 type
 
 arg_type
 
 skip_nulls
 
 is_distinct
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - is_agg
 - kind
 - type
 - arg_type
 - skip_nulls
 - is_distinct

Definition at line 580 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.serialized_result_set.ttypes.TTargetInfo.__init__ (   self,
  is_agg = None,
  kind = None,
  type = None,
  arg_type = None,
  skip_nulls = None,
  is_distinct = None 
)

Definition at line 593 of file ttypes.py.

594  def __init__(self, is_agg=None, kind=None, type=None, arg_type=None, skip_nulls=None, is_distinct=None,):
595  self.is_agg = is_agg
596  self.kind = kind
597  self.type = type
598  self.arg_type = arg_type
599  self.skip_nulls = skip_nulls
600  self.is_distinct = is_distinct

Member Function Documentation

def omnisci.serialized_result_set.ttypes.TTargetInfo.__eq__ (   self,
  other 
)

Definition at line 687 of file ttypes.py.

688  def __eq__(self, other):
689  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.serialized_result_set.ttypes.TTargetInfo.__ne__ (   self,
  other 
)

Definition at line 690 of file ttypes.py.

691  def __ne__(self, other):
692  return not (self == other)
693 
def omnisci.serialized_result_set.ttypes.TTargetInfo.__repr__ (   self)

Definition at line 682 of file ttypes.py.

683  def __repr__(self):
684  L = ['%s=%r' % (key, value)
685  for key, value in self.__dict__.items()]
686  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.serialized_result_set.ttypes.TTargetInfo.read (   self,
  iprot 
)

Definition at line 601 of file ttypes.py.

References omnisci.serialized_result_set.ttypes.TTargetInfo.arg_type, omnisci.serialized_result_set.ttypes.TTargetInfo.is_agg, omnisci.serialized_result_set.ttypes.TTargetInfo.is_distinct, Analyzer::AggExpr.is_distinct, Analyzer::Query.is_distinct, Parser::QuerySpec.is_distinct, omnisci.serialized_result_set.ttypes.TTargetInfo.kind, omnisci.serialized_result_set.ttypes.TTargetInfo.skip_nulls, com.mapd.parser.extension.ddl.omnisql.OmniSqlEncoding.type, com.mapd.parser.extension.ddl.omnisql.OmniSqlDataType.type, com.omnisci.jdbc.OmniSciArray.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.type, ConverterCreateParameter.type, omnisci.completion_hints.ttypes.TCompletionHint.type, omnisci.common.ttypes.TTypeInfo.type, and omnisci.serialized_result_set.ttypes.TTargetInfo.type.

602  def read(self, iprot):
603  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
604  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
605  return
606  iprot.readStructBegin()
607  while True:
608  (fname, ftype, fid) = iprot.readFieldBegin()
609  if ftype == TType.STOP:
610  break
611  if fid == 1:
612  if ftype == TType.BOOL:
613  self.is_agg = iprot.readBool()
614  else:
615  iprot.skip(ftype)
616  elif fid == 2:
617  if ftype == TType.I32:
618  self.kind = iprot.readI32()
619  else:
620  iprot.skip(ftype)
621  elif fid == 3:
622  if ftype == TType.STRUCT:
624  self.type.read(iprot)
625  else:
626  iprot.skip(ftype)
627  elif fid == 4:
628  if ftype == TType.STRUCT:
630  self.arg_type.read(iprot)
631  else:
632  iprot.skip(ftype)
633  elif fid == 5:
634  if ftype == TType.BOOL:
635  self.skip_nulls = iprot.readBool()
636  else:
637  iprot.skip(ftype)
638  elif fid == 6:
639  if ftype == TType.BOOL:
640  self.is_distinct = iprot.readBool()
641  else:
642  iprot.skip(ftype)
643  else:
644  iprot.skip(ftype)
645  iprot.readFieldEnd()
646  iprot.readStructEnd()
def omnisci.serialized_result_set.ttypes.TTargetInfo.validate (   self)

Definition at line 679 of file ttypes.py.

680  def validate(self):
681  return
def omnisci.serialized_result_set.ttypes.TTargetInfo.write (   self,
  oprot 
)

Definition at line 647 of file ttypes.py.

References omnisci.serialized_result_set.ttypes.TTargetInfo.arg_type, omnisci.serialized_result_set.ttypes.TTargetInfo.is_agg, omnisci.serialized_result_set.ttypes.TTargetInfo.is_distinct, Analyzer::AggExpr.is_distinct, Analyzer::Query.is_distinct, Parser::QuerySpec.is_distinct, omnisci.serialized_result_set.ttypes.TTargetInfo.kind, omnisci.serialized_result_set.ttypes.TTargetInfo.skip_nulls, com.mapd.parser.extension.ddl.omnisql.OmniSqlEncoding.type, com.mapd.parser.extension.ddl.omnisql.OmniSqlDataType.type, com.omnisci.jdbc.OmniSciArray.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.type, ConverterCreateParameter.type, omnisci.completion_hints.ttypes.TCompletionHint.type, omnisci.common.ttypes.TTypeInfo.type, and omnisci.serialized_result_set.ttypes.TTargetInfo.type.

648  def write(self, oprot):
649  if oprot._fast_encode is not None and self.thrift_spec is not None:
650  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
651  return
652  oprot.writeStructBegin('TTargetInfo')
653  if self.is_agg is not None:
654  oprot.writeFieldBegin('is_agg', TType.BOOL, 1)
655  oprot.writeBool(self.is_agg)
656  oprot.writeFieldEnd()
657  if self.kind is not None:
658  oprot.writeFieldBegin('kind', TType.I32, 2)
659  oprot.writeI32(self.kind)
660  oprot.writeFieldEnd()
661  if self.type is not None:
662  oprot.writeFieldBegin('type', TType.STRUCT, 3)
663  self.type.write(oprot)
664  oprot.writeFieldEnd()
665  if self.arg_type is not None:
666  oprot.writeFieldBegin('arg_type', TType.STRUCT, 4)
667  self.arg_type.write(oprot)
668  oprot.writeFieldEnd()
669  if self.skip_nulls is not None:
670  oprot.writeFieldBegin('skip_nulls', TType.BOOL, 5)
671  oprot.writeBool(self.skip_nulls)
672  oprot.writeFieldEnd()
673  if self.is_distinct is not None:
674  oprot.writeFieldBegin('is_distinct', TType.BOOL, 6)
675  oprot.writeBool(self.is_distinct)
676  oprot.writeFieldEnd()
677  oprot.writeFieldStop()
678  oprot.writeStructEnd()

Member Data Documentation

omnisci.serialized_result_set.ttypes.TTargetInfo.__dict__
private

Definition at line 688 of file ttypes.py.

omnisci.serialized_result_set.ttypes.TTargetInfo.arg_type

Definition at line 597 of file ttypes.py.

Referenced by omnisci.serialized_result_set.ttypes.TTargetInfo.read(), and omnisci.serialized_result_set.ttypes.TTargetInfo.write().

omnisci.serialized_result_set.ttypes.TTargetInfo.is_agg

Definition at line 594 of file ttypes.py.

Referenced by omnisci.serialized_result_set.ttypes.TTargetInfo.read(), and omnisci.serialized_result_set.ttypes.TTargetInfo.write().

omnisci.serialized_result_set.ttypes.TTargetInfo.is_distinct

Definition at line 599 of file ttypes.py.

Referenced by omnisci.serialized_result_set.ttypes.TTargetInfo.read(), and omnisci.serialized_result_set.ttypes.TTargetInfo.write().

omnisci.serialized_result_set.ttypes.TTargetInfo.kind

Definition at line 595 of file ttypes.py.

Referenced by omnisci.serialized_result_set.ttypes.TTargetInfo.read(), and omnisci.serialized_result_set.ttypes.TTargetInfo.write().

omnisci.serialized_result_set.ttypes.TTargetInfo.skip_nulls

Definition at line 598 of file ttypes.py.

Referenced by omnisci.serialized_result_set.ttypes.TTargetInfo.read(), and omnisci.serialized_result_set.ttypes.TTargetInfo.write().

omnisci.serialized_result_set.ttypes.TTargetInfo.type

Definition at line 596 of file ttypes.py.

Referenced by omnisci.serialized_result_set.ttypes.TTargetInfo.read(), omnisci.serialized_result_set.ttypes.TCountDistinctSet.read(), omnisci.thrift.ttypes.TColumnRange.read(), omnisci.thrift.ttypes.TRenderDatum.read(), omnisci.thrift.OmniSci.get_db_object_privs_args.read(), omnisci.serialized_result_set.ttypes.TTargetInfo.write(), omnisci.serialized_result_set.ttypes.TCountDistinctSet.write(), omnisci.thrift.ttypes.TColumnRange.write(), omnisci.thrift.ttypes.TRenderDatum.write(), and omnisci.thrift.OmniSci.get_db_object_privs_args.write().


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