@InterfaceAudience.Public public enum Durability extends Enum<Durability>
Mutation
s
Note that the items must be sorted in order of increasing durability枚举常量和说明 |
---|
ASYNC_WAL
Write the Mutation to the WAL asynchronously
|
FSYNC_WAL
Write the Mutation to the WAL synchronously and force the entries to disk.
|
SKIP_WAL
Do not write the Mutation to the WAL
|
SYNC_WAL
Write the Mutation to the WAL synchronously.
|
USE_DEFAULT
If this is for tables durability, use HBase's global default value (SYNC_WAL).
|
public static final Durability USE_DEFAULT
public static final Durability SKIP_WAL
public static final Durability ASYNC_WAL
public static final Durability SYNC_WAL
public static final Durability FSYNC_WAL
public static Durability[] values()
for (Durability c : Durability.values()) System.out.println(c);
public static Durability valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.