Interface VersionedPartitions.VersionedIterator

All Superinterfaces:
Iterator<Long>, VersionedPartitions.Iterator<Long>
Enclosing interface:
VersionedPartitions

public static interface VersionedPartitions.VersionedIterator extends VersionedPartitions.Iterator<Long>
An Iterator for partitions being tracked by a VersionedPartitions implementation that allows retrieval of partition and version.

This iterator allows for primitive types for partition and version to be returned, as well as progression of this iterator via nextVersion() or VersionedPartitions.Iterator.nextPartition().

  • Method Details

    • getVersion

      long getVersion()
      Return the current version.
      Returns:
      the current version
    • nextVersion

      long nextVersion()
      Return the next version by progressing this iterator to the next element in this Iterator.
      Returns:
      the next version