I
- Vertex index valueV
- Vertex valueE
- Edge valuepublic abstract class TextVertexValueInputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends VertexValueInputFormat<I,V>
Modifier and Type | Class and Description |
---|---|
protected class |
TextVertexValueInputFormat.TextVertexValueReader
|
protected class |
TextVertexValueInputFormat.TextVertexValueReaderFromEachLine
Abstract class to be implemented by the user to read a vertex value from
each text line.
|
protected class |
TextVertexValueInputFormat.TextVertexValueReaderFromEachLineProcessed<T>
Abstract class to be implemented by the user to read a vertex value from
each text line after preprocessing it.
|
Modifier and Type | Field and Description |
---|---|
protected GiraphTextInputFormat |
textInputFormat
Uses the GiraphTextInputFormat to do everything
|
Constructor and Description |
---|
TextVertexValueInputFormat() |
Modifier and Type | Method and Description |
---|---|
void |
checkInputSpecs(org.apache.hadoop.conf.Configuration conf)
Check that input is valid.
|
abstract TextVertexValueInputFormat.TextVertexValueReader |
createVertexValueReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Create a
VertexValueReader 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.
|
createVertexReader
readInputSplit, writeInputSplit
getConf, setConf
protected GiraphTextInputFormat textInputFormat
public void checkInputSpecs(org.apache.hadoop.conf.Configuration conf)
GiraphInputFormat
checkInputSpecs
in class GiraphInputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,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
GiraphInputFormat
getSplits
in class GiraphInputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
context
- The job contextminSplitCountHint
- Minimum number of splits to create (hint)IOException
InterruptedException
public abstract TextVertexValueInputFormat.TextVertexValueReader createVertexValueReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
VertexValueInputFormat
VertexValueReader
for a given split. The framework will
call VertexValueReader.initialize(InputSplit,
TaskAttemptContext)
before the split is used.createVertexValueReader
in class VertexValueInputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
split
- The split to be readcontext
- The information about the taskIOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.