K - Key type.V - Value type.public static class PostProcessingArgs.Builder<K,V> extends Object
PostProcessingArgs.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PostProcessingArgs.Builder<K,V> |
apply(Apply<K,V> apply)
Add an APPLY operation to the pipeline.
|
PostProcessingArgs<K,V> |
build()
Build the
PostProcessingArgs. |
PostProcessingArgs.Builder<K,V> |
filter(Filter<K,V> filter)
Add a FILTER operation to the pipeline.
|
PostProcessingArgs.Builder<K,V> |
groupBy(GroupBy<K,V> groupBy)
Add a GROUPBY operation to the pipeline.
|
PostProcessingArgs.Builder<K,V> |
limit(Limit limit)
Add a LIMIT operation to the pipeline.
|
PostProcessingArgs.Builder<K,V> |
load(K... fields)
Request loading of document attributes.
|
PostProcessingArgs.Builder<K,V> |
loadAll()
Load all document attributes.
|
PostProcessingArgs.Builder<K,V> |
sortBy(SortBy<K> sortBy)
Add a SORTBY operation to the pipeline.
|
@SafeVarargs public final PostProcessingArgs.Builder<K,V> load(K... fields)
Note: To load all attributes, use loadAll() instead of passing "*" as a field. Passing "*"
as a field name will result in an IllegalArgumentException.
fields - the field identifiers (must not include "*")IllegalArgumentException - if "*" is passed as a field namepublic PostProcessingArgs.Builder<K,V> loadAll()
Equivalent to using LOAD * in the Redis command. This loads all attributes from the source documents. Use
with caution as this can significantly impact performance when dealing with large documents or many results.
Note: This feature requires Redis OSS 8.6 or later.
public PostProcessingArgs.Builder<K,V> groupBy(GroupBy<K,V> groupBy)
Groups results by one or more properties with optional reducer functions. Only one GROUPBY operation is allowed per pipeline.
groupBy - the GROUPBY operationIllegalStateException - if a GROUPBY operation has already been addedpublic PostProcessingArgs.Builder<K,V> sortBy(SortBy<K> sortBy)
Sorts results by one or more properties. Only one SORTBY operation is allowed per pipeline.
sortBy - the SORTBY operationIllegalStateException - if a SORTBY operation has already been addedpublic PostProcessingArgs.Builder<K,V> limit(Limit limit)
Limits the number of results returned. Only one LIMIT operation is allowed per pipeline.
limit - the LIMIT operationIllegalStateException - if a LIMIT operation has already been addedpublic PostProcessingArgs.Builder<K,V> apply(Apply<K,V> apply)
Applies an expression to create a computed field. Multiple APPLY operations can be added.
apply - the APPLY operationpublic PostProcessingArgs.Builder<K,V> filter(Filter<K,V> filter)
Filters results based on an expression. Only one FILTER operation is allowed per pipeline.
filter - the FILTER operationIllegalStateException - if a FILTER operation has already been addedpublic PostProcessingArgs<K,V> build()
PostProcessingArgs.PostProcessingArgsCopyright © 2026 lettuce.io. All rights reserved.