2024-07-08
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Flink supports Lambda expressions for all operators in the Java API. However, when Lambda expressions use Java generics, Explicit Declare type information.
Example: map()
The function uses a lambda expression to calculate the square of the input value.
No declaration required map()
Function Inputi
and output parameters, because the Java compiler will infer them.
env.fromElements(1, 2, 3)
// 返回 i 的平方
.map(i -