public interface ValidTxnList
| Modifier and Type | Interface and Description |
|---|---|
static class |
ValidTxnList.RangeResponse
The response to a range query.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
VALID_TXNS_KEY
Key used to store valid txn list in a
Configuration object. |
| Modifier and Type | Method and Description |
|---|---|
long |
getHighWatermark()
Get the largest transaction id used.
|
long[] |
getInvalidTransactions()
Get the list of transactions under the high water mark that are not valid.
|
Long |
getMinOpenTxn()
Returns smallest Open transaction in this set,
null if there is none. |
boolean |
isTxnAborted(long txnid)
Indicates whether a given transaction is aborted.
|
ValidTxnList.RangeResponse |
isTxnRangeAborted(long minTxnId,
long maxTxnId)
Find out if a range of transaction ids are aborted.
|
ValidTxnList.RangeResponse |
isTxnRangeValid(long minTxnId,
long maxTxnId)
Find out if a range of transaction ids are valid.
|
boolean |
isTxnValid(long txnid)
Indicates whether a given transaction is valid.
|
void |
readFromString(String src)
Populate this validTxnList from the string.
|
void |
removeException(long txnId) |
String |
writeToString()
Write this validTxnList into a string.
|
static final String VALID_TXNS_KEY
Configuration object.void removeException(long txnId)
boolean isTxnValid(long txnid)
txnid - id for the transactionValidTxnList.RangeResponse isTxnRangeValid(long minTxnId, long maxTxnId)
minTxnId - minimum txnid to look for, inclusivemaxTxnId - maximum txnid to look for, inclusiveString writeToString()
readFromString(String) to populate a validTxnsList.void readFromString(String src)
writeToString() and the exceptions list is sorted.src - source string.long getHighWatermark()
long[] getInvalidTransactions()
boolean isTxnAborted(long txnid)
txnid - id for the transactionValidTxnList.RangeResponse isTxnRangeAborted(long minTxnId, long maxTxnId)
minTxnId - minimum txnid to look for, inclusivemaxTxnId - maximum txnid to look for, inclusiveLong getMinOpenTxn()
null if there is none.Copyright © 2021 The Apache Software Foundation. All rights reserved.