Package org.apache.wayang.flink.compiler
Class WayangFileOutputFormat.BlockBasedOutput
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.apache.wayang.flink.compiler.WayangFileOutputFormat.BlockBasedOutput
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
- Enclosing class:
- WayangFileOutputFormat<IT>
protected class WayangFileOutputFormat.BlockBasedOutput extends java.io.FilterOutputStreamWrites a block info at the end of the blocks.
Current implementation uses only int and not long.
-
-
Constructor Summary
Constructors Constructor Description BlockBasedOutput(java.io.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)
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
startRecord
public void startRecord()
-
write
public void write(byte[] b) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
-