Package org.apache.flink.runtime.state
Class OperatorStateCheckpointOutputStream
java.lang.Object
java.io.OutputStream
org.apache.flink.runtime.state.NonClosingCheckpointOutputStream<OperatorStateHandle>
org.apache.flink.runtime.state.OperatorStateCheckpointOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
@PublicEvolving
public final class OperatorStateCheckpointOutputStream
extends NonClosingCheckpointOutputStream<OperatorStateHandle>
Checkpoint output stream that allows to write raw operator state in a partitioned way.
-
Field Summary
Fields inherited from class org.apache.flink.runtime.state.NonClosingCheckpointOutputStream
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidUser code can call this method to signal that it begins to write a new partition of operator state.Methods inherited from class org.apache.flink.runtime.state.NonClosingCheckpointOutputStream
acquireLease, close, flush, write, write, writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
OperatorStateCheckpointOutputStream
- Throws:
IOException
-
-
Method Details
-
startNewPartition
User code can call this method to signal that it begins to write a new partition of operator state. Each previously written partition is considered final/immutable as soon as this method is called again.- Throws:
IOException
-
getNumberOfPartitions
public int getNumberOfPartitions()
-