Interface QueryBuilder.Sorting<T>

Type Parameters:
T - Type of value
All Superinterfaces:
QueryBuilder<T>
All Known Subinterfaces:
QueryBuilder.Aggregating<T>, QueryBuilder.Filtering<T>, QueryBuilder.FilteringCriteria<T>, QueryBuilder.Grouping<T>, QueryBuilder.Paging<T>, QueryBuilder.Selecting<T>
All Known Implementing Classes:
GenericQuery.GenericBuilder, Query.Builder, TypedValueQuery.TypedValueBuilder
Enclosing interface:
QueryBuilder<T>

public static interface QueryBuilder.Sorting<T> extends QueryBuilder<T>

This interface is available as a preview of functionality that will be added to the supported public API in a future release. While it is in the preview phase, it is subject to change or removal without deprecation or notice. Although notice of change is not guaranteed, we will try to let developers know of major changes through announcements in release notes.

Restricts path after Sorting.

  • Method Details

    • sortBy

      QueryBuilder<T> sortBy(SortInfo... sortInfos)
      Defines the query's sorting information
      Parameters:
      sortInfos - the array of SortInfo which the query is going to use to determine the order of the result data.
      Returns:
      the QueryBuilder<T> which can produce a Query<T> instance.
    • sortBy

      QueryBuilder<T> sortBy(List<SortInfo> sortInfos)
      Defines the query's sorting information
      Parameters:
      sortInfos - the list of SortInfo which the query is going to use to determine the order of the result data.
      Returns:
      the QueryBuilder<T> which can produce a Query<T> instance.
    • sortBy

      QueryBuilder<T> sortBy(ReadOnlySortInfo... sortInfos)
      Defines the query's sorting information
      Parameters:
      sortInfos - the array of ReadOnlySortInfo which the query is going to use to determine the order of the result data.
      Returns:
      the QueryBuilder<T> which can produce a Query<T> instance.
    • sortBy

      QueryBuilder<T> sortBy(com.google.common.collect.ImmutableList<ReadOnlySortInfo> sortInfos)
      Defines the query's sorting information
      Parameters:
      sortInfos - the list of ReadOnlySortInfo which the query is going to use to determine the order of the result data.
      Returns:
      the QueryBuilder<T> which can produce a Query<T> instance.