Class SparkExpressionBuilder
- All Implemented Interfaces:
SparkExpressionBaseVisitor<Object>,org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectaggregateResult(Object aggregate, Object nextResult) Visit a parse tree produced by theandlabeled alternative inSparkExpressionBaseParser.booleanExpression().Visit a parse tree produced by thearithmeticBinarylabeled alternative inSparkExpressionBaseParser.valueExpression().Visit a parse tree produced by thebackQuotedIdentifierlabeled alternative inSparkExpressionBaseParser.identifier().Visit a parse tree produced by thebetweenlabeled alternative inSparkExpressionBaseParser.predicate(org.antlr.v4.runtime.ParserRuleContext).Visit a parse tree produced by thebooleanLiterallabeled alternative inSparkExpressionBaseParser.primaryExpression().Visit a parse tree produced by thecolumnReferencelabeled alternative inSparkExpressionBaseParser.primaryExpression().Visit a parse tree produced by thecomparisonlabeled alternative inSparkExpressionBaseParser.predicate(org.antlr.v4.runtime.ParserRuleContext).Visit a parse tree produced by theintegerLiterallabeled alternative inSparkExpressionBaseParser.number().Visit a parse tree produced by thenullLiterallabeled alternative inSparkExpressionBaseParser.primaryExpression().Visit a parse tree produced by theorlabeled alternative inSparkExpressionBaseParser.booleanExpression().Visit a parse tree produced by thepredicatedlabeled alternative inSparkExpressionBaseParser.booleanExpression().Visit a parse tree produced bySparkExpressionBaseParser.standaloneExpression().Visit a parse tree produced by theunicodeStringLiterallabeled alternative inSparkExpressionBaseParser.string().Visit a parse tree produced by theunquotedIdentifierlabeled alternative inSparkExpressionBaseParser.identifier().Methods inherited from class io.trino.plugin.deltalake.expression.SparkExpressionBaseBaseVisitor
visitBooleanValue, visitComparisonOperator, visitExpression, visitNumericLiteral, visitStringLiteral, visitValueExpressionDefaultMethods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
SparkExpressionBuilder
public SparkExpressionBuilder()
-
-
Method Details
-
visitStandaloneExpression
public Object visitStandaloneExpression(SparkExpressionBaseParser.StandaloneExpressionContext context) Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced bySparkExpressionBaseParser.standaloneExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStandaloneExpressionin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitStandaloneExpressionin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitPredicated
Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by thepredicatedlabeled alternative inSparkExpressionBaseParser.booleanExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPredicatedin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitPredicatedin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitArithmeticBinary
Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by thearithmeticBinarylabeled alternative inSparkExpressionBaseParser.valueExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArithmeticBinaryin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitArithmeticBinaryin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitComparison
Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by thecomparisonlabeled alternative inSparkExpressionBaseParser.predicate(org.antlr.v4.runtime.ParserRuleContext).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitComparisonin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitComparisonin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitAnd
Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by theandlabeled alternative inSparkExpressionBaseParser.booleanExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAndin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitAndin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitOr
Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by theorlabeled alternative inSparkExpressionBaseParser.booleanExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOrin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitOrin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitBetween
Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by thebetweenlabeled alternative inSparkExpressionBaseParser.predicate(org.antlr.v4.runtime.ParserRuleContext).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBetweenin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitBetweenin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitColumnReference
Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by thecolumnReferencelabeled alternative inSparkExpressionBaseParser.primaryExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitColumnReferencein interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitColumnReferencein classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitBooleanLiteral
Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by thebooleanLiterallabeled alternative inSparkExpressionBaseParser.primaryExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBooleanLiteralin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitBooleanLiteralin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteral
Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by theintegerLiterallabeled alternative inSparkExpressionBaseParser.number().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIntegerLiteralin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitIntegerLiteralin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitUnicodeStringLiteral
public Object visitUnicodeStringLiteral(SparkExpressionBaseParser.UnicodeStringLiteralContext context) Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by theunicodeStringLiterallabeled alternative inSparkExpressionBaseParser.string().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnicodeStringLiteralin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitUnicodeStringLiteralin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitNullLiteral
Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by thenullLiterallabeled alternative inSparkExpressionBaseParser.primaryExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNullLiteralin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitNullLiteralin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitUnquotedIdentifier
public SparkExpression visitUnquotedIdentifier(SparkExpressionBaseParser.UnquotedIdentifierContext context) Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by theunquotedIdentifierlabeled alternative inSparkExpressionBaseParser.identifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnquotedIdentifierin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitUnquotedIdentifierin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
visitBackQuotedIdentifier
public Object visitBackQuotedIdentifier(SparkExpressionBaseParser.BackQuotedIdentifierContext context) Description copied from class:SparkExpressionBaseBaseVisitorVisit a parse tree produced by thebackQuotedIdentifierlabeled alternative inSparkExpressionBaseParser.identifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBackQuotedIdentifierin interfaceSparkExpressionBaseVisitor<Object>- Overrides:
visitBackQuotedIdentifierin classSparkExpressionBaseBaseVisitor<Object>- Parameters:
context- the parse tree- Returns:
- the visitor result
-
aggregateResult
- Overrides:
aggregateResultin classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<Object>
-