| Modifier and Type | Field and Description |
|---|---|
(package private) com.google.common.collect.ImmutableMap<String,List<ComplexMetric>> |
DruidTable.complexMetrics |
| Modifier and Type | Method and Description |
|---|---|
ComplexMetric |
DruidTable.resolveComplexMetric(String alias,
AggregateCall call)
Returns the appropriate
ComplexMetric that is mapped from the given alias
if it exists, and is used in the expected context with the given AggregateCall. |
| Modifier and Type | Method and Description |
|---|---|
List<ComplexMetric> |
DruidTable.getComplexMetricsFrom(String alias)
Returns the list of
ComplexMetric that match the given alias if it exists,
otherwise returns an empty list, never null |
| Modifier and Type | Method and Description |
|---|---|
(package private) static Table |
DruidTable.create(DruidSchema druidSchema,
String dataSourceName,
List<org.joda.time.Interval> intervals,
Map<String,SqlTypeName> fieldMap,
Set<String> metricNameSet,
String timestampColumnName,
DruidConnectionImpl connection,
Map<String,List<ComplexMetric>> complexMetrics)
Creates a
DruidTable by using the given DruidConnectionImpl
to populate the other parameters. |
(package private) static Table |
DruidTable.create(DruidSchema druidSchema,
String dataSourceName,
List<org.joda.time.Interval> intervals,
Map<String,SqlTypeName> fieldMap,
Set<String> metricNameSet,
String timestampColumnName,
Map<String,List<ComplexMetric>> complexMetrics)
Creates a
DruidTable by copying the given parameters. |
(package private) void |
DruidConnectionImpl.metadata(String dataSourceName,
String timestampColumnName,
List<org.joda.time.Interval> intervals,
Map<String,SqlTypeName> fieldBuilder,
Set<String> metricNameBuilder,
Map<String,List<ComplexMetric>> complexMetrics)
Reads segment metadata, and populates a list of columns and metrics.
|
| Constructor and Description |
|---|
DruidTable(DruidSchema schema,
String dataSource,
RelProtoDataType protoRowType,
Set<String> metricFieldNames,
String timestampFieldName,
List<org.joda.time.Interval> intervals,
Map<String,List<ComplexMetric>> complexMetrics,
Map<String,SqlTypeName> allFields)
Creates a Druid table.
|
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.