1 21 22 package org.apache.derby.iapi.sql.compile; 23 24 import org.apache.derby.iapi.error.StandardException; 25 26 import org.apache.derby.iapi.types.DataValueDescriptor; 27 28 import org.apache.derby.iapi.util.JBitSet; 29 30 33 34 public interface OptimizablePredicate 35 { 36 41 JBitSet getReferencedMap(); 42 43 48 boolean hasSubquery(); 49 50 55 boolean hasMethodCall(); 56 57 61 void markStartKey(); 62 63 64 boolean isStartKey(); 65 66 70 void markStopKey(); 71 72 73 boolean isStopKey(); 74 75 79 void markQualifier(); 80 81 82 boolean isQualifier(); 83 84 92 boolean compareWithKnownConstant(Optimizable optTable, boolean considerParameters); 93 94 100 DataValueDescriptor getCompareValue(Optimizable optTable) 101 throws StandardException; 102 103 110 boolean equalsComparisonWithConstantExpression(Optimizable optTable); 111 112 113 124 int hasEqualOnColumnList(int[] baseColumnPositions, 125 Optimizable optTable) 126 throws StandardException; 127 128 137 double selectivity(Optimizable optTable) 138 throws StandardException; 139 140 148 int getIndexPosition(); 149 } 150 | Popular Tags |