Class NoopAggregator
- java.lang.Object
-
- org.apache.druid.query.aggregation.NoopAggregator
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Aggregator
public final class NoopAggregator extends Object implements Aggregator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
aggregate()
Performs aggregation.void
close()
Object
get()
double
getDouble()
The default implementation castsAggregator.getFloat()
to double.float
getFloat()
long
getLong()
static NoopAggregator
instance()
-
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, isNull
-
-
-
-
Method Detail
-
instance
public static NoopAggregator instance()
-
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
-
getDouble
public double getDouble()
Description copied from interface:Aggregator
The default implementation castsAggregator.getFloat()
to double. This default method is added to enable smooth backward compatibility, please re-implement it if your aggregators work with numeric double columns.- Specified by:
getDouble
in interfaceAggregator
-
close
public void close()
- Specified by:
close
in interfaceAggregator
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-