SortObserver
class UniqueIndexSortObserver extends BasicSortObserver
Modifier and Type | Field | Description |
---|---|---|
private UUID |
constraintId |
|
private boolean |
deferrable |
|
private boolean |
deferred |
|
private BackingStoreHashtable |
deferredDuplicates |
|
private java.lang.String |
indexOrConstraintName |
|
private LanguageConnectionContext |
lcc |
|
private java.lang.String |
tableName |
distinct, doClone
Constructor | Description |
---|---|
UniqueIndexSortObserver(LanguageConnectionContext lcc,
UUID constraintId,
boolean doClone,
boolean deferrable,
boolean deferred,
java.lang.String indexOrConstraintName,
ExecRow execRow,
boolean reuseWrappers,
java.lang.String tableName) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
deferrable() |
Overridden by subclasses that observe sorters with uniqueness checking.
|
boolean |
deferred() |
Overridden by subclasses that observe sorters with uniqueness checking.
|
DataValueDescriptor[] |
insertDuplicateKey(DataValueDescriptor[] in,
DataValueDescriptor[] dup) |
Called prior to inserting a duplicate sort
key.
|
void |
rememberDuplicate(DataValueDescriptor[] row) |
Overridden by subclasses that observe sorters with uniqueness checking.
|
addToFreeList, getArrayClone, insertNonDuplicateKey
private final boolean deferrable
private final boolean deferred
private final java.lang.String indexOrConstraintName
private final java.lang.String tableName
private final LanguageConnectionContext lcc
private final UUID constraintId
private BackingStoreHashtable deferredDuplicates
public UniqueIndexSortObserver(LanguageConnectionContext lcc, UUID constraintId, boolean doClone, boolean deferrable, boolean deferred, java.lang.String indexOrConstraintName, ExecRow execRow, boolean reuseWrappers, java.lang.String tableName)
public DataValueDescriptor[] insertDuplicateKey(DataValueDescriptor[] in, DataValueDescriptor[] dup) throws StandardException
BasicSortObserver
insertDuplicateKey
in interface SortObserver
insertDuplicateKey
in class BasicSortObserver
in
- the current row that the sorter
is on the verge of retaining. It is a duplicate
of existingRow.dup
- the row that is already in the
the sorter which is a duplicate of insertRowStandardException
- never thrownpublic boolean deferred()
SortObserver
deferred
in interface SortObserver
deferred
in class BasicSortObserver
public boolean deferrable()
SortObserver
deferrable
in interface SortObserver
deferrable
in class BasicSortObserver
public void rememberDuplicate(DataValueDescriptor[] row) throws StandardException
SortObserver
rememberDuplicate
in interface SortObserver
rememberDuplicate
in class BasicSortObserver
row
- data of offending keyStandardException
- standard error policyApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.