public abstract class BlockCacheDataSource extends CacheDataSource
fdlDescriptor, isActivated, name, wsName
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc
Constructor and Description |
---|
BlockCacheDataSource(java.lang.String name,
DataSource ds,
ISBounds iterationSpace,
IndexSpaceID blockDimensions)
Create a BlockCacheDataSource backed by the DataSource given as the second argument.
|
Modifier and Type | Method and Description |
---|---|
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.
|
datum, datum, datum, deactivate, getIterationSpace, getSource, subblock, subblock, useBytesOnly
checkActivated, clearCache, copyBestID, create, create, create, createRemote, createRemote, createRemoteClient, createRemoteClient, createRemoteDataSource, createRemoteDataSource, createRemoteDataSourceUDP, createRemoteUDP, createRemoteUDP, dumpData, equals, getFDLDescriptor, getMetadataCollection, getName, getStatistics, getValues, isActivated, main, setMetadataCollection, toString, toString
byteSize, computeOffset, computeOffset, copyBounds, createDataBlock, createDataBlock, createDataBlock, createDatum, createDatum, createDatum, createDatum, createDatum, createDatum, datum, datum, datum, datum, dim, getAttributeNames, getAxisOrdering, getAxisWeight, getAxisWeights, getBounds, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytesByAttribute, getBytesByAttribute, getBytesByPoint, getBytesByPoint, getDataOrder, getDimensionsArray, getDouble, getDoubles, getDoubles, getDoubles, getDoubles, getDoubles, getDoubles, getDoublesByAttribute, getDoublesByAttribute, getDoublesByPoint, getDoublesByPoint, getFloat, getFloats, getFloats, getFloats, getFloats, getFloats, getFloats, getFloatsByAttribute, getFloatsByAttribute, getFloatsByPoint, getFloatsByPoint, getInt, getInts, getInts, getInts, getInts, getInts, getInts, getIntsByAttribute, getIntsByAttribute, getIntsByPoint, getIntsByPoint, getLowerBoundsArray, getNumAttributes, getRecordDescriptor, getShort, getShorts, getShorts, getShorts, getShorts, getShorts, getShorts, getShortsByAttribute, getShortsByAttribute, getShortsByPoint, getShortsByPoint, getStorageType, getUpperBoundsArray, getValues, getValuesByAttribute, getValuesByPoint, longVolume, setAxisOrdering, setBounds, setRecordDescriptor, size, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, volume
public BlockCacheDataSource(java.lang.String name, DataSource ds, ISBounds iterationSpace, IndexSpaceID blockDimensions)
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)