directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hayes <>
Subject Re: [bdbje] [rms] Getting the last value of a key with duplicates
Date Tue, 20 Apr 2004 04:09:48 GMT
Hi Alex,

On Apr 19, 2004, at 9:00 PM, Alex Karasulu wrote:

> Have not tried this yet but I used to use this technique with the old
> bdb.  I'm wondering if things have changed any in JE to do this with
> less effort.

Yes, that's the correct way to do it.  The Cursor getSearchKey(), 
getNextNoDup(), and getPrev() methods correspond to your three steps.  
And as you're probably aware, if getNextNoDup() returns NOTFOUND then 
you should call getLast() instead of getPrev().


View raw message