I
- Vertex idV
- Vertex valueE
- Edge valueprotected abstract static class HCatalogVertexOutputFormat.HCatalogVertexWriter<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends VertexWriter<I,V,E>
Modifier | Constructor and Description |
---|---|
protected |
HCatalogVertexWriter() |
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.TaskAttemptContext |
getContext()
Get the context.
|
protected org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.WritableComparable<?>,org.apache.hcatalog.data.HCatRecord> |
getRecordWriter()
Get the record reader.
|
protected void |
initialize(org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.WritableComparable<?>,org.apache.hcatalog.data.HCatRecord> hCatRecordWriter)
Initialize with the HCatRecordWriter
|
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
protected void initialize(org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.WritableComparable<?>,org.apache.hcatalog.data.HCatRecord> hCatRecordWriter)
hCatRecordWriter
- Internal writerprotected org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.WritableComparable<?>,org.apache.hcatalog.data.HCatRecord> getRecordWriter()
protected org.apache.hadoop.mapreduce.TaskAttemptContext getContext()
public void initialize(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
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
public 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
Copyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.