Class PredicateList.PredicateWrapper
- java.lang.Object
-
- org.apache.derby.impl.sql.compile.PredicateList.PredicateWrapper
-
- Enclosing class:
- PredicateList
private static class PredicateList.PredicateWrapper extends java.lang.Object
Inner class which helps statistics routines do their work. We need to keep track of the index position for each predicate for each index while we're manipulating predicates and statistics. Each predicate does have internal state for indexPosition, but this is a more permanent sort of indexPosition, which keeps track of the position for the index being considered in estimateCost. For us, each predicate can have different index positions for different indices.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
indexPosition
(package private) Predicate
pred
(package private) int
predicateID
-
Constructor Summary
Constructors Constructor Description PredicateWrapper(int ip, Predicate p, int predicateID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
before(PredicateList.PredicateWrapper other)
(package private) boolean
contiguous(PredicateList.PredicateWrapper other)
(package private) int
getIndexPosition()
(package private) Predicate
getPredicate()
(package private) int
getPredicateID()
-
-
-
Field Detail
-
indexPosition
int indexPosition
-
pred
Predicate pred
-
predicateID
int predicateID
-
-
Constructor Detail
-
PredicateWrapper
PredicateWrapper(int ip, Predicate p, int predicateID)
-
-
Method Detail
-
getIndexPosition
int getIndexPosition()
-
getPredicate
Predicate getPredicate()
-
getPredicateID
int getPredicateID()
-
before
boolean before(PredicateList.PredicateWrapper other)
-
contiguous
boolean contiguous(PredicateList.PredicateWrapper other)
-
-