Class PassthroughCodec

java.lang.Object
org.apache.hadoop.io.compress.PassthroughCodec
All Implemented Interfaces:
Configurable, CompressionCodec

@Public @Unstable public class PassthroughCodec extends Object implements Configurable, CompressionCodec
This is a special codec which does not transform the output. It can be declared as a codec in the option "io.compression.codecs", and then it will declare that it supports the file extension set in OPT_EXTENSION. This allows decompression to be disabled on a job, even when there is a registered/discoverable decompression codec for a file extension -without having to change the standard codec binding mechanism. For example, to disable decompression for a gzipped files, set the options
   io.compression.codecs = org.apache.hadoop.io.compress.PassthroughCodec
   io.compress.passthrough.extension = .gz
 
Note: this is not a Splittable codec: it doesn't know the capabilities of the passed in stream. It should be possible to extend this in a subclass: the inner classes are marked as protected to enable this. Do not retrofit splitting to this class..