Package org.apache.lucene.util.automaton
Class ByteRunAutomaton
java.lang.Object
org.apache.lucene.util.automaton.RunAutomaton
org.apache.lucene.util.automaton.ByteRunAutomaton
- All Implemented Interfaces:
Accountable
Automaton representation for matching UTF-8 byte[].
-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
ConstructorDescriptionConverts incoming automaton to byte-based (UTF32ToUTF8) firstByteRunAutomaton
(Automaton a, boolean isBinary, int determinizeWorkLimit) expert: if isBinary 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, getSize, hashCode, isAccept, ramBytesUsed, step, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Constructor Details
-
ByteRunAutomaton
Converts incoming automaton to byte-based (UTF32ToUTF8) first -
ByteRunAutomaton
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
-