Java Code Examples for org.apache.flink.runtime.state.KeyGroupRangeAssignment#checkParallelismPreconditions()
The following examples show how to use
org.apache.flink.runtime.state.KeyGroupRangeAssignment#checkParallelismPreconditions() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ResultPartitionDeploymentDescriptor.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
public ResultPartitionDeploymentDescriptor( IntermediateDataSetID resultId, IntermediateResultPartitionID partitionId, ResultPartitionType partitionType, int numberOfSubpartitions, int maxParallelism, boolean lazyScheduling) { this.resultId = checkNotNull(resultId); this.partitionId = checkNotNull(partitionId); this.partitionType = checkNotNull(partitionType); KeyGroupRangeAssignment.checkParallelismPreconditions(maxParallelism); checkArgument(numberOfSubpartitions >= 1); this.numberOfSubpartitions = numberOfSubpartitions; this.maxParallelism = maxParallelism; this.sendScheduleOrUpdateConsumersMessage = lazyScheduling; }
Example 2
Source File: ResultPartitionDeploymentDescriptor.java From flink with Apache License 2.0 | 5 votes |
public ResultPartitionDeploymentDescriptor( PartitionDescriptor partitionDescriptor, ShuffleDescriptor shuffleDescriptor, int maxParallelism, boolean sendScheduleOrUpdateConsumersMessage) { this.partitionDescriptor = checkNotNull(partitionDescriptor); this.shuffleDescriptor = checkNotNull(shuffleDescriptor); KeyGroupRangeAssignment.checkParallelismPreconditions(maxParallelism); this.maxParallelism = maxParallelism; this.sendScheduleOrUpdateConsumersMessage = sendScheduleOrUpdateConsumersMessage; }
Example 3
Source File: ResultPartitionDeploymentDescriptor.java From flink with Apache License 2.0 | 5 votes |
public ResultPartitionDeploymentDescriptor( PartitionDescriptor partitionDescriptor, ShuffleDescriptor shuffleDescriptor, int maxParallelism, boolean sendScheduleOrUpdateConsumersMessage) { this.partitionDescriptor = checkNotNull(partitionDescriptor); this.shuffleDescriptor = checkNotNull(shuffleDescriptor); KeyGroupRangeAssignment.checkParallelismPreconditions(maxParallelism); this.maxParallelism = maxParallelism; this.sendScheduleOrUpdateConsumersMessage = sendScheduleOrUpdateConsumersMessage; }
Example 4
Source File: KeyGroupStreamPartitioner.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public void configure(int maxParallelism) { KeyGroupRangeAssignment.checkParallelismPreconditions(maxParallelism); this.maxParallelism = maxParallelism; }
Example 5
Source File: KeyGroupStreamPartitioner.java From flink with Apache License 2.0 | 4 votes |
@Override public void configure(int maxParallelism) { KeyGroupRangeAssignment.checkParallelismPreconditions(maxParallelism); this.maxParallelism = maxParallelism; }
Example 6
Source File: KeyGroupStreamPartitioner.java From flink with Apache License 2.0 | 4 votes |
@Override public void configure(int maxParallelism) { KeyGroupRangeAssignment.checkParallelismPreconditions(maxParallelism); this.maxParallelism = maxParallelism; }