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

Public Member Functions

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

Public Attributes

 type
 
 annotations
 
 arg_pos
 

Static Private Attributes

 __repr__ = __str__
 

Detailed Description

Definition at line 1083 of file generate_TableFunctionsFactory_init.py.

Constructor & Destructor Documentation

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

Definition at line 1085 of file generate_TableFunctionsFactory_init.py.

1086  def __init__(self, type, annotations):
1087  """
1088  Parameters
1089  ----------
1090  type : TypeNode
1091  annotations : List[AnnotationNode]
1092  """
1093  self.type = type
1094  self.annotations = annotations
1095  self.arg_pos = None

Member Function Documentation

def generate_TableFunctionsFactory_init.ArgNode.__iter__ (   self)

Definition at line 1107 of file generate_TableFunctionsFactory_init.py.

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

1108  def __iter__(self):
1109  yield self.type
1110  for a in self.annotations:
1111  yield a
def generate_TableFunctionsFactory_init.ArgNode.__str__ (   self)

Definition at line 1099 of file generate_TableFunctionsFactory_init.py.

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

1100  def __str__(self):
1101  t = str(self.type)
1102  anns = ""
1103  if self.annotations:
1104  anns = " | ".join([str(a) for a in self.annotations])
1105  return "ArgNode(%s | %s)" % (t, anns)
1106  return "ArgNode(%s)" % (t)
std::string join(T const &container, std::string const &delim)

+ Here is the call graph for this function:

def generate_TableFunctionsFactory_init.ArgNode.accept (   self,
  visitor 
)

Definition at line 1096 of file generate_TableFunctionsFactory_init.py.

1097  def accept(self, visitor):
1098  return visitor.visit_arg_node(self)
def generate_TableFunctionsFactory_init.ArgNode.get_annotation (   self,
  key,
  default = None 
)

Definition at line 1114 of file generate_TableFunctionsFactory_init.py.

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

1115  def get_annotation(self, key, default=None):
1116  for a in self.annotations:
1117  if a.key == key:
1118  return a.value
1119  return default
def generate_TableFunctionsFactory_init.ArgNode.set_annotation (   self,
  key,
  value 
)

Definition at line 1120 of file generate_TableFunctionsFactory_init.py.

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

1121  def set_annotation(self, key, value):
1122  found = False
1123  for i, a in enumerate(self.annotations):
1124  if a.key == key:
1125  assert not found, (i, a) # annotations with the same key not supported
1126  self.annotations[i] = AnnotationNode(key, value)
1127  found = True
1128  if not found:
1129  self.annotations.append(AnnotationNode(key, value))
1130 

Member Data Documentation

generate_TableFunctionsFactory_init.ArgNode.__repr__ = __str__
staticprivate

Definition at line 1112 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.ArgNode.annotations

Definition at line 1093 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.ArgNode.__iter__(), generate_TableFunctionsFactory_init.ArgNode.__str__(), generate_TableFunctionsFactory_init.ArgNode.get_annotation(), and generate_TableFunctionsFactory_init.ArgNode.set_annotation().

generate_TableFunctionsFactory_init.ArgNode.arg_pos

Definition at line 1094 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.ArgNode.type

Definition at line 1092 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.ArgNode.__iter__(), generate_TableFunctionsFactory_init.ArgNode.__str__(), generate_TableFunctionsFactory_init.ComposedNode.__str__(), generate_TableFunctionsFactory_init.PrimitiveNode.is_array_text_encoding_dict(), generate_TableFunctionsFactory_init.TypeNode.is_column(), generate_TableFunctionsFactory_init.TypeNode.is_column_list(), generate_TableFunctionsFactory_init.TypeNode.is_cursor(), generate_TableFunctionsFactory_init.TypeNode.is_output_buffer_sizer(), and generate_TableFunctionsFactory_init.PrimitiveNode.is_text_encoding_dict().


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