Package org.apache.lucene.util.fst
Class Builder.UnCompiledNode<T>
java.lang.Object
org.apache.lucene.util.fst.Builder.UnCompiledNode<T>
- All Implemented Interfaces:
Builder.Node
Expert: holds a pending (seen but not yet serialized) Node.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArc(int label, Builder.Node target) voidclear()voiddeleteLast(int label, Builder.Node target) getLastOutput(int labelToMatch) booleanvoidprependOutput(T outputPrefix) voidreplaceLast(int labelToMatch, Builder.Node target, T nextFinalOutput, boolean isFinal) voidsetLastOutput(int labelToMatch, T newOutput)
-
Field Details
-
owner
-
numArcs
public int numArcs -
arcs
-
output
-
isFinal
public boolean isFinal -
inputCount
public long inputCount -
depth
public final int depthThis node's depth, starting from the automaton root.
-
-
Constructor Details
-
UnCompiledNode
- 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 interfaceBuilder.Node
-
clear
public void clear() -
getLastOutput
-
addArc
-
replaceLast
-
deleteLast
-
setLastOutput
-
prependOutput
-