|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EngineImportService
Service for engine-level resolution of static methods and aggregation methods.
Field Summary | |
---|---|
static java.lang.String |
EXT_SINGLEROW_FUNCTION_TRANSPOSE
|
Method Summary | |
---|---|
void |
addAggregation(java.lang.String functionName,
ConfigurationPlugInAggregationFunction aggregationDesc)
Add an aggregation function. |
void |
addAggregationMultiFunction(ConfigurationPlugInAggregationMultiFunction desc)
|
void |
addImport(java.lang.String importName)
Add an import, such as "com.mypackage.*" or "com.mypackage.MyClass". |
void |
addSingleRow(java.lang.String functionName,
java.lang.String singleRowFuncClass,
java.lang.String methodName,
ConfigurationPlugInSingleRowFunction.ValueCache valueCache,
ConfigurationPlugInSingleRowFunction.FilterOptimizable filterOptimizable,
boolean rethrowExceptions)
Add an single-row function. |
ConfigurationMethodRef |
getConfigurationMethodRef(java.lang.String className)
Returns the method invocation caches for the from-clause for a class. |
java.math.MathContext |
getDefaultMathContext()
|
boolean |
isDuckType()
|
boolean |
isSortUsingCollator()
|
boolean |
isUdfCache()
|
ExprNode |
resolveAggExtendedBuiltin(java.lang.String name,
boolean isDistinct)
Resolve an extended (non-SQL std) builtin aggregation. |
AggregationFunctionFactory |
resolveAggregationFactory(java.lang.String functionName)
Used at statement compile-time to try and resolve a given function name into an aggregation method. |
ConfigurationPlugInAggregationMultiFunction |
resolveAggregationMultiFunction(java.lang.String name)
|
java.lang.Class |
resolveAnnotation(java.lang.String className)
Resolves a given class name, either fully qualified and simple and imported to a annotation. |
java.lang.Class |
resolveClass(java.lang.String className)
Resolves a given class name, either fully qualified and simple and imported to a class. |
java.lang.reflect.Constructor |
resolveCtor(java.lang.Class clazz,
java.lang.Class[] paramTypes)
Resolves a constructor matching list of parameter types. |
java.lang.reflect.Method |
resolveMethod(java.lang.Class clazz,
java.lang.String methodName,
java.lang.Class[] paramTypes,
boolean[] allowEventBeanType,
boolean[] allowEventBeanCollType)
Resolves a given method name and list of parameter types to an instance or static method exposed by the given class. |
java.lang.reflect.Method |
resolveMethod(java.lang.String className,
java.lang.String methodName)
Resolves a given class and method name to a static method, expecting the method to exist exactly once and not be overloaded, with any parameters. |
java.lang.reflect.Method |
resolveMethod(java.lang.String className,
java.lang.String methodName,
java.lang.Class[] paramTypes,
boolean[] allowEventBeanType,
boolean[] allowEventBeanCollType)
Resolves a given class, method and list of parameter types to a static method. |
java.lang.reflect.Method |
resolveNonStaticMethod(java.lang.Class clazz,
java.lang.String methodName)
Resolves a given class and method name to a non-static method, expecting the method to exist exactly once and not be overloaded, with any parameters. |
Pair<java.lang.Class,EngineImportSingleRowDesc> |
resolveSingleRow(java.lang.String functionName)
Used at statement compile-time to try and resolve a given function name into an single-row function. |
ExprNode |
resolveSingleRowExtendedBuiltin(java.lang.String name)
Resolve an extended (non-SQL std) single-row function. |
Field Detail |
---|
static final java.lang.String EXT_SINGLEROW_FUNCTION_TRANSPOSE
Method Detail |
---|
ConfigurationMethodRef getConfigurationMethodRef(java.lang.String className)
className
- the class name providing the method
void addImport(java.lang.String importName) throws EngineImportException
importName
- is the import to add
EngineImportException
- if the information or format is invalidvoid addAggregation(java.lang.String functionName, ConfigurationPlugInAggregationFunction aggregationDesc) throws EngineImportException
functionName
- is the name of the function to make known.aggregationDesc
- is the descriptor for the aggregation function
EngineImportException
- throw if format or information is invalidvoid addSingleRow(java.lang.String functionName, java.lang.String singleRowFuncClass, java.lang.String methodName, ConfigurationPlugInSingleRowFunction.ValueCache valueCache, ConfigurationPlugInSingleRowFunction.FilterOptimizable filterOptimizable, boolean rethrowExceptions) throws EngineImportException
functionName
- is the name of the function to make known.singleRowFuncClass
- is the class that provides the single row functionmethodName
- is the name of the public static method provided by the class that provides the single row functionvalueCache
- setting to control value cache behavior which may cache a result value when constant parameters are passed
EngineImportException
- throw if format or information is invalidAggregationFunctionFactory resolveAggregationFactory(java.lang.String functionName) throws EngineImportUndefinedException, EngineImportException
functionName
- is the function name
EngineImportUndefinedException
- if the function is not a configured aggregation function
EngineImportException
- if the aggregation providing class could not be loaded or doesn't matchConfigurationPlugInAggregationMultiFunction resolveAggregationMultiFunction(java.lang.String name)
Pair<java.lang.Class,EngineImportSingleRowDesc> resolveSingleRow(java.lang.String functionName) throws EngineImportUndefinedException, EngineImportException
functionName
- is the function name
EngineImportUndefinedException
- if the function is not a configured single-row function
EngineImportException
- if the function providing class could not be loaded or doesn't matchjava.lang.reflect.Method resolveMethod(java.lang.String className, java.lang.String methodName, java.lang.Class[] paramTypes, boolean[] allowEventBeanType, boolean[] allowEventBeanCollType) throws EngineImportException
className
- is the class name to usemethodName
- is the method nameparamTypes
- is parameter types match expression sub-nodes
EngineImportException
- if the method cannot be resolved to a visible static methodjava.lang.reflect.Constructor resolveCtor(java.lang.Class clazz, java.lang.Class[] paramTypes) throws EngineImportException
clazz
- is the class to useparamTypes
- is parameter types match expression sub-nodes
EngineImportException
- if the ctor cannot be resolvedjava.lang.Class resolveClass(java.lang.String className) throws EngineImportException
className
- is the class name to use
EngineImportException
- if there was an error resolving the classjava.lang.Class resolveAnnotation(java.lang.String className) throws EngineImportException
className
- is the class name to use
EngineImportException
- if there was an error resolving the classjava.lang.reflect.Method resolveMethod(java.lang.String className, java.lang.String methodName) throws EngineImportException
className
- is the class name to usemethodName
- is the method name
EngineImportException
- if the method cannot be resolved to a visible static method, or
if the method is overloadedjava.lang.reflect.Method resolveNonStaticMethod(java.lang.Class clazz, java.lang.String methodName) throws EngineImportException
clazz
- is the classmethodName
- is the method name
EngineImportException
- if the method cannot be resolved to a visible static method, or
if the method is overloadedjava.lang.reflect.Method resolveMethod(java.lang.Class clazz, java.lang.String methodName, java.lang.Class[] paramTypes, boolean[] allowEventBeanType, boolean[] allowEventBeanCollType) throws EngineImportException
clazz
- is the class to look for a fitting methodmethodName
- is the method nameparamTypes
- is parameter types match expression sub-nodesallowEventBeanType
- whether EventBean footprint is allowed
EngineImportException
- if the method cannot be resolved to a visible static or instance methodExprNode resolveAggExtendedBuiltin(java.lang.String name, boolean isDistinct)
name
- of funcisDistinct
- indicator
ExprNode resolveSingleRowExtendedBuiltin(java.lang.String name)
name
- of func
boolean isDuckType()
boolean isUdfCache()
boolean isSortUsingCollator()
void addAggregationMultiFunction(ConfigurationPlugInAggregationMultiFunction desc) throws EngineImportException
EngineImportException
java.math.MathContext getDefaultMathContext()
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |