OmniSciDB  085a039ca4
 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
 
- 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 1045 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 1047 of file generate_TableFunctionsFactory_init.py.

1048  def __init__(self, type, annotations):
1049  """
1050  Parameters
1051  ----------
1052  type : TypeNode
1053  annotations : List[AnnotationNode]
1054  """
1055  self.type = type
1056  self.annotations = annotations
1057  self.arg_pos = None

Member Function Documentation

def generate_TableFunctionsFactory_init.ArgNode.__iter__ (   self)

Definition at line 1069 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.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlValidateSystem.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.

1070  def __iter__(self):
1071  yield self.type
1072  for a in self.annotations:
1073  yield a
def generate_TableFunctionsFactory_init.ArgNode.__str__ (   self)

Definition at line 1061 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.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlValidateSystem.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.

1062  def __str__(self):
1063  t = str(self.type)
1064  anns = ""
1065  if self.annotations:
1066  anns = "| ".join([str(a) for a in self.annotations])
1067  return "ArgNode(%s %s)" % (t, anns)
1068  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 1058 of file generate_TableFunctionsFactory_init.py.

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

Definition at line 1076 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.

1077  def get_annotation(self, key, default=None):
1078  for a in self.annotations:
1079  if a.key == key:
1080  return a.value
1081  return default
1082 

Member Data Documentation

generate_TableFunctionsFactory_init.ArgNode.__repr__ = __str__
staticprivate

Definition at line 1074 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.ArgNode.annotations

Definition at line 1055 of file generate_TableFunctionsFactory_init.py.

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

generate_TableFunctionsFactory_init.ArgNode.arg_pos

Definition at line 1056 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.ArgNode.type

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