Beispiel #1
0
 public void AddPlugInSingleRowFunction(
     string functionName,
     Type clazz,
     string methodName,
     ConfigurationCompilerPlugInSingleRowFunction.ValueCacheEnum valueCache,
     ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizableEnum filterOptimizable)
 {
     AddPlugInSingleRowFunction(functionName, clazz.FullName, methodName, valueCache, filterOptimizable, false);
 }
Beispiel #2
0
 /// <summary>
 ///     Adds a plug-in single-row function given a EPL function name, a class name, method name and setting for value-cache
 ///     behavior.
 ///     <para />
 ///     The same function name cannot be added twice.
 /// </summary>
 /// <param name="functionName">is the new single-row function name for use in EPL</param>
 /// <param name="className">is the fully-qualified class name of the class implementing the single-row function</param>
 /// <param name="methodName">is the public static method provided by the class that implements the single-row function</param>
 /// <param name="filterOptimizable">
 ///     whether the single-row function, when used in filters, may be subject to reverse index
 ///     lookup based on the function result
 /// </param>
 public void AddPlugInSingleRowFunction(
     string functionName,
     string className,
     string methodName,
     ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizableEnum filterOptimizable)
 {
     AddPlugInSingleRowFunction(
         functionName,
         className,
         methodName,
         ConfigurationCompilerPlugInSingleRowFunction.ValueCacheEnum.DISABLED,
         filterOptimizable);
 }
Beispiel #3
0
 public ImportSingleRowDesc(
     string className,
     string methodName,
     ConfigurationCompilerPlugInSingleRowFunction.ValueCacheEnum valueCache,
     ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizableEnum filterOptimizable,
     bool rethrowExceptions,
     string optionalEventTypeName)
 {
     ClassName = className;
     MethodName = methodName;
     ValueCache = valueCache;
     FilterOptimizable = filterOptimizable;
     IsRethrowExceptions = rethrowExceptions;
     OptionalEventTypeName = optionalEventTypeName;
 }
Beispiel #4
0
 /// <summary>
 ///     Add single-row function with configurations.
 /// </summary>
 /// <param name="functionName">EPL name of function</param>
 /// <param name="className">providing fully-qualified class name</param>
 /// <param name="methodName">providing method name</param>
 /// <param name="valueCache">value cache settings</param>
 /// <param name="filterOptimizable">settings whether subject to optimizations</param>
 /// <param name="rethrowExceptions">whether to rethrow exceptions</param>
 public void AddPlugInSingleRowFunction(
     string functionName,
     string className,
     string methodName,
     ConfigurationCompilerPlugInSingleRowFunction.ValueCacheEnum valueCache,
     ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizableEnum filterOptimizable,
     bool rethrowExceptions)
 {
     var entry = new ConfigurationCompilerPlugInSingleRowFunction();
     entry.FunctionClassName = className;
     entry.FunctionMethodName = methodName;
     entry.Name = functionName;
     entry.ValueCache = valueCache;
     entry.FilterOptimizable = filterOptimizable;
     entry.RethrowExceptions = rethrowExceptions;
     AddPlugInSingleRowFunction(entry);
 }
        public void AddSingleRow(
            string functionName,
            string singleRowFuncClass,
            string methodName,
            ConfigurationCompilerPlugInSingleRowFunction.ValueCacheEnum valueCache,
            ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizableEnum filterOptimizable,
            bool rethrowExceptions,
            string optionalEventTypeName)
        {
            ValidateFunctionName("single-row", functionName);

            if (!IsClassName(singleRowFuncClass))
            {
                throw new ImportException("Invalid class name for aggregation '" + singleRowFuncClass + "'");
            }

            _singleRowFunctions.Put(
                functionName.ToLowerInvariant(),
                new ImportSingleRowDesc(singleRowFuncClass, methodName, valueCache, filterOptimizable, rethrowExceptions, optionalEventTypeName));
        }