Package org.apache.flink.runtime.state
Class CheckpointStreamWithResultProvider.PrimaryAndSecondaryStream
- java.lang.Object
-
- org.apache.flink.runtime.state.CheckpointStreamWithResultProvider.PrimaryAndSecondaryStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,CheckpointStreamWithResultProvider
- Enclosing interface:
- CheckpointStreamWithResultProvider
public static class CheckpointStreamWithResultProvider.PrimaryAndSecondaryStream extends Object implements CheckpointStreamWithResultProvider
Implementation ofCheckpointStreamWithResultProvider
that creates both, the primary/remote/jm-owned state and the secondary/local/tm-owned state.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.CheckpointStreamWithResultProvider
CheckpointStreamWithResultProvider.KeyedStateHandleFactory, CheckpointStreamWithResultProvider.PrimaryAndSecondaryStream, CheckpointStreamWithResultProvider.PrimaryStreamOnly
-
-
Constructor Summary
Constructors Constructor Description PrimaryAndSecondaryStream(CheckpointStateOutputStream primaryOut, CheckpointStateOutputStream secondaryOut)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotResult<StreamStateHandle>
closeAndFinalizeCheckpointStreamResult()
Closes the stream ans returns a snapshot result with the stream handle(s).DuplicatingCheckpointOutputStream
getCheckpointOutputStream()
Returns the encapsulated output stream.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.state.CheckpointStreamWithResultProvider
close
-
-
-
-
Constructor Detail
-
PrimaryAndSecondaryStream
public PrimaryAndSecondaryStream(@Nonnull CheckpointStateOutputStream primaryOut, CheckpointStateOutputStream secondaryOut) throws IOException
- Throws:
IOException
-
-
Method Detail
-
closeAndFinalizeCheckpointStreamResult
@Nonnull public SnapshotResult<StreamStateHandle> closeAndFinalizeCheckpointStreamResult() throws IOException
Description copied from interface:CheckpointStreamWithResultProvider
Closes the stream ans returns a snapshot result with the stream handle(s).- Specified by:
closeAndFinalizeCheckpointStreamResult
in interfaceCheckpointStreamWithResultProvider
- Throws:
IOException
-
getCheckpointOutputStream
@Nonnull public DuplicatingCheckpointOutputStream getCheckpointOutputStream()
Description copied from interface:CheckpointStreamWithResultProvider
Returns the encapsulated output stream.- Specified by:
getCheckpointOutputStream
in interfaceCheckpointStreamWithResultProvider
-
-