|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.buffer.storage.memory.MemoryStorageManager
public class MemoryStorageManager
Field Summary |
---|
Fields inherited from interface com.metamatrix.common.buffer.StorageManager |
---|
TYPE_DATABASE, TYPE_FILE, TYPE_MEMORY, TYPE_REMOTE |
Constructor Summary | |
---|---|
MemoryStorageManager()
|
Method Summary | |
---|---|
void |
addBatch(TupleSourceID storageID,
TupleBatch batch,
java.lang.String[] types)
Add a batch to the storage manager. |
TupleBatch |
getBatch(TupleSourceID storageID,
int beginRow,
java.lang.String[] types)
Returns a batch of tuples, starting at row beginRow. |
int |
getStorageType()
Get the type of storage as defined by constants. |
void |
initialize(java.util.Properties props)
Initialize the storage manager given the specified properties. |
void |
removeBatch(TupleSourceID sourceID,
int beginRow)
Remove a batch from this storage as specified. |
void |
removeBatches(TupleSourceID storageID)
Remove all batches for the specified tuple source. |
void |
shutdown()
Shut down the Storage Manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryStorageManager()
Method Detail |
---|
public void initialize(java.util.Properties props) throws MetaMatrixComponentException
StorageManager
initialize
in interface StorageManager
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)StorageManager.initialize(Properties)
public int getStorageType()
StorageManager
getStorageType
in interface StorageManager
StorageManager.getStorageType()
public void addBatch(TupleSourceID storageID, TupleBatch batch, java.lang.String[] types) throws MetaMatrixComponentException
StorageManager
addBatch
in interface StorageManager
types
- a hint to the StorageManager about the types of data in the batch
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)StorageManager#addBatch(TupleSourceID, TupleBatch)
public TupleBatch getBatch(TupleSourceID storageID, int beginRow, java.lang.String[] types) throws TupleSourceNotFoundException, MetaMatrixComponentException
StorageManager
getBatch
in interface StorageManager
types
- a hint to the StorageManager about the types of data in the batch
TupleSourceNotFoundException
- indicating the sourceID is unknown
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)StorageManager#getBatch(TupleSourceID, int, int)
public void removeBatch(TupleSourceID sourceID, int beginRow) throws TupleSourceNotFoundException, MetaMatrixComponentException
StorageManager
removeBatch
in interface StorageManager
TupleSourceNotFoundException
- indicating the sourceID is unknown
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)com.metamatrix.common.buffer.StorageManager#removeBatch(TupleSourceID, int, int)
public void removeBatches(TupleSourceID storageID) throws MetaMatrixComponentException
StorageManager
removeBatches
in interface StorageManager
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)StorageManager#removeStorageArea(TupleSourceID)
public void shutdown()
StorageManager
shutdown
in interface StorageManager
StorageManager.shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |