Package org.apache.flink.api.common.io
Class BinaryOutputFormat.BlockBasedOutput
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.apache.flink.api.common.io.BinaryOutputFormat.BlockBasedOutput
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
- BinaryOutputFormat<T>
protected class BinaryOutputFormat.BlockBasedOutput extends FilterOutputStream
Writes a block info at the end of the blocks.
Current implementation uses only int and not long.
-
-
Field Summary
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description BlockBasedOutput(OutputStream out, int blockSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidstartRecord()voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.FilterOutputStream
flush
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
BlockBasedOutput
public BlockBasedOutput(OutputStream out, int blockSize)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException
-
startRecord
public void startRecord()
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
-