com.ibm.streams.operator.model
Annotation Type Namespace
-
@Target(value=PACKAGE) @Retention(value=RUNTIME) @Documented public @interface Namespace
Declares a default SPL namespace for SPL artifacts in the annotated package. SPL artifacts that are declared by these annotations:-
Function
for SPL Java native functions -
PrimitiveOperator
for SPL Java primitive operators
The defined SPL namespace for an SPL artifact will be:- The value of the
namespace
element of the annotation (PrimitiveOperator.namespace()
orFunction.namespace()
) if it is explicitly present. - Otherwise, the value of the
Namespace
annotation for the package of the annotated class or method, if it exists. - Otherwise, the package name of the annotated class or method.
Any generated SPL artifact must define a valid SPL namespace. An SPL namespace is a dot separated list of valid SPL identifiers.
This annotation allows a single definition of a valid SPL namespace for a package when the Java package name is not valid in SPL. This can occur if elements of the package name are SPL keywords or include non-ASCII characters.- Since:
- InfoSphere® Streams Version 3.2
-
-
-
Required Element Summary
Required Elements Modifier and Type Required Element and Description java.lang.String
value
-