public class InternalGeoCentroid extends InternalAggregation implements GeoCentroid
GeoCentroidAggregator.InternalAggregation.ReduceContextAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>metaData, nameTYPED_KEYS_DELIMITEREMPTY_PARAMS| Constructor and Description |
|---|
InternalGeoCentroid(StreamInput in)
Read from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
GeoPoint |
centroid() |
long |
count() |
static double |
decodeLatitude(long encodedLatLon) |
static double |
decodeLongitude(long encodedLatLon) |
boolean |
doEquals(java.lang.Object o)
Opportunity for subclasses to add criteria to the
InternalAggregation.equals(Object)
method for this class. |
protected int |
doHashCode()
Opportunity for subclasses to the
InternalAggregation.hashCode() for this
class. |
InternalGeoCentroid |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
static long |
encodeLatLon(double lat,
double lon) |
java.lang.Object |
getProperty(java.util.List<java.lang.String> path) |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
java.lang.String |
toString() |
equals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMetaData, getName, getTypeisFragmenttoXContentpublic InternalGeoCentroid(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic static long encodeLatLon(double lat,
double lon)
public static double decodeLatitude(long encodedLatLon)
public static double decodeLongitude(long encodedLatLon)
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class InternalAggregationjava.io.IOExceptionpublic java.lang.String getWriteableName()
NamedWriteablegetWriteableName in interface NamedWriteablepublic GeoPoint centroid()
centroid in interface GeoCentroidpublic long count()
count in interface GeoCentroidpublic InternalGeoCentroid doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalAggregationpublic java.lang.Object getProperty(java.util.List<java.lang.String> path)
getProperty in class InternalAggregationpublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class InternalAggregationjava.io.IOExceptionpublic boolean doEquals(java.lang.Object o)
InternalAggregationInternalAggregation.equals(Object)
method for this class.
This method can safely cast obj to the subclass since the
InternalAggregation.equals(Object) method checks that obj is the same
class as thisdoEquals in class InternalAggregationprotected int doHashCode()
InternalAggregationInternalAggregation.hashCode() for this
class.doHashCode in class InternalAggregationpublic java.lang.String toString()
toString in class InternalAggregation