A store with open tables.
| Methods |
| void |
close(long maxCompactTime)
Close the store.
|
| void |
close(long maxCompactTime)
Close the store. Pending changes are persisted. Chunks with a low
fill rate are compacted, but old chunks are kept for some time, so
most likely the database file will not shrink.
Parameters:
maxCompactTime - the maximum time in milliseconds to compact
|
| void |
closeImmediately()
Close the store, without persisting changes.
|
| void |
closeImmediately()
Close the store, without persisting changes.
|
| void |
compactFile(long maxCompactTime)
Compact the database file, that is, compact blocks that have a low
fill rate, and move chunks next to each other.
|
| void |
compactFile(long maxCompactTime)
Compact the database file, that is, compact blocks that have a low
fill rate, and move chunks next to each other. This will typically
shrink the database file. Changes are flushed to the file, and old
chunks are overwritten.
Parameters:
maxCompactTime - the maximum time in milliseconds to compact
|
| DbException |
convertIllegalStateException(IllegalStateException e)
Convert the illegal state exception to the correct database
exception.
|
| DbException |
convertIllegalStateException(IllegalStateException e)
Convert the illegal state exception to the correct database
exception.
Parameters:
e - the illegal state exception
Returns:
the database exception
|
| void |
flush()
Store all pending changes.
|
| void |
flush()
Store all pending changes.
|
| ArrayList |
getInDoubtTransactions()
|
| ArrayList |
getInDoubtTransactions()
|
| InputStream |
getInputStream()
|
| InputStream |
getInputStream()
|
| MVStore |
getStore()
|
| MVStore |
getStore()
|
| HashMap |
getTables()
|
| HashMap |
getTables()
|
| TransactionStore |
getTransactionStore()
|
| TransactionStore |
getTransactionStore()
|
| void |
initTransactions()
Commit all transactions that are in the committing state, and
rollback all open transactions.
|
| void |
initTransactions()
Commit all transactions that are in the committing state, and
rollback all open transactions.
|
| String |
nextTemporaryMapName()
Get the name of the next available temporary map.
|
| String |
nextTemporaryMapName()
Get the name of the next available temporary map.
Returns:
the map name
|
| void |
open(Database db, MVStore.Builder builder, boolean encrypted)
Open the store for this database.
|
| void |
open(Database db, MVStore.Builder builder, boolean encrypted)
Open the store for this database.
Parameters:
db - the database
builder - the builder
encrypted - whether the store is encrypted
|
| void |
prepareCommit(Session session, String transactionName)
Prepare a transaction.
|
| void |
prepareCommit(Session session, String transactionName)
Prepare a transaction.
Parameters:
session - the session
transactionName - the transaction name (may be null)
|
| void |
removeTable(MVTable table)
Remove a table.
|
| void |
removeTable(MVTable table)
Remove a table.
Parameters:
table - the table
|
| void |
removeTemporaryMaps(BitField objectIds)
Remove all temporary maps.
|
| void |
removeTemporaryMaps(BitField objectIds)
Remove all temporary maps.
Parameters:
objectIds - the ids of the objects to keep
|
| void |
setCacheSize(int kb)
Set the maximum memory to be used by the cache.
|
| void |
setCacheSize(int kb)
Set the maximum memory to be used by the cache.
Parameters:
kb - the maximum size in KB
|
| Map |
statisticsEnd()
Stop collecting statistics.
|
| Map |
statisticsEnd()
Stop collecting statistics.
Returns:
the statistics
|
| void |
statisticsStart()
Start collecting statistics.
|
| void |
statisticsStart()
Start collecting statistics.
|
| void |
sync()
Force the changes to disk.
|
| void |
sync()
Force the changes to disk.
|
The map of open tables.
Key: the map name, value: the table.