Package org.apache.lucene.util.automaton
Class ByteRunAutomaton
java.lang.Object
org.apache.lucene.util.automaton.RunAutomaton
org.apache.lucene.util.automaton.ByteRunAutomaton
Automaton representation for matching UTF-8 byte[].
-
Constructor Summary
ConstructorsConstructorDescriptionByteRunAutomaton
(Automaton a, boolean utf8) expert: if utf8 is true, the input is already byte-based -
Method Summary
Modifier and TypeMethodDescriptionboolean
run
(byte[] s, int offset, int length) Returns true if the given byte array is accepted by this automatonMethods inherited from class org.apache.lucene.util.automaton.RunAutomaton
equals, getCharIntervals, getInitialState, getSize, hashCode, isAccept, step, toString
-
Constructor Details
-
ByteRunAutomaton
-
ByteRunAutomaton
expert: if utf8 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
-