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
ConstructorsConstructorDescriptionConverts 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 TypeMethodDescriptionbooleanrun(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-