public class IndexCache extends AbstractIndexComponent implements Closeable, ClusterStateListener
componentSettings, index, indexSettings, logger
Constructor and Description |
---|
IndexCache(Index index,
Settings indexSettings,
FilterCache filterCache,
QueryParserCache queryParserCache,
DocSetCache docSetCache,
FixedBitSetFilterCache fixedBitSetFilterCache) |
Modifier and Type | Method and Description |
---|---|
void |
clear(String reason) |
void |
close() |
void |
clusterChanged(ClusterChangedEvent event)
Called when cluster state changes.
|
DocSetCache |
docSet() |
FilterCache |
filter() |
FixedBitSetFilterCache |
fixedBitSetFilterCache()
Return the
FixedBitSetFilterCache for this index. |
QueryParserCache |
queryParserCache() |
void |
setClusterService(ClusterService clusterService) |
index, nodeName
@Inject public IndexCache(Index index, @IndexSettings Settings indexSettings, FilterCache filterCache, QueryParserCache queryParserCache, DocSetCache docSetCache, FixedBitSetFilterCache fixedBitSetFilterCache)
@Inject(optional=true) public void setClusterService(@Nullable ClusterService clusterService)
public FilterCache filter()
public DocSetCache docSet()
public FixedBitSetFilterCache fixedBitSetFilterCache()
FixedBitSetFilterCache
for this index.public QueryParserCache queryParserCache()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void clear(String reason)
public void clusterChanged(ClusterChangedEvent event)
ClusterStateListener
clusterChanged
in interface ClusterStateListener
Copyright © 2009–2015. All rights reserved.