K - the key typepublic static class SortByArgs.Builder<K> extends Object
SortByArgs.
As a final step the build() method needs to be executed to create the final SortByArgs
instance.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SortByArgs.Builder<K> |
attribute(K attribute)
Add an attribute to sort by.
|
SortByArgs<K> |
build()
Build the
SortByArgs. |
SortByArgs.Builder<K> |
descending()
Sort in descending order.
|
SortByArgs.Builder<K> |
withCount()
Include the accurate counts for the query results with sorting.
|
public SortByArgs.Builder<K> attribute(K attribute)
attribute - the attribute to sort bySortByArgs.Builder for the purpose of method chainingpublic SortByArgs.Builder<K> descending()
SortByArgs.Builder for the purpose of method chainingpublic SortByArgs.Builder<K> withCount()
SortByArgs.Builder for the purpose of method chainingpublic SortByArgs<K> build()
SortByArgs.SortByArgsCopyright © 2025 lettuce.io. All rights reserved.