Package net.snowflake.ingest.utils
Enum Constants.BdecParquetCompression
- java.lang.Object
-
- java.lang.Enum<Constants.BdecParquetCompression>
-
- net.snowflake.ingest.utils.Constants.BdecParquetCompression
-
- All Implemented Interfaces:
Serializable
,Comparable<Constants.BdecParquetCompression>
- Enclosing class:
- Constants
public static enum Constants.BdecParquetCompression extends Enum<Constants.BdecParquetCompression>
Compression algorithm supported by BDEC Parquet Writer. It is a wrapper around Parquet's lib CompressionCodecName, but we want to control and allow only specific values of that.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Constants.BdecParquetCompression
fromName(String name)
org.apache.parquet.hadoop.metadata.CompressionCodecName
getCompressionCodec()
static Constants.BdecParquetCompression
valueOf(String name)
Returns the enum constant of this type with the specified name.static Constants.BdecParquetCompression[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GZIP
public static final Constants.BdecParquetCompression GZIP
-
ZSTD
public static final Constants.BdecParquetCompression ZSTD
-
-
Method Detail
-
values
public static Constants.BdecParquetCompression[] 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 (Constants.BdecParquetCompression c : Constants.BdecParquetCompression.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Constants.BdecParquetCompression 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
-
getCompressionCodec
public org.apache.parquet.hadoop.metadata.CompressionCodecName getCompressionCodec()
-
fromName
public static Constants.BdecParquetCompression fromName(String name)
-
-