public abstract class CheckpointMetadataOutputStream
extends org.apache.flink.core.fs.FSDataOutputStream
Constructor and Description |
---|
CheckpointMetadataOutputStream() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
This method should close the stream, if has not been closed before.
|
abstract CompletedCheckpointStorageLocation |
closeAndFinalizeCheckpoint() |
write, write, write
public abstract CompletedCheckpointStorageLocation closeAndFinalizeCheckpoint() throws IOException
IOException
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
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.flink.core.fs.FSDataOutputStream
IOException
- Thrown, if the stream cannot be closed.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.