Examples of UuidFactory

All references in this code to bit positions as "least significant" and "most significant" refer to the bits moving from right to left, respectively.


Examples of com.hp.hpl.jena.shared.uuid.UUIDFactory

          // [elementName, BEGIN_PROPERTIES, propName, BEGIN_VALUES,
          // val1, val2, END_PROPERTY_VALUES, BEGIN_PROPERTIES,
          // propName, BEGIN_VALUES,
          // val1, val2, END_PROPERTY_VALUES]
          // I add connection tuple Input and Output properties
          UUIDFactory factory = new UUID_V4_Gen();
          Resource subject = model
              .createResource(AdmireRegistryConstants.PlatformOntologyURI
                  + factory.generate().asUUID());

          i++;
          RDFNode objectST;
          Statement stmPropValue;
          String property = "";
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

  private void initializeCoreInfo()
    throws StandardException
  {
    TabInfoImpl[] lcoreInfo = coreInfo = new TabInfoImpl[NUM_CORE];

    UUIDFactory luuidFactory = uuidFactory;

    lcoreInfo[SYSTABLES_CORE_NUM] =
      new TabInfoImpl(new SYSTABLESRowFactory(luuidFactory, exFactory, dvf));
    lcoreInfo[SYSCOLUMNS_CORE_NUM] =
      new TabInfoImpl(new SYSCOLUMNSRowFactory(luuidFactory, exFactory, dvf));
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

      // load it into the array. There is a small chance that
      // two threads will do this at the same time. The code will
      // work properly in that case, since storing a reference
      // is atomic (although we could get extra object instantiation
      // if two threads come through here at the same time.
      UUIDFactory luuidFactory = uuidFactory;

      switch (catalogNumber)
      {
        case SYSCONSTRAINTS_CATALOG_NUM:
        retval = new TabInfoImpl(new SYSCONSTRAINTSRowFactory(
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

        "Wrong number of columns for a SYSSTATISTICS row");
    }

    DataValueDescriptor col;
    String scratch;
    UUIDFactory uuidFactory = getUUIDFactory();
    UUID statUUID, statReferenceUUID, statTableUUID;
    String statName;
   
    /* 1st column is UUID */
    col = row.getColumn(SYSSTATISTICS_ID);
    scratch = col.getString();
    statUUID = uuidFactory.recreateUUID(scratch);

    /* 2nd column is reference UUID */
    col = row.getColumn(SYSSTATISTICS_REFERENCEID);
    scratch = col.getString();
    statReferenceUUID = uuidFactory.recreateUUID(scratch);

    /* 3rd column is table UUID */
    col = row.getColumn(SYSSTATISTICS_TABLEID);
    scratch = col.getString();
    statTableUUID = uuidFactory.recreateUUID(scratch);

    /* 4th column is timestamp */
    col = row.getColumn(SYSSTATISTICS_TIMESTAMP);
    Timestamp updateTime = (Timestamp) col.getObject();

View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

    }

    /* Generate the UUID for the backing index.  This will become the
     * constraint's name, if no name was specified.
     */
    UUIDFactory uuidFactory = dd.getUUIDFactory();
       
    /* Create the index, if there's one for this constraint */
    if (indexAction != null)
    {
      if ( indexAction.getIndexName() == null )
      {
        /* Set the index name */
        backingIndexName =  uuidFactory.createUUID().toString();
        indexAction.setIndexName(backingIndexName);
      }
      else { backingIndexName = indexAction.getIndexName(); }


      /* Create the index */
      indexAction.executeConstantAction(activation);

      /* Get the conglomerate descriptor for the backing index */
      conglomDescs = td.getConglomerateDescriptors();

      for (int index = 0; index < conglomDescs.length; index++)
      {
        conglomDesc = conglomDescs[index];

        /* Check for conglomerate being an index first, since
         * name is null for heap.
         */
        if (conglomDesc.isIndex() &&
          backingIndexName.equals(conglomDesc.getConglomerateName()))
        {
          break;
        }
      }

      if (SanityManager.DEBUG)
      {
        SanityManager.ASSERT(conglomDesc != null,
          "conglomDesc is expected to be non-null after search for backing index");
        SanityManager.ASSERT(conglomDesc.isIndex(),
          "conglomDesc is expected to be indexable after search for backing index");
        SanityManager.ASSERT(conglomDesc.getConglomerateName().equals(backingIndexName),
         "conglomDesc name expected to be the same as backing index name after search for backing index");
      }

      indexId = conglomDesc.getUUID();
    }

    UUID constraintId = uuidFactory.createUUID();

    /* Now, lets create the constraint descriptor */
    DataDescriptorGenerator ddg = dd.getDataDescriptorGenerator();
    switch (constraintType)
    {
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

            throws StandardException {
        TransactionController tc = lcc.getTransactionExecute();
        trace(1, "writing new stats (xid=" + tc.getTransactionIdString() + ")");
        UUID table = td.getUUID();
        DataDictionary dd = lcc.getDataDictionary();
        UUIDFactory uf = dd.getUUIDFactory();

        // Update the heap row count estimate.
        setHeapRowEstimate(tc, td.getHeapConglomerateId(), numRows);
        // Invalidate statments accessing the given table.
        // Note that due to retry logic, swithcing the data dictionary to
        // write mode is done inside invalidateStatements.
        invalidateStatements(lcc, td, asBackgroundTask);
        // Drop existing index statistics for this index.
        dd.dropStatisticsDescriptors(table, index, tc);

        // Don't write statistics if the table is empty.
        if (numRows == 0) {
            trace(2, "empty table, no stats written");
        } else {
            // Construct and add the statistics entries.
            for (int i=0; i < cardinality.length; i++) {
                StatisticsDescriptor statDesc = new StatisticsDescriptor(
                        dd, uf.createUUID(), index, table, "I",
                     new StatisticsImpl(numRows, cardinality[i]),
                     i+1);
                dd.addDescriptor(statDesc, null,
                        DataDictionary.SYSSTATISTICS_CATALOG_NUM, true, tc);
            }
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

  public void  boot(boolean create, Properties startParams)
    throws StandardException
  {
    // Find the UUID factory.
    UUIDFactory uuidFactory =
            Monitor.getMonitor().getUUIDFactory();

    // Make a UUID that identifies this conglomerate's format.
    formatUUID = uuidFactory.recreateUUID(FORMATUUIDSTRING);
  }
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

    jbmsVersion = Monitor.getMonitor().getEngineVersion();

    dataDirectory = startParams.getProperty(PersistentService.ROOT);

    UUIDFactory uf = Monitor.getMonitor().getUUIDFactory();

    identifier = uf.createUUID();

        PersistentService ps = Monitor.getMonitor().getServiceType(this);

        try
        {
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

    this.indexable = indexable;
    this.indexRowGenerator = indexRowGenerator;
    this.forConstraint = forConstraint;
    if (uuid == null)
    {
      UUIDFactory uuidFactory = Monitor.getMonitor().getUUIDFactory();
      uuid = uuidFactory.createUUID();
    }
    this.uuid = uuid;
    this.tableID = tableID;
    this.schemaID = schemaID;
  }
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

                       indexColumnPositions.length : 0;

    this.catalogName = catalogName;
    this.columnCount = columnCount;

    UUIDFactory  uf = getUUIDFactory();
    this.tableUUID = uf.recreateUUID(uuidStrings[0] );
    this.heapUUID = uf.recreateUUID( uuidStrings[1] );

    if (indexCount > 0)
    {
      indexNames = new String[indexCount];
      indexUUID = new UUID[indexCount];
      for (int ictr = 0; ictr < indexCount; ictr++)
      {
        indexNames[ictr] = generateIndexName(ictr);
        indexUUID[ictr] = uf.recreateUUID(uuidStrings[ictr + 2 ]);
      }
      this.indexColumnPositions = indexColumnPositions;
      this.indexUniqueness = indexUniqueness;
    }
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.