Storm流分组介绍
        8、自定义分组
            自定义分组(Custome Grouping),通过实现CustomStreamGrouping接口可以实现自定义的流分组,接口定义如下:
            public interface CustomStreamGrouping extends Serializable {
                void prepare(WorkerTopologyContext context, GlobalStreamId stream, List<Integer> targetTasks);
                List<Integer> chooseTasks(int taskId, List<Object> values);
            }
    

       

相关文章:

  • 2021-10-15
  • 2021-10-19
  • 2021-08-22
  • 2021-09-20
  • 2021-06-13
猜你喜欢
  • 2021-08-15
  • 2021-10-13
  • 2021-11-08
  • 2021-09-08
  • 2021-07-23
  • 2021-05-26
相关资源
相似解决方案