Class SqlAggregationModule
java.lang.Object
org.apache.druid.sql.calcite.aggregation.SqlAggregationModule
- All Implemented Interfaces:
com.google.inject.Module
Module that provides SQL aggregations.
To add an aggregation, use
SqlBindings.addAggregator(com.google.inject.Binder, java.lang.Class<? extends org.apache.druid.sql.calcite.aggregation.SqlAggregator>).
To add an implementation option for APPROX_COUNT_DISTINCT, use SqlBindings.addApproxCountDistinctChoice(com.google.inject.Binder, java.lang.String, java.lang.Class<? extends org.apache.druid.sql.calcite.aggregation.SqlAggregator>).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(com.google.inject.Binder binder) provideApproxCountDistinctSqlAggregator(SqlAggregator aggregator)
-
Constructor Details
-
SqlAggregationModule
public SqlAggregationModule()
-
-
Method Details
-
configure
public void configure(com.google.inject.Binder binder) - Specified by:
configurein interfacecom.google.inject.Module
-
provideApproxCountDistinctSqlAggregator
@Provides public ApproxCountDistinctSqlAggregator provideApproxCountDistinctSqlAggregator(SqlAggregator aggregator)
-