Package io.dialob.program.expr.arith
Interface ArrayReducerOperator<T>
-
- All Superinterfaces:
Expression,Serializable
- All Known Implementing Classes:
ImmutableArrayReducerOperator
@Immutable public interface ArrayReducerOperator<T> extends Expression
-
-
Field Summary
Fields Modifier and Type Field Description static BinaryOperator<Boolean>ALLstatic BinaryOperator<Object>ANSWER_COUNTstatic BinaryOperator<Boolean>ANYstatic BinaryOperator<BigDecimal>DECIMAL_MAXstatic BinaryOperator<BigDecimal>DECIMAL_MINstatic BinaryOperator<BigDecimal>DECIMAL_SUMstatic BinaryOperator<Integer>INTEGER_MAXstatic BinaryOperator<Integer>INTEGER_MINstatic BinaryOperator<Integer>INTEGER_SUM
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static BinaryOperator<Boolean>allOp(ValueType valueType)static BinaryOperator<Boolean>anyOp(ValueType valueType)default @Nullable Objecteval(@NotNull EvalContext evalContext)ExpressiongetArrayExpression()default Set<EventMatcher>getEvalRequiredConditions()default @Nullable ObjectgetPlaceholderValue()BinaryOperator<T>getReducer()default @NotNull ValueTypegetValueType()static BinaryOperator<? extends Number>maxOp(ValueType valueType)static BinaryOperator<? extends Number>minOp(ValueType valueType)static BinaryOperator<? extends Number>sumOp(ValueType valueType)
-
-
-
Field Detail
-
ANSWER_COUNT
static final BinaryOperator<Object> ANSWER_COUNT
-
INTEGER_SUM
static final BinaryOperator<Integer> INTEGER_SUM
-
DECIMAL_SUM
static final BinaryOperator<BigDecimal> DECIMAL_SUM
-
INTEGER_MIN
static final BinaryOperator<Integer> INTEGER_MIN
-
DECIMAL_MIN
static final BinaryOperator<BigDecimal> DECIMAL_MIN
-
INTEGER_MAX
static final BinaryOperator<Integer> INTEGER_MAX
-
DECIMAL_MAX
static final BinaryOperator<BigDecimal> DECIMAL_MAX
-
ANY
static final BinaryOperator<Boolean> ANY
-
ALL
static final BinaryOperator<Boolean> ALL
-
-
Method Detail
-
getReducer
@Parameter BinaryOperator<T> getReducer()
-
getArrayExpression
@Parameter Expression getArrayExpression()
-
getPlaceholderValue
@Default @Nullable default @Nullable Object getPlaceholderValue()
-
eval
@Nullable default @Nullable Object eval(@NotNull @NotNull EvalContext evalContext)
- Specified by:
evalin interfaceExpression
-
getValueType
@NotNull default @NotNull ValueType getValueType()
- Specified by:
getValueTypein interfaceExpression
-
getEvalRequiredConditions
default Set<EventMatcher> getEvalRequiredConditions()
- Specified by:
getEvalRequiredConditionsin interfaceExpression
-
sumOp
static BinaryOperator<? extends Number> sumOp(ValueType valueType)
-
minOp
static BinaryOperator<? extends Number> minOp(ValueType valueType)
-
maxOp
static BinaryOperator<? extends Number> maxOp(ValueType valueType)
-
allOp
static BinaryOperator<Boolean> allOp(ValueType valueType)
-
anyOp
static BinaryOperator<Boolean> anyOp(ValueType valueType)
-
-