Package io.milvus.client
Class GetVectorByIdResponse
- java.lang.Object
-
- io.milvus.client.GetVectorByIdResponse
-
public class GetVectorByIdResponse extends Object
Contains the returnedresponseand either afloatVectoror abinaryVectorforgetVectorById. If the id does not exist, both returned vectors will be empty.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()Optional<ByteBuffer>getBinaryVector()List<Float>getFloatVector()ResponsegetResponse()booleanisBinaryVector()booleanisFloatVector()booleanok()
-
-
-
Method Detail
-
getBinaryVector
public Optional<ByteBuffer> getBinaryVector()
- Returns:
- an
Optionalobject which may or may not contain aByteBufferobject - See Also:
Optional
-
isFloatVector
public boolean isFloatVector()
- Returns:
trueif the id corresponds to a float vector
-
isBinaryVector
public boolean isBinaryVector()
- Returns:
trueif the id corresponds to a binary vector
-
exists
public boolean exists()
- Returns:
trueif the id's corresponding vector exists
-
getResponse
public Response getResponse()
-
ok
public boolean ok()
- Returns:
trueif the response status equals SUCCESS
-
-