protected abstract class TextVertexOutputFormat.TextVertexWriter extends VertexWriter<I,V,E>
Modifier | Constructor and Description |
---|---|
protected |
TextVertexWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Close this
VertexWriter 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 vertices.
|
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeVertex
public void initialize(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
VertexWriter
initialize
in class VertexWriter<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.IOException
InterruptedException
protected 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
VertexWriter
VertexWriter
to future operations.close
in class VertexWriter<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 taskIOException
InterruptedException
public 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.