public abstract class ValuesReduceRule extends RelOptRule
LogicalValues.
Returns a simplified Values, perhaps containing zero tuples
if all rows are filtered away.
For example,
select a - b from (values (1, 2), (3, 5), (7, 11)) as t (a,
b) where a + b > 4
becomes
select x from (values (-2), (-4))| Modifier and Type | Field and Description |
|---|---|
static ValuesReduceRule |
FILTER_INSTANCE
Instance of this rule that applies to the pattern
Filter(Values).
|
static ValuesReduceRule |
PROJECT_FILTER_INSTANCE
Singleton instance of this rule that applies to the pattern
Project(Filter(Values)).
|
static ValuesReduceRule |
PROJECT_INSTANCE
Instance of this rule that applies to the pattern
Project(Values).
|
description, operands| Modifier and Type | Method and Description |
|---|---|
protected void |
apply(RelOptRuleCall call,
LogicalProject project,
LogicalFilter filter,
LogicalValues values)
Does the work.
|
any, convert, convert, convertList, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, matches, none, onMatch, operand, operand, operand, operand, operand, some, toString, unorderedpublic static final ValuesReduceRule FILTER_INSTANCE
public static final ValuesReduceRule PROJECT_INSTANCE
public static final ValuesReduceRule PROJECT_FILTER_INSTANCE
protected void apply(RelOptRuleCall call, LogicalProject project, LogicalFilter filter, LogicalValues values)
call - Rule callproject - Project, may be nullfilter - Filter, may be nullvalues - Values rel to be reducedCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.