Class KnnVectorsFormat

java.lang.Object
org.apache.lucene.codecs.KnnVectorsFormat
All Implemented Interfaces:
NamedSPILoader.NamedSPI
Direct Known Subclasses:
Lucene99HnswScalarQuantizedVectorsFormat, Lucene99HnswVectorsFormat, PerFieldKnnVectorsFormat

public abstract class KnnVectorsFormat extends Object implements NamedSPILoader.NamedSPI
Encodes/decodes per-document vector and any associated indexing structures required to support nearest-neighbor search
  • Field Details

    • DEFAULT_MAX_DIMENSIONS

      public static final int DEFAULT_MAX_DIMENSIONS
      The maximum number of vector dimensions
      See Also:
    • EMPTY

      public static final KnnVectorsFormat EMPTY
      EMPTY throws an exception when written. It acts as a sentinel indicating a Codec that does not support vectors.
  • Constructor Details

    • KnnVectorsFormat

      protected KnnVectorsFormat(String name)
      Sole constructor
  • Method Details