@InterfaceStability.Evolving
public interface InputPartitionReader<T>
extends java.io.Closeable
InputPartition.createPartitionReader() and is
responsible for outputting data for a RDD partition.
Note that, Currently the type `T` can only be InternalRow
for normal data source readers, ColumnarBatch for data
source readers that mix in SupportsScanColumnarBatch.| Modifier and Type | Method and Description |
|---|---|
T |
get()
Return the current record.
|
boolean |
next()
Proceed to next record, returns false if there is no more records.
|
boolean next()
throws java.io.IOException
java.io.IOException - if failure happens during disk/network IO like reading files.T get()