Examples of FetchDescriptor


Examples of org.apache.derby.iapi.store.raw.FetchDescriptor

        // TODO (mikem) - get rid of this new.

        page.fetchFromSlot(
           (RecordHandle) null, CR_SLOT, version_ret,
           new FetchDescriptor(1, CR_VERSION_BITSET, (Qualifier[][]) null),
           false);

        // use format id to create empty instance of right Conglomerate class
        cr = (ControlRow) Monitor.newInstanceFromIdentifier(version.getValue());
        cr.page = page;
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.FetchDescriptor

                // purging rows.
                Page page   = leaf.page;


                // RowLocation column is in last column of template.
                FetchDescriptor lock_fetch_desc =
                    RowUtil.getFetchDescriptorConstant(
                        scratch_template.length - 1);

                // loop backward so that purges which affect the slot table
                // don't affect the loop (ie. they only move records we
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.FetchDescriptor

                (init_lock_fetch_desc.getValidColumnsArray())[init_template.length - 1] == 1);
        }

        // note that we don't process qualifiers in btree fetch's
        this.init_fetchDesc             =
            new FetchDescriptor(
                init_template.length, init_scanColumnList,(Qualifier[][]) null);

        initScanParams(
            startKeyValue, startSearchOperator,
            qualifier, stopKeyValue, stopSearchOperator);
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.FetchDescriptor

        }

        try {
            DataValueDescriptor[] fullKey = scan_position.getKeyTemplate();

            FetchDescriptor fetchDescriptor = null;
            boolean haveAllColumns = false;
            if (partialKey != null) {
                int copiedCols = 0;
                final int partialKeyLength =
                        (vcols == null) ? partialKey.length : vcols.length;
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.FetchDescriptor

        // we need to scan until we hit the end of the table or until we
        // run into a null.  Use this template to probe the "next" row so
        // that if we need to finish, fetch_row will have the right value.
        DataValueDescriptor[] check_row_template = new DataValueDescriptor[1];
        check_row_template[0] = fetch_row[0].getClone();
        FetchDescriptor check_row_desc = RowUtil.getFetchDescriptorConstant(1);

        // reopen the scan for reading from the beginning of the table.
        reopenScan(
            (DataValueDescriptor[]) null,
            ScanController.NA,
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.FetchDescriptor

                Page page   = leaf.page;


                // RowLocation column is in last column of template.
                FetchDescriptor lock_fetch_desc =
                    RowUtil.getFetchDescriptorConstant(
                        scratch_template.length - 1);

                // loop backward so that purges which affect the slot table
                // don't affect the loop (ie. they only move records we
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.FetchDescriptor

            if (!originalRow [i].equals(newRow [i]))
                return NO_MATCH;
        }
        //It might be a deleted record try getting a lock on it
        DataValueDescriptor[] template = runtime_mem.get_template(getRawTran());
        FetchDescriptor lock_fetch_desc = RowUtil.getFetchDescriptorConstant(
                                                    template.length - 1);
        RowLocation lock_row_loc =
            (RowLocation) scratch_template[scratch_template.length - 1];
        boolean latch_released = !getLockingPolicy().lockNonScanRowOnPage(
                this.getConglomerate(), leaf, slot, lock_fetch_desc,template,
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.FetchDescriptor

                rowToInsert,
                SearchParameters.POSITION_LEFT_OF_PARTIAL_KEY_MATCH,
                scratch_template, this, false);

        // RowLocation column is in last column of template.
        FetchDescriptor lock_fetch_desc =
            RowUtil.getFetchDescriptorConstant(
                scratch_template.length - 1);
        RowLocation lock_row_loc =
            (RowLocation) scratch_template[scratch_template.length - 1];
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.FetchDescriptor

            Page page   = leaf.page;


            // RowLocation column is in last column of template.
            FetchDescriptor lock_fetch_desc =
                RowUtil.getFetchDescriptorConstant(
                    scratch_template.length - 1);

            // loop backward so that purges which affect the slot table
            // don't affect the loop (ie. they only move records we
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.FetchDescriptor

            // also fetch the columns behind the ones in the partial key
            for (int i = vcols.length; i < fullLength; i++) {
                columns.set(i);
            }
            savedFetchDescriptor =
                    new FetchDescriptor(fullLength, columns, null);
        }

        // Verify that the cached fetch descriptor matches the arguments
        // (will fail if this method is not called with the same parameters
        // as when the descriptor was created and cached).
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.