public static enum File.XAttrUpdateStrategy extends Enum<File.XAttrUpdateStrategy> implements com.google.protobuf.ProtocolMessageEnum
XAttrUpdateStrategy controls the behaviour for handling updates to the xAttr map - TRUNCATE: Replaces the existing xAttr map with the provided xAttr - UNION_REPLACE: Inserts all keys from xAttr and overwrites any existing keys - UNION_PRESERVE: Inserts all new keys from xAttr (i.e: preserves any existing keys) - DELETE_KEYS: Deletes the specified xAttr keys from the existing xAttr mapProtobuf enum
alluxio.proto.journal.XAttrUpdateStrategy
Enum Constant and Description |
---|
DELETE_KEYS
DELETE_KEYS = 4; |
TRUNCATE
TRUNCATE = 1; |
UNION_PRESERVE
UNION_PRESERVE = 3; |
UNION_REPLACE
UNION_REPLACE = 2; |
Modifier and Type | Field and Description |
---|---|
static int |
DELETE_KEYS_VALUE
DELETE_KEYS = 4; |
static int |
TRUNCATE_VALUE
TRUNCATE = 1; |
static int |
UNION_PRESERVE_VALUE
UNION_PRESERVE = 3; |
static int |
UNION_REPLACE_VALUE
UNION_REPLACE = 2; |
Modifier and Type | Method and Description |
---|---|
static File.XAttrUpdateStrategy |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<File.XAttrUpdateStrategy> |
internalGetValueMap() |
static File.XAttrUpdateStrategy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static File.XAttrUpdateStrategy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static File.XAttrUpdateStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static File.XAttrUpdateStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final File.XAttrUpdateStrategy TRUNCATE
TRUNCATE = 1;
public static final File.XAttrUpdateStrategy UNION_REPLACE
UNION_REPLACE = 2;
public static final File.XAttrUpdateStrategy UNION_PRESERVE
UNION_PRESERVE = 3;
public static final File.XAttrUpdateStrategy DELETE_KEYS
DELETE_KEYS = 4;
public static final int TRUNCATE_VALUE
TRUNCATE = 1;
public static final int UNION_REPLACE_VALUE
UNION_REPLACE = 2;
public static final int UNION_PRESERVE_VALUE
UNION_PRESERVE = 3;
public static final int DELETE_KEYS_VALUE
DELETE_KEYS = 4;
public static File.XAttrUpdateStrategy[] values()
for (File.XAttrUpdateStrategy c : File.XAttrUpdateStrategy.values()) System.out.println(c);
public static File.XAttrUpdateStrategy 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 final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static File.XAttrUpdateStrategy valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static File.XAttrUpdateStrategy forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<File.XAttrUpdateStrategy> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static File.XAttrUpdateStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023. All Rights Reserved.