public class NativeDB
extends java.lang.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(java.io.File path,
NativeOptions options) |
byte[] |
get(NativeReadOptions options,
byte[] key) |
long[] |
getApproximateSizes(NativeRange... ranges) |
java.lang.String |
getProperty(java.lang.String name) |
NativeSnapshot |
getSnapshot() |
boolean |
isAllocated() |
NativeIterator |
iterator(NativeReadOptions options) |
static NativeDB |
open(NativeOptions options,
java.io.File path) |
void |
put(NativeWriteOptions options,
byte[] key,
byte[] value) |
void |
releaseSnapshot(NativeSnapshot snapshot) |
static void |
repair(java.io.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, java.io.File path) throws java.io.IOException, NativeDB.DBException
java.io.IOExceptionNativeDB.DBExceptionpublic void suspendCompactions()
public void resumeCompactions()
public void put(NativeWriteOptions options, byte[] key, byte[] value) throws NativeDB.DBException
NativeDB.DBExceptionpublic void delete(NativeWriteOptions options, byte[] key) throws NativeDB.DBException
NativeDB.DBExceptionpublic void write(NativeWriteOptions options, NativeWriteBatch updates) throws NativeDB.DBException
NativeDB.DBExceptionpublic byte[] get(NativeReadOptions options, byte[] key) throws NativeDB.DBException
NativeDB.DBExceptionpublic NativeSnapshot getSnapshot()
public void releaseSnapshot(NativeSnapshot snapshot)
public NativeIterator iterator(NativeReadOptions options)
public long[] getApproximateSizes(NativeRange... ranges)
public java.lang.String getProperty(java.lang.String name)
public void compactRange(byte[] begin,
byte[] end)
public static void destroy(java.io.File path,
NativeOptions options)
throws java.io.IOException,
NativeDB.DBException
java.io.IOExceptionNativeDB.DBExceptionpublic static void repair(java.io.File path,
NativeOptions options)
throws java.io.IOException,
NativeDB.DBException
java.io.IOExceptionNativeDB.DBExceptionpublic boolean isAllocated()
protected void assertAllocated()
Copyright © 2009-2013 FuseSource, Corp.. All Rights Reserved.