|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.search.SortSpec
public class SortSpec
SortSpec encapsulates a Lucene Sort and a count of the number of documents to return.
| Constructor Summary | |
|---|---|
SortSpec(Sort sort,
int num)
|
|
SortSpec(Sort sort,
int offset,
int num)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SortSpec(Sort sort,
int num)
public SortSpec(Sort sort,
int offset,
int num)
| Method Detail |
|---|
public void setSort(Sort s)
public static boolean includesScore(Sort sort)
public boolean includesScore()
public Sort getSort()
public int getOffset()
public int getCount()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||