public class DruidLogicalValuesRule
extends org.apache.calcite.plan.RelOptRule
RelOptRule that converts LogicalValues into InlineDataSource.
This rule is used when the query directly reads in-memory tuples. For example, given a query of
`SELECT 1 + 1`, the query planner will create LogicalValues that contains one tuple,
which in turn containing one column of value 2.
The query planner can sometimes reduce a regular query to a query that reads in-memory tuples.
For example, `SELECT count(*) FROM foo WHERE 1 = 0` is reduced to `SELECT 0`. This rule will
be used for this case as well.| Constructor and Description |
|---|
DruidLogicalValuesRule(PlannerContext plannerContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
onMatch(org.apache.calcite.plan.RelOptRuleCall call) |
any, convert, convert, convertList, convertOperand, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, matches, none, operand, operand, operand, operand, operand, operandJ, operandJ, some, toString, unorderedpublic DruidLogicalValuesRule(PlannerContext plannerContext)
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.