Package org.apache.derby.iapi.types

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


    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

                false,
                0,
                TransactionController.MODE_RECORD,
                TransactionController.ISOLATION_SERIALIZABLE);

        RowLocation         base_rowloc1    = base_cc.newRowLocationTemplate();

        index_row1.init(base_row, base_rowloc1, 3);

        // create the secondary index
        Properties properties =
View Full Code Here

        index_cc.checkConsistency();

    // Create a row and insert into base table, remembering it's location.
    DataValueDescriptor[] r1           = TemplateRow.newU8Row(2);
        T_SecondaryIndexRow   index_row1   = new T_SecondaryIndexRow();
        RowLocation           base_rowloc1 = base_cc.newRowLocationTemplate();

        index_row1.init(r1, base_rowloc1, 3);

        // Commit the create of the tables so that the following aborts don't
        // undo that work.
View Full Code Here

        index_cc.checkConsistency();

    // Create a row and insert into base table, remembering it's location.
    DataValueDescriptor[] r1            = TemplateRow.newU8Row(2);
        T_SecondaryIndexRow   index_row1    = new T_SecondaryIndexRow();
        RowLocation           base_rowloc1  = base_cc.newRowLocationTemplate();

        index_row1.init(r1, base_rowloc1, 3);

        // Commit the create of the tables so that the following aborts don't
        // undo that work.
View Full Code Here

                TransactionController.MODE_RECORD,
                TransactionController.ISOLATION_SERIALIZABLE);

    // Create a row.
    T_SecondaryIndexRow index_row = new T_SecondaryIndexRow();
        RowLocation             rowloc    = base_cc.newRowLocationTemplate();
        DataValueDescriptor[]   base_row  = TemplateRow.newU8Row(2);
        index_row.init(base_row, rowloc, 3);

        ((SQLLongint)base_row[0]).setValue(1);
        ((SQLLongint)base_row[1]).setValue(1);
View Full Code Here

                TransactionController.MODE_RECORD,
                TransactionController.ISOLATION_SERIALIZABLE);

    // Create a row.
        T_SecondaryIndexRow template = new T_SecondaryIndexRow();
        RowLocation         row_loc  = base_cc.newRowLocationTemplate();
        template.init(base_row, row_loc, 5);

        // insert them in reverse order just to make sure btree is sorting them
        for (int i = col1.length - 1; i >= 0; i--)
        {
View Full Code Here

    {
      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

    // Move to the 1st row in the heap
    heapScan.next();

    // Get the RowLocation
    RowLocation baseRL = heapScan.newRowLocationTemplate();
    heapScan.fetchLocation(baseRL);

    // Replace the current row with nulls
    heapScan.replace(
      t_cc.getHeapRowOfNulls().getRowArray(),
View Full Code Here

    /* Open a scan on the heap */
    ScanController heapScan = t_cc.openUnqualifiedHeapScan();

    // Get the RowLocation
    RowLocation baseRL = heapScan.newRowLocationTemplate();
    RowLocation badRL = heapScan.newRowLocationTemplate();
    heapScan.close();

    /* Open a scan on the index */
    ExecRow    indexRow = t_cc.getIndexTemplateRow(baseRL);
    ScanController indexScan = t_cc.openUnqualifiedIndexScan();
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.types.RowLocation

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.