public final class FileNames
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Path |
checkpointFileSingular(Path path,
long version)
Returns the path for a singular checkpoint up to the given version.
|
static java.util.List<Path> |
checkpointFileWithParts(Path path,
long version,
int numParts)
Returns the paths for all parts of the checkpoint up to the given version.
|
static long |
checkpointVersion(Path path)
Returns the version for the given checkpoint path.
|
static java.lang.String |
deltaFile(Path path,
long version)
Returns the delta (json format) path for a given delta file.
|
static long |
deltaVersion(Path path)
Returns the version for the given delta path.
|
static long |
getFileVersion(Path path)
Get the version of the checkpoint, checksum or delta file.
|
static boolean |
isCheckpointFile(java.lang.String fileName) |
static boolean |
isCommitFile(java.lang.String fileName) |
static java.lang.String |
listingPrefix(Path path,
long version)
Returns the prefix of all delta log files for the given version.
|
public static java.lang.String deltaFile(Path path, long version)
public static long deltaVersion(Path path)
public static long checkpointVersion(Path path)
public static java.lang.String listingPrefix(Path path, long version)
Intended for use with listFrom to get all files from this version onwards. The returned Path will not exist as a file.
public static Path checkpointFileSingular(Path path, long version)
In a future protocol version this path will stop being written.
public static java.util.List<Path> checkpointFileWithParts(Path path, long version, int numParts)
In a future protocol version we will write this path instead of checkpointFileSingular.
Example of the format: 00000000000000004915.checkpoint.0000000020.0000000060.parquet is checkpoint part 20 out of 60 for the snapshot at version 4915. Zero padding is for lexicographic sorting.
public static boolean isCheckpointFile(java.lang.String fileName)
public static boolean isCommitFile(java.lang.String fileName)
public static long getFileVersion(Path path)