Method Summary |
|
boolean | compareWithKnownConstant(Optimizable optTable, boolean considerParameters) |
boolean | equalsComparisonWithConstantExpression(Optimizable optTable) Is this predicate an equality comparison with a constant expression?
(IS NULL is considered to be an = comparison with a constant expression). |
DataValueDescriptor | getCompareValue(Optimizable optTable) Get an Object representing the known constant value that the given
Optimizable is being compared to. |
int | getIndexPosition() Get the position of the index column that this predicate restricts. |
JBitSet | getReferencedMap() Get the map of referenced tables for this OptimizablePredicate. |
int | hasEqualOnColumnList(int[] baseColumnPositions, Optimizable optTable) Returns if the predicate involves an equal operator on one of the
columns specified in the baseColumnPositions.
Parameters: baseColumnPositions - the column numbers on which the user wantsto check if the equality condition exists. Parameters: optTable - the table for which baseColumnPositions are given. |
boolean | hasMethodCall() Return whether or not an OptimizablePredicate contains a method call. |
boolean | hasSubquery() Return whether or not an OptimizablePredicate contains a subquery. |
boolean | isQualifier() |
boolean | isStartKey() |
boolean | isStopKey() |
void | markQualifier() Tell the predicate that it is to be used as a qualifier in an index
scan. |
void | markStartKey() Tell the predicate that it is to be used as a column in the start key
value for an index scan. |
void | markStopKey() Tell the predicate that it is to be used as a column in the stop key
value for an index scan. |
double | selectivity(Optimizable optTable) Get a (crude) estimate of the selectivity of this predicate. |