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 Summary
Enum Constants Enum Constant Description NOT_OWNEDThe file is not owned by DB.PRIVATE_OWNED_BY_DBThe file is privately owned by DB.SHAREABLE_OWNED_BY_DBThe file is owned by DB but is shareable.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileOwnershipvalueOf(String name)Returns the enum constant of this type with the specified name.static FileOwnership[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static FileOwnership[] 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 (FileOwnership c : FileOwnership.values()) System.out.println(c);
- 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 nameNullPointerException- if the argument is null
-
-