Package com.enonic.xp.aggregation

## Class Bucket

- java.lang.Object
- - com.enonic.xp.aggregation.Bucket

- Direct Known Subclasses:
    `DateHistogramBucket`, `DateRangeBucket`, `GeoDistanceRangeBucket`, `NumericRangeBucket`

      @PublicApi
      public class Bucket
      extends Object

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `Bucket.Builder<T extends Bucket.Builder>` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static Bucket.Builder` | `create()` |
    `long` | `getDocCount()` |
    `String` | `getKey()` |
    `Aggregations` | `getSubAggregations()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getKey

          public String getKey()

    - #### getDocCount

          public long getDocCount()

    - #### getSubAggregations

          public Aggregations getSubAggregations()

    - #### create

          public static Bucket.Builder create()