Interface HavingSpec
-
- All Superinterfaces:
Cacheable
- All Known Implementing Classes:
AlwaysHavingSpec,AndHavingSpec,DimensionSelectorHavingSpec,DimFilterHavingSpec,EqualToHavingSpec,GreaterThanHavingSpec,LessThanHavingSpec,NeverHavingSpec,NotHavingSpec,OrHavingSpec
public interface HavingSpec extends Cacheable
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleaneval(ResultRow row)Evaluates 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 Detail
-
setQuery
void setQuery(GroupByQuery query)
Informs this HavingSpec that rows passed to "eval" will originate from a particular groupBy query.
-
eval
boolean eval(ResultRow row)
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.
-
-