java.io.Serializable, java.lang.Comparable<AddBlockFlag>@Private @Evolving public enum AddBlockFlag extends java.lang.Enum<AddBlockFlag>
| Enum Constant | Description |
|---|---|
IGNORE_CLIENT_LOCALITY |
Advise that the first block replica NOT take into account DataNode
locality.
|
NO_LOCAL_RACK |
Advise that a block replica NOT be written to the local rack DataNode where
'local' means the same host as the client is being run on.
|
NO_LOCAL_WRITE |
Advise that a block replica NOT be written to the local DataNode where
'local' means the same host as the client is being run on.
|
| Modifier and Type | Method | Description |
|---|---|---|
short |
getMode() |
|
static AddBlockFlag |
valueOf(short mode) |
Returns the enum constant of this type with the specified name.
|
static AddBlockFlag |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static AddBlockFlag[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AddBlockFlag NO_LOCAL_WRITE
CreateFlag.NO_LOCAL_WRITEpublic static final AddBlockFlag IGNORE_CLIENT_LOCALITY
CreateFlag.IGNORE_CLIENT_LOCALITYpublic static final AddBlockFlag NO_LOCAL_RACK
CreateFlag.NO_LOCAL_WRITEpublic static AddBlockFlag[] values()
for (AddBlockFlag c : AddBlockFlag.values()) System.out.println(c);
public static AddBlockFlag valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static AddBlockFlag valueOf(short mode)
mode - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic short getMode()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.