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
WorkerAggregatorRequestProcessor
sendReducedValue
in interface WorkerAggregatorRequestProcessor
name
- Name of the reducerreducedValue
- Reduced partial valueIOException
public void flush() throws IOException
WorkerAggregatorRequestProcessor
flush
in interface WorkerAggregatorRequestProcessor
IOException
public void sendReducedValuesToMaster(byte[] data) throws IOException
WorkerAggregatorRequestProcessor
sendReducedValuesToMaster
in interface WorkerAggregatorRequestProcessor
data
- Serialized reduced values dataIOException
public void distributeReducedValues(Iterable<byte[]> aggregatorDataList) throws IOException
WorkerAggregatorRequestProcessor
distributeReducedValues
in interface WorkerAggregatorRequestProcessor
aggregatorDataList
- Serialized reduced values data split into chunksIOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.