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 of
CheckpointStreamWithResultProvider 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
ConstructorsConstructorDescriptionPrimaryAndSecondaryStream(CheckpointStateOutputStream primaryOut, CheckpointStateOutputStream secondaryOut) -
Method Summary
Modifier and TypeMethodDescriptionCloses the stream ans returns a snapshot result with the stream handle(s).Returns the encapsulated output stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.state.CheckpointStreamWithResultProvider
close
-
Constructor Details
-
PrimaryAndSecondaryStream
public PrimaryAndSecondaryStream(@Nonnull CheckpointStateOutputStream primaryOut, CheckpointStateOutputStream secondaryOut) throws IOException - Throws:
IOException
-
-
Method Details
-
closeAndFinalizeCheckpointStreamResult
@Nonnull public SnapshotResult<StreamStateHandle> closeAndFinalizeCheckpointStreamResult() throws IOExceptionDescription copied from interface:CheckpointStreamWithResultProviderCloses the stream ans returns a snapshot result with the stream handle(s).- Specified by:
closeAndFinalizeCheckpointStreamResultin interfaceCheckpointStreamWithResultProvider- Throws:
IOException
-
getCheckpointOutputStream
Description copied from interface:CheckpointStreamWithResultProviderReturns the encapsulated output stream.- Specified by:
getCheckpointOutputStreamin interfaceCheckpointStreamWithResultProvider
-