Package org.apache.flink.runtime.state
Class MergedResultSubpartitionStateHandle
- java.lang.Object
-
- org.apache.flink.runtime.state.AbstractMergedChannelStateHandle<ResultSubpartitionInfo,ResultSubpartitionStateHandle>
-
- org.apache.flink.runtime.state.MergedResultSubpartitionStateHandle
-
- All Implemented Interfaces:
Serializable,ChannelState,OutputStateHandle,StateObject
public class MergedResultSubpartitionStateHandle extends AbstractMergedChannelStateHandle<ResultSubpartitionInfo,ResultSubpartitionStateHandle> implements OutputStateHandle
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.StateObject
StateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.state.AbstractMergedChannelStateHandle
delegate, serializedChannelOffsets, size, subtaskIndex
-
-
Constructor Summary
Constructors Constructor Description MergedResultSubpartitionStateHandle(int subtaskIndex, StreamStateHandle delegate, long size, byte[] serializedChannelOffsets)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ResultSubpartitionStateHandlecreateUnmergedHandle(int subtaskIndex, StreamStateHandle delegate, ResultSubpartitionInfo info, long stateSize, List<Long> offsets)static MergedResultSubpartitionStateHandlefromChannelHandles(Collection<ResultSubpartitionStateHandle> handles)protected ResultSubpartitionInforeadInfo(DataInputStream dis)protected voidwriteInfo(ResultSubpartitionInfo resultSubpartitionInfo, DataOutputStream dos)-
Methods inherited from class org.apache.flink.runtime.state.AbstractMergedChannelStateHandle
discardState, equals, getDelegate, getInfos, getSerializedChannelOffsets, getStateSize, getSubtaskIndex, getUnmergedHandles, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.state.StateObject
collectSizeStats, discardState, getStateSize
-
-
-
-
Constructor Detail
-
MergedResultSubpartitionStateHandle
public MergedResultSubpartitionStateHandle(int subtaskIndex, StreamStateHandle delegate, long size, byte[] serializedChannelOffsets)
-
-
Method Detail
-
writeInfo
protected void writeInfo(ResultSubpartitionInfo resultSubpartitionInfo, DataOutputStream dos) throws IOException
- Specified by:
writeInfoin classAbstractMergedChannelStateHandle<ResultSubpartitionInfo,ResultSubpartitionStateHandle>- Throws:
IOException
-
readInfo
protected ResultSubpartitionInfo readInfo(DataInputStream dis) throws IOException
- Specified by:
readInfoin classAbstractMergedChannelStateHandle<ResultSubpartitionInfo,ResultSubpartitionStateHandle>- Throws:
IOException
-
createUnmergedHandle
protected ResultSubpartitionStateHandle createUnmergedHandle(int subtaskIndex, StreamStateHandle delegate, ResultSubpartitionInfo info, long stateSize, List<Long> offsets)
- Specified by:
createUnmergedHandlein classAbstractMergedChannelStateHandle<ResultSubpartitionInfo,ResultSubpartitionStateHandle>
-
fromChannelHandles
public static MergedResultSubpartitionStateHandle fromChannelHandles(Collection<ResultSubpartitionStateHandle> handles)
-
-