public class LouvainVertexInputFormat extends TextVertexInputFormat<Text,LouvainNodeState,LongWritable>
idinternal weightedge list
the edge list is a comma separated list of edges of the form id:weight
The graph must be bi-directional i.e. if vertex 1 has edge 2:9, the vertex 2
must have id 1:9 This condition is not verified as the input is read, but
results of the algorithm will not be correct, and the run may fail with
exceptions.
Modifier and Type | Class and Description |
---|---|
protected class |
LouvainVertexInputFormat.LouvainVertexReader |
TextVertexInputFormat.TextVertexReader, TextVertexInputFormat.TextVertexReaderFromEachLine, TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<T>, TextVertexInputFormat.TextVertexReaderFromEachLineProcessedHandlingExceptions<T,X extends Throwable>
textInputFormat
Constructor and Description |
---|
LouvainVertexInputFormat() |
Modifier and Type | Method and Description |
---|---|
TextVertexInputFormat.TextVertexReader |
createVertexReader(InputSplit inputSplit,
TaskAttemptContext taskAttemptContext) |
checkInputSpecs, getSplits
readInputSplit, writeInputSplit
getConf, setConf
public TextVertexInputFormat.TextVertexReader createVertexReader(InputSplit inputSplit, TaskAttemptContext taskAttemptContext) throws IOException
createVertexReader
in class TextVertexInputFormat<Text,LouvainNodeState,LongWritable>
IOException