@Target(value=TYPE) @Retention(value=RUNTIME) public static @interface FunctionAnnotation.ConstantFieldsFirstExcept
CrossFunction, JoinFunction, CoGroupFunction)
All other fields are assumed to be constant.
A field is considered to be constant if its value is not changed and copied to the same position of
output record.
It is very important to follow a conservative strategy when specifying constant fields.
Only fields that are always constant (regardless of value, stub call, etc.) to the output may be
inserted! Otherwise, the correct execution of a program can not be guaranteed.
So if in doubt, do not add a field to this set.
This annotation is mutually exclusive with the FunctionAnnotation.ConstantFieldsFirst annotation.
If this annotation and the FunctionAnnotation.ConstantFieldsFirst annotation is not set, it is
assumed that no field is constant.| Modifier and Type | Required Element and Description |
|---|---|
int[] |
value |
Copyright © 2015 The Apache Software Foundation. All rights reserved.