PERSISTENT ITERATION OVER A DATABASE TREE STRUCTURE
First Claim
1. A method for persistent iteration over a database tree structure having a plurality of levels by a processor device in a computing environment, the method comprising:
- performing on a current level a first stage of the persistent iteration on those of the plurality of nodes having at least a node identification (ID) greater than a current node identification (ID) that is stored and a parent node identification (ID) equal to a parent node identification (ID) that is stored, wherein each of the plurality of nodes share a parent node and are increasingly ordered according to the node ID of each of the plurality of nodes;
wherein;
the first stage of the persistent iteration is performed if the numerical value of the current level is not equal to the numerical value of a previous level, further wherein the numerical value of the previous level is set equal to the numerical value of the current level if all of the plurality of nodes in a current level under a same parent node had the first stage of the persistent iteration performed thereon,the persistent iteration is terminated if the numerical value of the current level and the numerical value of the previous level are equal and the numerical value of the previous level equals zero, andif the numerical value of the current level and the numerical value of the previous level are equal and the numerical value of the previous level does not equal zero, at least one of;
a second stage of the persistent iteration is performed on one of the plurality of levels having those of the plurality of nodes with at least one child node not yet having the first stage of the persistent iteration performed thereon, anda third stage of the persistent iteration is performed on one of the plurality of levels having those of the plurality of nodes with all child nodes having the first stage of the persistent iteration performed thereon.
1 Assignment
0 Petitions
Accused Products
Abstract
Persistent iteration is performed in stages on nodes arranged according to a node identification (ID) that is increasing in order under a parent node in database tree structure. While performing the persistent iteration, storing a start node ID of the node where the persistent iteration commenced, a current node ID of the node that is undergoing the persistent iteration, a parent node ID of the node that is undergoing the persistent iteration, and a numerical value representing the current level and all levels greater than the current level of nodes that are undergoing the persistent iteration. Upon completion of the persistent iteration on the nodes that are the children of the node with the parent node ID, returning to the first node among the children of the node with the parent node ID, as ordered by increasing node ID, and performing the persistent iteration for children nodes of each node.
-
Citations
27 Claims
-
1. A method for persistent iteration over a database tree structure having a plurality of levels by a processor device in a computing environment, the method comprising:
performing on a current level a first stage of the persistent iteration on those of the plurality of nodes having at least a node identification (ID) greater than a current node identification (ID) that is stored and a parent node identification (ID) equal to a parent node identification (ID) that is stored, wherein each of the plurality of nodes share a parent node and are increasingly ordered according to the node ID of each of the plurality of nodes;
wherein;the first stage of the persistent iteration is performed if the numerical value of the current level is not equal to the numerical value of a previous level, further wherein the numerical value of the previous level is set equal to the numerical value of the current level if all of the plurality of nodes in a current level under a same parent node had the first stage of the persistent iteration performed thereon, the persistent iteration is terminated if the numerical value of the current level and the numerical value of the previous level are equal and the numerical value of the previous level equals zero, and if the numerical value of the current level and the numerical value of the previous level are equal and the numerical value of the previous level does not equal zero, at least one of; a second stage of the persistent iteration is performed on one of the plurality of levels having those of the plurality of nodes with at least one child node not yet having the first stage of the persistent iteration performed thereon, and a third stage of the persistent iteration is performed on one of the plurality of levels having those of the plurality of nodes with all child nodes having the first stage of the persistent iteration performed thereon. - View Dependent Claims (2, 3, 4)
- 5. (canceled)
-
9. (canceled)
-
10. A system for persistent iteration over a database tree structure having a plurality of levels in a computing environment, the system comprising:
-
an iterator used in the persistent iteration in levels in the data base tree; a plurality of counters for maintaining a numerical value for each of the plurality of levels, wherein the plurality of counters is in communication with the iterator, at least one processor device in communication with the iterator and the plurality of counters, wherein the processor device is adapted for; performing on a current level a first stage of the persistent iteration on those of the plurality of nodes having at least a node identification (ID) greater than a current node identification (ID) stored in the iterator and a parent node identification (ID) equal to a parent node identification (ID) stored in the iterator, wherein each of the plurality of nodes share a parent node and are increasingly ordered according to the node ID of each of the plurality of nodes;
wherein;the first stage of the persistent iteration is performed if the numerical value of the current level is not equal to the numerical value of a previous level, further wherein the numerical value of the previous level is set equal to the numerical value of the current level if all of the plurality of nodes in a current level under a same parent node had the first stage of the persistent iteration performed thereon, the persistent iteration is terminated if the numerical value of the current level and the numerical value of the previous level are equal and the numerical value of the previous level equals zero, and if the numerical value of the current level and the numerical value of the previous level are equal and the numerical value of the previous level does not equal zero, at least one of; a second stage of the persistent iteration is performed on one of the plurality of levels having those of the plurality of nodes with at least one child node not yet having the first stage of the persistent iteration performed thereon, and a third stage of the persistent iteration is performed on one of the plurality of levels having those of the plurality of nodes with all child nodes having the first stage of the persistent iteration performed thereon. - View Dependent Claims (11, 12, 13)
-
- 14. (canceled)
-
18. (canceled)
-
19. A computer program product for persistent iteration over a database tree structure having a plurality of levels by a processor device, the computer program product comprising a non-transitory computer-readable storage medium having computer-readable program code portions stored therein, the computer-readable program code portions comprising:
-
a first executable portion for performing on a current level a first stage of the persistent iteration on those of the plurality of nodes having at least a node identification (ID) greater than a current node identification (ID) that is stored and a parent node identification (ID) equal to a parent node identification (ID) that is stored, wherein each of the plurality of nodes share a parent node and are increasingly ordered according to the node ID of each of the plurality of nodes;
wherein;the first stage of the persistent iteration is performed if the numerical value of the current level is not equal to the numerical value of a previous level, further wherein the numerical value of the previous level is set equal to the numerical value of the current level if all of the plurality of nodes in a current level under a same parent node had the first stage of the persistent iteration performed thereon, the persistent iteration is terminated if the numerical value of the current level and the numerical value of the previous level are equal and the numerical value of the previous level equals zero, and if the numerical value of the current level and the numerical value of the previous level are equal and the numerical value of the previous level does not equal zero; a second stage of the persistent iteration is performed on one of the plurality of levels having those of the plurality of nodes with at least one child node not yet having the first stage of the persistent iteration performed thereon, and a third stage of the persistent iteration is performed on one of the plurality of levels having those of the plurality of nodes with all child nodes having the first stage of the persistent iteration performed thereon. - View Dependent Claims (20, 21, 22)
-
- 23. (canceled)
-
27. (canceled)
Specification