@InterfaceAudience.Public public enum Consistency extends Enum<Consistency>
枚举常量和说明 |
---|
STRONG
Strong consistency is the default consistency model in HBase,
where reads and writes go through a single server which serializes
the updates, and returns all data that was written and ack'd.
|
TIMELINE
Timeline consistent reads might return values that may not see
the most recent updates.
|
public static final Consistency STRONG
public static final Consistency TIMELINE
public static Consistency[] values()
for (Consistency c : Consistency.values()) System.out.println(c);
public static Consistency valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.