Class LongConstantAggregator
- java.lang.Object
-
- org.apache.druid.query.aggregation.constant.LongConstantAggregator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Aggregator
public class LongConstantAggregator extends Object implements 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 asGroupingAggregatorFactory
-
-
Constructor Summary
Constructors Constructor Description LongConstantAggregator(long value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaggregate()Performs aggregation.voidclose()Objectget()floatgetFloat()longgetLong()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.query.aggregation.Aggregator
aggregateWithSize, getDouble, isNull
-
-
-
-
Method Detail
-
aggregate
public void aggregate()
Description copied from interface:AggregatorPerforms aggregation.- Specified by:
aggregatein interfaceAggregator
-
get
public Object 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
-
-