ToXContent, ToXContentFragment, Aggregation, GeoCentroidpublic class ParsedGeoCentroid extends ParsedAggregation implements GeoCentroid
GeoCentroidAggregator.Aggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTYPED_KEYS_DELIMITERmetadataEMPTY_PARAMS| Constructor | Description |
|---|---|
ParsedGeoCentroid() |
| Modifier and Type | Method | 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() |
getMetaData, getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeclareAggregationFields, getMetaData, getName, parseDouble, setName, toXContenttoXContentisFragmentpublic GeoPoint centroid()
centroid in interface GeoCentroidpublic long count()
count in interface GeoCentroidpublic java.lang.String getType()
getType in interface Aggregationpublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class ParsedAggregationjava.io.IOExceptionpublic static ParsedGeoCentroid fromXContent(XContentParser parser, java.lang.String name)