@Target(value=TYPE) @Retention(value=RUNTIME) public static @interface FunctionAnnotation.ConstantFieldsExcept
MapFunction, ReduceFunction). 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.ConstantFields annotation.
If this annotation and the FunctionAnnotation.ConstantFields annotation is not set, it is
assumed that no field is constant.| Modifier and Type | Required Element and Description |
|---|---|
int[] |
value |
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.