I - Vertex idV - Vertex dataE - Edge datapublic class WrappedVertexInputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends VertexInputFormat<I,V,E>
VertexInputFormat to make sure proper configuration
parameters are passed around, that user can set parameters in
configuration and they will be available in other methods related to this
format.| Constructor and Description |
|---|
WrappedVertexInputFormat(VertexInputFormat<I,V,E> vertexInputFormat)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkInputSpecs(org.apache.hadoop.conf.Configuration conf)
Check that input is valid.
|
VertexReader<I,V,E> |
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.
|
org.apache.hadoop.mapreduce.InputSplit |
readInputSplit(DataInput dataInput)
Read input split info from DataInput.
|
void |
writeInputSplit(org.apache.hadoop.mapreduce.InputSplit inputSplit,
DataOutput dataOutput)
Write input split info to DataOutput.
|
getConf, setConfpublic WrappedVertexInputFormat(VertexInputFormat<I,V,E> vertexInputFormat)
vertexInputFormat - Vertex input format to wrappublic void checkInputSpecs(org.apache.hadoop.conf.Configuration conf)
GiraphInputFormatcheckInputSpecs in class GiraphInputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>conf - Configurationpublic List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext context, int minSplitCountHint) throws IOException, InterruptedException
GiraphInputFormatgetSplits in class GiraphInputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>context - The job contextminSplitCountHint - Minimum number of splits to create (hint)IOExceptionInterruptedExceptionpublic VertexReader<I,V,E> 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<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>split - the split to be readcontext - the information about the taskIOExceptionpublic void writeInputSplit(org.apache.hadoop.mapreduce.InputSplit inputSplit,
DataOutput dataOutput)
throws IOException
GiraphInputFormatwriteInputSplit in class GiraphInputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>inputSplit - InputSplitdataOutput - DataOutputIOExceptionpublic org.apache.hadoop.mapreduce.InputSplit readInputSplit(DataInput dataInput) throws IOException, ClassNotFoundException
GiraphInputFormatreadInputSplit in class GiraphInputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>dataInput - DataInputIOExceptionClassNotFoundExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.