E
- Writable class to be stated in the implementing class.public abstract class DGAAbstractEdgeInputFormat.DGAAbstractEdgeReader<E extends Writable> extends TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<RawEdge>
Constructor and Description |
---|
DGAAbstractEdgeInputFormat.DGAAbstractEdgeReader() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getDefaultEdgeValue() |
protected Text |
getSourceVertexId(RawEdge edge) |
protected Text |
getTargetVertexId(RawEdge edge) |
void |
initialize(InputSplit inputSplit,
TaskAttemptContext context) |
protected RawEdge |
preprocessLine(Text line) |
protected abstract void |
validateEdgeValue(RawEdge edge) |
getCurrentEdge, getCurrentSourceId, getValue, nextEdge
close, createLineRecordReader, getContext, getProgress, getRecordReader
aggregate, getAggregatedValue, setWorkerAggregatorUse
getConf, setConf
public DGAAbstractEdgeInputFormat.DGAAbstractEdgeReader()
public void initialize(InputSplit inputSplit, TaskAttemptContext context) throws IOException, InterruptedException
initialize
in class TextEdgeInputFormat.TextEdgeReader
IOException
InterruptedException
protected RawEdge preprocessLine(Text line) throws IOException
preprocessLine
in class TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<RawEdge>
IOException
protected abstract String getDefaultEdgeValue()
protected abstract void validateEdgeValue(RawEdge edge) throws IOException
IOException
protected Text getTargetVertexId(RawEdge edge) throws IOException
getTargetVertexId
in class TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<RawEdge>
IOException
protected Text getSourceVertexId(RawEdge edge) throws IOException
getSourceVertexId
in class TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<RawEdge>
IOException