Class GetVectorByIdResponse


  • public class GetVectorByIdResponse
    extends Object
    Contains the returned response and either a floatVector or a binaryVector for getVectorById. If the id does not exist, both returned vectors will be empty.
    • Method Detail

      • getFloatVector

        public List<Float> getFloatVector()
      • getBinaryVector

        public Optional<ByteBuffer> getBinaryVector()
        Returns:
        an Optional object which may or may not contain a ByteBuffer object
        See Also:
        Optional
      • isFloatVector

        public boolean isFloatVector()
        Returns:
        true if the id corresponds to a float vector
      • isBinaryVector

        public boolean isBinaryVector()
        Returns:
        true if the id corresponds to a binary vector
      • exists

        public boolean exists()
        Returns:
        true if the id's corresponding vector exists
      • getResponse

        public Response getResponse()
      • ok

        public boolean ok()
        Returns:
        true if the response status equals SUCCESS