Skip to content

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:

Implementations

  • ContinuousMemoryStreamInputPartition
  • FilePartition
  • HasPartitionKey
  • KafkaBatchInputPartition
  • KafkaContinuousInputPartition
  • MemoryStreamInputPartition
  • RatePerMicroBatchStreamInputPartition
  • RateStreamContinuousInputPartition
  • RateStreamMicroBatchInputPartition
  • TextSocketContinuousInputPartition
  • TextSocketInputPartition