java.lang.Object
org.elasticsearch.xpack.esql.expression.function.scalar.string.AutomataMatch

public class AutomataMatch extends Object
Matches BytesRefs against automata.
  • Constructor Details

    • AutomataMatch

      public AutomataMatch()
  • Method Details

    • toEvaluator

      public static ExpressionEvaluator.Factory toEvaluator(Source source, ExpressionEvaluator.Factory field, org.apache.lucene.util.automaton.Automaton utf32Automaton)
      Build an ExpressionEvaluator.Factory that will match BytesRefs against automata and return a BooleanBlock.
    • toDot

      public static String toDot(org.apache.lucene.util.automaton.Automaton automaton)
      Convert an Automaton to dot.

      This was borrowed from Automaton.toDot() but has been modified to snip if the length grows too much and to format the bytes differently.