ca.uhn.cache.internal
Interface IChunk

All Known Implementing Classes:
Chunk

public interface IChunk

A block of data that is retrieved and cached together. The boundaries of a IChunk are defined according to QueryParameters. Data items may have attributes such as category, date, name, etc. Some of these, for example category and date, will correspond to QueryParameters. A IChunk is a grouping of data items in the same part of the QueryParameter space. How this space is divided is determined by a ISemanticCache.

Version:
$Revision: 1.1 $ updated on $Date: 2005/01/24 22:53:27 $ by $Author: bryan_tripp $
Author:
Bryan Tripp

Method Summary
 IQuery getBoundaries()
           
 java.util.Date getCacheTime()
           
 java.lang.String getId()
           
 java.util.Date getLastAccessTime()
           
 java.util.Date getLastUpdateTime()
           
 CacheReasonEnum[] getReasons()
           
 VolatilityEnum getVolatility()
           
 

Method Detail

getId

public java.lang.String getId()
Returns:
the unique ID of the chunk

getVolatility

public VolatilityEnum getVolatility()
Returns:
the greatest volatility of all data in the chunk

getLastUpdateTime

public java.util.Date getLastUpdateTime()
Returns:
the most recent time of update of all data in the chunk

getCacheTime

public java.util.Date getCacheTime()
Returns:
the time at which the data in the chunk were cached

getLastAccessTime

public java.util.Date getLastAccessTime()
Returns:
the most recent time at which data in the the chunk were accessed

getReasons

public CacheReasonEnum[] getReasons()
Returns:
a list of reasons why this chunk was cached

getBoundaries

public IQuery getBoundaries()
Returns:
IQuery describing the limits of the chunk TODO: possibly replace with method to see if a data item fits here


Copyright © 2004-2005 University Health Network. All Rights Reserved.