Package com.atlassian.query.order
Class SearchSort
java.lang.Object
com.atlassian.query.order.SearchSort
- All Implemented Interfaces:
 Serializable
A simple data bean representing a portion of the sort order (related to a clause) for a search query.
 
 Together via the OrderBy these will determine the sorting order of the results
 returned by a Query.
- Since:
 - 4.0
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionSearchSort(SearchSort copy) SearchSort(String field) SearchSort(String field, SortOrder order) Used to construct a search sort for a field with a direction.SearchSort(String field, io.atlassian.fugue.Option<Property> property, SortOrder order) Used to construct a search sort for a field with a direction and optional propertySearchSort(String order, String field) Deprecated. - 
Method Summary
 
- 
Constructor Details
- 
SearchSort
 - 
SearchSort
Used to construct a search sort for a field with a direction.- Parameters:
 field- to sort by.order- direction to sort by, if null the default order for the field will be used.
 - 
SearchSort
Used to construct a search sort for a field with a direction and optional property- Parameters:
 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.
 - 
SearchSort
Deprecated.useSearchSort(String, SortOrder)instead.Used to construct a search sort for a field with a direction.NOTE: it would be better if the order of these parameters was reversed but we are leaving it for backward compatibility.
- Parameters:
 order- the order of the sort, if null, will be the default order for the system, if not one ofSortOrder.ASCorSortOrder.DESCit will default toSortOrder.ASC.field- to sort by.
 - 
SearchSort
 
 - 
 - 
Method Details
 
SearchSort(String, SortOrder)instead.