We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7d40fe commit 9b15f15Copy full SHA for 9b15f15
src/main/java/redis/clients/jedis/search/aggr/AggregationResult.java
@@ -65,6 +65,14 @@ public List<String> getWarnings() {
65
return warnings;
66
}
67
68
+ /**
69
+ * Tests if this aggregation result is empty.
70
+ * @return true if there are no warnings and no rows, false otherwise
71
+ */
72
+ public boolean isEmpty() {
73
+ return (warnings == null || warnings.isEmpty()) && (results == null || results.isEmpty());
74
+ }
75
+
76
public static final Builder<AggregationResult> SEARCH_AGGREGATION_RESULT = new Builder<AggregationResult>() {
77
78
private static final String TOTAL_RESULTS_STR = "total_results";
0 commit comments