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:
org.apache.lucene.index.IndexReader.ReaderFinishedListener, org.elasticsearch.common.collect.MapEvictionListener<java.lang.String,FieldData>, CloseableComponent, FieldDataCache, IndexComponent

public class ResidentFieldDataCache
extends AbstractConcurrentMapFieldDataCache
implements org.elasticsearch.common.collect.MapEvictionListener<java.lang.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  java.util.concurrent.ConcurrentMap<java.lang.String,FieldData> buildFieldDataMap()
           
 void close()
           
 long evictions()
           
 void onEviction(java.lang.String s, FieldData fieldData)
           
 java.lang.String type()
           
 
Methods inherited from class org.elasticsearch.index.cache.field.data.support.AbstractConcurrentMapFieldDataCache
cache, clear, clear, finished, 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 java.util.concurrent.ConcurrentMap<java.lang.String,FieldData> buildFieldDataMap()
Overrides:
buildFieldDataMap in class AbstractConcurrentMapFieldDataCache

type

public java.lang.String type()
Specified by:
type in interface FieldDataCache

evictions

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

onEviction

public void onEviction(@Nullable
                       java.lang.String s,
                       @Nullable
                       FieldData fieldData)
Specified by:
onEviction in interface org.elasticsearch.common.collect.MapEvictionListener<java.lang.String,FieldData>