|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.util.automaton.CompiledAutomaton
public class CompiledAutomaton
Immutable class holding compiled details for a given Automaton. The Automaton is deterministic, must not have dead states but is not necessarily minimal.
Nested Class Summary | |
---|---|
static class |
CompiledAutomaton.AUTOMATON_TYPE
Automata are compiled into different internal forms for the most efficient execution depending upon the language they accept. |
Field Summary | |
---|---|
BytesRef |
commonSuffixRef
Shared common suffix accepted by the automaton. |
Boolean |
finite
Indicates if the automaton accepts a finite set of strings. |
ByteRunAutomaton |
runAutomaton
Matcher for quickly determining if a byte[] is accepted. |
Transition[][] |
sortedTransitions
Two dimensional array of transitions, indexed by state number for traversal. |
BytesRef |
term
For CompiledAutomaton.AUTOMATON_TYPE.PREFIX , this is the prefix term;
for CompiledAutomaton.AUTOMATON_TYPE.SINGLE this is the singleton term. |
CompiledAutomaton.AUTOMATON_TYPE |
type
|
Constructor Summary | |
---|---|
CompiledAutomaton(Automaton automaton)
|
|
CompiledAutomaton(Automaton automaton,
Boolean finite,
boolean simplify)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
BytesRef |
floor(BytesRef input,
BytesRef output)
Finds largest term accepted by this Automaton, that's <= the provided input term. |
TermsEnum |
getTermsEnum(Terms terms)
|
int |
hashCode()
|
String |
toDot()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final CompiledAutomaton.AUTOMATON_TYPE type
public final BytesRef term
CompiledAutomaton.AUTOMATON_TYPE.PREFIX
, this is the prefix term;
for CompiledAutomaton.AUTOMATON_TYPE.SINGLE
this is the singleton term.
public final ByteRunAutomaton runAutomaton
CompiledAutomaton.AUTOMATON_TYPE.NORMAL
.
public final Transition[][] sortedTransitions
runAutomaton
.
Only valid for CompiledAutomaton.AUTOMATON_TYPE.NORMAL
.
public final BytesRef commonSuffixRef
CompiledAutomaton.AUTOMATON_TYPE.NORMAL
, and only when the
automaton accepts an infinite language.
public final Boolean finite
CompiledAutomaton.AUTOMATON_TYPE.NORMAL
.
Constructor Detail |
---|
public CompiledAutomaton(Automaton automaton)
public CompiledAutomaton(Automaton automaton, Boolean finite, boolean simplify)
Method Detail |
---|
public TermsEnum getTermsEnum(Terms terms) throws IOException
IOException
public BytesRef floor(BytesRef input, BytesRef output)
public String toDot()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |