Package org.apache.derby.iapi.sql.dictionary

Examples of org.apache.derby.iapi.sql.dictionary.IndexRowGenerator.baseColumnPositions()


    if (! irg.isUnique())
    {
      return false;
    }

    int[] baseColumnPositions = irg.baseColumnPositions();

    DataDictionary dd = getDataDictionary();

    // Do we have an exact match on the full key
    for (int index = 0; index < baseColumnPositions.length; index++)
View Full Code Here


          conglomVector.add( cd );
        }
      }

      IndexRowGenerator ixd = cd.getIndexDescriptor();
      int[] cols = ixd.baseColumnPositions();

      if (colBitSet != null)
      {
        for (int i = 0; i < cols.length; i++)
        {
View Full Code Here

        /* For non-unique indexes, we order by all columns + the RID.
         * For unique indexes, we just order by the columns.
         * No need to try to enforce uniqueness here as
         * index should be valid.
         */
                int[] baseColumnPositions = curIndex.baseColumnPositions();

                boolean[] isAscending = curIndex.isAscending();

        int numColumnOrderings;
        numColumnOrderings = baseColumnPositions.length + 1;
View Full Code Here

          conglomVector.addElement( cd );
        }
      }

      IndexRowGenerator ixd = cd.getIndexDescriptor();
      int[] cols = ixd.baseColumnPositions();

      if (colBitSet != null)
      {
        for (int i = 0; i < cols.length; i++)
        {
View Full Code Here

    if (cd.isIndex() && columnNames != null )
    {
      IndexRowGenerator irg = cd.getIndexDescriptor();

      int[] keyColumns = irg.baseColumnPositions();

      keyString = ", key columns = {" + columnNames[keyColumns[0] - 1];
      for (int index = 1; index < keyColumns.length; index++)
      {
        keyString = keyString + ", " + columnNames[keyColumns[index] - 1];
View Full Code Here

     * to be the more common case) then we have to build the
     * list of ColumnNames ourselves.
     */
    if (columnNames == null)
    {
      int [] baseCols = irg.baseColumnPositions();
      columnNames = new String[baseCols.length];
      ColumnDescriptorList colDL = td.getColumnDescriptorList();
      for (int i = 0; i < baseCols.length; i++)
      {
        columnNames[i] =
View Full Code Here

         */
        continue;
      }

      IndexRowGenerator irg = cd.getIndexDescriptor();
      int[] bcps = irg.baseColumnPositions();
      boolean[] ia = irg.isAscending();
      int j = 0;

      /* The conditions which allow an index to share an existing
       * conglomerate are as follows:
View Full Code Here

        /* For non-unique indexes, we order by all columns + the RID.
         * For unique indexes, we just order by the columns.
         * No need to try to enforce uniqueness here as
         * index should be valid.
         */
                int[] baseColumnPositions = curIndex.baseColumnPositions();

                boolean[] isAscending = curIndex.isAscending();

        int numColumnOrderings;
        numColumnOrderings = baseColumnPositions.length + 1;
View Full Code Here

    if (cd.isIndex() && columnNames != null )
    {
      IndexRowGenerator irg = cd.getIndexDescriptor();

      int[] keyColumns = irg.baseColumnPositions();

      keyString = ", key columns = {" + columnNames[keyColumns[0] - 1];
      for (int index = 1; index < keyColumns.length; index++)
      {
        keyString = keyString + ", " + columnNames[keyColumns[index] - 1];
View Full Code Here

                    conglomerates.add( cd );
        }
      }

      IndexRowGenerator ixd = cd.getIndexDescriptor();
      int[] cols = ixd.baseColumnPositions();

      if (colBitSet != null)
      {
        for (int i = 0; i < cols.length; i++)
        {
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.