public class WattsStrogatzVertexInputFormat extends VertexInputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.DoubleWritable>
| Constructor and Description |
|---|
WattsStrogatzVertexInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkInputSpecs(org.apache.hadoop.conf.Configuration conf)
Check that input is valid.
|
VertexReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.DoubleWritable> |
createVertexReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Create a vertex reader for a given split.
|
List<org.apache.hadoop.mapreduce.InputSplit> |
getSplits(org.apache.hadoop.mapreduce.JobContext context,
int minSplitCountHint)
Get the list of input splits for the format.
|
readInputSplit, writeInputSplitgetConf, setConfpublic void checkInputSpecs(org.apache.hadoop.conf.Configuration conf)
GiraphInputFormatcheckInputSpecs in class GiraphInputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.DoubleWritable>conf - Configurationpublic final List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext context, int minSplitCountHint) throws IOException, InterruptedException
GiraphInputFormatgetSplits in class GiraphInputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.DoubleWritable>context - The job contextminSplitCountHint - Minimum number of splits to create (hint)IOExceptionInterruptedExceptionpublic VertexReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.DoubleWritable> createVertexReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
VertexInputFormatVertexReader.initialize(InputSplit, TaskAttemptContext) before
the split is used.createVertexReader in class VertexInputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.DoubleWritable>split - the split to be readcontext - the information about the taskIOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.