org.optaplanner.core.impl.score.stream.drools.uni

## Class DroolsGroupBy<A,B,ResultContainer,NewB>

- java.lang.Object
- - org.optaplanner.core.impl.score.stream.drools.uni.DroolsGroupBy<A,B,ResultContainer,NewB>

- All Implemented Interfaces:
    Serializable

      public class DroolsGroupBy<A,B,ResultContainer,NewB>
      extends Object
      implements Serializable

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DroolsGroupBy(UniConstraintCollector<B,ResultContainer,NewB> collector)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accumulate(org.drools.core.common.InternalFactHandle handle, A groupKey, B collected)`
    `Set<DroolsGroupByAccumulator.Pair<A,NewB>>` | `getResult()`
    `void` | `init()`
    `void` | `reverse(org.drools.core.common.InternalFactHandle handle)`

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

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

- - ### Constructor Detail

    - #### DroolsGroupBy

          public DroolsGroupBy(UniConstraintCollector<B,ResultContainer,NewB> collector)

  - ### Method Detail

    - #### init

          public void init()

    - #### accumulate

          public void accumulate(org.drools.core.common.InternalFactHandle handle,
                                 A groupKey,
                                 B collected)

    - #### reverse

          public void reverse(org.drools.core.common.InternalFactHandle handle)

    - #### getResult

          public Set<DroolsGroupByAccumulator.Pair<A,NewB>> getResult()

Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.