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:
com.google.common.cache.RemovalListener<String,FieldData>, org.apache.lucene.index.SegmentReader.CoreClosedListener, CloseableComponent, FieldDataCache, IndexComponent

public class SoftFieldDataCache
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
SoftFieldDataCache(Index index, Settings indexSettings)
           
 
Method Summary
protected  com.google.common.cache.Cache<String,FieldData> buildFieldDataMap()
           
 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, close, 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

SoftFieldDataCache

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

buildFieldDataMap

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

evictions

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

type

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