public static enum TxConstants.ConflictDetection extends Enum<TxConstants.ConflictDetection>
ROW
means that only the
table name and row key for each change will be used to determine if the transaction change sets conflict.
COLUMN
means that the table name, row key, column family, and column qualifier will all be used to
identify write conflicts. NONE
means that no conflict detection will be performed, but transaction
clients will still track the current transaction's change set to rollback any persisted changes in the event of
a failure. This should only be used where writes to the same coordinate should never conflict, such as
append-only data. The default value used by TransactionAwareHTable
implementations is COLUMN
.
Note: for a given table, all clients must use the same conflict detection setting! Otherwise conflicts will not be flagged correctly.
Modifier and Type | Method and Description |
---|---|
static TxConstants.ConflictDetection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TxConstants.ConflictDetection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TxConstants.ConflictDetection ROW
public static final TxConstants.ConflictDetection COLUMN
public static final TxConstants.ConflictDetection NONE
public static TxConstants.ConflictDetection[] values()
for (TxConstants.ConflictDetection c : TxConstants.ConflictDetection.values()) System.out.println(c);
public static TxConstants.ConflictDetection 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.