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 void
aggregate()
Performs aggregation.void
close()
Object
get()
float
getFloat()
long
getLong()
-
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:Aggregator
Performs aggregation.- Specified by:
aggregate
in interfaceAggregator
-
get
public Object get()
- Specified by:
get
in interfaceAggregator
-
getFloat
public float getFloat()
- Specified by:
getFloat
in interfaceAggregator
-
getLong
public long getLong()
- Specified by:
getLong
in interfaceAggregator
-
close
public void close()
- Specified by:
close
in interfaceAggregator
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-