Class BigIntegerSumAccumulateFunction
- java.lang.Object
-
- org.drools.core.base.accumulators.AbstractAccumulateFunction<BigIntegerSumAccumulateFunction.SumData>
-
- org.drools.core.base.accumulators.BigIntegerSumAccumulateFunction
-
- All Implemented Interfaces:
Externalizable
,Serializable
,org.kie.api.runtime.rule.AccumulateFunction<BigIntegerSumAccumulateFunction.SumData>
public class BigIntegerSumAccumulateFunction extends AbstractAccumulateFunction<BigIntegerSumAccumulateFunction.SumData>
An implementation of an accumulator capable of calculating sum of values- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
BigIntegerSumAccumulateFunction.SumData
-
Constructor Summary
Constructors Constructor Description BigIntegerSumAccumulateFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accumulate(BigIntegerSumAccumulateFunction.SumData data, Object value)
BigIntegerSumAccumulateFunction.SumData
createContext()
Object
getResult(BigIntegerSumAccumulateFunction.SumData data)
Class<?>
getResultType()
void
init(BigIntegerSumAccumulateFunction.SumData data)
void
readExternal(ObjectInput in)
void
reverse(BigIntegerSumAccumulateFunction.SumData data, Object value)
boolean
supportsReverse()
void
writeExternal(ObjectOutput out)
-
Methods inherited from class org.drools.core.base.accumulators.AbstractAccumulateFunction
equals, hashCode
-
-
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Throws:
IOException
-
createContext
public BigIntegerSumAccumulateFunction.SumData createContext()
-
init
public void init(BigIntegerSumAccumulateFunction.SumData data)
-
accumulate
public void accumulate(BigIntegerSumAccumulateFunction.SumData data, Object value)
-
reverse
public void reverse(BigIntegerSumAccumulateFunction.SumData data, Object value)
-
getResult
public Object getResult(BigIntegerSumAccumulateFunction.SumData data)
-
supportsReverse
public boolean supportsReverse()
-
getResultType
public Class<?> getResultType()
-
-