Package org.apache.lucene.util.fst
Class FSTCompiler.UnCompiledNode<T>
- java.lang.Object
-
- org.apache.lucene.util.fst.FSTCompiler.UnCompiledNode<T>
-
- All Implemented Interfaces:
FSTCompiler.Node
- Enclosing class:
- FSTCompiler<T>
static final class FSTCompiler.UnCompiledNode<T> extends java.lang.Object implements FSTCompiler.Node
Expert: holds a pending (seen but not yet serialized) Node.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) FSTCompiler.Arc<T>[]arcs(package private) intdepthThis node's depth, starting from the automaton root.(package private) longinputCount(package private) booleanisFinal(package private) intnumArcs(package private) Toutput(package private) FSTCompiler<T>owner
-
Constructor Summary
Constructors Constructor Description UnCompiledNode(FSTCompiler<T> owner, int depth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddArc(int label, FSTCompiler.Node target)(package private) voidclear()(package private) voiddeleteLast(int label, FSTCompiler.Node target)(package private) TgetLastOutput(int labelToMatch)booleanisCompiled()(package private) voidprependOutput(T outputPrefix)(package private) voidreplaceLast(int labelToMatch, FSTCompiler.Node target, T nextFinalOutput, boolean isFinal)(package private) voidsetLastOutput(int labelToMatch, T newOutput)
-
-
-
Field Detail
-
owner
final FSTCompiler<T> owner
-
numArcs
int numArcs
-
arcs
FSTCompiler.Arc<T>[] arcs
-
output
T output
-
isFinal
boolean isFinal
-
inputCount
long inputCount
-
depth
final int depth
This node's depth, starting from the automaton root.
-
-
Constructor Detail
-
UnCompiledNode
UnCompiledNode(FSTCompiler<T> owner, int depth)
- Parameters:
depth- The node's depth starting from the automaton root. Needed for LUCENE-2934 (node expansion based on conditions other than the fanout size).
-
-
Method Detail
-
isCompiled
public boolean isCompiled()
- Specified by:
isCompiledin interfaceFSTCompiler.Node
-
clear
void clear()
-
getLastOutput
T getLastOutput(int labelToMatch)
-
addArc
void addArc(int label, FSTCompiler.Node target)
-
replaceLast
void replaceLast(int labelToMatch, FSTCompiler.Node target, T nextFinalOutput, boolean isFinal)
-
deleteLast
void deleteLast(int label, FSTCompiler.Node target)
-
setLastOutput
void setLastOutput(int labelToMatch, T newOutput)
-
prependOutput
void prependOutput(T outputPrefix)
-
-