T
- the type of the individual resultspublic interface ResultsAggregator<T>
Modifier and Type | Method and Description |
---|---|
void |
add(T result)
Include the given result in the total, with earlier results taking precedence.
|
void |
addAll(Iterable<? extends T> results)
Include all the given results in the total, with earlier results taking precedence.
|
List<T> |
constrainResults()
Return the subset of results required by the initial query's paging parameters.
|
List<T> |
constrainResults(com.google.common.base.Predicate<? super T> criteria)
Return the subset of results required by the initial query's paging parameters which also satisfy the provided
criteria.
|
int |
getRequiredResultCount()
Return the total number of results we need to fetch for this query.
|
int |
size() |
void add(T result)
result
- a single resultvoid addAll(Iterable<? extends T> results)
results
- an iterable collection of resultsint size()
List<T> constrainResults()
List<T> constrainResults(com.google.common.base.Predicate<? super T> criteria)
criteria
- to be used when creating the subset of results to be returned.int getRequiredResultCount()
start + maxResults
from the original query, or EntityQuery.ALL_RESULTS
if that was the original maximum. This number
must be fetched from each underlying directory for correct aggregation.Copyright © 2020 Atlassian. All rights reserved.