I
- Vertex idV
- Vertex dataE
- Edge datapublic abstract class WorkerAggregatorDelegator<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends DefaultImmutableClassesGiraphConfigurable<I,V,E> implements WorkerAggregatorUsage, WorkerGlobalCommUsage
Constructor and Description |
---|
WorkerAggregatorDelegator() |
Modifier and Type | Method and Description |
---|---|
<A extends org.apache.hadoop.io.Writable> |
aggregate(String name,
A value)
Add a new value
|
<A extends org.apache.hadoop.io.Writable> |
getAggregatedValue(String name)
Get value of an aggregator.
|
<B extends org.apache.hadoop.io.Writable> |
getBroadcast(String name)
Get value broadcasted from master
|
void |
reduce(String name,
Object value)
Reduce given value.
|
void |
reduceMerge(String name,
org.apache.hadoop.io.Writable value)
Reduce given partial value.
|
void |
setWorkerGlobalCommUsage(WorkerGlobalCommUsage workerGlobalCommUsage)
Set worker global communication usage
|
getConf, setConf
public void setWorkerGlobalCommUsage(WorkerGlobalCommUsage workerGlobalCommUsage)
workerGlobalCommUsage
- Worker global communication usagepublic final void reduce(String name, Object value)
WorkerReduceUsage
reduce
in interface WorkerReduceUsage
name
- Name of the reducervalue
- Single value to reducepublic void reduceMerge(String name, org.apache.hadoop.io.Writable value)
WorkerReduceUsage
reduceMerge
in interface WorkerReduceUsage
name
- Name of the reducervalue
- Single value to reducepublic final <B extends org.apache.hadoop.io.Writable> B getBroadcast(String name)
WorkerBroadcastUsage
getBroadcast
in interface WorkerBroadcastUsage
B
- Broadcast value typename
- Name of the broadcasted valuepublic final <A extends org.apache.hadoop.io.Writable> void aggregate(String name, A value)
WorkerAggregatorUsage
aggregate
in interface WorkerAggregatorUsage
A
- Aggregated valuename
- Name of aggregatorvalue
- Value to addpublic <A extends org.apache.hadoop.io.Writable> A getAggregatedValue(String name)
AggregatorUsage
getAggregatedValue
in interface AggregatorUsage
A
- Aggregated valuename
- Name of aggregatorCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.