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
per-document results with document key and field values.| Modifier and Type | Class and Description |
|---|---|
static class |
HybridReply.Result<K,V>
Represents a single result entry in an
FT.HYBRID response. |
| Constructor and Description |
|---|
HybridReply()
Creates a new empty HybridReply instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(HybridReply.Result<K,V> result)
Add a new result entry.
|
void |
addWarning(V warning)
Add a warning message.
|
double |
getExecutionTime() |
List<HybridReply.Result<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<HybridReply.Result<K,V>> getResults()
public void addResult(HybridReply.Result<K,V> result)
result - the result 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 © 2025 lettuce.io. All rights reserved.