T get()
InputPartitionReader Contract
InputPartitionReader is the abstraction of input partition readers in Data Source API V2 that can proceed to the next record and get the current record.
InputPartitionReader is also a Java Closeable.
InputPartitionReader is associated with two other abstractions: InputPartition and ContinuousInputPartition that are responsible for creating concrete InputPartitionReaders.
|
Note
|
It appears that all concrete input partition readers are used in Spark Structured Streaming only. |
| Method | Description |
|---|---|
|
Gets the current record Used when:
|
|
Proceeds to the next record if available ( Used when:
|