public static final class FsStateBackend.FsCheckpointStateOutputStream extends AbstractStateBackend.CheckpointStateOutputStream
| Constructor and Description |
|---|
FsCheckpointStateOutputStream(org.apache.flink.core.fs.Path basePath,
org.apache.flink.core.fs.FileSystem fs,
int bufferSize,
int localStateThreshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
If the stream is only closed, we remove the produced file (cleanup through the auto close
feature, for example).
|
StreamStateHandle |
closeAndGetHandle()
Closes the stream and gets a state handle that can create an input stream
producing the data written to this stream.
|
org.apache.flink.core.fs.Path |
closeAndGetPath()
Closes the stream and returns the path to the file that contains the stream's data.
|
void |
flush() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writepublic FsCheckpointStateOutputStream(org.apache.flink.core.fs.Path basePath,
org.apache.flink.core.fs.FileSystem fs,
int bufferSize,
int localStateThreshold)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic StreamStateHandle closeAndGetHandle() throws IOException
AbstractStateBackend.CheckpointStateOutputStreamcloseAndGetHandle in class AbstractStateBackend.CheckpointStateOutputStreamIOException - Thrown, if the stream cannot be closed.public org.apache.flink.core.fs.Path closeAndGetPath()
throws IOException
IOException - Thrown if the stream cannot be successfully closed.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.