org.elasticsearch.index.cache
Class IndexCache
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.cache.IndexCache
- All Implemented Interfaces:
- ClusterStateListener, CloseableComponent, IndexComponent
public class IndexCache
- extends AbstractIndexComponent
- implements CloseableComponent, ClusterStateListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexCache
@Inject
public IndexCache(Index index,
@IndexSettings
Settings indexSettings,
FilterCache filterCache,
FieldDataCache fieldDataCache,
QueryParserCache queryParserCache,
IdCache idCache,
BloomCache bloomCache)
setClusterService
@Inject(optional=true)
public void setClusterService(@Nullable
ClusterService clusterService)
invalidateCache
public void invalidateCache()
stats
public CacheStats stats()
filter
public FilterCache filter()
fieldData
public FieldDataCache fieldData()
idCache
public IdCache idCache()
bloomCache
public BloomCache bloomCache()
queryParserCache
public QueryParserCache queryParserCache()
close
public void close()
throws ElasticSearchException
- Specified by:
close
in interface CloseableComponent
- Throws:
ElasticSearchException
clear
public void clear(org.apache.lucene.index.IndexReader reader)
clear
public void clear()
clusterChanged
public void clusterChanged(ClusterChangedEvent event)
- Description copied from interface:
ClusterStateListener
- Called when cluster state changes.
- Specified by:
clusterChanged
in interface ClusterStateListener