Package org.apache.drill.exec.store.dfs
Class ZipCodec
java.lang.Object
org.apache.hadoop.io.compress.DefaultCodec
org.apache.drill.exec.store.dfs.ZipCodec
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.io.compress.CompressionCodec
,org.apache.hadoop.io.compress.DirectDecompressionCodec
public class ZipCodec
extends org.apache.hadoop.io.compress.DefaultCodec
ZIP codec implementation which cna read or create single entry.
Note: Do not rename this class. Class naming must be 'ZipCodec' so it can be mapped by
CompressionCodecFactory
to the 'zip' extension.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.io.compress.CompressionCodec
org.apache.hadoop.io.compress.CompressionCodec.Util
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.io.compress.CompressionInputStream
org.apache.hadoop.io.compress.CompressionOutputStream
Methods inherited from class org.apache.hadoop.io.compress.DefaultCodec
createCompressor, createDecompressor, createDirectDecompressor, createInputStream, createOutputStream, getCompressorType, getConf, getDecompressorType, setConf
-
Constructor Details
-
ZipCodec
public ZipCodec()
-
-
Method Details
-
createOutputStream
public org.apache.hadoop.io.compress.CompressionOutputStream createOutputStream(OutputStream out) throws IOException - Specified by:
createOutputStream
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
- Overrides:
createOutputStream
in classorg.apache.hadoop.io.compress.DefaultCodec
- Throws:
IOException
-
createInputStream
public org.apache.hadoop.io.compress.CompressionInputStream createInputStream(InputStream in) throws IOException - Specified by:
createInputStream
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
- Overrides:
createInputStream
in classorg.apache.hadoop.io.compress.DefaultCodec
- Throws:
IOException
-
getDefaultExtension
- Specified by:
getDefaultExtension
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
- Overrides:
getDefaultExtension
in classorg.apache.hadoop.io.compress.DefaultCodec
-