Sink
and use
Sink.InitContext
.@Deprecated @PublicEvolving public static interface Sink.InitContext
SinkWriter
.Modifier and Type | Method and Description |
---|---|
MailboxExecutor |
getMailboxExecutor()
Deprecated.
Returns the mailbox executor that allows to execute
Runnable s inside the task
thread in between record processing. |
int |
getNumberOfParallelSubtasks()
Deprecated.
|
Sink.ProcessingTimeService |
getProcessingTimeService()
Deprecated.
Returns a
Sink.ProcessingTimeService that can be used to get the current time and
register timers. |
OptionalLong |
getRestoredCheckpointId()
Deprecated.
Returns id of the restored checkpoint, if state was restored from the snapshot of a
previous execution.
|
int |
getSubtaskId()
Deprecated.
|
UserCodeClassLoader |
getUserCodeClassLoader()
Deprecated.
Gets the
UserCodeClassLoader to load classes that are not in system's classpath,
but are part of the jar file of a user job. |
SinkWriterMetricGroup |
metricGroup()
Deprecated.
|
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
MailboxExecutor getMailboxExecutor()
Runnable
s inside the task
thread in between record processing.
Note that this method should not be used per-record for performance reasons in the
same way as records should not be sent to the external system individually. Rather,
implementers are expected to batch records and only enqueue a single Runnable
per
batch to handle the result.
Sink.ProcessingTimeService getProcessingTimeService()
Sink.ProcessingTimeService
that can be used to get the current time and
register timers.int getSubtaskId()
int getNumberOfParallelSubtasks()
SinkWriterMetricGroup metricGroup()
OptionalLong getRestoredCheckpointId()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.