public class SemiJoinJoinTransposeRule extends RelOptRule
SemiJoin
down in a tree past a Join
in order to trigger other rules that will convert SemiJoin
s.
Whether this first or second conversion is applied depends on which operands actually participate in the semi-join.
Modifier and Type | Field and Description |
---|---|
static SemiJoinJoinTransposeRule |
INSTANCE |
description, operands, relBuilderFactory
Constructor and Description |
---|
SemiJoinJoinTransposeRule(RelBuilderFactory relBuilderFactory)
Creates a SemiJoinJoinTransposeRule.
|
Modifier and Type | Method and Description |
---|---|
void |
onMatch(RelOptRuleCall call)
Receives notification about a rule match.
|
private void |
setJoinAdjustments(int[] adjustments,
int nFieldsX,
int nFieldsY,
int nFieldsZ,
int adjustY,
int adjustZ)
Sets an array to reflect how much each index corresponding to a field
needs to be adjusted.
|
any, convert, convert, convertList, convertOperand, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, matches, none, operand, operand, operand, operand, operand, operandJ, operandJ, some, toString, unordered
public static final SemiJoinJoinTransposeRule INSTANCE
public SemiJoinJoinTransposeRule(RelBuilderFactory relBuilderFactory)
public void onMatch(RelOptRuleCall call)
RelOptRule
call.rels
holds the set of relational
expressions which match the operands to the rule;
call.rels[0]
is the root expression.
Typically a rule would check that the nodes are valid matches, creates
a new expression, then calls back RelOptRuleCall.transformTo(org.apache.calcite.rel.RelNode, java.util.Map<org.apache.calcite.rel.RelNode, org.apache.calcite.rel.RelNode>)
to
register the expression.
onMatch
in class RelOptRule
call
- Rule callRelOptRule.matches(RelOptRuleCall)
private void setJoinAdjustments(int[] adjustments, int nFieldsX, int nFieldsY, int nFieldsZ, int adjustY, int adjustZ)
adjustments
- array to be filled outnFieldsX
- number of fields in XnFieldsY
- number of fields in YnFieldsZ
- number of fields in ZadjustY
- the amount to adjust Y byadjustZ
- the amount to adjust Z byCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.