jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Hausladen <david_hausla...@yahoo.com>
Subject Re: BTreeManager - opt in or automatic?
Date Tue, 08 May 2012 14:15:35 GMT
I've attached the class as it stands (currently untested).  The main struggle is how to handle
the NodeIterator's getPosition method (I'm taking the easy way out throwing an exception).
Also worth mentioning: I'm on 2.2.5. 


----- Original Message -----
From: Jukka Zitting <jukka.zitting@gmail.com>
To: dev@jackrabbit.apache.org; David Hausladen <david_hausladen@yahoo.com>
Cc: 
Sent: Tuesday, May 8, 2012 3:48 AM
Subject: Re: BTreeManager - opt in or automatic?

Hi,

On Tue, May 8, 2012 at 3:51 AM, David Hausladen
<david_hausladen@yahoo.com> wrote:
> Under the assumption that it's opt in, I started an implementation of the Node interface
that
> adapts to the ItemSequence's NodeSequence (to minimize visibility of the
> org.apache.jackrabbit.commons.flat classes).

If you like, I'd love to incorporate something like that in
jackrabbit-jcr-commons.

> The fact that NodeSequence returns Iterator<javax.jcr.Node> instead of
> javax.jcr.NodeIterator makes it impossible.

Use the Adapter pattern.

BR,

Jukka Zitting

Mime
View raw message