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) int
depth
This node's depth, starting from the automaton root.(package private) long
inputCount
(package private) boolean
isFinal
(package private) int
numArcs
(package private) T
output
(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) void
addArc(int label, FSTCompiler.Node target)
(package private) void
clear()
(package private) void
deleteLast(int label, FSTCompiler.Node target)
(package private) T
getLastOutput(int labelToMatch)
boolean
isCompiled()
(package private) void
prependOutput(T outputPrefix)
(package private) void
replaceLast(int labelToMatch, FSTCompiler.Node target, T nextFinalOutput, boolean isFinal)
(package private) void
setLastOutput(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:
isCompiled
in 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)
-
-