Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #32743

Re: parallel stream with return

X-Received by 10.129.159.71 with SMTP id w68mr6579366ywg.28.1443681381379; Wed, 30 Sep 2015 23:36:21 -0700 (PDT)
X-Received by 10.182.116.165 with SMTP id jx5mr50309obb.27.1443681381305; Wed, 30 Sep 2015 23:36:21 -0700 (PDT)
Path csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!v79no6865466qge.0!news-out.google.com!n2ni17225igy.0!nntp.google.com!kq10no15093100igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Wed, 30 Sep 2015 23:36:21 -0700 (PDT)
In-Reply-To <muhi14$7ep$1@dont-email.me>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=139.174.100.220; posting-account=bJLXZgkAAABb3jyMkY8c6zg_6wF6pySF
NNTP-Posting-Host 139.174.100.220
References <e585b3de-181e-4963-8a00-341749bf00ab@googlegroups.com> <muhhb6$4fi$1@dont-email.me> <muhi14$7ep$1@dont-email.me>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <20d1db19-e4b1-45ec-8acd-effcf8fac6a7@googlegroups.com> (permalink)
Subject Re: parallel stream with return
From Philipp Kraus <philipp.kraus.flashpixx@gmail.com>
Injection-Date Thu, 01 Oct 2015 06:36:21 +0000
Content-Type text/plain; charset=ISO-8859-1
X-Received-Bytes 1561
X-Received-Body-CRC 3796153499
Xref csiph.com comp.lang.java.programmer:32743

Show key headers only | View raw


Am Mittwoch, 30. September 2015 22:54:04 UTC+2 schrieb Jeff Higgins:

>      IntStream.range(0, 4096).parallel()
>        .forEachOrdered(i -> { x.add(generate(i)); });

Did I understand It correct, that I need the forEachOrdered to create the equal order like in the intstream range? So if I need only 4k objects and the order is irrelevant I can do this with forEach.

Phil

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

parallel stream with return Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2015-09-29 23:35 -0700
  Re: parallel stream with return Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-09-30 08:01 -0400
    Re: parallel stream with return Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2015-09-30 08:02 -0700
      Re: parallel stream with return Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-09-30 13:22 -0400
        Re: parallel stream with return Steven Simpson <ss@my.domain.invalid> - 2015-09-30 22:25 +0100
  Re: parallel stream with return Jeff Higgins <jeff@invalid.invalid> - 2015-09-30 16:41 -0400
    Re: parallel stream with return Jeff Higgins <jeff@invalid.invalid> - 2015-09-30 16:53 -0400
      Re: parallel stream with return Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2015-09-30 23:36 -0700
        Re: parallel stream with return Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-10-01 08:22 -0400
        Re: parallel stream with return Jeff Higgins <jeff@invalid.invalid> - 2015-10-01 08:54 -0400

csiph-web