Package io.substrait.type.parser
Class ParseToPojo.Visitor
java.lang.Object
io.substrait.type.parser.ParseToPojo.Visitor
- All Implemented Interfaces:
SubstraitTypeVisitor<TypeExpression>,org.antlr.v4.runtime.tree.ParseTreeVisitor<TypeExpression>
- Enclosing class:
- ParseToPojo
public static class ParseToPojo.Visitor
extends Object
implements SubstraitTypeVisitor<TypeExpression>
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParseToPojo.Visitorexpression(String namespace) protected TypeExpressioni(int val) static ParseToPojo.Visitorparameterized(String namespace) static ParseToPojo.Visitorvisit(org.antlr.v4.runtime.tree.ParseTree tree) Visit a parse tree produced bySubstraitTypeParser.anyType().Visit a parse tree produced by thebinarylabeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by theBinaryExprlabeled alternative inSubstraitTypeParser.expr().Visit a parse tree produced by theBooleanlabeled alternative inSubstraitTypeParser.scalarType().visitChildren(org.antlr.v4.runtime.tree.RuleNode node) Visit a parse tree produced by thedatelabeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by thedecimallabeled alternative inSubstraitTypeParser.parameterizedType().visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node) Visit a parse tree produced by thefixedBinarylabeled alternative inSubstraitTypeParser.parameterizedType().Visit a parse tree produced by thefixedCharlabeled alternative inSubstraitTypeParser.parameterizedType().Visit a parse tree produced by thefp32labeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by thefp64labeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by theFunctionCalllabeled alternative inSubstraitTypeParser.expr().Visit a parse tree produced by thei16labeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by thei32labeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by thei64labeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by thei8labeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by theIfExprlabeled alternative inSubstraitTypeParser.expr().Visit a parse tree produced by theintervalCompoundlabeled alternative inSubstraitTypeParser.parameterizedType().Visit a parse tree produced by theintervalDaylabeled alternative inSubstraitTypeParser.parameterizedType().Visit a parse tree produced by theintervalYearlabeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by thelistlabeled alternative inSubstraitTypeParser.parameterizedType().Visit a parse tree produced by theLiteralNumberlabeled alternative inSubstraitTypeParser.expr().Visit a parse tree produced by themaplabeled alternative inSubstraitTypeParser.parameterizedType().Visit a parse tree produced by theMultilineDefinitionlabeled alternative inSubstraitTypeParser.expr().Visit a parse tree produced by theNotExprlabeled alternative inSubstraitTypeParser.expr().Visit a parse tree produced by thenStructlabeled alternative inSubstraitTypeParser.parameterizedType().Visit a parse tree produced by thenumericExpressionlabeled alternative inSubstraitTypeParser.numericParameter().Visit a parse tree produced by thenumericLiterallabeled alternative inSubstraitTypeParser.numericParameter().Visit a parse tree produced by thenumericParameterNamelabeled alternative inSubstraitTypeParser.numericParameter().Visit a parse tree produced by theParenExpressionlabeled alternative inSubstraitTypeParser.expr().Visit a parse tree produced by theprecisionTimestamplabeled alternative inSubstraitTypeParser.parameterizedType().Visit a parse tree produced by theprecisionTimestampTZlabeled alternative inSubstraitTypeParser.parameterizedType().Visit a parse tree produced bySubstraitTypeParser.start().Visit a parse tree produced by thestringlabeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by thestructlabeled alternative inSubstraitTypeParser.parameterizedType().visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node) Visit a parse tree produced by theTernarylabeled alternative inSubstraitTypeParser.expr().Visit a parse tree produced by thetimelabeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by thetimestamplabeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by thetimestampTzlabeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced bySubstraitTypeParser.type().Visit a parse tree produced by theTypeLiterallabeled alternative inSubstraitTypeParser.expr().Visit a parse tree produced by theTypeParamlabeled alternative inSubstraitTypeParser.expr().Visit a parse tree produced by theuserDefinedlabeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by theuuidlabeled alternative inSubstraitTypeParser.scalarType().Visit a parse tree produced by thevarCharlabeled alternative inSubstraitTypeParser.parameterizedType().
-
Method Details
-
simple
-
parameterized
-
expression
-
visitStart
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced bySubstraitTypeParser.start().- Specified by:
visitStartin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBoolean
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theBooleanlabeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitBooleanin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitI8
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thei8labeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitI8in interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitI16
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thei16labeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitI16in interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitI32
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thei32labeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitI32in interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitI64
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thei64labeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitI64in interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeLiteral
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theTypeLiterallabeled alternative inSubstraitTypeParser.expr().- Specified by:
visitTypeLiteralin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFp32
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thefp32labeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitFp32in interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFp64
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thefp64labeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitFp64in interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitString
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thestringlabeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitStringin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinary
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thebinarylabeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitBinaryin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTimestamp
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thetimestamplabeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitTimestampin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTimestampTz
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thetimestampTzlabeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitTimestampTzin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDate
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thedatelabeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitDatein interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTime
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thetimelabeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitTimein interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntervalYear
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theintervalYearlabeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitIntervalYearin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntervalDay
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theintervalDaylabeled alternative inSubstraitTypeParser.parameterizedType().- Specified by:
visitIntervalDayin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntervalCompound
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theintervalCompoundlabeled alternative inSubstraitTypeParser.parameterizedType().- Specified by:
visitIntervalCompoundin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUuid
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theuuidlabeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitUuidin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUserDefined
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theuserDefinedlabeled alternative inSubstraitTypeParser.scalarType().- Specified by:
visitUserDefinedin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFixedChar
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thefixedCharlabeled alternative inSubstraitTypeParser.parameterizedType().- Specified by:
visitFixedCharin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVarChar
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thevarCharlabeled alternative inSubstraitTypeParser.parameterizedType().- Specified by:
visitVarCharin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFixedBinary
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thefixedBinarylabeled alternative inSubstraitTypeParser.parameterizedType().- Specified by:
visitFixedBinaryin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDecimal
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thedecimallabeled alternative inSubstraitTypeParser.parameterizedType().- Specified by:
visitDecimalin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrecisionTimestamp
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theprecisionTimestamplabeled alternative inSubstraitTypeParser.parameterizedType().- Specified by:
visitPrecisionTimestampin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrecisionTimestampTZ
public TypeExpression visitPrecisionTimestampTZ(SubstraitTypeParser.PrecisionTimestampTZContext ctx) Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theprecisionTimestampTZlabeled alternative inSubstraitTypeParser.parameterizedType().- Specified by:
visitPrecisionTimestampTZin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStruct
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thestructlabeled alternative inSubstraitTypeParser.parameterizedType().- Specified by:
visitStructin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNStruct
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thenStructlabeled alternative inSubstraitTypeParser.parameterizedType().- Specified by:
visitNStructin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitList
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thelistlabeled alternative inSubstraitTypeParser.parameterizedType().- Specified by:
visitListin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMap
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by themaplabeled alternative inSubstraitTypeParser.parameterizedType().- Specified by:
visitMapin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitType
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced bySubstraitTypeParser.type().- Specified by:
visitTypein interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParam
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theTypeParamlabeled alternative inSubstraitTypeParser.expr().- Specified by:
visitTypeParamin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenExpression
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theParenExpressionlabeled alternative inSubstraitTypeParser.expr().- Specified by:
visitParenExpressionin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIfExpr
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theIfExprlabeled alternative inSubstraitTypeParser.expr().- Specified by:
visitIfExprin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTernary
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theTernarylabeled alternative inSubstraitTypeParser.expr().- Specified by:
visitTernaryin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultilineDefinition
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theMultilineDefinitionlabeled alternative inSubstraitTypeParser.expr().- Specified by:
visitMultilineDefinitionin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinaryExpr
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theBinaryExprlabeled alternative inSubstraitTypeParser.expr().- Specified by:
visitBinaryExprin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumericLiteral
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thenumericLiterallabeled alternative inSubstraitTypeParser.numericParameter().- Specified by:
visitNumericLiteralin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumericParameterName
public TypeExpression visitNumericParameterName(SubstraitTypeParser.NumericParameterNameContext ctx) Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thenumericParameterNamelabeled alternative inSubstraitTypeParser.numericParameter().- Specified by:
visitNumericParameterNamein interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumericExpression
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by thenumericExpressionlabeled alternative inSubstraitTypeParser.numericParameter().- Specified by:
visitNumericExpressionin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnyType
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced bySubstraitTypeParser.anyType().- Specified by:
visitAnyTypein interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
anyType- the parse tree- Returns:
- the visitor result
-
visitFunctionCall
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theFunctionCalllabeled alternative inSubstraitTypeParser.expr().- Specified by:
visitFunctionCallin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNotExpr
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theNotExprlabeled alternative inSubstraitTypeParser.expr().- Specified by:
visitNotExprin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteralNumber
Description copied from interface:SubstraitTypeVisitorVisit a parse tree produced by theLiteralNumberlabeled alternative inSubstraitTypeParser.expr().- Specified by:
visitLiteralNumberin interfaceSubstraitTypeVisitor<TypeExpression>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
i
-
visit
- Specified by:
visitin interfaceorg.antlr.v4.runtime.tree.ParseTreeVisitor<TypeExpression>
-
visitChildren
- Specified by:
visitChildrenin interfaceorg.antlr.v4.runtime.tree.ParseTreeVisitor<TypeExpression>
-
visitTerminal
- Specified by:
visitTerminalin interfaceorg.antlr.v4.runtime.tree.ParseTreeVisitor<TypeExpression>
-
visitErrorNode
- Specified by:
visitErrorNodein interfaceorg.antlr.v4.runtime.tree.ParseTreeVisitor<TypeExpression>
-