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, nextEdge
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf, setConf
public 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
EdgeReader
getCurrentSourceId
in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.NullWritable>
IOException
InterruptedException
public Edge<I,org.apache.hadoop.io.NullWritable> getCurrentEdge() throws IOException, InterruptedException
EdgeReader
getCurrentEdge
in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.NullWritable>
IOException
InterruptedException
Copyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.