public abstract class CheckpointMetadataOutputStream extends 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() |
flush, getPos, sync
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 FSDataOutputStream
IOException
- Thrown, if the stream cannot be closed.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.