On Jun 28, 2014, at 5:40 PM, Kasper Nielsen kaspe...@gmail.com wrote:
s.distinct().spliterator() - Spliterator.DISTINCT = true
but limiting the number of distinct elements makes the stream non distinct
s.distinct().limit(10).spliterator() - Spliterator.DISTINCT = false
I don't observe
Thanks,
followup questions inlined.
On Fri, Jun 27, 2014 at 11:43 AM, Paul Sandoz paul.san...@oracle.com
wrote:
Internally in the stream pipeline we keep track of certain characteristics
for optimization purposes and those are conveniently used to determine the
characteristics of the
Hi,
I'm trying to understand how the Spliterator.characteristics are maintained
across stream operations and I'm a bit confused. Maybe someone here can
clear it up for me
s.sorted().spliterator() - Spliterator.SORTED = true
But if I use specify a comparator the stream is not sorted
On Jun 27, 2014, at 9:06 AM, Kasper Nielsen kaspe...@gmail.com wrote:
Hi,
I'm trying to understand how the Spliterator.characteristics are maintained
across stream operations and I'm a bit confused. Maybe someone here can
clear it up for me
Internally in the stream pipeline we keep track