Class VectorFieldFunction


  • public abstract class VectorFieldFunction
    extends FunctionValues
    An implementation for retrieving FunctionValues instances for knn vectors fields.
    • Field Detail

      • lastDocID

        int lastDocID
    • Constructor Detail

      • VectorFieldFunction

        protected VectorFieldFunction​(ValueSource valueSource)
    • Method Detail

      • toString

        public java.lang.String toString​(int doc)
                                  throws java.io.IOException
        Specified by:
        toString in class FunctionValues
        Throws:
        java.io.IOException
      • exists

        public boolean exists​(int doc)
                       throws java.io.IOException
        Description copied from class: FunctionValues
        Returns true if there is a value for this document
        Overrides:
        exists in class FunctionValues
        Throws:
        java.io.IOException
      • checkField

        static void checkField​(LeafReader in,
                               java.lang.String field,
                               VectorEncoding expectedEncoding)
        Checks the Vector Encoding of a field
        Throws:
        java.lang.IllegalStateException - if field exists, but was not indexed with vectors.
        java.lang.IllegalStateException - if field has vectors, but using a different encoding