Package org.apache.derby.iapi.store.access

Examples of org.apache.derby.iapi.store.access.SortObserver


       * we could get in a situation where 1 sort reuses a
       * wrapper that is still in use in another sort.
       */
      boolean reuseWrappers = (numIndexes == 1);

      SortObserver    sortObserver =
                new BasicSortObserver(
                        false, false, indexRows[index], reuseWrappers);

      ordering[index] = new ColumnOrdering[numColumnOrderings];
      for (int ii =0; ii < numColumnOrderings - 1; ii++)
View Full Code Here


    ** we'll feed this into the sorter again w/o the distinct
    ** column in the ordering list.
    */
    GenericAggregator[] aggsNoDistinct = getSortAggregators(aggInfoList, true,
        activation.getLanguageConnectionContext(), source);
    SortObserver sortObserver = new AggregateSortObserver(true, aggsNoDistinct, aggregates,
                                sortTemplateRow);

    sortId = tc.createSort((Properties)null,
          sortTemplateRow.getRowArray(),
          order,
View Full Code Here

       * we could get in a situation where 1 sort reuses a
       * wrapper that is still in use in another sort.
       */
      boolean reuseWrappers = (numIndexes == 1);

      SortObserver    sortObserver =
                new BasicSortObserver(
                        false, false, indexRows[index], reuseWrappers);

      ordering[index] = new ColumnOrdering[numColumnOrderings];
      for (int ii =0; ii < numColumnOrderings - 1; ii++)
View Full Code Here

    ExecRow         inputRow;
    int            inputRowCountEstimate = (int) optimizerEstimatedRowCount;

    tc = getTransactionController();

    SortObserver observer;
    if (usingAggregateObserver)
      observer = new AggregateSortObserver(true, aggregates,
        aggregates, sortTemplateRow);
    else
      observer = new BasicSortObserver(true, false,
View Full Code Here

      int[] baseColumnPositions =
                constants.irgs[index].baseColumnPositions();
      boolean[] isAscending     = constants.irgs[index].isAscending();
          
      int numColumnOrderings;
            SortObserver sortObserver;

      /* We can only reuse the wrappers when doing an
       * external sort if there is only 1 index.  Otherwise,
       * we could get in a situation where 1 sort reuses a
       * wrapper that is still in use in another sort.
View Full Code Here

      // Get the ConglomerateDescriptor for the index
      cd = td.getConglomerateDescriptor(constants.indexCIDS[index]);
      int[] baseColumnPositions = constants.irgs[index].baseColumnPositions();
      boolean[] isAscending = constants.irgs[index].isAscending();
      int numColumnOrderings;
      SortObserver sortObserver = null;
      if (cd.getIndexDescriptor().isUnique())
      {
        numColumnOrderings = baseColumnPositions.length;
        String[] columnNames = getColumnNames(baseColumnPositions);
View Full Code Here

    ** we'll feed this into the sorter again w/o the distinct
    ** column in the ordering list.
    */
    GenericAggregator[] aggsNoDistinct = getSortAggregators(aggInfoList, true,
        activation.getLanguageConnectionContext(), source);
    SortObserver sortObserver = new AggregateSortObserver(true, aggsNoDistinct, aggregates,
                                sortTemplateRow);

    sortId = tc.createSort((Properties)null,
          sortTemplateRow.getRowArray(),
          order,
View Full Code Here

       * we could get in a situation where 1 sort reuses a
       * wrapper that is still in use in another sort.
       */
      boolean reuseWrappers = (numIndexes == 1);

      SortObserver    sortObserver =
                new BasicSortObserver(
                        false, false, indexRows[index], reuseWrappers);

      ordering[index] = new ColumnOrdering[numColumnOrderings];
      for (int ii =0; ii < numColumnOrderings - 1; ii++)
View Full Code Here

    int            inputRowCountEstimate = (int) optimizerEstimatedRowCount;
        ExecIndexRow            sortTemplateRow = getRowTemplate();

    tc = getTransactionController();

    SortObserver observer;
    if (usingAggregateObserver)
      observer = new AggregateSortObserver(true, aggregates,
        aggregates, sortTemplateRow);
    else
      observer = new BasicSortObserver(true, false,
View Full Code Here

       * we could get in a situation where 1 sort reuses a
       * wrapper that is still in use in another sort.
       */
      boolean reuseWrappers = (numIndexes == 1);

      SortObserver    sortObserver =
                new BasicSortObserver(
                        false, false, indexRows[index], reuseWrappers);

      ordering[index] = new ColumnOrdering[numColumnOrderings];
      for (int ii =0; ii < numColumnOrderings - 1; ii++)
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.store.access.SortObserver

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.