发明名称 System and method for computing an offset sequence function in a database system
摘要 A database query compiler and compilation method has special facilities for compiling a query that includes an Offset sequence function, Offset(argument, index). During execution of the query, while the cursor for a table is pointing to a current row, the Offset function is used to access information from a previously accessed row. The argument of the Offset sequence function is a specified function of information associated with the previously accessed row of the table. The previously accessed row has a position that is index rows before the current row referenced by the cursor for the table. During compilation, the argument of the Offset sequence function is parsed to determine a set of auxiliary fields for each row of the table. Each auxiliary field of a row contains information that may be accessed during execution of the Offset sequence function while the cursor for that table is pointing to a subsequent row. The Offset sequence function is converted into a compiled set of instructions, including instructions for storing and reading the auxiliary fields to and from a buffer that is separate from the table. The buffer is preferably stored in volatile, main memory. As a result, the Offset sequence function is executed, and information from a previous row is accessed, without having to change the cursor position for the table.
申请公布号 US6298338(B1) 申请公布日期 2001.10.02
申请号 US19990277052 申请日期 1999.03.26
申请人 COMPAQ COMPUTER CORPORATION 发明人 MELTON MARK E.;WEHRMEISTER ROBERT M.;LOHMAN PETER N.
分类号 G06F17/30;(IPC1-7):G06F17/30;G06F7/00 主分类号 G06F17/30
代理机构 代理人
主权项
地址