Class ConfigurationCompilerPlugInSingleRowFunction
java.lang.Object
com.espertech.esper.common.client.configuration.compiler.ConfigurationCompilerPlugInSingleRowFunction
- All Implemented Interfaces:
Serializable
Configuration information for plugging in a custom single-row function.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Controls whether a single-row function is eligible for optimization if it occurs in a filter expression.static enum
Enum for single-row function value cache setting. -
Constructor Summary
ConstructorDescriptionCtor.ConfigurationCompilerPlugInSingleRowFunction
(String name, String functionClassName, String functionMethodName, ConfigurationCompilerPlugInSingleRowFunction.ValueCache valueCache, ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable filterOptimizable, boolean rethrowExceptions, String eventTypeName) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the event type name for functions that returnEventBean
instances.Returns filter optimization settings.Returns the single-row function name.Returns the name of the single-row function.getName()
Returns the single-row function name for use in EPL.Returns the setting for the cache behavior.boolean
Returns indicator whether the runtime re-throws exceptions thrown by the single-row function.void
setEventTypeName
(String eventTypeName) Sets the event type name for functions that returnEventBean
instances.void
setFilterOptimizable
(ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable filterOptimizable) Sets filter optimization settings.void
setFunctionClassName
(String functionClassName) Sets the single-row function's implementation class name.void
setFunctionMethodName
(String functionMethodName) Sets the name of the single-row function.void
Sets the single-row function name for use in EPL.void
setRethrowExceptions
(boolean rethrowExceptions) Sets indicator whether the runtime re-throws exceptions thrown by the single-row function.void
Sets the cache behavior.
-
Constructor Details
-
ConfigurationCompilerPlugInSingleRowFunction
public ConfigurationCompilerPlugInSingleRowFunction(String name, String functionClassName, String functionMethodName, ConfigurationCompilerPlugInSingleRowFunction.ValueCache valueCache, ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable filterOptimizable, boolean rethrowExceptions, String eventTypeName) Ctor.- Parameters:
name
- UDF namefunctionClassName
- class namefunctionMethodName
- method namevalueCache
- value cachefilterOptimizable
- optimizable settingrethrowExceptions
- rethrow settingeventTypeName
- optional event type name
-
ConfigurationCompilerPlugInSingleRowFunction
public ConfigurationCompilerPlugInSingleRowFunction()Ctor.
-
-
Method Details
-
getName
Returns the single-row function name for use in EPL.- Returns:
- single-row function name
-
setName
Sets the single-row function name for use in EPL.- Parameters:
name
- to set
-
getFunctionClassName
Returns the single-row function name.- Returns:
- name
-
setFunctionClassName
Sets the single-row function's implementation class name.- Parameters:
functionClassName
- is the implementation class name
-
getFunctionMethodName
Returns the name of the single-row function.- Returns:
- function name
-
setFunctionMethodName
Sets the name of the single-row function.- Parameters:
functionMethodName
- single-row function name
-
getValueCache
Returns the setting for the cache behavior.- Returns:
- cache behavior
-
setValueCache
Sets the cache behavior.- Parameters:
valueCache
- cache behavior
-
getFilterOptimizable
Returns filter optimization settings.- Returns:
- filter optimization settings
-
setFilterOptimizable
public void setFilterOptimizable(ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable filterOptimizable) Sets filter optimization settings.- Parameters:
filterOptimizable
- filter optimization settings
-
isRethrowExceptions
public boolean isRethrowExceptions()Returns indicator whether the runtime re-throws exceptions thrown by the single-row function. The default is false therefore the runtime by default does not rethrow exceptions.- Returns:
- indicator
-
setRethrowExceptions
public void setRethrowExceptions(boolean rethrowExceptions) Sets indicator whether the runtime re-throws exceptions thrown by the single-row function. The default is false therefore the runtime by default does not rethrow exceptions.- Parameters:
rethrowExceptions
- indicator
-
getEventTypeName
Returns the event type name for functions that returnEventBean
instances.- Returns:
- event type name
-
setEventTypeName
Sets the event type name for functions that returnEventBean
instances.- Parameters:
eventTypeName
- event type name
-