public class ConfigurationCompiler extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected List<ConfigurationCompilerPlugInAggregationFunction> |
plugInAggregationFunctions
List of configured plug-in aggregation functions.
|
protected List<ConfigurationCompilerPlugInAggregationMultiFunction> |
plugInAggregationMultiFunctions
List of configured plug-in aggregation multi-functions.
|
protected List<ConfigurationCompilerPlugInPatternObject> |
plugInPatternObjects
List of configured plug-in pattern objects.
|
protected List<ConfigurationCompilerPlugInSingleRowFunction> |
plugInSingleRowFunctions
List of configured plug-in single-row functions.
|
protected List<ConfigurationCompilerPlugInView> |
plugInViews
List of configured plug-in views.
|
protected 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(String functionName,
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(String namespace,
String name,
String guardForgeClass)
Add a pattern guard for plug-in.
|
void |
addPlugInPatternObserver(String namespace,
String name,
String observerForgeClass)
Add a pattern event observer for plug-in.
|
void |
addPlugInSingleRowFunction(ConfigurationCompilerPlugInSingleRowFunction singleRowFunction)
Add a plug-in single-row function
|
void |
addPlugInSingleRowFunction(String functionName,
String className,
String methodName)
Adds a plug-in single-row function given a EPL function name, a class name and a method name.
|
void |
addPlugInSingleRowFunction(String functionName,
String className,
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(String functionName,
String className,
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(String functionName,
String className,
String methodName,
ConfigurationCompilerPlugInSingleRowFunction.ValueCache valueCache,
ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable filterOptimizable)
Add single-row function with configurations.
|
void |
addPlugInSingleRowFunction(String functionName,
String className,
String methodName,
ConfigurationCompilerPlugInSingleRowFunction.ValueCache valueCache,
ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable filterOptimizable,
boolean rethrowExceptions)
Add single-row function with configurations.
|
void |
addPlugInView(String namespace,
String name,
String viewForgeClass)
Add a view for plug-in.
|
void |
addPlugInVirtualDataWindow(String namespace,
String name,
String forgeClass)
Add a virtual data window for plug-in.
|
void |
addPlugInVirtualDataWindow(String namespace,
String name,
String forgeClass,
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.
|
List<ConfigurationCompilerPlugInAggregationFunction> |
getPlugInAggregationFunctions()
Returns the list of plug-in aggregation functions.
|
List<ConfigurationCompilerPlugInAggregationMultiFunction> |
getPlugInAggregationMultiFunctions()
Returns the list of plug-in aggregation multi-functions.
|
List<ConfigurationCompilerPlugInPatternObject> |
getPlugInPatternObjects()
Returns the list of plug-in pattern objects.
|
List<ConfigurationCompilerPlugInSingleRowFunction> |
getPlugInSingleRowFunctions()
Returns the list of plug-in single-row functions.
|
List<ConfigurationCompilerPlugInView> |
getPlugInViews()
Returns the list of plug-in views.
|
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 List<ConfigurationCompilerPlugInView> plugInViews
protected List<ConfigurationCompilerPlugInVirtualDataWindow> plugInVirtualDataWindows
protected List<ConfigurationCompilerPlugInPatternObject> plugInPatternObjects
protected List<ConfigurationCompilerPlugInAggregationFunction> plugInAggregationFunctions
protected List<ConfigurationCompilerPlugInAggregationMultiFunction> plugInAggregationMultiFunctions
protected List<ConfigurationCompilerPlugInSingleRowFunction> plugInSingleRowFunctions
public ConfigurationCompiler()
public void addPlugInAggregationFunctionForge(String functionName, 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(String functionName, String className, 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(String functionName, String className, 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(String functionName, String className, 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(String functionName, String className, 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(String functionName, String className, 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 List<ConfigurationCompilerPlugInView> getPlugInViews()
public List<ConfigurationCompilerPlugInVirtualDataWindow> getPlugInVirtualDataWindows()
public List<ConfigurationCompilerPlugInAggregationFunction> getPlugInAggregationFunctions()
public List<ConfigurationCompilerPlugInAggregationMultiFunction> getPlugInAggregationMultiFunctions()
public List<ConfigurationCompilerPlugInSingleRowFunction> getPlugInSingleRowFunctions()
public List<ConfigurationCompilerPlugInPatternObject> getPlugInPatternObjects()
public void addPlugInView(String namespace, String name, 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(String namespace, String name, 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(String namespace, String name, String forgeClass, 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(String namespace, String name, 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(String namespace, String name, 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()
Copyright © 2005–2018. All rights reserved.