public static final class Watch.Growth.PollResult<OutputT>
extends java.lang.Object
Watch.Growth.PollFn
.Modifier and Type | Method and Description |
---|---|
static <OutputT> Watch.Growth.PollResult<OutputT> |
complete(Instant timestamp,
java.util.List<OutputT> outputs)
Like
complete(List) , but assigns the same timestamp to all new outputs. |
static <OutputT> Watch.Growth.PollResult<OutputT> |
complete(java.util.List<TimestampedValue<OutputT>> outputs)
Constructs a
Watch.Growth.PollResult with the given outputs and declares that there will be no
new outputs for the current input. |
static <OutputT> Watch.Growth.PollResult<OutputT> |
incomplete(Instant timestamp,
java.util.List<OutputT> outputs)
Like
incomplete(List) , but assigns the same timestamp to all new outputs. |
static <OutputT> Watch.Growth.PollResult<OutputT> |
incomplete(java.util.List<TimestampedValue<OutputT>> outputs)
Constructs a
Watch.Growth.PollResult with the given outputs and declares that new outputs might
appear for the current input. |
Watch.Growth.PollResult<OutputT> |
withWatermark(Instant watermark)
Sets the watermark - an approximate lower bound on timestamps of future new outputs from
this
Watch.Growth.PollFn . |
public Watch.Growth.PollResult<OutputT> withWatermark(Instant watermark)
Watch.Growth.PollFn
.public static <OutputT> Watch.Growth.PollResult<OutputT> complete(java.util.List<TimestampedValue<OutputT>> outputs)
Watch.Growth.PollResult
with the given outputs and declares that there will be no
new outputs for the current input. The Watch.Growth.PollFn
will not be called again for this
input.public static <OutputT> Watch.Growth.PollResult<OutputT> complete(Instant timestamp, java.util.List<OutputT> outputs)
complete(List)
, but assigns the same timestamp to all new outputs.public static <OutputT> Watch.Growth.PollResult<OutputT> incomplete(java.util.List<TimestampedValue<OutputT>> outputs)
Watch.Growth.PollResult
with the given outputs and declares that new outputs might
appear for the current input. By default, Watch
will estimate the watermark for
future new outputs as equal to the earliest of the new outputs from this Watch.Growth.PollResult
. To specify a more exact watermark, use withWatermark(Instant)
.public static <OutputT> Watch.Growth.PollResult<OutputT> incomplete(Instant timestamp, java.util.List<OutputT> outputs)
incomplete(List)
, but assigns the same timestamp to all new outputs.