Interface ConfigurableStreamPartitioner
-
- All Known Implementing Classes:
KeyGroupStreamPartitioner
public interface ConfigurableStreamPartitioner
Interface forStreamPartitioner
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
configure(int maxParallelism)
Configure theStreamPartitioner
with the maximum parallelism of the down stream operator.
-
-
-
Method Detail
-
configure
void configure(int maxParallelism)
Configure theStreamPartitioner
with the maximum parallelism of the down stream operator.- Parameters:
maxParallelism
- Maximum parallelism of the down stream operator.
-
-