@InterfaceAudience.Public @InterfaceStability.Evolving public enum CreateEncryptionZoneFlag extends Enum<CreateEncryptionZoneFlag>
HdfsAdmin.createEncryptionZone(Path, String, EnumSet)
to indicate
what should be done when creating an encryption zone.
Use CreateEncryptionZoneFlag as follows:
Enum Constant and Description |
---|
NO_TRASH
Do not provision a trash directory in the encryption zone.
|
PROVISION_TRASH
Provision a trash directory .Trash/ in the
encryption zone.
|
Modifier and Type | Method and Description |
---|---|
short |
getMode() |
static CreateEncryptionZoneFlag |
valueOf(short mode) |
static CreateEncryptionZoneFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreateEncryptionZoneFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreateEncryptionZoneFlag NO_TRASH
NO_TRASH
public static final CreateEncryptionZoneFlag PROVISION_TRASH
PROVISION_TRASH
public static CreateEncryptionZoneFlag[] values()
for (CreateEncryptionZoneFlag c : CreateEncryptionZoneFlag.values()) System.out.println(c);
public static CreateEncryptionZoneFlag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static CreateEncryptionZoneFlag valueOf(short mode)
public short getMode()
Copyright © 2020 Apache Software Foundation. All rights reserved.