Package org.apache.derby.iapi.store.raw

Examples of org.apache.derby.iapi.store.raw.PageKey


  protected BasePage getAllocPage(long pageNumber) throws StandardException
  {
    if (getCommittedDropState()) // committed and dropped, cannot get a page
      return null;

    PageKey pageSearch = new PageKey(identity, pageNumber);
    BasePage page = (BasePage) pageCache.find(pageSearch);

    if (SanityManager.DEBUG)
    {
      if (page == null)
View Full Code Here


   */
  protected BasePage getLatchedPage(BaseContainerHandle handle,
                                        long pageNumber)
    throws StandardException
  {
    PageKey pageKey = new PageKey(identity, pageNumber);
    BasePage page = (BasePage) pageCache.find(pageKey);
       
    if (SanityManager.DEBUG){
      SanityManager.ASSERT(page != null, "page is not found :" + pageKey);
    }
View Full Code Here

    boolean error = false;
    int count = 0;

    while(count < preAllocSize)
    {
      PageKey pkey = new PageKey(identity,
                     lastPreallocPagenum+count+1);
      try
      {
        // create Identity will do a writePage
        page.createIdentity(pkey, createArgs);
View Full Code Here

      SanityManager.ASSERT(key instanceof PageKey);
    }

    initialize();

    PageKey newIdentity = (PageKey) key;

    FileContainer myContainer =
            (FileContainer) containerCache.find(newIdentity.getContainerId());

    setContainerRowCount(myContainer.getEstimatedRowCount(0));

    try
    {
View Full Code Here

      SanityManager.ASSERT(key instanceof PageKey);
    }

    initialize();

    PageKey newIdentity = (PageKey) key;

    PageCreationArgs createArgs = (PageCreationArgs) createParameter;
        int formatId = createArgs.formatId;

    if (formatId == -1)
View Full Code Here

   **/
    public String diag()
        throws StandardException
    {
        RecordId record_id      = (RecordId) diag_object;
        PageKey  page_key       = (PageKey)record_id.getPageId();
        long     container_id   = page_key.getContainerId().getContainerId();
        long     conglom_id     = Long.MIN_VALUE;
        String   str            = null;

        if (conglom_id ==  Long.MIN_VALUE)
        {
View Full Code Here

     **/
    public void diag_detail(Properties prop)
        throws StandardException
    {
        RecordId record_id      = (RecordId) diag_object;
        PageKey  page_key       = (PageKey)record_id.getPageId();

        prop.put(RowLock.DIAG_CONTAINERID,
            Long.toString(page_key.getContainerId().getContainerId()));

        prop.put(RowLock.DIAG_SEGMENTID,
            Long.toString(page_key.getContainerId().getSegmentId()));

        prop.put(RowLock.DIAG_PAGENUM,
            Long.toString(record_id.getPageNumber()));

        prop.put(RowLock.DIAG_RECID,
View Full Code Here

        Last slot number this record id was at.
    */
    transient private int slotNumberHint;

  public RecordId(ContainerKey container, long pageNumber, int recordId) {
    this.pageId = new PageKey(container, pageNumber);
    this.recordId = recordId;

    // FIRST_SLOT_NUMBER guaranteed to be zero
        // this.slotNumberHint = Page.FIRST_SLOT_NUMBER;
  }
View Full Code Here

  /**
    Reset the pageNumber
  */
  protected final void resetPageNumber(long pageNumber)
  {
    pageId = new PageKey(pageId.getContainerId(), pageNumber);
  }
View Full Code Here

      SanityManager.ASSERT(key instanceof PageKey);
    }

    initialize();

    PageKey newIdentity = (PageKey) key;

    FileContainer myContainer =
            (FileContainer) containerCache.find(newIdentity.getContainerId());

    setContainerRowCount(myContainer.getEstimatedRowCount(0));

    try
    {
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.store.raw.PageKey

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.