Class DisabledQueryCache
- java.lang.Object
-
- org.elasticsearch.index.AbstractIndexComponent
-
- org.elasticsearch.index.cache.query.DisabledQueryCache
-
- All Implemented Interfaces:
Closeable,AutoCloseable,QueryCache,QueryCache,IndexComponent
public class DisabledQueryCache extends AbstractIndexComponent implements QueryCache
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger
-
-
Constructor Summary
Constructors Constructor Description DisabledQueryCache(IndexSettings indexSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear(String reason)voidclose()WeightdoCache(Weight weight, QueryCachingPolicy policy)Return a wrapper around the providedweightthat will cache matching docs per-segment accordingly to the givenpolicy.-
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
getIndexSettings, index
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
-
-
-
-
Constructor Detail
-
DisabledQueryCache
public DisabledQueryCache(IndexSettings indexSettings)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
doCache
public Weight doCache(Weight weight, QueryCachingPolicy policy)
Description copied from interface:QueryCacheReturn a wrapper around the providedweightthat will cache matching docs per-segment accordingly to the givenpolicy. NOTE: The returned weight will only be equivalent if scores are not needed.- Specified by:
doCachein interfaceQueryCache- See Also:
Collector.scoreMode()
-
clear
public void clear(String reason)
- Specified by:
clearin interfaceQueryCache
-
-