@Internal public class PartitionPathUtils extends Object
| 构造器和说明 |
|---|
PartitionPathUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static LinkedHashMap<String,String> |
extractPartitionSpecFromPath(org.apache.flink.core.fs.Path currPath)
Make partition spec from path.
|
static String |
generatePartitionPath(LinkedHashMap<String,String> partitionSpec)
Make partition path from partition spec.
|
static org.apache.flink.core.fs.FileStatus[] |
listStatusWithoutHidden(org.apache.flink.core.fs.FileSystem fs,
org.apache.flink.core.fs.Path dir)
List file status without hidden files.
|
static List<org.apache.flink.api.java.tuple.Tuple2<LinkedHashMap<String,String>,org.apache.flink.core.fs.Path>> |
searchPartSpecAndPaths(org.apache.flink.core.fs.FileSystem fs,
org.apache.flink.core.fs.Path path,
int partitionNumber)
Search all partitions in this path.
|
static String |
unescapePathName(String path) |
public static String generatePartitionPath(LinkedHashMap<String,String> partitionSpec)
partitionSpec - The partition spec.public static LinkedHashMap<String,String> extractPartitionSpecFromPath(org.apache.flink.core.fs.Path currPath)
currPath - partition file path.public static org.apache.flink.core.fs.FileStatus[] listStatusWithoutHidden(org.apache.flink.core.fs.FileSystem fs,
org.apache.flink.core.fs.Path dir)
throws IOException
IOExceptionpublic static List<org.apache.flink.api.java.tuple.Tuple2<LinkedHashMap<String,String>,org.apache.flink.core.fs.Path>> searchPartSpecAndPaths(org.apache.flink.core.fs.FileSystem fs, org.apache.flink.core.fs.Path path, int partitionNumber)
path - search path.partitionNumber - partition number, it will affect path structure.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.