|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.relopt.RelOptRule com.lucidera.lcs.LcsIndexAggRule
public class LcsIndexAggRule
A rule for directly aggregating off of an unclustered index scan.
Field Summary | |
---|---|
static LcsIndexAggRule |
instanceNormalizer
|
static LcsIndexAggRule |
instanceRowScan
The singletons |
Fields inherited from class org.eigenbase.relopt.RelOptRule |
---|
ANY, description, operands |
Constructor Summary | |
---|---|
LcsIndexAggRule(RelOptRuleOperand operand,
String id)
Creates an LcsIndexAggRule. |
Method Summary | |
---|---|
CallingConvention |
getOutConvention()
Returns the calling convention of the result of firing this rule, null if not known. |
void |
onMatch(RelOptRuleCall call)
Receives notification about a rule match. |
private boolean |
projectionSatisfiesGroupBy(Integer[] proj,
int groupCount)
Determines whether a projection from an index scan can meet the group by requirements of an aggregate. |
Methods inherited from class org.eigenbase.relopt.RelOptRule |
---|
convert, equals, equals, getOperand, getOperands, getOutTrait, hashCode, matches, mergeTraitsAndConvert, mergeTraitsAndConvert, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final LcsIndexAggRule instanceRowScan
TODO: handle CalcRel after sort order has been cleaned up
public static final LcsIndexAggRule instanceNormalizer
Constructor Detail |
---|
public LcsIndexAggRule(RelOptRuleOperand operand, String id)
operand
- Root operand, must not be nullid
- Description of ruleMethod Detail |
---|
public CallingConvention getOutConvention()
RelOptRule
getOutConvention
in class RelOptRule
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.eigenbase.rel.RelNode)
to
register the expression.
onMatch
in class RelOptRule
call
- Rule callRelOptRule.matches(RelOptRuleCall)
private boolean projectionSatisfiesGroupBy(Integer[] proj, int groupCount)
proj
- the projection from an indexgroupCount
- the number of columns to be grouped. the columns are
assumed to be the prefix of input to the aggregate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |