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
|
writeEdge
close, createLineRecordWriter, getContext, getRecordWriter
getConf, setConf
protected 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
- IOException
InterruptedException
public 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