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, nextEdgeclose, createLineRecordReader, getContext, getProgress, getRecordReaderaggregate, getAggregatedValue, setWorkerAggregatorUsegetConf, setConfpublic DGAAbstractEdgeInputFormat.DGAAbstractEdgeReader()
public void initialize(InputSplit inputSplit, TaskAttemptContext context) throws IOException, InterruptedException
initialize in class TextEdgeInputFormat.TextEdgeReaderIOExceptionInterruptedExceptionprotected RawEdge preprocessLine(Text line) throws IOException
preprocessLine in class TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<RawEdge>IOExceptionprotected abstract String getDefaultEdgeValue()
protected abstract void validateEdgeValue(RawEdge edge) throws IOException
IOExceptionprotected Text getTargetVertexId(RawEdge edge) throws IOException
getTargetVertexId in class TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<RawEdge>IOExceptionprotected Text getSourceVertexId(RawEdge edge) throws IOException
getSourceVertexId in class TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<RawEdge>IOException