It seems like these APIs are predominantly duplicative of each other and, that it's hard to find one of them if you knew about the other.
|
public void processElement(ProcessContext c) { |
|
c.outputWithTimestamp(c.element().getValue(), c.element().getTimestamp()); |
What would make the most sense to me is if TimestampedValues were implemented in terms of both Values and WithTimestamps. I'm still learning about Beam though -- would this approach cause some kind of performance problem?
Imported from Jira BEAM-1811. Original Jira may contain additional context.
Reported by: wtanaka.
It seems like these APIs are predominantly duplicative of each other and, that it's hard to find one of them if you knew about the other.
beam/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/WithTimestamps.java
Line 134 in 348d335
beam/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Create.java
Line 560 in 348d335
What would make the most sense to me is if TimestampedValues were implemented in terms of both Values and WithTimestamps. I'm still learning about Beam though -- would this approach cause some kind of performance problem?
Imported from Jira BEAM-1811. Original Jira may contain additional context.
Reported by: wtanaka.