org.elasticsearch.index.cache.field.data.resident
Class ResidentFieldDataCache

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.cache.field.data.support.AbstractConcurrentMapFieldDataCache
          extended by org.elasticsearch.index.cache.field.data.resident.ResidentFieldDataCache
All Implemented Interfaces:
com.google.common.cache.RemovalListener<String,FieldData>, org.apache.lucene.index.SegmentReader.CoreClosedListener, CloseableComponent, FieldDataCache, IndexComponent

public class ResidentFieldDataCache
extends AbstractConcurrentMapFieldDataCache
implements com.google.common.cache.RemovalListener<String,FieldData>


Field Summary
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
ResidentFieldDataCache(Index index, Settings indexSettings, IndexSettingsService indexSettingsService)
           
 
Method Summary
protected  com.google.common.cache.Cache<String,FieldData> buildFieldDataMap()
           
 void close()
           
 long evictions()
           
 void onRemoval(com.google.common.cache.RemovalNotification<String,FieldData> removalNotification)
           
 String type()
           
 
Methods inherited from class org.elasticsearch.index.cache.field.data.support.AbstractConcurrentMapFieldDataCache
cache, clear, clear, clear, onClose, sizeInBytes, sizeInBytes
 
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
index, nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
 

Constructor Detail

ResidentFieldDataCache

@Inject
public ResidentFieldDataCache(Index index,
                                     @IndexSettings
                                     Settings indexSettings,
                                     IndexSettingsService indexSettingsService)
Method Detail

close

public void close()
           throws ElasticSearchException
Specified by:
close in interface CloseableComponent
Overrides:
close in class AbstractConcurrentMapFieldDataCache
Throws:
ElasticSearchException

buildFieldDataMap

protected com.google.common.cache.Cache<String,FieldData> buildFieldDataMap()
Specified by:
buildFieldDataMap in class AbstractConcurrentMapFieldDataCache

type

public String type()
Specified by:
type in interface FieldDataCache

evictions

public long evictions()
Specified by:
evictions in interface FieldDataCache

onRemoval

public void onRemoval(com.google.common.cache.RemovalNotification<String,FieldData> removalNotification)
Specified by:
onRemoval in interface com.google.common.cache.RemovalListener<String,FieldData>


Copyright © 2009-2012. All Rights Reserved.