OmniSciDB  ca0c39ec8f
 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 1022 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 1024 of file generate_TableFunctionsFactory_init.py.

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

Member Function Documentation

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

Definition at line 1047 of file generate_TableFunctionsFactory_init.py.

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

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

Definition at line 1044 of file generate_TableFunctionsFactory_init.py.

1045  def accept(self, visitor):
1046  return visitor.visit_udtf_node(self)

Member Data Documentation

generate_TableFunctionsFactory_init.UdtfNode.__repr__ = __str__
staticprivate

Definition at line 1076 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.UdtfNode.annotations

Definition at line 1039 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 1037 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 1042 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 1036 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.UdtfNode.__str__().

generate_TableFunctionsFactory_init.UdtfNode.outputs

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

Referenced by generate_TableFunctionsFactory_init.UdtfNode.__str__().

generate_TableFunctionsFactory_init.UdtfNode.templates

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