I
- Vertex idV
- Vertex valueE
- Edge valuepublic class MultiThreadedSuperstepOutput<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
thread-safe.Constructor and Description |
---|
MultiThreadedSuperstepOutput(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 MultiThreadedSuperstepOutput(ImmutableClassesGiraphConfiguration<I,V,E> conf, org.apache.hadoop.mapreduce.Mapper.Context context)
conf
- Configurationcontext
- Mapper contextpublic SimpleVertexWriter<I,V,E> getVertexWriter()
SuperstepOutput
getVertexWriter
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)
SuperstepOutput
SuperstepOutput.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
SuperstepOutput
postApplication
in interface SuperstepOutput<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
IOException
InterruptedException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.