FAST MULTI-TIER INDEXING SUPPORTING DYNAMIC UPDATE
First Claim
1. A method for inserting an entry into a multi-tier data structure comprising:
- performing a lookup using a key of the entry by a hashing processor, into a root node of the multi-tier data structure, to find a partition for performing an insert operation;
performing a lookup for the key, by the hashing processor, on a first level index that is part of a linked data structure holding entries for the found partition;
based on data structure criterion, adding, by the hashing processor, a payload or reference to the payload to the linked data structure upon finding the key, otherwise if the key is not found, adding the key and the payload to the linked data structure;
based on data structure criterion, creating, by a data structure processor, a new first level index and adding the new first level index to the linked data structure upon the linked data structure remaining unchanged since starting the lookup for the key, and adding the key and the payload or the reference to payload to the new index; and
based on a merge criterion, creating, by the data structure processor, a new second level index and merging a portion of content from selected first level and second level indexes into the new second level index.
1 Assignment
0 Petitions
Accused Products
Abstract
A method includes performing a lookup using a key into a root node of a multi-tier data structure, to find a partition for performing an insert. A lookup for the key is performed on a first level index that is part of a linked data structure. A payload or reference is added to the linked data structure based on data structure criterion, otherwise the key and the payload are added to the linked data structure if the key is not found. A new first level index is created and added to the linked data structure upon the linked data structure remaining unchanged. The key and the payload or reference are added to the new index. Based on merge criterion, a new second level index is created and a portion of content from selected first level and second level indexes are merged for combining into the new second level index.
-
Citations
20 Claims
-
1. A method for inserting an entry into a multi-tier data structure comprising:
-
performing a lookup using a key of the entry by a hashing processor, into a root node of the multi-tier data structure, to find a partition for performing an insert operation; performing a lookup for the key, by the hashing processor, on a first level index that is part of a linked data structure holding entries for the found partition; based on data structure criterion, adding, by the hashing processor, a payload or reference to the payload to the linked data structure upon finding the key, otherwise if the key is not found, adding the key and the payload to the linked data structure; based on data structure criterion, creating, by a data structure processor, a new first level index and adding the new first level index to the linked data structure upon the linked data structure remaining unchanged since starting the lookup for the key, and adding the key and the payload or the reference to payload to the new index; and based on a merge criterion, creating, by the data structure processor, a new second level index and merging a portion of content from selected first level and second level indexes into the new second level index. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer program product for inserting an entry into a multi-tier data structure, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code executable by a processor to:
-
perform a lookup using a key of the entry, by the processor, into a root node of said data structure to find a partition for performing an insert operation; perform a lookup for the key, by the processor, on a first level index that is part of a linked data structure holding entries for the found partition; based on data structure criterion, add, by the processor, a payload or reference to the payload to the linked data structure upon finding the key, otherwise if the key is not found, adding the key and the payload to the linked data structure; based on data structure criterion, create, by a data structure processor, a new first level index and adding the new first level index to the linked data structure upon the linked data structure remaining unchanged since starting the lookup for the key, and adding the key and the payload or the reference to the payload to the new index; and based on a merge criterion, create, by the data structure processor, a new second level index and merging a portion of content from selected first level and second level indexes into the new second level index. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A system comprising:
-
a hashing processor that performs a lookup using a key of an entry into a root node of a multi-tier data structure to find a partition for performing an insert operation, performs a lookup for the key on a first level index that is part of a linked data structure holding entries for the found partition, and based on data structure criterion, adds a payload or a reference to the payload to the linked data structure upon finding the key, otherwise if the key is not found, adding the key and the payload to the linked data structure; and a data structure processor that, based on data structure criterion, creates a new first level index and adds the new first level index to the linked data structure upon the linked data structure remaining unchanged since starting the lookup for the key, and adds the key and the payload or to the reference to the payload to the new index, and based on a merge criterion, creates a new second level index and merges a portion of content from selected first level and second level indexes into the new second level index. - View Dependent Claims (18, 19, 20)
-
Specification