java.io.Closeable
, java.lang.AutoCloseable
, org.apache.lucene.search.QueryCache
, QueryCache
, IndexComponent
public class IndexQueryCache extends AbstractIndexComponent implements QueryCache
IndicesQueryCache
.QueryCache.EntriesStats
deprecationLogger, indexSettings, logger
Constructor | Description |
---|---|
IndexQueryCache(IndexSettings indexSettings,
IndicesQueryCache indicesQueryCache) |
Modifier and Type | Method | Description |
---|---|---|
void |
clear(java.lang.String reason) |
|
void |
close() |
|
org.apache.lucene.search.Weight |
doCache(org.apache.lucene.search.Weight weight,
org.apache.lucene.search.QueryCachingPolicy policy) |
getIndexSettings, index
index
public IndexQueryCache(IndexSettings indexSettings, IndicesQueryCache indicesQueryCache)
public void close() throws ElasticsearchException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
ElasticsearchException
public void clear(java.lang.String reason)
clear
in interface QueryCache
public org.apache.lucene.search.Weight doCache(org.apache.lucene.search.Weight weight, org.apache.lucene.search.QueryCachingPolicy policy)
doCache
in interface org.apache.lucene.search.QueryCache