Interface TimestampAssignerSupplier<T>
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
WatermarkStrategy<T>
- All Known Implementing Classes:
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 makeTimestampAssignerSerializablefor use in API methods.This interface is
Serializablebecause the supplier may be shipped to workers during distributed execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTimestampAssignerSupplier.ContextAdditional information available tocreateTimestampAssigner(Context).static classTimestampAssignerSupplier.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)
-
-