Package com.io7m.looseleaf.database.api
Interface LLDatabaseType
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
LLDatabaseMVStore
A database.
-
Method Summary
Modifier and TypeMethodDescriptionlongGet the value associated with the given key, if any.booleanisClosed()longAtomically read, update, and delete values in the database.
-
Method Details
-
dataSizeApproximate
long dataSizeApproximate()- Returns:
- The approximate size of the database in bytes
-
keyCountApproximate
long keyCountApproximate()- Returns:
- The approximate number of keys in the database
-
isClosed
boolean isClosed()- Returns:
trueif the store has been closed
-
readUpdateDelete
Atomically read, update, and delete values in the database.- Parameters:
rud- The RUD operation- Returns:
- The read keys
- Throws:
IOException- On errors
-
get
Get the value associated with the given key, if any.- Parameters:
key- The key- Returns:
- The value, if any
- Throws:
IOException- On errors
-