MINOR: Remove Dead Code in QueryCache (#36147)
This commit is contained in:
parent
fa4d5f844d
commit
9c49aacbcf
|
@ -23,7 +23,6 @@ import org.apache.lucene.search.QueryCachingPolicy;
|
|||
import org.apache.lucene.search.Weight;
|
||||
import org.elasticsearch.index.AbstractIndexComponent;
|
||||
import org.elasticsearch.index.IndexSettings;
|
||||
import org.elasticsearch.index.cache.query.QueryCache;
|
||||
|
||||
public class DisabledQueryCache extends AbstractIndexComponent implements QueryCache {
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ import org.apache.lucene.search.Weight;
|
|||
import org.elasticsearch.ElasticsearchException;
|
||||
import org.elasticsearch.index.AbstractIndexComponent;
|
||||
import org.elasticsearch.index.IndexSettings;
|
||||
import org.elasticsearch.index.cache.query.QueryCache;
|
||||
import org.elasticsearch.indices.IndicesQueryCache;
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,15 +25,5 @@ import java.io.Closeable;
|
|||
|
||||
public interface QueryCache extends IndexComponent, Closeable, org.apache.lucene.search.QueryCache {
|
||||
|
||||
class EntriesStats {
|
||||
public final long sizeInBytes;
|
||||
public final long count;
|
||||
|
||||
public EntriesStats(long sizeInBytes, long count) {
|
||||
this.sizeInBytes = sizeInBytes;
|
||||
this.count = count;
|
||||
}
|
||||
}
|
||||
|
||||
void clear(String reason);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue