Package org.h2.mvstore.tx
Class TransactionMap.CommittedIterator<K,V,X>
- java.lang.Object
-
- org.h2.mvstore.tx.TransactionMap.TMIterator<K,V,X>
-
- org.h2.mvstore.tx.TransactionMap.CommittedIterator<K,V,X>
-
- Type Parameters:
K
- the type of keysX
- the type of elements
- All Implemented Interfaces:
java.util.Iterator<X>
- Enclosing class:
- TransactionMap<K,V>
private static final class TransactionMap.CommittedIterator<K,V,X> extends TransactionMap.TMIterator<K,V,X>
The iterator for read committed isolation level. Can also be used on higher levels when the transaction doesn't have own changes.
-
-
Field Summary
-
Fields inherited from class org.h2.mvstore.tx.TransactionMap.TMIterator
committingTransactions, current, cursor, transactionId
-
-
Constructor Summary
Constructors Constructor Description CommittedIterator(TransactionMap<K,V> transactionMap, K from, K to, boolean reverse, boolean forEntries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X
fetchNext()
Fetches a next entry.-
Methods inherited from class org.h2.mvstore.tx.TransactionMap.TMIterator
hasNext, next, toElement
-
-
-
-
Constructor Detail
-
CommittedIterator
CommittedIterator(TransactionMap<K,V> transactionMap, K from, K to, boolean reverse, boolean forEntries)
-
-
Method Detail
-
fetchNext
public X fetchNext()
Description copied from class:TransactionMap.TMIterator
Fetches a next entry. This method cannot be used together withTransactionMap.TMIterator.hasNext()
andTransactionMap.TMIterator.next()
.- Specified by:
fetchNext
in classTransactionMap.TMIterator<K,V,X>
- Returns:
- the next entry or
null
-
-