Package io.trino.plugin.hive
Enum Class LocationHandle.WriteMode
- All Implemented Interfaces:
Serializable,Comparable<LocationHandle.WriteMode>,Constable
- Enclosing class:
- LocationHandle
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionfor existing table in S3 (both new and existing partition) or when staging directory is disabledfor new table in S3 or when staging directory is disabledcommon mode for new table or existing table (both new and existing partition) and when staging directory is enabled -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LocationHandle.WriteModeReturns the enum constant of this class with the specified name.static LocationHandle.WriteMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STAGE_AND_MOVE_TO_TARGET_DIRECTORY
common mode for new table or existing table (both new and existing partition) and when staging directory is enabled -
DIRECT_TO_TARGET_NEW_DIRECTORY
for new table in S3 or when staging directory is disabled -
DIRECT_TO_TARGET_EXISTING_DIRECTORY
for existing table in S3 (both new and existing partition) or when staging directory is disabled
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isWritePathSameAsTargetPath
public boolean isWritePathSameAsTargetPath()
-