K - Key type.V - Value type.@Experimental public class HybridReply<K,V> extends Object
FT.HYBRID command. Contains total result count, execution time, warnings, and a list of
result field maps.
Each result is a Map of field names to values. The document key is available under the reserved field name
__key when returning individual documents. Score information (text score, vector distance, combined score) is
included when using YIELD_SCORE_AS in the query.
| Constructor and Description |
|---|
HybridReply()
Creates a new empty HybridReply instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(Map<K,V> result)
Add a new result entry.
|
void |
addWarning(V warning)
Add a warning message.
|
double |
getExecutionTime() |
List<Map<K,V>> |
getResults() |
long |
getTotalResults() |
List<V> |
getWarnings() |
boolean |
isEmpty() |
void |
setExecutionTime(double executionTime)
Set the execution time reported by the server.
|
void |
setTotalResults(long totalResults)
Set the total number of matching documents.
|
int |
size() |
public long getTotalResults()
public void setTotalResults(long totalResults)
totalResults - the total number of resultspublic double getExecutionTime()
0.0 if not available)public void setExecutionTime(double executionTime)
executionTime - execution time in secondspublic List<Map<K,V>> getResults()
public void addResult(Map<K,V> result)
result - the result map to addpublic List<V> getWarnings()
public void addWarning(V warning)
warning - the warning to addpublic int size()
public boolean isEmpty()
true if no results were returnedCopyright © 2026 lettuce.io. All rights reserved.