Package io.trino.plugin.hive
Enum HiveStorageFormat
- java.lang.Object
-
- java.lang.Enum<HiveStorageFormat>
-
- io.trino.plugin.hive.HiveStorageFormat
-
- All Implemented Interfaces:
Serializable,Comparable<HiveStorageFormat>
public enum HiveStorageFormat extends Enum<HiveStorageFormat>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.airlift.units.DataSizegetEstimatedWriterSystemMemoryUsage()static Optional<HiveStorageFormat>getHiveStorageFormat(StorageFormat storageFormat)StringgetInputFormat()StringgetOutputFormat()StringgetSerDe()voidvalidateColumns(List<HiveColumnHandle> handles)static HiveStorageFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static HiveStorageFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORC
public static final HiveStorageFormat ORC
-
PARQUET
public static final HiveStorageFormat PARQUET
-
AVRO
public static final HiveStorageFormat AVRO
-
RCBINARY
public static final HiveStorageFormat RCBINARY
-
RCTEXT
public static final HiveStorageFormat RCTEXT
-
SEQUENCEFILE
public static final HiveStorageFormat SEQUENCEFILE
-
JSON
public static final HiveStorageFormat JSON
-
TEXTFILE
public static final HiveStorageFormat TEXTFILE
-
CSV
public static final HiveStorageFormat CSV
-
-
Method Detail
-
values
public static HiveStorageFormat[] 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 (HiveStorageFormat c : HiveStorageFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HiveStorageFormat 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
-
getSerDe
public String getSerDe()
-
getInputFormat
public String getInputFormat()
-
getOutputFormat
public String getOutputFormat()
-
getEstimatedWriterSystemMemoryUsage
public io.airlift.units.DataSize getEstimatedWriterSystemMemoryUsage()
-
validateColumns
public void validateColumns(List<HiveColumnHandle> handles)
-
getHiveStorageFormat
public static Optional<HiveStorageFormat> getHiveStorageFormat(StorageFormat storageFormat)
-
-