InputPartition¶
InputPartition
is an abstraction of input partitions in Connector API with optional location preferences.
InputPartition
is a Java Serializable.
Contract¶
preferredLocations¶
String[] preferredLocations()
Specifies preferred locations (executor hosts)
By default, preferredLocations
defines no location preferences (is simply empty).
See:
Used when:
FileScanRDD
is requested for preferred locationsDataSourceRDD
is requested for preferred locationsContinuousDataSourceRDD
(Spark Structured Streaming) is requested for preferred locations
Implementations¶
ContinuousMemoryStreamInputPartition
- FilePartition
HasPartitionKey
KafkaBatchInputPartition
KafkaContinuousInputPartition
MemoryStreamInputPartition
RatePerMicroBatchStreamInputPartition
RateStreamContinuousInputPartition
RateStreamMicroBatchInputPartition
TextSocketContinuousInputPartition
TextSocketInputPartition