egalpin commented on PR #21895:
URL: https://github.com/apache/beam/pull/21895#issuecomment-1156758658
Agreed @steveniemitz , I originally misunderstood
`setWindowingStrategyInternal` to be exactly what you described. The slightly
longer form version that I believe works is:
```java
WindowingStrategy<Document, ?> originalStrategy =
(WindowingStrategy<Document, ?>) input.getWindowingStrategy();
...
input.apply(
Window
.into(originalStrategy.getWindowFn())
.triggering(originalStrategy.getTrigger())
.withAllowedLateness(originalStrategy.getAllowedLateness()))
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]