Search in sources :

Example 11 with Conglomerate

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

the class RAMTransaction method openGroupFetchScan.

public GroupFetchScanController openGroupFetchScan(long conglomId, boolean hold, int open_mode, int lock_level, int isolation_level, FormatableBitSet scanColumnList, DataValueDescriptor[] startKeyValue, int startSearchOperator, Qualifier[][] qualifier, DataValueDescriptor[] stopKeyValue, int stopSearchOperator) throws StandardException {
    if (SanityManager.DEBUG) {
        if ((open_mode & ~(TransactionController.OPENMODE_FORUPDATE | TransactionController.OPENMODE_FOR_LOCK_ONLY | TransactionController.OPENMODE_SECONDARY_LOCKED)) != 0)
            SanityManager.THROWASSERT("Bad open mode to openScan:" + Integer.toHexString(open_mode));
        if (!(lock_level == MODE_RECORD | lock_level == MODE_TABLE))
            SanityManager.THROWASSERT("Bad lock level to openScan:" + lock_level);
    }
    // Find the conglomerate.
    Conglomerate conglom = findExistingConglomerate(conglomId);
    // Get a scan controller.
    ScanManager sm = conglom.openScan(this, rawtran, hold, open_mode, determine_lock_level(lock_level), determine_locking_policy(lock_level, isolation_level), isolation_level, scanColumnList, startKeyValue, startSearchOperator, qualifier, stopKeyValue, stopSearchOperator, (StaticCompiledOpenConglomInfo) null, (DynamicCompiledOpenConglomInfo) null);
    // Keep track of it so we can release on close.
    scanControllers.add(sm);
    return (sm);
}
Also used : Conglomerate(org.apache.derby.iapi.store.access.conglomerate.Conglomerate) ScanManager(org.apache.derby.iapi.store.access.conglomerate.ScanManager)

Aggregations

Conglomerate (org.apache.derby.iapi.store.access.conglomerate.Conglomerate)11 ScanManager (org.apache.derby.iapi.store.access.conglomerate.ScanManager)3 ConglomerateController (org.apache.derby.iapi.store.access.ConglomerateController)2 BTreeLockingPolicy (org.apache.derby.impl.store.access.btree.BTreeLockingPolicy)2 HashMap (java.util.HashMap)1 GroupFetchScanController (org.apache.derby.iapi.store.access.GroupFetchScanController)1 ScanController (org.apache.derby.iapi.store.access.ScanController)1 SortController (org.apache.derby.iapi.store.access.SortController)1 StoreCostController (org.apache.derby.iapi.store.access.StoreCostController)1 ConglomerateFactory (org.apache.derby.iapi.store.access.conglomerate.ConglomerateFactory)1 MethodFactory (org.apache.derby.iapi.store.access.conglomerate.MethodFactory)1 Sort (org.apache.derby.iapi.store.access.conglomerate.Sort)1 ContainerHandle (org.apache.derby.iapi.store.raw.ContainerHandle)1 LockingPolicy (org.apache.derby.iapi.store.raw.LockingPolicy)1 ControlRow (org.apache.derby.impl.store.access.btree.ControlRow)1