public final class Filename extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Filename.FileInfo |
static class |
Filename.FileType |
| Modifier and Type | Method and Description |
|---|---|
static String |
currentFileName()
Return the name of the current file.
|
static String |
descriptorFileName(long number)
Return the name of the descriptor file with the specified incarnation number.
|
static String |
getCurrentFile(File databaseDir,
Env env)
Read "CURRENT" file, which contains a pointer to the current manifest file
|
static String |
infoLogFileName()
Return the name of the info log file.
|
static String |
lockFileName()
Return the name of the lock file.
|
static String |
logFileName(long number)
Return the name of the log file with the specified number.
|
static String |
oldInfoLogFileName()
Return the name of the old info log file.
|
static Filename.FileInfo |
parseFileName(File file)
If filename is a leveldb file, store the type of the file in *type.
|
static void |
setCurrentFile(File databaseDir,
long descriptorNumber,
Env env)
Make the CURRENT file point to the descriptor file with the
specified number.
|
static String |
sstTableFileName(long number)
Return the deprecated name of the sstable with the specified number.
|
static String |
tableFileName(long number)
Return the name of the sstable with the specified number.
|
static String |
tempFileName(long number)
Return the name of a temporary file with the specified number.
|
public static String logFileName(long number)
public static String tableFileName(long number)
public static String sstTableFileName(long number)
public static String descriptorFileName(long number)
public static String currentFileName()
public static String lockFileName()
public static String tempFileName(long number)
public static String infoLogFileName()
public static String oldInfoLogFileName()
public static Filename.FileInfo parseFileName(File file)
public static void setCurrentFile(File databaseDir, long descriptorNumber, Env env) throws IOException
IOException - on any IO exceptionIllegalArgumentException - on invalid descriptorNumberpublic static String getCurrentFile(File databaseDir, Env env) throws IOException
databaseDir - DB base directoryenv - system environmentIOException - on any IO exceptionIllegalStateException - if file does not exist or invalid file contentCopyright © 2011–2020. All rights reserved.