@InterfaceAudience.Public @InterfaceStability.Evolving public static enum Compression.Algorithm extends Enum<Compression.Algorithm>
Modifier and Type | Method and Description |
---|---|
OutputStream |
createCompressionStream(OutputStream downStream,
org.apache.hadoop.io.compress.Compressor compressor,
int downStreamBufferSize) |
InputStream |
createDecompressionStream(InputStream downStream,
org.apache.hadoop.io.compress.Decompressor decompressor,
int downStreamBufferSize) |
org.apache.hadoop.io.compress.CompressionOutputStream |
createPlainCompressionStream(OutputStream downStream,
org.apache.hadoop.io.compress.Compressor compressor)
Creates a compression stream without any additional wrapping into
buffering streams.
|
org.apache.hadoop.io.compress.Compressor |
getCompressor() |
org.apache.hadoop.io.compress.Decompressor |
getDecompressor() |
String |
getName() |
void |
returnCompressor(org.apache.hadoop.io.compress.Compressor compressor) |
void |
returnDecompressor(org.apache.hadoop.io.compress.Decompressor decompressor) |
static Compression.Algorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Compression.Algorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Compression.Algorithm LZO
public static final Compression.Algorithm GZ
public static final Compression.Algorithm NONE
public static final Compression.Algorithm SNAPPY
public static final Compression.Algorithm LZ4
public static Compression.Algorithm[] values()
for (Compression.Algorithm c : Compression.Algorithm.values()) System.out.println(c);
public static Compression.Algorithm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic InputStream createDecompressionStream(InputStream downStream, org.apache.hadoop.io.compress.Decompressor decompressor, int downStreamBufferSize) throws IOException
IOException
public OutputStream createCompressionStream(OutputStream downStream, org.apache.hadoop.io.compress.Compressor compressor, int downStreamBufferSize) throws IOException
IOException
public org.apache.hadoop.io.compress.CompressionOutputStream createPlainCompressionStream(OutputStream downStream, org.apache.hadoop.io.compress.Compressor compressor) throws IOException
IOException
public org.apache.hadoop.io.compress.Compressor getCompressor()
public void returnCompressor(org.apache.hadoop.io.compress.Compressor compressor)
public org.apache.hadoop.io.compress.Decompressor getDecompressor()
public void returnDecompressor(org.apache.hadoop.io.compress.Decompressor decompressor)
public String getName()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.