public class SearchSort extends Object implements Serializable
OrderBy
these will determine the sorting order of the results
returned by a Query
.Constructor and Description |
---|
SearchSort(SearchSort copy) |
SearchSort(String field) |
SearchSort(String field,
com.atlassian.fugue.Option<Property> property,
SortOrder order)
Used to construct a search sort for a field with a direction and optional property
|
SearchSort(String field,
SortOrder order)
Used to construct a search sort for a field with a direction.
|
SearchSort(String order,
String field)
Deprecated.
use
SearchSort(String, SortOrder) instead. |
public SearchSort(String field)
public SearchSort(String field, SortOrder order)
field
- to sort by.order
- direction to sort by, if null the default order for the field will be used.public SearchSort(String field, com.atlassian.fugue.Option<Property> property, SortOrder order)
field
- to sort by.property
- property associated with sort filed this should be taken into consideration when constructing sort fieldorder
- direction to sort by, if null the default order for the field will be used.public SearchSort(String order, String field)
SearchSort(String, SortOrder)
instead.order
- the order of the sort, if null, will be the default order for the system, if not one of
SortOrder.ASC
or SortOrder.DESC
it will
default to SortOrder.ASC
.field
- to sort by.public SearchSort(SearchSort copy)
Copyright © 2002-2015 Atlassian. All Rights Reserved.