use of org.apache.flink.runtime.source.event.NoMoreSplitsEvent in project flink by apache.
the class SourceCoordinatorContext method signalNoMoreSplits.
@Override
public void signalNoMoreSplits(int subtask) {
checkSubtaskIndex(subtask);
// Ensure the split assignment is done by the coordinator executor.
callInCoordinatorThread(() -> {
final OperatorCoordinator.SubtaskGateway gateway = getGatewayAndCheckReady(subtask);
gateway.sendEvent(new NoMoreSplitsEvent());
// void return value
return null;
}, "Failed to send 'NoMoreSplits' to reader " + subtask);
}
Aggregations