1 package com.daffodilwoods.daffodildb.server.sql99.dql.iterator.order; 2 3 import com.daffodilwoods.daffodildb.client.*; 4 import com.daffodilwoods.daffodildb.server.datasystem.interfaces.*; import com.daffodilwoods.daffodildb.server.datasystem.utility._Record; 6 import com.daffodilwoods.daffodildb.server.sql99.common.*; 7 import com.daffodilwoods.daffodildb.server.sql99.dql.execution.*; 8 import com.daffodilwoods.daffodildb.server.sql99.dql.iterator.*; 9 import com.daffodilwoods.daffodildb.server.sql99.utils.*; 10 import com.daffodilwoods.daffodildb.utils.comparator.*; 11 import com.daffodilwoods.daffodildb.utils.field.*; 12 import com.daffodilwoods.database.resource.*; 13 import com.daffodilwoods.database.sqlinitiator.*; 14 import com.daffodilwoods.database.utility.P; 15 16 17 public class TemporaryIndexWrapperIterator implements _Iterator, _IndexIteratorInfo, _TableOperations, _UserTableOperations { 18 19 private _Iterator actualIterator; 20 private _Iterator backupIterator; 21 private _Iterator underlyingIterator; 22 23 public TemporaryIndexWrapperIterator(_Iterator iterator, _Iterator underlyingIterator1) { 24 actualIterator = backupIterator = iterator; 25 underlyingIterator = underlyingIterator1; 26 } 27 28 public _OrderCount getOrderCounts() throws DException { 29 return actualIterator.getOrderCounts(); 30 } 31 32 public TableDetails[] getTableDetails() throws DException { 33 return actualIterator.getTableDetails(); 34 } 35 36 public _Iterator getBaseIterator(ColumnDetails column) throws DException { 37 return this; 38 } 39 40 public void setConditionVariableValue(_Reference[] references, Object [] values, int priority) throws DException { 41 actualIterator.setConditionVariableValue(references, values, priority); 42 } 43 44 public Object getColumnValues() throws DException { 45 return actualIterator.getColumnValues(); 46 } 47 48 public _KeyColumnInformation[] getKeyColumnInformations() throws DException { 49 return actualIterator.getKeyColumnInformations(); 50 } 51 52 public boolean seek(Object indexKey) throws DException { 53 return actualIterator.seek(indexKey); 54 } 55 56 public Object getColumnValues(_Reference[] reference) throws DException { 57 return actualIterator.getColumnValues(reference); 58 } 59 60 public Object getColumnValues(_Reference reference) throws DException { 61 return actualIterator.getColumnValues(reference); 62 } 63 64 public boolean seekFromTop(_IndexPredicate[] condition) throws DException { 65 return actualIterator.seekFromTop(condition); 66 } 67 68 public boolean seekFromTopRelative(Object indexKey) throws DException { 69 return actualIterator.seekFromTopRelative(indexKey); 70 } 71 72 public boolean seekFromBottom(_IndexPredicate[] condition) throws DException { 73 return actualIterator.seekFromBottom(condition); 74 } 75 76 public void setKeyCount(Object [][] tableAndKeyCount) throws DException { 77 actualIterator.setKeyCount(tableAndKeyCount); 78 } 79 80 public boolean seekFromBottomRelative(Object indexKey) throws DException { 81 return actualIterator.seekFromBottomRelative(indexKey); 82 } 83 84 public boolean first() throws DException { 85 return actualIterator.first(); 86 } 87 88 public boolean last() throws DException { 89 return actualIterator.last(); 90 } 91 92 public boolean next() throws DException { 93 return actualIterator.next(); 94 } 95 96 public boolean previous() throws DException { 97 return actualIterator.previous(); 98 } 99 100 public Object getKey() throws DException { 101 return actualIterator.getKey(); 102 } 103 104 public void move(Object key) throws DException { 105 actualIterator.move(key); 106 } 107 108 public Object getColumnValues(int[] columns) throws DException { 109 return actualIterator.getColumnValues(columns); 110 } 111 112 public _Record getRecord() throws DException { 113 return actualIterator.getRecord(); 114 } 115 116 public Object [] getUniqueColumnReference() throws DException { 117 return actualIterator.getUniqueColumnReference(); 118 } 119 120 public String toString() { 121 return actualIterator.toString(); 122 } 123 124 public void addReferences(_Reference[] parm1) throws com.daffodilwoods.database.resource.DException { 125 126 throw new java.lang.UnsupportedOperationException ("Method addReferences() not yet implemented."); 127 } 128 129 public Object [][] getReferenceAndValuePair() throws DException { 130 throw new java.lang.UnsupportedOperationException ("Method getReferences() not yet implemented."); 131 } 132 133 public _Order getDefaultOrder() throws DException { 134 return actualIterator.getDefaultOrder(); 135 } 136 137 public int getBtreeIndex() throws DException { 138 return ( (_IndexIteratorInfo) actualIterator).getBtreeIndex(); 139 } 140 141 public boolean locateKey(Object key, boolean top) throws DException { 142 return ( (_IndexIteratorInfo) actualIterator).locateKey(key, top); 143 } 144 145 public void insert(Object value) throws DException { 146 ( (_TableOperations) actualIterator).insert(value); 147 } 148 149 public void update(Object value) throws DException { 150 ( (_TableOperations) actualIterator).update(value); 151 } 152 153 public void update(int[] columns, Object [] value) throws DException { 154 ( (_TableOperations) actualIterator).update(columns, value); 155 } 156 157 public void delete() throws DException { 158 ( (_TableOperations) actualIterator).delete(); 159 } 160 161 public void insert(_DatabaseUser user, Object value) throws DException { 162 ( (_UserTableOperations) actualIterator).insert(user, value); 163 } 164 165 public void update(_DatabaseUser user, Object value) throws DException { 166 ( (_UserTableOperations) actualIterator).update(user, value); 167 } 168 169 public void update(_DatabaseUser user, int[] columns, Object [] value) throws DException { 170 ( (_UserTableOperations) actualIterator).update(user, columns, value); 171 } 172 173 public void delete(_DatabaseUser user) throws DException { 174 ( (_UserTableOperations) actualIterator).delete(user); 175 } 176 177 public void ensureRecordInMemory() throws com.daffodilwoods.database.resource.DException { 178 179 throw new java.lang.UnsupportedOperationException ("Method ensureRecordInMemory() not yet implemented."); 180 } 181 182 public void moveOnActualKey(Object parm1) throws com.daffodilwoods.database.resource.DException { 183 184 throw new java.lang.UnsupportedOperationException ("Method moveOnActualKey() not yet implemented."); 185 } 186 187 public Object getActualKey() throws com.daffodilwoods.database.resource.DException { 188 189 throw new java.lang.UnsupportedOperationException ("Method getActualKey() not yet implemented."); 190 } 191 public byte[] getByteKey() throws DException { 192 return actualIterator.getByteKey(); 193 } 194 195 public void moveByteKey(byte[] key) throws DException { 196 actualIterator.moveByteKey(key); 197 } 198 199 200 public _ExecutionPlan getExecutionPlan() throws DException { 201 _ExecutionPlan plan = actualIterator.getExecutionPlan(); 202 _ExecutionPlan cplans[] = new _ExecutionPlan[] {plan}; 203 return new ExecutionPlan("TemporaryIndexWrapperIterator", cplans, null, null, null); 204 } 205 206 public boolean seekKeyAddress(Object parm1) throws com.daffodilwoods.database.resource.DException { 207 208 throw new java.lang.UnsupportedOperationException ("Method seekKeyAddress() not yet implemented."); 209 } 210 211 public Object getPhysicalAddress() throws com.daffodilwoods.database.resource.DException { 212 213 throw new java.lang.UnsupportedOperationException ("Method getPhysicalAddress() not yet implemented."); 214 } 215 216 public Object [][] getFunctionalColumnMapping() throws DException { 217 return actualIterator.getFunctionalColumnMapping(); 218 } 219 220 public ExecutionPlanForBrowser getExecutionPlanForBrowser() throws DException { 221 return actualIterator.getExecutionPlanForBrowser(); 222 } 223 224 public _Iterator getBaseIteratorHasRecord(ColumnDetails parm1) throws com.daffodilwoods.database.resource.DException { 225 226 throw new java.lang.UnsupportedOperationException ("Method getBaseIterator() not yet implemented."); 227 } 228 229 public SuperComparator getComparator() { 230 231 throw new java.lang.UnsupportedOperationException ("Method getComparator() not yet implemented."); 232 } 233 234 public SuperComparator getObjectComparator() throws DException { 235 236 throw new java.lang.UnsupportedOperationException ("Method getObjectComparator() not yet implemented."); 237 } 238 239 public FieldBase field(_Reference reference) throws com.daffodilwoods.database.resource.DException { 240 return actualIterator.field(reference); 241 } 242 243 public FieldBase[] fields(_Reference[] references) throws com.daffodilwoods.database.resource.DException { 244 return actualIterator.fields(references); 245 } 246 247 public FieldBase[] fields(int[] columns) throws com.daffodilwoods.database.resource.DException { 248 throw new java.lang.UnsupportedOperationException ("Method fields() not yet implemented."); 249 } 250 251 public void releaseResource() throws DException { 252 actualIterator.releaseResource(); 253 } 254 public _Iterator getUnderlyingIterator() throws DException{ 255 return ((TemporaryIndexIterator)underlyingIterator).getUnderlyingIterator(); 256 } 257 258 public void setSpecificUnderlyingReferences(_Reference[] specificUnderlyingReferences) throws DException{ 259 throw new java.lang.UnsupportedOperationException ("Method setSpecificUnderlyingReferences(_Reference[]) not yet implemented."); 260 } 261 public void deleteBlobClobRecord(_DatabaseUser user) throws DException { 262 ( (_TableOperations) actualIterator).deleteBlobClobRecord(user) ; 263 } 264 265 } 266 | Popular Tags |