Package nl.vpro.util

Class FilteringIterator.KeepAlive

    • Constructor Detail

      • KeepAlive

        public KeepAlive​(long count,
                         Function<Long,​Boolean> callback)
        Parameters:
        count - The callback function is called every so much records
        callback - This function is called then. The argument is the number of outputted records since the previous call (which weren't filtered out) The call function can return a boolean to indicate whether the complete iteration must be 'break'ed.