Class AggregationInternalUtils

java.lang.Object
com.gigaspaces.query.aggregators.AggregationInternalUtils

public class AggregationInternalUtils extends Object
This class is intended for internal usage only.
Since:
10.0
Author:
Niv Ingberg
  • Constructor Details

    • AggregationInternalUtils

      public AggregationInternalUtils()
  • Method Details

    • collectPaths

      public static List<String> collectPaths(List<SpaceEntriesAggregator> aggregators)
      Collects the property paths accessed by the specified aggregators (used for field level security).
      Since:
      18.0.1
    • getAggregators

      public static List<SpaceEntriesAggregator> getAggregators(AggregationSet aggregationSet)
    • index

      public static Map<String,Integer> index(List<SpaceEntriesAggregator> aggregators)
    • getFinalResult

      public static AggregationResult getFinalResult(List<SpaceEntriesAggregator> aggregators, RawEntryConverter rawEntryConverter)
    • containsCustomAggregators

      public static boolean containsCustomAggregators(List<SpaceEntriesAggregator> aggregators)
    • containsUserCode

      public static boolean containsUserCode(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. Such an aggregation has its execution timeout checked after every entry instead of every few hundred.
      Since:
      18.0.1
    • isSpaceIteratorScan

      public static boolean isSpaceIteratorScan(List<SpaceEntriesAggregator> aggregators)
      Whether this is the scan a SpaceIterator starts with, which collects the entries the iterator then pages through: that scan is exactly one SpaceIteratorAggregator. 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

      public static long parseDefaultExecutionTimeout(String value)
      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

      public static List<SpaceEntriesAggregator> getSelectors(GroupByAggregator aggregator)
    • hasFilterWithOrderBy

      public static boolean hasFilterWithOrderBy(ITemplateHolder template)
    • hasFilter

      public static boolean hasFilter(ITemplateHolder template)