@ThreadSafe public class FileStorePathFactory extends Object
Path
s for manifest files.Modifier and Type | Field and Description |
---|---|
static String |
BUCKET_PATH_PREFIX |
Constructor and Description |
---|
FileStorePathFactory(Path root,
RowType partitionType,
String defaultPartValue,
String formatIdentifier,
String dataFilePrefix,
String changelogFilePrefix) |
Modifier and Type | Method and Description |
---|---|
Path |
bucketPath(BinaryRow partition,
int bucket) |
DataFilePathFactory |
createDataFilePathFactory(BinaryRow partition,
int bucket) |
List<Path> |
getHierarchicalPartitionPath(BinaryRow partition) |
static InternalRowPartitionComputer |
getPartitionComputer(RowType partitionType,
String defaultPartValue) |
String |
getPartitionString(BinaryRow partition)
IMPORTANT: This method is NOT THREAD SAFE.
|
PathFactory |
indexFileFactory() |
PathFactory |
indexManifestFileFactory() |
PathFactory |
manifestFileFactory() |
PathFactory |
manifestListFactory() |
Path |
newManifestFile() |
Path |
newManifestList() |
Path |
relativePartitionAndBucketPath(BinaryRow partition,
int bucket) |
Path |
root() |
PathFactory |
statsFileFactory() |
Path |
toManifestFilePath(String manifestFileName) |
Path |
toManifestListPath(String manifestListName) |
String |
uuid() |
public static final String BUCKET_PATH_PREFIX
public Path root()
@VisibleForTesting public static InternalRowPartitionComputer getPartitionComputer(RowType partitionType, String defaultPartValue)
public Path newManifestFile()
public Path newManifestList()
public DataFilePathFactory createDataFilePathFactory(BinaryRow partition, int bucket)
public Path relativePartitionAndBucketPath(BinaryRow partition, int bucket)
public String getPartitionString(BinaryRow partition)
@VisibleForTesting public String uuid()
public PathFactory manifestFileFactory()
public PathFactory manifestListFactory()
public PathFactory indexManifestFileFactory()
public PathFactory indexFileFactory()
public PathFactory statsFileFactory()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.