Package nl.vpro.util

Class FilteringIterator.KeepAlive

java.lang.Object
nl.vpro.util.FilteringIterator.KeepAlive
Enclosing class:
FilteringIterator<T>

public static class FilteringIterator.KeepAlive extends Object
  • Constructor Details

    • 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.