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