Package org.apache.flink.state.forst.fs
Class ByteBufferWritableFSDataOutputStream
java.lang.Object
java.io.OutputStream
org.apache.flink.core.fs.FSDataOutputStream
org.apache.flink.state.forst.fs.ByteBufferWritableFSDataOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ByteBufferWritableFSDataOutputStream
extends org.apache.flink.core.fs.FSDataOutputStream
A
FSDataOutputStream delegates requests to other one and supports writing data with
ByteBuffer.
All methods in this class maybe used by ForSt, please start a discussion firstly if it has to be modified.
-
Constructor Summary
ConstructorsConstructorDescriptionByteBufferWritableFSDataOutputStream(org.apache.flink.core.fs.FSDataOutputStream originalOutputStream) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
ByteBufferWritableFSDataOutputStream
public ByteBufferWritableFSDataOutputStream(org.apache.flink.core.fs.FSDataOutputStream originalOutputStream)
-
-
Method Details
-
write
WritesByteBuffer#remainingbytes from the ByteBuffer to this output stream. Not Thread-safe yet since the interface of write of ForSt only be accessed by one thread at a time.If
bbisnull, aNullPointerExceptionis thrown.- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionis thrown if the output stream is closed.
-
getPos
- Specified by:
getPosin classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
sync
- Specified by:
syncin classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-