Class CompressedSizeInfoColGroup
- java.lang.Object
-
- org.apache.sysds.runtime.compress.estim.CompressedSizeInfoColGroup
-
public class CompressedSizeInfoColGroup extends Object
Information collected about a specific ColGroup's compression size.
-
-
Constructor Summary
Constructors Constructor Description CompressedSizeInfoColGroup(int[] columns, int nRows)Create empty.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearMap()booleancontainsZeros()Map<AColGroup.CompressionType,Long>getAllCompressionSizes()AColGroup.CompressionTypegetBestCompressionType()AColGroup.CompressionTypegetBestCompressionType(CompressionSettings cs)doublegetCardinalityRatio()int[]getColumns()longgetCompressionSize(AColGroup.CompressionType ct)intgetLargestOffInstances()IEncodegetMap()longgetMinSize()doublegetMostCommonFraction()intgetNumOffs()Number of offsets, or number of non zero values.intgetNumRows()intgetNumVals()Note cardinality is the same as number of distinct values.doublegetTupleSparsity()booleanisConst()booleanisEmpty()StringtoString()
-
-
-
Method Detail
-
getCompressionSize
public long getCompressionSize(AColGroup.CompressionType ct)
-
getBestCompressionType
public AColGroup.CompressionType getBestCompressionType(CompressionSettings cs)
-
getBestCompressionType
public AColGroup.CompressionType getBestCompressionType()
-
getAllCompressionSizes
public Map<AColGroup.CompressionType,Long> getAllCompressionSizes()
-
getMinSize
public long getMinSize()
-
getNumVals
public int getNumVals()
Note cardinality is the same as number of distinct values.- Returns:
- cardinality or number of distinct values.
-
getNumOffs
public int getNumOffs()
Number of offsets, or number of non zero values.- Returns:
- Number of non zeros or number of values.
-
getColumns
public int[] getColumns()
-
getNumRows
public int getNumRows()
-
getCardinalityRatio
public double getCardinalityRatio()
-
getMostCommonFraction
public double getMostCommonFraction()
-
getLargestOffInstances
public int getLargestOffInstances()
-
getTupleSparsity
public double getTupleSparsity()
-
getMap
public IEncode getMap()
-
containsZeros
public boolean containsZeros()
-
isEmpty
public boolean isEmpty()
-
isConst
public boolean isConst()
-
clearMap
public void clearMap()
-
-