public static class SolrPluginUtils.IdentityRegenerator extends Object implements CacheRegenerator
Flat out copies the oldKey=>oldVal pair into the newCache
| Constructor and Description |
|---|
SolrPluginUtils.IdentityRegenerator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
regenerateItem(SolrIndexSearcher newSearcher,
SolrCache newCache,
SolrCache oldCache,
Object oldKey,
Object oldVal)
Regenerate an old cache item and insert it into
newCache |
public boolean regenerateItem(SolrIndexSearcher newSearcher, SolrCache newCache, SolrCache oldCache, Object oldKey, Object oldVal) throws IOException
CacheRegeneratornewCacheregenerateItem in interface CacheRegeneratornewSearcher - 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 itemIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.