Class Util.FSTPath<T>

  • Enclosing class:
    Util

    public static class Util.FSTPath<T>
    extends java.lang.Object
    Represents a path in TopNSearcher.
    • Field Detail

      • arc

        public FST.Arc<T> arc
        Holds the last arc appended to this path
      • output

        public T output
        Holds cost plus any usage-specific output:
      • boost

        public final float boost
      • context

        public final java.lang.CharSequence context
      • payload

        public int payload
    • Constructor Detail

      • FSTPath

        FSTPath​(T output,
                FST.Arc<T> arc,
                IntsRefBuilder input,
                float boost,
                java.lang.CharSequence context,
                int payload)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object