Class SqlBindings

java.lang.Object
org.apache.druid.sql.guice.SqlBindings

public class SqlBindings extends Object
Utility class that provides bindings to extendable components in 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 for APPROX_COUNT_DISTINCT implementation. The SqlAggregator's SqlAggregator.calciteFunction() method will be ignored and replaced by the version from ApproxCountDistinctSqlAggregator. 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

      public static void addSchema(com.google.inject.Binder binder, Class<? extends NamedSchema> clazz)
      Returns a multiBinder that can modules can use to bind NamedSchema to be used by the SqlModule