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

Examples of org.apache.derby.iapi.store.access.conglomerate.Conglomerate


                accessmanager.getNextConglomId(
                    cfactory.getConglomerateFactoryId());
        }

        // call the factory to actually create the conglomerate.
        Conglomerate conglom =
            cfactory.createConglomerate(
                this, segment, conglomid, template,
                columnOrder, collationIds, properties, temporaryFlag);

    long conglomId;
    if ((temporaryFlag & TransactionController.IS_TEMPORARY)
        == TransactionController.IS_TEMPORARY)
    {
      conglomId = nextTempConglomId--;
      if (tempCongloms == null)
        tempCongloms = new HashMap();
      tempCongloms.put(new Long(conglomId), conglom);
    }
    else
    {
      conglomId = conglom.getContainerid();

            accessmanager.conglomCacheAddEntry(conglomId, conglom);
    }

    return conglomId;
View Full Code Here


      {
                for (Iterator it = tempCongloms.keySet().iterator();
                     it.hasNext(); )
                {
          Long conglomId = (Long) it.next();
          Conglomerate c = (Conglomerate) tempCongloms.get(conglomId);
          str += "temp conglomerate id = " + conglomId + ": " + c;
        }
      }

        }
View Full Code Here

    }

    public boolean conglomerateExists(long conglomId)
    throws StandardException
  {
    Conglomerate conglom = findConglomerate(conglomId);
    if (conglom == null)
      return false;
    return true;
  }
View Full Code Here

  }

    public void dropConglomerate(long conglomId)
    throws StandardException
  {
    Conglomerate conglom = findExistingConglomerate(conglomId);

    conglom.drop(this);

    if (conglomId < 0)
    {
      if (tempCongloms != null)
        tempCongloms.remove(new Long(conglomId));
View Full Code Here

    FormatableBitSet                 scanColumnList,
    DataValueDescriptor[]   fetchRow)
        throws StandardException
    {
    // Find the conglomerate.
    Conglomerate conglom = findExistingConglomerate(conglomId);

    // Get a scan controller.
        return(
            conglom.fetchMaxOnBTree(
                this,
                rawtran,
                conglomId,
                open_mode,
                lock_level,
View Full Code Here

    boolean                 createConglom,
    RowLocationRetRowSource rowSource)
    throws StandardException
  {
    // Find the conglomerate.
    Conglomerate conglom = findExistingConglomerate(conglomId);

    // Load up the conglomerate with rows from the rowSource.
    // Don't need to keep track of the conglomerate controller because load
    // automatically closes it when it finished.
    return(conglom.load(this, createConglom, rowSource));
  }
View Full Code Here

        SanityManager.THROWASSERT(
                "Bad lock level to openScan:" + lock_level);
        }

    // Find the conglomerate.
    Conglomerate conglom = findExistingConglomerate(conglomId);

    // Get a scan controller.
    ScanManager sm =
            conglom.openScan(
                this, rawtran, hold, open_mode,
                determine_lock_level(lock_level),
                determine_locking_policy(lock_level, isolation_level),
                isolation_level,
                scanColumnList,
View Full Code Here

        SanityManager.THROWASSERT(
                "Bad lock level to openScan:" + lock_level);
        }

    // Find the conglomerate.
    Conglomerate conglom = findExistingConglomerate(conglomId);

    // Get a scan controller.
    ScanManager sm =
            conglom.defragmentConglomerate(
                this,
                rawtran,
                hold,
                open_mode,
                determine_lock_level(lock_level),
View Full Code Here

    public StoreCostController openStoreCost(
    long        conglomId)
    throws StandardException
    {
    // Find the conglomerate.
    Conglomerate conglom = findExistingConglomerate(conglomId);

    // Get a scan controller.
    StoreCostController scc = conglom.openStoreCost(this, rawtran);

    return(scc);
    }
View Full Code Here

    }

  private Conglomerate findExistingConglomerate(long conglomId)
    throws StandardException
  {
    Conglomerate conglom = null;

    if (conglomId < 0)
    {
      if (tempCongloms != null)
        conglom = (Conglomerate) tempCongloms.get(new Long(conglomId));
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.store.access.conglomerate.Conglomerate

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.