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

991  def __init__(self, name, inputs, outputs, annotations, templates, sizer, line):
992  """
993  Parameters
994  ----------
995  name : str
996  inputs : list[ArgNode]
997  outputs : list[ArgNode]
998  annotations : Optional[List[AnnotationNode]]
999  templates : Optional[list[TemplateNode]]
1000  sizer : Optional[str]
1001  line: str
1002  """
1003  self.name = name
1004  self.inputs = inputs
1005  self.outputs = outputs
1006  self.annotations = annotations
1007  self.templates = templates
1008  self.sizer = sizer
1009  self.line = line

Member Function Documentation

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

Definition at line 1013 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.SqlInsertValues.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.SqlRenameDB.name, com.mapd.parser.extension.ddl.SqlRenameUser.name, com.mapd.parser.extension.ddl.SqlCreateUser.name, com.mapd.parser.extension.ddl.SqlAlterUser.name, com.mapd.parser.extension.ddl.SqlCreateDB.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.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.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, benchmarks.StringDictionaryBenchmark.name, import_export::RasterImporter::ImportBandInfo.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.

1014  def __str__(self):
1015  name = self.name
1016  inputs = [str(i) for i in self.inputs]
1017  outputs = [str(o) for o in self.outputs]
1018  annotations = [str(a) for a in self.annotations]
1019  sizer = "| %s" % str(self.sizer) if self.sizer else ""
1020  if self.templates:
1021  templates = [str(t) for t in self.templates]
1022  if annotations:
1023  return "UDTF: %s (%s) | %s -> %s, %s %s" % (name, inputs, annotations, outputs, templates, sizer)
1024  else:
1025  return "UDTF: %s (%s) -> %s, %s %s" % (name, inputs, outputs, templates, sizer)
1026  else:
1027  if annotations:
1028  return "UDTF: %s (%s) | %s -> %s %s" % (name, inputs, annotations, outputs, sizer)
1029  else:
1030  return "UDTF: %s (%s) -> %s %s" % (name, inputs, outputs, sizer)
def generate_TableFunctionsFactory_init.UdtfNode.accept (   self,
  visitor 
)

Definition at line 1010 of file generate_TableFunctionsFactory_init.py.

1011  def accept(self, visitor):
1012  return visitor.visit_udtf_node(self)

Member Data Documentation

generate_TableFunctionsFactory_init.UdtfNode.__repr__ = __str__
staticprivate

Definition at line 1042 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.UdtfNode.annotations

Definition at line 1005 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 1003 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 1008 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 1002 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.UdtfNode.__str__().

generate_TableFunctionsFactory_init.UdtfNode.outputs

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

Referenced by generate_TableFunctionsFactory_init.UdtfNode.__str__().

generate_TableFunctionsFactory_init.UdtfNode.templates

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