Class ChannelStatePendingResult
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.channel.ChannelStatePendingResult
-
public class ChannelStatePendingResult extends Object
The pending result of channel state for a specific checkpoint-subtask.
-
-
Constructor Summary
Constructors Constructor Description ChannelStatePendingResult(int subtaskIndex, long checkpointId, ChannelStateWriter.ChannelStateWriteResult result, org.apache.flink.runtime.checkpoint.channel.ChannelStateSerializer serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfail(Throwable e)voidfinishResult(StreamStateHandle stateHandle)Map<InputChannelInfo,AbstractChannelStateHandle.StateContentMetaInfo>getInputChannelOffsets()Map<ResultSubpartitionInfo,AbstractChannelStateHandle.StateContentMetaInfo>getResultSubpartitionOffsets()booleanisAllInputsReceived()booleanisAllOutputsReceived()booleanisDone()
-
-
-
Constructor Detail
-
ChannelStatePendingResult
public ChannelStatePendingResult(int subtaskIndex, long checkpointId, ChannelStateWriter.ChannelStateWriteResult result, org.apache.flink.runtime.checkpoint.channel.ChannelStateSerializer serializer)
-
-
Method Detail
-
isAllInputsReceived
public boolean isAllInputsReceived()
-
isAllOutputsReceived
public boolean isAllOutputsReceived()
-
getInputChannelOffsets
public Map<InputChannelInfo,AbstractChannelStateHandle.StateContentMetaInfo> getInputChannelOffsets()
-
getResultSubpartitionOffsets
public Map<ResultSubpartitionInfo,AbstractChannelStateHandle.StateContentMetaInfo> getResultSubpartitionOffsets()
-
finishResult
public void finishResult(@Nullable StreamStateHandle stateHandle) throws IOException- Throws:
IOException
-
fail
public void fail(Throwable e)
-
isDone
public boolean isDone()
-
-