OmniSciDB  471d68cefb
 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 981 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 983 of file generate_TableFunctionsFactory_init.py.

984  def __init__(self, type, annotations):
985  """
986  Parameters
987  ----------
988  type : TypeNode
989  annotations : List[AnnotationNode]
990  """
991  self.type = type
992  self.annotations = annotations
993  self.arg_pos = None

Member Function Documentation

def generate_TableFunctionsFactory_init.ArgNode.__iter__ (   self)

Definition at line 1005 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.annotations, generate_TableFunctionsFactory_init.UdtfNode.annotations, generate_TableFunctionsFactory_init.ArgNode.annotations, com.mapd.parser.extension.ddl.omnisql.OmniSqlEncoding.type, com.mapd.parser.extension.ddl.omnisql.OmniSqlDataType.type, com.omnisci.jdbc.OmniSciArray.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, ConverterCreateParameter.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, foreign_storage::UserMapping.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, omnisci.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, JoinCondition.type, generate_TableFunctionsFactory_init.Declaration.type, omnisci.common.ttypes.TTypeInfo.type, Function::NamedArg.type, generate_TableFunctionsFactory_init.Token.type, omnisci.serialized_result_set.ttypes.TTargetInfo.type, omnisci.serialized_result_set.ttypes.TCountDistinctSet.type, generate_TableFunctionsFactory_init.ArgNode.type, omnisci.thrift.ttypes.TColumnRange.type, omnisci.thrift.ttypes.TRenderDatum.type, and omnisci.thrift.OmniSci.get_db_object_privs_args.type.

1006  def __iter__(self):
1007  yield self.type
1008  for a in self.annotations:
1009  yield a
def generate_TableFunctionsFactory_init.ArgNode.__str__ (   self)

Definition at line 997 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.annotations, generate_TableFunctionsFactory_init.UdtfNode.annotations, generate_TableFunctionsFactory_init.ArgNode.annotations, join(), com.mapd.parser.extension.ddl.omnisql.OmniSqlEncoding.type, com.mapd.parser.extension.ddl.omnisql.OmniSqlDataType.type, com.omnisci.jdbc.OmniSciArray.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, ConverterCreateParameter.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, foreign_storage::UserMapping.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, omnisci.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, JoinCondition.type, generate_TableFunctionsFactory_init.Declaration.type, omnisci.common.ttypes.TTypeInfo.type, Function::NamedArg.type, generate_TableFunctionsFactory_init.Token.type, omnisci.serialized_result_set.ttypes.TTargetInfo.type, omnisci.serialized_result_set.ttypes.TCountDistinctSet.type, generate_TableFunctionsFactory_init.ArgNode.type, omnisci.thrift.ttypes.TColumnRange.type, omnisci.thrift.ttypes.TRenderDatum.type, and omnisci.thrift.OmniSci.get_db_object_privs_args.type.

998  def __str__(self):
999  t = str(self.type)
1000  anns = ""
1001  if self.annotations:
1002  anns = "| ".join([str(a) for a in self.annotations])
1003  return "ArgNode(%s %s)" % (t, anns)
1004  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 994 of file generate_TableFunctionsFactory_init.py.

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

Definition at line 1012 of file generate_TableFunctionsFactory_init.py.

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

1013  def get_annotation(self, key, default=None):
1014  for a in self.annotations:
1015  if a.key == key:
1016  return a.value
1017  return default
1018 

Member Data Documentation

generate_TableFunctionsFactory_init.ArgNode.__repr__ = __str__
staticprivate

Definition at line 1010 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.ArgNode.annotations

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

generate_TableFunctionsFactory_init.ArgNode.type

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