Class AbstractCollectNumberHitPolicyHandler
java.lang.Object
org.camunda.bpm.dmn.engine.impl.hitpolicy.AbstractCollectNumberHitPolicyHandler
- All Implemented Interfaces:
 DmnHitPolicyHandler
- Direct Known Subclasses:
 CollectCountHitPolicyHandler,CollectMaxHitPolicyHandler,CollectMinHitPolicyHandler,CollectSumHitPolicyHandler
public abstract class AbstractCollectNumberHitPolicyHandler
extends Object
implements DmnHitPolicyHandler
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DoubleaggregateDoubleValues(List<Double> doubleValues) protected abstract IntegeraggregateIntegerValues(List<Integer> intValues) protected abstract LongaggregateLongValues(List<Long> longValues) protected TypedValueaggregateNumberValues(List<TypedValue> values) protected TypedValueaggregateValues(List<TypedValue> values) apply(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent) Applies hit policy.protected List<TypedValue>collectSingleValues(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent) convertValuesToDouble(List<TypedValue> typedValues) convertValuesToInteger(List<TypedValue> typedValues) convertValuesToLong(List<TypedValue> typedValues) protected abstract BuiltinAggregatorprotected StringgetResultName(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent) protected TypedValuegetResultValue(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.bpm.dmn.engine.impl.spi.hitpolicy.DmnHitPolicyHandler
getHitPolicyEntry 
- 
Field Details
- 
LOG
 
 - 
 - 
Constructor Details
- 
AbstractCollectNumberHitPolicyHandler
public AbstractCollectNumberHitPolicyHandler() 
 - 
 - 
Method Details
- 
getAggregator
 - 
apply
public DmnDecisionTableEvaluationEvent apply(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent) Description copied from interface:DmnHitPolicyHandlerApplies hit policy. Depending on the hit policy this can mean filtering and sorting of matching rules or aggregating results.- Specified by:
 applyin interfaceDmnHitPolicyHandler- Parameters:
 decisionTableEvaluationEvent- the evaluation event of the decision table- Returns:
 - the final evaluation result
 
 - 
getResultName
 - 
getResultValue
 - 
collectSingleValues
protected List<TypedValue> collectSingleValues(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent)  - 
aggregateValues
 - 
aggregateNumberValues
 - 
aggregateIntegerValues
 - 
aggregateLongValues
 - 
aggregateDoubleValues
 - 
convertValuesToInteger
protected List<Integer> convertValuesToInteger(List<TypedValue> typedValues) throws IllegalArgumentException - Throws:
 IllegalArgumentException
 - 
convertValuesToLong
protected List<Long> convertValuesToLong(List<TypedValue> typedValues) throws IllegalArgumentException - Throws:
 IllegalArgumentException
 - 
convertValuesToDouble
protected List<Double> convertValuesToDouble(List<TypedValue> typedValues) throws IllegalArgumentException - Throws:
 IllegalArgumentException
 
 -