MINOR: Remove Dead Code in QueryCache (#36147)

This commit is contained in:
Armin Braun 2018-12-03 10:02:35 +01:00 committed by GitHub
parent fa4d5f844d
commit 9c49aacbcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 12 deletions

View File

@ -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 {

View File

@ -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;
/**

View File

@ -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);
}