leventov 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_r207755440
 
 

 ##########
 File path: 
java-util/src/test/java/io/druid/java/util/common/guava/MergeSequenceTest.java
 ##########
 @@ -21,17 +21,35 @@
 
 import com.google.common.collect.Lists;
 import com.google.common.collect.Ordering;
-import junit.framework.Assert;
+import org.junit.Assert;
 import org.junit.Test;
 
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
+import java.util.List;
+import java.util.function.Supplier;
+import java.util.stream.Stream;
 
 /**
  */
 public class MergeSequenceTest
 {
+  public static <T extends Comparable> Supplier<Sequence<T>> 
naturalMergeSupplier(
+      Supplier<Stream<? extends Sequence<? extends T>>> stream
+  )
+  {
+    return () -> naturalMerge(stream.get());
+  }
+
+  public static <T extends Comparable> Sequence<T> naturalMerge(Stream<? 
extends Sequence<? extends T>> stream)
 
 Review comment:
   Same

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to