Interface MultiVectorsSource<T>

All Known Subinterfaces:
MultiBFloat16VectorsSource, MultiByteVectorsSource, MultiFloatVectorsSource

public interface MultiVectorsSource<T>
Source for a single document's multi-vector values.

Implementations provide both a contiguous encoded representation via vectorBytes() for bulk/native scoring paths and an iterator view via vectorValues() for scalar fallback paths.

  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.util.BytesRef
    Encoded vector bytes for all vectors in this source, or null if only iterator access is available.
    int
    Encoded byte size per vector.
    int
    Number of vectors available in this source.
    int
    Dimensions per vector in this source.
    Iterator over decoded vectors for scalar scoring paths.
  • Method Details

    • vectorBytes

      org.apache.lucene.util.BytesRef vectorBytes()
      Encoded vector bytes for all vectors in this source, or null if only iterator access is available.
    • vectorCount

      int vectorCount()
      Number of vectors available in this source.
    • vectorDims

      int vectorDims()
      Dimensions per vector in this source.
    • vectorByteSize

      int vectorByteSize()
      Encoded byte size per vector.
    • vectorValues

      Iterator<T> vectorValues()
      Iterator over decoded vectors for scalar scoring paths.