public class LongDenseMatrixSumAggregator extends MatrixSumAggregator
| Constructor and Description |
|---|
LongDenseMatrixSumAggregator(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,
long v,
WorkerAggregatorUsage worker)
Add the given value to the entry specified.
|
LongDenseMatrix |
getMatrix(int numRows,
AggregatorUsage aggUser)
Read the aggregated values of the matrix.
|
void |
register(int numRows,
MasterAggregatorUsage master)
Register the long vector aggregators, one for each row of the matrix.
|
void |
setMatrix(LongDenseMatrix matrix,
MasterAggregatorUsage master)
Set the values of the matrix to the master specified.
|
getRowAggregatorNamepublic LongDenseMatrixSumAggregator(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,
long v,
WorkerAggregatorUsage worker)
i - the rowj - the columnv - the valueworker - the worker to aggregatepublic void setMatrix(LongDenseMatrix matrix, MasterAggregatorUsage master)
matrix - the matrix to set the valuesmaster - the masterpublic LongDenseMatrix getMatrix(int numRows, AggregatorUsage aggUser)
numRows - the number of rowsaggUser - the master or workerCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.