I - Vertex index valueV - Vertex valueE - Edge valuepublic abstract class TextVertexInputFormat<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>
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | TextVertexInputFormat.TextVertexReaderAbstract class to be implemented by the user based on their specific
 vertex input. | 
| protected class  | TextVertexInputFormat.TextVertexReaderFromEachLineAbstract class to be implemented by the user to read a vertex from each
 text line. | 
| protected class  | TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<T>Abstract class to be implemented by the user to read a vertex from each
 text line after preprocessing it. | 
| protected class  | TextVertexInputFormat.TextVertexReaderFromEachLineProcessedHandlingExceptions<T,X extends Throwable>Abstract class to be implemented by the user to read a vertex from each
 text line after preprocessing it with exception handling. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected GiraphTextInputFormat | textInputFormatUses the GiraphTextInputFormat to do everything | 
| Constructor and Description | 
|---|
| TextVertexInputFormat() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | checkInputSpecs(org.apache.hadoop.conf.Configuration conf)Check that input is valid. | 
| abstract TextVertexInputFormat.TextVertexReader | createVertexReader(org.apache.hadoop.mapreduce.InputSplit split,
                  org.apache.hadoop.mapreduce.TaskAttemptContext context)The factory method which produces the  TextVertexInputFormat.TextVertexReaderused by this
 input format. | 
| 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, setConfprotected GiraphTextInputFormat textInputFormat
public 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 abstract TextVertexInputFormat.TextVertexReader createVertexReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
TextVertexInputFormat.TextVertexReader used by this
 input format.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 taskIOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.