Expression tree data structure for representing a database query
Abstract
A method, apparatus and program product are provided for representing a database query expression including a plurality of predicates related to one another by at least one logical relation. A list of operands is generated from the database query expression, where each operand is representative of a predicate. Each operand is mapped into an operand map. A data structure is generated based upon the generated list of operands, where the data structure includes a plurality of nodes. Each node includes an operand identifier that identifies at least one operand based upon the operand map. Each node defines a first logical relation between those predicates in the database query expression that are represented by operands identified by the operand identifier for such node. The nodes are arranged relative to one another in the data structure to define at least a second logical relation among predicates in the database query expression.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of representing a database query expression for use during execution of the query expression by a computer, wherein the database query expression includes a plurality of predicates related to one another by at least one logical relation, the method comprising: generating a plurality of operands from the database query expression, wherein each operand in the plurality of operands is representative of a predicate in the plurality of predicates; assigning each operand in the plurality of operands to a separate bit in a binary operand map, the number of bits in the binary operand map base
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (16)
Non-Patent Literature (3)
- Claussen, Jens, et al., Optimization and Evaluation of Disjunctive Queries, Knowledge and Data Engineering, IEEE Transactions on vol. 12, issue 2, Mar.-Apr. 2000 pp. 238-260.
- Database Systems Query Processing cont'd, http://sky.fit.qut.edu.au/~milliner/itb-n-232/lectures/lect005wk6.ppt, downloaded Nov. 29, 2007, 34 pages.
- Database Systems Query Processing cont'd, http://sky.fit.qut.edu.au/˜milliner/itb—n—232/lectures/lect005wk6.ppt, downloaded Nov. 29, 2007, 34 pages.