Module org.elasticsearch.server
Class AggregationInspectionHelper
java.lang.Object
org.elasticsearch.search.aggregations.support.AggregationInspectionHelper
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
static boolean
hasValue
(InternalFilter agg) static boolean
hasValue
(InternalFilters agg) static boolean
hasValue
(InternalGeoGrid<?> agg) static boolean
hasValue
(InternalGlobal agg) static boolean
static boolean
static boolean
static boolean
static boolean
hasValue
(InternalMissing agg) static boolean
hasValue
(InternalNested agg) static boolean
static boolean
hasValue
(InternalRange<?, ?> agg) static boolean
hasValue
(InternalSampler agg) static boolean
hasValue
(UnmappedSampler agg) static boolean
hasValue
(InternalSignificantTerms<?, ?> agg) static <A extends InternalTerms<A,
B>, B extends InternalTerms.Bucket<B>>
booleanhasValue
(InternalTerms<A, B> agg) static boolean
static boolean
hasValue
(UnmappedTerms agg) static boolean
hasValue
(InternalAvg agg) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
hasValue
(InternalStats agg) static boolean
static boolean
static boolean
hasValue
(InternalTopHits agg) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
-
Constructor Details
-
AggregationInspectionHelper
public AggregationInspectionHelper()
-
-
Method Details
-
hasValue
public static <A extends InternalTerms<A,B>, boolean hasValueB extends InternalTerms.Bucket<B>> (InternalTerms<A, B> agg) -
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-
hasValue
-