Batching iterator consumer.