public enum CompressionCodec extends Enum<CompressionCodec> implements Serializable
| Enum Constant and Description |
|---|
LZ4_FRAME |
NO_COMPRESSION |
ZSTD |
| Modifier and Type | Method and Description |
|---|---|
static Optional<CompressionCodec> |
byName(String name) |
String |
toString() |
static CompressionCodec |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionCodec[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionCodec NO_COMPRESSION
public static final CompressionCodec ZSTD
public static final CompressionCodec LZ4_FRAME
public static CompressionCodec[] values()
for (CompressionCodec c : CompressionCodec.values()) System.out.println(c);
public static CompressionCodec valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<CompressionCodec>public static Optional<CompressionCodec> byName(String name)
Copyright © 2024 Alibaba Cloud Computing. All rights reserved.