Class NonBlockedDecompressorStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.hadoop.fs.Seekable

    public class NonBlockedDecompressorStream
    extends org.apache.hadoop.io.compress.DecompressorStream
    DecompressorStream class that should be used instead of the default hadoop DecompressorStream object. Hadoop's compressor adds blocking ontop of the compression codec. We don't want that since our Pages already solve the need to add blocking.
    • Constructor Detail

      • NonBlockedDecompressorStream

        public NonBlockedDecompressorStream​(InputStream stream,
                                            org.apache.hadoop.io.compress.Decompressor decompressor,
                                            int bufferSize)
                                     throws IOException
        Throws:
        IOException
    • Method Detail

      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws IOException
        Overrides:
        read in class org.apache.hadoop.io.compress.DecompressorStream
        Throws:
        IOException