| Modifier and Type | Class and Description |
|---|---|
static class |
DbImpl.BackgroundProcessingException |
static class |
DbImpl.DatabaseShutdownException |
class |
DbImpl.RecordBytesListener |
| Constructor and Description |
|---|
DbImpl(Options rawOptions,
String dbname,
Env env) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
compactRange(byte[] begin,
byte[] end) |
WriteBatch |
createWriteBatch() |
void |
delete(byte[] key) |
Snapshot |
delete(byte[] key,
WriteOptions options) |
static boolean |
destroyDB(File dbname,
Env env) |
byte[] |
get(byte[] key) |
byte[] |
get(byte[] key,
ReadOptions options) |
long[] |
getApproximateSizes(Range... ranges) |
long |
getApproximateSizes(Range range) |
long |
getMaxNextLevelOverlappingBytes() |
String |
getProperty(String name) |
Snapshot |
getSnapshot() |
DBIteratorAdapter |
iterator() |
DBIteratorAdapter |
iterator(ReadOptions options) |
void |
put(byte[] key,
byte[] value) |
Snapshot |
put(byte[] key,
byte[] value,
WriteOptions options) |
void |
resumeCompactions() |
void |
suspendCompactions() |
String |
toString() |
void |
write(WriteBatch updates) |
Snapshot |
write(WriteBatch updates,
WriteOptions options) |
Snapshot |
writeInternal(WriteBatchImpl myBatch,
WriteOptions options) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic DbImpl(Options rawOptions, String dbname, Env env) throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic String getProperty(String name)
getProperty in interface DBpublic byte[] get(byte[] key)
throws DBException
get in interface DBDBExceptionpublic byte[] get(byte[] key,
ReadOptions options)
throws DBException
get in interface DBDBExceptionpublic void put(byte[] key,
byte[] value)
throws DBException
put in interface DBDBExceptionpublic Snapshot put(byte[] key, byte[] value, WriteOptions options) throws DBException
put in interface DBDBExceptionpublic void delete(byte[] key)
throws DBException
delete in interface DBDBExceptionpublic Snapshot delete(byte[] key, WriteOptions options) throws DBException
delete in interface DBDBExceptionpublic void write(WriteBatch updates) throws DBException
write in interface DBDBExceptionpublic Snapshot write(WriteBatch updates, WriteOptions options) throws DBException
write in interface DBDBExceptionpublic Snapshot writeInternal(WriteBatchImpl myBatch, WriteOptions options) throws DBException
DBExceptionpublic WriteBatch createWriteBatch()
createWriteBatch in interface DBpublic DBIteratorAdapter iterator()
public DBIteratorAdapter iterator(ReadOptions options)
public Snapshot getSnapshot()
getSnapshot in interface DBpublic long[] getApproximateSizes(Range... ranges)
getApproximateSizes in interface DBpublic long getApproximateSizes(Range range)
public long getMaxNextLevelOverlappingBytes()
public void suspendCompactions()
throws InterruptedException
suspendCompactions in interface DBInterruptedExceptionpublic void resumeCompactions()
resumeCompactions in interface DBpublic void compactRange(byte[] begin,
byte[] end)
throws DBException
compactRange in interface DBDBExceptionpublic static boolean destroyDB(File dbname, Env env) throws IOException
IOExceptionCopyright © 2011–2020. All rights reserved.