org.apache.hadoop.hdfs.client
Enum HdfsDataOutputStream.SyncFlag
java.lang.Object
java.lang.Enum<HdfsDataOutputStream.SyncFlag>
org.apache.hadoop.hdfs.client.HdfsDataOutputStream.SyncFlag
- All Implemented Interfaces:
- Serializable, Comparable<HdfsDataOutputStream.SyncFlag>
- Enclosing class:
- HdfsDataOutputStream
public static enum HdfsDataOutputStream.SyncFlag
- extends Enum<HdfsDataOutputStream.SyncFlag>
Enum Constant Summary |
UPDATE_LENGTH
When doing sync to DataNodes, also update the metadata (block length) in
the NameNode. |
UPDATE_LENGTH
public static final HdfsDataOutputStream.SyncFlag UPDATE_LENGTH
- When doing sync to DataNodes, also update the metadata (block length) in
the NameNode.
values
public static HdfsDataOutputStream.SyncFlag[] 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 (HdfsDataOutputStream.SyncFlag c : HdfsDataOutputStream.SyncFlag.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HdfsDataOutputStream.SyncFlag 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
Copyright © 2014 Apache Software Foundation. All Rights Reserved.