Remove compareTerm() method in parsed Significant Terms aggregations
This method has been removed in core (see #24714)
This commit is contained in:
parent
83aa00b3f6
commit
91d7bf474f
|
@ -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);
|
||||||
|
|
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue