Package io.trino.cost
Class PlanNodeStatsEstimate
java.lang.Object
io.trino.cost.PlanNodeStatsEstimate
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPlanNodeStatsEstimate(double outputRowCount, Map<Symbol, SymbolStatsEstimate> symbolStatistics) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()buildFrom(PlanNodeStatsEstimate other) booleandoubleReturns estimated number of rows.doublegetOutputSizeInBytes(Collection<Symbol> outputSymbols) Returns estimated data size.getSymbolStatistics(Symbol symbol) inthashCode()booleanmapOutputRowCount(Function<Double, Double> mappingFunction) mapSymbolColumnStatistics(Symbol symbol, Function<SymbolStatsEstimate, SymbolStatsEstimate> mappingFunction) toString()static PlanNodeStatsEstimateunknown()
-
Constructor Details
-
PlanNodeStatsEstimate
public PlanNodeStatsEstimate(double outputRowCount, Map<Symbol, SymbolStatsEstimate> symbolStatistics)
-
-
Method Details
-
unknown
-
getOutputRowCount
public double getOutputRowCount()Returns estimated number of rows. Unknown value is represented byDouble.NaN -
getOutputSizeInBytes
Returns estimated data size. Unknown value is represented byDouble.NaN -
mapOutputRowCount
-
mapSymbolColumnStatistics
public PlanNodeStatsEstimate mapSymbolColumnStatistics(Symbol symbol, Function<SymbolStatsEstimate, SymbolStatsEstimate> mappingFunction) -
getSymbolStatistics
-
getSymbolStatistics
-
getSymbolsWithKnownStatistics
-
isOutputRowCountUnknown
public boolean isOutputRowCountUnknown() -
toString
-
equals
-
hashCode
public int hashCode() -
builder
-
buildFrom
-