Class EsqlParser

java.lang.Object
org.elasticsearch.xpack.esql.parser.EsqlParser

public class EsqlParser extends Object
  • Field Details

    • MAX_LENGTH

      public static final int MAX_LENGTH
      Maximum number of characters in an ESQL query. Antlr may parse the entire query into tokens to make the choices, buffering the world. There's a lot we can do in the grammar to prevent that, but let's be paranoid and assume we'll fail at preventing antlr from slurping in the world. Instead, let's make sure that the world just isn't that big.
      See Also:
  • Constructor Details

    • EsqlParser

      public EsqlParser()
  • Method Details

    • config

      public org.elasticsearch.xpack.esql.parser.EsqlConfig config()
    • setEsqlConfig

      public void setEsqlConfig(org.elasticsearch.xpack.esql.parser.EsqlConfig config)
    • createStatement

      public LogicalPlan createStatement(String query)
    • createStatement

      public LogicalPlan createStatement(String query, QueryParams params)
    • createStatement

      public LogicalPlan createStatement(String query, QueryParams params, PlanTelemetry metrics)