java.lang.Object
org.apache.derby.impl.sql.execute.BasicSortObserver
- All Implemented Interfaces:
- org.apache.derby.iapi.store.access.SortObserver
- Direct Known Subclasses:
- AggregateSortObserver, UniqueIndexSortObserver
- public class BasicSortObserver
- extends java.lang.Object
- implements org.apache.derby.iapi.store.access.SortObserver
This is the most basic sort observer. It
handles distinct sorts and non-distinct sorts.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
doClone
protected boolean doClone
distinct
protected boolean distinct
reuseWrappers
private boolean reuseWrappers
execRow
private org.apache.derby.iapi.sql.execute.ExecRow execRow
vector
private java.util.Vector vector
BasicSortObserver
public BasicSortObserver(boolean doClone,
boolean distinct,
org.apache.derby.iapi.sql.execute.ExecRow execRow,
boolean reuseWrappers)
- Simple constructor
insertNonDuplicateKey
public org.apache.derby.iapi.types.DataValueDescriptor[] insertNonDuplicateKey(org.apache.derby.iapi.types.DataValueDescriptor[] insertRow)
throws org.apache.derby.iapi.error.StandardException
- Called prior to inserting a distinct sort
key.
- Specified by:
insertNonDuplicateKey in interface org.apache.derby.iapi.store.access.SortObserver
insertDuplicateKey
public org.apache.derby.iapi.types.DataValueDescriptor[] insertDuplicateKey(org.apache.derby.iapi.types.DataValueDescriptor[] insertRow,
org.apache.derby.iapi.types.DataValueDescriptor[] existingRow)
throws org.apache.derby.iapi.error.StandardException
- Called prior to inserting a duplicate sort
key.
- Specified by:
insertDuplicateKey in interface org.apache.derby.iapi.store.access.SortObserver
addToFreeList
public void addToFreeList(org.apache.derby.iapi.types.DataValueDescriptor[] objectArray,
int maxFreeListSize)
- Specified by:
addToFreeList in interface org.apache.derby.iapi.store.access.SortObserver
getArrayClone
public org.apache.derby.iapi.types.DataValueDescriptor[] getArrayClone()
throws org.apache.derby.iapi.error.StandardException
- Specified by:
getArrayClone in interface org.apache.derby.iapi.store.access.SortObserver
getClone
private org.apache.derby.iapi.types.DataValueDescriptor[] getClone(org.apache.derby.iapi.types.DataValueDescriptor[] origArray)