Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Currenlty we handle only streams with a single operation consisting of either Stream.forEach or Stream.reduce.  The Stream must always be marked as .parallel().  In addition there are the following restrictions:

Stream.forEach

...

  • The spliterator must be either
    • an IntRange starting at 0 with step 1.
    • a spliterator from Arrays.stream or ArrayList.stream

Stream.reduce

  • The input spliterator must be from Arrays.stream or ArrayList.stream
  • The type of the array must be int
  • The reduce function itself must be Int:sum, Int:max or Int:min.  User written reduce functions are not supported yet.

 

...