public class AffinityMatrixInputMapper extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,DistributedRowMatrix.MatrixEntryWritable>
Handles reading the files representing the affinity matrix. Since the affinity matrix is representative of a graph, each line in all the files should take the form:
i,j,value
where i and j are the ith and
j data points in the entire set, and value
represents some measurement of their relative absolute magnitudes. This
is, simply, a method for representing a graph textually.
| Constructor and Description |
|---|
AffinityMatrixInputMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
map(org.apache.hadoop.io.LongWritable key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void map(org.apache.hadoop.io.LongWritable key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,DistributedRowMatrix.MatrixEntryWritable>IOExceptionInterruptedExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.