@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.
Enum Constant and Description |
---|
READ_COMMITTED |
READ_UNCOMMITTED |
Modifier and Type | Method and Description |
---|---|
static IsolationLevel |
fromByte(byte vbyte) |
static IsolationLevel |
fromBytes(byte[] bytes) |
byte |
toByte() |
byte[] |
toBytes() |
static IsolationLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IsolationLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- 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 nullpublic byte[] toBytes()
public byte toByte()
public static IsolationLevel fromBytes(byte[] bytes)
public static IsolationLevel fromByte(byte vbyte)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.