edu.unh.sdb.datasource
Class ThreadedSliceCache

java.lang.Object
  extended by edu.unh.sdb.datasource.BlockCache
      extended by edu.unh.sdb.datasource.ThreadedSliceCache

public class ThreadedSliceCache
extends BlockCache

This cache is meant for use with slice iteration, and performs active prefetching using a separate IO thread.


Nested Class Summary
protected  class ThreadedSliceCache.SliceCacheIOThread
           
 
Field Summary
protected  CacheDataBlock[] blockArray
           
protected  int blockSliceDimension
           
protected  int[] datumCoords
           
protected  int dimensionality
           
protected  ISBounds dsSpaceBounds
           
protected  int[] dsSpaceDimensions
           
protected  ISBounds iterationSpaceBounds
           
protected  int[] iterationSpaceDimensions
           
protected  int lastBlockNumber
           
protected  int[] lowerDSSpaceCoords
           
protected  int[] lowerIterationSpaceCoords
           
protected  int numAttributes
           
protected  int numBlocks
           
protected  ISBounds queryBlockDstBounds
           
protected  int sliceAxis
           
protected  ThreadedSliceCache.SliceCacheIOThread sliceCacheIOThread
           
protected  ISBounds sourceQueryBounds
           
protected  int[] sQBLowerInts
           
protected  int[] sQBUpperInts
           
protected  ISBounds subblockQueryBounds
           
protected  PhysicalDataSource theSource
           
protected  int[] upperDSSpaceCoords
           
protected  int[] upperIterationSpaceCoords
           
protected  int[] upperQueryCoords
           
 
Fields inherited from class edu.unh.sdb.datasource.BlockCache
cacheBlockBounds, cacheBlockDimensions, numCacheBlocks, partitioningDimensions, spacePartitioning, spacePartitioningOrdering, tagAxisWeights
 
Constructor Summary
ThreadedSliceCache(Indexable source, int sliceAxis, IndexSpaceID blockDimensions, ISBounds iteratorSpaceBounds, AxisOrdering cacheBlockOrdering)
           
 
Method Summary
protected  void load(int blockNumber)
           
 
Methods inherited from class edu.unh.sdb.datasource.BlockCache
tagToBounds, tagToPartitioningCoords
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blockArray

protected CacheDataBlock[] blockArray

sliceAxis

protected int sliceAxis

blockSliceDimension

protected int blockSliceDimension

sourceQueryBounds

protected ISBounds sourceQueryBounds

sQBLowerInts

protected int[] sQBLowerInts

sQBUpperInts

protected int[] sQBUpperInts

datumCoords

protected int[] datumCoords

upperQueryCoords

protected int[] upperQueryCoords

numBlocks

protected int numBlocks

lastBlockNumber

protected int lastBlockNumber

sliceCacheIOThread

protected ThreadedSliceCache.SliceCacheIOThread sliceCacheIOThread

subblockQueryBounds

protected ISBounds subblockQueryBounds

queryBlockDstBounds

protected ISBounds queryBlockDstBounds

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

ThreadedSliceCache

public ThreadedSliceCache(Indexable source,
                          int sliceAxis,
                          IndexSpaceID blockDimensions,
                          ISBounds iteratorSpaceBounds,
                          AxisOrdering cacheBlockOrdering)
Method Detail

load

protected void load(int blockNumber)