You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2018/10/04 21:12:40 UTC
[GitHub] drcrallen commented on a change in pull request #5913: Move Caching
Cluster Client to java streams and allow parallel intermediate merges
drcrallen commented on a change in pull request #5913: Move Caching Cluster Client to java streams and allow parallel intermediate merges
URL: https://github.com/apache/incubator-druid/pull/5913#discussion_r222828922
##########
File path: server/src/main/java/io/druid/client/CachingClusteredClient.java
##########
@@ -139,21 +163,19 @@ public CachingClusteredClient(
@Override
public <T> QueryRunner<T> getQueryRunnerForIntervals(final Query<T> query, final Iterable<Interval> intervals)
{
- return new QueryRunner<T>()
- {
- @Override
- public Sequence<T> run(final QueryPlus<T> queryPlus, final Map<String, Object> responseContext)
- {
- return CachingClusteredClient.this.run(queryPlus, responseContext, timeline -> timeline);
- }
- };
+ return runAndMergeWithTimelineChange(
Review comment:
why unnecessary?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org