I'm looking to create a Beam input that executes every second and just outputs the time as an input. I know I can do a pcollection that is from numbers like this
p.apply(Create.of(1, 2, 3, 4, 5))
.setCoder(VarIntCoder.of())
and I could just create a really large array of numbers and window them to be every second, but is there a better way to do this? Thanks.