1 21 22 package org.apache.derby.iapi.sql.compile; 23 24 import org.apache.derby.iapi.error.StandardException; 25 26 30 public interface RowOrdering 31 { 32 static final int ASCENDING = 1; 33 static final int DESCENDING = 2; 34 static final int DONTCARE = 3; 35 36 63 boolean orderedOnColumn(int direction, 64 int orderPosition, 65 int tableNumber, 66 int columnNumber) 67 throws StandardException; 68 69 88 boolean orderedOnColumn(int direction, 89 int tableNumber, 90 int columnNumber) 91 throws StandardException; 92 93 104 void addOrderedColumn(int direction, 105 int tableNumber, 106 int columnNumber); 107 108 117 void nextOrderPosition(int direction); 118 119 128 void optimizableAlwaysOrdered(Optimizable optimizable); 129 130 139 void columnAlwaysOrdered(Optimizable optimizable, int columnNumber); 140 141 144 boolean alwaysOrdered(int tableNumber); 145 146 155 void removeOptimizable(int tableNumber); 156 157 173 void addUnorderedOptimizable(Optimizable optimizable); 174 175 178 void copy(RowOrdering copyTo); 179 } 180 | Popular Tags |