Package io.trino.cost
Class StatisticRange
- java.lang.Object
-
- io.trino.cost.StatisticRange
-
public class StatisticRange extends Object
-
-
Constructor Summary
Constructors Constructor Description StatisticRange(double low, double high, double distinctValues)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StatisticRangeaddAndCollapseDistinctValues(StatisticRange other)StatisticRangeaddAndMaxDistinctValues(StatisticRange other)StatisticRangeaddAndSumDistinctValues(StatisticRange other)static StatisticRangeempty()booleanequals(Object o)static StatisticRangefrom(SymbolStatsEstimate estimate)doublegetDistinctValuesCount()doublegetHigh()doublegetLow()inthashCode()StatisticRangeintersect(StatisticRange other)booleanisEmpty()doublelength()doubleoverlapPercentWith(StatisticRange other)StringtoString()
-
-
-
Method Detail
-
empty
public static StatisticRange empty()
-
from
public static StatisticRange from(SymbolStatsEstimate estimate)
-
getLow
public double getLow()
-
getHigh
public double getHigh()
-
getDistinctValuesCount
public double getDistinctValuesCount()
-
length
public double length()
-
isEmpty
public boolean isEmpty()
-
overlapPercentWith
public double overlapPercentWith(StatisticRange other)
-
intersect
public StatisticRange intersect(StatisticRange other)
-
addAndSumDistinctValues
public StatisticRange addAndSumDistinctValues(StatisticRange other)
-
addAndMaxDistinctValues
public StatisticRange addAndMaxDistinctValues(StatisticRange other)
-
addAndCollapseDistinctValues
public StatisticRange addAndCollapseDistinctValues(StatisticRange other)
-
-