protected abstract class HCatalogVertexValueInputFormat.SingleRowHCatalogVertexValueReader extends HCatalogVertexValueInputFormat.HCatalogVertexValueReader
HCatalogVertexValueInputFormat.HCatalogVertexValueReader
for tables holding a complete vertex
value in each row.Modifier | Constructor and Description |
---|---|
protected |
SingleRowHCatalogVertexValueReader() |
Modifier and Type | Method and Description |
---|---|
I |
getCurrentVertexId()
User-defined method to extract the vertex id.
|
V |
getCurrentVertexValue()
User-defined method to extract the vertex value.
|
protected abstract I |
getVertexId(org.apache.hcatalog.data.HCatRecord record)
Get vertex id from a record.
|
protected abstract V |
getVertexValue(org.apache.hcatalog.data.HCatRecord record)
Get vertex value from a record.
|
close, getContext, getProgress, getRecordReader, initialize, nextVertex
getCurrentVertex
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf, setConf
protected SingleRowHCatalogVertexValueReader()
protected abstract I getVertexId(org.apache.hcatalog.data.HCatRecord record)
record
- Input recordprotected abstract V getVertexValue(org.apache.hcatalog.data.HCatRecord record)
record
- Input recordpublic final I getCurrentVertexId() throws IOException, InterruptedException
BasicVertexValueReader
getCurrentVertexId
in class BasicVertexValueReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
IOException
InterruptedException
public final V getCurrentVertexValue() throws IOException, InterruptedException
BasicVertexValueReader
getCurrentVertexValue
in class BasicVertexValueReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
IOException
InterruptedException
Copyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.