public class SqlBindings extends Object
| Constructor and Description |
|---|
SqlBindings() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAggregator(com.google.inject.Binder binder,
Class<? extends SqlAggregator> aggregatorClass) |
static void |
addApproxCountDistinctChoice(com.google.inject.Binder binder,
String name,
Class<? extends SqlAggregator> clazz)
Add a choice for
APPROX_COUNT_DISTINCT implementation. |
static void |
addOperatorConversion(com.google.inject.Binder binder,
Class<? extends SqlOperatorConversion> clazz) |
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 |
public static void addAggregator(com.google.inject.Binder binder,
Class<? extends SqlAggregator> aggregatorClass)
public static void addApproxCountDistinctChoice(com.google.inject.Binder binder,
String name,
Class<? extends SqlAggregator> clazz)
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.public static void addOperatorConversion(com.google.inject.Binder binder,
Class<? extends SqlOperatorConversion> clazz)
public static void addSchema(com.google.inject.Binder binder,
Class<? extends NamedSchema> clazz)
NamedSchema to be used by the SqlModuleCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.