public static enum HdfsDataOutputStream.SyncFlag extends Enum<HdfsDataOutputStream.SyncFlag>
| Enum Constant and Description | 
|---|
| END_BLOCKSync the data to DataNode, close the current block, and allocate a new
 block | 
| UPDATE_LENGTHWhen doing sync to DataNodes, also update the metadata (block length) in
 the NameNode. | 
| Modifier and Type | Method and Description | 
|---|---|
| static HdfsDataOutputStream.SyncFlag | valueOf(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(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 nullCopyright © 2008–2023 Apache Software Foundation. All rights reserved.