public class CompiledAutomaton
extends java.lang.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.
|
java.lang.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,
java.lang.Boolean finite,
boolean simplify) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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() |
java.lang.String |
toDot() |
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 java.lang.Boolean finite
CompiledAutomaton.AUTOMATON_TYPE.NORMAL
.public CompiledAutomaton(Automaton automaton)
public CompiledAutomaton(Automaton automaton, java.lang.Boolean finite, boolean simplify)
public TermsEnum getTermsEnum(Terms terms) throws java.io.IOException
java.io.IOException
public BytesRef floor(BytesRef input, BytesRef output)
public java.lang.String toDot()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 - 2019 Adobe. All Rights Reserved