@Target(value=TYPE) @Retention(value=RUNTIME) public static @interface FunctionAnnotation.AllFieldsConstants
MapFunction, or ReduceFunction).
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.ConstantFieldsExcept annotation.
If this annotation and the FunctionAnnotation.ConstantFieldsExcept annotation is not set, it is
assumed that no field is constant.Copyright © 2015 The Apache Software Foundation. All rights reserved.