public abstract class CheckpointMetadataOutputStream extends FSDataOutputStream
This stream is similar to the
for metadata files rather thancdata files.
This stream always creates a file, regardless of the amount of data written.
|Constructor and Description|
|Modifier and Type||Method and Description|
This method should close the stream, if has not been closed before.
Closes the stream after all metadata was written and finalizes the checkpoint location.
flush, getPos, sync
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
IOException- Thrown, if the stream cannot be closed.
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.