public class ColGroupConst extends ColGroupValue
AColGroup.CompressionType| Constructor and Description | 
|---|
| ColGroupConst(int[] colIndices,
             int numRows,
             ADictionary dict)Constructs an Constant Colum Group, that contains only one tuple, with the given value. | 
| Modifier and Type | Method and Description | 
|---|---|
| AColGroup | binaryRowOp(BinaryOperator op,
           double[] v,
           boolean sparseSafe,
           boolean left)Perform a binary row operation. | 
| void | countNonZerosPerRow(int[] rnnz,
                   int rl,
                   int ru)Count the number of non-zeros per row | 
| double | get(int r,
   int c)Get the value at a global row/column position. | 
| org.apache.sysds.runtime.compress.colgroup.AColGroup.ColGroupType | getColGroupType()Internally get the specific type of ColGroup, this could be extracted from the object but that does not allow for
 nice switches in the code. | 
| AColGroup.CompressionType | getCompType()Obtain the compression type. | 
| int[] | getCounts(int[] out) | 
| int[] | getCounts(int rl,
         int ru,
         int[] out) | 
| void | preAggregate(MatrixBlock m,
            MatrixBlock preAgg,
            int rl,
            int ru)Pre aggregate for left Multiplication. | 
| void | preAggregateDense(MatrixBlock m,
                 MatrixBlock preAgg,
                 int rl,
                 int ru,
                 int cl,
                 int cu) | 
| AColGroup | scalarOperation(ScalarOperator op)Perform the specified scalar operation directly on the compressed column group, without decompressing individual
 cells if possible. | 
addMatrixToResult, addMinMax, allocatePreAggregate, cleanupThreadLocalMemory, containsValue, copy, copyAndSet, copyAndSet, copyAndSet, copyAndSet, decompressToBlockSafe, decompressToBlockUnSafe, estimateInMemorySize, getCachedCounts, getCounts, getCounts, getDictionary, getExactSizeOnDisk, getIfCountsType, getNumberNonZeros, getNumValues, getValues, getValuesAsBlock, isDense, isLossy, leftMultByAColGroup, leftMultByMatrix, leftMultByPreAggregateMatrix, leftMultByPreAggregateMatrix, preAggregateThatIndexStructure, readFields, replace, rightMultByMatrix, setupLeftMultThreadLocalMemory, setupThreadLocalMemory, toString, tsmm, writegetMax, getMin, getNumRows, unaryAggregateOperations, unaryAggregateOperationsdecompressColumnToBlockUnSafe, decompressToBlockUnSafe, getColIndices, getNumCols, leftMultByMatrix, shiftColIndices, sliceColumn, sliceColumnspublic ColGroupConst(int[] colIndices,
                     int numRows,
                     ADictionary dict)
colIndices - The Colum indexes for the column group.numRows - The number of rows contained in the group.dict - The dictionary containing one tuple for the entire compression.public int[] getCounts(int[] out)
getCounts in class ColGroupValuepublic int[] getCounts(int rl,
                       int ru,
                       int[] out)
getCounts in class ColGroupValuepublic AColGroup.CompressionType getCompType()
AColGroupgetCompType in class AColGrouppublic org.apache.sysds.runtime.compress.colgroup.AColGroup.ColGroupType getColGroupType()
AColGrouppublic double get(int r,
                  int c)
AColGrouppublic void preAggregate(MatrixBlock m, MatrixBlock preAgg, int rl, int ru)
ColGroupValuepreAggregate in class ColGroupValuem - Matrix to preAggregatepreAgg - Matrix to preAggregate intorl - Start rowru - End rowpublic void preAggregateDense(MatrixBlock m, MatrixBlock preAgg, int rl, int ru, int cl, int cu)
preAggregateDense in class ColGroupValuepublic AColGroup scalarOperation(ScalarOperator op)
AColGroupscalarOperation in class AColGroupop - operation to performpublic AColGroup binaryRowOp(BinaryOperator op, double[] v, boolean sparseSafe, boolean left)
AColGroupbinaryRowOp in class AColGroupop - The operation to executev - The vector of values to apply, should be same length as dictionary length.sparseSafe - True if the operation return 0 on all instances of values in v -- op(v[?], 0)left - Specifies if the operation is executed on the left or right side of the values contained.public void countNonZerosPerRow(int[] rnnz,
                                int rl,
                                int ru)
AColGroupcountNonZerosPerRow in class AColGrouprnnz - non-zeros per rowrl - row lower bound, inclusiveru - row upper bound, exclusiveCopyright © 2021 The Apache Software Foundation. All rights reserved.