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 |
infoLogFileName()
Return the name of the info log file.
|
static List<File> |
listFiles(File dir) |
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 boolean |
setCurrentFile(File databaseDir,
long descriptorNumber)
Make the CURRENT file point to the descriptor file 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 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 boolean setCurrentFile(File databaseDir, long descriptorNumber) throws IOException
IOException
Copyright © 2011–2019. All rights reserved.