protected abstract static class HCatalogEdgeInputFormat.SingleRowHCatalogEdgeNoValueReader<I extends org.apache.hadoop.io.WritableComparable> extends HCatalogEdgeInputFormat.HCatalogEdgeReader<I,org.apache.hadoop.io.NullWritable>
HCatalogEdgeInputFormat.HCatalogEdgeReader for tables holding a complete edge
in each row where the edges contain no data other than IDs they point to.| Constructor and Description |
|---|
SingleRowHCatalogEdgeNoValueReader(GiraphHCatInputFormat hCatInputFormat)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Edge<I,org.apache.hadoop.io.NullWritable> |
getCurrentEdge()
Get the current edge.
|
I |
getCurrentSourceId()
Get the current edge source id.
|
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 SingleRowHCatalogEdgeNoValueReader(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 recordpublic I getCurrentSourceId() throws IOException, InterruptedException
EdgeReadergetCurrentSourceId in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.NullWritable>IOExceptionInterruptedExceptionpublic Edge<I,org.apache.hadoop.io.NullWritable> getCurrentEdge() throws IOException, InterruptedException
EdgeReadergetCurrentEdge in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.NullWritable>IOExceptionInterruptedExceptionCopyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.