Interface ConfigurableStreamPartitioner

  • All Known Implementing Classes:
    KeyGroupStreamPartitioner

    public interface ConfigurableStreamPartitioner
    Interface for StreamPartitioner which have to be configured with the maximum parallelism of the stream transformation. The configure method is called by the StreamGraph when adding internal edges.

    This interface is required since the stream partitioners are instantiated eagerly. Due to that the maximum parallelism might not have been determined and needs to be set at a stage when the maximum parallelism could have been determined.

    • Method Detail

      • configure

        void configure​(int maxParallelism)
        Configure the StreamPartitioner with the maximum parallelism of the down stream operator.
        Parameters:
        maxParallelism - Maximum parallelism of the down stream operator.