@Target(value=TYPE) @Retention(value=RUNTIME) @PublicEvolving public static @interface FunctionAnnotation.ReadFieldsSecond
NOTE: The use of the ReadFieldsSecond annotation is optional. If used correctly, it can help the Flink optimizer to generate more efficient execution plans. The ReadFieldsSecond annotation requires that ALL read fields of the second input are declared. Otherwise, it can cause invalid plan choices and the computation of wrong results! Declaring a non-read field as read is not harmful but might reduce optimization potential.
Read fields are declared as a list of field expressions, e.g.,
\@ReadFieldsSecond({"f0; f2"})
declares the first and third field of a Java input
tuple of the second input to be read. All other fields of the second input are considered to
not influence the behavior of the function.
Multiple read fields can be declared in one \@ReadFieldsSecond({"f0; f2"})
or
multiple separate Strings \@ReadFieldsSecond({"f0", "f2"})
.
Please refer to the JavaDoc of Function
or
Flink's documentation for details on field expressions such as nested fields and wildcard.
public abstract String[] value
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.