Class TimestampTransform

java.lang.Object
org.apache.beam.sdk.transforms.windowing.TimestampTransform
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TimestampTransform.AlignTo, TimestampTransform.Delay

@Internal public abstract class TimestampTransform extends Object implements Serializable
For internal use only; no backwards-compatibility guarantees.

An abstract description of a standardized transformation on timestamps.

See Also:
  • Method Details

    • delay

      @Internal public static TimestampTransform delay(Duration delay)
      For internal use only; no backwards-compatibility guarantees.

      Returns a transform that shifts a timestamp later by delay.

    • alignTo

      @Internal public static TimestampTransform alignTo(Duration period, Instant offset)
      For internal use only; no backwards-compatibility guarantees.

      Returns a transform that aligns a timestamp to the next boundary of period, starting from offset.

    • alignTo

      @Internal public static TimestampTransform alignTo(Duration period)
      For internal use only; no backwards-compatibility guarantees.

      Returns a transform that aligns a timestamp to the next boundary of period, starting from the start of the epoch.