public class ConfigurationCompiler
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ConfigurationCompilerPlugInAggregationFunction> |
plugInAggregationFunctions
List of configured plug-in aggregation functions.
|
protected java.util.List<ConfigurationCompilerPlugInAggregationMultiFunction> |
plugInAggregationMultiFunctions
List of configured plug-in aggregation multi-functions.
|
protected java.util.List<ConfigurationCompilerPlugInPatternObject> |
plugInPatternObjects
List of configured plug-in pattern objects.
|
protected java.util.List<ConfigurationCompilerPlugInSingleRowFunction> |
plugInSingleRowFunctions
List of configured plug-in single-row functions.
|
protected java.util.List<ConfigurationCompilerPlugInView> |
plugInViews
List of configured plug-in views.
|
protected java.util.List<ConfigurationCompilerPlugInVirtualDataWindow> |
plugInVirtualDataWindows
List of configured plug-in views.
|
Constructor and Description |
---|
ConfigurationCompiler()
Constructs an empty configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
addPlugInAggregationFunctionForge(java.lang.String functionName,
java.lang.String aggregationForgeClassName)
Adds a plug-in aggregation function given a EPL function name and an aggregation forge class name.
|
void |
addPlugInAggregationMultiFunction(ConfigurationCompilerPlugInAggregationMultiFunction config)
Adds a plug-in aggregation multi-function.
|
void |
addPlugInPatternGuard(java.lang.String namespace,
java.lang.String name,
java.lang.String guardForgeClass)
Add a pattern guard for plug-in.
|
void |
addPlugInPatternObserver(java.lang.String namespace,
java.lang.String name,
java.lang.String observerForgeClass)
Add a pattern event observer for plug-in.
|
void |
addPlugInSingleRowFunction(ConfigurationCompilerPlugInSingleRowFunction singleRowFunction)
Add a plug-in single-row function
|
void |
addPlugInSingleRowFunction(java.lang.String functionName,
java.lang.String className,
java.lang.String methodName)
Adds a plug-in single-row function given a EPL function name, a class name and a method name.
|
void |
addPlugInSingleRowFunction(java.lang.String functionName,
java.lang.String className,
java.lang.String methodName,
ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable filterOptimizable)
Adds a plug-in single-row function given a EPL function name, a class name, method name and setting for value-cache behavior.
|
void |
addPlugInSingleRowFunction(java.lang.String functionName,
java.lang.String className,
java.lang.String methodName,
ConfigurationCompilerPlugInSingleRowFunction.ValueCache valueCache)
Adds a plug-in single-row function given a EPL function name, a class name, method name and setting for value-cache behavior.
|
void |
addPlugInSingleRowFunction(java.lang.String functionName,
java.lang.String className,
java.lang.String methodName,
ConfigurationCompilerPlugInSingleRowFunction.ValueCache valueCache,
ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable filterOptimizable)
Add single-row function with configurations.
|
void |
addPlugInSingleRowFunction(java.lang.String functionName,
java.lang.String className,
java.lang.String methodName,
ConfigurationCompilerPlugInSingleRowFunction.ValueCache valueCache,
ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable filterOptimizable,
boolean rethrowExceptions)
Add single-row function with configurations.
|
void |
addPlugInView(java.lang.String namespace,
java.lang.String name,
java.lang.String viewForgeClass)
Add a view for plug-in.
|
void |
addPlugInVirtualDataWindow(java.lang.String namespace,
java.lang.String name,
java.lang.String forgeClass)
Add a virtual data window for plug-in.
|
void |
addPlugInVirtualDataWindow(java.lang.String namespace,
java.lang.String name,
java.lang.String forgeClass,
java.io.Serializable customConfigurationObject)
Add a virtual data window for plug-in.
|
ConfigurationCompilerByteCode |
getByteCode()
Returns code generation settings
|
ConfigurationCompilerExecution |
getExecution()
Returns statement execution-related settings, settings that
influence event/schedule to statement processing.
|
ConfigurationCompilerExpression |
getExpression()
Returns the expression-related settings for compiler.
|
ConfigurationCompilerLanguage |
getLanguage()
Returns the language-related settings.
|
ConfigurationCompilerLogging |
getLogging()
Returns logging settings applicable to compiler.
|
java.util.List<ConfigurationCompilerPlugInAggregationFunction> |
getPlugInAggregationFunctions()
Returns the list of plug-in aggregation functions.
|
java.util.List<ConfigurationCompilerPlugInAggregationMultiFunction> |
getPlugInAggregationMultiFunctions()
Returns the list of plug-in aggregation multi-functions.
|
java.util.List<ConfigurationCompilerPlugInPatternObject> |
getPlugInPatternObjects()
Returns the list of plug-in pattern objects.
|
java.util.List<ConfigurationCompilerPlugInSingleRowFunction> |
getPlugInSingleRowFunctions()
Returns the list of plug-in single-row functions.
|
java.util.List<ConfigurationCompilerPlugInView> |
getPlugInViews()
Returns the list of plug-in views.
|
java.util.List<ConfigurationCompilerPlugInVirtualDataWindow> |
getPlugInVirtualDataWindows()
Returns the list of plug-in virtual data windows.
|
ConfigurationCompilerScripts |
getScripts()
Returns script settings.
|
ConfigurationCompilerStreamSelection |
getStreamSelection()
Returns settings applicable to streams (insert and remove, insert only or remove only) selected for a statement.
|
ConfigurationCompilerViewResources |
getViewResources()
Returns view resources defaults.
|
protected void |
reset()
Reset to an empty configuration.
|
void |
setByteCode(ConfigurationCompilerByteCode byteCode)
Sets code generation settings
|
void |
setScripts(ConfigurationCompilerScripts scripts)
Sets script settings.
|
protected java.util.List<ConfigurationCompilerPlugInView> plugInViews
protected java.util.List<ConfigurationCompilerPlugInVirtualDataWindow> plugInVirtualDataWindows
protected java.util.List<ConfigurationCompilerPlugInPatternObject> plugInPatternObjects
protected java.util.List<ConfigurationCompilerPlugInAggregationFunction> plugInAggregationFunctions
protected java.util.List<ConfigurationCompilerPlugInAggregationMultiFunction> plugInAggregationMultiFunctions
protected java.util.List<ConfigurationCompilerPlugInSingleRowFunction> plugInSingleRowFunctions
public ConfigurationCompiler()
public void addPlugInAggregationFunctionForge(java.lang.String functionName, java.lang.String aggregationForgeClassName)
The same function name cannot be added twice.
functionName
- is the new aggregation function name for use in EPLaggregationForgeClassName
- is the fully-qualified class name of the class implementing the aggregation function forge interfaceConfigurationException
- is thrown to indicate a problem adding the aggregation functionpublic void addPlugInAggregationMultiFunction(ConfigurationCompilerPlugInAggregationMultiFunction config)
config
- the configurationpublic void addPlugInSingleRowFunction(ConfigurationCompilerPlugInSingleRowFunction singleRowFunction)
singleRowFunction
- configurationpublic void addPlugInSingleRowFunction(java.lang.String functionName, java.lang.String className, java.lang.String methodName)
The same function name cannot be added twice.
functionName
- is the new single-row function name for use in EPLclassName
- is the fully-qualified class name of the class implementing the single-row functionmethodName
- is the public static method provided by the class that implements the single-row functionConfigurationException
- is thrown to indicate a problem adding the single-row functionpublic void addPlugInSingleRowFunction(java.lang.String functionName, java.lang.String className, java.lang.String methodName, ConfigurationCompilerPlugInSingleRowFunction.ValueCache valueCache)
The same function name cannot be added twice.
functionName
- is the new single-row function name for use in EPLclassName
- is the fully-qualified class name of the class implementing the single-row functionmethodName
- is the public static method provided by the class that implements the single-row functionvalueCache
- set the behavior for caching the return value when constant parameters are providedpublic void addPlugInSingleRowFunction(java.lang.String functionName, java.lang.String className, java.lang.String methodName, ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable filterOptimizable)
The same function name cannot be added twice.
functionName
- is the new single-row function name for use in EPLclassName
- is the fully-qualified class name of the class implementing the single-row functionmethodName
- is the public static method provided by the class that implements the single-row functionfilterOptimizable
- whether the single-row function, when used in filters, may be subject to reverse index lookup based on the function resultpublic void addPlugInSingleRowFunction(java.lang.String functionName, java.lang.String className, java.lang.String methodName, ConfigurationCompilerPlugInSingleRowFunction.ValueCache valueCache, ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable filterOptimizable)
functionName
- EPL name of functionclassName
- providing fully-qualified class namemethodName
- providing method namevalueCache
- value cache settingsfilterOptimizable
- settings whether subject to optimizationspublic void addPlugInSingleRowFunction(java.lang.String functionName, java.lang.String className, java.lang.String methodName, ConfigurationCompilerPlugInSingleRowFunction.ValueCache valueCache, ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable filterOptimizable, boolean rethrowExceptions)
functionName
- EPL name of functionclassName
- providing fully-qualified class namemethodName
- providing method namevalueCache
- value cache settingsfilterOptimizable
- settings whether subject to optimizationsrethrowExceptions
- whether to rethrow exceptionspublic java.util.List<ConfigurationCompilerPlugInView> getPlugInViews()
public java.util.List<ConfigurationCompilerPlugInVirtualDataWindow> getPlugInVirtualDataWindows()
public java.util.List<ConfigurationCompilerPlugInAggregationFunction> getPlugInAggregationFunctions()
public java.util.List<ConfigurationCompilerPlugInAggregationMultiFunction> getPlugInAggregationMultiFunctions()
public java.util.List<ConfigurationCompilerPlugInSingleRowFunction> getPlugInSingleRowFunctions()
public java.util.List<ConfigurationCompilerPlugInPatternObject> getPlugInPatternObjects()
public void addPlugInView(java.lang.String namespace, java.lang.String name, java.lang.String viewForgeClass)
namespace
- is the namespace the view should be available undername
- is the name of the viewviewForgeClass
- is the view forge class to usepublic void addPlugInVirtualDataWindow(java.lang.String namespace, java.lang.String name, java.lang.String forgeClass)
namespace
- is the namespace the virtual data window should be available undername
- is the name of the data windowforgeClass
- is the view forge class to usepublic void addPlugInVirtualDataWindow(java.lang.String namespace, java.lang.String name, java.lang.String forgeClass, java.io.Serializable customConfigurationObject)
namespace
- is the namespace the virtual data window should be available undername
- is the name of the data windowforgeClass
- is the view forge class to usecustomConfigurationObject
- additional configuration to be passed alongpublic void addPlugInPatternObserver(java.lang.String namespace, java.lang.String name, java.lang.String observerForgeClass)
namespace
- is the namespace the observer should be available undername
- is the name of the observerobserverForgeClass
- is the observer forge class to usepublic void addPlugInPatternGuard(java.lang.String namespace, java.lang.String name, java.lang.String guardForgeClass)
namespace
- is the namespace the guard should be available undername
- is the name of the guardguardForgeClass
- is the guard forge class to usepublic ConfigurationCompilerByteCode getByteCode()
public void setByteCode(ConfigurationCompilerByteCode byteCode)
byteCode
- settingspublic ConfigurationCompilerStreamSelection getStreamSelection()
public ConfigurationCompilerViewResources getViewResources()
public ConfigurationCompilerLogging getLogging()
public ConfigurationCompilerExpression getExpression()
public ConfigurationCompilerExecution getExecution()
public ConfigurationCompilerScripts getScripts()
public void setScripts(ConfigurationCompilerScripts scripts)
scripts
- script settingspublic ConfigurationCompilerLanguage getLanguage()
protected void reset()