public final class Store
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
close(int allowedCompactionTime)
Close the store.
|
void |
closeImmediately()
Close the store, without persisting changes.
|
void |
compactFile(int maxCompactTime)
Compact the database file, that is, compact blocks that have a low
fill rate, and move chunks next to each other.
|
MVTable |
createTable(CreateTableData data)
Create a table.
|
void |
flush()
Store all pending changes.
|
java.util.ArrayList<InDoubtTransaction> |
getInDoubtTransactions() |
java.io.InputStream |
getInputStream() |
static DbException |
getInvalidExpressionTypeException(java.lang.String param,
Typed e)
Gets a SQL exception meaning the type of expression is invalid or unknown.
|
MVStore |
getMvStore() |
MVTable |
getTable(java.lang.String tableName)
Get MVTable by table name.
|
TransactionStore |
getTransactionStore() |
java.lang.String |
nextTemporaryMapName()
Get the name of the next available temporary map.
|
void |
prepareCommit(SessionLocal session,
java.lang.String transactionName)
Prepare a transaction.
|
void |
removeTable(MVTable table)
Remove a table.
|
void |
removeTemporaryMaps(java.util.BitSet 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 Store(Database db)
db - the databasepublic static DbException getInvalidExpressionTypeException(java.lang.String param, Typed e)
param - the name of the parametere - the expressionpublic MVStore getMvStore()
public TransactionStore getTransactionStore()
public MVTable getTable(java.lang.String tableName)
tableName - table namepublic MVTable createTable(CreateTableData data)
data - CreateTableDatapublic void removeTable(MVTable table)
table - the tablepublic void flush()
public void closeImmediately()
public void removeTemporaryMaps(java.util.BitSet objectIds)
objectIds - the ids of the objects to keeppublic java.lang.String nextTemporaryMapName()
public void prepareCommit(SessionLocal 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(int maxCompactTime)
maxCompactTime - the maximum time in milliseconds to compactpublic void close(int allowedCompactionTime)
allowedCompactionTime - time (in milliseconds) alloted for file
compaction activity, 0 means no compaction,
-1 means unlimited time (full compaction)public void statisticsStart()
public java.util.Map<java.lang.String,java.lang.Integer> statisticsEnd()