public final class InternalCardinality extends InternalNumericMetricsAggregation.SingleValue implements Cardinality
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValueInternalAggregation.ReduceContextNumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValueAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>formatmetaData, nameTYPED_KEYS_DELIMITEREMPTY_PARAMS| Constructor and Description |
|---|
InternalCardinality(StreamInput in)
Read from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
InternalAggregation |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
long |
getValue()
The number of unique terms.
|
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
void |
merge(InternalCardinality other) |
double |
value() |
getProperty, getValueAsStringgetMetaData, getName, getProperty, getType, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValueAsStringgetMetaData, getName, getTypeisFragment, toXContentpublic InternalCardinality(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class InternalAggregationjava.io.IOExceptionpublic java.lang.String getWriteableName()
NamedWriteablegetWriteableName in interface NamedWriteablepublic double value()
value in interface NumericMetricsAggregation.SingleValuepublic long getValue()
CardinalitygetValue in interface Cardinalitypublic InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalAggregationpublic void merge(InternalCardinality other)
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class InternalAggregationjava.io.IOException