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, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfsetConfpublic static String getFilename()
public void initialize(org.apache.hadoop.mapreduce.Mapper.Context context,
long applicationAttempt)
throws IOException
AggregatorWriterinitialize in interface AggregatorWritercontext - Mapper Context where the master is running onapplicationAttempt - ID of the applicationAttempt, used to
disambiguate aggregator writes for different attemptsIOExceptionpublic void writeAggregator(Iterable<Map.Entry<String,org.apache.hadoop.io.Writable>> aggregatorMap, long superstep) throws IOException
AggregatorWriterAggregatorWriter.LAST_SUPERSTEP is passed.writeAggregator in interface AggregatorWriteraggregatorMap - Map from aggregator name to aggregator valuesuperstep - Current superstepIOExceptionpublic void close()
throws IOException
AggregatorWriterAggregatorWriter.writeAggregator(Iterable, long).close in interface AggregatorWriterIOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.