int startOffset = 0;
int maxResults = 10;
ContentSearch search = new ContentSearch(query, sort, filter, startOffset, maxResults);
@Deprecated public class SubsetResultFilter extends Object implements ResultFilter
Can also be used, with a startOffset of 0, to return the first 'n' results
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String KEY
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 returnpublic 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()
Copyright © 2003–2020 Atlassian. All rights reserved.