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, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteVertexpublic void initialize(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
VertexWriterinitialize 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.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
VertexWriterVertexWriter 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 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.