Package org.apache.derby.iapi.store.raw

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


        // need to allocate row with fieldId cols because of sparse row change
        // needs to be RESOLVED
    Object[] row = new Object[fieldId + 1];
    row[fieldId] = column;

    FetchDescriptor fetchDesc =
      new FetchDescriptor(fieldId + 1, fieldId);

    return(fetchFromSlot(null, slot, row, fetchDesc, true));
  }
View Full Code Here


        StoredRecordHeader recordHeader = getHeaderAtSlot(slot);

    if (recordHeader.isDeleted())
      return null;

        FetchDescriptor hack_fetch =
            new FetchDescriptor(
                    row.length, validColumns, (Qualifier[][]) null);

    // magic to copy rows across ...
    restoreRecordFromSlot(
            slot, row, hack_fetch, handle, recordHeader, true);
View Full Code Here

    row[fieldId] = column;
    FormatableBitSet singleColumn = new FormatableBitSet(fieldId + 1);

    singleColumn.set(fieldId);

        FetchDescriptor fetchDesc =
            new FetchDescriptor(fieldId + 1, singleColumn,(Qualifier[][]) null);

    return(fetchFromSlot(null, slot, row, fetchDesc, true));
  }
View Full Code Here

        // RESOLVE (mikem) - get rid of new here.
        boolean ret_val =
            (pos.current_page.fetchFromSlot(
                pos.current_rh, pos.current_slot,
                row,
                new FetchDescriptor(
                    row.length, validColumns, (Qualifier[][]) null),
                false) != null);

        // RESOLVE (mikem) - should be some way to hide this in the unlock call,
        // and just always make the unlock call.
View Full Code Here

        // RESOLVE (mikem) - get rid of new here.
        boolean ret_val =
            (pos.current_page.fetchFromSlot(
                pos.current_rh, pos.current_slot,
                row,
                new FetchDescriptor(
                    row.length, validColumns, (Qualifier[][]) null),
                false) != null);

        // RESOLVE (mikem) - should be some way to hide this in the unlock call,
        // and just always make the unlock call.
View Full Code Here

    {
        this.scratch_row =
            new DataValueDescriptor[getNumberOfControlRowColumns()];

        this.fetchDesc   =
            new FetchDescriptor(
                this.scratch_row.length, (FormatableBitSet) null, (Qualifier[][]) null);
    }
View Full Code Here

        // 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

        // TODO (mikem) - this could be more efficient, by writing
        // code to figure out length of row, but scratch row is cached
        // so allocating it here is probably not that bad.
        init_fetchDesc =
            new FetchDescriptor(
              (open_conglom.getRuntimeMem().get_scratch_row()).length,
              init_scanColumnList,
              init_qualifier);

        // stopKeyValue init.
View Full Code Here

                (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

        // 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

TOP

Related Classes of org.apache.derby.iapi.store.raw.FetchDescriptor

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.