Class ByteRunAutomaton

java.lang.Object
org.apache.lucene.util.automaton.RunAutomaton
org.apache.lucene.util.automaton.ByteRunAutomaton
All Implemented Interfaces:
Accountable

public class ByteRunAutomaton extends RunAutomaton
Automaton representation for matching UTF-8 byte[].
  • Constructor Details

    • ByteRunAutomaton

      public ByteRunAutomaton(Automaton a)
      Converts incoming automaton to byte-based (UTF32ToUTF8) first
    • ByteRunAutomaton

      public ByteRunAutomaton(Automaton a, boolean isBinary, int determinizeWorkLimit)
      expert: if isBinary is true, the input is already byte-based
  • Method Details

    • run

      public boolean run(byte[] s, int offset, int length)
      Returns true if the given byte array is accepted by this automaton