org.das2.dataset
Class SimpleDataSetCache

java.lang.Object
  extended by org.das2.dataset.AbstractDataSetCache
      extended by org.das2.dataset.SimpleDataSetCache
All Implemented Interfaces:
DataSetCache

public class SimpleDataSetCache
extends AbstractDataSetCache

simply cache data by storing one per DataSetDescriptor.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.das2.dataset.AbstractDataSetCache
AbstractDataSetCache.Entry
 
Field Summary
protected  java.util.Map buffer
           
 
Fields inherited from class org.das2.dataset.AbstractDataSetCache
hits, misses
 
Constructor Summary
SimpleDataSetCache()
          Creates a new instance of StandardDataStreamCache
 
Method Summary
 boolean haveStoredImpl(DataSetDescriptor dsd, CacheTag cacheTag)
           
 void reset()
          reset the internal state of the cache
 DataSet retrieveImpl(DataSetDescriptor dsd, CacheTag cacheTag)
           
 void store(DataSetDescriptor dsd, CacheTag cacheTag, DataSet data)
           
 java.lang.String toString()
           
 
Methods inherited from class org.das2.dataset.AbstractDataSetCache
cacheValue, coalese, haveStored, isResetCache, retrieve, setResetCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

buffer

protected java.util.Map buffer
Constructor Detail

SimpleDataSetCache

public SimpleDataSetCache()
Creates a new instance of StandardDataStreamCache

Method Detail

store

public void store(DataSetDescriptor dsd,
                  CacheTag cacheTag,
                  DataSet data)
Specified by:
store in interface DataSetCache
Specified by:
store in class AbstractDataSetCache

haveStoredImpl

public boolean haveStoredImpl(DataSetDescriptor dsd,
                              CacheTag cacheTag)

retrieveImpl

public DataSet retrieveImpl(DataSetDescriptor dsd,
                            CacheTag cacheTag)

reset

public void reset()
Description copied from class: AbstractDataSetCache
reset the internal state of the cache

Specified by:
reset in interface DataSetCache
Specified by:
reset in class AbstractDataSetCache

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object