org.elasticsearch.index.cache.filter.soft
Class SoftFilterCache

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.cache.filter.support.AbstractDoubleConcurrentMapFilterCache
          extended by org.elasticsearch.index.cache.filter.soft.SoftFilterCache
All Implemented Interfaces:
CloseableComponent, FilterCache, IndexComponent

public class SoftFilterCache
extends AbstractDoubleConcurrentMapFilterCache

A soft reference based filter cache that has soft keys on the IndexReader.


Field Summary
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
SoftFilterCache(Index index, Settings indexSettings)
           
 
Method Summary
protected  java.util.concurrent.ConcurrentMap<org.apache.lucene.search.Filter,DocSet> buildCacheMap()
           
protected  java.util.concurrent.ConcurrentMap<org.apache.lucene.search.Filter,DocSet> buildWeakCacheMap()
           
 java.lang.String type()
           
 
Methods inherited from class org.elasticsearch.index.cache.filter.support.AbstractDoubleConcurrentMapFilterCache
cache, clear, clear, clearUnreferenced, close, isCached, weakCache
 
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

SoftFilterCache

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

buildCacheMap

protected java.util.concurrent.ConcurrentMap<org.apache.lucene.search.Filter,DocSet> buildCacheMap()
Overrides:
buildCacheMap in class AbstractDoubleConcurrentMapFilterCache

buildWeakCacheMap

protected java.util.concurrent.ConcurrentMap<org.apache.lucene.search.Filter,DocSet> buildWeakCacheMap()
Overrides:
buildWeakCacheMap in class AbstractDoubleConcurrentMapFilterCache

type

public java.lang.String type()