Enum Class LocationHandle.WriteMode

java.lang.Object
java.lang.Enum<LocationHandle.WriteMode>
io.trino.plugin.hive.LocationHandle.WriteMode
All Implemented Interfaces:
Serializable, Comparable<LocationHandle.WriteMode>, Constable
Enclosing class:
LocationHandle

public static enum LocationHandle.WriteMode extends Enum<LocationHandle.WriteMode>
  • Enum Constant Details

    • 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 Details

    • values

      public static LocationHandle.WriteMode[] 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

      public static LocationHandle.WriteMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isWritePathSameAsTargetPath

      public boolean isWritePathSameAsTargetPath()