public class ParsedGeoCentroid extends ParsedAggregation implements GeoCentroid
GeoCentroidAggregator
.Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
metadata
TYPED_KEYS_DELIMITER
EMPTY_PARAMS
Constructor and Description |
---|
ParsedGeoCentroid() |
Modifier and Type | Method and Description |
---|---|
GeoPoint |
centroid() |
long |
count() |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
static ParsedGeoCentroid |
fromXContent(XContentParser parser,
java.lang.String name) |
java.lang.String |
getType() |
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName
isFragment, toXContent
public GeoPoint centroid()
centroid
in interface GeoCentroid
public long count()
count
in interface GeoCentroid
public java.lang.String getType()
getType
in interface Aggregation
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ParsedAggregation
java.io.IOException
public static ParsedGeoCentroid fromXContent(XContentParser parser, java.lang.String name)