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

Public Member Functions

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

Public Attributes

 type
 
 hints
 
 replaced
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - type
 - hints
 - replaced

Definition at line 52 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.completion_hints.ttypes.TCompletionHint.__init__ (   self,
  type = None,
  hints = None,
  replaced = None 
)

Definition at line 62 of file ttypes.py.

62 
63  def __init__(self, type=None, hints=None, replaced=None,):
64  self.type = type
65  self.hints = hints
66  self.replaced = replaced

Member Function Documentation

def omnisci.completion_hints.ttypes.TCompletionHint.__eq__ (   self,
  other 
)

Definition at line 132 of file ttypes.py.

133  def __eq__(self, other):
134  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.completion_hints.ttypes.TCompletionHint.__ne__ (   self,
  other 
)

Definition at line 135 of file ttypes.py.

136  def __ne__(self, other):
137  return not (self == other)
138 all_structs.append(TCompletionHint)
TCompletionHint.thrift_spec = (
def omnisci.completion_hints.ttypes.TCompletionHint.__repr__ (   self)

Definition at line 127 of file ttypes.py.

128  def __repr__(self):
129  L = ['%s=%r' % (key, value)
130  for key, value in self.__dict__.items()]
131  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.completion_hints.ttypes.TCompletionHint.read (   self,
  iprot 
)

Definition at line 67 of file ttypes.py.

References omnisci.completion_hints.ttypes.TCompletionHint.hints, org.apache.calcite.prepare.MapDPlanner.CompletionResult.hints, omnisci.completion_hints.ttypes.TCompletionHint.replaced, org.apache.calcite.prepare.MapDPlanner.CompletionResult.replaced, 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, and omnisci.common.ttypes.TTypeInfo.type.

67 
68  def read(self, iprot):
69  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
70  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
71  return
72  iprot.readStructBegin()
73  while True:
74  (fname, ftype, fid) = iprot.readFieldBegin()
75  if ftype == TType.STOP:
76  break
77  if fid == 1:
78  if ftype == TType.I32:
79  self.type = iprot.readI32()
80  else:
81  iprot.skip(ftype)
82  elif fid == 2:
83  if ftype == TType.LIST:
84  self.hints = []
85  (_etype3, _size0) = iprot.readListBegin()
86  for _i4 in range(_size0):
87  _elem5 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
88  self.hints.append(_elem5)
89  iprot.readListEnd()
90  else:
91  iprot.skip(ftype)
92  elif fid == 3:
93  if ftype == TType.STRING:
94  self.replaced = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
95  else:
96  iprot.skip(ftype)
97  else:
98  iprot.skip(ftype)
99  iprot.readFieldEnd()
100  iprot.readStructEnd()
def omnisci.completion_hints.ttypes.TCompletionHint.validate (   self)

Definition at line 124 of file ttypes.py.

125  def validate(self):
126  return
def omnisci.completion_hints.ttypes.TCompletionHint.write (   self,
  oprot 
)

Definition at line 101 of file ttypes.py.

References omnisci.completion_hints.ttypes.TCompletionHint.hints, org.apache.calcite.prepare.MapDPlanner.CompletionResult.hints, omnisci.completion_hints.ttypes.TCompletionHint.replaced, org.apache.calcite.prepare.MapDPlanner.CompletionResult.replaced, 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, and omnisci.common.ttypes.TTypeInfo.type.

102  def write(self, oprot):
103  if oprot._fast_encode is not None and self.thrift_spec is not None:
104  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
105  return
106  oprot.writeStructBegin('TCompletionHint')
107  if self.type is not None:
108  oprot.writeFieldBegin('type', TType.I32, 1)
109  oprot.writeI32(self.type)
110  oprot.writeFieldEnd()
111  if self.hints is not None:
112  oprot.writeFieldBegin('hints', TType.LIST, 2)
113  oprot.writeListBegin(TType.STRING, len(self.hints))
114  for iter6 in self.hints:
115  oprot.writeString(iter6.encode('utf-8') if sys.version_info[0] == 2 else iter6)
116  oprot.writeListEnd()
117  oprot.writeFieldEnd()
118  if self.replaced is not None:
119  oprot.writeFieldBegin('replaced', TType.STRING, 3)
120  oprot.writeString(self.replaced.encode('utf-8') if sys.version_info[0] == 2 else self.replaced)
121  oprot.writeFieldEnd()
122  oprot.writeFieldStop()
123  oprot.writeStructEnd()

Member Data Documentation

omnisci.completion_hints.ttypes.TCompletionHint.__dict__
private

Definition at line 133 of file ttypes.py.

omnisci.completion_hints.ttypes.TCompletionHint.hints

Definition at line 64 of file ttypes.py.

Referenced by omnisci.completion_hints.ttypes.TCompletionHint.read(), and omnisci.completion_hints.ttypes.TCompletionHint.write().

omnisci.completion_hints.ttypes.TCompletionHint.replaced

Definition at line 65 of file ttypes.py.

Referenced by omnisci.completion_hints.ttypes.TCompletionHint.read(), and omnisci.completion_hints.ttypes.TCompletionHint.write().

omnisci.completion_hints.ttypes.TCompletionHint.type

Definition at line 63 of file ttypes.py.

Referenced by omnisci.completion_hints.ttypes.TCompletionHint.read(), 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.completion_hints.ttypes.TCompletionHint.write(), 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: