Class InternalGeoGridBucket<B extends InternalGeoGridBucket>

org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoGridBucket<B>
All Implemented Interfaces:
<InternalGeoGridBucket>, Writeable, org.elasticsearch.common.xcontent.ToXContent, GeoGrid.Bucket, MultiBucketsAggregation.Bucket, HasAggregations
Direct Known Subclasses:
InternalGeoHashGridBucket, InternalGeoTileGridBucket

public abstract class InternalGeoGridBucket<B extends InternalGeoGridBucket> extends InternalMultiBucketAggregation.InternalBucket implements <InternalGeoGridBucket>
  • Field Details

    • hashAsLong

      protected long hashAsLong
    • docCount

      protected long docCount
    • aggregations

      protected InternalAggregations aggregations
  • Constructor Details

    • InternalGeoGridBucket

      public InternalGeoGridBucket(long hashAsLong, long docCount, InternalAggregations aggregations)
    • InternalGeoGridBucket

      public InternalGeoGridBucket(StreamInput in) throws
      Read from a stream.
      Throws:
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • getDocCount

      public long getDocCount()
      Specified by:
      getDocCount in interface MultiBucketsAggregation.Bucket
      Returns:
      The number of documents that fall within this bucket
    • getAggregations

      public Aggregations getAggregations()
      Specified by:
      getAggregations in interface HasAggregations
      Specified by:
      getAggregations in interface MultiBucketsAggregation.Bucket
      Returns:
      The sub-aggregations of this bucket
    • compareTo

      public int compareTo(InternalGeoGridBucket other)
      Specified by:
       in interface <B extends InternalGeoGridBucket>
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
    • equals

      public boolean equals( o)
      Overrides:
       in class 
    • hashCode

      public int hashCode()
      Overrides:
       in class