mirror of https://github.com/apache/druid.git
fix predicates
This commit is contained in:
parent
bcfeac2d8c
commit
1a978fe525
|
@ -20,7 +20,7 @@
|
|||
package com.metamx.druid.coordination;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.base.Predicate;
|
||||
import com.google.common.base.Predicates;
|
||||
import com.google.common.collect.Ordering;
|
||||
import com.metamx.common.ISE;
|
||||
import com.metamx.common.guava.FunctionalIterable;
|
||||
|
@ -260,14 +260,7 @@ public class ServerManager implements QuerySegmentWalker
|
|||
}
|
||||
)
|
||||
.filter(
|
||||
new Predicate<QueryRunner<T>>()
|
||||
{
|
||||
@Override
|
||||
public boolean apply(@Nullable QueryRunner<T> input)
|
||||
{
|
||||
return (input != null);
|
||||
}
|
||||
}
|
||||
Predicates.<QueryRunner<T>>notNull()
|
||||
);
|
||||
|
||||
return new FinalizeResultsQueryRunner<T>(toolChest.mergeResults(factory.mergeRunners(exec, adapters)), toolChest);
|
||||
|
|
Loading…
Reference in New Issue