On 27/10/11 16:52, Laurent Pellegrino wrote:
Hi Paolo, all,
I am also interested by the transactional TDB datastore. Do you know
if it is possible to add or to remove a quad while iterating over an
Iter<Quad> issued from a SPARQL query when a Write access mode is
used?
No (well, sort of "no")
Transaction don't give you the ability to Iterator.remove. Within a
transaction the usual Java-isms of manipulaing things backing iterators
still apply and ARQ iterators don't support .remove. (nor .add).
The 'sort of "no"' is that you could have having multiple transactions
(one read, one write) on a single thread to work. i.e. iterate on the
readers and update via the writer.
Andy
Kind Regards,
Laurent