Apache Beam using pCollections to window - batch - pack events to consumer
问题 I have some sample code that batches events by a fixed window. I would like to combine these events that are in the fixed window - into a single string of messages. Then publish the combined packed message. Here is the code: final PCollection<String> filteredEvents = ind.apply(FilterEvents.STEP_NAME, ParDo.of(new FilterEvents())); final PCollection<String> windowEvents = filteredEvents.apply(Window.<String>into(FixedWindows.of(Duration.standardSeconds(1)))); final PCollection<String>