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

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


  }

    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

    /* package */ Conglomerate conglomCacheFind(
    TransactionManager  xact_mgr,
    long                conglomid)
        throws StandardException
    {
        Conglomerate conglom       = null;
        Long         conglomid_obj = new Long(conglomid);

        CacheableConglomerate cache_entry =
            (CacheableConglomerate) conglom_cache.find(conglomid_obj);

View Full Code Here

    }

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

    if (conglom == null)
        {
      throw StandardException.newException(
                SQLState.STORE_CONGLOMERATE_DOES_NOT_EXIST,
View Full Code Here

  }

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

    if (conglomId >= 0)
        {
            conglom = accessmanager.conglomCacheFind(this, conglomId);
        }
View Full Code Here

    int         collation_id)
    throws StandardException
    {
        boolean is_temporary = (conglomId < 0);

    Conglomerate conglom = findConglomerate(conglomId);
    if (conglom == null)
        {
      throw StandardException.newException(
                SQLState.AM_NO_SUCH_CONGLOMERATE_DROP, new Long(conglomId));
        }

        // Get exclusive lock on the table being altered.
    ConglomerateController cc =
            conglom.open(
                this, rawtran, false, OPENMODE_FORUPDATE,
                MODE_TABLE,
                accessmanager.table_level_policy[
                    TransactionController.ISOLATION_SERIALIZABLE],
                (StaticCompiledOpenConglomInfo) null,
                (DynamicCompiledOpenConglomInfo) null);

    conglom.addColumn(this, column_id, template_column, collation_id);

        // Set an indication that ALTER TABLE has been called so that the
        // conglomerate will be invalidated if an error happens. Only needed
        // for non-temporary conglomerates, since they are the only ones that
        // live in the conglomerate cache.
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.