public static interface SourceSplitEnumerator.Context<SplitT extends SourceSplit>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
assignSplit(int subtaskId,
List<SplitT> splits)
Assign the splits.
|
default void |
assignSplit(int subtaskId,
SplitT split)
Assigns a single split.
|
int |
currentParallelism() |
MetricsContext |
getMetricsContext() |
Set<Integer> |
registeredReaders()
Get the currently registered readers.
|
void |
sendEventToSourceReader(int subtaskId,
SourceEvent event)
Send a source event to a source reader.
|
void |
signalNoMoreSplits(int subtask)
Signals a subtask that it will not receive any further split.
|
int currentParallelism()
Set<Integer> registeredReaders()
default void assignSplit(int subtaskId,
SplitT split)
When assigning multiple splits, it is more efficient to assign all of them in a single
call to the assignSplit(int, java.util.List<SplitT>) method.
split - The new splitsubtaskId - The index of the operator's parallel subtask that shall receive the
split.void signalNoMoreSplits(int subtask)
subtask - The index of the operator's parallel subtask that shall be signaled it
will not receive any further split.void sendEventToSourceReader(int subtaskId,
SourceEvent event)
subtaskId - the subtask id of the source reader to send this event to.event - the source event to send.MetricsContext getMetricsContext()
Copyright © 2024 The Apache Software Foundation. All rights reserved.