java.io.Serializable, java.lang.Comparable<HdfsDataOutputStream.SyncFlag>public static enum HdfsDataOutputStream.SyncFlag extends java.lang.Enum<HdfsDataOutputStream.SyncFlag>
| Enum Constant | Description |
|---|---|
END_BLOCK |
Sync the data to DataNode, close the current block, and allocate a new
block
|
UPDATE_LENGTH |
When doing sync to DataNodes, also update the metadata (block length) in
the NameNode.
|
| Modifier and Type | Method | Description |
|---|---|---|
static HdfsDataOutputStream.SyncFlag |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static HdfsDataOutputStream.SyncFlag[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HdfsDataOutputStream.SyncFlag UPDATE_LENGTH
public static final HdfsDataOutputStream.SyncFlag END_BLOCK
public static HdfsDataOutputStream.SyncFlag[] values()
for (HdfsDataOutputStream.SyncFlag c : HdfsDataOutputStream.SyncFlag.values()) System.out.println(c);
public static HdfsDataOutputStream.SyncFlag 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 nullCopyright © 2008–2025 Apache Software Foundation. All rights reserved.