org.elasticsearch.index.cache.field.data.soft
Class SoftFieldDataCache

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

public class SoftFieldDataCache
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
SoftFieldDataCache(Index index, Settings indexSettings)
           
 
Method Summary
protected  java.util.concurrent.ConcurrentMap<java.lang.String,FieldData> buildFieldDataMap()
           
 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, clear, close, 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

SoftFieldDataCache

@Inject
public SoftFieldDataCache(Index index,
                                 @IndexSettings
                                 Settings indexSettings)
Method Detail

buildFieldDataMap

protected java.util.concurrent.ConcurrentMap<java.lang.String,FieldData> buildFieldDataMap()
Overrides:
buildFieldDataMap in class AbstractConcurrentMapFieldDataCache

evictions

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

type

public java.lang.String type()
Specified by:
type 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>