Module org.apache.lucene.core
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 intThis node's depth, starting from the automaton root.(package private) boolean(package private) int(package private) T(package private) final FSTCompiler<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddArc(int label, FSTCompiler.Node target) (package private) voidclear()(package private) TgetLastOutput(int labelToMatch) boolean(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 Details
-
owner
-
numArcs
int numArcs -
arcs
FSTCompiler.Arc<T>[] arcs -
output
T output -
isFinal
boolean isFinal -
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:
isCompiledin interfaceFSTCompiler.Node
-
clear
void clear() -
getLastOutput
-
addArc
-
replaceLast
-
setLastOutput
-
prependOutput
-