-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

You need to declare two streams.

- -Matthias

On 10/16/16 1:47 PM, Darsh wrote:
> Is it possible to emit different number of output fields from storm
> a bolt?
> 
> For ex:
> 
> public void declareOutputFields(OutputFieldsDeclarer declarer) { 
> if(…) declarer.declare(new Fields(“ABC")); if(…) 
> declarer.declare(new Fields(“XYZ”), new Fields(“QQQ"); }
> 
> 
> 
> Or do I have to create 2 different streams ? Something like,
> 
> outputFieldsDeclarer.declareStream("stream1", new
> Fields("field1"));
> 
> outputFieldsDeclarer.declareStream("stream2", new
> Fields("field2"));
> 
> 
> 
> 
> 
> Thanks
> 
> Darsh
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIYBAEBCgAGBQJYBHmfAAoJELz8Z8hxAGOiyZMP4JgIAkK/EQVBZYUQuRLif6iy
f0gBEu6Al+w60C8PI+PueV2ng5SMbrNWYtUoQd+1cvuW1lMgCMTBlhoFJi5rvY/F
GZ8NXA2yuAKSr64gusHn5RLxCnxRWvk5yQDODa9yS3ZgCw5CiOVqlDexV+1qIg2N
QiSGmlF2RXX2ueW/7kx+oX5TJ+ew+ckScs9etoKFlzZmkh4p0DsT0rZ5Qv9xOQDx
H0vKj385zSLgMfVUHpG2e2TSbb8fdvwQeA/hRyBPUi3NlbQKE6gx7JMZZekcqol1
Qgmz1Qv45RYIMIUVkUM37hJn0cjufu6Xe1qM09AXppVQPjnmxT5atE9DeN4DW8b/
Fb4Yh+aDb+yWXVc0ChCkw1Uj+AiHA12Rgqp5yY3lgnqyDStF2LKRhVc7iRdrkiBZ
ohWJALpQhvbLL1Q1nvvftM/vBSX5njQswJa0fdO+v0M/XwEorgCAR30P89ayxdMU
8bDVHaoFhAT9bE5i+/4UjJDMIw+/2VCpPtSmbyfHKy7LFyKgl0Vzn75ewEU4V1dF
YWKtmFvrEv0WY+nAQWaPCYrO+85WNzDG/elO9qBOOPRkR0yIiZYz4QNGdB7pjrhj
+tvtT3wAo8xsb9Tu3VebHoOQSspbI/ZYQtUupdtXKQ+MCeBE7PiNybwC8iwV0i42
R0EPXkV5+YHetn8=
=wAXf
-----END PGP SIGNATURE-----

Reply via email to