public interface PushSorter<E> extends Sorter<E>
Sorter. It exposes methods for adding new records to the sorter.| 限定符和类型 | 方法和说明 |
|---|---|
void |
finishReading()
Finalizes the sorting.
|
void |
writeRecord(E record)
Writers a new record to the sorter.
|
getIteratorvoid writeRecord(E record) throws IOException, InterruptedException
void finishReading()
CloseableInputProvider.getIterator() will not complete until this method
is called.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.