jon-wei commented on a change in pull request #9360: Create splits of multiple 
files for parallel indexing
URL: https://github.com/apache/druid/pull/9360#discussion_r382870157
 
 

 ##########
 File path: 
core/src/main/java/org/apache/druid/data/input/impl/InputEntityIteratingReader.java
 ##########
 @@ -48,23 +48,23 @@
   public InputEntityIteratingReader(
       InputRowSchema inputRowSchema,
       InputFormat inputFormat,
-      Stream<InputEntity> sourceStream,
+      Iterator<? extends InputEntity> sourceStream,
       File temporaryDirectory
   )
   {
-    this(inputRowSchema, inputFormat, 
CloseableIterators.withEmptyBaggage(sourceStream.iterator()), 
temporaryDirectory);
+    this(inputRowSchema, inputFormat, 
CloseableIterators.withEmptyBaggage(sourceStream), temporaryDirectory);
   }
 
   public InputEntityIteratingReader(
       InputRowSchema inputRowSchema,
       InputFormat inputFormat,
-      CloseableIterator<InputEntity> sourceIterator,
+      CloseableIterator<? extends InputEntity> sourceIterator,
 
 Review comment:
   nit: could call this `sourceCloseableIterator`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to