org.apache.accumulo.core.file.rfile.bcfile
Enum Compression.Algorithm
java.lang.Object
java.lang.Enum<Compression.Algorithm>
org.apache.accumulo.core.file.rfile.bcfile.Compression.Algorithm
- All Implemented Interfaces:
- Serializable, Comparable<Compression.Algorithm>
- Enclosing class:
- Compression
public static enum Compression.Algorithm
- extends Enum<Compression.Algorithm>
Compression algorithms.
LZO
public static final Compression.Algorithm LZO
GZ
public static final Compression.Algorithm GZ
NONE
public static final Compression.Algorithm NONE
SNAPPY
public static final Compression.Algorithm SNAPPY
conf
protected static final org.apache.hadoop.conf.Configuration conf
CONF_LZO_CLASS
public static final String CONF_LZO_CLASS
- See Also:
- Constant Field Values
CONF_SNAPPY_CLASS
public static final String CONF_SNAPPY_CLASS
- See Also:
- Constant Field Values
values
public static Compression.Algorithm[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Compression.Algorithm c : Compression.Algorithm.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Compression.Algorithm valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
createDecompressionStream
public abstract InputStream createDecompressionStream(InputStream downStream,
org.apache.hadoop.io.compress.Decompressor decompressor,
int downStreamBufferSize)
throws IOException
- Throws:
IOException
createCompressionStream
public abstract OutputStream createCompressionStream(OutputStream downStream,
org.apache.hadoop.io.compress.Compressor compressor,
int downStreamBufferSize)
throws IOException
- Throws:
IOException
isSupported
public abstract boolean isSupported()
getCompressor
public org.apache.hadoop.io.compress.Compressor getCompressor()
throws IOException
- Throws:
IOException
returnCompressor
public void returnCompressor(org.apache.hadoop.io.compress.Compressor compressor)
getDecompressor
public org.apache.hadoop.io.compress.Decompressor getDecompressor()
throws IOException
- Throws:
IOException
returnDecompressor
public void returnDecompressor(org.apache.hadoop.io.compress.Decompressor decompressor)
getName
public String getName()
Copyright © 2015 Apache Accumulo Project. All rights reserved.