public class CompiledAutomaton extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CompiledAutomaton.AUTOMATON_TYPE
Automata are compiled into different internal forms for the
most efficient execution depending upon the language they accept.
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
CompiledAutomaton(Automaton automaton) |
CompiledAutomaton(Automaton automaton,
Boolean finite,
boolean simplify) |
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
.public CompiledAutomaton(Automaton automaton)
public TermsEnum getTermsEnum(Terms terms) throws IOException
IOException
public BytesRef floor(BytesRef input, BytesRef output)
public String toDot()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.