org.elasticsearch.index.cache.field.data.support
Class AbstractConcurrentMapFieldDataCache
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.cache.field.data.support.AbstractConcurrentMapFieldDataCache
- All Implemented Interfaces:
- org.apache.lucene.index.IndexReader.ReaderFinishedListener, CloseableComponent, FieldDataCache, IndexComponent
- Direct Known Subclasses:
- ResidentFieldDataCache, SoftFieldDataCache, WeakFieldDataCache
public abstract class AbstractConcurrentMapFieldDataCache
- extends AbstractIndexComponent
- implements FieldDataCache, org.apache.lucene.index.IndexReader.ReaderFinishedListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractConcurrentMapFieldDataCache
protected AbstractConcurrentMapFieldDataCache(Index index,
@IndexSettings
Settings indexSettings)
close
public void close()
throws ElasticSearchException
- Specified by:
close
in interface CloseableComponent
- Throws:
ElasticSearchException
clear
public void clear()
- Specified by:
clear
in interface FieldDataCache
finished
public void finished(org.apache.lucene.index.IndexReader reader)
- Specified by:
finished
in interface org.apache.lucene.index.IndexReader.ReaderFinishedListener
clear
public void clear(org.apache.lucene.index.IndexReader reader)
- Specified by:
clear
in interface FieldDataCache
sizeInBytes
public long sizeInBytes()
- Specified by:
sizeInBytes
in interface FieldDataCache
sizeInBytes
public long sizeInBytes(java.lang.String fieldName)
- Specified by:
sizeInBytes
in interface FieldDataCache
cache
public FieldData cache(FieldDataType type,
org.apache.lucene.index.IndexReader reader,
java.lang.String fieldName)
throws java.io.IOException
- Specified by:
cache
in interface FieldDataCache
- Throws:
java.io.IOException
buildFieldDataMap
protected java.util.concurrent.ConcurrentMap<java.lang.String,FieldData> buildFieldDataMap()