com.apama.dashboard.function
Class FunctionDescriptorFactory

java.lang.Object
  extended by com.apama.dashboard.function.FunctionDescriptorFactory

public class FunctionDescriptorFactory
extends java.lang.Object

FunctionDescriptorFactory is a class that provides factory methods for creating new instances of classes that implement the IFunctionDescriptor interface.


Constructor Summary
FunctionDescriptorFactory()
           
 
Method Summary
static IFunctionDescriptor createFunctionDescriptor(java.lang.String name, java.lang.String[] argNames, java.lang.String[] argVarNames, int returnType, java.lang.String[] returnColumnNames, java.lang.String description)
          Create a new IFunctionDescriptor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionDescriptorFactory

public FunctionDescriptorFactory()
Method Detail

createFunctionDescriptor

public static IFunctionDescriptor createFunctionDescriptor(java.lang.String name,
                                                           java.lang.String[] argNames,
                                                           java.lang.String[] argVarNames,
                                                           int returnType,
                                                           java.lang.String[] returnColumnNames,
                                                           java.lang.String description)
Create a new IFunctionDescriptor.

Parameters:
name - Name of function.
argNames - Array of argument names to function.
argVarNames - Array of variable names to hold values of arguments to function. There must be a one-to-one correspondence between argNames and argVarNames. Functions can have up to 10 arguments. The type of each argument is encoded into it's variable name. Possible names:
  • Table Arguments: argTableColumn, argTableColumn2 ... argTableColumn4
  • String Arguments: s_arg1, s_arg2 ... s_arg10
  • Integer Arguments: i_arg1, i_arg2 ... i_arg10
  • Double Arguments: arg1, arg2 ... arg10
    returnType - Return type of function. Possible values:
  • IFunctionDescriptor.RETURN_TYPE_TABLE
  • IFunctionDescriptor.RETURN_TYPE_STRING
  • IFunctionDescriptor.RETURN_TYPE_INTEGER
  • IFunctionDescriptor.RETURN_TYPE_DOUBLE
    returnColumnNames - For functions which return tables; the names of the columns in the returned table.
    description - Description of function.


  • Submit a bug or feature
    Copyright (c) 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG