- 博客(2)
- 收藏
- 关注
原创 strom批量发送(实现IBatchSpout接口、non-tranctional spout)
在该例子中,使用IBatchSpout接口实例化一个spout,重写emitBatch方法,方法中将根据batchId将数据batchesMap中(batchesMap其实就是一个批的概念,这批数据可以自己指定,我这里就是指定了4批的数据,也就是DATA_MAP里面的数据,由于在emitBatch会指定一个batchId,所以这个batchId就和这一批数据进行挂钩。如果以后有事务,那么这批数据其
2018-04-16 01:03:13 962
原创 Storm-Trident
1、简介2、TridentFunction3、TridentFilter4、projections5、Trident repartitioning operations5.1)The shuffle operation5.2)The partitionBy operation5.3)The global operation5.4)The broadcast operation5.5)The bat...
2018-04-16 00:22:59 585
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人