Enum CompressionType
- java.lang.Object
-
- java.lang.Enum<CompressionType>
-
- org.apache.pulsar.common.api.proto.CompressionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CompressionType>
public enum CompressionType extends java.lang.Enum<CompressionType>
-
-
Field Summary
Fields Modifier and Type Field Description static intLZ4_VALUEstatic intNONE_VALUEstatic intSNAPPY_VALUEstatic intZLIB_VALUEstatic intZSTD_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static CompressionTypevalueOf(int n)Returns the enum constant of this type with the specified name.static CompressionTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CompressionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final CompressionType NONE
-
LZ4
public static final CompressionType LZ4
-
ZLIB
public static final CompressionType ZLIB
-
ZSTD
public static final CompressionType ZSTD
-
SNAPPY
public static final CompressionType SNAPPY
-
-
Field Detail
-
NONE_VALUE
public static final int NONE_VALUE
- See Also:
- Constant Field Values
-
LZ4_VALUE
public static final int LZ4_VALUE
- See Also:
- Constant Field Values
-
ZLIB_VALUE
public static final int ZLIB_VALUE
- See Also:
- Constant Field Values
-
ZSTD_VALUE
public static final int ZSTD_VALUE
- See Also:
- Constant Field Values
-
SNAPPY_VALUE
public static final int SNAPPY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CompressionType[] 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 (CompressionType c : CompressionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompressionType 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
-
getValue
public int getValue()
-
valueOf
public static CompressionType valueOf(int n)
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:
n- 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
-
-