Class TtlReduceFunction<T>
java.lang.Object
org.apache.flink.runtime.state.ttl.AbstractTtlDecorator<org.apache.flink.api.common.functions.ReduceFunction<T>>
org.apache.flink.runtime.state.ttl.TtlReduceFunction<T>
- Type Parameters:
T- Type of the user value of state with TTL
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.ReduceFunction<TtlValue<T>>
public class TtlReduceFunction<T>
extends AbstractTtlDecorator<org.apache.flink.api.common.functions.ReduceFunction<T>>
implements org.apache.flink.api.common.functions.ReduceFunction<TtlValue<T>>
This class wraps reducing function with TTL logic.
- See Also:
-
Field Summary
Fields inherited from class org.apache.flink.runtime.state.ttl.AbstractTtlDecorator
config, original, returnExpired, timeProvider, ttl, updateTsOnRead -
Constructor Summary
ConstructorsConstructorDescriptionTtlReduceFunction(org.apache.flink.api.common.functions.ReduceFunction<T> originalReduceFunction, org.apache.flink.api.common.state.StateTtlConfig config, TtlTimeProvider timeProvider) -
Method Summary
Methods inherited from class org.apache.flink.runtime.state.ttl.AbstractTtlDecorator
expired, getElementWithTtlCheck, getUnexpired, getWithTtlCheckAndUpdate, getWrappedWithTtlCheckAndUpdate, rewrapWithNewTs, wrapWithTs
-
Constructor Details
-
TtlReduceFunction
public TtlReduceFunction(org.apache.flink.api.common.functions.ReduceFunction<T> originalReduceFunction, org.apache.flink.api.common.state.StateTtlConfig config, TtlTimeProvider timeProvider)
-
-
Method Details