Examples of RowLocation


Examples of org.apache.derby.iapi.types.RowLocation

    {
      indexSC = activation.getIndexScanController();
    }
    else if (indexSC == null)
    {
      RowLocation templateBaseRowLocation = baseCC.newRowLocationTemplate();
      /* DataDictionary doesn't have compiled info */
      if (indexSCOCI == null)
      {
        indexSC =
                tc.openScan(
View Full Code Here

Examples of org.apache.derby.iapi.types.RowLocation

    }

    /* Set up sorters, etc. if 1st row and there are indexes */
    if (constants.irgs.length > 0)
    {
      RowLocation rlClone = (RowLocation) rowLocation.cloneObject();

      // Objectify any the streaming columns that are indexed.
      for (int i = 0; i < execRow.getRowArray().length; i++)
      {
        if (! constants.indexedCols[i])
View Full Code Here

Examples of org.apache.derby.iapi.types.RowLocation

        // Calculate the approximate row size for the index row
        approximateRowSize += dts.getTypeId().getApproximateLengthInBytes(dts);
      }

      // Get an array of RowLocation template
      RowLocation rl[] = new RowLocation[bulkFetchSize];
      for (int i = 0; i < bulkFetchSize; i++)
      {
        rl[i] = scan.newRowLocationTemplate();

        // Get an index row based on the base row
View Full Code Here

Examples of org.apache.derby.iapi.types.RowLocation

  boolean  collectAffectedRows() throws StandardException
 

    DataValueDescriptor    rlColumn;
    RowLocation  baseRowLocation;
    boolean rowsFound = false;

    if(cascadeDelete)
      row = getNextRowCore(source);
View Full Code Here

Examples of org.apache.derby.iapi.types.RowLocation

  //during cascade delete (All deletes are deferred during cascade action)
  void deleteDeferredRows() throws StandardException
  {
   
    DataValueDescriptor    rlColumn;
     RowLocation  baseRowLocation;
    ExecRow    deferredRLRow = null;

    deferredBaseCC = tc.openCompiledConglomerate(false,
                           tc.OPENMODE_FORUPDATE|tc.OPENMODE_SECONDARY_LOCKED,
                           lockMode,
View Full Code Here

Examples of org.apache.derby.iapi.types.RowLocation

  {
    if (! isOpen) return null;

    // REVISIT: could we reuse the same rowlocation object
    // across several calls?
    RowLocation rl;
    rl = scanController.newRowLocationTemplate();
    scanController.fetchLocation(rl);
    return rl;
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.RowLocation

        evaluateCheckConstraints( checkGM, activation );

        /* Get the RowLocation to update
         * NOTE - Column #s in the Row are 1 based.
         */
        RowLocation baseRowLocation = (RowLocation)
          (row.getColumn(resultWidth)).getObject();

        RowUtil.copyRefColumns(newBaseRow,
                    row,
                    numberOfBaseColumns,
View Full Code Here

Examples of org.apache.derby.iapi.types.RowLocation

       * as the comments above this function say, we scan forward.
       *
       * Need to save a clone because when we get cached currentRow, "rl" shares the
       * same reference, so is changed at the same time.
       */
      RowLocation updatedRL = (RowLocation) rl.getClone();

      if (past2FutureTbl.size() < maxCapacity)
        past2FutureTbl.put(updatedRL, updatedRL);
      else
      {
        tableScan.skipFutureRowHolder = true;
        ExecRow rlRow = new ValueRow(1);

        for (;;)
        {
          ExecRow aRow = tableScan.getNextRowCore();
          if (aRow == null)
          {
            tableScan.sourceDrained = true;
            tableScan.past2FutureTbl = null// de-reference for garbage coll.
            break;
          }
          RowLocation rowLoc = (RowLocation) aRow.getColumn(aRow.nColumns());

          if (updatedRL.equals(rowLoc))  //this row we are updating jumped forward
          {
            saveLastCusorKey(tableScan, aRow);
            break// don't need to worry about adding this row to hash any more
View Full Code Here

Examples of org.apache.derby.iapi.types.RowLocation

          /*
          ** The last column is a Ref, which contains a
          ** RowLocation.
          */
          DataValueDescriptor rlColumn = deferredTempRow2.getColumn(numberOfBaseColumns + 1);
          RowLocation baseRowLocation =
              (RowLocation) (rlColumn).getObject();
 
          /* Get the base row at the given RowLocation */
          boolean row_exists =
            deferredBaseCC.fetch(
View Full Code Here

Examples of org.apache.derby.iapi.types.RowLocation

      }

      positionInSource++;
      currentPosition = positionInSource;

      RowLocation rowLoc = null;
      if (source.isForUpdate()) {
        rowLoc = ((CursorResultSet)source).getRowLocation();
      }

      addRowToHashTable(sourceRow, currentPosition, rowLoc, false);
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.