OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TableFunctionsFactory_node.ArgNode Class Reference
+ Inheritance diagram for TableFunctionsFactory_node.ArgNode:
+ Collaboration diagram for TableFunctionsFactory_node.ArgNode:

Public Member Functions

def __init__
 
def accept
 
def __iter__
 
def get_annotation
 
def set_annotation
 
- Public Member Functions inherited from TableFunctionsFactory_node.Node
def accept
 
def get_parent
 
def copy
 
- Public Member Functions inherited from TableFunctionsFactory_node.PrintNode
def __str__
 
def __repr__
 

Public Attributes

 type
 
 annotations
 
 arg_pos
 
 kind
 

Detailed Description

Definition at line 96 of file TableFunctionsFactory_node.py.

Constructor & Destructor Documentation

def TableFunctionsFactory_node.ArgNode.__init__ (   self,
  type,
  annotations 
)
Parameters
----------
type : TypeNode
annotations : List[AnnotationNode]

Definition at line 98 of file TableFunctionsFactory_node.py.

98 
99  def __init__(self, type, annotations):
100  """
101  Parameters
102  ----------
103  type : TypeNode
104  annotations : List[AnnotationNode]
105  """
106  self.type = type
107  self.annotations = annotations
108  self.arg_pos = None
109  self.kind = None

Member Function Documentation

def TableFunctionsFactory_node.ArgNode.__iter__ (   self)

Definition at line 113 of file TableFunctionsFactory_node.py.

References TableFunctionsFactory_declbracket.Declaration.annotations, TableFunctionsFactory_node.UdtfNode.annotations, TableFunctionsFactory_node.ArgNode.annotations, heavydb.extension_functions.ttypes.TUserDefinedFunction.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, com.mapd.parser.server.ExtensionFunction.annotations, TableFunctionsFactory_declbracket.Declaration.type, 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, ColumnLazyFetchInfo.type, TableFunctionsFactory_node.ArgNode.type, JoinCondition.type, heavydb.common.ttypes.TTypeInfo.type, Function::NamedArg.type, heavydb.serialized_result_set.ttypes.TTargetInfo.type, heavydb.serialized_result_set.ttypes.TCountDistinctSet.type, heavydb.thrift.ttypes.TColumnRange.type, heavydb.thrift.ttypes.TRenderDatum.type, and heavydb.thrift.Heavy.get_db_object_privs_args.type.

114  def __iter__(self):
115  yield self.type
116  for a in self.annotations:
117  yield a
def TableFunctionsFactory_node.ArgNode.accept (   self,
  visitor 
)

Definition at line 110 of file TableFunctionsFactory_node.py.

Referenced by TableFunctionsFactory_node.PrintNode.__str__().

111  def accept(self, visitor):
112  return visitor.visit_arg_node(self)

+ Here is the caller graph for this function:

def TableFunctionsFactory_node.ArgNode.get_annotation (   self,
  key,
  default = None 
)

Definition at line 118 of file TableFunctionsFactory_node.py.

References TableFunctionsFactory_declbracket.Declaration.annotations, TableFunctionsFactory_node.UdtfNode.annotations, TableFunctionsFactory_node.ArgNode.annotations, heavydb.extension_functions.ttypes.TUserDefinedFunction.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, and com.mapd.parser.server.ExtensionFunction.annotations.

119  def get_annotation(self, key, default=None):
120  for a in self.annotations:
121  if a.key == key:
122  return a.value
123  return default
def TableFunctionsFactory_node.ArgNode.set_annotation (   self,
  key,
  value 
)

Definition at line 124 of file TableFunctionsFactory_node.py.

References TableFunctionsFactory_declbracket.Declaration.annotations, TableFunctionsFactory_node.UdtfNode.annotations, TableFunctionsFactory_node.ArgNode.annotations, heavydb.extension_functions.ttypes.TUserDefinedFunction.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, and com.mapd.parser.server.ExtensionFunction.annotations.

125  def set_annotation(self, key, value):
126  found = False
127  for i, a in enumerate(self.annotations):
128  if a.key == key:
129  assert not found, (i, a) # annotations with the same key not supported
130  self.annotations[i] = AnnotationNode(key, value)
131  found = True
132  if not found:
133  self.annotations.append(AnnotationNode(key, value))
134 

Member Data Documentation

TableFunctionsFactory_node.ArgNode.annotations

Definition at line 106 of file TableFunctionsFactory_node.py.

Referenced by TableFunctionsFactory_node.ArgNode.__iter__(), TableFunctionsFactory_node.ArgNode.get_annotation(), and TableFunctionsFactory_node.ArgNode.set_annotation().

TableFunctionsFactory_node.ArgNode.arg_pos

Definition at line 107 of file TableFunctionsFactory_node.py.

TableFunctionsFactory_node.ArgNode.kind

Definition at line 108 of file TableFunctionsFactory_node.py.

TableFunctionsFactory_node.ArgNode.type

Definition at line 105 of file TableFunctionsFactory_node.py.

Referenced by TableFunctionsFactory_node.PrimitiveNode.__eq__(), TableFunctionsFactory_node.ArgNode.__iter__(), 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(), and TableFunctionsFactory_node.TypeNode.is_text_encoding_dict().


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