edu.unh.sdb.datasource
Class BlockListCache

java.lang.Object
  extended by edu.unh.sdb.datasource.BlockListCache

public class BlockListCache
extends java.lang.Object


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

Field Detail

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
Constructor Detail

BlockListCache

public BlockListCache(PhysicalDataSource dataSource,
                      int numCacheBlocks,
                      ISBounds listBlockSize)
Method Detail

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)