You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by LeeEfan <nk...@outlook.com> on 2013/01/23 08:43:39 UTC
A question about hadoo io
Hi, all.
I am reading the SequenceFile code, and I have a question about hadoop compression io.
The code in org.apache.io.SequenceFile.BlockCompressWriter.writeBuffer:
deflateOut.flush();
deflateFilter.finish();
Why the flush() is called first? I think the compressor.finish() should be called before flush the output stream.