Temporary (inline/ephemeral) pipe

16 views
Skip to first unread message

jd

unread,
May 22, 2012, 3:12:23 PM5/22/12
to cascadi...@googlegroups.com

Is it possible to declare a temporary pipe inline without binding it to a tap?

A use case would look like this:


        List<Object> tempData = //some list of temp data
        Pipe    fillData    = new Pipe("tempData");

        //create temp data set inline...
        fillData = new Each( fillData, new Insert(tempField, tempData ) );

        //Now join the temp data to an existing pipe bound to a tap.
        Pipe joinedPipe = new CoGroup(....)





Chris K Wensel

unread,
May 22, 2012, 5:11:32 PM5/22/12
to cascadi...@googlegroups.com
If the data fits in memory, as it seems it does, you are better off just creating your own hash join with a HashMap in a custom Function. vs hacking data into the pipeline and forcing a new MR job via a CoGroup.

ckw

--
You received this message because you are subscribed to the Google Groups "cascading-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cascading-user/-/YmcB2vVTwhsJ.
To post to this group, send email to cascadi...@googlegroups.com.
To unsubscribe from this group, send email to cascading-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cascading-user?hl=en.


Reply all
Reply to author
Forward
0 new messages