Aggregations: fixed value count so it can be used in terms order
Closes #7050
This commit is contained in:
parent
2e9ee5c937
commit
f7b7f67522
|
@ -30,7 +30,7 @@ import java.io.IOException;
|
||||||
/**
|
/**
|
||||||
* An internal implementation of {@link ValueCount}.
|
* An internal implementation of {@link ValueCount}.
|
||||||
*/
|
*/
|
||||||
public class InternalValueCount extends InternalNumericMetricsAggregation implements ValueCount {
|
public class InternalValueCount extends InternalNumericMetricsAggregation.SingleValue implements ValueCount {
|
||||||
|
|
||||||
public static final Type TYPE = new Type("value_count", "vcount");
|
public static final Type TYPE = new Type("value_count", "vcount");
|
||||||
|
|
||||||
|
@ -61,6 +61,11 @@ public class InternalValueCount extends InternalNumericMetricsAggregation implem
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public double value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Type type() {
|
public Type type() {
|
||||||
return TYPE;
|
return TYPE;
|
||||||
|
|
Loading…
Reference in New Issue