public static enum Transaction.VisibilityLevel extends Enum<Transaction.VisibilityLevel>
SNAPSHOT
- uses the transaction's read snapshot, plus includes all write pointers from the
current transactionSNAPSHOT_EXCLUDE_CURRENT
- uses the transaction's read snapshot, plus includes all write
pointers from the current transaction, except the current write pointer
(see Transaction.getWritePointer()
)SNAPSHOT_ALL
- uses the transaction's read snapshot, plus includes all write pointers from the
current transaction. This visibility level will lead to raw fetch operations, where all versions
(including deletes) visible to current transaction are returned.The default value used is SNAPSHOT
.
Enum Constant and Description |
---|
SNAPSHOT |
SNAPSHOT_ALL |
SNAPSHOT_EXCLUDE_CURRENT |
Modifier and Type | Method and Description |
---|---|
static Transaction.VisibilityLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transaction.VisibilityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transaction.VisibilityLevel SNAPSHOT
public static final Transaction.VisibilityLevel SNAPSHOT_EXCLUDE_CURRENT
public static final Transaction.VisibilityLevel SNAPSHOT_ALL
public static Transaction.VisibilityLevel[] values()
for (Transaction.VisibilityLevel c : Transaction.VisibilityLevel.values()) System.out.println(c);
public static Transaction.VisibilityLevel 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 © 2017 The Apache Software Foundation. All rights reserved.