@Internal public class PartitionTempFileManager extends Object
Temporary file directory contains the following directory parts: 1.temporary base path directory. 2.checkpoint id directory. 3.task id directory. 4.directories to specify partitioning. 5.data files. eg: /tmp/cp-1/task-0/p0=1/p1=2/fileName.
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.core.fs.Path |
createPartitionDir(String... partitions)
Generate a new partition directory with partitions.
|
static void |
deleteCheckpoint(org.apache.flink.core.fs.FileSystem fs,
org.apache.flink.core.fs.Path basePath,
long checkpointId)
Delete checkpoint path.
|
static long[] |
headCheckpoints(org.apache.flink.core.fs.FileSystem fs,
org.apache.flink.core.fs.Path basePath,
long toCpId)
Returns checkpoints whose keys are less than or equal to
toCpId
in temporary base path. |
static List<org.apache.flink.core.fs.Path> |
listTaskTemporaryPaths(org.apache.flink.core.fs.FileSystem fs,
org.apache.flink.core.fs.Path basePath,
long checkpointId)
Returns task temporary paths in this checkpoint.
|
public org.apache.flink.core.fs.Path createPartitionDir(String... partitions)
public static void deleteCheckpoint(org.apache.flink.core.fs.FileSystem fs,
org.apache.flink.core.fs.Path basePath,
long checkpointId)
throws IOException
IOExceptionpublic static long[] headCheckpoints(org.apache.flink.core.fs.FileSystem fs,
org.apache.flink.core.fs.Path basePath,
long toCpId)
throws IOException
toCpId
in temporary base path.IOExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.