@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.
Modifier and Type | Method and Description |
---|---|
Path |
createPartitionDir(String... partitions)
Generate a new partition directory with partitions.
|
static void |
deleteCheckpoint(FileSystem fs,
Path basePath,
long checkpointId)
Delete checkpoint path.
|
static long[] |
headCheckpoints(FileSystem fs,
Path basePath,
long toCpId)
Returns checkpoints whose keys are less than or equal to
toCpId in temporary base
path. |
static List<Path> |
listTaskTemporaryPaths(FileSystem fs,
Path basePath,
long checkpointId)
Returns task temporary paths in this checkpoint.
|
public Path createPartitionDir(String... partitions)
public static void deleteCheckpoint(FileSystem fs, Path basePath, long checkpointId) throws IOException
IOException
public static long[] headCheckpoints(FileSystem fs, Path basePath, long toCpId) throws IOException
toCpId
in temporary base
path.IOException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.