Yeah. You are right.

For the test case, something as below can be one of case.
Now what one wants to do with, say 'Acto1', is up to user.
For example, it can become a RESTful service such as 'http://localhost/
actor1/item1'.

I still developing this piece.

Thanks.

With regards,

---8<---
schedule = Schedule.new(
   [
    'Actor1',
    'Actor2'
   ],
   [ 'Item1',
     'Item2',
     'Item3',
     'Item4'
   ])

pp schedule.tasks

mr = MapReduceScheduler.new.apply(schedule)

--->8---


On Mar 9, 9:05 pm, "John Mettraux" <[EMAIL PROTECTED]> wrote:
> On Sun, Mar 9, 2008 at 11:27 PM, harshal <[EMAIL PROTECTED]> wrote:
>
> >  John,
>
> >  I could come up with first cut implementation of MapReduce using
> >  Rufus.
> >  It will be great if you can suggest any improvements for it.
>
> Hello,
>
> how can I run your implementation ?
>
> Is there a test case ? What's the entry point ?
>
> You can write a test case in this way :
>
> ---8<---
>
> require 'test/unit'
> require 'mapreduce'
>
> class FirstTest < Test::Unit::TestCase
>
>     def setup
>     end
>
>     def teardown
>     end
>
>     def test_0
>         #schedule = ...
>         MapReduceScheduler.new.apply(schedule)
>         #...
>         assert_equal 7, result_set.size
>     end
> end
>
> --->8---
>
> It's important to have something small that runs and then grow it organically.
>
> Best regards,
>
> --
> John Mettraux   -///-  http://jmettraux.openwfe.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to