Re: Java8 and iterators

2014-06-25 Thread Andy Seaborne
On 25/06/14 09:26, Claude Warren wrote: I believe that for the in memory models the iterators fail if the model is modified, However for TDB (Andy ,keep me honest here) if you are using transactions you can modify the graph and the iterator will not fail. Iterators in TDB fail if they are insi

Re: Java8 and iterators

2014-06-25 Thread Claude Warren
I believe that for the in memory models the iterators fail if the model is modified, However for TDB (Andy ,keep me honest here) if you are using transactions you can modify the graph and the iterator will not fail. I don't know what SDB used to do, but I suspect that it allowed you to modify the

Re: Java8 and iterators

2014-06-25 Thread Chris Dollin
On Wednesday, June 25, 2014 09:46:12 AM Kristian Rosenvold wrote: > I've been acquainting myself with the jena code base by trying to find > out how to add idiomatically correct java8-style iteration to jena > (while staying java7 compatible). > > ..., but even on my first > attempt at actually mo

Java8 and iterators

2014-06-25 Thread Kristian Rosenvold
I've been acquainting myself with the jena code base by trying to find out how to add idiomatically correct java8-style iteration to jena (while staying java7 compatible). One thing I am wondering about is the logic to attempt consistent iterations over changing models for the the iterators that a