public enum CompressionType extends Enum<CompressionType>
| Enum Constant and Description |
|---|
GZIP
GZIP
|
LZ4
LZ4
|
LZO
LZO
|
PAA
PAA
|
PLA
PLA
|
SDT
SDT
|
SNAPPY
SNAPPY
|
UNCOMPRESSED
Do not comprocess
|
| Modifier and Type | Method and Description |
|---|---|
static CompressionType |
deserialize(byte compressor)
deserialize byte number.
|
String |
getExtension()
get extension.
|
static int |
getSerializedSize() |
byte |
serialize() |
static CompressionType |
valueOf(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.
|
public static final CompressionType UNCOMPRESSED
public static final CompressionType SNAPPY
public static final CompressionType GZIP
public static final CompressionType LZO
public static final CompressionType SDT
public static final CompressionType PAA
public static final CompressionType PLA
public static final CompressionType LZ4
public static CompressionType[] values()
for (CompressionType c : CompressionType.values()) System.out.println(c);
public static CompressionType 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 static CompressionType deserialize(byte compressor)
compressor - byte numberpublic static int getSerializedSize()
public byte serialize()
public String getExtension()
Copyright © 2022 The Apache Software Foundation. All rights reserved.