public final class PlanCostEstimate extends Object
| Constructor and Description |
|---|
PlanCostEstimate(double cpuCost,
double maxMemory,
double maxMemoryWhenOutputting,
double networkCost) |
PlanCostEstimate(double cpuCost,
double maxMemory,
double maxMemoryWhenOutputting,
double networkCost,
LocalCostEstimate rootNodeLocalCostEstimate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
double |
getCpuCost()
Returns CPU component of the cost.
|
double |
getMaxMemory()
Returns maximal memory usage of a query plan (or subplan).
|
double |
getMaxMemoryWhenOutputting()
Returns maximal memory usage of a query plan (or subplan) after a first output row was produced.
|
double |
getNetworkCost()
Returns network component of the cost.
|
LocalCostEstimate |
getRootNodeLocalCostEstimate()
Returns local cost estimate for the root plan node.
|
int |
hashCode() |
boolean |
hasUnknownComponents()
Returns true if this cost has unknown components.
|
static PlanCostEstimate |
infinite() |
String |
toString() |
static PlanCostEstimate |
unknown() |
static PlanCostEstimate |
zero() |
public PlanCostEstimate(double cpuCost,
double maxMemory,
double maxMemoryWhenOutputting,
double networkCost)
public PlanCostEstimate(double cpuCost,
double maxMemory,
double maxMemoryWhenOutputting,
double networkCost,
LocalCostEstimate rootNodeLocalCostEstimate)
public static PlanCostEstimate infinite()
public static PlanCostEstimate unknown()
public static PlanCostEstimate zero()
public double getCpuCost()
Unknown value is represented by Double.NaN
public double getMaxMemory()
Unknown value is represented by Double.NaN
public double getMaxMemoryWhenOutputting()
Unknown value is represented by Double.NaN.
public double getNetworkCost()
Unknown value is represented by Double.NaN
public LocalCostEstimate getRootNodeLocalCostEstimate()
public boolean hasUnknownComponents()
Copyright © 2012–2019. All rights reserved.