OmniSciDB  a987f07e93
 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
 
 sizer
 
 line
 

Static Private Attributes

 __repr__ = __str__
 

Detailed Description

Definition at line 1026 of file generate_TableFunctionsFactory_init.py.

Constructor & Destructor Documentation

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

Definition at line 1028 of file generate_TableFunctionsFactory_init.py.

1029  def __init__(self, name, inputs, outputs, annotations, templates, sizer, line):
1030  """
1031  Parameters
1032  ----------
1033  name : str
1034  inputs : list[ArgNode]
1035  outputs : list[ArgNode]
1036  annotations : Optional[List[AnnotationNode]]
1037  templates : Optional[list[TemplateNode]]
1038  sizer : Optional[str]
1039  line: str
1040  """
1041  self.name = name
1042  self.inputs = inputs
1043  self.outputs = outputs
1044  self.annotations = annotations
1045  self.templates = templates
1046  self.sizer = sizer
1047  self.line = line

Member Function Documentation

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

Definition at line 1051 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, ScalarCodeGenerator::CompiledExpression.inputs, generate_TableFunctionsFactory_init.UdtfNode.inputs, org.apache.calcite.sql2rel.SqlToRelConverter.Blackboard.inputs, com.mapd.parser.extension.ddl.heavysql.HeavySqlTypeNameSpec.name, com.mapd.parser.extension.ddl.heavysql.HeavySqlColumn.name, com.mapd.parser.extension.ddl.SqlRenameUser.name, com.mapd.parser.extension.ddl.SqlInsertValues.name, com.mapd.parser.extension.ddl.SqlAlterUser.name, com.mapd.parser.extension.ddl.SqlDropUser.name, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.name, com.mapd.parser.extension.ddl.SqlDropDB.name, com.mapd.parser.extension.ddl.SqlCreateUser.name, com.mapd.parser.extension.ddl.SqlCreateDB.name, com.mapd.parser.extension.ddl.SqlInsertIntoTable.name, foreign_storage::ForeignServer.name, com.mapd.parser.extension.ddl.SqlCreateDataframe.name, com.mapd.parser.extension.ddl.SqlCheckConstraint.name, com.mapd.parser.extension.ddl.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlKeyConstraint.name, com.mapd.parser.extension.ddl.SqlColumnDeclaration.name, Catalog_Namespace::CustomExpression.name, org.apache.calcite.sql.SqlOperator.name, import_export::RasterImporter::ImportBandInfo.name, benchmarks.StringDictionaryBenchmark.name, benchmarks.TPC_DS_10GB.name, CodeGenerator::NullCheckCodegen.name, generate_TableFunctionsFactory_init.Bracket.name, heavydb.extension_functions.ttypes.TUserDefinedFunction.name, Function::NamedArg.name, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, generate_TableFunctionsFactory_init.UdtfNode.name, heavydb.thrift.ttypes.TDashboardGrantees.name, heavydb.thrift.ttypes.TGeoFileLayerInfo.name, heavydb.thrift.ttypes.TCustomExpression.name, generate_TableFunctionsFactory_init.UdtfNode.outputs, generate_TableFunctionsFactory_init.UdtfNode.sizer, and generate_TableFunctionsFactory_init.UdtfNode.templates.

1052  def __str__(self):
1053  name = self.name
1054  inputs = [str(i) for i in self.inputs]
1055  outputs = [str(o) for o in self.outputs]
1056  annotations = [str(a) for a in self.annotations]
1057  sizer = "| %s" % str(self.sizer) if self.sizer else ""
1058  if self.templates:
1059  templates = [str(t) for t in self.templates]
1060  if annotations:
1061  return "UDTF: %s (%s) | %s -> %s, %s %s" % (name, inputs, annotations, outputs, templates, sizer)
1062  else:
1063  return "UDTF: %s (%s) -> %s, %s %s" % (name, inputs, outputs, templates, sizer)
1064  else:
1065  if annotations:
1066  return "UDTF: %s (%s) | %s -> %s %s" % (name, inputs, annotations, outputs, sizer)
1067  else:
1068  return "UDTF: %s (%s) -> %s %s" % (name, inputs, outputs, sizer)
def generate_TableFunctionsFactory_init.UdtfNode.accept (   self,
  visitor 
)

Definition at line 1048 of file generate_TableFunctionsFactory_init.py.

1049  def accept(self, visitor):
1050  return visitor.visit_udtf_node(self)

Member Data Documentation

generate_TableFunctionsFactory_init.UdtfNode.__repr__ = __str__
staticprivate

Definition at line 1080 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.UdtfNode.annotations

Definition at line 1043 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__(), generate_TableFunctionsFactory_init.ArgNode.get_annotation(), and generate_TableFunctionsFactory_init.ArgNode.set_annotation().

generate_TableFunctionsFactory_init.UdtfNode.inputs

Definition at line 1041 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 1046 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 1040 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.UdtfNode.__str__().

generate_TableFunctionsFactory_init.UdtfNode.outputs

Definition at line 1042 of file generate_TableFunctionsFactory_init.py.

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

generate_TableFunctionsFactory_init.UdtfNode.sizer

Definition at line 1045 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.UdtfNode.__str__().

generate_TableFunctionsFactory_init.UdtfNode.templates

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