Remove compareTerm() method in parsed Significant Terms aggregations

This method has been removed in core (see #24714)
This commit is contained in:
Tanguy Leroux 2017-05-19 13:20:45 +02:00
parent 83aa00b3f6
commit 91d7bf474f
2 changed files with 0 additions and 10 deletions

View File

@ -66,11 +66,6 @@ public class ParsedSignificantLongTerms extends ParsedSignificantTerms {
return key; return key;
} }
@Override
public int compareTerm(SignificantTerms.Bucket other) {
return key.compareTo(((ParsedBucket) other).key);
}
@Override @Override
protected XContentBuilder keyToXContent(XContentBuilder builder) throws IOException { protected XContentBuilder keyToXContent(XContentBuilder builder) throws IOException {
builder.field(CommonFields.KEY.getPreferredName(), key); builder.field(CommonFields.KEY.getPreferredName(), key);

View File

@ -67,11 +67,6 @@ public class ParsedSignificantStringTerms extends ParsedSignificantTerms {
return Double.parseDouble(key.utf8ToString()); return Double.parseDouble(key.utf8ToString());
} }
@Override
public int compareTerm(SignificantTerms.Bucket other) {
return key.compareTo(((ParsedBucket) other).key);
}
@Override @Override
protected XContentBuilder keyToXContent(XContentBuilder builder) throws IOException { protected XContentBuilder keyToXContent(XContentBuilder builder) throws IOException {
return builder.field(CommonFields.KEY.getPreferredName(), getKey()); return builder.field(CommonFields.KEY.getPreferredName(), getKey());