public static final class AssignerWithPeriodicWatermarksAdapter.Strategy<T> extends Object implements WatermarkStrategy<T>
AssignerWithPeriodicWatermarks
wrapped as a
WatermarkGenerator
.TimestampAssignerSupplier.Context, TimestampAssignerSupplier.SupplierFromSerializableTimestampAssigner<T>
WatermarkGeneratorSupplier.Context
Constructor and Description |
---|
Strategy(AssignerWithPeriodicWatermarks<T> wms) |
Modifier and Type | Method and Description |
---|---|
TimestampAssigner<T> |
createTimestampAssigner(TimestampAssignerSupplier.Context context)
Instantiates a
TimestampAssigner for assigning timestamps according to this strategy. |
WatermarkGenerator<T> |
createWatermarkGenerator(WatermarkGeneratorSupplier.Context context)
Instantiates a WatermarkGenerator that generates watermarks according to this strategy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forBoundedOutOfOrderness, forGenerator, forMonotonousTimestamps, noWatermarks, withIdleness, withTimestampAssigner, withTimestampAssigner
of
public Strategy(AssignerWithPeriodicWatermarks<T> wms)
public TimestampAssigner<T> createTimestampAssigner(TimestampAssignerSupplier.Context context)
WatermarkStrategy
TimestampAssigner
for assigning timestamps according to this strategy.createTimestampAssigner
in interface TimestampAssignerSupplier<T>
createTimestampAssigner
in interface WatermarkStrategy<T>
public WatermarkGenerator<T> createWatermarkGenerator(WatermarkGeneratorSupplier.Context context)
WatermarkStrategy
createWatermarkGenerator
in interface WatermarkGeneratorSupplier<T>
createWatermarkGenerator
in interface WatermarkStrategy<T>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.