| 程序包 | 说明 |
|---|---|
| io.github.dengliming.redismodule.redisearch.aggregate |
| 限定符和类型 | 方法和说明 |
|---|---|
Reducer |
Reducer.as(String alias) |
static Reducer |
Reducers.avg(String field)
Return the average value of a numeric property.
|
static Reducer |
Reducers.count()
Count the number of records in each group
|
static Reducer |
Reducers.countDistinct(String field)
Count the number of distinct values for property
|
static Reducer |
Reducers.countDistinctish(String field)
Same as COUNT_DISTINCT - but provide an approximation instead of an exact count
|
static Reducer |
Reducers.firstValue(String field)
Return the first or top value of a given property in the group.
|
static Reducer |
Reducers.firstValue(String field,
String by) |
static Reducer |
Reducers.firstValue(String field,
String by,
org.redisson.api.SortOrder order) |
static Reducer |
Reducers.max(String field)
Return the maximal value of a property, whether it is a string, number or NULL
|
static Reducer |
Reducers.min(String field)
Return the minimal value of a property, whether it is a string, number or NULL.
|
static Reducer |
Reducers.quantile(String field,
double quantile)
Return the value of a numeric property at a given quantile of the results.
|
static Reducer |
Reducers.randomSample(String field,
int sampleSize)
Perform a reservoir sampling of the group elements with a given size, and return an array of the sampled items with an even distribution.
|
static Reducer |
Reducers.stdDev(String field)
Return the standard deviation of a numeric property in the group.
|
static Reducer |
Reducers.sum(String field)
Return the sum of all numeric values of a given property in a group.
|
static Reducer |
Reducers.toList(String field)
Merge all distinct values of a given property into a single array.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Group |
Group.reducers(Reducer... reducers) |
Copyright © 2024. All rights reserved.