Examples of RowLocation


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

    public RowLocation getRowLocationTemplate(LanguageConnectionContext lcc,
                                              TableDescriptor td)
          throws StandardException
    {
      RowLocation       rl;
    ConglomerateController   heapCC = null;

    TransactionController tc =
      lcc.getTransactionCompile();
View Full Code Here

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

        ConglomerateController heapCC = tc.openConglomerate( ti.getHeapConglomerate(),
                                                             false,  // do not keep open across commits
                                                             0,
                                                             TransactionController.MODE_RECORD,
                                                             TransactionController.ISOLATION_REPEATABLE_READ);
        RowLocation rl = null;
        try
        {
            rl = heapCC.newRowLocationTemplate();
        }
        finally
View Full Code Here

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

    Activation activation)
    throws StandardException
  {
    long          newHeapConglom;
    Properties        properties = new Properties();
    RowLocation        rl;

    this.lcc        = activation.getLanguageConnectionContext();
    this.dd         = lcc.getDataDictionary();
    this.dm         = dd.getDependencyManager();
    this.tc         = lcc.getTransactionExecute();
View Full Code Here

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

    throws StandardException
  {
    ExecRow          emptyHeapRow;
    long          newHeapConglom;
    Properties        properties = new Properties();
    RowLocation        rl;
    this.lcc = activation.getLanguageConnectionContext();
    this.dd = lcc.getDataDictionary();
    this.dm = dd.getDependencyManager();
    this.tc = lcc.getTransactionExecute();
    this.activation = activation;
View Full Code Here

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

    if (!indexsc.fetchNext(indexRow))
    {
      return null;
    }
   
    RowLocation baseRowLocation =  (RowLocation) indexRow[1];
    boolean base_row_exists =
            heapCC.fetch(
                baseRowLocation, currentRow.getRowArray(), (FormatableBitSet) null);

        if (SanityManager.DEBUG)
View Full Code Here

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

          /* to boost performance, we used virtual mem heap, and we can insert after
           * we start retrieving results.  The assumption is to
           * delete current row right after we retrieve it.
           */
          futureRowResultSet.deleteCurrentRow();
          RowLocation rl = (RowLocation) ridRow.getColumn(1);
          ConglomerateController baseCC = activation.getHeapConglomerateController();
          if (sparseRow == null)
            getSparseRowAndMap();
                   baseCC.fetch(
                           rl, sparseRow.getRowArray(), sparseRowMap);
          RowLocation rl2 = (RowLocation) rl.getClone();
          currentRow.setColumn(currentRow.nColumns(), rl2);
          candidate.setColumn(candidate.nColumns(), rl2);    // have to be consistent!

          result = currentRow;
          currentRowPrescanned = true;
        }
        else if (sourceDrained)
        {
          currentRowPrescanned = true;
          currentRow = null;
        }

        if (currentRowPrescanned)
        {
          setCurrentRow(result);

          nextTime += getElapsedMillis(beginTime);
              return result;
        }
      }
    }

      if ( isOpen  && !nextDone)
      {
      /* Only need to do 1 next per scan
       * for 1 row scans.
       */
      nextDone = oneRowScan;

      if (scanControllerOpened)
      {
        boolean moreRows;

        while (moreRows =
              scanController.fetchNext(candidate.getRowArray()))
        {
          rowsSeen++;
          rowsThisScan++;

          /*
          ** Skip rows where there are start or stop positioners
          ** that do not implement ordered null semantics and
          ** there are columns in those positions that contain
          ** null.
          ** No need to check if start and stop positions are the
          ** same, since all predicates in both will be ='s,
          ** and hence evaluated in the store.
          */
          if ((! sameStartStopPosition) && skipRow(candidate))
          {
            rowsFiltered++;
            continue;
          }

          /* beetle 3865, updateable cursor use index. If we have a hash table that
           * holds updated records, and we hit it again, skip it, and remove it from
           * hash since we can't hit it again, and we have a space in hash, so can
           * stop scanning forward.
           */
          if (past2FutureTbl != null)
          {
            RowLocation rowLoc = (RowLocation) currentRow.getColumn(currentRow.nColumns());
            if (past2FutureTbl.get(rowLoc) != null)
            {
              past2FutureTbl.remove(rowLoc);
              continue;
            }
View Full Code Here

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

   * @return the row location of the current cursor row.
   * @exception StandardException thrown on failure to get row location
   */
  public RowLocation getRowLocation() throws StandardException
  {
    RowLocation rl;

    if (! isOpen) return null;

    if ( ! scanControllerOpened)
      return null;
View Full Code Here

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

    Activation activation)
    throws StandardException
  {
    long          newHeapConglom;
    Properties        properties = new Properties();
    RowLocation        rl;

    this.lcc        = activation.getLanguageConnectionContext();
    this.dd         = lcc.getDataDictionary();
    this.dm         = dd.getDependencyManager();
    this.tc         = lcc.getTransactionExecute();
View Full Code Here

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

    throws StandardException
  {
    ExecRow          emptyHeapRow;
    long          newHeapConglom;
    Properties        properties = new Properties();
    RowLocation        rl;
    this.lcc = activation.getLanguageConnectionContext();
    this.dd = lcc.getDataDictionary();
    this.dm = dd.getDependencyManager();
    this.tc = lcc.getTransactionExecute();
    this.activation = activation;
View Full Code Here

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

      DataValueDescriptor dataValue = dataType.getNull();

      row.setColumn(i + 1, dataValue );
    }

    RowLocation rlTemplate = scc.newRowLocationTemplate();

    row.setColumn(baseCols.length + 1, rlTemplate);

    return  row;
  }
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.