|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.common.ValidTxnListImpl
public class ValidTxnListImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.hadoop.hive.common.ValidTxnList |
|---|
ValidTxnList.RangeResponse |
| Field Summary |
|---|
| Fields inherited from interface org.apache.hadoop.hive.common.ValidTxnList |
|---|
VALID_TXNS_KEY |
| Constructor Summary | |
|---|---|
ValidTxnListImpl()
|
|
ValidTxnListImpl(long[] exceptions,
long highWatermark)
|
|
ValidTxnListImpl(String value)
|
|
| Method Summary | |
|---|---|
long |
getHighWatermark()
Get the largest committed transaction id. |
long[] |
getOpenTransactions()
Get the list of transactions under the high water mark that are still open. |
boolean |
isTxnCommitted(long txnid)
Indicates whether a given transaction has been committed and should be viewed as valid for read. |
ValidTxnList.RangeResponse |
isTxnRangeCommitted(long minTxnId,
long maxTxnId)
Find out if a range of transaction ids have been committed. |
void |
readFromString(String src)
Populate this validTxnList from the string. |
String |
toString()
|
String |
writeToString()
Write this validTxnList into a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValidTxnListImpl()
public ValidTxnListImpl(long[] exceptions,
long highWatermark)
public ValidTxnListImpl(String value)
| Method Detail |
|---|
public boolean isTxnCommitted(long txnid)
ValidTxnList
isTxnCommitted in interface ValidTxnListtxnid - id for the transaction
public ValidTxnList.RangeResponse isTxnRangeCommitted(long minTxnId,
long maxTxnId)
ValidTxnList
isTxnRangeCommitted in interface ValidTxnListminTxnId - minimum txnid to look for, inclusivemaxTxnId - maximum txnid to look for, inclusive
public String toString()
toString in class Objectpublic String writeToString()
ValidTxnListValidTxnList.readFromString(String) to populate a validTxnsList.
writeToString in interface ValidTxnListpublic void readFromString(String src)
ValidTxnListValidTxnList.writeToString().
readFromString in interface ValidTxnListsrc - source string.public long getHighWatermark()
ValidTxnList
getHighWatermark in interface ValidTxnListpublic long[] getOpenTransactions()
ValidTxnList
getOpenTransactions in interface ValidTxnList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||