public class IntDenseMatrixSumAggregator extends MatrixSumAggregator
| Constructor and Description |
|---|
IntDenseMatrixSumAggregator(String name)
Create a new matrix aggregator with the given prefix name for the vector
aggregators.
|
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(int i,
int j,
int v,
WorkerAggregatorUsage worker)
Add the given value to the entry specified.
|
IntDenseMatrix |
getMatrix(int numRows,
AggregatorUsage aggUser)
Read the aggregated values of the matrix.
|
void |
register(int numRows,
MasterAggregatorUsage master)
Register the int vector aggregators, one for each row of the matrix.
|
void |
setMatrix(IntDenseMatrix matrix,
MasterAggregatorUsage master)
Set the values of the matrix to the master specified.
|
getRowAggregatorNamepublic IntDenseMatrixSumAggregator(String name)
name - the prefix for the row vector aggregatorspublic void register(int numRows,
MasterAggregatorUsage master)
throws InstantiationException,
IllegalAccessException
numRows - the number of rowsmaster - the master to register the aggregatorsInstantiationExceptionIllegalAccessExceptionpublic void aggregate(int i,
int j,
int v,
WorkerAggregatorUsage worker)
i - the rowj - the columnv - the valueworker - the worker to aggregatepublic void setMatrix(IntDenseMatrix matrix, MasterAggregatorUsage master)
matrix - the matrix to set the valuesmaster - the masterpublic IntDenseMatrix getMatrix(int numRows, AggregatorUsage aggUser)
numRows - the number of rowsaggUser - the master or workerCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.