Package org.apache.calcite.rel.metadata
Interface BuiltInMetadata.CumulativeCost
-
- All Superinterfaces:
Metadata
- Enclosing class:
- BuiltInMetadata
public static interface BuiltInMetadata.CumulativeCost extends Metadata
Metadata about the cost of evaluating a relational expression, including all of its inputs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BuiltInMetadata.CumulativeCost.Handler
Handler API.
-
Field Summary
Fields Modifier and Type Field Description static MetadataDef<BuiltInMetadata.CumulativeCost>
DEF
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RelOptCost
getCumulativeCost()
Estimates the cost of executing a relational expression, including the cost of its inputs.
-
-
-
Field Detail
-
DEF
static final MetadataDef<BuiltInMetadata.CumulativeCost> DEF
-
-
Method Detail
-
getCumulativeCost
RelOptCost getCumulativeCost()
Estimates the cost of executing a relational expression, including the cost of its inputs. The default implementation for this query addsBuiltInMetadata.NonCumulativeCost.getNonCumulativeCost()
to the cumulative cost of each input, but metadata providers can override this with their own cost models, e.g. to take into account interactions between expressions.- Returns:
- estimated cost, or null if no reliable estimate can be determined
-
-