Class ParallelMapIterate


  • public final class ParallelMapIterate
    extends java.lang.Object
    The ParallelMapIterate class contains parallel algorithms that work with Maps.

    The forEachEntry algorithm employs a batching fork and join approach which does not yet allow for specification of a Factory for the blocks or a Combiner for the results. This means that forEachKeyValue can only support pure forking or forking with a shared thread-safe data structure collecting results.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ParallelMapIterate()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <K,​V>
      void
      forEachKeyValue​(java.util.Map<K,​V> map, Procedure2<? super K,​? super V> procedure2)
      A parallel form of forEachKeyValue.
      static <K,​V>
      void
      forEachKeyValue​(java.util.Map<K,​V> map, Procedure2<? super K,​? super V> procedure, int minForkSize, int taskCount)
      A parallel form of forEachKeyValue.
      static <K,​V>
      void
      forEachKeyValue​(java.util.Map<K,​V> map, Procedure2<? super K,​? super V> procedure, int minForkSize, int taskCount, java.util.concurrent.Executor executor)
      A parallel form of forEachKeyValue.
      static <K,​V>
      void
      forEachKeyValue​(java.util.Map<K,​V> map, Procedure2<? super K,​? super V> procedure, java.util.concurrent.Executor executor)
      A parallel form of forEachKeyValue.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait