Package org.apache.derby.iapi.store.access.conglomerate

Examples of org.apache.derby.iapi.store.access.conglomerate.ScanManager


    // Find the conglomerate.
    Conglomerate conglom = findExistingConglomerate(conglomId);

    // Get a scan controller.
    ScanManager sm =
            conglom.defragmentConglomerate(
                this,
                rawtran,
                hold,
                open_mode,
View Full Code Here


                    istream.println(
                        "Current list of open scans: " +  debugOpened());
                }
            }
      ScanManager sm = (ScanManager) o;
            sm.savePosition(conglom, page);
    }
    }
View Full Code Here

        if (!scanControllers.isEmpty())
        {
            // loop from end to beginning, removing scans which are not held.
            for (int i = scanControllers.size() - 1; i >= 0; i--)
            {
                ScanManager sc = (ScanManager) scanControllers.get(i);

                if (sc.closeForEndTransaction(closeHeldControllers))
                {
                    // TODO - now counting on scan's removing themselves by
                    // calling the closeMe() method.
                    /* scanControllers.removeElementAt(i); */
                }
            }

            if (closeHeldControllers)
            {
                if (SanityManager.DEBUG)
                {
                    SanityManager.ASSERT(scanControllers.isEmpty());
                }
                // just to make sure everything has been closed and removed.
                scanControllers.clear();
            }
        }

        if (!conglomerateControllers.isEmpty())
        {
            // loop from end to beginning, removing scans which are not held.
            for (int i = conglomerateControllers.size() - 1; i >= 0; i--)
            {
                ConglomerateController cc =
                    (ConglomerateController)
                        conglomerateControllers.get(i);

                if (cc.closeForEndTransaction(closeHeldControllers))
                {
                    // TODO - now counting on cc's removing themselves by
                    // calling the closeMe() method.
                    /* conglomerateControllers.removeElementAt(i); */
                }
            }

            if (closeHeldControllers)
            {
                if (SanityManager.DEBUG)
                {
                    SanityManager.ASSERT(scanControllers.isEmpty());
                }
                // just to make sure everything has been closed and removed.
                conglomerateControllers.clear();
            }
        }

        if ((sortControllers != null) && !sortControllers.isEmpty())
        {
            if (closeHeldControllers)
            {
                // Loop from the end since the call to close() will remove the
                // element from the list.
                for (int i = sortControllers.size() - 1; i >= 0; i--)
                {
                    SortController sc = (SortController) sortControllers.get(i);
                    sc.completedInserts();
                }
                sortControllers.clear();
            }
        }

View Full Code Here

                    "Bad lock level to openScan:" + lock_level);
            }
        }

    // 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,
View Full Code Here

    // 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,
View Full Code Here

    // Find the conglomerate.
    Conglomerate conglom = findExistingConglomerate(conglomId);

    // Get a scan controller.
    ScanManager sm =
            conglom.defragmentConglomerate(
                this,
                rawtran,
                hold,
                open_mode,
View Full Code Here

        if (!scanControllers.isEmpty())
        {
            // loop from end to beginning, removing scans which are not held.
            for (int i = scanControllers.size() - 1; i >= 0; i--)
            {
                ScanManager sc = (ScanManager) scanControllers.get(i);

                if (sc.closeForEndTransaction(closeHeldControllers))
                {
                    // TODO - now counting on scan's removing themselves by
                    // calling the closeMe() method.
                    /* scanControllers.removeElementAt(i); */
                }
            }

            if (closeHeldControllers)
            {
                if (SanityManager.DEBUG)
                {
                    SanityManager.ASSERT(scanControllers.isEmpty());
                }
                // just to make sure everything has been closed and removed.
                scanControllers.clear();
            }
        }

        if (!conglomerateControllers.isEmpty())
        {
            // loop from end to beginning, removing scans which are not held.
            for (int i = conglomerateControllers.size() - 1; i >= 0; i--)
            {
                ConglomerateController cc =
                    (ConglomerateController)
                        conglomerateControllers.get(i);

                if (cc.closeForEndTransaction(closeHeldControllers))
                {
                    // TODO - now counting on cc's removing themselves by
                    // calling the closeMe() method.
                    /* conglomerateControllers.removeElementAt(i); */
                }
            }

            if (closeHeldControllers)
            {
                if (SanityManager.DEBUG)
                {
                    SanityManager.ASSERT(scanControllers.isEmpty());
                }
                // just to make sure everything has been closed and removed.
                conglomerateControllers.clear();
            }
        }

        if ((sortControllers != null) && !sortControllers.isEmpty())
        {
            if (closeHeldControllers)
            {
                // Loop from the end since the call to close() will remove the
                // element from the list.
                for (int i = sortControllers.size() - 1; i >= 0; i--)
                {
                    SortController sc = (SortController) sortControllers.get(i);
                    sc.completedInserts();
                }
                sortControllers.clear();
            }
        }

View Full Code Here

                    "Bad lock level to openScan:" + lock_level);
            }
        }

    // 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,
View Full Code Here

    // 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,
View Full Code Here

    // Find the conglomerate.
    Conglomerate conglom = findExistingConglomerate(conglomId);

    // Get a scan controller.
    ScanManager sm =
            conglom.defragmentConglomerate(
                this,
                rawtran,
                hold,
                open_mode,
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.store.access.conglomerate.ScanManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.