protected abstract class DGAAbstractEdgeOutputFormat.DGAAbstractEdgeWriter<I extends WritableComparable,V extends Writable,E extends Writable> extends TextEdgeOutputFormat.TextEdgeWriterToEachLine<I,V,E>
| Modifier | Constructor and Description |
|---|---|
protected |
DGAAbstractEdgeOutputFormat.DGAAbstractEdgeWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected Text |
convertEdgeToLine(I sourceId,
V vertexValue,
Edge<I,E> edge) |
abstract String |
getEdgeValueAsString(E edgeValue)
The implementing classes must convert their Writable object into a String that can be appended to the String of text that will become our Text output
|
abstract String |
getVertexValueAsString(V vertexValue)
The implementing classes must convert their Writable object into a String that can be appended to the String of text that will become our Text output
|
void |
initialize(TaskAttemptContext context)
Upon intialization, determines the field separator and default weight to use from the GiraphConfiguration
|
writeEdgeclose, createLineRecordWriter, getContext, getRecordWritergetConf, setConfprotected DGAAbstractEdgeOutputFormat.DGAAbstractEdgeWriter()
public void initialize(TaskAttemptContext context) throws IOException, InterruptedException
initialize in class TextEdgeOutputFormat.TextEdgeWriter<I extends WritableComparable,V extends Writable,E extends Writable>context - IOExceptionInterruptedExceptionpublic abstract String getVertexValueAsString(V vertexValue)
vertexValue - public abstract String getEdgeValueAsString(E edgeValue)
edgeValue - protected Text convertEdgeToLine(I sourceId, V vertexValue, Edge<I,E> edge) throws IOException
convertEdgeToLine in class TextEdgeOutputFormat.TextEdgeWriterToEachLine<I extends WritableComparable,V extends Writable,E extends Writable>IOException