public class QuerySplitter extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
QuerySplitter.Searcher<T,E extends Exception> |
Constructor and Description |
---|
QuerySplitter() |
Modifier and Type | Method and Description |
---|---|
static <T,E extends Exception> |
batchConditionsIfNeeded(EntityQuery<T> query,
QuerySplitter.Searcher<T,E> searcher,
int maxRestrictionsPerQuery)
Splits the query if needed, executes it, aggregates and returns results.
|
public static <T,E extends Exception> List<T> batchConditionsIfNeeded(EntityQuery<T> query, QuerySplitter.Searcher<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 queryquery
OperationFailedException
- rethrows exception from searcher
E extends Exception
Copyright © 2021 Atlassian. All rights reserved.