public class ResultsAggregators extends Object
ResultsAggregator.| Constructor and Description |
|---|
ResultsAggregators() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
constrainResults(Query<T> query,
Collection<T> values) |
static <T extends User> |
forUsers(int startIndex,
int maxResults)
Creates an aggregator that will identify and sort users by lower-cased name.
|
static <T,K extends Comparable<? super K>> |
with(Function<? super T,? extends K> maker,
int startIndex,
int maxResults) |
static <T,K extends Comparable<? super K>> |
with(Function<? super T,? extends K> maker,
int startIndex,
int maxResults,
boolean merge) |
static <T,K extends Comparable<? super K>> |
with(Function<? super T,? extends K> maker,
Query<? extends T> query)
Creates an instance that will use the provided function to uniquely identify results and that will
expect as many total results as indicated by the query.
|
static <T> ResultsAggregator<T> |
with(Query<T> query)
Creates an instance that will sort, de-duplicate and constrain results according to the
query. |
static <T> ResultsAggregator<T> |
with(Query<T> query,
boolean merge) |
public static <T,K extends Comparable<? super K>> ResultsAggregator<T> with(Function<? super T,? extends K> maker, Query<? extends T> query)
maker - a key-making functionquery - an indication of how many results are requiredpublic static <T,K extends Comparable<? super K>> ResultsAggregator<T> with(Function<? super T,? extends K> maker, int startIndex, int maxResults)
public static <T,K extends Comparable<? super K>> ResultsAggregator<T> with(Function<? super T,? extends K> maker, int startIndex, int maxResults, boolean merge)
public static <T extends User> ResultsAggregator<T> forUsers(int startIndex, int maxResults)
startIndex - defines how many results should be skippedmaxResults - maximum number of results to be returnedpublic static <T> ResultsAggregator<T> with(Query<T> query)
query.public static <T> ResultsAggregator<T> with(Query<T> query, boolean merge)
public static <T> List<T> constrainResults(Query<T> query, Collection<T> values)
Copyright © 2023 Atlassian. All rights reserved.