package it.cavallium.dbengine.lucene; import it.cavallium.dbengine.database.DiscardingCloseable; import it.cavallium.dbengine.database.SafeCloseable; import java.io.Closeable; import java.util.Iterator; import org.jetbrains.annotations.NotNull; import reactor.core.publisher.Flux; public interface ResourceIterable extends DiscardingCloseable { /** * Iterate this PriorityQueue */ Flux iterate(); /** * Iterate this PriorityQueue */ default Flux iterate(long skips) { if (skips == 0) { return iterate(); } else { return iterate().skip(skips); } } }