Package org.apache.solr.search
Class NoOpRegenerator
java.lang.Object
org.apache.solr.search.NoOpRegenerator
- All Implemented Interfaces:
CacheRegenerator
Cache regenerator that just populates the new cache with the old items.
This is useful for e.g. CachingWrapperFilters that are not invalidated by the creation of a new searcher.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<K,V> boolean regenerateItem(SolrIndexSearcher newSearcher, SolrCache<K, V> newCache, SolrCache<K, V> oldCache, K oldKey, V oldVal) Regenerate an old cache item and insert it intonewCache
-
Constructor Details
-
NoOpRegenerator
public NoOpRegenerator()
-
-
Method Details
-
regenerateItem
public <K,V> boolean regenerateItem(SolrIndexSearcher newSearcher, SolrCache<K, V> newCache, SolrCache<K, throws IOExceptionV> oldCache, K oldKey, V oldVal) Description copied from interface:CacheRegeneratorRegenerate an old cache item and insert it intonewCache- Specified by:
regenerateItemin interfaceCacheRegenerator- Parameters:
newSearcher- the new searcher who's caches are being autowarmednewCache- where regenerated cache items should be stored. the target of the autowarmingoldCache- the old cache being used as a source for autowarmingoldKey- the key of the old cache item to regenerate in the new cacheoldVal- the old value of the cache item- Returns:
- true to continue with autowarming, false to stop
- Throws:
IOException
-