Indicates that a method returns a ScalarValuedFunction and should be included in the FunctionRegistry
or returns an Aggregation and should be included in the AggregationRegistry.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintThe number of arguments this function takes.String[]The names of the arguments for this function.
Names are usually specified for each argument individually with theFunctionArgumentannotation.The category of this function.The description of this function.Class<? extends FunctionInvoker>The invoker to use for this function.The name of this function. -
Field Summary
Fields
-
Field Details
-
DEFAULT_ARGUMENT_COUNT
static final int DEFAULT_ARGUMENT_COUNTIndicates that the number of function arguments matches the number of method arguments.- See Also:
-
VARIABLE_ARGUMENT_COUNT
static final int VARIABLE_ARGUMENT_COUNTIndicates that the number of function arguments is variable.- See Also:
-
DEFAULT_NAME
- See Also:
-
DEFAULT_CATEGORY
- See Also:
-
-
Element Details
-
name
String nameThe name of this function. If unspecified, defaults to the method name.- Default:
- ""
-
invoker
Class<? extends FunctionInvoker> invokerThe invoker to use for this function. If unspecified, defaults toDefaultFunctionInvoker.- Default:
- com.pervasive.datarush.functions.DefaultFunctionInvoker.class
-
argumentCount
int argumentCountThe number of arguments this function takes. If unspecified, defaults to the number of arguments the method takes.
Valid values are positive integers,DEFAULT_ARGUMENT_COUNT, orVARIABLE_ARGUMENT_COUNT.- Default:
- -1
-
description
String descriptionThe description of this function.- Default:
- ""
-
category
String categoryThe category of this function.- Default:
- ""
-
argumentNames
String[] argumentNamesThe names of the arguments for this function.
Names are usually specified for each argument individually with theFunctionArgumentannotation. Use this property if the number of function arguments does not match the number of method arguments.- Default:
- {}
-