| Package | Description |
|---|---|
| org.iq80.leveldb.env | |
| org.iq80.leveldb.fileenv | |
| org.iq80.leveldb.impl | |
| org.iq80.leveldb.memenv |
| Modifier and Type | Method and Description |
|---|---|
File |
File.child(String other)
Resolve the given path against this path.
|
File |
Env.createTempDir(String prefix)
Create a temporary directory in filesystem
|
File |
File.getParentFile() |
File |
Env.toFile(String filename)
|
| Modifier and Type | Method and Description |
|---|---|
List<File> |
File.listFiles() |
| Modifier and Type | Method and Description |
|---|---|
WritableFile |
Env.newAppendableFile(File file)
Create an WritableFile that either appends to an existing file, or
writes to a new file (if the file does not exist to begin with).
|
Logger |
Env.newLogger(File loggerFile)
Create and return a log file for storing informational messages.
|
RandomInputFile |
Env.newRandomAccessFile(File file)
Create a brand new random access read-only file with the
specified file name.
|
SequentialFile |
Env.newSequentialFile(File file)
Create a brand new sequentially-readable file with the specified file name.
|
WritableFile |
Env.newWritableFile(File file)
Create an object that writes to a new file with the specified
name.
|
String |
Env.readFileToString(File file)
Read full file content to string
|
boolean |
File.renameTo(File dest) |
DbLock |
Env.tryLock(File lockFile)
Attempts to acquire an exclusive lock on lock file
|
void |
Env.writeStringToFileSync(File file,
String content)
Write
content to file. |
| Modifier and Type | Class and Description |
|---|---|
class |
JavaFile |
| Modifier and Type | Method and Description |
|---|---|
File |
JavaFile.child(String name) |
File |
EnvImpl.createTempDir(String prefix) |
File |
JavaFile.getParentFile() |
File |
EnvImpl.toFile(String filename) |
| Modifier and Type | Method and Description |
|---|---|
List<File> |
JavaFile.listFiles() |
| Modifier and Type | Method and Description |
|---|---|
WritableFile |
EnvImpl.newAppendableFile(File file) |
Logger |
EnvImpl.newLogger(File loggerFile) |
RandomInputFile |
EnvImpl.newRandomAccessFile(File file) |
SequentialFile |
EnvImpl.newSequentialFile(File file) |
WritableFile |
EnvImpl.newWritableFile(File file) |
String |
EnvImpl.readFileToString(File file) |
boolean |
JavaFile.renameTo(File dest) |
DbLock |
EnvImpl.tryLock(File file)
Attempts to acquire an exclusive lock on this file
|
void |
EnvImpl.writeStringToFileSync(File file,
String content) |
| Modifier and Type | Method and Description |
|---|---|
static LogWriter |
Logs.createLogWriter(File file,
long fileNumber,
Env env) |
static boolean |
DbImpl.destroyDB(File dbname,
Env env) |
static String |
Filename.getCurrentFile(File databaseDir,
Env env)
Read "CURRENT" file, which contains a pointer to the current manifest file
|
static Filename.FileInfo |
Filename.parseFileName(File file)
If filename is a leveldb file, store the type of the file in *type.
|
static void |
Filename.setCurrentFile(File databaseDir,
long descriptorNumber,
Env env)
Make the CURRENT file point to the descriptor file with the
specified number.
|
| Constructor and Description |
|---|
TableCache(File databaseDir,
int tableCacheSize,
UserComparator userComparator,
Options options,
Env env) |
VersionSet(Options options,
File databaseDir,
TableCache tableCache,
InternalKeyComparator internalKeyComparator,
Env env) |
| Modifier and Type | Method and Description |
|---|---|
File |
MemEnv.createTempDir(String prefix) |
File |
MemEnv.toFile(String filename) |
| Modifier and Type | Method and Description |
|---|---|
WritableFile |
MemEnv.newAppendableFile(File file) |
Logger |
MemEnv.newLogger(File loggerFile) |
RandomInputFile |
MemEnv.newRandomAccessFile(File file) |
SequentialFile |
MemEnv.newSequentialFile(File file) |
WritableFile |
MemEnv.newWritableFile(File file) |
String |
MemEnv.readFileToString(File file) |
DbLock |
MemEnv.tryLock(File file) |
void |
MemEnv.writeStringToFileSync(File file,
String content) |
Copyright © 2011–2020. All rights reserved.