public class FilterIterators extends Object
| Constructor and Description |
|---|
FilterIterators() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkMemoryLimit(long count,
QueryEngineSettings settings)
Verify the number of in-memory nodes is below the limit.
|
static void |
checkReadLimit(long count,
QueryEngineSettings settings)
Verify the number of node read operations is below the limit.
|
static <K> Iterator<K> |
newCombinedFilter(Iterator<K> it,
boolean distinct,
long limit,
long offset,
Comparator<K> orderBy,
QueryEngineSettings settings) |
static <K> org.apache.jackrabbit.oak.query.FilterIterators.DistinctIterator<K> |
newDistinct(Iterator<K> it,
QueryEngineSettings settings) |
static <K> Iterator<K> |
newLimit(Iterator<K> it,
long limit) |
static <K> Iterator<K> |
newOffset(Iterator<K> it,
long offset) |
static <K> Iterator<K> |
newSort(Iterator<K> it,
Comparator<K> orderBy,
int max,
QueryEngineSettings settings) |
public static void checkMemoryLimit(long count,
QueryEngineSettings settings)
count - the number of nodessettings - the query engine settingsUnsupportedOperationException - if the limit was exceededpublic static void checkReadLimit(long count,
QueryEngineSettings settings)
count - the number of read operationssettings - the query engine settingsUnsupportedOperationException - if the limit was exceededpublic static <K> Iterator<K> newCombinedFilter(Iterator<K> it, boolean distinct, long limit, long offset, Comparator<K> orderBy, QueryEngineSettings settings)
public static <K> org.apache.jackrabbit.oak.query.FilterIterators.DistinctIterator<K> newDistinct(Iterator<K> it, QueryEngineSettings settings)
public static <K> Iterator<K> newSort(Iterator<K> it, Comparator<K> orderBy, int max, QueryEngineSettings settings)
"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"