Package org.apache.hadoop.io.file.tfile
Enum Class Compression.Algorithm
- All Implemented Interfaces:
Serializable,Comparable<Compression.Algorithm>,Constable
- Enclosing class:
- org.apache.hadoop.io.file.tfile.Compression
Compression algorithms.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract OutputStreamcreateCompressionStream(OutputStream downStream, Compressor compressor, int downStreamBufferSize) abstract InputStreamcreateDecompressionStream(InputStream downStream, Decompressor decompressor, int downStreamBufferSize) getName()abstract booleanvoidreturnCompressor(Compressor compressor) voidreturnDecompressor(Decompressor decompressor) static Compression.AlgorithmReturns the enum constant of this class with the specified name.static Compression.Algorithm[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LZO
-
GZ
-
NONE
-
-
Field Details
-
conf
-
CONF_LZO_CLASS
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
createDecompressionStream
public abstract InputStream createDecompressionStream(InputStream downStream, Decompressor decompressor, int downStreamBufferSize) throws IOException - Throws:
IOException
-
createCompressionStream
public abstract OutputStream createCompressionStream(OutputStream downStream, Compressor compressor, int downStreamBufferSize) throws IOException - Throws:
IOException
-
isSupported
public abstract boolean isSupported() -
getCompressor
- Throws:
IOException
-
returnCompressor
-
getDecompressor
- Throws:
IOException
-
returnDecompressor
-
getName
-