Enum CompressionCodecName
- java.lang.Object
-
- java.lang.Enum<CompressionCodecName>
-
- org.apache.parquet.hadoop.metadata.CompressionCodecName
-
- All Implemented Interfaces:
Serializable
,Comparable<CompressionCodecName>
public enum CompressionCodecName extends Enum<CompressionCodecName>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompressionCodecName
fromCompressionCodec(Class<?> clazz)
static CompressionCodecName
fromConf(String name)
static CompressionCodecName
fromParquet(org.apache.parquet.format.CompressionCodec codec)
String
getExtension()
Class
getHadoopCompressionCodecClass()
String
getHadoopCompressionCodecClassName()
org.apache.parquet.format.CompressionCodec
getParquetCompressionCodec()
static CompressionCodecName
valueOf(String name)
Returns the enum constant of this type with the specified name.static CompressionCodecName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNCOMPRESSED
public static final CompressionCodecName UNCOMPRESSED
-
SNAPPY
public static final CompressionCodecName SNAPPY
-
GZIP
public static final CompressionCodecName GZIP
-
LZO
public static final CompressionCodecName LZO
-
BROTLI
public static final CompressionCodecName BROTLI
-
LZ4
public static final CompressionCodecName LZ4
-
ZSTD
public static final CompressionCodecName ZSTD
-
LZ4_RAW
public static final CompressionCodecName LZ4_RAW
-
-
Method Detail
-
values
public static CompressionCodecName[] 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 (CompressionCodecName c : CompressionCodecName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompressionCodecName 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 nameNullPointerException
- if the argument is null
-
fromConf
public static CompressionCodecName fromConf(String name)
-
fromCompressionCodec
public static CompressionCodecName fromCompressionCodec(Class<?> clazz)
-
fromParquet
public static CompressionCodecName fromParquet(org.apache.parquet.format.CompressionCodec codec)
-
getHadoopCompressionCodecClassName
public String getHadoopCompressionCodecClassName()
-
getHadoopCompressionCodecClass
public Class getHadoopCompressionCodecClass()
-
getParquetCompressionCodec
public org.apache.parquet.format.CompressionCodec getParquetCompressionCodec()
-
getExtension
public String getExtension()
-
-