Package org.h2.mvstore.tx
Class TransactionMap.RepeatableIterator<K,V,X>
java.lang.Object
org.h2.mvstore.tx.TransactionMap.TMIterator<K,V,X>
org.h2.mvstore.tx.TransactionMap.RepeatableIterator<K,V,X>
- Type Parameters:
K- the type of keysX- the type of elements
- All Implemented Interfaces:
Iterator<X>
- Enclosing class:
TransactionMap<K,V>
private static final class TransactionMap.RepeatableIterator<K,V,X>
extends TransactionMap.TMIterator<K,V,X>
The iterator for repeatable read and serializable isolation levels.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Kprivate Objectprivate final Cursor<K, VersionedValue<V>> private Kprivate VFields inherited from class org.h2.mvstore.tx.TransactionMap.TMIterator
committingTransactions, current, cursor, transactionId -
Constructor Summary
ConstructorsConstructorDescriptionRepeatableIterator(TransactionMap<K, V> transactionMap, K from, K to, boolean reverse, boolean forEntries) -
Method Summary
Modifier and TypeMethodDescriptionFetches a next entry.private voidprivate voidMethods inherited from class org.h2.mvstore.tx.TransactionMap.TMIterator
hasNext, next, toElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
keyType
-
snapshotKey
-
snapshotValue
-
uncommittedCursor
-
uncommittedKey
-
uncommittedValue
-
-
Constructor Details
-
RepeatableIterator
RepeatableIterator(TransactionMap<K, V> transactionMap, K from, K to, boolean reverse, boolean forEntries)
-
-
Method Details
-
fetchNext
Description copied from class:TransactionMap.TMIteratorFetches a next entry. This method cannot be used together withTransactionMap.TMIterator.hasNext()andTransactionMap.TMIterator.next().- Specified by:
fetchNextin classTransactionMap.TMIterator<K,V, X> - Returns:
- the next entry or
null
-
fetchSnapshot
private void fetchSnapshot() -
fetchUncommitted
private void fetchUncommitted()
-