org.apache.mahout.math.hadoop.stochasticsvd
Class ABtJob.QRReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<SplitPartitionedWritable,SparseRowBlockWritable,SplitPartitionedWritable,VectorWritable>
org.apache.mahout.math.hadoop.stochasticsvd.ABtJob.QRReducer
- Enclosing class:
- ABtJob
public static class ABtJob.QRReducer
- extends org.apache.hadoop.mapreduce.Reducer<SplitPartitionedWritable,SparseRowBlockWritable,SplitPartitionedWritable,VectorWritable>
QR first step pushed down to reducer.
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer |
org.apache.hadoop.mapreduce.Reducer.Context |
Methods inherited from class org.apache.hadoop.mapreduce.Reducer |
run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
accum
protected final SparseRowBlockWritable accum
blockHeight
protected int blockHeight
accumSize
protected int accumSize
lastTaskId
protected int lastTaskId
qhatCollector
protected org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Writable,DenseBlockWritable> qhatCollector
rhatCollector
protected org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Writable,VectorWritable> rhatCollector
qr
protected QRFirstStep qr
ABtJob.QRReducer
public ABtJob.QRReducer()
setup
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
- Overrides:
setup
in class org.apache.hadoop.mapreduce.Reducer<SplitPartitionedWritable,SparseRowBlockWritable,SplitPartitionedWritable,VectorWritable>
- Throws:
IOException
InterruptedException
setupBlock
protected void setupBlock(org.apache.hadoop.mapreduce.Reducer.Context context,
SplitPartitionedWritable spw)
throws InterruptedException,
IOException
- Throws:
InterruptedException
IOException
reduce
protected void reduce(SplitPartitionedWritable key,
Iterable<SparseRowBlockWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
- Overrides:
reduce
in class org.apache.hadoop.mapreduce.Reducer<SplitPartitionedWritable,SparseRowBlockWritable,SplitPartitionedWritable,VectorWritable>
- Throws:
IOException
InterruptedException
cleanup
protected void cleanup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
- Overrides:
cleanup
in class org.apache.hadoop.mapreduce.Reducer<SplitPartitionedWritable,SparseRowBlockWritable,SplitPartitionedWritable,VectorWritable>
- Throws:
IOException
InterruptedException
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.