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. |
boolean |
equals(@Nullable java.lang.Object o) |
int |
hashCode() |
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. |
java.lang.String |
toString() |
Watch.Growth.PollResult<OutputT> |
withOutputs(java.util.List<TimestampedValue<OutputT>> outputs)
Returns a new
Watch.Growth.PollResult like this one with the provided outputs. |
Watch.Growth.PollResult<OutputT> |
withWatermark(Instant watermark)
Returns a new
Watch.Growth.PollResult like this one with the provided watermark. |
public Watch.Growth.PollResult<OutputT> withWatermark(Instant watermark)
Watch.Growth.PollResult
like this one with the provided watermark. The watermark
represents an approximate lower bound on timestamps of future new outputs from the Watch.Growth.PollFn
.public Watch.Growth.PollResult<OutputT> withOutputs(java.util.List<TimestampedValue<OutputT>> outputs)
Watch.Growth.PollResult
like this one with the provided outputs.public java.lang.String toString()
toString
in class java.lang.Object
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.public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object