directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <elecha...@gmail.com>
Subject Re: [Mavibot] Value storage
Date Mon, 16 Sep 2013 22:33:30 GMT
Le 9/16/13 7:59 PM, Kiran Ayyagari a écrit :
> On Mon, Sep 16, 2013 at 5:25 PM, Emmanuel Lécharny <elecharny@gmail.com>wrote:
>
>
>> IMO, I think we should have the getValues() to return an iterator, and
>> the getValue() method to returns either the single value or the first
>> value if there are more than one.
>>
>> I still prefer to get a BTree(that gives us better control if we want to
> search for a
> value in BTree)

Except that it exposes the internal representation. If we want to change
it later, that will also change the API...
> otherwise why not return a cursor? (personally, the last preference)

Cursor seems a good idea. At least it allows browing the element in both
directions.

Something to consider.


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com 


Mime
View raw message