how to use Two Sources and Two Sinks in one flow... we need this for optimization..

39 views
Skip to first unread message

Vivek Ghorpade

unread,
Mar 11, 2016, 7:51:31 AM3/11/16
to cascading-user, aishwar...@gmail.com
Hi Team,

Can anybody help us how to use two source and two sinks in one flow...
we need this for optimization..

We have tried using HashMap to map the taps and sinks but not able to map to the pipes.

Thank You.


Best Regards,
Vivek Ghorpade

Dave Maughan

unread,
Mar 11, 2016, 8:21:11 AM3/11/16
to cascading-user, aishwar...@gmail.com
Hi Vivek,

You use FlowDef.

eg:

FlowDef.flowDef()
  .addSource(head, source)
  .addTailSink(tail, sink);

--
You received this message because you are subscribed to the Google Groups "cascading-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cascading-use...@googlegroups.com.
To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at https://groups.google.com/group/cascading-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/a508b754-9337-48f2-b8a4-a786a91c830c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aishwarya das

unread,
Apr 1, 2016, 12:57:27 AM4/1/16
to cascading-user, aishwar...@gmail.com
Hi Vivek,

Yo can use FlowDef flowDef1 = new FlowDef().setName("flow1").addSource(source,tap).addSource(source,tap)
                .addTailSink(source,tap).addSink(source,tap).addTail(tail);

Vivek Ghorpade

unread,
Apr 4, 2016, 9:58:16 AM4/4/16
to cascadi...@googlegroups.com, aishwar...@gmail.com
Hi Aishwarya,

Thank You so much, that really helped in solving the problem.

Now we are able to have two sinks.

Best Regards,
Vivek Ghorpade

--
You received this message because you are subscribed to a topic in the Google Groups "cascading-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cascading-user/Dm15a8j-Ddw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cascading-use...@googlegroups.com.

To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at https://groups.google.com/group/cascading-user.
Reply all
Reply to author
Forward
0 new messages