Class ASDCZero
-
- All Implemented Interfaces:
Serializable,AOffsetsGroup,IContainADictionary,IContainDefaultTuple
- Direct Known Subclasses:
ColGroupSDCSingleZeros,ColGroupSDCZeros
public abstract class ASDCZero extends APreAgg implements AOffsetsGroup, IContainDefaultTuple
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroup
AColGroup.CompressionType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddecompressToDenseBlock(DenseBlock db, int rl, int ru, int offR, int offC, AIterator it)voiddecompressToDenseBlockDenseDictionary(DenseBlock db, int rl, int ru, int offR, int offC, AIterator it)abstract voiddecompressToDenseBlockDenseDictionaryWithProvidedIterator(DenseBlock db, int rl, int ru, int offR, int offC, double[] values, AIterator it)CompressedSizeInfoColGroupgetCompressionInfo(int nRow)Get the compression info for this column group.ICLASchemegetCompressionScheme()Get the compression scheme for this column group to enable compression of other data.double[]getDefaultTuple()AIteratorgetIterator(int row)abstract intgetNumberOffsets()intgetNumRows()AOffsetgetOffsets()voidleftMultByMatrixNoPreAgg(MatrixBlock matrix, MatrixBlock result, int rl, int ru, int cl, int cu)Left multiply with this column group.AColGroupmorph(AColGroup.CompressionType ct, int nRow)Recompress this column group into a new column group of the given type.-
Methods inherited from class org.apache.sysds.runtime.compress.colgroup.APreAgg
getPreAggregateSize, leftMMIdentityPreAggregateDense, leftMultByAColGroup, mmWithDictionary, preAggregate, preAggregateDense, preAggregateSparse, preAggregateThatIndexStructure, tsmmAColGroup
-
Methods inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroupValue
centralMoment, clear, computeColSums, estimateInMemorySize, getCounts, getNumberNonZeros, getNumValues, replace, rexpandCols, toString
-
Methods inherited from class org.apache.sysds.runtime.compress.colgroup.ADictBasedColGroup
copyAndSet, copyAndSet, decompressToDenseBlock, decompressToDenseBlockTransposed, decompressToSparseBlock, decompressToSparseBlockTransposed, getDictionary, getExactSizeOnDisk, getSparsity, reduceCols, rightMultByMatrix, write
-
Methods inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroupCompressed
getMax, getMin, getSum, isEmpty, preAggRows, sameIndexStructure, sameIndexStructure, tsmm, unaryAggregateOperations, unaryAggregateOperations
-
Methods inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroup
addVector, append, appendN, binaryRowOpLeft, binaryRowOpRight, colSum, combine, combineWithSameIndex, combineWithSameIndex, containsValue, decompressToDenseBlock, decompressToSparseBlock, get, getColIndices, getCompType, getCost, getEncoding, getIdx, getNumCols, recompress, rightDecompressingMult, rightMultByMatrix, scalarOperation, selectionMultiply, shiftColIndices, sliceColumn, sliceColumns, sliceRows, sortColumnIndexes, splitReshape, splitReshapePushDown, unaryOperation
-
-
-
-
Method Detail
-
getNumRows
public int getNumRows()
-
leftMultByMatrixNoPreAgg
public final void leftMultByMatrixNoPreAgg(MatrixBlock matrix, MatrixBlock result, int rl, int ru, int cl, int cu)
Description copied from class:AColGroupLeft multiply with this column group.- Specified by:
leftMultByMatrixNoPreAggin classAColGroup- Parameters:
matrix- The matrix to multiply with on the leftresult- The result to output the values into, always dense for the purpose of the column groups parallelizingrl- The row to begin the multiplication from on the lhs matrixru- The row to end the multiplication at on the lhs matrixcl- The column to begin the multiplication from on the lhs matrixcu- The column to end the multiplication at on the lhs matrix
-
decompressToDenseBlock
public void decompressToDenseBlock(DenseBlock db, int rl, int ru, int offR, int offC, AIterator it)
-
decompressToDenseBlockDenseDictionary
public void decompressToDenseBlockDenseDictionary(DenseBlock db, int rl, int ru, int offR, int offC, AIterator it)
-
decompressToDenseBlockDenseDictionaryWithProvidedIterator
public abstract void decompressToDenseBlockDenseDictionaryWithProvidedIterator(DenseBlock db, int rl, int ru, int offR, int offC, double[] values, AIterator it)
-
getIterator
public AIterator getIterator(int row)
-
getOffsets
public AOffset getOffsets()
- Specified by:
getOffsetsin interfaceAOffsetsGroup
-
getNumberOffsets
public abstract int getNumberOffsets()
-
getDefaultTuple
public double[] getDefaultTuple()
- Specified by:
getDefaultTuplein interfaceIContainDefaultTuple
-
getCompressionInfo
public final CompressedSizeInfoColGroup getCompressionInfo(int nRow)
Description copied from class:AColGroupGet the compression info for this column group.- Specified by:
getCompressionInfoin classAColGroup- Parameters:
nRow- The number of rows in this column group.- Returns:
- The compression info for this group.
-
getCompressionScheme
public ICLAScheme getCompressionScheme()
Description copied from class:AColGroupGet the compression scheme for this column group to enable compression of other data.- Specified by:
getCompressionSchemein classAColGroup- Returns:
- The compression scheme of this column group
-
morph
public AColGroup morph(AColGroup.CompressionType ct, int nRow)
Description copied from class:AColGroupRecompress this column group into a new column group of the given type.
-
-