Class AggregationInternalUtils
java.lang.Object
com.gigaspaces.query.aggregators.AggregationInternalUtils
This class is intended for internal usage only.
- Since:
- 10.0
- Author:
- Niv Ingberg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectPaths(List<SpaceEntriesAggregator> aggregators) Collects the property paths accessed by the specified aggregators (used for field level security).static booleancontainsCustomAggregators(List<SpaceEntriesAggregator> aggregators) static booleancontainsUserCode(List<SpaceEntriesAggregator> aggregators) Whether any of the specified aggregators runs code from outside this package - a custom aggregator, a user's subclass of a built-in one included, whose cost per entry is unknown.static List<SpaceEntriesAggregator> getAggregators(AggregationSet aggregationSet) static AggregationResultgetFinalResult(List<SpaceEntriesAggregator> aggregators, RawEntryConverter rawEntryConverter) static List<SpaceEntriesAggregator> getSelectors(GroupByAggregator aggregator) static booleanhasFilter(ITemplateHolder template) static booleanhasFilterWithOrderBy(ITemplateHolder template) index(List<SpaceEntriesAggregator> aggregators) static booleanisSpaceIteratorScan(List<SpaceEntriesAggregator> aggregators) Whether this is the scan aSpaceIteratorstarts with, which collects the entries the iterator then pages through: that scan is exactly oneSpaceIteratorAggregator.static longParses the value ofCommonSystemProperties.AGGREGATION_DEFAULT_TIMEOUT.
-
Constructor Details
-
AggregationInternalUtils
public AggregationInternalUtils()
-
-
Method Details
-
collectPaths
Collects the property paths accessed by the specified aggregators (used for field level security).- Since:
- 18.0.1
-
getAggregators
-
index
-
getFinalResult
public static AggregationResult getFinalResult(List<SpaceEntriesAggregator> aggregators, RawEntryConverter rawEntryConverter) -
containsCustomAggregators
-
containsUserCode
Whether any of the specified aggregators runs code from outside this package - a custom aggregator, a user's subclass of a built-in one included, whose cost per entry is unknown. Such an aggregation has its execution timeout checked after every entry instead of every few hundred.- Since:
- 18.0.1
-
isSpaceIteratorScan
Whether this is the scan aSpaceIteratorstarts with, which collects the entries the iterator then pages through: that scan is exactly oneSpaceIteratorAggregator. It is not an aggregation the user asked for, so the space's default execution timeout does not apply to it.- Since:
- 18.0.1
-
parseDefaultExecutionTimeout
Parses the value ofCommonSystemProperties.AGGREGATION_DEFAULT_TIMEOUT.- Returns:
- the default execution timeout in milliseconds, or 0 for none, which is what an absent value and any value of zero or less mean
- Throws:
IllegalArgumentException- if the value is not a whole number of milliseconds: a limit that was meant to protect the space is not silently dropped- Since:
- 18.0.1
-
getSelectors
-
hasFilterWithOrderBy
-
hasFilter
-