Class FST<T>

java.lang.Object
org.apache.lucene.util.fst.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 Details

    • BIT_ARC_HAS_OUTPUT

      public static final int BIT_ARC_HAS_OUTPUT
      This flag is set if the arc has an output.
      See Also:
    • 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:
    • VERSION_CONTINUOUS_ARCS

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

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

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

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

      public final Outputs<T> outputs
  • Constructor Details

  • Method Details