|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unh.sdb.datasource.DataCollection
edu.unh.sdb.datasource.DataSource
edu.unh.sdb.datasource.CacheDataSource
edu.unh.sdb.datasource.BlockCacheDataSource
public abstract class BlockCacheDataSource
Field Summary |
---|
Fields inherited from class edu.unh.sdb.datasource.DataSource |
---|
fdlDescriptor, isActivated, name, wsName |
Fields inherited from class edu.unh.sdb.datasource.DataCollection |
---|
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc |
Constructor Summary | |
---|---|
BlockCacheDataSource(java.lang.String name,
DataSource ds,
ISBounds iterationSpace,
IndexSpaceID blockDimensions)
Create a BlockCacheDataSource backed by the DataSource given as the second argument. |
Method Summary | |
---|---|
void |
activate()
This method should be overridden by child classes to create the cache object. |
ISBounds |
getCacheBlockBounds()
Return an ISBounds representing the dimensions of the CacheDataBlocks used in in this BlockCacheDataSource. |
ISBounds |
getCacheBlockBounds(IndexSpaceID id)
Returns a new ISBounds representing the bounds of the cacheBlock that contains the given id. |
void |
getCacheBlockBounds(IndexSpaceID id,
ISBounds pBounds)
Sets the ISBounds argument to the bounds of the cacheBlock that contains the given id. |
ISBoundsIterator |
getCacheBlockBoundsIterator()
Returns an ISBoundsIterator that produces bounds corresponding to the cache blocks. |
void |
getCacheBlockBoundsIterator(ISBoundsIterator iter)
Sets the ISBoundsIterator argument so it produces bounds corresponding to the cache blocks. |
IndexSpaceID |
getCacheBlockDimensions()
Return an IndexSpaceID representing the dimensions of the CacheDataBlocks used in in this BlockCacheDataSource. |
long |
getCacheMemoryUsage()
Return the number of bytes consumed by the cache when allocated. |
Methods inherited from class edu.unh.sdb.datasource.CacheDataSource |
---|
datum, datum, datum, deactivate, getIterationSpace, getSource, subblock, subblock |
Methods inherited from class edu.unh.sdb.datasource.DataSource |
---|
checkActivated, clearCache, copyBestID, create, create, create, createRemote, createRemote, createRemoteClient, createRemoteClient, createRemoteDataSource, createRemoteDataSource, createRemoteDataSourceUDP, createRemoteUDP, createRemoteUDP, dumpData, equals, getName, getValues, isActivated, main, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BlockCacheDataSource(java.lang.String name, DataSource ds, ISBounds iterationSpace, IndexSpaceID blockDimensions)
Method Detail |
---|
public void activate()
activate
in class CacheDataSource
public ISBounds getCacheBlockBounds()
public IndexSpaceID getCacheBlockDimensions()
public ISBounds getCacheBlockBounds(IndexSpaceID id)
public void getCacheBlockBounds(IndexSpaceID id, ISBounds pBounds)
public long getCacheMemoryUsage()
public ISBoundsIterator getCacheBlockBoundsIterator()
public void getCacheBlockBoundsIterator(ISBoundsIterator iter)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |