Package org.apache.druid.sql.guice
Class SqlBindings
java.lang.Object
org.apache.druid.sql.guice.SqlBindings
Utility class that provides bindings to extendable components in the SqlModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAggregator(com.google.inject.Binder binder, Class<? extends SqlAggregator> aggregatorClass) static voidaddApproxCountDistinctChoice(com.google.inject.Binder binder, String name, Class<? extends SqlAggregator> clazz) Add a choice forAPPROX_COUNT_DISTINCTimplementation.static voidaddOperatorConversion(com.google.inject.Binder binder, Class<? extends SqlOperatorConversion> clazz) static voidaddSchema(com.google.inject.Binder binder, Class<? extends NamedSchema> clazz) Returns a multiBinder that can modules can use to bindNamedSchemato be used by the SqlModule
-
Constructor Details
-
SqlBindings
public SqlBindings()
-
-
Method Details
-
addAggregator
public static void addAggregator(com.google.inject.Binder binder, Class<? extends SqlAggregator> aggregatorClass) -
addApproxCountDistinctChoice
public static void addApproxCountDistinctChoice(com.google.inject.Binder binder, String name, Class<? extends SqlAggregator> clazz) Add a choice forAPPROX_COUNT_DISTINCTimplementation. The SqlAggregator'sSqlAggregator.calciteFunction()method will be ignored and replaced by the version fromApproxCountDistinctSqlAggregator. For sane results, the provided aggregator class must be compatible with that function signature. -
addOperatorConversion
public static void addOperatorConversion(com.google.inject.Binder binder, Class<? extends SqlOperatorConversion> clazz) -
addSchema
Returns a multiBinder that can modules can use to bindNamedSchemato be used by the SqlModule
-