@Override protected void handleClose() { this.joinOpSpec.getJoinFn().close(); }
@Override protected void handleInit(Context context) { this.joinOpSpec.getJoinFn().init(context); }
@Override public Collection<JM> handleMessage(M message, MessageCollector collector, TaskCoordinator coordinator) { K key = joinOpSpec.getJoinFn().getMessageKey(message); Object recordValue = table.get(key); R record = recordValue != null ? (R) KV.of(key, recordValue) : null; JM output = joinOpSpec.getJoinFn().apply(message, record); // The support for inner and outer join will be provided in the jonFn. For inner join, the joinFn might // return null, when the corresponding record is absent in the table. return output != null ? Collections.singletonList(output) : Collections.emptyList(); }
@Override public Collection<JM> handleMessage(M message, MessageCollector collector, TaskCoordinator coordinator) { K key = joinOpSpec.getJoinFn().getMessageKey(message); Object recordValue = table.get(key); R record = recordValue != null ? (R) KV.of(key, recordValue) : null; JM output = joinOpSpec.getJoinFn().apply(message, record); // The support for inner and outer join will be provided in the jonFn. For inner join, the joinFn might // return null, when the corresponding record is absent in the table. return output != null ? Collections.singletonList(output) : Collections.emptyList(); }
@Override public Collection<JM> handleMessage(M message, MessageCollector collector, TaskCoordinator coordinator) { K key = joinOpSpec.getJoinFn().getMessageKey(message); Object recordValue = table.get(key); R record = recordValue != null ? (R) KV.of(key, recordValue) : null; JM output = joinOpSpec.getJoinFn().apply(message, record); // The support for inner and outer join will be provided in the jonFn. For inner join, the joinFn might // return null, when the corresponding record is absent in the table. return output != null ? Collections.singletonList(output) : Collections.emptyList(); }
@Override protected void handleClose() { this.joinOpSpec.getJoinFn().close(); }
@Override protected void handleInit(Context context) { this.joinOpSpec.getJoinFn().init(context); }
@Override public Collection<JM> handleMessage(M message, MessageCollector collector, TaskCoordinator coordinator) { K key = joinOpSpec.getJoinFn().getMessageKey(message); Object recordValue = table.get(key); R record = recordValue != null ? (R) KV.of(key, recordValue) : null; JM output = joinOpSpec.getJoinFn().apply(message, record); // The support for inner and outer join will be provided in the jonFn. For inner join, the joinFn might // return null, when the corresponding record is absent in the table. return output != null ? Collections.singletonList(output) : Collections.emptyList(); }
@Override protected void handleClose() { this.joinOpSpec.getJoinFn().close(); }
@Override protected void handleInit(Context context) { this.joinOpSpec.getJoinFn().init(context); }
@Override public Collection<JM> handleMessage(M message, MessageCollector collector, TaskCoordinator coordinator) { if (message == null) { return Collections.emptyList(); } K key = joinOpSpec.getJoinFn().getMessageKey(message); Object recordValue = null; if (key != null) { recordValue = table.get(key); } R record = recordValue != null ? (R) KV.of(key, recordValue) : null; JM output = joinOpSpec.getJoinFn().apply(message, record); // The support for inner and outer join will be provided in the jonFn. For inner join, the joinFn might // return null, when the corresponding record is absent in the table. return output != null ? Collections.singletonList(output) : Collections.emptyList(); }
@Override protected void handleClose() { this.joinOpSpec.getJoinFn().close(); }
@Override protected void handleInit(Context context) { this.joinOpSpec.getJoinFn().init(context); }
@Override protected void handleClose() { this.joinOpSpec.getJoinFn().close(); }
@Override protected void handleInit(Context context) { this.joinOpSpec.getJoinFn().init(context); }