org.eclipse.viatra.query.runtime.matchers.aggregators

## Class count

- java.lang.Object
- - org.eclipse.viatra.query.runtime.matchers.aggregators.count

- All Implemented Interfaces:
    IAggregatorFactory

      public final class count
      extends java.lang.Object
      implements IAggregatorFactory

  An aggregator to count the number of matches a pattern has. The return of the aggregator is an non-negative integer number.
  Since:
    1.4

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `count()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `BoundAggregator` | `getAggregatorLogic(java.lang.Class<?> domainClass)` Given type parameters selected from `AggregatorType` annotations, returns a run-time aggregator operator that is bound to the actual types.

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

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

- - ### Constructor Detail

    - #### count

          public count()

  - ### Method Detail

    - #### getAggregatorLogic

          public BoundAggregator getAggregatorLogic(java.lang.Class<?> domainClass)

      Description copied from interface: `IAggregatorFactory`
      Given type parameters selected from `AggregatorType` annotations, returns a run-time aggregator operator that is bound to the actual types.
      Specified by:
        `getAggregatorLogic` in interface `IAggregatorFactory`
      Parameters:
        `domainClass` - Java type of the values that are being aggregated
      Returns:
        the actual run-time aggregator logic, with type bindings