public class SimpleAggregatorWriter extends DefaultImmutableClassesGiraphConfigurable implements AggregatorWriter
LAST_SUPERSTEP
Constructor and Description |
---|
SimpleAggregatorWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close()
The method is called at the end of a successful computation.
|
static String |
getFilename() |
void |
initialize(org.apache.hadoop.mapreduce.Mapper.Context context,
long applicationAttempt)
The method is called at the initialization of the AggregatorWriter.
|
void |
writeAggregator(Iterable<Map.Entry<String,org.apache.hadoop.io.Writable>> aggregatorMap,
long superstep)
The method is called at the end of each superstep.
|
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf
setConf
public static String getFilename()
public void initialize(org.apache.hadoop.mapreduce.Mapper.Context context, long applicationAttempt) throws IOException
AggregatorWriter
initialize
in interface AggregatorWriter
context
- Mapper Context where the master is running onapplicationAttempt
- ID of the applicationAttempt, used to
disambiguate aggregator writes for different attemptsIOException
public void writeAggregator(Iterable<Map.Entry<String,org.apache.hadoop.io.Writable>> aggregatorMap, long superstep) throws IOException
AggregatorWriter
AggregatorWriter.LAST_SUPERSTEP
is passed.writeAggregator
in interface AggregatorWriter
aggregatorMap
- Map from aggregator name to aggregator valuesuperstep
- Current superstepIOException
public void close() throws IOException
AggregatorWriter
AggregatorWriter.writeAggregator(Iterable, long)
.close
in interface AggregatorWriter
IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.