OmniSciDB  a7179b2938
 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 577 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 590 of file ttypes.py.

591  def __init__(self, is_agg=None, kind=None, type=None, arg_type=None, skip_nulls=None, is_distinct=None,):
592  self.is_agg = is_agg
593  self.kind = kind
594  self.type = type
595  self.arg_type = arg_type
596  self.skip_nulls = skip_nulls
597  self.is_distinct = is_distinct

Member Function Documentation

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

Definition at line 684 of file ttypes.py.

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

Definition at line 687 of file ttypes.py.

688  def __ne__(self, other):
689  return not (self == other)
690 
def omnisci.serialized_result_set.ttypes.TTargetInfo.__repr__ (   self)

Definition at line 679 of file ttypes.py.

680  def __repr__(self):
681  L = ['%s=%r' % (key, value)
682  for key, value in self.__dict__.items()]
683  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 598 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.

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

Definition at line 676 of file ttypes.py.

677  def validate(self):
678  return
def omnisci.serialized_result_set.ttypes.TTargetInfo.write (   self,
  oprot 
)

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

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

Member Data Documentation

omnisci.serialized_result_set.ttypes.TTargetInfo.__dict__
private

Definition at line 685 of file ttypes.py.

omnisci.serialized_result_set.ttypes.TTargetInfo.arg_type

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_agg

Definition at line 591 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 596 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 592 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 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.type

Definition at line 593 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: