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 org.apache.flink.streaming.api.functions.KeyedProcessFunction<K,IN,OUT> implements CleanupState
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
stateCleaningEnabled |
| 构造器和说明 |
|---|
KeyedProcessFunctionWithCleanupState(long minRetentionTime,
long maxRetentionTime) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
cleanupState(org.apache.flink.api.common.state.State... states) |
protected void |
initCleanupTimeState(String stateName) |
protected boolean |
isProcessingTimeTimer(org.apache.flink.streaming.api.functions.KeyedProcessFunction.OnTimerContext ctx) |
protected Boolean |
needToCleanupState(Long timestamp) |
protected void |
registerProcessingCleanupTimer(org.apache.flink.streaming.api.functions.KeyedProcessFunction.Context ctx,
long currentTime) |
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterProcessingCleanupTimerpublic KeyedProcessFunctionWithCleanupState(long minRetentionTime,
long maxRetentionTime)
protected void initCleanupTimeState(String stateName)
protected void registerProcessingCleanupTimer(org.apache.flink.streaming.api.functions.KeyedProcessFunction.Context ctx,
long currentTime)
throws Exception
Exceptionprotected boolean isProcessingTimeTimer(org.apache.flink.streaming.api.functions.KeyedProcessFunction.OnTimerContext ctx)
protected void cleanupState(org.apache.flink.api.common.state.State... states)
protected Boolean needToCleanupState(Long timestamp) throws IOException
IOExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.