|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.v2.filter.SubsetResultFilter
int startOffset = 0;
int maxResults = 10;
ContentSearch search = new ContentSearch(query, sort, filter, startOffset, maxResults);
@Deprecated public class SubsetResultFilter
A result filter that filters out all but a particular "window" (startOffset from start, count) of results. Depending on the number of results in the hit set being filtered, there may be fewer than count results returned, or even none at all.
Can also be used, with a startOffset of 0, to return the first 'n' results
Field Summary | |
---|---|
static String |
KEY
Deprecated. |
Constructor Summary | |
---|---|
SubsetResultFilter(int maxResults)
Deprecated. Construct a filter that returns at most the first count hits. |
|
SubsetResultFilter(int startOffset,
int maxResults)
Deprecated. Construct a filter with the given start offset and count. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Deprecated. |
String |
getKey()
Deprecated. Gets the unique key that identifies this type of result filter. |
int |
getMaxResults()
Deprecated. Gets the maximum number of results the filter should allow through |
List |
getParameters()
Deprecated. Gets the parameters that configure this result filter. |
int |
getStartOffset()
Deprecated. Gets the offset of the first search result to return |
int |
hashCode()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String KEY
Constructor Detail |
---|
public SubsetResultFilter(int maxResults)
count
hits. This is the
equivalent of new SubsetResultFilter(0, maxResults)
.
maxResults
- the number of hits to returnpublic SubsetResultFilter(int startOffset, int maxResults)
startOffset
- the zero-based offset of the first hit to returnmaxResults
- the maximum number of hits to returnMethod Detail |
---|
public int getStartOffset()
public int getMaxResults()
public String getKey()
ResultFilter
getKey
in interface ResultFilter
ResultFilter.getKey()
public List getParameters()
ResultFilter
getParameters
in interface ResultFilter
ResultFilter.getParameters()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |