protected abstract class HCatalogVertexInputFormat.MultiRowHCatalogVertexReader extends HCatalogVertexInputFormat.HCatalogVertexReader
Modifier | Constructor and Description |
---|---|
protected |
MultiRowHCatalogVertexReader() |
Modifier and Type | Method and Description |
---|---|
Vertex<I,V,E> |
getCurrentVertex()
Get the current vertex.
|
protected abstract E |
getEdgeValue(org.apache.hcatalog.data.HCatRecord record)
get edge value from record.
|
protected abstract I |
getTargetVertexId(org.apache.hcatalog.data.HCatRecord record)
get target vertex id from record.
|
protected abstract I |
getVertexId(org.apache.hcatalog.data.HCatRecord record)
get vertex id from record.
|
protected abstract V |
getVertexValue(Iterable<org.apache.hcatalog.data.HCatRecord> records)
get vertex value from record.
|
boolean |
nextVertex() |
close, getContext, getProgress, getRecordReader, initialize
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf, setConf
protected abstract I getVertexId(org.apache.hcatalog.data.HCatRecord record)
record
- hcatprotected abstract V getVertexValue(Iterable<org.apache.hcatalog.data.HCatRecord> records)
records
- all vertex valuesprotected abstract I getTargetVertexId(org.apache.hcatalog.data.HCatRecord record)
record
- hcatprotected abstract E getEdgeValue(org.apache.hcatalog.data.HCatRecord record)
record
- hcat.public final Vertex<I,V,E> getCurrentVertex() throws IOException, InterruptedException
VertexReader
getCurrentVertex
in class VertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
IOException
InterruptedException
public boolean nextVertex() throws IOException, InterruptedException
nextVertex
in class HCatalogVertexInputFormat.HCatalogVertexReader
IOException
InterruptedException
Copyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.