K - Key type.V - Value type.@Experimental public class PostProcessingArgs<K,V> extends Object
{
@code
PostProcessingArgs args = PostProcessingArgs. builder().load("@price", "@category")
.addOperation(GroupBy.of("@category").reduce(Reducer.of(ReduceFunction.COUNT).as("total")))
.addOperation(Apply.of("@price * 0.9", "discounted_price"))
.addOperation(SortBy.of("@discounted_price", SortDirection.DESC))
.addOperation(Filter.of("@discounted_price > 100")).build();
}
PostProcessingArgs.GroupBy,
PostProcessingArgs.Apply,
PostProcessingArgs.SortBy,
PostProcessingArgs.Filter,
PostProcessingArgs.Limit| Modifier and Type | Class and Description |
|---|---|
static class |
PostProcessingArgs.Apply<K,V>
APPLY post-processing operation.
|
static class |
PostProcessingArgs.Builder<K,V>
Builder for
PostProcessingArgs. |
static class |
PostProcessingArgs.Filter<K,V>
FILTER post-processing operation.
|
static class |
PostProcessingArgs.GroupBy<K,V>
GROUPBY post-processing operation.
|
static class |
PostProcessingArgs.Limit<K,V>
LIMIT post-processing operation.
|
static interface |
PostProcessingArgs.PostProcessingOperation<K,V>
Interface for post-processing operations applied in user-specified order.
|
static class |
PostProcessingArgs.ReduceFunction
Enumeration of REDUCE functions for GROUPBY operations.
|
static class |
PostProcessingArgs.Reducer<K,V>
REDUCE function for GROUPBY operations.
|
static class |
PostProcessingArgs.SortBy<K>
SORTBY post-processing operation.
|
static class |
PostProcessingArgs.SortDirection
Sort direction enumeration for SORTBY operations.
|
static class |
PostProcessingArgs.SortProperty<K>
Represents a sort property with direction for SORTBY operations.
|
| 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, then post-processing operations are built in user-specified order.
args - the CommandArgs to append toCopyright © 2025 lettuce.io. All rights reserved.