fenfire-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fenfire-dev] RDF traversal utility methods


From: Tuukka Hastrup
Subject: Re: [Fenfire-dev] RDF traversal utility methods
Date: Sat, 16 Aug 2003 13:07:55 +0300 (EEST)

On Sat, 16 Aug 2003, Tuomas Lukka wrote:
> > There is one test failure, as I don't know how to get all nodes of the 
> > graph - findN_XAA_Iter returns only subjects, not objects. If all nodes 
> > are subjects, the tests pass.
> 
> Tuukka: we can certainly add findN_AAX_Iter if you like

I think I'd like. But for sure I was wondering if there has been a reason 
to omit it. How do we proceed with adding this?


Could you also tell how we handle deletions in graph w.r.t. iterators that 
are in use? From irc log I read that one isn't supposed to do deletions 
while there are iterators. OTOH java.util.Iterator Javadoc says:
"Iterators allow the caller to remove elements from the underlying 
collection during the iteration with well-defined semantics."

As HashGraph uses HashMap-provided iterators, I suppose they permit 
calling their remove() method. But as there are three HashMaps whose 
entries must be updated during removal, I don't think calling remove() 
would be wise.


-- 
-- Trying to catch me? Just follow up my Electric Fingerprints
-- To help you: address@hidden
                http://www.iki.fi/Tuukka.Hastrup/
                IRCNet: Stugge/tuukkah @#pii,#fenfire,#ynna
                Jabber ID: address@hidden, ICQ #11321669






reply via email to

[Prev in Thread] Current Thread [Next in Thread]