@PublicEvolving public interface SourceReaderContext
SourceReader
.Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration()
Gets the configuration with which Flink was started.
|
int |
getIndexOfSubtask() |
String |
getLocalHostName()
Gets the hostname of the machine where this reader is executed.
|
MetricGroup |
metricGroup() |
void |
sendSourceEventToCoordinator(SourceEvent sourceEvent)
Send a source event to the source coordinator.
|
void |
sendSplitRequest()
Sends a split request to the source's
SplitEnumerator . |
MetricGroup metricGroup()
Configuration getConfiguration()
String getLocalHostName()
int getIndexOfSubtask()
void sendSplitRequest()
SplitEnumerator
. This will result in a call to
the SplitEnumerator.handleSplitRequest(int, String)
method, with this reader's
parallel subtask id and the hostname where this reader runs.void sendSourceEventToCoordinator(SourceEvent sourceEvent)
sourceEvent
- the source event to coordinator.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.