Package org.apache.cassandra.io.compress
Enum ICompressor.Uses
- java.lang.Object
-
- java.lang.Enum<ICompressor.Uses>
-
- org.apache.cassandra.io.compress.ICompressor.Uses
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ICompressor.Uses>
- Enclosing interface:
- ICompressor
public static enum ICompressor.Uses extends java.lang.Enum<ICompressor.Uses>
Ways that a particular instance of ICompressor should be used internally in Cassandra. GENERAL: Suitable for general use FAST_COMPRESSION: Suitable for use in particularly latency sensitive compression situations (flushes).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAST_COMPRESSION
GENERAL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ICompressor.Uses
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ICompressor.Uses[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GENERAL
public static final ICompressor.Uses GENERAL
-
FAST_COMPRESSION
public static final ICompressor.Uses FAST_COMPRESSION
-
-
Method Detail
-
values
public static ICompressor.Uses[] 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 (ICompressor.Uses c : ICompressor.Uses.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ICompressor.Uses valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-