Class LongConstantAggregator
java.lang.Object
org.apache.druid.query.aggregation.constant.LongConstantAggregator
- All Implemented Interfaces:
Closeable,AutoCloseable,Aggregator
This aggregator is a no-op aggregator with a fixed non-null output value. It can be used in scenarios where
result is constant such as
GroupingAggregatorFactory-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.query.aggregation.Aggregator
aggregateWithSize, getDouble, isNull
-
Constructor Details
-
LongConstantAggregator
public LongConstantAggregator(long value)
-
-
Method Details
-
aggregate
public void aggregate()Description copied from interface:AggregatorPerforms aggregation.- Specified by:
aggregatein interfaceAggregator
-
get
- Specified by:
getin interfaceAggregator
-
getFloat
public float getFloat()- Specified by:
getFloatin interfaceAggregator
-
getLong
public long getLong()- Specified by:
getLongin interfaceAggregator
-
close
public void close()- Specified by:
closein interfaceAggregator- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-