Class FSTCompiler.UnCompiledNode<T>

java.lang.Object
org.apache.lucene.util.fst.FSTCompiler.UnCompiledNode<T>
All Implemented Interfaces:
FSTCompiler.Node
Enclosing class:
FSTCompiler<T>

static final class FSTCompiler.UnCompiledNode<T> extends Object implements FSTCompiler.Node
Expert: holds a pending (seen but not yet serialized) Node.
  • Field Details

    • owner

      final FSTCompiler<T> owner
    • numArcs

      int numArcs
    • arcs

    • output

      T output
    • isFinal

      boolean isFinal
    • depth

      final int depth
      This 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 interface FSTCompiler.Node
    • clear

      void clear()
    • getLastOutput

      T getLastOutput(int labelToMatch)
    • addArc

      void addArc(int label, FSTCompiler.Node target)
    • replaceLast

      void replaceLast(int labelToMatch, FSTCompiler.Node target, T nextFinalOutput, boolean isFinal)
    • setLastOutput

      void setLastOutput(int labelToMatch, T newOutput)
    • prependOutput

      void prependOutput(T outputPrefix)