Package org.apache.derby.iapi.services.io

Examples of org.apache.derby.iapi.services.io.FormatableBitSet


                outRow);
 
      // just interested in one column
      DataValueDescriptor[] rowTemplate    =
              new DataValueDescriptor[SYSCONSTRAINTSRowFactory.SYSCONSTRAINTS_COLUMN_COUNT];
      FormatableBitSet  columnToGetSet =
              new FormatableBitSet(SYSCONSTRAINTSRowFactory.SYSCONSTRAINTS_COLUMN_COUNT);
      columnToGetSet.set(columnNum - 1);

      rowTemplate[columnNum - 1] = new SQLChar();
 
      // Scan the index and go to the data pages for qualifying rows
      scanController = tc.openScan(
View Full Code Here


      baseRowLocation = (RowLocationindexTemplateRow.getColumn(
                        indexTemplateRow.nColumns());
 
      /* 1st column is TABLEID (UUID - char(36)) */
      row.setColumn(SYSTABLESRowFactory.SYSTABLES_TABLEID, new SQLChar());
      FormatableBitSet bi = new FormatableBitSet(1);
      bi.set(0);
      boolean base_row_exists =
                heapCC.fetch(
                    baseRowLocation, row.getRowArray(), (FormatableBitSet) null);

            if (SanityManager.DEBUG)
View Full Code Here

                      NumberDataValue newValue,
                      boolean wait)
         throws StandardException
  {

    FormatableBitSet columnToUpdate = new
        FormatableBitSet(SYSCOLUMNSRowFactory.SYSCOLUMNS_COLUMN_COUNT);
      int columnNum = SYSCOLUMNSRowFactory.SYSCOLUMNS_AUTOINCREMENTVALUE;
    TabInfoImpl ti = coreInfo[SYSCOLUMNS_CORE_NUM];
      ConglomerateController heapCC = null;
    SYSCOLUMNSRowFactory  rf = (SYSCOLUMNSRowFactory) ti.getCatalogRowFactory();
    ExecRow row = rf.makeEmptyRow();

      FormatableBitSet  columnToRead = new
        FormatableBitSet(SYSCOLUMNSRowFactory.SYSCOLUMNS_COLUMN_COUNT);
   
    // FormatableBitSet is 0 based.
      columnToRead.set(columnNum - 1); // current value.
    columnToRead.set(columnNum);     // start value.
    columnToRead.set(columnNum + 1); // increment value.

        try
        {
      /* if wait is true then we need to do a wait while trying to
         open/fetch from the conglomerate. note we use wait both to
View Full Code Here

          lockMode,
          null, null, null, 0, null, null,
          resultDescription,
          getFKInfo(),
          getTriggerInfo(),
          (readColsBitSet == null) ? (FormatableBitSet)null : new FormatableBitSet(readColsBitSet),
          getReadColMap(targetTableDescriptor.getNumberOfColumns(),readColsBitSet),
          resultColumnList.getStreamStorableColIds(targetTableDescriptor.getNumberOfColumns()),
           (readColsBitSet == null) ?
            targetTableDescriptor.getNumberOfColumns() :
            readColsBitSet.getNumBitsSet(),     
View Full Code Here

    needsDeferredProcessing[0] = requiresDeferredProcessing();

    Vector    conglomVector = new Vector();
    relevantTriggers = new GenericDescriptorList();

    FormatableBitSet  columnMap = DeleteNode.getDeleteReadMap(baseTable, conglomVector, relevantTriggers, needsDeferredProcessing );

    markAffectedIndexes( conglomVector );

    adjustDeferredFlag( needsDeferredProcessing[0] );
View Full Code Here

        bits24  = new byte[] { (byte)0xce, (byte)0x3c, 0x0 };

        // 0011 0001 1100 0011 1100
        bits24C = new byte[] { (byte)0x31, (byte)0xc3, (byte)0xc0 };

        empty = new FormatableBitSet();
        bitset18 = new FormatableBitSet(bits24);
        bitset18.shrink(18);
        bitset18C = new FormatableBitSet(bits24C);
        bitset18C.shrink(18);
    }
View Full Code Here

        assertEquals(bits24C,bitset18C.getByteArray());
    }

    // Test cases for single arg constructor
    public void testIntCtor0() {
        FormatableBitSet zeroBits = new FormatableBitSet(0);
        assertEquals(0,zeroBits.getLength());
        assertEquals(0,zeroBits.getLengthInBytes());
        assertEquals(0,zeroBits.getNumBitsSet());
        assertTrue(zeroBits.invariantHolds());
        assertEquals(0,zeroBits.getByteArray().length);
    }
View Full Code Here

        assertEquals(0,zeroBits.getNumBitsSet());
        assertTrue(zeroBits.invariantHolds());
        assertEquals(0,zeroBits.getByteArray().length);
    }
    public void testIntCtor1() {
        FormatableBitSet oneBit = new FormatableBitSet(1);
        assertEquals(1,oneBit.getLength());
        assertEquals(1,oneBit.getLengthInBytes());
        assertEquals(0,oneBit.getNumBitsSet());
        assertTrue(oneBit.invariantHolds());
        assertEquals(1,oneBit.getByteArray().length);
    }
View Full Code Here

        assertEquals(0,oneBit.getNumBitsSet());
        assertTrue(oneBit.invariantHolds());
        assertEquals(1,oneBit.getByteArray().length);
    }
    public void testIntCtor8() {
        FormatableBitSet eightBits = new FormatableBitSet(8);
        assertEquals(8,eightBits.getLength());
        assertEquals(1,eightBits.getLengthInBytes());
        assertEquals(0,eightBits.getNumBitsSet());
        assertTrue(eightBits.invariantHolds());
        assertEquals(1,eightBits.getByteArray().length);
    }
View Full Code Here

        assertEquals(0,eightBits.getNumBitsSet());
        assertTrue(eightBits.invariantHolds());
        assertEquals(1,eightBits.getByteArray().length);
    }
    public void testIntCtor9() {
        FormatableBitSet nineBits = new FormatableBitSet(9);
        assertEquals(9,nineBits.getLength());
        assertEquals(2,nineBits.getLengthInBytes());
        assertEquals(0,nineBits.getNumBitsSet());
        assertTrue(nineBits.invariantHolds());
        assertEquals(2,nineBits.getByteArray().length);
    }
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.services.io.FormatableBitSet

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.