public enum DefaultSqlAggregationType extends Enum<DefaultSqlAggregationType> implements SqlAggregationType
Modifier and Type | Method and Description |
---|---|
SqlAggregation |
getSqlAggregation(Aggregation aggregation,
ApiToFieldMapper apiToFieldMapper)
Builds a
SqlAggregation which contains all the necessary information to build an aggregation in sql. |
Set<String> |
getSupportedDruidAggregations()
Returns a set of supported druid aggregations.
|
static DefaultSqlAggregationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultSqlAggregationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultSqlAggregationType SUM
public static final DefaultSqlAggregationType MIN
public static final DefaultSqlAggregationType MAX
public static DefaultSqlAggregationType[] values()
for (DefaultSqlAggregationType c : DefaultSqlAggregationType.values()) System.out.println(c);
public static DefaultSqlAggregationType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Set<String> getSupportedDruidAggregations()
SqlAggregationType
getSupportedDruidAggregations
in interface SqlAggregationType
public SqlAggregation getSqlAggregation(Aggregation aggregation, ApiToFieldMapper apiToFieldMapper)
SqlAggregationType
SqlAggregation
which contains all the necessary information to build an aggregation in sql.getSqlAggregation
in interface SqlAggregationType
aggregation
- The druid aggregation.apiToFieldMapper
- The mapping between api and physical names for the query.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.