Hi,

I never tried it, but as you add a hook in Bolt.prepare() you should be
able to create your own hook class that takes the OutputCollector as
constructor parameter and use it later on when the hook is called.

-Matthias


On 10/01/2015 12:23 AM, Raymond Conn wrote:
> Hi all,
> Just wanted to follow up here. Is there anyway to emit tuples from
> within a Hook?
> 
> Thanks,
> Ray
> 
> On Wed, Sep 9, 2015 at 7:35 PM, Raymond Conn <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     Hi all,
>     I was wondering if there is anyway to emit events from a Hook. It
>     doesn't look like the prepare method of the ITaskHook interface
>     takes an OutputCollector. Is there a different way to emit events to
>     a bolt from a Hook?
> 
>     Thanks,
>     Ray
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to