Package com.enonic.xp.aggregation

## Class Aggregation

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

- Direct Known Subclasses:
    `BucketAggregation`, `MetricAggregation`

      @PublicApi
      public abstract class Aggregation
      extends Object

- - ### Nested Class Summary

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

  - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---
    `protected` | `Aggregation​(Aggregation.Builder<?> builder)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static BucketAggregation.Builder` | `bucketAggregation​(String name)` |
    `String` | `getName()` |
    `Aggregations` | `getSubAggregations()` |

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

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

- - ### Constructor Detail

    - #### Aggregation

          protected Aggregation​(Aggregation.Builder<?> builder)

  - ### Method Detail

    - #### getSubAggregations

          public Aggregations getSubAggregations()

    - #### getName

          public String getName()

    - #### bucketAggregation

          public static BucketAggregation.Builder bucketAggregation​(String name)