@Internal public class PartitionTempFileManager extends Object
Temporary file directory contains the following directory parts: 1.temporary base path directory. 2.task id directory. 3.directories to specify partitioning. 4.data files. eg: /tmp/task-0-attempt-0/p0=1/p1=2/fileName.
| Constructor and Description |
|---|
PartitionTempFileManager(FileSystemFactory factory,
org.apache.flink.core.fs.Path tmpPath,
int taskNumber,
int attemptNumber) |
PartitionTempFileManager(FileSystemFactory factory,
org.apache.flink.core.fs.Path tmpPath,
int taskNumber,
int attemptNumber,
org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig) |
| Modifier and Type | Method and Description |
|---|---|
static Map<LinkedHashMap<String,String>,List<org.apache.flink.core.fs.Path>> |
collectPartSpecToPaths(org.apache.flink.core.fs.FileSystem fs,
List<org.apache.flink.core.fs.Path> taskPaths,
int partColSize)
Collect all partitioned paths, aggregate according to partition spec.
|
org.apache.flink.core.fs.Path |
createPartitionDir(String... partitions)
Generate a new partition directory with partitions.
|
static List<org.apache.flink.core.fs.Path> |
listTaskTemporaryPaths(org.apache.flink.core.fs.FileSystem fs,
org.apache.flink.core.fs.Path basePath,
BiPredicate<Integer,Integer> taskAttemptFilter)
Returns task temporary paths in this checkpoint.
|
public PartitionTempFileManager(FileSystemFactory factory, org.apache.flink.core.fs.Path tmpPath, int taskNumber, int attemptNumber) throws IOException
IOExceptionpublic PartitionTempFileManager(FileSystemFactory factory, org.apache.flink.core.fs.Path tmpPath, int taskNumber, int attemptNumber, org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig) throws IOException
IOExceptionpublic org.apache.flink.core.fs.Path createPartitionDir(String... partitions)
public static List<org.apache.flink.core.fs.Path> listTaskTemporaryPaths(org.apache.flink.core.fs.FileSystem fs, org.apache.flink.core.fs.Path basePath, BiPredicate<Integer,Integer> taskAttemptFilter) throws Exception
Exceptionpublic static Map<LinkedHashMap<String,String>,List<org.apache.flink.core.fs.Path>> collectPartSpecToPaths(org.apache.flink.core.fs.FileSystem fs, List<org.apache.flink.core.fs.Path> taskPaths, int partColSize)
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.