Class LoadAwareShuffleGrouping

    • Constructor Detail

      • LoadAwareShuffleGrouping

        public LoadAwareShuffleGrouping()
    • Method Detail

      • chooseTasks

        public List<Integer> chooseTasks​(int taskId,
                                         List<Object> values)
        Description copied from interface: CustomStreamGrouping
        This function implements a custom stream grouping. It takes in as input the number of tasks in the target bolt in prepare and returns the tasks to send the tuples to.
        Specified by:
        chooseTasks in interface CustomStreamGrouping
        values - the values to group on
      • getCapacity

        public int getCapacity()
      • getCurrentScope

        public org.apache.storm.grouping.LoadAwareShuffleGrouping.LocalityScope getCurrentScope()