Interface PartitionedSkippingIterable<T>

  • All Superinterfaces:
    SkippingIterable<T>

    public interface PartitionedSkippingIterable<T>
    extends SkippingIterable<T>
    Interface for ordered data sources that returns a skipping iterator.
    Since:
    0.7
    Version:
    0.7
    Author:
    Evren Sirin
    • Method Detail

      • iterators

        java.util.List<SkippingIterator<T>> iterators​(int theCount)
        Creates a list of non-overlapping iterators that collectively will iterate over all the elements of this collection. Concatenating the returned list of iterators will be equivalent to the SkippingIterable.iterator(). The number of elements in each iterator will be roughly equivalent but there is no guarantee that they will have exactly the same number of elements. Some iterators may even be empty. The non-overlapping iterators can be used concurrently.
        Parameters:
        theCount - number of iterators to create that will always be equal to the size of the list returned
        Returns:
        list of iterators that span the whole collection when concatenated