KEYIN - the input format's KEYIN type.VALUEIN - the input format's VALUE_IN type.V - the vertex id type.E - the Edge cost object type.M - the Vertex value/message object type.public abstract class VertexInputReader<KEYIN extends org.apache.hadoop.io.Writable,VALUEIN extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable> extends Object implements PartitioningRunner.RecordConverter
| Constructor and Description |
|---|
VertexInputReader() |
| Modifier and Type | Method and Description |
|---|---|
KeyValuePair<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> |
convertRecord(KeyValuePair<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> inputRecord,
org.apache.hadoop.conf.Configuration conf) |
int |
getPartitionId(KeyValuePair<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> inputRecord,
Partitioner partitioner,
org.apache.hadoop.conf.Configuration conf,
BSPPeer peer,
int numTasks) |
abstract boolean |
parseVertex(KEYIN key,
VALUEIN value,
Vertex<V,E,M> vertex)
Parses a given key and value into the given vertex.
|
void |
setup(org.apache.hadoop.conf.Configuration conf) |
public void setup(org.apache.hadoop.conf.Configuration conf)
setup in interface PartitioningRunner.RecordConverterpublic abstract boolean parseVertex(KEYIN key, VALUEIN value, Vertex<V,E,M> vertex) throws Exception
Exceptionpublic KeyValuePair<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> convertRecord(KeyValuePair<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> inputRecord, org.apache.hadoop.conf.Configuration conf) throws IOException
convertRecord in interface PartitioningRunner.RecordConverterIOExceptionpublic int getPartitionId(KeyValuePair<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> inputRecord, Partitioner partitioner, org.apache.hadoop.conf.Configuration conf, BSPPeer peer, int numTasks)
getPartitionId in interface PartitioningRunner.RecordConverterCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.