public class TxConstants extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TxConstants.ConflictDetection
Defines what level of conflict detection should be used for transactions.
|
static class |
TxConstants.HBase
Configuration properties used by HBase
|
static class |
TxConstants.Manager
TransactionManager configuration.
|
static class |
TxConstants.Metrics
Configuration properties for metrics reporting
|
static class |
TxConstants.Persist
Configuration for the transaction snapshot persistence.
|
static class |
TxConstants.Service
TransactionService configuration.
|
static class |
TxConstants.TransactionLog
Configuration for transaction log edit entries
|
Modifier and Type | Field and Description |
---|---|
static boolean |
ALLOW_EMPTY_VALUES_DEFAULT |
static String |
ALLOW_EMPTY_VALUES_KEY
Since HBase
Delete operations cannot be undone at the same timestamp, "deleted" data is instead
overwritten with an empty byte[] to flag it as removed. |
static boolean |
DEFAULT_READ_NON_TX_DATA |
static byte[] |
FAMILY_DELETE_QUALIFIER
Column qualifier used for a special delete marker tombstone, which identifies an entire column family as deleted.
|
static long |
MAX_TX_PER_MS
This is how many tx we allow per millisecond, if you care about the system for 100 years:
Long.MAX_VALUE / (System.currentTimeMillis() + TimeUnit.DAYS.toMillis(365 * 100)) =
(as of Feb 20, 2014) 2,028,653.
|
static String |
OLD_TX_OPERATION_ATTRIBUTE_KEY
Deprecated.
This constant is replaced by
TX_OPERATION_ATTRIBUTE_KEY |
static String |
OLD_TX_ROLLBACK_ATTRIBUTE_KEY
Deprecated.
This constant is replaced by
TX_ROLLBACK_ATTRIBUTE_KEY |
static String |
PROPERTY_TTL
Property set for
org.apache.hadoop.hbase.HColumnDescriptor to configure time-to-live on data within
the column family. |
static String |
READ_NON_TX_DATA
Indicates whether data written before Tephra was enabled on a table should be readable.
|
static String |
STATUS_NOTOK |
static String |
STATUS_OK |
static String |
TX_OPERATION_ATTRIBUTE_KEY
Key used to set the serialized transaction as an attribute on Get and Scan operations.
|
static String |
TX_ROLLBACK_ATTRIBUTE_KEY
Key used to flag a delete operation as part of a transaction rollback.
|
Constructor and Description |
---|
TxConstants() |
public static final String PROPERTY_TTL
org.apache.hadoop.hbase.HColumnDescriptor
to configure time-to-live on data within
the column family. The value given is in milliseconds. Once a cell's data has surpassed the given value in age,
the cell's data will no longer be visible and may be garbage collected.public static final long MAX_TX_PER_MS
public static final String ALLOW_EMPTY_VALUES_KEY
Delete
operations cannot be undone at the same timestamp, "deleted" data is instead
overwritten with an empty byte[]
to flag it as removed. Cells with empty values will be filtered out
of the results for read operations. If cells with empty values should be included in results (meaning data
cannot be transactionally deleted), then set this configuration property to true.public static final boolean ALLOW_EMPTY_VALUES_DEFAULT
public static final String TX_OPERATION_ATTRIBUTE_KEY
public static final String OLD_TX_OPERATION_ATTRIBUTE_KEY
TX_OPERATION_ATTRIBUTE_KEY
public static final String TX_ROLLBACK_ATTRIBUTE_KEY
TransactionProcessor
coprocessor loaded on a table can differentiate between deletes issued
as part of a normal client operation versus those performed when rolling back a transaction.public static final String OLD_TX_ROLLBACK_ATTRIBUTE_KEY
TX_ROLLBACK_ATTRIBUTE_KEY
public static final byte[] FAMILY_DELETE_QUALIFIER
public static final String STATUS_OK
public static final String STATUS_NOTOK
public static final String READ_NON_TX_DATA
public static final boolean DEFAULT_READ_NON_TX_DATA
Copyright © 2016 The Apache Software Foundation. All rights reserved.