Package org.apache.flink.runtime.state
Class ChannelStateHelper
- java.lang.Object
-
- org.apache.flink.runtime.state.ChannelStateHelper
-
public final class ChannelStateHelper extends Object
Utility class for channel info serialization and conversions between single channel state handle and merged state handle.
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.flink.util.function.FunctionWithException<DataInputStream,InputChannelInfo,IOException>INPUT_CHANNEL_INFO_READERstatic org.apache.flink.util.function.BiConsumerWithException<InputChannelInfo,DataOutputStream,IOException>INPUT_CHANNEL_INFO_WRITERstatic org.apache.flink.util.function.FunctionWithException<DataInputStream,ResultSubpartitionInfo,IOException>RESULT_SUBPARTITION_INFO_READERstatic org.apache.flink.util.function.BiConsumerWithException<ResultSubpartitionInfo,DataOutputStream,IOException>RESULT_SUBPARTITION_INFO_WRITER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StateObjectCollection<InputStateHandle>castToInputStateCollection(Collection<InputChannelStateHandle> handles)static StateObjectCollection<OutputStateHandle>castToOutputStateCollection(Collection<ResultSubpartitionStateHandle> handles)static Stream<StreamStateHandle>collectUniqueDisposableInChannelState(Stream<StateObjectCollection<? extends ChannelState>> stateCollections)static StateObjectCollection<InputChannelStateHandle>extractUnmergedInputHandles(OperatorSubtaskState subtaskState)static StateObjectCollection<ResultSubpartitionStateHandle>extractUnmergedOutputHandles(OperatorSubtaskState subtaskState)static StateObjectCollection<InputStateHandle>mergeInputStateCollection(Collection<InputChannelStateHandle> handles)static StateObjectCollection<OutputStateHandle>mergeOutputStateCollection(Collection<ResultSubpartitionStateHandle> handles)
-
-
-
Field Detail
-
RESULT_SUBPARTITION_INFO_WRITER
public static final org.apache.flink.util.function.BiConsumerWithException<ResultSubpartitionInfo,DataOutputStream,IOException> RESULT_SUBPARTITION_INFO_WRITER
-
INPUT_CHANNEL_INFO_WRITER
public static final org.apache.flink.util.function.BiConsumerWithException<InputChannelInfo,DataOutputStream,IOException> INPUT_CHANNEL_INFO_WRITER
-
RESULT_SUBPARTITION_INFO_READER
public static final org.apache.flink.util.function.FunctionWithException<DataInputStream,ResultSubpartitionInfo,IOException> RESULT_SUBPARTITION_INFO_READER
-
INPUT_CHANNEL_INFO_READER
public static final org.apache.flink.util.function.FunctionWithException<DataInputStream,InputChannelInfo,IOException> INPUT_CHANNEL_INFO_READER
-
-
Method Detail
-
collectUniqueDisposableInChannelState
public static Stream<StreamStateHandle> collectUniqueDisposableInChannelState(Stream<StateObjectCollection<? extends ChannelState>> stateCollections)
-
castToInputStateCollection
public static StateObjectCollection<InputStateHandle> castToInputStateCollection(Collection<InputChannelStateHandle> handles)
-
castToOutputStateCollection
public static StateObjectCollection<OutputStateHandle> castToOutputStateCollection(Collection<ResultSubpartitionStateHandle> handles)
-
mergeInputStateCollection
public static StateObjectCollection<InputStateHandle> mergeInputStateCollection(Collection<InputChannelStateHandle> handles)
-
mergeOutputStateCollection
public static StateObjectCollection<OutputStateHandle> mergeOutputStateCollection(Collection<ResultSubpartitionStateHandle> handles)
-
extractUnmergedInputHandles
public static StateObjectCollection<InputChannelStateHandle> extractUnmergedInputHandles(OperatorSubtaskState subtaskState)
-
extractUnmergedOutputHandles
public static StateObjectCollection<ResultSubpartitionStateHandle> extractUnmergedOutputHandles(OperatorSubtaskState subtaskState)
-
-