public final class FileNames
extends 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 long |
checkpointVersion(String path) |
static 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 |
deltaVersion(String path) |
static long |
getFileVersion(Path path)
Get the version of the checkpoint, checksum or delta file.
|
static boolean |
isCheckpointFile(String fileName) |
static boolean |
isCommitFile(String fileName) |
static String |
listingPrefix(Path path,
long version)
Returns the prefix of all delta log files for the given version.
|
public static String deltaFile(Path path, long version)
public static long deltaVersion(Path path)
public static long deltaVersion(String path)
public static long checkpointVersion(Path path)
public static long checkpointVersion(String path)
public static 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(String fileName)
public static boolean isCommitFile(String fileName)
public static long getFileVersion(Path path)