public class NettyWorkerAggregatorRequestProcessor extends Object implements WorkerAggregatorRequestProcessor
WorkerAggregatorRequestProcessor| Constructor and Description | 
|---|
NettyWorkerAggregatorRequestProcessor(org.apache.hadoop.util.Progressable progressable,
                                     ImmutableClassesGiraphConfiguration<?,?,?> configuration,
                                     CentralizedServiceWorker<?,?,?> serviceWorker)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
distributeReducedValues(Iterable<byte[]> aggregatorDataList)
Sends reduced values to all other workers 
 | 
void | 
flush()
Flush aggregated values cache. 
 | 
boolean | 
sendReducedValue(String name,
                org.apache.hadoop.io.Writable reducedValue)
Sends worker reduced value to the owner of reducer 
 | 
void | 
sendReducedValuesToMaster(byte[] data)
Sends reduced values to the master. 
 | 
public NettyWorkerAggregatorRequestProcessor(org.apache.hadoop.util.Progressable progressable,
                                             ImmutableClassesGiraphConfiguration<?,?,?> configuration,
                                             CentralizedServiceWorker<?,?,?> serviceWorker)
progressable - Progressable used to report progressconfiguration - ConfigurationserviceWorker - Service workerpublic boolean sendReducedValue(String name, org.apache.hadoop.io.Writable reducedValue) throws IOException
WorkerAggregatorRequestProcessorsendReducedValue in interface WorkerAggregatorRequestProcessorname - Name of the reducerreducedValue - Reduced partial valueIOExceptionpublic void flush()
           throws IOException
WorkerAggregatorRequestProcessorflush in interface WorkerAggregatorRequestProcessorIOExceptionpublic void sendReducedValuesToMaster(byte[] data)
                               throws IOException
WorkerAggregatorRequestProcessorsendReducedValuesToMaster in interface WorkerAggregatorRequestProcessordata - Serialized reduced values dataIOExceptionpublic void distributeReducedValues(Iterable<byte[]> aggregatorDataList) throws IOException
WorkerAggregatorRequestProcessordistributeReducedValues in interface WorkerAggregatorRequestProcessoraggregatorDataList - Serialized reduced values data split into chunksIOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.