Interface TimestampAssignerSupplier<T>
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
WatermarkStrategy<T>
,WatermarkStrategyWithPeriodicWatermarks<T>
,WatermarkStrategyWithPunctuatedWatermarks<T>
- All Known Implementing Classes:
AscendingTimestampExtractor
,BoundedOutOfOrdernessTimestampExtractor
,PeriodicWatermarkAssignerWrapper
,PunctuatedWatermarkStrategyWrapper
,TimestampAssignerSupplier.SupplierFromSerializableTimestampAssigner
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@PublicEvolving @FunctionalInterface public interface TimestampAssignerSupplier<T> extends Serializable
A supplier forTimestampAssigners
. The supplier pattern is used to avoid having to makeTimestampAssigner
Serializable
for use in API methods.This interface is
Serializable
because the supplier may be shipped to workers during distributed execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
TimestampAssignerSupplier.Context
Additional information available tocreateTimestampAssigner(Context)
.static class
TimestampAssignerSupplier.SupplierFromSerializableTimestampAssigner<T>
We need an actual class.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description TimestampAssigner<T>
createTimestampAssigner(TimestampAssignerSupplier.Context context)
Instantiates aTimestampAssigner
.static <T> TimestampAssignerSupplier<T>
of(SerializableTimestampAssigner<T> assigner)
-
-
-
Method Detail
-
createTimestampAssigner
TimestampAssigner<T> createTimestampAssigner(TimestampAssignerSupplier.Context context)
Instantiates aTimestampAssigner
.
-
of
static <T> TimestampAssignerSupplier<T> of(SerializableTimestampAssigner<T> assigner)
-
-