Combining Streaming And Navigation For Evaluating XML Queries
First Claim
Patent Images
1. A computer-implemented method comprising:
- rewriting an original query into a rewritten query, said original query including;
first path-based expressions that evaluate to first one or more values, andsecond path-based expressions;
wherein the rewritten query includes first rewritten expressions that cause the first one or more values to be computed using streaming evaluation;
wherein the rewritten query includes second rewritten expressions that correspond to said second path-based expressions; and
computing the first written expressions using a streaming evaluation; and
computing the second rewritten expressions using XML index evaluation.
1 Assignment
0 Petitions
Accused Products
Abstract
A query is rewritten to combine streaming evaluation and XML index evaluation. The query is rewritten to include a streaming operator (e.g. function) that, when executed, uses streaming evaluation. Further, the query is rewritten so that XML index evaluation of a path expression also produces location information that identifies the location of a node within an XML document. The streaming operator is able to exploit the location information to begin and end scanning rather than scanning the entire XML document.
-
Citations
20 Claims
-
1. A computer-implemented method comprising:
-
rewriting an original query into a rewritten query, said original query including; first path-based expressions that evaluate to first one or more values, and second path-based expressions; wherein the rewritten query includes first rewritten expressions that cause the first one or more values to be computed using streaming evaluation; wherein the rewritten query includes second rewritten expressions that correspond to said second path-based expressions; and computing the first written expressions using a streaming evaluation; and computing the second rewritten expressions using XML index evaluation. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer-implemented method comprising:
-
a database server rewriting an original query into a rewritten query, said original query including; first path-based expressions in a SELECT clause that evaluate to first one or more values, and second path-based expressions in both a FROM clause and a WHERE clause; wherein the rewritten query includes first rewritten expressions that cause the first one or more values to be computed using streaming evaluation; wherein the rewritten query includes second rewritten expressions that correspond to said second path-based expressions; said database server computing the first written expressions using streaming evaluation; said database server computing the second rewritten expressions using XML index evaluation; and wherein the second rewritten expressions evaluate to a certain output for location information within a representation of an XML document, wherein said output is an input to said first rewritten expressions. - View Dependent Claims (9, 10)
-
-
11. A computer-readable medium carrying one or more sequences of instructions, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
-
rewriting an original query into a rewritten query, said original query including; first path-based expressions that evaluate to first one or more values, and second path-based expressions; wherein the rewritten query includes first rewritten expressions that cause the first one or more values to be computed using streaming evaluation; wherein the rewritten query includes second rewritten expressions that correspond to said second path-based expressions; and computing the first written expressions using a streaming evaluation; and computing the second rewritten expressions using XML index evaluation. - View Dependent Claims (12, 13, 14, 15, 16, 17)
-
-
18. A computer-readable medium carrying one or more sequences of instructions, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
-
a database server rewriting an original query into a rewritten query, said original query including; first path-based expressions in a SELECT clause that evaluate to first one or more values, and second path-based expressions in both a FROM clause and a WHERE clause; wherein the rewritten query includes first rewritten expressions that cause the first one or more values to be computed using streaming evaluation; wherein the rewritten query includes second rewritten expressions that correspond to said second path-based expressions; said database server computing the first written expressions using streaming evaluation; said database server computing the second rewritten expressions using XML index evaluation; and wherein the second rewritten expressions evaluate to a certain output for location information within a representation of an XML document, wherein said output is an input to said first rewritten expressions. - View Dependent Claims (19, 20)
-
Specification