public abstract class CheckpointMetadataOutputStream
extends org.apache.flink.core.fs.FSDataOutputStream
This stream is similar to the CheckpointStreamFactory.CheckpointStateOutputStream
,
but for metadata files rather thancdata files.
This stream always creates a file, regardless of the amount of data written.
构造器和说明 |
---|
CheckpointMetadataOutputStream() |
限定符和类型 | 方法和说明 |
---|---|
abstract void |
close()
This method should close the stream, if has not been closed before.
|
abstract CompletedCheckpointStorageLocation |
closeAndFinalizeCheckpoint()
Closes the stream after all metadata was written and finalizes the checkpoint location.
|
write, write, write
public abstract CompletedCheckpointStorageLocation closeAndFinalizeCheckpoint() throws IOException
IOException
- Thrown, if the stream cannot be closed or the finalization fails.public abstract void close() throws IOException
The above implies that this method is intended to be the "unsuccessful close",
such as when cancelling the stream writing, or when an exception occurs.
Closing the stream for the successful case must go through closeAndFinalizeCheckpoint()
.
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 org.apache.flink.core.fs.FSDataOutputStream
IOException
- Thrown, if the stream cannot be closed.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.