apache-flink - 理解 RowKind 的 UPDATE_BEFORE 的含义
问题描述
我正在阅读的 javadoc RowKind#UPDATE_BEFORE
,它说:
/**
* Update operation with the previous content of the updated row.
*
* <p>This kind SHOULD occur together with {@link #UPDATE_AFTER} for modelling an update that
* needs to retract the previous row first. It is useful in cases of a non-idempotent update,
* i.e., an update of a row that is not uniquely identifiable by a key.
*/
UPDATE_BEFORE("-U", (byte) 1),
我会问
- 如果行
is not uniquely identifiable by a key
,flink怎么知道要收回哪一行,我认为必须有一个唯一的键来识别行? - 它说它对 有用
non-idempotent update
,这里是什么non-idempotent update
意思?
你能帮忙解释一下这个问题吗?谢谢!
解决方案
推荐阅读
- express-generator - 命令提示符找不到 Express-generator 应用程序
- javascript - React - 无法设置输入框的值
- c# - 如何在 Unity 中换出游戏对象的子对象?
- laravel - 我需要帮助在 laravel 中为 digitalocean 管理的数据库建立连接
- c++ - C ++将对象的向量复制到另一个
- bash - bash printf 用颜色格式化输出
- c++ - 十六进制到十进制转换的未明确答案
- javascript - 如何在 RxJS 中通过 ID 去抖动
- javascript - 将 JQuery Vars/Funcs 转换为 Vanilla JS Vars/Funcs?
- java - 如何以特定定义的排序顺序有效地读取 csv 列表?