Class SortParams

All Implemented Interfaces:
Serializable, Cloneable, Iterable<SortField>, Collection<SortField>, List<SortField>, RandomAccess

public class SortParams extends ArrayList<SortField>
Defines a field name and order used to sort query results.

### Example ###

 
 FilterParams filter = FilterParams.fromTuples("type", "Type1");
 PagingParams paging = new PagingParams(0, 100);
 SortingParams sorting = new SortingParams(new SortField("create_time", true));

 myDataClient.getDataByFilter(filter, paging, sorting);
 
 
See Also:
  • Constructor Details

    • SortParams

      public SortParams()
    • SortParams

      public SortParams(Iterable<SortField> fields)
      Creates a new instance and initializes it with specified sort fields.
      Parameters:
      fields - a list of fields to sort by.