protected abstract static class HCatalogEdgeInputFormat.HCatalogEdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> extends EdgeReader<I,E>
| Constructor and Description |
|---|
HCatalogEdgeReader(GiraphHCatInputFormat hCatInputFormat)
Constructor taking hcat input format to use.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this
EdgeReader to future operations. |
protected org.apache.hadoop.mapreduce.TaskAttemptContext |
getContext()
Get the context.
|
float |
getProgress()
How much of the input has the
EdgeReader consumed i.e. |
protected org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.WritableComparable,org.apache.hcatalog.data.HCatRecord> |
getRecordReader()
Get the record reader.
|
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Use the input split and context to setup reading the edges.
|
boolean |
nextEdge()
Read the next edge.
|
getCurrentEdge, getCurrentSourceIdaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfpublic HCatalogEdgeReader(GiraphHCatInputFormat hCatInputFormat)
hCatInputFormat - HCatalog input formatpublic final void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
EdgeReaderinitialize in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>inputSplit - Input split to be used for reading edges.context - Context from the task.IOExceptionInterruptedExceptionpublic boolean nextEdge()
throws IOException,
InterruptedException
EdgeReadernextEdge in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic final void close()
throws IOException
EdgeReaderEdgeReader to future operations.close in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>IOExceptionpublic final float getProgress()
throws IOException,
InterruptedException
EdgeReaderEdgeReader consumed i.e.
has been processed by?getProgress in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>0.0 to 1.0.IOExceptionInterruptedExceptionprotected final org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.WritableComparable,org.apache.hcatalog.data.HCatRecord> getRecordReader()
protected final org.apache.hadoop.mapreduce.TaskAttemptContext getContext()
Copyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.