OmniSciDB  ca0c39ec8f
 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 1079 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 1081 of file generate_TableFunctionsFactory_init.py.

1082  def __init__(self, type, annotations):
1083  """
1084  Parameters
1085  ----------
1086  type : TypeNode
1087  annotations : List[AnnotationNode]
1088  """
1089  self.type = type
1090  self.annotations = annotations
1091  self.arg_pos = None

Member Function Documentation

def generate_TableFunctionsFactory_init.ArgNode.__iter__ (   self)

Definition at line 1103 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.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.

1104  def __iter__(self):
1105  yield self.type
1106  for a in self.annotations:
1107  yield a
def generate_TableFunctionsFactory_init.ArgNode.__str__ (   self)

Definition at line 1095 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.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.

1096  def __str__(self):
1097  t = str(self.type)
1098  anns = ""
1099  if self.annotations:
1100  anns = " | ".join([str(a) for a in self.annotations])
1101  return "ArgNode(%s | %s)" % (t, anns)
1102  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 1092 of file generate_TableFunctionsFactory_init.py.

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

Definition at line 1110 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, generate_TableFunctionsFactory_init.UdtfNode.annotations, and generate_TableFunctionsFactory_init.ArgNode.annotations.

1111  def get_annotation(self, key, default=None):
1112  for a in self.annotations:
1113  if a.key == key:
1114  return a.value
1115  return default
def generate_TableFunctionsFactory_init.ArgNode.set_annotation (   self,
  key,
  value 
)

Definition at line 1116 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, generate_TableFunctionsFactory_init.UdtfNode.annotations, and generate_TableFunctionsFactory_init.ArgNode.annotations.

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

Member Data Documentation

generate_TableFunctionsFactory_init.ArgNode.__repr__ = __str__
staticprivate

Definition at line 1108 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.ArgNode.annotations

Definition at line 1089 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 1090 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.ArgNode.type

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