| org.apache.solr.search.CacheRegenerator
CacheRegenerator | public interface CacheRegenerator (Code) | | Implementations of CacheRegenerator are used in autowarming to populate a new cache
based on an old cache. regenerateItem is called for each item that should be inserted into the new cache.
Implementations should have a noarg constructor and be thread safe (a single instance will be
used for all cache autowarmings).
author: yonik version: $Id: CacheRegenerator.java 472574 2006-11-08 18:25:52Z yonik $ |
Method Summary | |
public boolean | regenerateItem(SolrIndexSearcher newSearcher, SolrCache newCache, SolrCache oldCache, Object oldKey, Object oldVal) Regenerate an old cache item and insert it into newCache
Parameters: newSearcher - the new searcher who's caches are being autowarmed Parameters: newCache - where regenerated cache items should be stored. |
regenerateItem | public boolean regenerateItem(SolrIndexSearcher newSearcher, SolrCache newCache, SolrCache oldCache, Object oldKey, Object oldVal) throws IOException(Code) | | Regenerate an old cache item and insert it into newCache
Parameters: newSearcher - the new searcher who's caches are being autowarmed Parameters: newCache - where regenerated cache items should be stored. the target of the autowarming Parameters: oldCache - the old cache being used as a source for autowarming Parameters: oldKey - the key of the old cache item to regenerate in the new cache Parameters: oldVal - the old value of the cache item true to continue with autowarming, false to stop |
|
|