Package io.trino.cost
Class PlanNodeStatsEstimate
- java.lang.Object
-
- io.trino.cost.PlanNodeStatsEstimate
-
public class PlanNodeStatsEstimate extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlanNodeStatsEstimate.Builder
-
Constructor Summary
Constructors Constructor Description PlanNodeStatsEstimate(double outputRowCount, Map<Symbol,SymbolStatsEstimate> symbolStatistics)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PlanNodeStatsEstimate.Builderbuilder()static PlanNodeStatsEstimate.BuilderbuildFrom(PlanNodeStatsEstimate other)booleanequals(Object o)doublegetOutputRowCount()Returns estimated number of rows.doublegetOutputSizeInBytes(Collection<Symbol> outputSymbols, TypeProvider types)Returns estimated data size.Map<Symbol,SymbolStatsEstimate>getSymbolStatistics()SymbolStatsEstimategetSymbolStatistics(Symbol symbol)Set<Symbol>getSymbolsWithKnownStatistics()inthashCode()booleanisOutputRowCountUnknown()PlanNodeStatsEstimatemapOutputRowCount(Function<Double,Double> mappingFunction)PlanNodeStatsEstimatemapSymbolColumnStatistics(Symbol symbol, Function<SymbolStatsEstimate,SymbolStatsEstimate> mappingFunction)StringtoString()static PlanNodeStatsEstimateunknown()
-
-
-
Constructor Detail
-
PlanNodeStatsEstimate
public PlanNodeStatsEstimate(double outputRowCount, Map<Symbol,SymbolStatsEstimate> symbolStatistics)
-
-
Method Detail
-
unknown
public static PlanNodeStatsEstimate unknown()
-
getOutputRowCount
public double getOutputRowCount()
Returns estimated number of rows. Unknown value is represented byDouble.NaN
-
getOutputSizeInBytes
public double getOutputSizeInBytes(Collection<Symbol> outputSymbols, TypeProvider types)
Returns estimated data size. Unknown value is represented byDouble.NaN
-
mapOutputRowCount
public PlanNodeStatsEstimate mapOutputRowCount(Function<Double,Double> mappingFunction)
-
mapSymbolColumnStatistics
public PlanNodeStatsEstimate mapSymbolColumnStatistics(Symbol symbol, Function<SymbolStatsEstimate,SymbolStatsEstimate> mappingFunction)
-
getSymbolStatistics
public SymbolStatsEstimate getSymbolStatistics(Symbol symbol)
-
getSymbolStatistics
public Map<Symbol,SymbolStatsEstimate> getSymbolStatistics()
-
isOutputRowCountUnknown
public boolean isOutputRowCountUnknown()
-
builder
public static PlanNodeStatsEstimate.Builder builder()
-
buildFrom
public static PlanNodeStatsEstimate.Builder buildFrom(PlanNodeStatsEstimate other)
-
-