I
- Vertex index valueV
- Vertex valueE
- Edge valuepublic abstract class TextVertexOutputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends VertexOutputFormat<I,V,E>
Modifier and Type | Class and Description |
---|---|
protected class |
TextVertexOutputFormat.TextVertexWriter
Abstract class to be implemented by the user based on their specific
vertex output.
|
protected class |
TextVertexOutputFormat.TextVertexWriterToEachLine
Abstract class to be implemented by the user to write a line for each
vertex.
|
Modifier and Type | Field and Description |
---|---|
protected GiraphTextOutputFormat |
textOutputFormat
Uses the TextOutputFormat to do everything
|
Constructor and Description |
---|
TextVertexOutputFormat() |
Modifier and Type | Method and Description |
---|---|
void |
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
Check for validity of the output-specification for the job.
|
abstract TextVertexOutputFormat.TextVertexWriter |
createVertexWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
The factory method which produces the
TextVertexOutputFormat.TextVertexWriter used by this
output format. |
org.apache.hadoop.mapreduce.OutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Get the output committer for this output format.
|
postWriting, preWriting
getConf, setConf
protected GiraphTextOutputFormat textOutputFormat
public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context) throws IOException, InterruptedException
OutputFormat
This is to validate the output specification for the job when it is a job is submitted. Typically checks that it does not already exist, throwing an exception when it already exists, so that output is not overwritten.
checkOutputSpecs
in class OutputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
context
- information about the jobIOException
- when output should not be attemptedInterruptedException
public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
OutputFormat
getOutputCommitter
in class OutputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
context
- the task contextIOException
InterruptedException
public abstract TextVertexOutputFormat.TextVertexWriter createVertexWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
TextVertexOutputFormat.TextVertexWriter
used by this
output format.createVertexWriter
in class VertexOutputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
context
- the information about the taskIOException
InterruptedException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.