public class SortStrategyBuilder extends SortStrategyAbstractBuilder<SortStrategyBuilder>
Modifier and Type | Class and Description |
---|---|
static class |
SortStrategyBuilder.Nested<R> |
Modifier and Type | Method and Description |
---|---|
SortStrategy |
build() |
static SortStrategyBuilder |
builder() |
static <S> SortStrategyBuilder.Nested<S> |
builder(Consumer<SortStrategy> callback,
S parent) |
T |
withSort(List<SortElement> sorts) |
T |
withSort(SortElement.Type type,
String value,
SortElement.Order order,
Query query) |
T |
withSort(SortElement sort) |
T |
withSortAsc(String value) |
T |
withSortByQuery(Query query,
SortElement.Order order) |
QueryBuilder<T> |
withSortByQueryAsc() |
T |
withSortByQueryAsc(Query query) |
QueryBuilder<T> |
withSortByQueryDesc() |
T |
withSortByQueryDesc(Query query) |
T |
withSortByRelevancy() |
T |
withSortDesc(String value) |
T |
withSortExpressionAsc(String expression) |
T |
withSortExpressionDesc(String expression) |
public static SortStrategyBuilder builder()
public SortStrategy build()
public static <S> SortStrategyBuilder.Nested<S> builder(Consumer<SortStrategy> callback, S parent)
public T withSort(SortElement sort)
public T withSort(List<SortElement> sorts)
public T withSortByRelevancy()
public T withSortAsc(String value)
public T withSortDesc(String value)
public T withSortExpressionAsc(String expression)
public T withSortExpressionDesc(String expression)
public QueryBuilder<T> withSortByQueryDesc()
public T withSortByQueryDesc(Query query)
public QueryBuilder<T> withSortByQueryAsc()
public T withSortByQueryAsc(Query query)
public T withSortByQuery(Query query, SortElement.Order order)
public T withSort(SortElement.Type type, String value, SortElement.Order order, Query query)