protected abstract class TextEdgeOutputFormat.TextEdgeWriter<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends EdgeWriter<I,V,E>
| Modifier | Constructor and Description | 
|---|---|
protected  | 
TextEdgeWriter()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Close this  
EdgeWriter to future operations. | 
protected org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> | 
createLineRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Create the line record writer. 
 | 
org.apache.hadoop.mapreduce.TaskAttemptContext | 
getContext()
Get the context. 
 | 
org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> | 
getRecordWriter()
Get the line record writer. 
 | 
void | 
initialize(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Use the context to setup writing the edges. 
 | 
writeEdgegetConf, setConfpublic void initialize(org.apache.hadoop.mapreduce.TaskAttemptContext context)
                throws IOException,
                       InterruptedException
EdgeWriterinitialize in class EdgeWriter<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>context - Context used to write the vertices.IOExceptionInterruptedExceptionprotected org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> createLineRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
                                                                                                                        throws IOException,
                                                                                                                               InterruptedException
context - the context passed to initializeIOException - exception that can be thrown during creationInterruptedException - exception that can be thrown during creationpublic void close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
           throws IOException,
                  InterruptedException
EdgeWriterEdgeWriter to future operations.close in class EdgeWriter<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>context - the context of the taskIOExceptionInterruptedExceptionpublic org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> getRecordWriter()
public org.apache.hadoop.mapreduce.TaskAttemptContext getContext()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.