public class SortSpec extends Object
Constructor and Description |
---|
SortSpec(Sort sort,
int num) |
SortSpec(Sort sort,
int offset,
int num) |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Gets the number of documents to return after sorting.
|
int |
getOffset()
Offset into the list of results.
|
Sort |
getSort()
Gets the Lucene Sort object, or null for the default sort
by score descending.
|
boolean |
includesScore() |
static boolean |
includesScore(Sort sort) |
void |
setSort(Sort s) |
String |
toString() |
public SortSpec(Sort sort, int num)
public SortSpec(Sort sort, int offset, int num)
public void setSort(Sort s)
public static boolean includesScore(Sort sort)
public boolean includesScore()
public Sort getSort()
public int getOffset()
public int getCount()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.