public static class SolrPluginUtils.IdentityRegenerator extends java.lang.Object implements CacheRegenerator
Flat out copies the oldKey=>oldVal pair into the newCache
| Constructor and Description |
|---|
IdentityRegenerator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
regenerateItem(SolrIndexSearcher newSearcher,
SolrCache newCache,
SolrCache oldCache,
java.lang.Object oldKey,
java.lang.Object oldVal)
Regenerate an old cache item and insert it into
newCache |
public boolean regenerateItem(SolrIndexSearcher newSearcher, SolrCache newCache, SolrCache oldCache, java.lang.Object oldKey, java.lang.Object oldVal) throws java.io.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 itemjava.io.IOException