edu.unh.sdb.datasource
Class BlockListCache
java.lang.Object
edu.unh.sdb.datasource.BlockListCache
public class BlockListCache
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theSource
protected PhysicalDataSource theSource
dimensionality
protected int dimensionality
numAttributes
protected int numAttributes
iterationSpaceBounds
protected ISBounds iterationSpaceBounds
lowerIterationSpaceCoords
protected int[] lowerIterationSpaceCoords
upperIterationSpaceCoords
protected int[] upperIterationSpaceCoords
iterationSpaceDimensions
protected int[] iterationSpaceDimensions
dsSpaceBounds
protected ISBounds dsSpaceBounds
lowerDSSpaceCoords
protected int[] lowerDSSpaceCoords
upperDSSpaceCoords
protected int[] upperDSSpaceCoords
dsSpaceDimensions
protected int[] dsSpaceDimensions
BlockListCache
public BlockListCache(PhysicalDataSource dataSource,
int numCacheBlocks,
ISBounds listBlockSize)
checkSize
public long checkSize(ISBounds bounds)
lookup
public void lookup(BasicBlock queryBlock,
ISBounds dstBounds,
ISBounds userQueryBounds)
- lookup the cached blocks to see if the the query block is already in
cache. if not it will get it from the cache block, and get neighbor
blocks
lookup
public void lookup(Datum theDatum,
IndexSpaceID id)
setEnumWindow
protected void setEnumWindow(ISBounds[] window)
- set the enum window so that the cache can perform efficient prefetch
getEnumWindow
protected ISBounds[] getEnumWindow()
- return the enum window
setIterator
protected void setIterator(RandomBlockIterator iter)
main
public static void main(java.lang.String[] args)