Interface PushSorter<E>
- All Superinterfaces:
AutoCloseable,Closeable,CloseableInputProvider<E>,Sorter<E>
A push-based
Sorter. It exposes methods for adding new records to the sorter.-
Method Summary
Modifier and TypeMethodDescriptionvoidFinalizes the sorting.voidwriteRecord(E record) Writers a new record to the sorter.Methods inherited from interface org.apache.flink.runtime.operators.util.CloseableInputProvider
getIterator
-
Method Details
-
writeRecord
Writers a new record to the sorter.- Throws:
IOExceptionInterruptedException
-
finishReading
void finishReading()Finalizes the sorting. The methodCloseableInputProvider.getIterator()will not complete until this method is called.
-