public interface AggregationFunctionFactory
Modifier and Type | Method and Description |
---|---|
default void |
applyEnterCodegenManaged(AggregationFunctionFactoryCodegenRowApplyContextManaged context)
Generate code for apply-enter, applicable only for
AggregationFunctionFactoryCodegenType.CODEGEN_MANAGED |
default void |
applyEnterCodegenUnmanaged(AggregationFunctionFactoryCodegenRowApplyContextUnmanaged context)
Generate code for apply-enter, applicable only for
AggregationFunctionFactoryCodegenType.CODEGEN_UNMANAGED |
default void |
applyLeaveCodegenManaged(AggregationFunctionFactoryCodegenRowApplyContextManaged context)
Generate code for apply-leave, applicable only for
AggregationFunctionFactoryCodegenType.CODEGEN_MANAGED |
default void |
applyLeaveCodegenUnmanaged(AggregationFunctionFactoryCodegenRowApplyContextUnmanaged context)
Generate code for apply-leave, applicable only for
AggregationFunctionFactoryCodegenType.CODEGEN_UNMANAGED |
default void |
clearCodegen(AggregationFunctionFactoryCodegenRowClearContext context)
Generate code for clear
|
default AggregationFunctionFactoryCodegenType |
getCodegenType()
Returns the code generation control enum
|
default void |
getValueCodegen(AggregationFunctionFactoryCodegenRowGetValueContext context)
Generate code for get-value
|
java.lang.Class |
getValueType()
Returns the type of the current value.
|
AggregationMethod |
newAggregator()
Make a new, initalized aggregation state.
|
default void |
rowMemberCodegen(AggregationFunctionFactoryCodegenRowMemberContext context)
Generate code for row-members.
|
void |
setFunctionName(java.lang.String functionName)
Sets the EPL function name assigned to the factory.
|
void |
validate(AggregationValidationContext validationContext)
Implemented by plug-in aggregation functions to allow such functions to validate the
type of values passed to the function at statement compile time and to generally
interrogate parameter expressions.
|
void setFunctionName(java.lang.String functionName)
functionName
- assignedvoid validate(AggregationValidationContext validationContext)
validationContext
- expression informationAggregationMethod newAggregator()
java.lang.Class getValueType()
default AggregationFunctionFactoryCodegenType getCodegenType()
default void rowMemberCodegen(AggregationFunctionFactoryCodegenRowMemberContext context)
context
- contextdefault void applyEnterCodegenManaged(AggregationFunctionFactoryCodegenRowApplyContextManaged context)
AggregationFunctionFactoryCodegenType.CODEGEN_MANAGED
context
- contextdefault void applyLeaveCodegenManaged(AggregationFunctionFactoryCodegenRowApplyContextManaged context)
AggregationFunctionFactoryCodegenType.CODEGEN_MANAGED
context
- contextdefault void applyEnterCodegenUnmanaged(AggregationFunctionFactoryCodegenRowApplyContextUnmanaged context)
AggregationFunctionFactoryCodegenType.CODEGEN_UNMANAGED
context
- contextdefault void applyLeaveCodegenUnmanaged(AggregationFunctionFactoryCodegenRowApplyContextUnmanaged context)
AggregationFunctionFactoryCodegenType.CODEGEN_UNMANAGED
context
- contextdefault void clearCodegen(AggregationFunctionFactoryCodegenRowClearContext context)
context
- contextdefault void getValueCodegen(AggregationFunctionFactoryCodegenRowGetValueContext context)
context
- context