Class UniqueWithDuplicateNullsExternalSortFactory
- java.lang.Object
-
- org.apache.derby.impl.store.access.sort.ExternalSortFactory
-
- org.apache.derby.impl.store.access.sort.UniqueWithDuplicateNullsExternalSortFactory
-
- All Implemented Interfaces:
ModuleControl
,ModuleSupportable
,MethodFactory
,SortFactory
,SortCostController
public class UniqueWithDuplicateNullsExternalSortFactory extends ExternalSortFactory
Method factory to support sorting of Almost unique index. This class overrides getMergeSort of ExternalSortFactory to return UniqueWithDuplicateNullsMergeSort.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
IMPLEMENTATIONID
-
Fields inherited from class org.apache.derby.impl.store.access.sort.ExternalSortFactory
DEFAULT_MAX_MERGE_RUN, DEFAULT_MEM_USE
-
Fields inherited from interface org.apache.derby.iapi.store.access.conglomerate.SortFactory
MODULE
-
-
Constructor Summary
Constructors Constructor Description UniqueWithDuplicateNullsExternalSortFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MergeSort
getMergeSort()
Returns merge sort implementation.java.lang.String
primaryImplementationType()
Return the primary implementation type for this access method.boolean
supportsImplementation(java.lang.String implementationId)
Return whether this access method implements the implementation type given in the argument string.-
Methods inherited from class org.apache.derby.impl.store.access.sort.ExternalSortFactory
boot, canSupport, close, createSort, defaultProperties, getSortCost, openSortCostController, primaryFormat, stop, supportsFormat
-
-
-
-
Field Detail
-
IMPLEMENTATIONID
private static final java.lang.String IMPLEMENTATIONID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMergeSort
protected MergeSort getMergeSort()
Description copied from class:ExternalSortFactory
Returns merge sort implementation. Extending classes can overide this method to customize sorting.- Overrides:
getMergeSort
in classExternalSortFactory
- Returns:
- MergeSort implementation
-
primaryImplementationType
public java.lang.String primaryImplementationType()
Description copied from interface:MethodFactory
Return the primary implementation type for this access method. Although an access method may implement more than one implementation type, this is the expected one. The access manager will put the primary implementation type in a hash table for fast access.- Specified by:
primaryImplementationType
in interfaceMethodFactory
- Overrides:
primaryImplementationType
in classExternalSortFactory
- See Also:
MethodFactory.primaryImplementationType()
-
supportsImplementation
public boolean supportsImplementation(java.lang.String implementationId)
Description copied from interface:MethodFactory
Return whether this access method implements the implementation type given in the argument string.- Specified by:
supportsImplementation
in interfaceMethodFactory
- Overrides:
supportsImplementation
in classExternalSortFactory
- See Also:
MethodFactory.supportsImplementation(java.lang.String)
-
-