OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.completion_hints.ttypes.TCompletionHint Class Reference
+ Inheritance diagram for heavydb.completion_hints.ttypes.TCompletionHint:
+ Collaboration diagram for heavydb.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 heavydb.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 heavydb.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 heavydb.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 heavydb.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 heavydb.completion_hints.ttypes.TCompletionHint.read (   self,
  iprot 
)

Definition at line 67 of file ttypes.py.

References heavydb.completion_hints.ttypes.TCompletionHint.hints, org.apache.calcite.prepare.HeavyDBPlanner.CompletionResult.hints, heavydb.completion_hints.ttypes.TCompletionHint.replaced, org.apache.calcite.prepare.HeavyDBPlanner.CompletionResult.replaced, com.mapd.parser.extension.ddl.heavysql.HeavySqlEncoding.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlDataType.type, ai.heavy.jdbc.HeavyAIArray.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, ConverterCreateParameter.type, foreign_storage::UserMapping.type, heavydb.completion_hints.ttypes.TCompletionHint.type, and heavydb.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', errors='replace') 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', errors='replace') 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 heavydb.completion_hints.ttypes.TCompletionHint.validate (   self)

Definition at line 124 of file ttypes.py.

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

Definition at line 101 of file ttypes.py.

References heavydb.completion_hints.ttypes.TCompletionHint.hints, org.apache.calcite.prepare.HeavyDBPlanner.CompletionResult.hints, heavydb.completion_hints.ttypes.TCompletionHint.replaced, org.apache.calcite.prepare.HeavyDBPlanner.CompletionResult.replaced, com.mapd.parser.extension.ddl.heavysql.HeavySqlEncoding.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlDataType.type, ai.heavy.jdbc.HeavyAIArray.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, ConverterCreateParameter.type, foreign_storage::UserMapping.type, heavydb.completion_hints.ttypes.TCompletionHint.type, and heavydb.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

heavydb.completion_hints.ttypes.TCompletionHint.__dict__
private

Definition at line 133 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.completion_hints.ttypes.TCompletionHint.hints

Definition at line 64 of file ttypes.py.

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

heavydb.completion_hints.ttypes.TCompletionHint.replaced

Definition at line 65 of file ttypes.py.

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

heavydb.completion_hints.ttypes.TCompletionHint.type

Definition at line 63 of file ttypes.py.

Referenced by TableFunctionsFactory_node.PrimitiveNode.__eq__(), TableFunctionsFactory_declbracket.Declaration.__getattr__(), TableFunctionsFactory_node.ArgNode.__iter__(), TableFunctionsFactory_declbracket.Declaration.__repr__(), TableFunctionsFactory_declbracket.Declaration.__str__(), TableFunctionsFactory_parser.Token.__str__(), TableFunctionsFactory_node.TypeNode.is_array_text_encoding_dict(), TableFunctionsFactory_node.TypeNode.is_column(), TableFunctionsFactory_node.TypeNode.is_column_list(), TableFunctionsFactory_node.TypeNode.is_cursor(), TableFunctionsFactory_node.TypeNode.is_output_buffer_sizer(), TableFunctionsFactory_node.TypeNode.is_string_scalar(), TableFunctionsFactory_node.TypeNode.is_text_encoding_dict(), heavydb.completion_hints.ttypes.TCompletionHint.read(), heavydb.serialized_result_set.ttypes.TTargetInfo.read(), heavydb.serialized_result_set.ttypes.TCountDistinctSet.read(), heavydb.thrift.ttypes.TColumnRange.read(), heavydb.thrift.ttypes.TRenderDatum.read(), heavydb.thrift.Heavy.get_db_object_privs_args.read(), heavydb.completion_hints.ttypes.TCompletionHint.write(), heavydb.serialized_result_set.ttypes.TTargetInfo.write(), heavydb.serialized_result_set.ttypes.TCountDistinctSet.write(), heavydb.thrift.ttypes.TColumnRange.write(), heavydb.thrift.ttypes.TRenderDatum.write(), and heavydb.thrift.Heavy.get_db_object_privs_args.write().


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