Class SinglePartitionPLL<T>

  • public class SinglePartitionPLL<T>
    extends PLL<T>
    A PLL which wraps an iterable, with a single partition corresponding to the iterable itself. This is typically not very efficient, as it prevents any meaningful parallelization of terminal operations run on this PLL or its derivatives. However, this can be a useful start before the PLL is repartitioned (for instance while it is saved).
    • Field Detail

      • knownSize

        protected final long knownSize
    • Method Detail

      • hasCachedPartitionSizes

        public boolean hasCachedPartitionSizes()
        Description copied from class: PLL
        Is this PLL aware of the size of its partitions?
        hasCachedPartitionSizes in class PLL<T>
      • compute

        protected CloseableIterator<T> compute​(Partition partition)
        Description copied from class: PLL
        Iterate over the elements of the given partition. This is the method that should be implemented by subclasses. As this method forces computation, ignoring any caching, consumers should not call it directly but rather use PLL.iterate(Partition). Once the iterator is not needed anymore, it should be closed. This makes it possible to release the underlying resources supporting it, such as open files or sockets.
        Specified by:
        compute in class PLL<T>
        partition - the partition to iterate over
      • getPartitions

        public io.vavr.collection.Array<? extends Partition> getPartitions()
        Specified by:
        getPartitions in class PLL<T>
        the partitions in this list
      • getParents

        public List<PLL<?>> getParents()
        Description copied from class: PLL
        Returns the PLLs that this PLL depends on, to compute its contents. This is used for debugging purposes, to display the tree of dependencies of a given PLL.
        Specified by:
        getParents in class PLL<T>
        See Also: