
reduce aims to combine tables from other workers to this worker. All workers should run it concurrently. The defination of the method is:
boolean reduce(final String contextName, final String operationName, final Table<P> table, final int reduceWorkerID, final DataMap dataMap, final Workers workers)
contextName— the name of the contextoperationName— the name of the operationtable— the name of the data tablereduceWorkerID— the ID of the worker whose table combines othersdataMap— the data mapworkers— the workers
Example
reduce(contextName, "reduce", table, workers.getMasterID(), dataMap, workers);