Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.sql.execute
Class BasicSortObserver  view BasicSortObserver download BasicSortObserver.java

java.lang.Object
  extended byorg.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.


Field Summary
protected  boolean distinct
           
protected  boolean doClone
           
private  org.apache.derby.iapi.sql.execute.ExecRow execRow
           
private  boolean reuseWrappers
           
private  java.util.Vector vector
           
 
Constructor Summary
BasicSortObserver(boolean doClone, boolean distinct, org.apache.derby.iapi.sql.execute.ExecRow execRow, boolean reuseWrappers)
          Simple constructor
 
Method Summary
 void addToFreeList(org.apache.derby.iapi.types.DataValueDescriptor[] objectArray, int maxFreeListSize)
           
 org.apache.derby.iapi.types.DataValueDescriptor[] getArrayClone()
           
private  org.apache.derby.iapi.types.DataValueDescriptor[] getClone(org.apache.derby.iapi.types.DataValueDescriptor[] origArray)
           
 org.apache.derby.iapi.types.DataValueDescriptor[] insertDuplicateKey(org.apache.derby.iapi.types.DataValueDescriptor[] insertRow, org.apache.derby.iapi.types.DataValueDescriptor[] existingRow)
          Called prior to inserting a duplicate sort key.
 org.apache.derby.iapi.types.DataValueDescriptor[] insertNonDuplicateKey(org.apache.derby.iapi.types.DataValueDescriptor[] insertRow)
          Called prior to inserting a distinct sort key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

BasicSortObserver

public BasicSortObserver(boolean doClone,
                         boolean distinct,
                         org.apache.derby.iapi.sql.execute.ExecRow execRow,
                         boolean reuseWrappers)
Simple constructor

Method Detail

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)