Class GreaterThanHavingSpec
java.lang.Object
org.apache.druid.query.groupby.having.GreaterThanHavingSpec
- All Implemented Interfaces:
Cacheable,HavingSpec
The ">" operator in a "having" clause. This is similar to SQL's "having aggregation > value",
except that an aggregation in SQL is an expression instead of an aggregation name as in Druid.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis method treats internal value as double mainly for ease of test.booleanEvaluates if a given row satisfies the having spec.byte[]Get a byte array used as a cache key.getValue()inthashCode()voidsetQuery(GroupByQuery query) Informs this HavingSpec that rows passed to "eval" will originate from a particular groupBy query.toString()
-
Constructor Details
-
GreaterThanHavingSpec
-
-
Method Details
-
getAggregationName
-
getValue
-
setQuery
Description copied from interface:HavingSpecInforms this HavingSpec that rows passed to "eval" will originate from a particular groupBy query.- Specified by:
setQueryin interfaceHavingSpec
-
eval
Description copied from interface:HavingSpecEvaluates if a given row satisfies the having spec.- Specified by:
evalin interfaceHavingSpec- Parameters:
row- A Row of data that may contain aggregated values- Returns:
- true if the given row satisfies the having spec. False otherwise.
-
equals
This method treats internal value as double mainly for ease of test. -
hashCode
public int hashCode() -
toString
-
getCacheKey
public byte[] getCacheKey()Description copied from interface:CacheableGet a byte array used as a cache key.- Specified by:
getCacheKeyin interfaceCacheable- Returns:
- bytes to be used as cache key - or null if this object should not be cached.
-