Class FST<T>

  • All Implemented Interfaces:
    Accountable

    public final class FST<T>
    extends Object
    implements Accountable
    Represents an finite state machine (FST), using a compact byte[] format.

    The format is similar to what's used by Morfologik (https://github.com/morfologik/morfologik-stemming).

    See the package documentation for some simple examples.

    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Field Detail

      • BIT_ARC_HAS_OUTPUT

        public static final int BIT_ARC_HAS_OUTPUT
        This flag is set if the arc has an output.
        See Also:
        Constant Field Values
      • ARCS_FOR_BINARY_SEARCH

        public static final byte ARCS_FOR_BINARY_SEARCH
        Value of the arc flags to declare a node with fixed length (sparse) arcs designed for binary search.
        See Also:
        Constant Field Values
      • VERSION_START

        public static final int VERSION_START
        First supported version, this is the version that was used when releasing Lucene 7.0.
        See Also:
        Constant Field Values
      • VERSION_CONTINUOUS_ARCS

        public static final int VERSION_CONTINUOUS_ARCS
        Version that started storing continuous arcs.
        See Also:
        Constant Field Values
      • VERSION_CURRENT

        public static final int VERSION_CURRENT
        Current version.
        See Also:
        Constant Field Values
      • VERSION_90

        public static final int VERSION_90
        Version that was used when releasing Lucene 9.0.
        See Also:
        Constant Field Values
      • END_LABEL

        public static final int END_LABEL
        If arc has this label then that arc is final/accepted
        See Also:
        Constant Field Values
      • outputs

        public final Outputs<T> outputs