public abstract class AbstractDataSetCache extends java.lang.Object implements DataSetCache
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractDataSetCache.Entry |
Constructor and Description |
---|
AbstractDataSetCache() |
Modifier and Type | Method and Description |
---|---|
protected long |
cacheValue(AbstractDataSetCache.Entry e)
return a measure of the utility of the entry, presumably so that it may be
swapped out when a resource limit is met.
|
DataSet |
coalese(java.util.List result)
return the DataSet described by the set of DataSets if possible.
|
boolean |
haveStored(DataSetDescriptor dsd,
CacheTag cacheTag) |
boolean |
isResetCache()
Getter for property resetCache.
|
abstract void |
reset()
reset the internal state of the cache
|
DataSet |
retrieve(DataSetDescriptor dsd,
CacheTag cacheTag) |
void |
setResetCache(boolean resetCache)
Setter for property resetCache.
|
abstract void |
store(DataSetDescriptor dsd,
CacheTag cacheTag,
DataSet data) |
public abstract void store(DataSetDescriptor dsd, CacheTag cacheTag, DataSet data)
store
in interface DataSetCache
public boolean haveStored(DataSetDescriptor dsd, CacheTag cacheTag)
haveStored
in interface DataSetCache
protected long cacheValue(AbstractDataSetCache.Entry e)
public DataSet retrieve(DataSetDescriptor dsd, CacheTag cacheTag)
retrieve
in interface DataSetCache
public abstract void reset()
reset
in interface DataSetCache
public DataSet coalese(java.util.List result)
java.lang.IllegalArgumentException
- if a subset is not continuous,
non-overlapping, and of the same resolution. Removes
elements from the list that are not needed for the set.public boolean isResetCache()
public void setResetCache(boolean resetCache)
resetCache
- New value of property resetCache.