public interface GenericQueryMetricsFactory
QueryMetrics implementations for all query types, which don't (yet)
need to emit custom dimensions and/or metrics, i. e. they are good with the generic QueryMetrics interface.
Implementations could be injected using
PolyBind
.optionBinder(binder, Key.get(GenericQueryMetricsFactory.class))
.addBinding("myCustomGenericQueryMetricsFactory")
.to(MyCustomGenericQueryMetricsFactory.class);
And then setting property:
druid.query.generic.queryMetricsFactory=myCustomGenericQueryMetricsFactory| Modifier and Type | Method and Description |
|---|---|
QueryMetrics<Query<?>> |
makeMetrics(Query<?> query)
Creates a
QueryMetrics for query, which doesn't have predefined QueryMetrics subclass. |
QueryMetrics<Query<?>> makeMetrics(Query<?> query)
QueryMetrics 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.Copyright © 2011–2017. All rights reserved.