Class AggregationInspectionHelper
- java.lang.Object
-
- org.elasticsearch.search.aggregations.support.AggregationInspectionHelper
-
public class AggregationInspectionHelper extends java.lang.Object
Provides a set of static helpers to determine if a particular type of InternalAggregation "has a value" or not. This can be difficult to determine from an external perspective because each agg uses different internal bookkeeping to determine if it is empty or not (NaN, +/-Inf, 0.0, etc). This set of helpers aim to ease that task by codifying what "empty" is for each agg. It is not entirely accurate for all aggs, since some do not expose or track the needed state (e.g. sum doesn't record count, so it's not clear if the sum is 0.0 because it is empty or because of summing to zero). Pipeline aggs in particular are not well supported by these helpers since most share InternalSimpleValue and it's not clear which pipeline generated the value.
-
-
Constructor Summary
Constructors Constructor Description AggregationInspectionHelper()
-
Method Summary
-
-
-
Method Detail
-
hasValue
public static <A extends InternalTerms<A,B>,B extends InternalTerms.Bucket<B>> boolean hasValue(InternalTerms<A,B> agg)
-
hasValue
public static boolean hasValue(UnmappedTerms agg)
-
hasValue
public static boolean hasValue(UnmappedSignificantTerms agg)
-
hasValue
public static boolean hasValue(UnmappedSampler agg)
-
hasValue
public static boolean hasValue(InternalAdjacencyMatrix agg)
-
hasValue
public static boolean hasValue(InternalFilters agg)
-
hasValue
public static boolean hasValue(InternalFilter agg)
-
hasValue
public static boolean hasValue(InternalGeoGrid<?> agg)
-
hasValue
public static boolean hasValue(InternalGlobal agg)
-
hasValue
public static boolean hasValue(InternalHistogram agg)
-
hasValue
public static boolean hasValue(InternalDateHistogram agg)
-
hasValue
public static boolean hasValue(InternalAutoDateHistogram agg)
-
hasValue
public static boolean hasValue(InternalComposite agg)
-
hasValue
public static boolean hasValue(InternalMissing agg)
-
hasValue
public static boolean hasValue(InternalNested agg)
-
hasValue
public static boolean hasValue(InternalReverseNested agg)
-
hasValue
public static <B extends InternalRange.Bucket,R extends InternalRange<B,R>> boolean hasValue(InternalRange<B,R> agg)
-
hasValue
public static boolean hasValue(InternalSampler agg)
-
hasValue
public static <A extends InternalSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>> boolean hasValue(InternalSignificantTerms<A,B> agg)
-
hasValue
public static boolean hasValue(InternalAvg agg)
-
hasValue
public static boolean hasValue(InternalSum agg)
-
hasValue
public static boolean hasValue(InternalCardinality agg)
-
hasValue
public static boolean hasValue(InternalExtendedStats agg)
-
hasValue
public static boolean hasValue(InternalGeoBounds agg)
-
hasValue
public static boolean hasValue(InternalGeoCentroid agg)
-
hasValue
public static boolean hasValue(InternalHDRPercentileRanks agg)
-
hasValue
public static boolean hasValue(InternalHDRPercentiles agg)
-
hasValue
public static boolean hasValue(InternalMax agg)
-
hasValue
public static boolean hasValue(InternalMedianAbsoluteDeviation agg)
-
hasValue
public static boolean hasValue(InternalMin agg)
-
hasValue
public static boolean hasValue(InternalScriptedMetric agg)
-
hasValue
public static boolean hasValue(InternalStats agg)
-
hasValue
public static boolean hasValue(InternalTDigestPercentileRanks agg)
-
hasValue
public static boolean hasValue(InternalTDigestPercentiles agg)
-
hasValue
public static boolean hasValue(InternalTopHits agg)
-
hasValue
public static boolean hasValue(InternalValueCount agg)
-
hasValue
public static boolean hasValue(InternalWeightedAvg agg)
-
hasValue
public static boolean hasValue(InternalSimpleValue agg)
-
hasValue
public static boolean hasValue(InternalBucketMetricValue agg)
-
hasValue
public static boolean hasValue(InternalPercentilesBucket agg)
-
-