| Package | Description |
|---|---|
| org.apache.calcite.adapter.elasticsearch |
Base classes for a query provider based on an Elasticsearch DB.
|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
| org.apache.calcite.interpreter |
Provides an implementation of relational expressions using an interpreter.
|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.plan.hep |
Provides a heuristic planner implementation for the interfaces in
org.apache.calcite.plan. |
| org.apache.calcite.plan.volcano |
Optimizes relational expressions.
|
| org.apache.calcite.rel |
Defines relational expressions.
|
| org.apache.calcite.rel.convert |
Defines relational expressions and rules for converting between calling
conventions.
|
| org.apache.calcite.rel.core |
Defines core relational expressions.
|
| org.apache.calcite.rel.logical |
Defines logical relational expressions.
|
| org.apache.calcite.rel.metadata |
Defines metadata interfaces and utilities for relational
expressions.
|
| org.apache.calcite.schema.impl |
Utilities to help implement Calcite's SPIs.
|
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
ElasticsearchFilter.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
ElasticsearchSort.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
ElasticsearchProject.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
ElasticsearchToEnumerableConverter.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
ElasticsearchTableScan.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
EnumerableSemiJoin.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
EnumerableInterpreter.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
EnumerableJoin.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
EnumerableThetaJoin.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
EnumerableMergeJoin.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
EnumerableWindow.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
JdbcToEnumerableConverter.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
JdbcRules.JdbcJoin.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
JdbcRules.JdbcCalc.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
JdbcRules.JdbcProject.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
JdbcRules.JdbcUnion.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
JdbcRules.JdbcTableModify.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
Bindables.BindableTableScan.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
Bindables.BindableWindow.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
| Modifier and Type | Class and Description |
|---|---|
class |
RelOptCostImpl
RelOptCostImpl provides a default implementation for the
RelOptCost
interface. |
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
RelOptPlanner.getCost(RelNode rel)
Deprecated.
Use
RelOptPlanner.getCost(RelNode, RelMetadataQuery)
or, better, call RelMetadataQuery.getCumulativeCost(RelNode). |
RelOptCost |
AbstractRelOptPlanner.getCost(RelNode rel) |
RelOptCost |
RelOptPlanner.getCost(RelNode rel,
RelMetadataQuery mq)
Computes the cost of a RelNode.
|
RelOptCost |
AbstractRelOptPlanner.getCost(RelNode rel,
RelMetadataQuery mq) |
RelOptCost |
RelOptCostImpl.Factory.makeCost(double dRows,
double dCpu,
double dIo) |
RelOptCost |
RelOptCostFactory.makeCost(double rowCount,
double cpu,
double io)
Creates a cost object.
|
RelOptCost |
RelOptCostImpl.Factory.makeHugeCost() |
RelOptCost |
RelOptCostFactory.makeHugeCost()
Creates a cost object representing an enormous non-infinite cost.
|
RelOptCost |
RelOptCostImpl.Factory.makeInfiniteCost() |
RelOptCost |
RelOptCostFactory.makeInfiniteCost()
Creates a cost object representing infinite cost.
|
RelOptCost |
RelOptCostImpl.Factory.makeTinyCost() |
RelOptCost |
RelOptCostFactory.makeTinyCost()
Creates a cost object representing a small positive cost.
|
RelOptCost |
RelOptCostImpl.Factory.makeZeroCost() |
RelOptCost |
RelOptCostFactory.makeZeroCost()
Creates a cost object representing zero cost.
|
RelOptCost |
RelOptCost.minus(RelOptCost cost)
Subtracts another cost from this.
|
RelOptCost |
RelOptCostImpl.minus(RelOptCost other) |
RelOptCost |
RelOptCost.multiplyBy(double factor)
Multiplies this cost by a scalar factor.
|
RelOptCost |
RelOptCostImpl.multiplyBy(double factor) |
RelOptCost |
RelOptCost.plus(RelOptCost cost)
Adds another cost to this.
|
RelOptCost |
RelOptCostImpl.plus(RelOptCost other) |
| Modifier and Type | Method and Description |
|---|---|
double |
RelOptCost.divideBy(RelOptCost cost)
Computes the ratio between this cost and another cost.
|
double |
RelOptCostImpl.divideBy(RelOptCost cost) |
boolean |
RelOptCost.equals(RelOptCost cost)
Compares this to another cost.
|
boolean |
RelOptCostImpl.equals(RelOptCost other) |
boolean |
RelOptCost.isEqWithEpsilon(RelOptCost cost)
Compares this to another cost, allowing for slight roundoff errors.
|
boolean |
RelOptCostImpl.isEqWithEpsilon(RelOptCost other) |
boolean |
RelOptCost.isLe(RelOptCost cost)
Compares this to another cost.
|
boolean |
RelOptCostImpl.isLe(RelOptCost other) |
boolean |
RelOptCost.isLt(RelOptCost cost)
Compares this to another cost.
|
boolean |
RelOptCostImpl.isLt(RelOptCost other) |
RelOptCost |
RelOptCost.minus(RelOptCost cost)
Subtracts another cost from this.
|
RelOptCost |
RelOptCostImpl.minus(RelOptCost other) |
RelOptCost |
RelOptCost.plus(RelOptCost cost)
Adds another cost to this.
|
RelOptCost |
RelOptCostImpl.plus(RelOptCost other) |
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
HepRelVertex.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
VolcanoCost
VolcanoCost represents the cost of a plan node. |
| Modifier and Type | Field and Description |
|---|---|
(package private) RelOptCost |
RelSubset.bestCost
cost of best known plan (it may have improved since)
|
private RelOptCost |
VolcanoPlanner.zeroCost
Zero cost, according to
AbstractRelOptPlanner.costFactory. |
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
RelSubset.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
AbstractConverter.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
VolcanoPlanner.getCost(RelNode rel,
RelMetadataQuery mq) |
RelOptCost |
VolcanoCost.Factory.makeCost(double dRows,
double dCpu,
double dIo) |
RelOptCost |
VolcanoCost.Factory.makeHugeCost() |
RelOptCost |
VolcanoCost.Factory.makeInfiniteCost() |
RelOptCost |
VolcanoCost.Factory.makeTinyCost() |
RelOptCost |
VolcanoCost.Factory.makeZeroCost() |
RelOptCost |
VolcanoCost.minus(RelOptCost other) |
RelOptCost |
VolcanoCost.multiplyBy(double factor) |
RelOptCost |
VolcanoCost.plus(RelOptCost other) |
| Modifier and Type | Method and Description |
|---|---|
double |
VolcanoCost.divideBy(RelOptCost cost) |
boolean |
VolcanoCost.equals(RelOptCost other) |
boolean |
VolcanoCost.isEqWithEpsilon(RelOptCost other) |
boolean |
VolcanoCost.isLe(RelOptCost other) |
boolean |
VolcanoCost.isLt(RelOptCost other) |
RelOptCost |
VolcanoCost.minus(RelOptCost other) |
RelOptCost |
VolcanoCost.plus(RelOptCost other) |
private double |
RuleQueue.toDouble(RelOptCost cost)
Converts a cost to a scalar quantity.
|
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
AbstractRelNode.computeSelfCost(RelOptPlanner planner) |
RelOptCost |
RelNode.computeSelfCost(RelOptPlanner planner)
Deprecated.
Call
RelMetadataQuery.getNonCumulativeCost(RelNode);
if you wish to override the default cost formula, override the
RelNode.computeSelfCost(RelOptPlanner, RelMetadataQuery) method. |
RelOptCost |
AbstractRelNode.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
RelOptCost |
RelNode.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq)
Returns the cost of this plan (not including children).
|
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
ConverterImpl.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
LogicalTableFunctionScan.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
BuiltInMetadata.CumulativeCost.getCumulativeCost()
Estimates the cost of executing a relational expression, including the
cost of its inputs.
|
RelOptCost |
RelMdPercentageOriginalRows.getCumulativeCost(EnumerableInterpreter rel,
RelMetadataQuery mq) |
RelOptCost |
RelMetadataQuery.getCumulativeCost(RelNode rel)
Returns the
BuiltInMetadata.CumulativeCost.getCumulativeCost()
statistic. |
RelOptCost |
RelMdPercentageOriginalRows.getCumulativeCost(RelNode rel,
RelMetadataQuery mq) |
RelOptCost |
BuiltInMetadata.CumulativeCost.Handler.getCumulativeCost(RelNode r,
RelMetadataQuery mq) |
RelOptCost |
BuiltInMetadata.NonCumulativeCost.getNonCumulativeCost()
Estimates the cost of executing a relational expression, not counting the
cost of its inputs.
|
RelOptCost |
RelMetadataQuery.getNonCumulativeCost(RelNode rel)
Returns the
BuiltInMetadata.NonCumulativeCost.getNonCumulativeCost()
statistic. |
RelOptCost |
RelMdPercentageOriginalRows.getNonCumulativeCost(RelNode rel,
RelMetadataQuery mq) |
RelOptCost |
BuiltInMetadata.NonCumulativeCost.Handler.getNonCumulativeCost(RelNode r,
RelMetadataQuery mq) |
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
StarTable.StarTableScan.computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.