public static class PostProcessingArgs.Builder extends Object
PostProcessingArgs.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PostProcessingArgs.Builder |
apply(Apply apply)
Add an APPLY operation to the pipeline.
|
PostProcessingArgs |
build()
Build the
PostProcessingArgs. |
PostProcessingArgs.Builder |
filter(Filter filter)
Add a FILTER operation to the pipeline.
|
PostProcessingArgs.Builder |
groupBy(GroupBy groupBy)
Add a GROUPBY operation to the pipeline.
|
PostProcessingArgs.Builder |
limit(Limit limit)
Add a LIMIT operation to the pipeline.
|
PostProcessingArgs.Builder |
load(String... fields)
Request loading of document attributes.
|
PostProcessingArgs.Builder |
loadAll()
Load all document attributes.
|
PostProcessingArgs.Builder |
sortBy(SortBy sortBy)
Add a SORTBY operation to the pipeline.
|
@SafeVarargs public final PostProcessingArgs.Builder load(String... 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 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 groupBy(GroupBy 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 sortBy(SortBy 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 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 apply(Apply apply)
Applies an expression to create a computed field. Multiple APPLY operations can be added.
apply - the APPLY operationpublic PostProcessingArgs.Builder filter(Filter 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 build()
PostProcessingArgs.PostProcessingArgsCopyright © 2026 lettuce.io. All rights reserved.