Examples of ExecIndexRow


Examples of org.apache.derby.iapi.sql.execute.ExecIndexRow

           * scan.
           */
        UUIDStringOrderable = getIDValueAsCHAR(uuid);

        /* Set up the start/stop position for the scan */
        ExecIndexRow keyRow = exFactory.getIndexableRow(1);
        keyRow.setColumn(1, UUIDStringOrderable);

        return (SequenceDescriptor)
                getDescriptorViaIndex(
                        SYSSEQUENCESRowFactory.SYSSEQUENCES_INDEX1_ID,
                        keyRow,
View Full Code Here

Examples of org.apache.derby.iapi.sql.execute.ExecIndexRow

           */
        sequenceNameOrderable = new SQLVarchar(sequenceName);
        schemaIDOrderable = getIDValueAsCHAR(sd.getUUID());

        /* Set up the start/stop position for the scan */
        ExecIndexRow keyRow = exFactory.getIndexableRow(2);
        keyRow.setColumn(1, schemaIDOrderable);
        keyRow.setColumn(2, sequenceNameOrderable);

        return (SequenceDescriptor)
                getDescriptorViaIndex(
                        SYSSEQUENCESRowFactory.SYSSEQUENCES_INDEX2_ID,
                        keyRow,
View Full Code Here

Examples of org.apache.derby.iapi.sql.execute.ExecIndexRow

        /* Use objIDOrderable in both start and stop position for scan. */
        objIdOrderable = getIDValueAsCHAR(objectID);

        /* Set up the start/stop position for the scan */
        ExecIndexRow keyRow = exFactory.getIndexableRow(1);
        keyRow.setColumn(1, objIdOrderable);

        while ((curRow = ti.getRow(tc, keyRow, rf.PERMS_OBJECTID_IDX_NUM)) != null) {
            perm = (PermDescriptor) rf.buildDescriptor(curRow, (TupleDescriptor) null, this);
            removePermEntryInCache(perm);

            // Build new key based on UUID and drop the entry as we want to drop
            // only this row
            ExecIndexRow uuidKey;
            uuidKey = rf.buildIndexKeyRow(rf.PERMS_UUID_IDX_NUM, perm);
            ti.deleteRow(tc, uuidKey, rf.PERMS_UUID_IDX_NUM);
        }
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.execute.ExecIndexRow

      (DataValueDescriptor[]) null, // stop position -through last row
      0);                           // stopSearchOperation - none

    try {
      ExecRow outRow = rf.makeEmptyRow();
      ExecIndexRow indexRow = getIndexRowFromHeapRow(
        ti.getIndexRowGenerator(indexNo),
        heapCC.newRowLocationTemplate(),
        outRow);

      while (sc.fetchNext(indexRow.getRowArray())) {
        RowLocation baseRowLocation = (RowLocation)indexRow.getColumn(
          indexRow.nColumns());

        boolean base_row_exists =
          heapCC.fetch(
            baseRowLocation, outRow.getRowArray(),
            (FormatableBitSet)null);
View Full Code Here

Examples of org.apache.derby.iapi.sql.execute.ExecIndexRow

    {
      perm = (PermissionsDescriptor)rf.buildDescriptor(curRow, (TupleDescriptor) null, this);
      removePermEntryInCache(perm);

      // Build key on UUID and drop the entry as we want to drop only this row
      ExecIndexRow uuidKey;
      uuidKey = rf.buildIndexKeyRow(rf.TABLEPERMSID_INDEX_NUM, perm);
      ti.deleteRow(tc, uuidKey, rf.TABLEPERMSID_INDEX_NUM);
    }
  }
View Full Code Here

Examples of org.apache.derby.iapi.sql.execute.ExecIndexRow

    {
      perm = (PermissionsDescriptor)rf.buildDescriptor(curRow, (TupleDescriptor) null, this);
      removePermEntryInCache(perm);

      // Build key on UUID and drop the entry as we want to drop only this row
      ExecIndexRow uuidKey;
      uuidKey = rf.buildIndexKeyRow(rf.COLPERMSID_INDEX_NUM, perm);
      ti.deleteRow(tc, uuidKey, rf.COLPERMSID_INDEX_NUM);
    }
  }
View Full Code Here

Examples of org.apache.derby.iapi.sql.execute.ExecIndexRow

                    String    formerName,
                    int[]    colsToSet,
                    TransactionController tc)
    throws StandardException
  {
    ExecIndexRow        keyRow1 = null;
    ExecRow              row;
    DataValueDescriptor      refIDOrderable;
    DataValueDescriptor      columnNameOrderable;
    TabInfoImpl            ti = coreInfo[SYSCOLUMNS_CORE_NUM];
    SYSCOLUMNSRowFactory  rf = (SYSCOLUMNSRowFactory) ti.getCatalogRowFactory();

    /* Use objectID/columnName in both start
     * and stop position for index 1 scan.
     */
    refIDOrderable = getIDValueAsCHAR(formerUUID);
    columnNameOrderable = new SQLVarchar(formerName);

    /* Set up the start/stop position for the scan */
    keyRow1 = (ExecIndexRow) exFactory.getIndexableRow(2);
    keyRow1.setColumn(1, refIDOrderable);
    keyRow1.setColumn(2, columnNameOrderable);

    // build the row to be stuffed into SYSCOLUMNS.
    row = rf.makeRow(cd, null);

    /*
 
View Full Code Here

Examples of org.apache.derby.iapi.sql.execute.ExecIndexRow

     * and stop position for scan.
     */
    viewIdOrderable = getIDValueAsCHAR(viewID);

    /* Set up the start/stop position for the scan */
    ExecIndexRow keyRow = exFactory.getIndexableRow(1);
    keyRow.setColumn(1, viewIdOrderable);

    vd = (ViewDescriptor)
          getDescriptorViaIndex(
            SYSVIEWSRowFactory.SYSVIEWS_INDEX1_ID,
            keyRow,
View Full Code Here

Examples of org.apache.derby.iapi.sql.execute.ExecIndexRow

     * and stop position for scan.
     */
    viewIdOrderable = getIDValueAsCHAR(vd.getUUID());

    /* Set up the start/stop position for the scan */
    ExecIndexRow keyRow = (ExecIndexRow) exFactory.getIndexableRow(1);
    keyRow.setColumn(1, viewIdOrderable);

    ti.deleteRow( tc, keyRow, SYSVIEWSRowFactory.SYSVIEWS_INDEX1_ID );

  }
View Full Code Here

Examples of org.apache.derby.iapi.sql.execute.ExecIndexRow

    DataValueDescriptor      idOrderable;
    TabInfoImpl            ti = getNonCoreTI(SYSFILES_CATALOG_NUM);
    idOrderable = getIDValueAsCHAR(id);

    /* Set up the start/stop position for the scan */
    ExecIndexRow keyRow = exFactory.getIndexableRow(1);
    keyRow.setColumn(1, idOrderable);

    return (FileInfoDescriptor)
          getDescriptorViaIndex(
            SYSFILESRowFactory.SYSFILES_INDEX2_ID,
            keyRow,
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.