Query conditions having filtered fields within a data abstraction environment
First Claim
Patent Images
1. A computer-implemented method, comprising:
- providing an abstraction model defining a plurality of logical fields each having a respective access method specifying a technique for accessing underlying physical data, the access method selected from two or more distinct types of access methods, wherein the plurality of logical fields includes a plurality of filtered fields defined as having a filtered access method in the abstraction model, wherein the abstraction model includes, for each of the plurality of filtered fields, a filtered field definition specifying a respective;
(i) field name that uniquely identifies the filtered field and is distinct from a corresponding field name in the underlying physical data, (ii) first column, (iii) second column and (iv) filter value, wherein each filtered field is configured to return a subset of values from the first column based on which values within the second column correspond to the filter value;
receiving an abstract query including an abstract query condition that specifies two or more filtered fields of the plurality of filtered fields;
determining that the two or more filtered fields are compatible fields, based on a determination that the filtered field definitions for the two or more filtered fields all reference a same first column and a same second column of the underlying physical data; and
upon determining that the abstract query contains compatible fields;
generating an executable query from the abstract query by mapping fields from the abstract query to fields corresponding to values within the underlying physical data based on the abstraction model, wherein the abstract query condition specifying the two or more filtered fields is reflected in a single sub-query of the executable query; and
executing the executable query to produce a set of query results.
2 Assignments
0 Petitions
Accused Products
Abstract
Embodiments of the invention provide techniques for composing and executing queries using filtered fields. In one embodiment, a query may be composed with compatible fields, meaning filtered fields that store related data of a particular data type. Such compatible fields may be combined into a single query condition, thus simplifying the composition and execution of the query. In one embodiment, fields may be identified as compatible based on metadata included in a database abstraction model.
-
Citations
20 Claims
-
1. A computer-implemented method, comprising:
-
providing an abstraction model defining a plurality of logical fields each having a respective access method specifying a technique for accessing underlying physical data, the access method selected from two or more distinct types of access methods, wherein the plurality of logical fields includes a plurality of filtered fields defined as having a filtered access method in the abstraction model, wherein the abstraction model includes, for each of the plurality of filtered fields, a filtered field definition specifying a respective;
(i) field name that uniquely identifies the filtered field and is distinct from a corresponding field name in the underlying physical data, (ii) first column, (iii) second column and (iv) filter value, wherein each filtered field is configured to return a subset of values from the first column based on which values within the second column correspond to the filter value;receiving an abstract query including an abstract query condition that specifies two or more filtered fields of the plurality of filtered fields; determining that the two or more filtered fields are compatible fields, based on a determination that the filtered field definitions for the two or more filtered fields all reference a same first column and a same second column of the underlying physical data; and upon determining that the abstract query contains compatible fields; generating an executable query from the abstract query by mapping fields from the abstract query to fields corresponding to values within the underlying physical data based on the abstraction model, wherein the abstract query condition specifying the two or more filtered fields is reflected in a single sub-query of the executable query; and executing the executable query to produce a set of query results. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer-readable storage medium including a program, which when executed on a processor performs an operation, the operation comprising:
-
providing an abstraction model defining a plurality of logical fields each having a respective access method specifying a technique for accessing underlying physical data, the access method selected from two or more distinct types of access methods, wherein the plurality of logical fields includes a plurality of filtered fields defined as having a filtered access method in the abstraction model, wherein the abstraction model includes, for each of the plurality of filtered fields, a filtered field definition specifying a respective;
(i) field name that uniquely identifies the filtered field and is distinct from a corresponding field name in the underlying physical data, (ii) first column, (iii) second column and (iv) filter value, wherein each filtered field is configured to return a subset of values from the first column based on which values within the second column correspond to the filter value;receiving an abstract query including an abstract query condition that specifies two or more filtered fields of the plurality of filtered fields; determining that the two or more filtered fields are compatible fields, based on a determination that the filtered field definitions for the two or more filtered fields all reference a same first column and a same second column of the underlying physical data; and upon determining that the abstract query contains compatible fields; generating an executable query from the abstract query by mapping fields from the abstract query to fields corresponding to values within the underlying physical data based on the abstraction model, wherein the abstract query condition specifying the two or more filtered fields is reflected in a single sub-query of the executable query; and executing the executable query to produce a set of query results. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A system, comprising:
-
a processor; and a memory containing a program, which when executed by the processor is configured to perform an operation, the operation comprising; providing an abstraction model defining a plurality of logical fields each having a respective access method specifying a technique for accessing underlying physical data, the access method selected from two or more distinct types of access methods, wherein the plurality of logical fields includes a plurality of filtered fields defined as having a filtered access method in the abstraction model, wherein the abstraction model includes, for each of the plurality of filtered fields, a filtered field definition specifying a respective;
(i) field name that uniquely identifies the filtered field and is distinct from a corresponding field name in the underlying physical data, (ii) first column, (iii) second column and (iv) filter value, wherein each filtered field is configured to return a subset of values from the first column based on which values within the second column correspond to the filter value;receiving an abstract query including an abstract query condition that specifies two or more filtered fields of the plurality of filtered fields; determining that the two or more filtered fields are compatible fields, based on a determination that the filtered field definitions for the two or more filtered fields all reference a same first column and a same second column of the underlying physical data; and upon determining that the abstract query contains compatible fields; generating an executable query from the abstract query by mapping fields from the abstract query to fields corresponding to values within the underlying physical data based on the abstraction model, wherein the abstract query condition specifying the two or more filtered fields is reflected in a single sub-query of the executable query; and executing the executable query to produce a set of query results. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification