@Internal
public class StreamingRuntimeContext
extends org.apache.flink.api.common.functions.util.AbstractRuntimeUDFContext
RuntimeContext,
for streaming operators.| Constructor and Description |
|---|
StreamingRuntimeContext(AbstractStreamOperator<?> operator,
org.apache.flink.runtime.execution.Environment env,
Map<String,org.apache.flink.api.common.accumulators.Accumulator<?,?>> accumulators) |
| Modifier and Type | Method and Description |
|---|---|
<IN,ACC,OUT> |
getAggregatingState(org.apache.flink.api.common.state.AggregatingStateDescriptor<IN,ACC,OUT> stateProperties) |
<RT> List<RT> |
getBroadcastVariable(String name) |
<T,C> C |
getBroadcastVariableWithInitializer(String name,
org.apache.flink.api.common.functions.BroadcastVariableInitializer<T,C> initializer) |
long |
getBufferTimeout()
Returns the buffer timeout of the job.
|
CheckpointingMode |
getCheckpointMode()
Returns the checkpointing mode.
|
<T,ACC> org.apache.flink.api.common.state.FoldingState<T,ACC> |
getFoldingState(org.apache.flink.api.common.state.FoldingStateDescriptor<T,ACC> stateProperties) |
org.apache.flink.runtime.taskexecutor.GlobalAggregateManager |
getGlobalAggregateManager()
Returns the global aggregate manager for the current job.
|
org.apache.flink.runtime.jobgraph.tasks.InputSplitProvider |
getInputSplitProvider()
Returns the input split provider associated with the operator.
|
<T> org.apache.flink.api.common.state.ListState<T> |
getListState(org.apache.flink.api.common.state.ListStateDescriptor<T> stateProperties) |
<UK,UV> org.apache.flink.api.common.state.MapState<UK,UV> |
getMapState(org.apache.flink.api.common.state.MapStateDescriptor<UK,UV> stateProperties) |
String |
getOperatorUniqueID()
Returned value is guaranteed to be unique between operators within the same job and to be
stable and the same across job submissions.
|
ProcessingTimeService |
getProcessingTimeService() |
<T> org.apache.flink.api.common.state.ReducingState<T> |
getReducingState(org.apache.flink.api.common.state.ReducingStateDescriptor<T> stateProperties) |
<T> org.apache.flink.api.common.state.ValueState<T> |
getState(org.apache.flink.api.common.state.ValueStateDescriptor<T> stateProperties) |
boolean |
hasBroadcastVariable(String name) |
boolean |
isCheckpointingEnabled()
Returns true if checkpointing is enabled for the running job.
|
addAccumulator, getAccumulator, getAllAccumulators, getAllocationIDAsString, getAttemptNumber, getDistributedCache, getDoubleCounter, getExecutionConfig, getHistogram, getIndexOfThisSubtask, getIntCounter, getLongCounter, getMaxNumberOfParallelSubtasks, getMetricGroup, getNumberOfParallelSubtasks, getTaskName, getTaskNameWithSubtasks, getUserCodeClassLoaderpublic StreamingRuntimeContext(AbstractStreamOperator<?> operator, org.apache.flink.runtime.execution.Environment env, Map<String,org.apache.flink.api.common.accumulators.Accumulator<?,?>> accumulators)
public org.apache.flink.runtime.jobgraph.tasks.InputSplitProvider getInputSplitProvider()
public ProcessingTimeService getProcessingTimeService()
public org.apache.flink.runtime.taskexecutor.GlobalAggregateManager getGlobalAggregateManager()
public String getOperatorUniqueID()
This operation is currently only supported in Streaming (DataStream) contexts.
public boolean hasBroadcastVariable(String name)
public <T,C> C getBroadcastVariableWithInitializer(String name, org.apache.flink.api.common.functions.BroadcastVariableInitializer<T,C> initializer)
public <T> org.apache.flink.api.common.state.ValueState<T> getState(org.apache.flink.api.common.state.ValueStateDescriptor<T> stateProperties)
getState in interface org.apache.flink.api.common.functions.RuntimeContextgetState in class org.apache.flink.api.common.functions.util.AbstractRuntimeUDFContextpublic <T> org.apache.flink.api.common.state.ListState<T> getListState(org.apache.flink.api.common.state.ListStateDescriptor<T> stateProperties)
getListState in interface org.apache.flink.api.common.functions.RuntimeContextgetListState in class org.apache.flink.api.common.functions.util.AbstractRuntimeUDFContextpublic <T> org.apache.flink.api.common.state.ReducingState<T> getReducingState(org.apache.flink.api.common.state.ReducingStateDescriptor<T> stateProperties)
getReducingState in interface org.apache.flink.api.common.functions.RuntimeContextgetReducingState in class org.apache.flink.api.common.functions.util.AbstractRuntimeUDFContextpublic <IN,ACC,OUT> org.apache.flink.api.common.state.AggregatingState<IN,OUT> getAggregatingState(org.apache.flink.api.common.state.AggregatingStateDescriptor<IN,ACC,OUT> stateProperties)
getAggregatingState in interface org.apache.flink.api.common.functions.RuntimeContextgetAggregatingState in class org.apache.flink.api.common.functions.util.AbstractRuntimeUDFContextpublic <T,ACC> org.apache.flink.api.common.state.FoldingState<T,ACC> getFoldingState(org.apache.flink.api.common.state.FoldingStateDescriptor<T,ACC> stateProperties)
getFoldingState in interface org.apache.flink.api.common.functions.RuntimeContextgetFoldingState in class org.apache.flink.api.common.functions.util.AbstractRuntimeUDFContextpublic <UK,UV> org.apache.flink.api.common.state.MapState<UK,UV> getMapState(org.apache.flink.api.common.state.MapStateDescriptor<UK,UV> stateProperties)
getMapState in interface org.apache.flink.api.common.functions.RuntimeContextgetMapState in class org.apache.flink.api.common.functions.util.AbstractRuntimeUDFContextpublic boolean isCheckpointingEnabled()
public CheckpointingMode getCheckpointMode()
public long getBufferTimeout()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.