mirror of https://github.com/apache/druid.git
Merge branch 'master' into druid-0.7.x
This commit is contained in:
commit
faf50aa799
|
@ -390,30 +390,30 @@ public class ServerManager implements QuerySegmentWalker
|
||||||
{
|
{
|
||||||
SpecificSegmentSpec segmentSpec = new SpecificSegmentSpec(segmentDescriptor);
|
SpecificSegmentSpec segmentSpec = new SpecificSegmentSpec(segmentDescriptor);
|
||||||
return new SpecificSegmentQueryRunner<T>(
|
return new SpecificSegmentQueryRunner<T>(
|
||||||
new MetricsEmittingQueryRunner<T>(
|
new BySegmentQueryRunner<T>(
|
||||||
emitter,
|
adapter.getIdentifier(),
|
||||||
new Function<Query<T>, ServiceMetricEvent.Builder>()
|
adapter.getDataInterval().getStart(),
|
||||||
{
|
new CachingQueryRunner<T>(
|
||||||
@Override
|
|
||||||
public ServiceMetricEvent.Builder apply(@Nullable final Query<T> input)
|
|
||||||
{
|
|
||||||
return toolChest.makeMetricBuilder(input);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
new BySegmentQueryRunner<T>(
|
|
||||||
adapter.getIdentifier(),
|
adapter.getIdentifier(),
|
||||||
adapter.getDataInterval().getStart(),
|
segmentDescriptor,
|
||||||
new CachingQueryRunner<T>(
|
objectMapper,
|
||||||
adapter.getIdentifier(),
|
cache,
|
||||||
segmentDescriptor,
|
toolChest,
|
||||||
objectMapper,
|
new MetricsEmittingQueryRunner<T>(
|
||||||
cache,
|
emitter,
|
||||||
toolChest,
|
new Function<Query<T>, ServiceMetricEvent.Builder>()
|
||||||
new ReferenceCountingSegmentQueryRunner<T>(factory, adapter),
|
{
|
||||||
cacheConfig
|
@Override
|
||||||
)
|
public ServiceMetricEvent.Builder apply(@Nullable final Query<T> input)
|
||||||
|
{
|
||||||
|
return toolChest.makeMetricBuilder(input);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
new ReferenceCountingSegmentQueryRunner<T>(factory, adapter)
|
||||||
|
).withWaitMeasuredFromNow(),
|
||||||
|
cacheConfig
|
||||||
)
|
)
|
||||||
).withWaitMeasuredFromNow(),
|
),
|
||||||
segmentSpec
|
segmentSpec
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue