public static class MVTableEngine.Store extends 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.
|
ArrayList<InDoubtTransaction> |
getInDoubtTransactions() |
InputStream |
getInputStream() |
MVStore |
getStore() |
HashMap<String,MVTable> |
getTables() |
TransactionStore |
getTransactionStore() |
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.
|
void |
prepareCommit(Session session,
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.
|
Map<String,Integer> |
statisticsEnd()
Stop collecting statistics.
|
void |
statisticsStart()
Start collecting statistics.
|
void |
sync()
Force the changes to disk.
|
public MVStore getStore()
public TransactionStore getTransactionStore()
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 String nextTemporaryMapName()
public void prepareCommit(Session session, String transactionName)
session
- the sessiontransactionName
- the transaction name (may be null)public ArrayList<InDoubtTransaction> getInDoubtTransactions()
public void setCacheSize(int kb)
kb
- the maximum size in KBpublic 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()
Copyright © 2020 JBoss by Red Hat. All rights reserved.