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 int
This node's depth, starting from the automaton root.long
boolean
int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArc
(int label, org.apache.lucene.util.fst.Builder.Node target) void
clear()
void
deleteLast
(int label, org.apache.lucene.util.fst.Builder.Node target) getLastOutput
(int labelToMatch) boolean
void
prependOutput
(T outputPrefix) void
replaceLast
(int labelToMatch, org.apache.lucene.util.fst.Builder.Node target, T nextFinalOutput, boolean isFinal) void
setLastOutput
(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
-