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 interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionConstruct with a default number of determinizeWorkLimit.CharacterRunAutomaton(Automaton a, int determinizeWorkLimit) Constructor specifying determinizeWorkLimit. -
Method Summary
Methods 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
-
CharacterRunAutomaton
Construct with a default number of determinizeWorkLimit. -
CharacterRunAutomaton
Constructor specifying determinizeWorkLimit.- Parameters:
a- Automaton to matchdeterminizeWorkLimit- maximum effort to spend determinizing the automataon. If more effort is required then a TooComplexToDeterminizeException is thrown. UseOperations.DEFAULT_DETERMINIZE_WORK_LIMITas a decent default if you don't otherwise know what to specify.
-
-
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
-