@Override protected AggregationProfileBreakdown createProfileBreakdown() { return new AggregationProfileBreakdown(); }
public ProfilingLeafBucketCollector(LeafBucketCollector delegate, AggregationProfileBreakdown profileBreakdown) { this.delegate = delegate; this.collectTimer = profileBreakdown.getTimer(AggregationTimingType.COLLECT); }
@Override public InternalAggregation buildAggregation(long bucket) throws IOException { Timer timer = profileBreakdown.getTimer(AggregationTimingType.BUILD_AGGREGATION); timer.start(); InternalAggregation result; try { result = delegate.buildAggregation(bucket); } finally { timer.stop(); } return result; }
@Override protected AggregationProfileBreakdown createProfileBreakdown() { return new AggregationProfileBreakdown(); }
@Override public void preCollection() throws IOException { this.profileBreakdown = profiler.getQueryBreakdown(delegate); Timer timer = profileBreakdown.getTimer(AggregationTimingType.INITIALIZE); timer.start(); try { delegate.preCollection(); } finally { timer.stop(); } profiler.pollLastElement(); }
@Override protected AggregationProfileBreakdown createProfileBreakdown() { return new AggregationProfileBreakdown(); }
public ProfilingLeafBucketCollector(LeafBucketCollector delegate, AggregationProfileBreakdown profileBreakdown) { this.delegate = delegate; this.collectTimer = profileBreakdown.getTimer(AggregationTimingType.COLLECT); }
@Override protected AggregationProfileBreakdown createProfileBreakdown() { return new AggregationProfileBreakdown(); }
public ProfilingLeafBucketCollector(LeafBucketCollector delegate, AggregationProfileBreakdown profileBreakdown) { this.delegate = delegate; this.collectTimer = profileBreakdown.getTimer(AggregationTimingType.COLLECT); }
public ProfilingLeafBucketCollector(LeafBucketCollector delegate, AggregationProfileBreakdown profileBreakdown) { this.delegate = delegate; this.collectTimer = profileBreakdown.getTimer(AggregationTimingType.COLLECT); }
@Override public InternalAggregation buildAggregation(long bucket) throws IOException { Timer timer = profileBreakdown.getTimer(AggregationTimingType.BUILD_AGGREGATION); timer.start(); InternalAggregation result; try { result = delegate.buildAggregation(bucket); } finally { timer.stop(); } return result; }
@Override public InternalAggregation buildAggregation(long bucket) throws IOException { Timer timer = profileBreakdown.getTimer(AggregationTimingType.BUILD_AGGREGATION); timer.start(); InternalAggregation result; try { result = delegate.buildAggregation(bucket); } finally { timer.stop(); } return result; }
@Override public InternalAggregation buildAggregation(long bucket) throws IOException { Timer timer = profileBreakdown.getTimer(AggregationTimingType.BUILD_AGGREGATION); timer.start(); InternalAggregation result; try { result = delegate.buildAggregation(bucket); } finally { timer.stop(); } return result; }
@Override public void preCollection() throws IOException { this.profileBreakdown = profiler.getQueryBreakdown(delegate); Timer timer = profileBreakdown.getTimer(AggregationTimingType.INITIALIZE); timer.start(); try { delegate.preCollection(); } finally { timer.stop(); } profiler.pollLastElement(); }
@Override public void preCollection() throws IOException { this.profileBreakdown = profiler.getQueryBreakdown(delegate); Timer timer = profileBreakdown.getTimer(AggregationTimingType.INITIALIZE); timer.start(); try { delegate.preCollection(); } finally { timer.stop(); } profiler.pollLastElement(); }
@Override public void preCollection() throws IOException { this.profileBreakdown = profiler.getQueryBreakdown(delegate); Timer timer = profileBreakdown.getTimer(AggregationTimingType.INITIALIZE); timer.start(); try { delegate.preCollection(); } finally { timer.stop(); } profiler.pollLastElement(); }