Class FSTCompiler.UnCompiledNode<T>

  • All Implemented Interfaces:
    FSTCompiler.Node
    Enclosing class:
    FSTCompiler<T>

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

      • numArcs

        int numArcs
      • output

        T output
      • isFinal

        boolean isFinal
      • inputCount

        long inputCount
      • depth

        final int depth
        This node's depth, starting from the automaton root.
    • Constructor Detail

      • 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 Detail

      • clear

        void clear()
      • getLastOutput

        T getLastOutput​(int labelToMatch)
      • replaceLast

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

        void setLastOutput​(int labelToMatch,
                           T newOutput)
      • prependOutput

        void prependOutput​(T outputPrefix)