| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected boolean | |
| private ExecRow | |
| private boolean | |
| private Vector |
| Access | Constructor and Description |
|---|---|
| public | BasicSortObserver(boolean
If true, then rows that are retained
by the sorter will be cloned. This is needed
if language is reusing row wrappers. doClone, boolean If true, toss out duplicates.
Otherwise, retain them. distinct, ExecRow ExecRow to use as source of clone for store. execRow, boolean Whether or not we can reuse the wrappers reuseWrappers)Simple constructor |
| Modifier and Type | Method and Description |
|---|---|
| public void | addToFreeList(DataValueDescriptor[] objectArray, int maxFreeListSize)
Implements org.
|
| public boolean | deferrable()
Implements org. Overridden by subclasses that observe sorters with uniqueness checking. |
| public boolean | deferred()
Implements org. Overridden by subclasses that observe sorters with uniqueness checking. |
| public DataValueDescriptor[] | |
| private DataValueDescriptor[] | |
| public DataValueDescriptor[] | insertDuplicateKey(DataValueDescriptor[]
the current row that the sorter
is on the verge of retaining. It is a duplicate
of existingRow. insertRow, DataValueDescriptor[] the row that is already in the
the sorter which is a duplicate of insertRow existingRow)Implements org. Called prior to inserting a duplicate sort key. |
| public DataValueDescriptor[] | Returns: the row to be inserted by the sorter. If null, then nothing is inserted by the sorter. Distinct sorts will want to return null.the current row that the sorter
is on the verge of retaining insertRow)Implements org. Called prior to inserting a distinct sort key. |
| public void | rememberDuplicate(DataValueDescriptor[]
data of offending key row)Implements org. Overridden by subclasses that observe sorters with uniqueness checking. |
| distinct | back to summary |
|---|---|
| protected boolean distinct | |
| doClone | back to summary |
|---|---|
| protected boolean doClone | |
| execRow | back to summary |
|---|---|
| private ExecRow execRow | |
| reuseWrappers | back to summary |
|---|---|
| private boolean reuseWrappers | |
| vector | back to summary |
|---|---|
| private Vector<DataValueDescriptor[]> vector | |
| BasicSortObserver | back to summary |
|---|---|
| public BasicSortObserver(boolean doClone, boolean distinct, ExecRow execRow, boolean reuseWrappers) Simple constructor
| |
| addToFreeList | back to summary |
|---|---|
| public void addToFreeList(DataValueDescriptor[] objectArray, int maxFreeListSize) Implements org. | |
| deferrable | back to summary |
|---|---|
| public boolean deferrable() Implements org. Doc from org. Overridden by subclasses that observe sorters with uniqueness checking.
| |
| deferred | back to summary |
|---|---|
| public boolean deferred() Implements org. Doc from org. Overridden by subclasses that observe sorters with uniqueness checking.
| |
| getArrayClone | back to summary |
|---|---|
| public DataValueDescriptor[] getArrayClone() throws StandardException Implements org. | |
| getClone | back to summary |
|---|---|
| private DataValueDescriptor[] getClone(DataValueDescriptor[] origArray) | |
| insertDuplicateKey | back to summary |
|---|---|
| public DataValueDescriptor[] insertDuplicateKey(DataValueDescriptor[] insertRow, DataValueDescriptor[] existingRow) throws StandardException Implements org. Called prior to inserting a duplicate sort key.
| |
| insertNonDuplicateKey | back to summary |
|---|---|
| public DataValueDescriptor[] insertNonDuplicateKey(DataValueDescriptor[] insertRow) throws StandardException Implements org. Called prior to inserting a distinct sort key.
| |
| rememberDuplicate | back to summary |
|---|---|
| public void rememberDuplicate(DataValueDescriptor[] row) throws StandardException Implements org. Doc from org. Overridden by subclasses that observe sorters with uniqueness checking. Will be called by sorters iff deferrable() and deferred() and uniqueness violation, so implementations that sometimes return true to these must implement this method to save duplicate information till commit time.
| |