Class ASDC
- All Implemented Interfaces:
Serializable,AOffsetsGroup,IContainADictionary,IContainDefaultTuple
- Direct Known Subclasses:
ColGroupSDC,ColGroupSDCFOR,ColGroupSDCSingle
public abstract class ASDC
extends AMorphingMMColGroup
implements AOffsetsGroup, IContainDefaultTuple
Column group that sparsely encodes the dictionary values. The idea is that all values is encoded with indexes except
the most common one. the most common one can be inferred by not being included in the indexes.
This column group is handy in cases where sparse unsafe operations is executed on very sparse columns. Then the zeros
would be materialized in the group without any overhead.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroup
AColGroup.CompressionType -
Method Summary
Modifier and TypeMethodDescriptiongetCompressionInfo(int nRow) Get the compression info for this column group.Get the compression scheme for this column group to enable compression of other data.abstract intintmorph(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.AMorphingMMColGroup
decompressToSparseBlockTransposed, extractCommon, getCommon, leftMultByAColGroup, leftMultByMatrixNoPreAgg, tsmmAColGroupMethods inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroupValue
centralMoment, clear, computeColSums, estimateInMemorySize, getCounts, getNumberNonZeros, getNumValues, replace, rexpandCols, toStringMethods inherited from class org.apache.sysds.runtime.compress.colgroup.ADictBasedColGroup
copyAndSet, copyAndSet, decompressToDenseBlock, decompressToDenseBlockTransposed, decompressToSparseBlock, getDictionary, getExactSizeOnDisk, getSparsity, reduceCols, rightMultByMatrix, writeMethods inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroupCompressed
getMax, getMin, getSum, isEmpty, preAggRows, sameIndexStructure, sameIndexStructure, tsmm, unaryAggregateOperations, unaryAggregateOperationsMethods 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, removeEmptyCols, removeEmptyRows, rightDecompressingMult, rightMultByMatrix, scalarOperation, selectionMultiply, shiftColIndices, sliceColumn, sliceColumns, sliceRows, sort, sortColumnIndexes, splitReshape, splitReshapePushDown, unaryOperationMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sysds.runtime.compress.colgroup.IContainDefaultTuple
getDefaultTuple
-
Method Details
-
getNumRows
public int getNumRows() -
getOffsets
- Specified by:
getOffsetsin interfaceAOffsetsGroup
-
getNumberOffsets
public abstract int getNumberOffsets() -
getCompressionInfo
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
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
Description copied from class:AColGroupRecompress this column group into a new column group of the given type.
-