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.AColGroupValue
- 
- org.apache.sysds.runtime.compress.colgroup.AColGroupOffset
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable
 - Direct Known Subclasses:
- ColGroupOLE,- ColGroupRLE
 
 public abstract class AColGroupOffset extends AColGroupValue 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:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroupAColGroup.CompressionType
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcountNonZerosPerRow(int[] rnnz, int rl, int ru)longestimateInMemorySize()Get the upper bound estimate of in memory allocation for the column group.int[]getBitmapOffsets()char[]getBitmaps()doublegetCost(ComputationCostEstimator e, int nRows)Get the computation cost associated with this column group.longgetExactSizeOnDisk()Returns the exact serialized size of column group.booleanhasZeros()voidreadFields(DataInput in)Deserialize column group from data input.StringtoString()voidwrite(DataOutput out)Serializes column group to data output.- 
Methods inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroupValuecentralMoment, computeColSums, containsValue, copy, decompressToDenseBlock, decompressToSparseBlock, forceMatrixBlockDictionary, getCachedCounts, getCounts, getCounts, getDictionary, getNumberNonZeros, getNumValues, replace, rexpandCols, rightMultByMatrix
 - 
Methods inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroupCompressedgetMax, getMin, preAggRows, tsmm, unaryAggregateOperations, unaryAggregateOperations
 - 
Methods inherited from class org.apache.sysds.runtime.compress.colgroup.AColGroupbinaryRowOpLeft, binaryRowOpRight, colSum, decompressToDenseBlock, decompressToSparseBlock, get, getColIndices, getCompType, getIdx, getNumCols, leftMultByAColGroup, leftMultByMatrixNoPreAgg, scalarOperation, shiftColIndices, sliceColumn, sliceColumns, tsmmAColGroup, unaryOperation
 
- 
 
- 
- 
- 
Method Detail- 
estimateInMemorySizepublic long estimateInMemorySize() Description copied from class:AColGroupGet the upper bound estimate of in memory allocation for the column group.- Overrides:
- estimateInMemorySizein class- AColGroupValue
- Returns:
- an upper bound on the number of bytes used to store this ColGroup in memory.
 
 - 
getBitmapspublic char[] getBitmaps() 
 - 
getBitmapOffsetspublic int[] getBitmapOffsets() 
 - 
hasZerospublic boolean hasZeros() 
 - 
readFieldspublic void readFields(DataInput in) throws IOException Description copied from class:AColGroupDeserialize column group from data input.- Overrides:
- readFieldsin class- AColGroupValue
- Parameters:
- in- data input
- Throws:
- IOException- if IOException occurs
 
 - 
writepublic void write(DataOutput out) throws IOException Description copied from class:AColGroupSerializes column group to data output.- Overrides:
- writein class- AColGroupValue
- Parameters:
- out- data output
- Throws:
- IOException- if IOException occurs
 
 - 
getExactSizeOnDiskpublic 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 class- AColGroupValue
- Returns:
- exact serialized size for column group
 
 - 
countNonZerosPerRowpublic abstract void countNonZerosPerRow(int[] rnnz, int rl, int ru)
 - 
getCostpublic double getCost(ComputationCostEstimator e, int nRows) Description copied from class:AColGroupGet the computation cost associated with this column group.
 - 
toStringpublic String toString() - Overrides:
- toStringin class- AColGroupValue
 
 
- 
 
-