Package io.trino.plugin.hive
Enum LocationHandle.WriteMode
- java.lang.Object
-
- java.lang.Enum<LocationHandle.WriteMode>
-
- io.trino.plugin.hive.LocationHandle.WriteMode
-
- All Implemented Interfaces:
Serializable,Comparable<LocationHandle.WriteMode>
- Enclosing class:
- LocationHandle
public static enum LocationHandle.WriteMode extends Enum<LocationHandle.WriteMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIRECT_TO_TARGET_EXISTING_DIRECTORYfor existing table in S3 (both new and existing partition) or when staging directory is disabledDIRECT_TO_TARGET_NEW_DIRECTORYfor new table in S3 or when staging directory is disabledSTAGE_AND_MOVE_TO_TARGET_DIRECTORYcommon mode for new table or existing table (both new and existing partition) and when staging directory is enabled
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisWritePathSameAsTargetPath()static LocationHandle.WriteModevalueOf(String name)Returns the enum constant of this type with the specified name.static LocationHandle.WriteMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STAGE_AND_MOVE_TO_TARGET_DIRECTORY
public static final LocationHandle.WriteMode 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
public static final LocationHandle.WriteMode DIRECT_TO_TARGET_NEW_DIRECTORY
for new table in S3 or when staging directory is disabled
-
DIRECT_TO_TARGET_EXISTING_DIRECTORY
public static final LocationHandle.WriteMode DIRECT_TO_TARGET_EXISTING_DIRECTORY
for existing table in S3 (both new and existing partition) or when staging directory is disabled
-
-
Method Detail
-
values
public static LocationHandle.WriteMode[] 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 (LocationHandle.WriteMode c : LocationHandle.WriteMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LocationHandle.WriteMode 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
-
isWritePathSameAsTargetPath
public boolean isWritePathSameAsTargetPath()
-
-