use of org.apache.flink.runtime.io.network.partition.ResultSubpartition.BufferAndBacklog in project flink by apache.
the class BoundedBlockingSubpartitionAvailabilityTest method drainAvailableData.
private static List<BufferAndBacklog> drainAvailableData(ResultSubpartitionView reader) throws Exception {
final ArrayList<BufferAndBacklog> list = new ArrayList<>();
BufferAndBacklog bab;
while ((bab = reader.getNextBuffer()) != null) {
list.add(bab);
}
return list;
}
Aggregations