Class OptOutQueryCache
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.xpack.security.authz.accesscontrol.OptOutQueryCache
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.search.QueryCache,org.elasticsearch.index.cache.query.QueryCache,org.elasticsearch.index.IndexComponent
public final class OptOutQueryCache
extends org.elasticsearch.index.AbstractIndexComponent
implements org.elasticsearch.index.cache.query.QueryCache
Opts out of the query cache if field level security is active for the current request, and it is unsafe to cache.
-
Field Summary
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger -
Constructor Summary
ConstructorsConstructorDescriptionOptOutQueryCache(org.elasticsearch.index.IndexSettings indexSettings, org.elasticsearch.indices.IndicesQueryCache indicesQueryCache, org.elasticsearch.common.util.concurrent.ThreadContext context) -
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
-
OptOutQueryCache
public OptOutQueryCache(org.elasticsearch.index.IndexSettings indexSettings, org.elasticsearch.indices.IndicesQueryCache indicesQueryCache, org.elasticsearch.common.util.concurrent.ThreadContext context)
-
-
Method Details
-
close
public void close() throws org.elasticsearch.ElasticsearchException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
org.elasticsearch.ElasticsearchException
-
clear
- Specified by:
clearin interfaceorg.elasticsearch.index.cache.query.QueryCache
-
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
-