Search in sources :

Example 6 with BackingStoreHashtable

use of org.apache.derby.iapi.store.access.BackingStoreHashtable in project derby by apache.

the class MergeResultSet method createSubjectRowIDhashtable.

/**
 * <p>
 * Create a BackingStoreHashtable to hold the ids of subject rows.
 * </p>
 */
private void createSubjectRowIDhashtable() throws StandardException {
    final int[] keyCols = new int[] { 0 };
    _subjectRowIDs = new BackingStoreHashtable(getActivation().getLanguageConnectionContext().getTransactionExecute(), // no row source. we'll fill the hashtable as we go along
    null, keyCols, // duplicate handling doesn't matter. we probe for duplicates and error out if we find one
    false, // who knows what the row count will be
    -1, HashScanResultSet.DEFAULT_MAX_CAPACITY, HashScanResultSet.DEFAULT_INITIAL_CAPACITY, HashScanResultSet.DEFAULT_MAX_CAPACITY, // null keys aren't relevant. the row id is always non-null
    false, // discard after commit
    false);
}
Also used : BackingStoreHashtable(org.apache.derby.iapi.store.access.BackingStoreHashtable)

Aggregations

BackingStoreHashtable (org.apache.derby.iapi.store.access.BackingStoreHashtable)6 DataValueDescriptor (org.apache.derby.iapi.types.DataValueDescriptor)3 SQLLongint (org.apache.derby.iapi.types.SQLLongint)2 Enumeration (java.util.Enumeration)1 HashSet (java.util.HashSet)1 List (java.util.List)1 Properties (java.util.Properties)1 FormatableBitSet (org.apache.derby.iapi.services.io.FormatableBitSet)1 TransactionController (org.apache.derby.iapi.store.access.TransactionController)1 StandardException (org.apache.derby.shared.common.error.StandardException)1