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.quad |
The
ConstraintStream API for four matched facts. |
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.quad |
Modifier and Type | Method and Description |
---|---|
static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Integer> |
ConstraintCollectors.countDistinct(QuadFunction<A,B,C,D,?> groupValueMapping) |
static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Long> |
ConstraintCollectors.countDistinctLong(QuadFunction<A,B,C,D,?> groupValueMapping) |
static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Long> |
ConstraintCollectors.countLongQuad() |
static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Integer> |
ConstraintCollectors.countQuad() |
static <A,B,C,D,Mapped extends Comparable<Mapped>> |
ConstraintCollectors.max(QuadFunction<A,B,C,D,Mapped> groupValueMapping)
As defined by
ConstraintCollectors.max(Function) . |
static <A,B,C,D,Mapped> |
ConstraintCollectors.max(QuadFunction<A,B,C,D,Mapped> groupValueMapping,
Comparator<Mapped> comparator)
As defined by
ConstraintCollectors.max(Function) , only with a custom Comparator . |
static <A,B,C,D,Mapped extends Comparable<Mapped>> |
ConstraintCollectors.min(QuadFunction<A,B,C,D,Mapped> groupValueMapping)
As defined by
ConstraintCollectors.min(Function) . |
static <A,B,C,D,Mapped> |
ConstraintCollectors.min(QuadFunction<A,B,C,D,Mapped> groupValueMapping,
Comparator<Mapped> comparator)
As defined by
ConstraintCollectors.min(Function) , only with a custom Comparator . |
static <A,B,C,D,Result> |
ConstraintCollectors.sum(QuadFunction<? super A,? super B,? super C,? super D,Result> groupValueMapping,
Result zero,
BinaryOperator<Result> adder,
BinaryOperator<Result> subtractor) |
static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Integer> |
ConstraintCollectors.sum(ToIntQuadFunction<? super A,? super B,? super C,? super D> groupValueMapping) |
static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,BigDecimal> |
ConstraintCollectors.sumBigDecimal(QuadFunction<? super A,? super B,? super C,? super D,BigDecimal> groupValueMapping) |
static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,BigInteger> |
ConstraintCollectors.sumBigInteger(QuadFunction<? super A,? super B,? super C,? super D,BigInteger> groupValueMapping) |
static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Duration> |
ConstraintCollectors.sumDuration(QuadFunction<? super A,? super B,? super C,? super D,Duration> groupValueMapping) |
static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Long> |
ConstraintCollectors.sumLong(ToLongQuadFunction<? super A,? super B,? super C,? super D> groupValueMapping) |
static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Period> |
ConstraintCollectors.sumPeriod(QuadFunction<? super A,? super B,? super C,? super D,Period> groupValueMapping) |
static <A,B,C,D,Mapped,Result extends Collection<Mapped>> |
ConstraintCollectors.toCollection(QuadFunction<A,B,C,D,Mapped> groupValueMapping,
IntFunction<Result> collectionFunction) |
static <A,B,C,D,Mapped> |
ConstraintCollectors.toList(QuadFunction<A,B,C,D,Mapped> groupValueMapping)
Creates constraint collector that returns
List of the given element type. |
static <A,B,C,D,Key,Value> |
ConstraintCollectors.toMap(QuadFunction<? super A,? super B,? super C,? super D,? extends Key> keyMapper,
QuadFunction<? super A,? super B,? super C,? super D,? extends Value> valueMapper)
As defined by
ConstraintCollectors.toMap(Function, Function) . |
static <A,B,C,D,Key,Value> |
ConstraintCollectors.toMap(QuadFunction<? super A,? super B,? super C,? super D,? extends Key> keyMapper,
QuadFunction<? super A,? super B,? super C,? super D,? extends Value> valueMapper,
BinaryOperator<Value> mergeFunction)
|
static <A,B,C,D,Key,Value,ValueSet extends Set<Value>> |
ConstraintCollectors.toMap(QuadFunction<? super A,? super B,? super C,? super D,? extends Key> keyMapper,
QuadFunction<? super A,? super B,? super C,? super D,? extends Value> valueMapper,
IntFunction<ValueSet> valueSetFunction)
As defined by
ConstraintCollectors.toMap(Function, Function, IntFunction) . |
static <A,B,C,D,Mapped> |
ConstraintCollectors.toSet(QuadFunction<A,B,C,D,Mapped> groupValueMapping)
As defined by
ConstraintCollectors.toSet(Function) . |
static <A,B,C,D,Key extends Comparable<Key>,Value> |
ConstraintCollectors.toSortedMap(QuadFunction<? super A,? super B,? super C,? super D,? extends Key> keyMapper,
QuadFunction<? super A,? super B,? super C,? super D,? extends Value> valueMapper)
As defined by
ConstraintCollectors.toSortedMap(Function, Function) . |
static <A,B,C,D,Key extends Comparable<Key>,Value> |
ConstraintCollectors.toSortedMap(QuadFunction<? super A,? super B,? super C,? super D,? extends Key> keyMapper,
QuadFunction<? super A,? super B,? super C,? super D,? extends Value> valueMapper,
BinaryOperator<Value> mergeFunction)
|
static <A,B,C,D,Key extends Comparable<Key>,Value,ValueSet extends Set<Value>> |
ConstraintCollectors.toSortedMap(QuadFunction<? super A,? super B,? super C,? super D,? extends Key> keyMapper,
QuadFunction<? super A,? super B,? super C,? super D,? extends Value> valueMapper,
IntFunction<ValueSet> valueSetFunction)
|
static <A,B,C,D,Mapped extends Comparable<Mapped>> |
ConstraintCollectors.toSortedSet(QuadFunction<A,B,C,D,Mapped> groupValueMapping)
As defined by
ConstraintCollectors.toSortedSet(Function) . |
Modifier and Type | Method and Description |
---|---|
<ResultContainer_,Result_> |
QuadConstraintStream.groupBy(QuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> collector)
Convert the
QuadConstraintStream to a UniConstraintStream , containing only a single tuple, the
result of applying QuadConstraintCollector . |
<GroupKey_,ResultContainer_,Result_> |
QuadConstraintStream.groupBy(QuadFunction<A,B,C,D,GroupKey_> groupKeyMapping,
QuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> collector)
Convert the
QuadConstraintStream to a BiConstraintStream , consisting of unique tuples. |
<GroupKeyA_,GroupKeyB_,ResultContainer_,Result_> |
QuadConstraintStream.groupBy(QuadFunction<A,B,C,D,GroupKeyA_> groupKeyAMapping,
QuadFunction<A,B,C,D,GroupKeyB_> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> collector)
Combines the semantics of
QuadConstraintStream.groupBy(QuadFunction, QuadFunction) and
QuadConstraintStream.groupBy(QuadConstraintCollector) . |
<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> |
QuadConstraintStream.groupBy(QuadFunction<A,B,C,D,GroupKeyA_> groupKeyAMapping,
QuadFunction<A,B,C,D,GroupKeyB_> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,ResultContainerC_,ResultC_> collectorC,
QuadConstraintCollector<A,B,C,D,ResultContainerD_,ResultD_> collectorD)
Combines the semantics of
QuadConstraintStream.groupBy(QuadFunction, QuadFunction) and
QuadConstraintStream.groupBy(QuadConstraintCollector) . |
<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> |
QuadConstraintStream.groupBy(QuadFunction<A,B,C,D,GroupKeyA_> groupKeyAMapping,
QuadFunction<A,B,C,D,GroupKeyB_> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,ResultContainerC_,ResultC_> collectorC,
QuadConstraintCollector<A,B,C,D,ResultContainerD_,ResultD_> collectorD)
Combines the semantics of
QuadConstraintStream.groupBy(QuadFunction, QuadFunction) and
QuadConstraintStream.groupBy(QuadConstraintCollector) . |
Constructor and Description |
---|
DroolsGroupingBiConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent,
QuadFunction<A,B,C,D,NewA> groupKeyMapping,
QuadConstraintCollector<A,B,C,D,__,NewB> collector) |
Modifier and Type | Method and Description |
---|---|
<NewA,__> DroolsUniCondition<NewA,NewA> |
DroolsQuadCondition.andCollect(QuadConstraintCollector<A,B,C,D,__,NewA> collector) |
<NewA,NewB,NewC,__> |
DroolsQuadCondition.andGroupBiWithCollect(QuadFunction<A,B,C,D,NewA> groupKeyAMapping,
QuadFunction<A,B,C,D,NewB> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,__,NewC> collector) |
<NewA,NewB,NewC,NewD> |
DroolsQuadCondition.andGroupBiWithCollectBi(QuadFunction<A,B,C,D,NewA> groupKeyAMapping,
QuadFunction<A,B,C,D,NewB> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,?,NewC> collectorC,
QuadConstraintCollector<A,B,C,D,?,NewD> collectorD) |
<NewA,NewB,NewC,NewD> |
DroolsQuadCondition.andGroupBiWithCollectBi(QuadFunction<A,B,C,D,NewA> groupKeyAMapping,
QuadFunction<A,B,C,D,NewB> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,?,NewC> collectorC,
QuadConstraintCollector<A,B,C,D,?,NewD> collectorD) |
<NewA,NewB,__> |
DroolsQuadCondition.andGroupWithCollect(QuadFunction<A,B,C,D,NewA> groupKeyMapping,
QuadConstraintCollector<A,B,C,D,__,NewB> collector) |
<ResultContainer_,Result_> |
DroolsAbstractQuadConstraintStream.groupBy(QuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> collector) |
<GroupKey_,ResultContainer_,Result_> |
DroolsAbstractQuadConstraintStream.groupBy(QuadFunction<A,B,C,D,GroupKey_> groupKeyMapping,
QuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> collector) |
<GroupKeyA_,GroupKeyB_,ResultContainer_,Result_> |
DroolsAbstractQuadConstraintStream.groupBy(QuadFunction<A,B,C,D,GroupKeyA_> groupKeyAMapping,
QuadFunction<A,B,C,D,GroupKeyB_> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> collector) |
<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> |
DroolsAbstractQuadConstraintStream.groupBy(QuadFunction<A,B,C,D,GroupKeyA_> groupKeyAMapping,
QuadFunction<A,B,C,D,GroupKeyB_> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,ResultContainerC_,ResultC_> collectorC,
QuadConstraintCollector<A,B,C,D,ResultContainerD_,ResultD_> collectorD) |
<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> |
DroolsAbstractQuadConstraintStream.groupBy(QuadFunction<A,B,C,D,GroupKeyA_> groupKeyAMapping,
QuadFunction<A,B,C,D,GroupKeyB_> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,ResultContainerC_,ResultC_> collectorC,
QuadConstraintCollector<A,B,C,D,ResultContainerD_,ResultD_> collectorD) |
Constructor and Description |
---|
DroolsGroupingQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent,
QuadFunction<A,B,C,D,NewA> groupKeyAMapping,
QuadFunction<A,B,C,D,NewB> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,ResultContainerC,NewC> collectorC,
QuadConstraintCollector<A,B,C,D,ResultContainerD,NewD> collectorD) |
DroolsGroupingQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent,
QuadFunction<A,B,C,D,NewA> groupKeyAMapping,
QuadFunction<A,B,C,D,NewB> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,ResultContainerC,NewC> collectorC,
QuadConstraintCollector<A,B,C,D,ResultContainerD,NewD> collectorD) |
DroolsQuadGroupByAccumulator(QuadFunction<A,B,C,D,NewA> groupKeyAMapping,
QuadFunction<A,B,C,D,NewB> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,?,NewC> collectorC,
QuadConstraintCollector<A,B,C,D,?,NewD> collectorD,
org.drools.model.Variable<A> aVariable,
org.drools.model.Variable<B> bVariable,
org.drools.model.Variable<C> cVariable,
org.drools.model.Variable<D> dVariable) |
DroolsQuadGroupByAccumulator(QuadFunction<A,B,C,D,NewA> groupKeyAMapping,
QuadFunction<A,B,C,D,NewB> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,?,NewC> collectorC,
QuadConstraintCollector<A,B,C,D,?,NewD> collectorD,
org.drools.model.Variable<A> aVariable,
org.drools.model.Variable<B> bVariable,
org.drools.model.Variable<C> cVariable,
org.drools.model.Variable<D> dVariable) |
DroolsQuadToBiGroupByAccumulator(QuadFunction<A,B,C,D,NewA> groupKeyMapping,
QuadConstraintCollector<A,B,C,D,?,NewB> collector,
org.drools.model.Variable<A> aVariable,
org.drools.model.Variable<B> bVariable,
org.drools.model.Variable<C> cVariable,
org.drools.model.Variable<D> dVariable) |
DroolsQuadToTriGroupByAccumulator(QuadFunction<A,B,C,D,NewA> groupKeyAMapping,
QuadFunction<A,B,C,D,NewB> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,?,NewC> collector,
org.drools.model.Variable<A> aVariable,
org.drools.model.Variable<B> bVariable,
org.drools.model.Variable<C> cVariable,
org.drools.model.Variable<D> dVariable) |
Constructor and Description |
---|
DroolsGroupingTriConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent,
QuadFunction<A,B,C,D,NewA> groupKeyAMapping,
QuadFunction<A,B,C,D,NewB> groupKeyBMapping,
QuadConstraintCollector<A,B,C,D,ResultContainer_,NewC> collector) |
Constructor and Description |
---|
DroolsGroupingUniConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent,
QuadConstraintCollector<A,B,C,D,ResultContainer_,NewA> collector) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultQuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> |
Modifier and Type | Method and Description |
---|---|
static <A,B,C,D,Result_> |
DefaultQuadConstraintCollector.noop() |
Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.