Package io.milvus.client
Class SearchResponse
- java.lang.Object
-
- io.milvus.client.SearchResponse
-
public class SearchResponse extends java.lang.Object
Contains the returnedresponse
andqueryResultsList
forsearch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchResponse.QueryResult
Represents a single result of a vector query.
-
Constructor Summary
Constructors Constructor Description SearchResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumQueries()
java.util.List<java.util.List<SearchResponse.QueryResult>>
getQueryResultsList()
Response
getResponse()
java.util.List<java.util.List<java.lang.Float>>
getResultDistancesList()
java.util.List<java.util.List<java.lang.Long>>
getResultIdsList()
long
getTopK()
boolean
ok()
java.lang.String
toString()
-
-
-
Method Detail
-
getNumQueries
public int getNumQueries()
-
getTopK
public long getTopK()
-
getQueryResultsList
public java.util.List<java.util.List<SearchResponse.QueryResult>> getQueryResultsList()
- Returns:
- a
List
ofQueryResult
s. Each innerList
contains the query result of a vector.
-
getResultIdsList
public java.util.List<java.util.List<java.lang.Long>> getResultIdsList()
- Returns:
- a
List
of result ids. Each innerList
contains the result ids of a vector.
-
getResultDistancesList
public java.util.List<java.util.List<java.lang.Float>> getResultDistancesList()
- Returns:
-
getResponse
public Response getResponse()
-
ok
public boolean ok()
- Returns:
true
if the response status equals SUCCESS
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-