Class IndexQueryCache
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.cache.query.IndexQueryCache
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.lucene.search.QueryCache,QueryCache,IndexComponent
public class IndexQueryCache extends AbstractIndexComponent implements QueryCache
The index-level query cache. This class mostly delegates to the node-level
query cache:
IndicesQueryCache.-
Field Summary
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger -
Constructor Summary
Constructors Constructor Description IndexQueryCache(IndexSettings indexSettings, IndicesQueryCache indicesQueryCache) -
Method Summary
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
getIndexSettings, indexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.IndexComponent
index
-
Constructor Details
-
IndexQueryCache
-
-
Method Details
-
close
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
ElasticsearchException
-
clear
public void clear(java.lang.String reason)- Specified by:
clearin interfaceQueryCache
-
doCache
public org.apache.lucene.search.Weight doCache(org.apache.lucene.search.Weight weight, org.apache.lucene.search.QueryCachingPolicy policy)- Specified by:
doCachein interfaceorg.apache.lucene.search.QueryCache
-