public class CompressedSizeInfoColGroup extends Object
Constructor and Description |
---|
CompressedSizeInfoColGroup(EstimationFactors facts,
Set<AColGroup.CompressionType> validCompressionTypes,
ABitmap map)
Main Constructor for accurate estimates.
|
CompressedSizeInfoColGroup(int[] columns,
int numVals,
int numRows)
Join columns without analyzing the content.
|
Modifier and Type | Method and Description |
---|---|
static CompressedSizeInfoColGroup |
addConstGroup(int[] columns,
CompressedSizeInfoColGroup oneSide,
Set<AColGroup.CompressionType> validCompressionTypes)
This method adds a column group without having to analyze.
|
boolean |
containsZeros() |
boolean |
equals(Object that) |
Map<AColGroup.CompressionType,Long> |
getAllCompressionSizes() |
AColGroup.CompressionType |
getBestCompressionType() |
AColGroup.CompressionType |
getBestCompressionType(CompressionSettings cs) |
double |
getCardinalityRatio() |
int[] |
getColumns() |
long |
getCompressionSize(AColGroup.CompressionType ct) |
AMapToData |
getMap() |
long |
getMinSize() |
double |
getMostCommonFraction() |
int |
getNumOffs()
Number of offsets, or number of non zero values.
|
int |
getNumVals()
Note cardinality is the same as number of distinct values.
|
double |
getTupleSparsity() |
int |
hashCode() |
String |
toString() |
public CompressedSizeInfoColGroup(int[] columns, int numVals, int numRows)
columns
- The columns combinednumVals
- The number of distinct value tuples containednumRows
- The number of rows.public CompressedSizeInfoColGroup(EstimationFactors facts, Set<AColGroup.CompressionType> validCompressionTypes, ABitmap map)
facts
- The facts extracted from a number of columns, based on the estimateFactorsvalidCompressionTypes
- The list of valid compression types, allowed to be performed.map
- The map of the distinct values contained in this column group.public static CompressedSizeInfoColGroup addConstGroup(int[] columns, CompressedSizeInfoColGroup oneSide, Set<AColGroup.CompressionType> validCompressionTypes)
columns
- The columns of the colgroups togetheroneSide
- One of the sides, this may contain something, but the other side (not part of the
argument) should not.validCompressionTypes
- The List of valid compression techniques to usepublic long getCompressionSize(AColGroup.CompressionType ct)
public AColGroup.CompressionType getBestCompressionType(CompressionSettings cs)
public AColGroup.CompressionType getBestCompressionType()
public Map<AColGroup.CompressionType,Long> getAllCompressionSizes()
public long getMinSize()
public int getNumVals()
public int getNumOffs()
public int[] getColumns()
public double getCardinalityRatio()
public double getMostCommonFraction()
public double getTupleSparsity()
public AMapToData getMap()
public boolean containsZeros()
Copyright © 2021 The Apache Software Foundation. All rights reserved.