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

Public Member Functions

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

Public Attributes

 name
 
 inputs
 
 outputs
 
 annotations
 
 templates
 
 line
 

Static Private Attributes

 __repr__ = __str__
 

Detailed Description

Definition at line 927 of file generate_TableFunctionsFactory_init.py.

Constructor & Destructor Documentation

def generate_TableFunctionsFactory_init.UdtfNode.__init__ (   self,
  name,
  inputs,
  outputs,
  annotations,
  templates,
  line 
)
Parameters
----------
name : str
inputs : list[ArgNode]
outputs : list[ArgNode]
annotations : Optional[List[AnnotationNode]]
templates : Optional[list[TemplateNode]]
line: str

Definition at line 929 of file generate_TableFunctionsFactory_init.py.

930  def __init__(self, name, inputs, outputs, annotations, templates, line):
931  """
932  Parameters
933  ----------
934  name : str
935  inputs : list[ArgNode]
936  outputs : list[ArgNode]
937  annotations : Optional[List[AnnotationNode]]
938  templates : Optional[list[TemplateNode]]
939  line: str
940  """
941  self.name = name
942  self.inputs = inputs
943  self.outputs = outputs
944  self.annotations = annotations
945  self.templates = templates
946  self.line = line

Member Function Documentation

def generate_TableFunctionsFactory_init.UdtfNode.__iter__ (   self)
def generate_TableFunctionsFactory_init.UdtfNode.__str__ (   self)

Definition at line 950 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.annotations, generate_TableFunctionsFactory_init.UdtfNode.annotations, ScalarCodeGenerator::CompiledExpression.inputs, generate_TableFunctionsFactory_init.UdtfNode.inputs, org.apache.calcite.sql2rel.SqlToRelConverter.Blackboard.inputs, com.mapd.parser.extension.ddl.omnisql.OmniSqlTypeNameSpec.name, com.mapd.parser.extension.ddl.omnisql.OmniSqlColumn.name, com.mapd.parser.extension.ddl.SqlDropUser.name, com.mapd.parser.extension.ddl.SqlDropDB.name, com.mapd.parser.extension.ddl.SqlRenameDB.name, com.mapd.parser.extension.ddl.SqlRenameUser.name, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.name, com.mapd.parser.extension.ddl.SqlCreateDB.name, com.mapd.parser.extension.ddl.SqlAlterUser.name, com.mapd.parser.extension.ddl.SqlCreateUser.name, foreign_storage::ForeignServer.name, com.mapd.parser.extension.ddl.SqlCreateDataframe.name, com.mapd.parser.extension.ddl.SqlInsertIntoTable.name, com.mapd.parser.extension.ddl.SqlCheckConstraint.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.name, com.mapd.parser.extension.ddl.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlKeyConstraint.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlColumnDeclaration.name, Catalog_Namespace::CustomExpression.name, CodeGenerator::NullCheckCodegen.name, Function::NamedArg.name, generate_TableFunctionsFactory_init.Bracket.name, omnisci.extension_functions.ttypes.TUserDefinedFunction.name, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, generate_TableFunctionsFactory_init.UdtfNode.name, omnisci.thrift.ttypes.TDashboardGrantees.name, omnisci.thrift.ttypes.TGeoFileLayerInfo.name, omnisci.thrift.ttypes.TCustomExpression.name, generate_TableFunctionsFactory_init.UdtfNode.outputs, and generate_TableFunctionsFactory_init.UdtfNode.templates.

951  def __str__(self):
952  name = self.name
953  inputs = [str(i) for i in self.inputs]
954  outputs = [str(o) for o in self.outputs]
955  annotations = [str(a) for a in self.annotations]
956  if self.templates:
957  templates = [str(t) for t in self.templates]
958  if annotations:
959  return "UDTF: %s (%s) | %s -> %s, %s" % (name, inputs, annotations, outputs, templates)
960  else:
961  return "UDTF: %s (%s) -> %s, %s" % (name, inputs, outputs, templates)
962  else:
963  if annotations:
964  return "UDTF: %s (%s) | %s -> %s" % (name, inputs, annotations, outputs)
965  else:
966  return "UDTF: %s (%s) -> %s" % (name, inputs, outputs)
def generate_TableFunctionsFactory_init.UdtfNode.accept (   self,
  visitor 
)

Definition at line 947 of file generate_TableFunctionsFactory_init.py.

948  def accept(self, visitor):
949  return visitor.visit_udtf_node(self)

Member Data Documentation

generate_TableFunctionsFactory_init.UdtfNode.__repr__ = __str__
staticprivate

Definition at line 978 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.UdtfNode.annotations

Definition at line 943 of file generate_TableFunctionsFactory_init.py.

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

generate_TableFunctionsFactory_init.UdtfNode.inputs

Definition at line 941 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.UdtfNode.__iter__(), and generate_TableFunctionsFactory_init.UdtfNode.__str__().

generate_TableFunctionsFactory_init.UdtfNode.line

Definition at line 945 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.Tokenize.add_token(), generate_TableFunctionsFactory_init.Tokenize.current_token(), generate_TableFunctionsFactory_init.Tokenize.is_at_end(), generate_TableFunctionsFactory_init.Tokenize.lookahead(), generate_TableFunctionsFactory_init.Parser.parse_udtf(), generate_TableFunctionsFactory_init.Tokenize.peek(), and generate_TableFunctionsFactory_init.Tokenize.raise_tokenize_error().

generate_TableFunctionsFactory_init.UdtfNode.name

Definition at line 940 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.UdtfNode.__str__().

generate_TableFunctionsFactory_init.UdtfNode.outputs

Definition at line 942 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.UdtfNode.__iter__(), and generate_TableFunctionsFactory_init.UdtfNode.__str__().

generate_TableFunctionsFactory_init.UdtfNode.templates

Definition at line 944 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.UdtfNode.__iter__(), and generate_TableFunctionsFactory_init.UdtfNode.__str__().


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