@Internal public interface InitContext
SinkWriter
and Committer
objects.Modifier and Type | Field and Description |
---|---|
static long |
INITIAL_CHECKPOINT_ID
The first checkpoint id when an application is started and not recovered from a previously
taken checkpoint or savepoint.
|
Modifier and Type | Method and Description |
---|---|
default int |
getAttemptNumber()
Deprecated.
This method is deprecated since Flink 1.19. All metadata about the task should be
provided uniformly by
getTaskInfo() . |
default JobID |
getJobId()
Deprecated.
This method is deprecated since Flink 1.19. All metadata about the job should be
provided uniformly by
getJobInfo() . |
JobInfo |
getJobInfo()
Get the meta information of current job.
|
default int |
getNumberOfParallelSubtasks()
Deprecated.
This method is deprecated since Flink 1.19. All metadata about the task should be
provided uniformly by
getTaskInfo() . |
OptionalLong |
getRestoredCheckpointId()
Returns id of the restored checkpoint, if state was restored from the snapshot of a previous
execution.
|
default int |
getSubtaskId()
Deprecated.
This method is deprecated since Flink 1.19. All metadata about the task should be
provided uniformly by
getTaskInfo() . |
TaskInfo |
getTaskInfo()
Get the meta information of current task.
|
static final long INITIAL_CHECKPOINT_ID
@Deprecated default int getSubtaskId()
getTaskInfo()
.@Deprecated default int getNumberOfParallelSubtasks()
getTaskInfo()
.@Deprecated default int getAttemptNumber()
getTaskInfo()
.OptionalLong getRestoredCheckpointId()
@Deprecated default JobID getJobId()
getJobInfo()
.@PublicEvolving JobInfo getJobInfo()
@PublicEvolving TaskInfo getTaskInfo()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.