@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,
boolean legacyPartitionName,
boolean fileSuffixIncludeCompression,
String fileCompression,
String dataFilePathDirectory) |
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,
boolean legacyPartitionName) |
String |
getPartitionString(BinaryRow partition)
IMPORTANT: This method is NOT THREAD SAFE.
|
PathFactory |
indexFileFactory() |
PathFactory |
indexManifestFileFactory() |
PathFactory |
manifestFileFactory() |
PathFactory |
manifestListFactory() |
Path |
newManifestFile() |
Path |
newManifestList() |
Path |
relativeBucketPath(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 FileStorePathFactory(Path root, RowType partitionType, String defaultPartValue, String formatIdentifier, String dataFilePrefix, String changelogFilePrefix, boolean legacyPartitionName, boolean fileSuffixIncludeCompression, String fileCompression, @Nullable String dataFilePathDirectory)
public Path root()
@VisibleForTesting public static InternalRowPartitionComputer getPartitionComputer(RowType partitionType, String defaultPartValue, boolean legacyPartitionName)
public Path newManifestFile()
public Path newManifestList()
public DataFilePathFactory createDataFilePathFactory(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–2025 The Apache Software Foundation. All rights reserved.