Class ExternalSorter<E>

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Sorter<E>, CloseableInputProvider<E>

    public class ExternalSorter<E>
    extends Object
    implements Sorter<E>
    The ExternalSorter is a full fledged sorter. It implements a multi-way merge sort. Internally, the logic is factored into two or three threads (read, sort, spill) which communicate through a set of blocking queues, forming a closed loop. Memory is allocated using the MemoryManager interface. Thus the component will not exceed the provided memory limits.