org.apache.accumulo.core.file.rfile.bcfile
Enum Compression.Algorithm

java.lang.Object
  extended by java.lang.Enum<Compression.Algorithm>
      extended by 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.


Enum Constant Summary
GZ
           
LZO
           
NONE
           
SNAPPY
           
 
Field Summary
protected static org.apache.hadoop.conf.Configuration conf
           
static String CONF_LZO_CLASS
           
static String CONF_SNAPPY_CLASS
           
 
Method Summary
abstract  OutputStream createCompressionStream(OutputStream downStream, org.apache.hadoop.io.compress.Compressor compressor, int downStreamBufferSize)
           
abstract  InputStream createDecompressionStream(InputStream downStream, org.apache.hadoop.io.compress.Decompressor decompressor, int downStreamBufferSize)
           
 org.apache.hadoop.io.compress.Compressor getCompressor()
           
 org.apache.hadoop.io.compress.Decompressor getDecompressor()
           
 String getName()
           
abstract  boolean isSupported()
           
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Field Detail

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
Method Detail

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.