Package org.apache.beam.sdk.transforms
Class Watch.Growth.PollResult<OutputT>
java.lang.Object
org.apache.beam.sdk.transforms.Watch.Growth.PollResult<OutputT>
- Enclosing class:
Watch.Growth<InputT,OutputT, KeyT>
The result of a single invocation of a
Watch.Growth.PollFn.-
Method Summary
Modifier and TypeMethodDescriptionstatic <OutputT> Watch.Growth.PollResult<OutputT> complete(List<TimestampedValue<OutputT>> outputs) Constructs aWatch.Growth.PollResultwith the given outputs and declares that there will be no new outputs for the current input.static <OutputT> Watch.Growth.PollResult<OutputT> Likecomplete(List), but assigns the same timestamp to all new outputs.booleaninthashCode()static <OutputT> Watch.Growth.PollResult<OutputT> incomplete(List<TimestampedValue<OutputT>> outputs) Constructs aWatch.Growth.PollResultwith the given outputs and declares that new outputs might appear for the current input.static <OutputT> Watch.Growth.PollResult<OutputT> incomplete(Instant timestamp, List<OutputT> outputs) Likeincomplete(List), but assigns the same timestamp to all new outputs.toString()withOutputs(List<TimestampedValue<OutputT>> outputs) Returns a newWatch.Growth.PollResultlike this one with the provided outputs.withWatermark(Instant watermark) Returns a newWatch.Growth.PollResultlike this one with the provided watermark.
-
Method Details
-
withWatermark
Returns a newWatch.Growth.PollResultlike this one with the provided watermark. The watermark represents an approximate lower bound on timestamps of future new outputs from theWatch.Growth.PollFn. -
withOutputs
Returns a newWatch.Growth.PollResultlike this one with the provided outputs. -
toString
-
complete
public static <OutputT> Watch.Growth.PollResult<OutputT> complete(List<TimestampedValue<OutputT>> outputs) Constructs aWatch.Growth.PollResultwith the given outputs and declares that there will be no new outputs for the current input. TheWatch.Growth.PollFnwill not be called again for this input. -
complete
public static <OutputT> Watch.Growth.PollResult<OutputT> complete(Instant timestamp, List<OutputT> outputs) Likecomplete(List), but assigns the same timestamp to all new outputs. -
incomplete
public static <OutputT> Watch.Growth.PollResult<OutputT> incomplete(List<TimestampedValue<OutputT>> outputs) Constructs aWatch.Growth.PollResultwith the given outputs and declares that new outputs might appear for the current input. By default,Watchwill estimate the watermark for future new outputs as equal to the earliest of the new outputs from thisWatch.Growth.PollResult. To specify a more exact watermark, usewithWatermark(Instant). -
incomplete
public static <OutputT> Watch.Growth.PollResult<OutputT> incomplete(Instant timestamp, List<OutputT> outputs) Likeincomplete(List), but assigns the same timestamp to all new outputs. -
equals
-
hashCode
public int hashCode()
-