Package | Description |
---|---|
org.optaplanner.core.api.score.stream |
The
ConstraintStream API:
a way to define constraints for Score calculation. |
org.optaplanner.core.api.score.stream.tri |
The
ConstraintStream API for tri-tuples. |
org.optaplanner.core.impl.score.stream.bavet.tri | |
org.optaplanner.core.impl.score.stream.drools.bi | |
org.optaplanner.core.impl.score.stream.drools.quad | |
org.optaplanner.core.impl.score.stream.drools.tri | |
org.optaplanner.core.impl.score.stream.drools.uni | |
org.optaplanner.core.impl.score.stream.tri |
Modifier and Type | Method and Description |
---|---|
static <A,B,C> TriConstraintCollector<A,B,C,?,Integer> |
ConstraintCollectors.countDistinct(TriFunction<A,B,C,?> groupValueMapping) |
static <A,B,C> TriConstraintCollector<A,B,C,?,Long> |
ConstraintCollectors.countDistinctLong(TriFunction<A,B,C,?> groupValueMapping) |
static <A,B,C> TriConstraintCollector<A,B,C,?,Long> |
ConstraintCollectors.countLongTri() |
static <A,B,C> TriConstraintCollector<A,B,C,?,Integer> |
ConstraintCollectors.countTri() |
static <A,B,C,Mapped extends Comparable<Mapped>> |
ConstraintCollectors.max(TriFunction<A,B,C,Mapped> groupValueMapping)
As defined by
ConstraintCollectors.max(Function) . |
static <A,B,C,Mapped> |
ConstraintCollectors.max(TriFunction<A,B,C,Mapped> groupValueMapping,
Comparator<Mapped> comparator)
As defined by
ConstraintCollectors.max(Function) , only with a custom Comparator . |
static <A,B,C,Mapped extends Comparable<Mapped>> |
ConstraintCollectors.min(TriFunction<A,B,C,Mapped> groupValueMapping)
As defined by
ConstraintCollectors.min(Function) . |
static <A,B,C,Mapped> |
ConstraintCollectors.min(TriFunction<A,B,C,Mapped> groupValueMapping,
Comparator<Mapped> comparator)
As defined by
ConstraintCollectors.min(Function) , only with a custom Comparator . |
static <A,B,C> TriConstraintCollector<A,B,C,?,Integer> |
ConstraintCollectors.sum(ToIntTriFunction<? super A,? super B,? super C> groupValueMapping) |
static <A,B,C,Result> |
ConstraintCollectors.sum(TriFunction<? super A,? super B,? super C,Result> groupValueMapping,
Result zero,
BinaryOperator<Result> adder,
BinaryOperator<Result> subtractor) |
static <A,B,C> TriConstraintCollector<A,B,C,?,BigDecimal> |
ConstraintCollectors.sumBigDecimal(TriFunction<? super A,? super B,? super C,BigDecimal> groupValueMapping) |
static <A,B,C> TriConstraintCollector<A,B,C,?,BigInteger> |
ConstraintCollectors.sumBigInteger(TriFunction<? super A,? super B,? super C,BigInteger> groupValueMapping) |
static <A,B,C> TriConstraintCollector<A,B,C,?,Duration> |
ConstraintCollectors.sumDuration(TriFunction<? super A,? super B,? super C,Duration> groupValueMapping) |
static <A,B,C> TriConstraintCollector<A,B,C,?,Long> |
ConstraintCollectors.sumLong(ToLongTriFunction<? super A,? super B,? super C> groupValueMapping) |
static <A,B,C> TriConstraintCollector<A,B,C,?,Period> |
ConstraintCollectors.sumPeriod(TriFunction<? super A,? super B,? super C,Period> groupValueMapping) |
static <A,B,C,Mapped,Result extends Collection<Mapped>> |
ConstraintCollectors.toCollection(TriFunction<A,B,C,Mapped> groupValueMapping,
IntFunction<Result> collectionFunction) |
static <A,B,C,Mapped> |
ConstraintCollectors.toList(TriFunction<A,B,C,Mapped> groupValueMapping)
Creates constraint collector that returns
List of the given element type. |
static <A,B,C,Key,Value> |
ConstraintCollectors.toMap(TriFunction<? super A,? super B,? super C,? extends Key> keyMapper,
TriFunction<? super A,? super B,? super C,? extends Value> valueMapper)
As defined by
ConstraintCollectors.toMap(Function, Function) . |
static <A,B,C,Key,Value> |
ConstraintCollectors.toMap(TriFunction<? super A,? super B,? super C,? extends Key> keyMapper,
TriFunction<? super A,? super B,? super C,? extends Value> valueMapper,
BinaryOperator<Value> mergeFunction)
|
static <A,B,C,Key,Value,ValueSet extends Set<Value>> |
ConstraintCollectors.toMap(TriFunction<? super A,? super B,? super C,? extends Key> keyMapper,
TriFunction<? super A,? super B,? super C,? extends Value> valueMapper,
IntFunction<ValueSet> valueSetFunction)
As defined by
ConstraintCollectors.toMap(Function, Function, IntFunction) . |
static <A,B,C,Mapped> |
ConstraintCollectors.toSet(TriFunction<A,B,C,Mapped> groupValueMapping)
As defined by
ConstraintCollectors.toSet(Function) . |
static <A,B,C,Key extends Comparable<Key>,Value> |
ConstraintCollectors.toSortedMap(TriFunction<? super A,? super B,? super C,? extends Key> keyMapper,
TriFunction<? super A,? super B,? super C,? extends Value> valueMapper)
As defined by
ConstraintCollectors.toSortedMap(Function, Function) . |
static <A,B,C,Key extends Comparable<Key>,Value> |
ConstraintCollectors.toSortedMap(TriFunction<? super A,? super B,? super C,? extends Key> keyMapper,
TriFunction<? super A,? super B,? super C,? extends Value> valueMapper,
BinaryOperator<Value> mergeFunction)
|
static <A,B,C,Key extends Comparable<Key>,Value,ValueSet extends Set<Value>> |
ConstraintCollectors.toSortedMap(TriFunction<? super A,? super B,? super C,? extends Key> keyMapper,
TriFunction<? super A,? super B,? super C,? extends Value> valueMapper,
IntFunction<ValueSet> valueSetFunction)
|
static <A,B,C,Mapped extends Comparable<Mapped>> |
ConstraintCollectors.toSortedSet(TriFunction<A,B,C,Mapped> groupValueMapping)
As defined by
ConstraintCollectors.toSortedSet(Function) . |
Modifier and Type | Method and Description |
---|---|
<ResultContainer_,Result_> |
TriConstraintStream.groupBy(TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector)
Convert the
TriConstraintStream to a UniConstraintStream , containing only a single tuple, the
result of applying TriConstraintCollector . |
<GroupKey_,ResultContainer_,Result_> |
TriConstraintStream.groupBy(TriFunction<A,B,C,GroupKey_> groupKeyMapping,
TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector)
Convert the
TriConstraintStream to a BiConstraintStream , consisting of unique tuples. |
<GroupKeyA_,GroupKeyB_,ResultContainer_,Result_> |
TriConstraintStream.groupBy(TriFunction<A,B,C,GroupKeyA_> groupKeyAMapping,
TriFunction<A,B,C,GroupKeyB_> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector)
Combines the semantics of
TriConstraintStream.groupBy(TriFunction, TriFunction) and TriConstraintStream.groupBy(TriConstraintCollector) . |
<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> |
TriConstraintStream.groupBy(TriFunction<A,B,C,GroupKeyA_> groupKeyAMapping,
TriFunction<A,B,C,GroupKeyB_> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainerC_,ResultC_> collectorC,
TriConstraintCollector<A,B,C,ResultContainerD_,ResultD_> collectorD)
Combines the semantics of
TriConstraintStream.groupBy(TriFunction, TriFunction) and TriConstraintStream.groupBy(TriConstraintCollector) . |
<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> |
TriConstraintStream.groupBy(TriFunction<A,B,C,GroupKeyA_> groupKeyAMapping,
TriFunction<A,B,C,GroupKeyB_> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainerC_,ResultC_> collectorC,
TriConstraintCollector<A,B,C,ResultContainerD_,ResultD_> collectorD)
Combines the semantics of
TriConstraintStream.groupBy(TriFunction, TriFunction) and TriConstraintStream.groupBy(TriConstraintCollector) . |
Modifier and Type | Method and Description |
---|---|
<ResultContainer_,Result_> |
BavetAbstractTriConstraintStream.groupBy(TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector) |
<GroupKey_,ResultContainer_,Result_> |
BavetAbstractTriConstraintStream.groupBy(TriFunction<A,B,C,GroupKey_> groupKeyMapping,
TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector) |
<GroupKeyA_,GroupKeyB_,ResultContainer_,Result_> |
BavetAbstractTriConstraintStream.groupBy(TriFunction<A,B,C,GroupKeyA_> groupKeyAMapping,
TriFunction<A,B,C,GroupKeyB_> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector) |
<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> |
BavetAbstractTriConstraintStream.groupBy(TriFunction<A,B,C,GroupKeyA_> groupKeyAMapping,
TriFunction<A,B,C,GroupKeyB_> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainerC_,ResultC_> collectorC,
TriConstraintCollector<A,B,C,ResultContainerD_,ResultD_> collectorD) |
<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> |
BavetAbstractTriConstraintStream.groupBy(TriFunction<A,B,C,GroupKeyA_> groupKeyAMapping,
TriFunction<A,B,C,GroupKeyB_> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainerC_,ResultC_> collectorC,
TriConstraintCollector<A,B,C,ResultContainerD_,ResultD_> collectorD) |
Constructor and Description |
---|
DroolsGroupingBiConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
DroolsAbstractTriConstraintStream<Solution_,A,B,C> parent,
TriFunction<A,B,C,NewA> groupKeyMapping,
TriConstraintCollector<A,B,C,__,NewB> collector) |
Constructor and Description |
---|
DroolsGroupingQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
DroolsAbstractTriConstraintStream<Solution_,A,B,C> parent,
TriFunction<A,B,C,NewA> groupKeyAMapping,
TriFunction<A,B,C,NewB> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainerC,NewC> collectorC,
TriConstraintCollector<A,B,C,ResultContainerD,NewD> collectorD) |
DroolsGroupingQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
DroolsAbstractTriConstraintStream<Solution_,A,B,C> parent,
TriFunction<A,B,C,NewA> groupKeyAMapping,
TriFunction<A,B,C,NewB> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainerC,NewC> collectorC,
TriConstraintCollector<A,B,C,ResultContainerD,NewD> collectorD) |
Modifier and Type | Method and Description |
---|---|
<NewA,__> DroolsUniCondition<NewA,NewA> |
DroolsTriCondition.andCollect(TriConstraintCollector<A,B,C,__,NewA> collector) |
<NewA,NewB,NewC> |
DroolsTriCondition.andGroupBiWithCollect(TriFunction<A,B,C,NewA> groupKeyAMapping,
TriFunction<A,B,C,NewB> groupKeyBMapping,
TriConstraintCollector<A,B,C,?,NewC> collector) |
<NewA,NewB,NewC,NewD> |
DroolsTriCondition.andGroupBiWithCollectBi(TriFunction<A,B,C,NewA> groupKeyAMapping,
TriFunction<A,B,C,NewB> groupKeyBMapping,
TriConstraintCollector<A,B,C,?,NewC> collectorC,
TriConstraintCollector<A,B,C,?,NewD> collectorD) |
<NewA,NewB,NewC,NewD> |
DroolsTriCondition.andGroupBiWithCollectBi(TriFunction<A,B,C,NewA> groupKeyAMapping,
TriFunction<A,B,C,NewB> groupKeyBMapping,
TriConstraintCollector<A,B,C,?,NewC> collectorC,
TriConstraintCollector<A,B,C,?,NewD> collectorD) |
<NewA,NewB> |
DroolsTriCondition.andGroupWithCollect(TriFunction<A,B,C,NewA> groupKeyMapping,
TriConstraintCollector<A,B,C,?,NewB> collector) |
<ResultContainer_,Result_> |
DroolsAbstractTriConstraintStream.groupBy(TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector) |
<GroupKey_,ResultContainer_,Result_> |
DroolsAbstractTriConstraintStream.groupBy(TriFunction<A,B,C,GroupKey_> groupKeyMapping,
TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector) |
<GroupKeyA_,GroupKeyB_,ResultContainer_,Result_> |
DroolsAbstractTriConstraintStream.groupBy(TriFunction<A,B,C,GroupKeyA_> groupKeyAMapping,
TriFunction<A,B,C,GroupKeyB_> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector) |
<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> |
DroolsAbstractTriConstraintStream.groupBy(TriFunction<A,B,C,GroupKeyA_> groupKeyAMapping,
TriFunction<A,B,C,GroupKeyB_> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainerC_,ResultC_> collectorC,
TriConstraintCollector<A,B,C,ResultContainerD_,ResultD_> collectorD) |
<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> |
DroolsAbstractTriConstraintStream.groupBy(TriFunction<A,B,C,GroupKeyA_> groupKeyAMapping,
TriFunction<A,B,C,GroupKeyB_> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainerC_,ResultC_> collectorC,
TriConstraintCollector<A,B,C,ResultContainerD_,ResultD_> collectorD) |
Constructor and Description |
---|
DroolsGroupingTriConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
DroolsAbstractTriConstraintStream<Solution_,A,B,C> parent,
TriFunction<A,B,C,NewA> groupKeyAMapping,
TriFunction<A,B,C,NewB> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainer_,NewC> collector) |
DroolsTriGroupByAccumulator(TriFunction<A,B,C,NewA> groupKeyAMapping,
TriFunction<A,B,C,NewB> groupKeyBMapping,
TriConstraintCollector<A,B,C,?,NewC> collector,
org.drools.model.Variable<A> aVariable,
org.drools.model.Variable<B> bVariable,
org.drools.model.Variable<C> cVariable) |
DroolsTriToBiGroupByAccumulator(TriFunction<A,B,C,NewA> groupKeyMapping,
TriConstraintCollector<A,B,C,?,NewB> collector,
org.drools.model.Variable<A> aVariable,
org.drools.model.Variable<B> bVariable,
org.drools.model.Variable<C> cVariable) |
DroolsTriToQuadGroupByAccumulator(TriFunction<A,B,C,NewA> groupKeyAMapping,
TriFunction<A,B,C,NewB> groupKeyBMapping,
TriConstraintCollector<A,B,C,?,NewC> collectorC,
TriConstraintCollector<A,B,C,?,NewD> collectorD,
org.drools.model.Variable<A> aVariable,
org.drools.model.Variable<B> bVariable,
org.drools.model.Variable<C> cVariable) |
DroolsTriToQuadGroupByAccumulator(TriFunction<A,B,C,NewA> groupKeyAMapping,
TriFunction<A,B,C,NewB> groupKeyBMapping,
TriConstraintCollector<A,B,C,?,NewC> collectorC,
TriConstraintCollector<A,B,C,?,NewD> collectorD,
org.drools.model.Variable<A> aVariable,
org.drools.model.Variable<B> bVariable,
org.drools.model.Variable<C> cVariable) |
Constructor and Description |
---|
DroolsGroupingUniConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
DroolsAbstractTriConstraintStream<Solution_,A,B,C> parent,
TriConstraintCollector<A,B,C,ResultContainer_,NewA> collector) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultTriConstraintCollector<A,B,C,ResultContainer_,Result_> |
Modifier and Type | Method and Description |
---|---|
static <A,B,C,Result_> |
DefaultTriConstraintCollector.noop() |
Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.