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>
Expert: holds a pending (seen but not yet serialized) Node.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) FSTCompiler.Arc<T>[]
(package private) final int
This node's depth, starting from the automaton root.(package private) long
(package private) boolean
(package private) int
(package private) T
(package private) final FSTCompiler<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(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
(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 Details
-
owner
-
numArcs
int numArcs -
arcs
FSTCompiler.Arc<T>[] arcs -
output
T output -
isFinal
boolean isFinal -
inputCount
long inputCount -
depth
final int depthThis node's depth, starting from the automaton root.
-
-
Constructor Details
-
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 Details
-
isCompiled
public boolean isCompiled()- Specified by:
isCompiled
in interfaceFSTCompiler.Node
-
clear
void clear() -
getLastOutput
-
addArc
-
replaceLast
-
deleteLast
-
setLastOutput
-
prependOutput
-