📜  布隆伯格 api 覆盖 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:50.302000             🧑  作者: Mango

代码示例1
KeyValue leftRecord = ...;
KeyValue rightRecord = ...;
ValueJoiner joiner = ...;

KeyValue joinOutputRecord = KeyValue.pair(
    leftRecord.key, /* by definition, leftRecord.key == rightRecord.key */
    joiner.apply(leftRecord.value, rightRecord.value)
  );