Package io.trino.plugin.hive
Enum HiveCompressionCodec
- java.lang.Object
-
- java.lang.Enum<HiveCompressionCodec>
-
- io.trino.plugin.hive.HiveCompressionCodec
-
- All Implemented Interfaces:
Serializable,Comparable<HiveCompressionCodec>
public enum HiveCompressionCodec extends Enum<HiveCompressionCodec>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Class<? extends org.apache.hadoop.io.compress.CompressionCodec>>getCodec()CompressionKindgetOrcCompressionKind()org.apache.parquet.hadoop.metadata.CompressionCodecNamegetParquetCompressionCodec()static HiveCompressionCodecvalueOf(String name)Returns the enum constant of this type with the specified name.static HiveCompressionCodec[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final HiveCompressionCodec NONE
-
SNAPPY
public static final HiveCompressionCodec SNAPPY
-
LZ4
public static final HiveCompressionCodec LZ4
-
ZSTD
public static final HiveCompressionCodec ZSTD
-
GZIP
public static final HiveCompressionCodec GZIP
-
-
Method Detail
-
values
public static HiveCompressionCodec[] 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 (HiveCompressionCodec c : HiveCompressionCodec.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HiveCompressionCodec 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
-
getCodec
public Optional<Class<? extends org.apache.hadoop.io.compress.CompressionCodec>> getCodec()
-
getOrcCompressionKind
public CompressionKind getOrcCompressionKind()
-
getParquetCompressionCodec
public org.apache.parquet.hadoop.metadata.CompressionCodecName getParquetCompressionCodec()
-
-