public static class MVTableEngine.Store
extends java.lang.Object
| Constructor and Description |
|---|
Store() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(long maxCompactTime)
Close the store.
|
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 |
flush()
Store all pending changes.
|
java.util.ArrayList<InDoubtTransaction> |
getInDoubtTransactions() |
java.io.InputStream |
getInputStream() |
MVStore |
getStore() |
java.util.HashMap<java.lang.String,MVTable> |
getTables() |
TransactionStore |
getTransactionStore() |
void |
initTransactions()
Commit all transactions that are in the committing state, and
rollback all open transactions.
|
java.lang.String |
nextTemporaryMapName()
Get the name of the next available temporary map.
|
void |
prepareCommit(Session session,
java.lang.String transactionName)
Prepare a transaction.
|
void |
removeTable(MVTable table)
Remove a table.
|
void |
removeTemporaryMaps(BitField objectIds)
Remove all temporary maps.
|
void |
setCacheSize(int kb)
Set the maximum memory to be used by the cache.
|
java.util.Map<java.lang.String,java.lang.Integer> |
statisticsEnd()
Stop collecting statistics.
|
void |
statisticsStart()
Start collecting statistics.
|
void |
sync()
Force the changes to disk.
|
public MVStore getStore()
public TransactionStore getTransactionStore()
public java.util.HashMap<java.lang.String,MVTable> getTables()
public void removeTable(MVTable table)
table - the tablepublic void flush()
public void closeImmediately()
public void initTransactions()
public void removeTemporaryMaps(BitField objectIds)
objectIds - the ids of the objects to keeppublic java.lang.String nextTemporaryMapName()
public void prepareCommit(Session session, java.lang.String transactionName)
session - the sessiontransactionName - the transaction name (may be null)public java.util.ArrayList<InDoubtTransaction> getInDoubtTransactions()
public void setCacheSize(int kb)
kb - the maximum size in KBpublic java.io.InputStream getInputStream()
public void sync()
public void compactFile(long maxCompactTime)
maxCompactTime - the maximum time in milliseconds to compactpublic void close(long maxCompactTime)
maxCompactTime - the maximum time in milliseconds to compactpublic void statisticsStart()
public java.util.Map<java.lang.String,java.lang.Integer> statisticsEnd()