Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/6423#discussion_r31370848
--- Diff:
core/src/main/scala/org/apache/spark/storage/ShuffleBlockFetcherIterator.scala
---
@@ -17,22 +17,23 @@
package org.apache.spark.storage
+import java.io.InputStream
import java.util.concurrent.LinkedBlockingQueue
+import org.apache.spark.network.buffer.ManagedBuffer
+import org.apache.spark.network.shuffle.{BlockFetchingListener,
ShuffleClient}
+import org.apache.spark.storage.ShuffleBlockFetcherIterator.FetchResult
+import org.apache.spark.util.Utils
+import org.apache.spark.{Logging, TaskContext}
+
import scala.collection.mutable.{ArrayBuffer, HashSet, Queue}
import scala.util.{Failure, Try}
-import org.apache.spark.{Logging, TaskContext}
-import org.apache.spark.network.shuffle.{BlockFetchingListener,
ShuffleClient}
-import org.apache.spark.network.buffer.ManagedBuffer
-import org.apache.spark.serializer.{SerializerInstance, Serializer}
-import org.apache.spark.util.{CompletionIterator, Utils}
-
/**
* An iterator that fetches multiple blocks. For local blocks, it fetches
from the local block
* manager. For remote blocks, it fetches them using the provided
BlockTransferService.
*
- * This creates an iterator of (BlockID, values) tuples so the caller can
handle blocks in a
+ * This creates an iterator of (BlockID, InputStream) tuples so the caller
can handle blocks in a
--- End diff --
Try[InputStream]
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]