@Public public interface SourceReaderContext
SourceReader
.Modifier and Type | Method and Description |
---|---|
default int |
currentParallelism()
Get the current parallelism of this Source.
|
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.
|
UserCodeClassLoader |
getUserCodeClassLoader()
Gets the
UserCodeClassLoader to load classes that are not in system's classpath, but
are part of the jar file of a user job. |
SourceReaderMetricGroup |
metricGroup() |
void |
sendSourceEventToCoordinator(SourceEvent sourceEvent)
Send a source event to the source coordinator.
|
void |
sendSplitRequest()
Sends a split request to the source's
SplitEnumerator . |
SourceReaderMetricGroup 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.UserCodeClassLoader getUserCodeClassLoader()
UserCodeClassLoader
to load classes that are not in system's classpath, but
are part of the jar file of a user job.UserCodeClassLoader
default int currentParallelism()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.