I
- Vertex index valueV
- Vertex valueE
- Edge valuepublic abstract class TextEdgeOutputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends EdgeOutputFormat<I,V,E>
Modifier and Type | Class and Description |
---|---|
protected class |
TextEdgeOutputFormat.TextEdgeWriter<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
Abstract class to be implemented by the user based on their specific
edge output.
|
protected class |
TextEdgeOutputFormat.TextEdgeWriterToEachLine<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
Abstract class to be implemented by the user to write a line for each
edge.
|
Modifier and Type | Field and Description |
---|---|
protected GiraphTextOutputFormat |
textOutputFormat
Uses the TextOutputFormat to do everything
|
Constructor and Description |
---|
TextEdgeOutputFormat() |
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 TextEdgeOutputFormat.TextEdgeWriter |
createEdgeWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
The factory method which produces the
TextEdgeOutputFormat.TextEdgeWriter 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 TextEdgeOutputFormat.TextEdgeWriter createEdgeWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
TextEdgeOutputFormat.TextEdgeWriter
used by this
output format.createEdgeWriter
in class EdgeOutputFormat<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.