Package org.optaplanner.core.impl.score.stream.drools.bi

## Class DroolsBiToQuadGroupByAccumulator<A,​B,​NewA,​NewB,​NewC,​NewD>

- java.lang.Object
- - org.optaplanner.core.impl.score.stream.drools.common.DroolsAbstractGroupByAccumulator<BiTuple<A,​B>>
  - - org.optaplanner.core.impl.score.stream.drools.bi.DroolsBiToQuadGroupByAccumulator<A,​B,​NewA,​NewB,​NewC,​NewD>

- All Implemented Interfaces:
    `org.drools.core.spi.Accumulator`, `org.drools.core.spi.Invoker`, `org.drools.core.spi.RuleComponent`

      public class DroolsBiToQuadGroupByAccumulator<A,​B,​NewA,​NewB,​NewC,​NewD>
      extends DroolsAbstractGroupByAccumulator<BiTuple<A,​B>>

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.drools.core.spi.Accumulator

      `org.drools.core.spi.Accumulator.SafeAccumulator`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DroolsBiToQuadGroupByAccumulator​(BiFunction<A,​B,​NewA> groupKeyAMapping, BiFunction<A,​B,​NewB> groupKeyBMapping, BiConstraintCollector<A,​B,​?,​NewC> collectorC, BiConstraintCollector<A,​B,​?,​NewD> collectorD, org.drools.model.Variable<A> aVariable, org.drools.model.Variable<B> bVariable)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected <X> BiTuple<A,​B>` | `createInput​(Function<org.drools.model.Variable<X>,​X> valueFinder)` |
    `protected DroolsAbstractGroupBy<BiTuple<A,​B>,​?>` | `newContext()` |

    - ### Methods inherited from class org.optaplanner.core.impl.score.stream.drools.common.DroolsAbstractGroupByAccumulator

      `accumulate, createContext, createWorkingMemoryContext, getResult, getValue, init, materialize, supportsReverse, tryReverse`

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

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

- - ### Constructor Detail

    - #### DroolsBiToQuadGroupByAccumulator

          public DroolsBiToQuadGroupByAccumulator​(BiFunction<A,​B,​NewA> groupKeyAMapping,
                                                  BiFunction<A,​B,​NewB> groupKeyBMapping,
                                                  BiConstraintCollector<A,​B,​?,​NewC> collectorC,
                                                  BiConstraintCollector<A,​B,​?,​NewD> collectorD,
                                                  org.drools.model.Variable<A> aVariable,
                                                  org.drools.model.Variable<B> bVariable)

  - ### Method Detail

    - #### newContext

          protected DroolsAbstractGroupBy<BiTuple<A,​B>,​?> newContext()

      Specified by:
        `newContext` in class `DroolsAbstractGroupByAccumulator<BiTuple<A,​B>>`

    - #### createInput

          protected <X> BiTuple<A,​B> createInput​(Function<org.drools.model.Variable<X>,​X> valueFinder)

      Specified by:
        `createInput` in class `DroolsAbstractGroupByAccumulator<BiTuple<A,​B>>`