@InterfaceStability.Evolving
public interface DataReader<T>
extends java.io.Closeable
DataReaderFactory.createDataReader() and is responsible for
outputting data for a RDD partition.
Note that, Currently the type `T` can only be Row for normal data
source readers, or UnsafeRow for data source
readers that mix in SupportsScanUnsafeRow.| 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()