Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
public interface InputPartition<T> extends Serializable {

/**
* The preferred locations where the input partition reader returned by this partition can run faster,
* but Spark does not guarantee to run the input partition reader on these locations.
* The preferred locations where the input partition reader returned by this partition can run
* faster, but Spark does not guarantee to run the input partition reader on these locations.
* The implementations should make sure that it can be run on any location.
* The location is a string representing the host name.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import org.apache.spark.annotation.InterfaceStability;

/**
* An input partition reader returned by {@link InputPartition#createPartitionReader()} and is responsible for
* outputting data for a RDD partition.
* An input partition reader returned by {@link InputPartition#createPartitionReader()} and is
* responsible for outputting data for a RDD partition.
*
* Note that, Currently the type `T` can only be {@link org.apache.spark.sql.Row} for normal input
* partition readers, or {@link org.apache.spark.sql.catalyst.expressions.UnsafeRow} for input partition
* readers that mix in {@link SupportsScanUnsafeRow}.
* partition readers, or {@link org.apache.spark.sql.catalyst.expressions.UnsafeRow} for input
* partition readers that mix in {@link SupportsScanUnsafeRow}.
*/
@InterfaceStability.Evolving
public interface InputPartitionReader<T> extends Closeable {
Expand Down