Run function after reducers

Is there a function in java that is executed once after the reducer function completes. What I want to do is try to refine the output from the reducers so I need to run some code after the reducers completes the algorithm is there a possible way to do this.

Answers


You can use a ChainReducer to add as many Mappers as you want after the Reducer in the same reducer task.

If you want to apply an other Reducer, you will need to start a new task with an identity mapper and the reducer task you want to execute.

As stated in the doc:

Using the ChainMapper and the ChainReducer classes is possible to compose Map/Reduce jobs that look like [MAP+ / REDUCE MAP*]. And immediate benefit of this pattern is a dramatic reduction in disk IO.


Need Your Help

How to perceive dynamic android checkbox clicks and save state

android checkbox

I have gone through various checkbox related questions but still struggling to find an answer that suits my problem.

Getting java.lang.RuntimeException while starting an activity

android android-intent android-activity launchmode

I have an activity, A, which is SingleTop when I want to start this activity inside her, with another intent data, like this: