K
- Type of the key.IN
- Type of the input elements.OUT
- Type of the output elements.public abstract class KeyedProcessFunctionWithCleanupState<K,IN,OUT> extends KeyedProcessFunction<K,IN,OUT> implements CleanupState
KeyedProcessFunction.Context, KeyedProcessFunction.OnTimerContext
Modifier and Type | Field and Description |
---|---|
protected boolean |
stateCleaningEnabled |
Constructor and Description |
---|
KeyedProcessFunctionWithCleanupState(long minRetentionTime,
long maxRetentionTime) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanupState(State... states) |
protected void |
initCleanupTimeState(String stateName) |
protected boolean |
isProcessingTimeTimer(KeyedProcessFunction.OnTimerContext ctx) |
protected Boolean |
needToCleanupState(Long timestamp) |
protected void |
registerProcessingCleanupTimer(KeyedProcessFunction.Context ctx,
long currentTime) |
onTimer, processElement
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerProcessingCleanupTimer
public KeyedProcessFunctionWithCleanupState(long minRetentionTime, long maxRetentionTime)
protected void initCleanupTimeState(String stateName)
protected void registerProcessingCleanupTimer(KeyedProcessFunction.Context ctx, long currentTime) throws Exception
Exception
protected boolean isProcessingTimeTimer(KeyedProcessFunction.OnTimerContext ctx)
protected void cleanupState(State... states)
protected Boolean needToCleanupState(Long timestamp) throws IOException
IOException
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.