public class QuerySplitter extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
QuerySplitter.EntitySearcher<T,E extends Exception> |
static interface |
QuerySplitter.MembershipSearcher<T,E extends Exception> |
static interface |
QuerySplitter.Searcher<T,Q extends Query<T>,E extends Exception> |
| Constructor and Description |
|---|
QuerySplitter() |
| Modifier and Type | Method and Description |
|---|---|
static <T,E extends Exception> |
batchConditionsIfNeeded(EntityQuery<T> query,
QuerySplitter.EntitySearcher<T,E> searcher,
int maxRestrictionsPerQuery)
Splits the query if needed, executes it, aggregates and returns results.
|
static <T,E extends Exception> |
batchNamesToMatchIfNeeded(MembershipQuery<T> query,
QuerySplitter.MembershipSearcher<T,E> searcher,
int maxBatchSize)
Splits the query if needed, executes it, aggregates and returns results.
|
public static <T,E extends Exception> List<T> batchConditionsIfNeeded(EntityQuery<T> query, QuerySplitter.EntitySearcher<T,E> searcher, int maxRestrictionsPerQuery) throws E extends Exception
maxRestrictionsPerQuery. Only top level condition split is supported.T - result typequery - original query to be executedsearcher - query results providermaxRestrictionsPerQuery - maximum number of restrictions allowed in the single queryqueryOperationFailedException - rethrows exception from searcherE extends Exceptionpublic static <T,E extends Exception> List<T> batchNamesToMatchIfNeeded(MembershipQuery<T> query, QuerySplitter.MembershipSearcher<T,E> searcher, int maxBatchSize) throws E extends Exception
MembershipQuery.getEntityNamesToMatch() is higher than maxBatchSize.T - result typequery - original query to be executedsearcher - query results providermaxBatchSize - maximum number of MembershipQuery.getEntityNamesToMatch() allowed in the single queryqueryOperationFailedException - rethrows exception from searcherE extends ExceptionCopyright © 2023 Atlassian. All rights reserved.