Class FileMergingSnapshotManager.SubtaskKey
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.filemerging.FileMergingSnapshotManager.SubtaskKey
-
- Enclosing interface:
- FileMergingSnapshotManager
public static final class FileMergingSnapshotManager.SubtaskKey extends Object
A key identifies a subtask. A subtask can be identified by the vertex id, subtask index and the parallelism. Note that this key should be consistent across job attempts.
-
-
Constructor Summary
Constructors Constructor Description SubtaskKey(String jobIDString, String vertexIDString, int subtaskIndex, int parallelism)SubtaskKey(org.apache.flink.api.common.JobID jobID, JobVertexID vertexID, org.apache.flink.api.common.TaskInfo taskInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetJobIDString()StringgetManagedDirName()Generate an unique managed directory name for one subtask.inthashCode()static FileMergingSnapshotManager.SubtaskKeyof(Environment environment)StringtoString()
-
-
-
Constructor Detail
-
SubtaskKey
public SubtaskKey(org.apache.flink.api.common.JobID jobID, JobVertexID vertexID, org.apache.flink.api.common.TaskInfo taskInfo)
-
-
Method Detail
-
of
public static FileMergingSnapshotManager.SubtaskKey of(Environment environment)
-
getJobIDString
@VisibleForTesting public String getJobIDString()
-
getManagedDirName
public String getManagedDirName()
Generate an unique managed directory name for one subtask.- Returns:
- the managed directory name.
-
-