public class NativeDB extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NativeDB.DBException |
Modifier and Type | Field and Description |
---|---|
static org.fusesource.hawtjni.runtime.Library |
LIBRARY |
protected long |
self |
Modifier and Type | Method and Description |
---|---|
protected void |
assertAllocated() |
void |
compactRange(byte[] begin,
byte[] end) |
void |
delete() |
void |
delete(NativeWriteOptions options,
byte[] key) |
static void |
destroy(File path,
NativeOptions options) |
byte[] |
get(NativeReadOptions options,
byte[] key) |
long[] |
getApproximateSizes(NativeRange... ranges) |
String |
getProperty(String name) |
NativeSnapshot |
getSnapshot() |
boolean |
isAllocated() |
NativeIterator |
iterator(NativeReadOptions options) |
static NativeDB |
open(NativeOptions options,
File path) |
void |
put(NativeWriteOptions options,
byte[] key,
byte[] value) |
void |
releaseSnapshot(NativeSnapshot snapshot) |
static void |
repair(File path,
NativeOptions options) |
void |
resumeCompactions() |
void |
suspendCompactions() |
void |
write(NativeWriteOptions options,
NativeWriteBatch updates) |
public static final org.fusesource.hawtjni.runtime.Library LIBRARY
protected long self
public void delete()
public static NativeDB open(NativeOptions options, File path) throws IOException, NativeDB.DBException
IOException
NativeDB.DBException
public void suspendCompactions()
public void resumeCompactions()
public void put(NativeWriteOptions options, byte[] key, byte[] value) throws NativeDB.DBException
NativeDB.DBException
public void delete(NativeWriteOptions options, byte[] key) throws NativeDB.DBException
NativeDB.DBException
public void write(NativeWriteOptions options, NativeWriteBatch updates) throws NativeDB.DBException
NativeDB.DBException
public byte[] get(NativeReadOptions options, byte[] key) throws NativeDB.DBException
NativeDB.DBException
public NativeSnapshot getSnapshot()
public void releaseSnapshot(NativeSnapshot snapshot)
public NativeIterator iterator(NativeReadOptions options)
public long[] getApproximateSizes(NativeRange... ranges)
public void compactRange(byte[] begin, byte[] end)
public static void destroy(File path, NativeOptions options) throws IOException, NativeDB.DBException
IOException
NativeDB.DBException
public static void repair(File path, NativeOptions options) throws IOException, NativeDB.DBException
IOException
NativeDB.DBException
public boolean isAllocated()
protected void assertAllocated()
Copyright © 2009–2024 FuseSource, Corp.. All rights reserved.