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