K - Key type.V - Value type.@Experimental public class PostProcessingArgs<K,V> extends Object
The builder provides dedicated methods for each operation type with validation:
PostProcessingArgs.Builder.groupBy(GroupBy) - Only one GROUPBY allowedPostProcessingArgs.Builder.sortBy(SortBy) - Only one SORTBY allowedPostProcessingArgs.Builder.limit(Limit) - Only one LIMIT allowedPostProcessingArgs.Builder.apply(Apply) - Multiple APPLY operations allowedPostProcessingArgs.Builder.filter(Filter) - Only one FILTER allowed
{
@code
PostProcessingArgs args = PostProcessingArgs. builder().load("@price", "@category")
.groupBy(GroupBy.of("@category").reduce(Reducers.count().as("total")))
.apply(Apply.of("@price * 0.9", "discounted_price")).sortBy(SortBy.of("@discounted_price", SortDirection.DESC))
.filter(Filter.of("@discounted_price > 100")).limit(Limit.of(0, 10)).build();
}
| Modifier and Type | Class and Description |
|---|---|
static class |
PostProcessingArgs.Builder<K,V>
Builder for
PostProcessingArgs. |
| Constructor and Description |
|---|
PostProcessingArgs() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(CommandArgs<K,V> args)
Build the post-processing command arguments.
|
static <K,V> PostProcessingArgs.Builder<K,V> |
builder() |
public static <K,V> PostProcessingArgs.Builder<K,V> builder()
PostProcessingArgs.Builder for PostProcessingArgs.public void build(CommandArgs<K,V> args)
LOAD is built first (if specified), then post-processing operations are built in user-specified order.
args - the CommandArgs to append toCopyright © 2026 lettuce.io. All rights reserved.