@PublicEvolving public interface ParallelismProvider
Note: Currently, this interface only works with DynamicTableSink.SinkRuntimeProvider
.
Modifier and Type | Method and Description |
---|---|
default Optional<Integer> |
getParallelism()
Returns the parallelism for this instance.
|
default Optional<Integer> getParallelism()
The parallelism denotes how many parallel instances of a source or sink will be spawned during the execution.
Enforcing a different parallelism for sinks might mess up the changelog if the input is
not ChangelogMode.insertOnly()
. Therefore, a primary key is required by which the
input will be shuffled before records enter the DynamicTableSink.SinkRuntimeProvider
implementation.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.