protected abstract class TextVertexInputFormat.TextVertexReaderFromEachLine extends TextVertexInputFormat.TextVertexReader
| Modifier | Constructor and Description |
|---|---|
protected |
TextVertexReaderFromEachLine() |
| Modifier and Type | Method and Description |
|---|---|
Vertex<I,V,E> |
getCurrentVertex()
Get the current vertex.
|
protected abstract Iterable<Edge<I,E>> |
getEdges(org.apache.hadoop.io.Text line)
Reads edges value from the current line.
|
protected abstract I |
getId(org.apache.hadoop.io.Text line)
Reads vertex id from the current line.
|
protected abstract V |
getValue(org.apache.hadoop.io.Text line)
Reads vertex value from the current line.
|
boolean |
nextVertex() |
close, createLineRecordReader, getContext, getProgress, getRecordReader, initializeaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfpublic final Vertex<I,V,E> getCurrentVertex() throws IOException, InterruptedException
VertexReadergetCurrentVertex in class VertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic final boolean nextVertex()
throws IOException,
InterruptedException
nextVertex in class VertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionprotected abstract I getId(org.apache.hadoop.io.Text line) throws IOException
line - the current lineIOException - exception that can be thrown while readingprotected abstract V getValue(org.apache.hadoop.io.Text line) throws IOException
line - the current lineIOException - exception that can be thrown while readingprotected abstract Iterable<Edge<I,E>> getEdges(org.apache.hadoop.io.Text line) throws IOException
line - the current lineIOException - exception that can be thrown while readingCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.