|
|||||||||
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.LcsIndexOnlyAccessRule
public class LcsIndexOnlyAccessRule
A rule for converting an LcsRowScanRel(LcsIndexSearchRel) to an LcsIndexOnlyScanRel. The conversion can be applied if an index scan can satisfy the columns of a row scan.
Field Summary | |
---|---|
static LcsIndexOnlyAccessRule |
instanceMerge
|
static LcsIndexOnlyAccessRule |
instanceSearch
The singletons |
Fields inherited from class org.eigenbase.relopt.RelOptRule |
---|
ANY, description, operands |
Constructor Summary | |
---|---|
LcsIndexOnlyAccessRule(RelOptRuleOperand operand,
String id)
Creates an LcsIndexOnlyAccessRule. |
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 |
samePrefix(FemLocalIndex a,
FemLocalIndex b,
int nKeys)
Determines whether two indexes have the same prefix, up to a specified number of keys |
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 LcsIndexOnlyAccessRule instanceSearch
public static final LcsIndexOnlyAccessRule instanceMerge
Constructor Detail |
---|
public LcsIndexOnlyAccessRule(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 samePrefix(FemLocalIndex a, FemLocalIndex b, int nKeys)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |