public class LocalCostEstimate extends Object
Modifier and Type | Method and Description |
---|---|
static LocalCostEstimate |
addPartialComponents(LocalCostEstimate one,
LocalCostEstimate two,
LocalCostEstimate... more)
Sums partial cost estimates of some (single) plan node.
|
double |
getCpuCost() |
double |
getMaxMemory() |
double |
getNetworkCost() |
static LocalCostEstimate |
of(double cpuCost,
double maxMemory,
double networkCost) |
static LocalCostEstimate |
ofCpu(double cpuCost) |
static LocalCostEstimate |
ofNetwork(double networkCost) |
PlanCostEstimate |
toPlanCost()
Deprecated.
This class represents individual cost of a part of a plan (usually of a single
PlanNode ). Use CostProvider instead. |
String |
toString() |
static LocalCostEstimate |
unknown() |
static LocalCostEstimate |
zero() |
public static LocalCostEstimate unknown()
public static LocalCostEstimate zero()
public static LocalCostEstimate ofCpu(double cpuCost)
public static LocalCostEstimate ofNetwork(double networkCost)
public static LocalCostEstimate of(double cpuCost, double maxMemory, double networkCost)
public double getCpuCost()
public double getMaxMemory()
public double getNetworkCost()
@Deprecated public PlanCostEstimate toPlanCost()
PlanNode
). Use CostProvider
instead.public static LocalCostEstimate addPartialComponents(LocalCostEstimate one, LocalCostEstimate two, LocalCostEstimate... more)
Copyright © 2012–2019. All rights reserved.