org.elasticsearch.index.cache.field.data
Interface FieldDataCache

All Superinterfaces:
CloseableComponent, IndexComponent
All Known Implementing Classes:
AbstractConcurrentMapFieldDataCache, NoneFieldDataCache, ResidentFieldDataCache, SoftFieldDataCache, WeakFieldDataCache

public interface FieldDataCache
extends IndexComponent, CloseableComponent


Method Summary
 FieldData cache(FieldDataType type, org.apache.lucene.index.IndexReader reader, java.lang.String fieldName)
           
 void clear()
           
 void clear(org.apache.lucene.index.IndexReader reader)
           
 void clear(java.lang.String fieldName)
           
 long evictions()
           
 long sizeInBytes()
           
 long sizeInBytes(java.lang.String fieldName)
           
 java.lang.String type()
           
 
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
 
Methods inherited from interface org.elasticsearch.common.component.CloseableComponent
close
 

Method Detail

cache

FieldData cache(FieldDataType type,
                org.apache.lucene.index.IndexReader reader,
                java.lang.String fieldName)
                throws java.io.IOException
Throws:
java.io.IOException

type

java.lang.String type()

clear

void clear(java.lang.String fieldName)

clear

void clear()

clear

void clear(org.apache.lucene.index.IndexReader reader)

evictions

long evictions()

sizeInBytes

long sizeInBytes()

sizeInBytes

long sizeInBytes(java.lang.String fieldName)