HIERARCHICAL WINDOW FUNCTION
First Claim
1. A system, comprising:
- at least one data processor; and
at least one memory storing instructions which, when executed by the at least one data processor, result in operations comprising;
generating, based at least on a representation of a first hierarchy stored in a database, a visiting sequence data structure, the first hierarchy being stored in a table in the database, each of a plurality of rows comprising the table corresponding to one of a plurality of nodes comprising the first hierarchy, and the visiting sequence data structure include a first row vector specifying an order for traversing the plurality of nodes in the first hierarchy; and
executing a hierarchical window function by at least iterating through the plurality of rows comprising the table in accordance with the order specified by the first row vector and determining, for a first node in the first hierarchy, a summary value corresponding to a first value of the first node and a second value of a second node descendent from the first node.
1 Assignment
0 Petitions
Accused Products
Abstract
A method may include generating, based on a representation of a hierarchy stored in a database, a visiting sequence data structure. The hierarchy may be stored in a table in the database. Each of a plurality of rows comprising the table may correspond to one of a plurality of nodes comprising the hierarchy. The visiting sequence data structure may include a row vector specifying an order for traversing the plurality of nodes in the hierarchy. A hierarchical window function may be executed by iterating through the plurality of rows in the table in accordance with the order specified by the row vector. The execution of the hierarchical window function may further include determining, for a first node in the hierarchy, a summary value corresponding to a first value of the first node and a second value of a second node descendent from the first node.
1 Citation
20 Claims
-
1. A system, comprising:
-
at least one data processor; and at least one memory storing instructions which, when executed by the at least one data processor, result in operations comprising; generating, based at least on a representation of a first hierarchy stored in a database, a visiting sequence data structure, the first hierarchy being stored in a table in the database, each of a plurality of rows comprising the table corresponding to one of a plurality of nodes comprising the first hierarchy, and the visiting sequence data structure include a first row vector specifying an order for traversing the plurality of nodes in the first hierarchy; and executing a hierarchical window function by at least iterating through the plurality of rows comprising the table in accordance with the order specified by the first row vector and determining, for a first node in the first hierarchy, a summary value corresponding to a first value of the first node and a second value of a second node descendent from the first node. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer-implemented method, comprising:
-
generating, based at least on a representation of a first hierarchy stored in a database, a visiting sequence data structure, the first hierarchy being stored in a table in the database, each of a plurality of rows comprising the table corresponding to one of a plurality of nodes comprising the first hierarchy, and the visiting sequence data structure include a first row vector specifying an order for traversing the plurality of nodes in the first hierarchy; and executing a hierarchical window function by at least iterating through the plurality of rows comprising the table in accordance with the order specified by the first row vector and determining, for a first node in the first hierarchy, a summary value corresponding to a first value of the first node and a second value of a second node descendent from the first node. - View Dependent Claims (14, 15, 16, 17, 18, 19)
-
-
20. A non-transitory computer readable medium storing instructions, which when executed by at least one data processor, result in operations comprising:
-
generating, based at least on a representation of a first hierarchy stored in a database, a visiting sequence data structure, the first hierarchy being stored in a table in the database, each of a plurality of rows comprising the table corresponding to one of a plurality of nodes comprising the first hierarchy, and the visiting sequence data structure include a first row vector specifying an order for traversing the plurality of nodes in the first hierarchy; and executing a hierarchical window function by at least iterating through the plurality of rows comprising the table in accordance with the order specified by the first row vector and determining, for a first node in the first hierarchy, a summary value corresponding to a first value of the first node and a second value of a second node descendent from the first node.
-
Specification