Reading multiple indices on MagmaCollections - first code

Marcelo Cortez smalltalker.marcelo at gmail.com
Thu Apr 6 13:34:15 UTC 2006


hi brent

i'm confused cant find Lava package on SqueakMap ´, or i'm wrong?
best regards
 MDC

On 4/6/06, Brent Pinkney <brent.pinkney at aircom.co.za> wrote:
>
> Hi,
>
> Attached is my first stab at the client api:
>
> 1. Get a clean 3.8 image
> 2. Load Magma1.0
> 3. Load Lava (28) and Lava testing (23) from SqueakMap
> 4. Load Magma research-brp.2.mcz.
>
> In a workspace execute:
>         LavaTestResource current
>
> This creates the test Magma/Lava database.
>
> Inspect this Lava query:
>
>         LavaTestResource current session execute: '
>                 select * from people
>                 where (familyName = ''Man'')
>                 or ( (familyName = ''Pinkney'') and (age <= 60) )'.
>
>
>
> My proposed Magma client API to create a reader which can query multiple
> indices is:
>
> LavaTestResource current people where: [ :r |
>         (r read: #familyName at: 'Man') |
>                 ( (r read: #familyName at: 'Pinkney') & (r read: #age to:
> 60) )
> ].
>
> Inspecting this returns a MagmaExpression reader with a correctly
> populated
> 'expression' tree.
>
> I think this interface is acceptably elegant and can be used to construct
> the
> MaBitmapIndex for this query.
>
> Comments welcomed
>
> Brent
>
>
> _______________________________________________
> Magma mailing list
> Magma at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/magma
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/magma/attachments/20060406/7fe9c53d/attachment.htm


More information about the Magma mailing list