org.elasticsearch.index.cache
Class IndexCache

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.cache.IndexCache
All Implemented Interfaces:
ClusterStateListener, CloseableComponent, IndexComponent

public class IndexCache
extends AbstractIndexComponent
implements CloseableComponent, ClusterStateListener


Field Summary
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
IndexCache(Index index, Settings indexSettings, FilterCache filterCache, FieldDataCache fieldDataCache, QueryParserCache queryParserCache, IdCache idCache, BloomCache bloomCache)
           
 
Method Summary
 BloomCache bloomCache()
           
 void clear(org.apache.lucene.index.IndexReader reader)
           
 void clear(String reason)
           
 void close()
           
 void clusterChanged(ClusterChangedEvent event)
          Called when cluster state changes.
 FieldDataCache fieldData()
           
 FilterCache filter()
           
 IdCache idCache()
           
 void invalidateCache()
           
 QueryParserCache queryParserCache()
           
 void setClusterService(ClusterService clusterService)
           
 CacheStats stats()
           
 
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
 

Constructor Detail

IndexCache

@Inject
public IndexCache(Index index,
                         @IndexSettings
                         Settings indexSettings,
                         FilterCache filterCache,
                         FieldDataCache fieldDataCache,
                         QueryParserCache queryParserCache,
                         IdCache idCache,
                         BloomCache bloomCache)
Method Detail

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(String reason)

clusterChanged

public void clusterChanged(ClusterChangedEvent event)
Description copied from interface: ClusterStateListener
Called when cluster state changes.

Specified by:
clusterChanged in interface ClusterStateListener


Copyright © 2009-2012. All Rights Reserved.