T - The resulting type of preprocessing.protected abstract class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<T> extends TextVertexInputFormat.TextVertexReader
| Modifier | Constructor and Description |
|---|---|
protected |
TextVertexReaderFromEachLineProcessed() |
| Modifier and Type | Method and Description |
|---|---|
Vertex<I,V,E> |
getCurrentVertex()
Get the current vertex.
|
protected abstract Iterable<Edge<I,E>> |
getEdges(T line)
Reads edges from the preprocessed line.
|
protected abstract I |
getId(T line)
Reads vertex id from the preprocessed line.
|
protected abstract V |
getValue(T line)
Reads vertex value from the preprocessed line.
|
boolean |
nextVertex() |
protected abstract T |
preprocessLine(org.apache.hadoop.io.Text line)
Preprocess the line so other methods can easily read necessary
information for creating vertex.
|
close, createLineRecordReader, getContext, getProgress, getRecordReader, initializeaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfprotected TextVertexReaderFromEachLineProcessed()
public 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>IOExceptionInterruptedExceptionpublic 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>IOExceptionInterruptedExceptionprotected abstract T preprocessLine(org.apache.hadoop.io.Text line) throws IOException
line - the current line to be readIOException - exception that can be thrown while readingprotected abstract I getId(T line) throws IOException
line - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingprotected abstract V getValue(T line) throws IOException
line - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingprotected abstract Iterable<Edge<I,E>> getEdges(T line) throws IOException
line - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.