mirror of https://github.com/apache/lucene.git
adding a getSort() method, as suggested by bug 30242, but unlike in the bug report it's called getSort(), not getSortFields(), as the set method is also called setSort(...)
PR: 30242 git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150489 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce2cd2f194
commit
4288bbe643
|
@ -203,6 +203,14 @@ implements Serializable {
|
||||||
this.fields = fields;
|
this.fields = fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Representation of the sort criteria.
|
||||||
|
* @return Array of SortField objects used in this sort criteria
|
||||||
|
*/
|
||||||
|
public SortField[] getSort() {
|
||||||
|
return fields;
|
||||||
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue