Package org.apache.lucene.util.automaton
Class CharacterRunAutomaton
java.lang.Object
org.apache.lucene.util.automaton.RunAutomaton
org.apache.lucene.util.automaton.CharacterRunAutomaton
- All Implemented Interfaces:
Accountable
Automaton representation for matching char[].
-
Field Summary
Fields inherited from class org.apache.lucene.util.automaton.RunAutomaton
accept, alphabetSize, automaton, classmap, points, size, transitionsFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionConstruct with a default number of maxDeterminizedStates.CharacterRunAutomaton(Automaton a, int maxDeterminizedStates) Construct specifying maxDeterminizedStates. -
Method Summary
Methods inherited from class org.apache.lucene.util.automaton.RunAutomaton
equals, getCharClass, 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
-
CharacterRunAutomaton
Construct with a default number of maxDeterminizedStates. -
CharacterRunAutomaton
Construct specifying maxDeterminizedStates.- Parameters:
a- Automaton to matchmaxDeterminizedStates- maximum number of states that the automaton can have once determinized. If more states are required to determinize it then a TooComplexToDeterminizeException is thrown.
-
-
Method Details
-
run
Returns true if the given string is accepted by this automaton. -
run
public boolean run(char[] s, int offset, int length) Returns true if the given string is accepted by this automaton
-