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 committed transaction id.
|
long[] |
getInvalidTransactions()
Get the list of transactions under the high water mark that are not valid.
|
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.
|
String |
writeToString()
Write this validTxnList into a string.
|
static final String VALID_TXNS_KEY
Configuration
object.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()
.src
- source string.long getHighWatermark()
long[] getInvalidTransactions()
Copyright © 2017 The Apache Software Foundation. All rights reserved.