Enum FileOwnership

java.lang.Object
java.lang.Enum<FileOwnership>
org.apache.flink.state.forst.fs.filemapping.FileOwnership
All Implemented Interfaces:
Serializable, Comparable<FileOwnership>

public enum FileOwnership extends Enum<FileOwnership>
Indicates the ownership of a file in ForSt DB.
  • Enum Constant Details

    • PRIVATE_OWNED_BY_DB

      public static final FileOwnership PRIVATE_OWNED_BY_DB
      The file is privately owned by DB. "Owned by DB" means the file's lifecycle is managed by DB, i.e., it will be deleted when DB decides to dispose of it. "Privately" indicates that its ownership cannot be transferred to JM.
    • SHAREABLE_OWNED_BY_DB

      public static final FileOwnership SHAREABLE_OWNED_BY_DB
      The file is owned by DB but is shareable. "Shareable" means its ownership can be transferred to JM in the future.
    • NOT_OWNED

      public static final FileOwnership NOT_OWNED
      The file is not owned by DB. That means its lifecycle is not managed by DB, and only JM can decide when to delete it.
  • Method Details

    • values

      public static FileOwnership[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FileOwnership 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 name
      NullPointerException - if the argument is null