K - Key type.V - Value type.public static class PostProcessingArgs.Reducer<K,V> extends Object
PostProcessingArgs.ReduceFunction| Modifier and Type | Method and Description |
|---|---|
PostProcessingArgs.Reducer<K,V> |
as(K alias)
Set an alias for the reducer result.
|
void |
build(CommandArgs<K,V> args)
Build the reducer into command args.
|
static <K,V> PostProcessingArgs.Reducer<K,V> |
of(PostProcessingArgs.ReduceFunction function,
V... args)
Static factory method to create a Reducer with a function and optional arguments.
|
@SafeVarargs public static <K,V> PostProcessingArgs.Reducer<K,V> of(PostProcessingArgs.ReduceFunction function, V... args)
K - Key typeV - Value typefunction - the reducer functionargs - the arguments to the reducer function (optional, can be empty for COUNT)public PostProcessingArgs.Reducer<K,V> as(K alias)
alias - the alias namepublic void build(CommandArgs<K,V> args)
args - the command args to build intoCopyright © 2025 lettuce.io. All rights reserved.