edu.unh.sdb.datasource
Class BlockCache

java.lang.Object
  extended by edu.unh.sdb.datasource.BlockCache
Direct Known Subclasses:
LRUCache, ThreadedSliceCache

public abstract class BlockCache
extends java.lang.Object

The BlockCache class is the parent class for all caches that store blocks of data in memory. Typically, these blocks are read from disk in order to achieve a speedup by reducing the total number of reads made to disk.


Field Summary
protected  ISBounds cacheBlockBounds
           
protected  int[] cacheBlockDimensions
           
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  int numCacheBlocks
           
protected  int[] partitioningDimensions
           
protected  RegularISPartitioning spacePartitioning
           
protected  AxisOrdering spacePartitioningOrdering
           
protected  long[] tagAxisWeights
           
protected  PhysicalDataSource theSource
           
protected  int[] upperDSSpaceCoords
           
protected  int[] upperIterationSpaceCoords
           
 
Method Summary
 ISBounds tagToBounds(long tag, ISBounds bounds)
          Return the bounds of the region in the index space corresponding to the given tag.
 int[] tagToPartitioningCoords(long tag, int[] pcoords)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheBlockBounds

protected ISBounds cacheBlockBounds

cacheBlockDimensions

protected int[] cacheBlockDimensions

spacePartitioning

protected RegularISPartitioning spacePartitioning

tagAxisWeights

protected long[] tagAxisWeights

spacePartitioningOrdering

protected AxisOrdering spacePartitioningOrdering

partitioningDimensions

protected int[] partitioningDimensions

numCacheBlocks

protected int numCacheBlocks

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

tagToBounds

public final ISBounds tagToBounds(long tag,
                                  ISBounds bounds)
Return the bounds of the region in the index space corresponding to the given tag.


tagToPartitioningCoords

public final int[] tagToPartitioningCoords(long tag,
                                           int[] pcoords)