Interface RandomAccessVectorValues

    • Method Detail

      • size

        int size()
        Return the number of vector values
      • dimension

        int dimension()
        Return the dimension of the returned vector values
      • getSlice

        default IndexInput getSlice()
        Returns a slice of the underlying IndexInput that contains the vector values if available
      • getVectorByteLength

        int getVectorByteLength()
        Returns the byte length of the vector values.
      • ordToDoc

        default int ordToDoc​(int ord)
        Translates vector ordinal to the correct document ID. By default, this is an identity function.
        Parameters:
        ord - the vector ordinal
        Returns:
        the document Id for that vector ordinal
      • getAcceptOrds

        default Bits getAcceptOrds​(Bits acceptDocs)
        Returns the Bits representing live documents. By default, this is an identity function.
        Parameters:
        acceptDocs - the accept docs
        Returns:
        the accept docs