Class NativeDB
java.lang.Object
org.fusesource.leveldbjni.internal.NativeObject
org.fusesource.leveldbjni.internal.NativeDB
The DB object provides the main interface to acessing LevelDB
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(package private) static class -
Field Summary
FieldsFields inherited from class org.fusesource.leveldbjni.internal.NativeObject
self -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidcheckArgNotNull(Object value, String name) (package private) static voidcheckStatus(long s) voidcompactRange(byte[] begin, byte[] end) private voidcompactRange(NativeBuffer beginBuffer, NativeBuffer endBuffer) private voidcompactRange(NativeSlice beginSlice, NativeSlice endSlice) voiddelete()voiddelete(NativeWriteOptions options, byte[] key) private voiddelete(NativeWriteOptions options, NativeBuffer keyBuffer) private voiddelete(NativeWriteOptions options, NativeSlice keySlice) static voiddestroy(File path, NativeOptions options) byte[]get(NativeReadOptions options, byte[] key) private byte[]get(NativeReadOptions options, NativeBuffer keyBuffer) private byte[]get(NativeReadOptions options, NativeSlice keySlice) long[]getApproximateSizes(NativeRange... ranges) getProperty(String name) private byte[]getProperty(NativeBuffer nameBuffer) private byte[]getProperty(NativeSlice nameSlice) iterator(NativeReadOptions options) static NativeDBopen(NativeOptions options, File path) voidput(NativeWriteOptions options, byte[] key, byte[] value) private voidput(NativeWriteOptions options, NativeBuffer keyBuffer, NativeBuffer valueBuffer) private voidput(NativeWriteOptions options, NativeSlice keySlice, NativeSlice valueSlice) voidreleaseSnapshot(NativeSnapshot snapshot) static voidrepair(File path, NativeOptions options) voidvoidvoidwrite(NativeWriteOptions options, NativeWriteBatch updates) Methods inherited from class org.fusesource.leveldbjni.internal.NativeObject
assertAllocated, isAllocated, pointer
-
Field Details
-
LIBRARY
public static final org.fusesource.hawtjni.runtime.Library LIBRARY
-
-
Constructor Details
-
NativeDB
private NativeDB(long self)
-
-
Method Details
-
delete
public void delete() -
checkStatus
- Throws:
NativeDB.DBException
-
checkArgNotNull
-
open
public static NativeDB open(NativeOptions options, File path) throws IOException, NativeDB.DBException - Throws:
IOExceptionNativeDB.DBException
-
suspendCompactions
public void suspendCompactions() -
resumeCompactions
public void resumeCompactions() -
put
- Throws:
NativeDB.DBException
-
put
private void put(NativeWriteOptions options, NativeBuffer keyBuffer, NativeBuffer valueBuffer) throws NativeDB.DBException - Throws:
NativeDB.DBException
-
put
private void put(NativeWriteOptions options, NativeSlice keySlice, NativeSlice valueSlice) throws NativeDB.DBException - Throws:
NativeDB.DBException
-
delete
- Throws:
NativeDB.DBException
-
delete
- Throws:
NativeDB.DBException
-
delete
- Throws:
NativeDB.DBException
-
write
- Throws:
NativeDB.DBException
-
get
- Throws:
NativeDB.DBException
-
get
- Throws:
NativeDB.DBException
-
get
- Throws:
NativeDB.DBException
-
getSnapshot
-
releaseSnapshot
-
iterator
-
getApproximateSizes
-
getProperty
-
getProperty
-
getProperty
-
compactRange
public void compactRange(byte[] begin, byte[] end) -
compactRange
-
compactRange
-
destroy
public static void destroy(File path, NativeOptions options) throws IOException, NativeDB.DBException - Throws:
IOExceptionNativeDB.DBException
-
repair
public static void repair(File path, NativeOptions options) throws IOException, NativeDB.DBException - Throws:
IOExceptionNativeDB.DBException
-