Package net.snowflake.ingest.utils
Enum Constants.IcebergSerializationPolicy
- java.lang.Object
-
- java.lang.Enum<Constants.IcebergSerializationPolicy>
-
- net.snowflake.ingest.utils.Constants.IcebergSerializationPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<Constants.IcebergSerializationPolicy>
- Enclosing class:
- Constants
public static enum Constants.IcebergSerializationPolicy extends Enum<Constants.IcebergSerializationPolicy>
Iceberg table serialization policy. Use v2 parquet writer for optimized serialization, otherwise v1.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPATIBLE
OPTIMIZED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.parquet.column.ParquetProperties.WriterVersion
toParquetWriterVersion()
static Constants.IcebergSerializationPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static Constants.IcebergSerializationPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPATIBLE
public static final Constants.IcebergSerializationPolicy COMPATIBLE
-
OPTIMIZED
public static final Constants.IcebergSerializationPolicy OPTIMIZED
-
-
Method Detail
-
values
public static Constants.IcebergSerializationPolicy[] 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.IcebergSerializationPolicy c : Constants.IcebergSerializationPolicy.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.IcebergSerializationPolicy 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
-
toParquetWriterVersion
public org.apache.parquet.column.ParquetProperties.WriterVersion toParquetWriterVersion()
-
-