Class LogicalPlanBuilder
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>,EsqlBaseParserVisitor<Object>
- Direct Known Subclasses:
AstBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.parser.ExpressionBuilder
ExpressionBuilder.ParsingContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum number of commands allowed per queryFields inherited from class org.elasticsearch.xpack.esql.parser.ExpressionBuilder
context, MAX_EXPRESSION_DEPTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LogicalPlanplan(org.antlr.v4.runtime.tree.ParseTree ctx) protected List<LogicalPlan> protected static StringquoteIdString(String unquotedString) protected static StringunquoteIdentifier(org.antlr.v4.runtime.tree.TerminalNode quotedNode, org.antlr.v4.runtime.tree.TerminalNode unquotedNode) protected static StringunquoteIdString(String quotedString) protected static voidvalidateClusterString(String clusterString, EsqlBaseParser.IndexPatternContext ctx) visit(org.antlr.v4.runtime.tree.ParseTree tree) org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.changePointCommand().Visit a parse tree produced byEsqlBaseParser.clusterString().Visit a parse tree produced byEsqlBaseParser.commandOptions().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.completionCommand().Visit a parse tree produced by thecompositeQuerylabeled alternative inEsqlBaseParser.query().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.dissectCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.dropCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.enrichCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.evalCommand().Visit a parse tree produced byEsqlBaseParser.explainCommand().Visit a parse tree produced byEsqlBaseParser.fromCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.grokCommand().Visit a parse tree produced byEsqlBaseParser.identifier().Visit a parse tree produced byEsqlBaseParser.indexString().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.inlinestatsCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.joinCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.keepCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.limitCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.lookupCommand().Visit a parse tree produced byEsqlBaseParser.metricsCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.mvExpandCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.renameCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.rerankCommand().Visit a parse tree produced byEsqlBaseParser.rowCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.sampleCommand().Visit a parse tree produced byEsqlBaseParser.selectorString().Visit a parse tree produced by theshowInfolabeled alternative inEsqlBaseParser.showCommand().Visit a parse tree produced byEsqlBaseParser.singleStatement().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.sortCommand().org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.statsCommand().visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node) org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactoryVisit a parse tree produced byEsqlBaseParser.whereCommand().Methods inherited from class org.elasticsearch.xpack.esql.parser.ExpressionBuilder
expression, expressions, visitAggField, visitAggFields, visitArithmeticBinary, visitArithmeticUnary, visitBooleanArrayLiteral, visitBooleanValue, visitComparison, visitDecimalValue, visitDereference, visitEnrichWithClause, visitField, visitFields, visitFunctionExpression, visitFunctionName, visitGrouping, visitIdentifierOrParameter, visitInlineCast, visitInputDoubleParams, visitInputNamedOrPositionalDoubleParams, visitInputNamedOrPositionalParam, visitInputParam, visitIntegerValue, visitIsNull, visitLikeExpression, visitLikeListExpression, visitLogicalBinary, visitLogicalIn, visitLogicalNot, visitMapExpression, visitMatchBooleanExpression, visitNullLiteral, visitNumericArrayLiteral, visitOperatorExpressionDefault, visitOrderExpression, visitParenthesizedExpression, visitQualifiedIntegerLiteral, visitQualifiedName, visitQualifiedNamePattern, visitQualifiedNamePattern, visitQualifiedNamePatterns, visitQualifiedNamePatterns, visitRenameClause, visitRerankField, visitRerankFields, visitRlikeExpression, visitString, visitStringArrayLiteral, visitStringLiteral, visitToDataTypeMethods inherited from class org.elasticsearch.xpack.esql.parser.EsqlBaseParserBaseVisitor
visitBooleanDefault, visitBooleanLiteral, visitCommandOption, visitComparisonOperator, visitConstantDefault, visitDecimalLiteral, visitDeprecated_metadata, visitEnrichPolicyName, visitEntryExpression, visitFunction, visitIdentifierPattern, visitIndexPattern, visitInferenceCommandOption, visitInferenceCommandOptions, visitInferenceCommandOptionValue, visitInputParameter, visitIntegerLiteral, visitJoinCondition, visitJoinPredicate, visitJoinTarget, visitMatchExpression, visitMetadata, visitMetadataOption, visitNumericValue, visitProcessingCommand, visitRegexExpression, visitSingleCommandQuery, visitSourceCommand, visitSubqueryExpression, visitUnquotedIndexString, visitValueExpressionDefaultMethods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNodeMethods 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
visitChildren, visitErrorNode
-
Field Details
-
MAX_QUERY_DEPTH
public static final int MAX_QUERY_DEPTHMaximum number of commands allowed per query- See Also:
-
-
Constructor Details
-
LogicalPlanBuilder
-
-
Method Details
-
plan
-
plans
-
visitSingleStatement
Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.singleStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSingleStatementin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitSingleStatementin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCompositeQuery
Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced by thecompositeQuerylabeled alternative inEsqlBaseParser.query().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompositeQueryin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitCompositeQueryin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEvalCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitEvalCommand(EsqlBaseParser.EvalCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.evalCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEvalCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitEvalCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGrokCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitGrokCommand(EsqlBaseParser.GrokCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.grokCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGrokCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitGrokCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDissectCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitDissectCommand(EsqlBaseParser.DissectCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.dissectCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDissectCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitDissectCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMvExpandCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.mvExpandCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMvExpandCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitMvExpandCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCommandOptions
Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.commandOptions().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCommandOptionsin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitCommandOptionsin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRowCommand
Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.rowCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRowCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitRowCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFromCommand
Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.fromCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFromCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitFromCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStatsCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitStatsCommand(EsqlBaseParser.StatsCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.statsCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStatsCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitStatsCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInlinestatsCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.inlinestatsCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInlinestatsCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitInlinestatsCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhereCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitWhereCommand(EsqlBaseParser.WhereCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.whereCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWhereCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitWhereCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLimitCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitLimitCommand(EsqlBaseParser.LimitCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.limitCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLimitCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitLimitCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSortCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitSortCommand(EsqlBaseParser.SortCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.sortCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSortCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitSortCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExplainCommand
Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.explainCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExplainCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitExplainCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDropCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitDropCommand(EsqlBaseParser.DropCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.dropCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDropCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitDropCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRenameCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitRenameCommand(EsqlBaseParser.RenameCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.renameCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRenameCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitRenameCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitKeepCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitKeepCommand(EsqlBaseParser.KeepCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.keepCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitKeepCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitKeepCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitShowInfo
Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced by theshowInfolabeled alternative inEsqlBaseParser.showCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitShowInfoin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitShowInfoin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnrichCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.enrichCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnrichCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitEnrichCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitChangePointCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.changePointCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitChangePointCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitChangePointCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMetricsCommand
Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.metricsCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMetricsCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitMetricsCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLookupCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitLookupCommand(EsqlBaseParser.LookupCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.lookupCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLookupCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitLookupCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitJoinCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitJoinCommand(EsqlBaseParser.JoinCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.joinCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitJoinCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitJoinCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRerankCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitRerankCommand(EsqlBaseParser.RerankCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.rerankCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRerankCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitRerankCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCompletionCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitCompletionCommand(EsqlBaseParser.CompletionCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.completionCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompletionCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitCompletionCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSampleCommand
public org.elasticsearch.xpack.esql.parser.LogicalPlanBuilder.PlanFactory visitSampleCommand(EsqlBaseParser.SampleCommandContext ctx) Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.sampleCommand().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSampleCommandin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitSampleCommandin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentifier
Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.identifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdentifierin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitIdentifierin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
unquoteIdentifier
protected static String unquoteIdentifier(org.antlr.v4.runtime.tree.TerminalNode quotedNode, org.antlr.v4.runtime.tree.TerminalNode unquotedNode) -
unquoteIdString
-
quoteIdString
-
visitClusterString
Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.clusterString().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClusterStringin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitClusterStringin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIndexString
Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.indexString().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIndexStringin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitIndexStringin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSelectorString
Description copied from class:EsqlBaseParserBaseVisitorVisit a parse tree produced byEsqlBaseParser.selectorString().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSelectorStringin interfaceEsqlBaseParserVisitor<Object>- Overrides:
visitSelectorStringin classEsqlBaseParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIndexPattern
-
validateClusterString
protected static void validateClusterString(String clusterString, EsqlBaseParser.IndexPatternContext ctx) -
visit
-
visitTerminal
-