I - Vertex idV - Vertex valueE - Edge valuepublic class SynchronizedSuperstepOutput<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends Object implements SuperstepOutput<I,V,E>
SuperstepOutput when chosen VertexOutputFormat is
not thread-safe.| Constructor and Description |
|---|
SynchronizedSuperstepOutput(ImmutableClassesGiraphConfiguration<I,V,E> conf,
org.apache.hadoop.mapreduce.Mapper.Context context)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
SimpleVertexWriter<I,V,E> |
getVertexWriter()
Get the Writer.
|
void |
postApplication()
Finalize this output in the end of the application
|
void |
returnVertexWriter(SimpleVertexWriter<I,V,E> vertexWriter)
Return the Writer after usage, which you got by calling
SuperstepOutput.getVertexWriter() |
public SynchronizedSuperstepOutput(ImmutableClassesGiraphConfiguration<I,V,E> conf, org.apache.hadoop.mapreduce.Mapper.Context context)
conf - Configurationcontext - Mapper contextpublic SimpleVertexWriter<I,V,E> getVertexWriter()
SuperstepOutputgetVertexWriter in interface SuperstepOutput<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>public void returnVertexWriter(SimpleVertexWriter<I,V,E> vertexWriter)
SuperstepOutputSuperstepOutput.getVertexWriter()returnVertexWriter in interface SuperstepOutput<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>vertexWriter - SimpleVertexWriter which you are returningpublic void postApplication()
throws IOException,
InterruptedException
SuperstepOutputpostApplication in interface SuperstepOutput<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.