Class ParallelMappingScanner<T,R>

java.lang.Object
io.datarouter.scanner.BaseScanner<R>
io.datarouter.scanner.ParallelMappingScanner<T,R>
All Implemented Interfaces:
Scanner<R>, Closeable, AutoCloseable

public class ParallelMappingScanner<T,R> extends BaseScanner<R>
  • Constructor Details

    • ParallelMappingScanner

      public ParallelMappingScanner(Scanner<T> input, boolean allowUnorderedResults, ExecutorService executor, int numThreads, Function<? super T,? extends R> mapper)
  • Method Details

    • advance

      public boolean advance()
      Description copied from interface: Scanner
      Try to update current to the next item, if there is one.
      Returns:
      True if it advanced