Interface HavingSpec
- All Superinterfaces:
Cacheable
- All Known Implementing Classes:
AlwaysHavingSpec,AndHavingSpec,DimensionSelectorHavingSpec,DimFilterHavingSpec,EqualToHavingSpec,GreaterThanHavingSpec,LessThanHavingSpec,NeverHavingSpec,NotHavingSpec,OrHavingSpec
A "having" clause that filters aggregated/dimension value. This is similar to SQL's "having"
clause. HavingSpec objects are *not* thread-safe and must not be used simultaneously by multiple
threads.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluates if a given row satisfies the having spec.voidsetQuery(GroupByQuery query) Informs this HavingSpec that rows passed to "eval" will originate from a particular groupBy query.Methods inherited from interface org.apache.druid.java.util.common.Cacheable
getCacheKey
-
Method Details
-
setQuery
Informs this HavingSpec that rows passed to "eval" will originate from a particular groupBy query. -
eval
Evaluates if a given row satisfies the having spec.- Parameters:
row- A Row of data that may contain aggregated values- Returns:
- true if the given row satisfies the having spec. False otherwise.
-