public class AggregateJoinTransposeRule extends RelOptRule
| Modifier and Type | Class and Description |
|---|---|
private static class |
AggregateJoinTransposeRule.Side
Work space for an input to a join.
|
| Modifier and Type | Field and Description |
|---|---|
private boolean |
allowFunctions |
static AggregateJoinTransposeRule |
EXTENDED
Extended instance of the rule that can push down aggregate functions.
|
static AggregateJoinTransposeRule |
INSTANCE |
description, operands, relBuilderFactory| Constructor and Description |
|---|
AggregateJoinTransposeRule(Class<? extends Aggregate> aggregateClass,
Class<? extends Join> joinClass,
RelBuilderFactory relBuilderFactory,
boolean allowFunctions)
Creates an AggregateJoinTransposeRule.
|
AggregateJoinTransposeRule(Class<? extends Aggregate> aggregateClass,
RelFactories.AggregateFactory aggregateFactory,
Class<? extends Join> joinClass,
RelFactories.JoinFactory joinFactory)
Deprecated.
|
AggregateJoinTransposeRule(Class<? extends Aggregate> aggregateClass,
RelFactories.AggregateFactory aggregateFactory,
Class<? extends Join> joinClass,
RelFactories.JoinFactory joinFactory,
boolean allowFunctions)
Deprecated.
|
AggregateJoinTransposeRule(Class<? extends Aggregate> aggregateClass,
RelFactories.AggregateFactory aggregateFactory,
Class<? extends Join> joinClass,
RelFactories.JoinFactory joinFactory,
RelFactories.ProjectFactory projectFactory)
Deprecated.
|
AggregateJoinTransposeRule(Class<? extends Aggregate> aggregateClass,
RelFactories.AggregateFactory aggregateFactory,
Class<? extends Join> joinClass,
RelFactories.JoinFactory joinFactory,
RelFactories.ProjectFactory projectFactory,
boolean allowFunctions)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
private static ImmutableBitSet |
keyColumns(ImmutableBitSet aggregateColumns,
com.google.common.collect.ImmutableList<RexNode> predicates)
Computes the closure of a set of columns according to a given list of
constraints.
|
void |
onMatch(RelOptRuleCall call)
Receives notification about a rule match.
|
private static void |
populateEquivalence(Map<Integer,BitSet> equivalence,
int i0,
int i1) |
private static void |
populateEquivalences(Map<Integer,BitSet> equivalence,
RexNode predicate) |
private static <E> SqlSplittableAggFunction.Registry<E> |
registry(List<E> list)
Creates a
SqlSplittableAggFunction.Registry
that is a view of a list. |
any, convert, convert, convertList, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, matches, none, operand, operand, operand, operand, operand, some, toString, unorderedpublic static final AggregateJoinTransposeRule INSTANCE
public static final AggregateJoinTransposeRule EXTENDED
private final boolean allowFunctions
public AggregateJoinTransposeRule(Class<? extends Aggregate> aggregateClass, Class<? extends Join> joinClass, RelBuilderFactory relBuilderFactory, boolean allowFunctions)
@Deprecated public AggregateJoinTransposeRule(Class<? extends Aggregate> aggregateClass, RelFactories.AggregateFactory aggregateFactory, Class<? extends Join> joinClass, RelFactories.JoinFactory joinFactory)
@Deprecated public AggregateJoinTransposeRule(Class<? extends Aggregate> aggregateClass, RelFactories.AggregateFactory aggregateFactory, Class<? extends Join> joinClass, RelFactories.JoinFactory joinFactory, boolean allowFunctions)
@Deprecated public AggregateJoinTransposeRule(Class<? extends Aggregate> aggregateClass, RelFactories.AggregateFactory aggregateFactory, Class<? extends Join> joinClass, RelFactories.JoinFactory joinFactory, RelFactories.ProjectFactory projectFactory)
@Deprecated public AggregateJoinTransposeRule(Class<? extends Aggregate> aggregateClass, RelFactories.AggregateFactory aggregateFactory, Class<? extends Join> joinClass, RelFactories.JoinFactory joinFactory, RelFactories.ProjectFactory projectFactory, boolean allowFunctions)
public void onMatch(RelOptRuleCall call)
RelOptRulecall.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 RelOptRulecall - Rule callRelOptRule.matches(RelOptRuleCall)private static ImmutableBitSet keyColumns(ImmutableBitSet aggregateColumns, com.google.common.collect.ImmutableList<RexNode> predicates)
private static void populateEquivalences(Map<Integer,BitSet> equivalence, RexNode predicate)
private static void populateEquivalence(Map<Integer,BitSet> equivalence, int i0, int i1)
private static <E> SqlSplittableAggFunction.Registry<E> registry(List<E> list)
SqlSplittableAggFunction.Registry
that is a view of a list.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.