Class AColGroupOffset
java.lang.Object
org.apache.sysds.runtime.compress.colgroup.AColGroup
org.apache.sysds.runtime.compress.colgroup.AColGroupCompressed
org.apache.sysds.runtime.compress.colgroup.ADictBasedColGroup
org.apache.sysds.runtime.compress.colgroup.AColGroupValue
org.apache.sysds.runtime.compress.colgroup.APreAgg
org.apache.sysds.runtime.compress.colgroup.AColGroupOffset
- All Implemented Interfaces:
Serializable,IContainADictionary
- Direct Known Subclasses:
ColGroupOLE,ColGroupRLE
Base class for column groups encoded with various types of bitmap encoding.
NOTES: * OLE: separate storage segment length and bitmaps led to a 30% improvement but not applied because more
difficult to support both data layouts at the same time (distributed/local as well as w/ and w/o low-level opt)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroup
AColGroup.CompressionType -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongGet the upper bound estimate of in memory allocation for the column group.longReturns the exact serialized size of column group.static char[]static int[]voidwrite(DataOutput out) Methods inherited from class org.apache.sysds.runtime.compress.colgroup.APreAgg
getPreAggregateSize, leftMMIdentityPreAggregateDense, leftMultByAColGroup, mmWithDictionary, preAggregate, preAggregateDense, preAggregateSparse, preAggregateThatIndexStructure, tsmmAColGroupMethods inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroupValue
centralMoment, clear, computeColSums, getCounts, getNumberNonZeros, getNumValues, replace, rexpandCols, toStringMethods inherited from class org.apache.sysds.runtime.compress.colgroup.ADictBasedColGroup
copyAndSet, copyAndSet, decompressToDenseBlock, decompressToDenseBlockTransposed, decompressToSparseBlock, decompressToSparseBlockTransposed, getDictionary, getSparsity, reduceCols, rightMultByMatrixMethods 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, getCompressionInfo, getCompressionScheme, getCompType, getCost, getEncoding, getIdx, getNumCols, leftMultByMatrixNoPreAgg, morph, recompress, removeEmptyCols, removeEmptyRows, rightDecompressingMult, rightMultByMatrix, scalarOperation, selectionMultiply, shiftColIndices, sliceColumn, sliceColumns, sliceRows, sort, sortColumnIndexes, splitReshape, splitReshapePushDown, unaryOperation
-
Method Details
-
estimateInMemorySize
public long estimateInMemorySize()Description copied from class:AColGroupGet the upper bound estimate of in memory allocation for the column group.- Overrides:
estimateInMemorySizein classAColGroupValue- Returns:
- an upper bound on the number of bytes used to store this ColGroup in memory.
-
readPointers
- Throws:
IOException
-
readData
- Throws:
IOException
-
write
- Overrides:
writein classADictBasedColGroup- Throws:
IOException
-
getExactSizeOnDisk
public long getExactSizeOnDisk()Description copied from class:AColGroupReturns the exact serialized size of column group. This can be used for example for buffer preallocation.- Overrides:
getExactSizeOnDiskin classADictBasedColGroup- Returns:
- exact serialized size for column group
-
containZerosTuples
public boolean containZerosTuples()
-