Package org.h2.mvstore.tx
Class TransactionMap.UncommittedIterator<K,V,X>
java.lang.Object
org.h2.mvstore.tx.TransactionMap.TMIterator<K,V,X>
org.h2.mvstore.tx.TransactionMap.UncommittedIterator<K,V,X>
- Type Parameters:
K
- the type of keysX
- the type of elements
- All Implemented Interfaces:
Iterator<X>
- Direct Known Subclasses:
TransactionMap.ValidationIterator
- Enclosing class:
TransactionMap<K,
V>
private static class TransactionMap.UncommittedIterator<K,V,X>
extends TransactionMap.TMIterator<K,V,X>
The iterator for read uncommitted isolation level. This iterator is also
used for unique indexes.
-
Field Summary
Fields inherited from class org.h2.mvstore.tx.TransactionMap.TMIterator
committingTransactions, current, cursor, transactionId
-
Constructor Summary
ConstructorsConstructorDescriptionUncommittedIterator
(TransactionMap<K, V> transactionMap, K from, K to, boolean reverse, boolean forEntries) UncommittedIterator
(TransactionMap<K, V> transactionMap, K from, K to, Snapshot<K, VersionedValue<V>> snapshot, boolean reverse, boolean forEntries) -
Method Summary
Modifier and TypeMethodDescriptionfinal X
Fetches a next entry.(package private) boolean
shouldIgnoreRemoval
(VersionedValue<?> data) Methods inherited from class org.h2.mvstore.tx.TransactionMap.TMIterator
hasNext, next, toElement
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
UncommittedIterator
UncommittedIterator(TransactionMap<K, V> transactionMap, K from, K to, boolean reverse, boolean forEntries) -
UncommittedIterator
UncommittedIterator(TransactionMap<K, V> transactionMap, K from, K to, Snapshot<K, VersionedValue<V>> snapshot, boolean reverse, boolean forEntries)
-
-
Method Details
-
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
-
shouldIgnoreRemoval
-