×

Method, system, and program for processing a fetch request for a target row in a table that precedes as current row

  • US 6,754,653 B2
  • Filed: 07/26/2001
  • Issued: 06/22/2004
  • Est. Priority Date: 09/07/2000
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for making data available to an application program, comprising:

  • generating a result table including rows corresponding to a subset of rows in a base table having data in one or more columns that satisfy a query predicate clause;

    maintaining a cursor row pointer tat points to a current row in the result table;

    receiving a fetch request from the application program to reposition the cursor row pointer to a target row in the result table that precedes the current row in the result table and return the data at the target row to the application program;

    scanning a current page including the current row to determine if the target row is in the current page, wherein a plurality of pages including result table rows are organized into segments, wherein the pages within each segment include sequential rows from the result table such that the rows between the pages within one segment are sequential;

    if the current page does not include the target row, determining whether a previous page including result table rows preceding a first row in the current page includes the target row, wherein the previous page includes rows in the result table that sequentially precede the first row in the current page, and wherein if the current page is not a first page in a current segment including the current page, then the previous page comprises the page in the current segment including result table rows immediately preceding the result table rows in the current page;

    repositioning the cursor row pointer to point to the target row in the result table, wherein the cursor row pointer is repositioned to point to the target row in the previous page if the target row is in the previous page; and

    performing the fetch request at the target row addressed by the repositioned cursor row pointer.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×