Interface PushSorter<E>
-
- All Superinterfaces:
AutoCloseable,Closeable,CloseableInputProvider<E>,Sorter<E>
public interface PushSorter<E> extends Sorter<E>
A push-basedSorter. It exposes methods for adding new records to the sorter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfinishReading()Finalizes 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 Detail
-
writeRecord
void writeRecord(E record) throws IOException, InterruptedException
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.
-
-