@InterfaceAudience.Public public enum IsolationLevel extends Enum<IsolationLevel>
There are two isolation levels. A READ_COMMITTED isolation level indicates that only data that is committed be returned in a scan. An isolation level of READ_UNCOMMITTED indicates that a scan should return data that is being modified by transactions that might not have been committed yet.
枚举常量和说明 |
---|
READ_COMMITTED |
READ_UNCOMMITTED |
限定符和类型 | 方法和说明 |
---|---|
static IsolationLevel |
fromByte(byte vbyte) |
static IsolationLevel |
fromBytes(byte[] bytes) |
byte |
toByte() |
byte[] |
toBytes() |
static IsolationLevel |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static IsolationLevel[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final IsolationLevel READ_COMMITTED
public static final IsolationLevel READ_UNCOMMITTED
public static IsolationLevel[] values()
for (IsolationLevel c : IsolationLevel.values()) System.out.println(c);
public static IsolationLevel valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public byte[] toBytes()
public byte toByte()
public static IsolationLevel fromBytes(byte[] bytes)
public static IsolationLevel fromByte(byte vbyte)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.