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 operator 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 operatorIDString, int subtaskIndex, int parallelism)
SubtaskKey(org.apache.flink.api.common.JobID jobID, OperatorID operatorID, org.apache.flink.api.common.TaskInfo taskInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getJobIDString()
String
getManagedDirName()
Generate an unique managed directory name for one subtask.int
hashCode()
static FileMergingSnapshotManager.SubtaskKey
of(Environment environment)
String
toString()
-
-
-
Constructor Detail
-
SubtaskKey
public SubtaskKey(org.apache.flink.api.common.JobID jobID, OperatorID operatorID, 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.
-
-