public interface PushSorter<E> extends Sorter<E>
Sorter. It exposes methods for adding new records to the sorter.| Modifier and Type | Method and Description |
|---|---|
void |
finishReading()
Finalizes the sorting.
|
void |
writeRecord(E record)
Writers a new record to the sorter.
|
getIteratorvoid writeRecord(E record) throws IOException, InterruptedException
IOExceptionInterruptedExceptionvoid finishReading()
CloseableInputProvider.getIterator() will not complete until this method
is called.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.