forEach

abstract fun forEach(consumer: CheckedIntConsumer<IOException>)

Iterate over doc IDs contained in this stream in order, calling the given [ ] on them. This is a terminal operation.