public static class SortByArgs.Builder 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 |
attribute(String attribute)
Add an attribute to sort by.
|
SortByArgs |
build()
Build the
SortByArgs. |
SortByArgs.Builder |
descending()
Sort in descending order.
|
SortByArgs.Builder |
withCount()
Include the accurate counts for the query results with sorting.
|
public SortByArgs.Builder attribute(String attribute)
attribute - the attribute to sort bySortByArgs.Builder for the purpose of method chainingpublic SortByArgs.Builder descending()
SortByArgs.Builder for the purpose of method chainingpublic SortByArgs.Builder withCount()
SortByArgs.Builder for the purpose of method chainingpublic SortByArgs build()
SortByArgs.SortByArgsCopyright © 2026 lettuce.io. All rights reserved.