Class TransactionMap.TMIterator<K,V,X>

java.lang.Object
org.h2.mvstore.tx.TransactionMap.TMIterator<K,V,X>
All Implemented Interfaces:
Iterator<X>
Direct Known Subclasses:
TransactionMap.CommittedIterator, TransactionMap.RepeatableIterator, TransactionMap.UncommittedIterator
Enclosing class:
TransactionMap<K,V>

public abstract static class TransactionMap.TMIterator<K,V,X> extends Object implements Iterator<X>
  • Field Details

    • transactionId

      final int transactionId
    • committingTransactions

      final BitSet committingTransactions
    • cursor

      protected final Cursor<K,VersionedValue<V>> cursor
    • forEntries

      private final boolean forEntries
    • current

      X current
  • Constructor Details

  • Method Details

    • toElement

      final X toElement(K key, Object value)
    • fetchNext

      public abstract X fetchNext()
      Fetches a next entry. This method cannot be used together with hasNext() and next().
      Returns:
      the next entry or null
    • hasNext

      public final boolean hasNext()
      Specified by:
      hasNext in interface Iterator<K>
    • next

      public final X next()
      Specified by:
      next in interface Iterator<K>