Package com.enonic.xp.query.aggregation

## Class TermsAggregationQuery

- java.lang.Object
- - com.enonic.xp.query.aggregation.AggregationQuery
  - - com.enonic.xp.query.aggregation.BucketAggregationQuery
    - - com.enonic.xp.query.aggregation.TermsAggregationQuery

-     @PublicApi
      public class TermsAggregationQuery
      extends BucketAggregationQuery

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `TermsAggregationQuery.Builder` |
    `static class` | `TermsAggregationQuery.Direction` |
    `static class` | `TermsAggregationQuery.Type` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static int` | `TERM_DEFAULT_SIZE` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static TermsAggregationQuery.Builder` | `create​(String name)` |
    `String` | `getFieldName()` |
    `long` | `getMinDocCount()` |
    `TermsAggregationQuery.Direction` | `getOrderDirection()` |
    `TermsAggregationQuery.Type` | `getOrderType()` |
    `int` | `getSize()` |
    `String` | `toString()` |

    - ### Methods inherited from class com.enonic.xp.query.aggregation.BucketAggregationQuery

      `getSubQueries`

    - ### Methods inherited from class com.enonic.xp.query.aggregation.AggregationQuery

      `getName`

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

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

- - ### Field Detail

    - #### TERM_DEFAULT_SIZE

          public static final int TERM_DEFAULT_SIZE

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### getFieldName

          public String getFieldName()

    - #### getSize

          public int getSize()

    - #### getOrderDirection

          public TermsAggregationQuery.Direction getOrderDirection()

    - #### getOrderType

          public TermsAggregationQuery.Type getOrderType()

    - #### getMinDocCount

          public long getMinDocCount()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### create

          public static TermsAggregationQuery.Builder create​(String name)