protected abstract static class HCatalogEdgeInputFormat.SingleRowHCatalogEdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> extends HCatalogEdgeInputFormat.HCatalogEdgeReader<I,E>
HCatalogEdgeInputFormat.HCatalogEdgeReader for tables holding a complete edge
in each row.| Constructor and Description |
|---|
SingleRowHCatalogEdgeReader(GiraphHCatInputFormat hCatInputFormat)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Edge<I,E> |
getCurrentEdge()
Get the current edge.
|
I |
getCurrentSourceId()
Get the current edge source id.
|
protected abstract E |
getEdgeValue(org.apache.hcatalog.data.HCatRecord record)
Get edge value from a record.
|
protected abstract I |
getSourceVertexId(org.apache.hcatalog.data.HCatRecord record)
Get source vertex id from a record.
|
protected abstract I |
getTargetVertexId(org.apache.hcatalog.data.HCatRecord record)
Get target vertex id from a record.
|
close, getContext, getProgress, getRecordReader, initialize, nextEdgeaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfpublic SingleRowHCatalogEdgeReader(GiraphHCatInputFormat hCatInputFormat)
hCatInputFormat - giraph input format to useprotected abstract I getSourceVertexId(org.apache.hcatalog.data.HCatRecord record)
record - Input recordprotected abstract I getTargetVertexId(org.apache.hcatalog.data.HCatRecord record)
record - Input recordprotected abstract E getEdgeValue(org.apache.hcatalog.data.HCatRecord record)
record - Input recordpublic I getCurrentSourceId() throws IOException, InterruptedException
EdgeReadergetCurrentSourceId in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic Edge<I,E> getCurrentEdge() throws IOException, InterruptedException
EdgeReadergetCurrentEdge in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionCopyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.