Class Builder.UnCompiledNode<T>

  • Enclosing class:
    Builder<T>

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

      • numArcs

        public int numArcs
      • output

        public T output
      • isFinal

        public boolean isFinal
      • inputCount

        public long inputCount
      • depth

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

      • UnCompiledNode

        public UnCompiledNode​(Builder<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

      • isCompiled

        public boolean isCompiled()
      • clear

        public void clear()
      • getLastOutput

        public T getLastOutput​(int labelToMatch)
      • 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

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

        public void prependOutput​(T outputPrefix)