Class ByteRunAutomaton

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

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

    • ByteRunAutomaton

      public ByteRunAutomaton(Automaton a)
      Converts incoming automaton to byte-based (UTF32ToUTF8) first
      Throws:
      IllegalArgumentException - if the automaton is not deterministic
    • ByteRunAutomaton

      public ByteRunAutomaton(Automaton a, boolean isBinary)
      expert: if isBinary is true, the input is already byte-based
      Throws:
      IllegalArgumentException - if the automaton is not deterministic