org.eigenbase.rel.rules
Class SwapJoinRule.VariableReplacer
java.lang.Object
org.eigenbase.rel.rules.SwapJoinRule.VariableReplacer
- Enclosing class:
- SwapJoinRule
private static class SwapJoinRule.VariableReplacer
- extends Object
Walks over an expression, replacing references to fields of the left and
right inputs.
If the field index is less than leftFieldCount, it must be from the
left, and so has rightFieldCount added to it; if the field index is
greater than leftFieldCount, it must be from the right, so we subtract
leftFieldCount from it.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rexBuilder
private final RexBuilder rexBuilder
leftFields
private final RelDataTypeField[] leftFields
rightFields
private final RelDataTypeField[] rightFields
SwapJoinRule.VariableReplacer
SwapJoinRule.VariableReplacer(RexBuilder rexBuilder,
RelDataType leftType,
RelDataType rightType)
go
public RexNode go(RexNode rex)