public class DefaultGenericQueryMetricsFactory extends Object implements GenericQueryMetricsFactory
| Constructor and Description |
|---|
DefaultGenericQueryMetricsFactory(com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
| Modifier and Type | Method and Description |
|---|---|
static GenericQueryMetricsFactory |
instance()
Should be used only in tests, directly or indirectly (e.
|
QueryMetrics<Query<?>> |
makeMetrics(Query<?> query)
Creates a
QueryMetrics for query, which doesn't have predefined QueryMetrics subclass. |
@Inject public DefaultGenericQueryMetricsFactory(com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public static GenericQueryMetricsFactory instance()
SearchQueryQueryToolChest.SearchQueryQueryToolChest(org.apache.druid.query.search.SearchQueryConfig, org.apache.druid.query.IntervalChunkingQueryRunnerDecorator, org.apache.druid.query.search.SearchQueryMetricsFactory)).public QueryMetrics<Query<?>> makeMetrics(Query<?> query)
GenericQueryMetricsFactoryQueryMetrics for query, which doesn't have predefined QueryMetrics subclass. This method must
call QueryMetrics.query(Query) with the given query on the created QueryMetrics object before returning.makeMetrics in interface GenericQueryMetricsFactoryCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.