public class JniDB extends Object implements org.iq80.leveldb.DB
Constructor and Description |
---|
JniDB(NativeDB db,
NativeCache cache,
NativeComparator comparator,
NativeLogger logger) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
compactRange(byte[] begin,
byte[] end) |
org.iq80.leveldb.WriteBatch |
createWriteBatch() |
void |
delete(byte[] key) |
org.iq80.leveldb.Snapshot |
delete(byte[] key,
org.iq80.leveldb.WriteOptions options) |
byte[] |
get(byte[] key) |
byte[] |
get(byte[] key,
org.iq80.leveldb.ReadOptions options) |
long[] |
getApproximateSizes(org.iq80.leveldb.Range... ranges) |
String |
getProperty(String name) |
org.iq80.leveldb.Snapshot |
getSnapshot() |
org.iq80.leveldb.DBIterator |
iterator() |
org.iq80.leveldb.DBIterator |
iterator(org.iq80.leveldb.ReadOptions options) |
void |
put(byte[] key,
byte[] value) |
org.iq80.leveldb.Snapshot |
put(byte[] key,
byte[] value,
org.iq80.leveldb.WriteOptions options) |
void |
resumeCompactions() |
void |
suspendCompactions() |
void |
write(org.iq80.leveldb.WriteBatch updates) |
org.iq80.leveldb.Snapshot |
write(org.iq80.leveldb.WriteBatch updates,
org.iq80.leveldb.WriteOptions options) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public JniDB(NativeDB db, NativeCache cache, NativeComparator comparator, NativeLogger logger)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public byte[] get(byte[] key) throws org.iq80.leveldb.DBException
get
in interface org.iq80.leveldb.DB
org.iq80.leveldb.DBException
public byte[] get(byte[] key, org.iq80.leveldb.ReadOptions options) throws org.iq80.leveldb.DBException
get
in interface org.iq80.leveldb.DB
org.iq80.leveldb.DBException
public org.iq80.leveldb.DBIterator iterator()
public org.iq80.leveldb.DBIterator iterator(org.iq80.leveldb.ReadOptions options)
iterator
in interface org.iq80.leveldb.DB
public void put(byte[] key, byte[] value) throws org.iq80.leveldb.DBException
put
in interface org.iq80.leveldb.DB
org.iq80.leveldb.DBException
public void delete(byte[] key) throws org.iq80.leveldb.DBException
delete
in interface org.iq80.leveldb.DB
org.iq80.leveldb.DBException
public void write(org.iq80.leveldb.WriteBatch updates) throws org.iq80.leveldb.DBException
write
in interface org.iq80.leveldb.DB
org.iq80.leveldb.DBException
public org.iq80.leveldb.WriteBatch createWriteBatch()
createWriteBatch
in interface org.iq80.leveldb.DB
public org.iq80.leveldb.Snapshot put(byte[] key, byte[] value, org.iq80.leveldb.WriteOptions options) throws org.iq80.leveldb.DBException
put
in interface org.iq80.leveldb.DB
org.iq80.leveldb.DBException
public org.iq80.leveldb.Snapshot delete(byte[] key, org.iq80.leveldb.WriteOptions options) throws org.iq80.leveldb.DBException
delete
in interface org.iq80.leveldb.DB
org.iq80.leveldb.DBException
public org.iq80.leveldb.Snapshot write(org.iq80.leveldb.WriteBatch updates, org.iq80.leveldb.WriteOptions options) throws org.iq80.leveldb.DBException
write
in interface org.iq80.leveldb.DB
org.iq80.leveldb.DBException
public org.iq80.leveldb.Snapshot getSnapshot()
getSnapshot
in interface org.iq80.leveldb.DB
public long[] getApproximateSizes(org.iq80.leveldb.Range... ranges)
getApproximateSizes
in interface org.iq80.leveldb.DB
public String getProperty(String name)
getProperty
in interface org.iq80.leveldb.DB
public void compactRange(byte[] begin, byte[] end) throws org.iq80.leveldb.DBException
compactRange
in interface org.iq80.leveldb.DB
org.iq80.leveldb.DBException
public void suspendCompactions() throws InterruptedException
suspendCompactions
in interface org.iq80.leveldb.DB
InterruptedException
public void resumeCompactions()
resumeCompactions
in interface org.iq80.leveldb.DB
Copyright © 2009–2024 FuseSource, Corp.. All rights reserved.