Rejecting rows when scanning a collision chain
First Claim
Patent Images
1. A method, comprising:
- computing a hash value using a hash key value for a target row and computing a row filter value for the target row, wherein the computed row filter value for the target row is a portion of the computed hash value;
in response to determining that the target row has overflowed, storing an overflow filter value for the target row in a page filter of a page, wherein the overflow filter value is the portion of the computed hash value; and
in response to determining that the computed row filter value matches a stored row filter value for a row in a collision chain and the hash key value matches a stored hash key value for the row in the collision chain, retrieving the row from the collision chain.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided are techniques for rejecting rows while locating a target row. For a row that is stored in a hash space, a row filter value is generated for that row, and the row filter value is stored with the row. While trying to locate the target row in a collision chain in the hash space, a row filter value is calculated for the target row. For the row in the collision chain, the stored row filter value of the row in the collision chain is compared with the computed row filter value of the target row. In response to determining that the stored row filter value does not match the computed row filter value, it is determined that the row in the collision chain is not the target row.
17 Citations
18 Claims
-
1. A method, comprising:
-
computing a hash value using a hash key value for a target row and computing a row filter value for the target row, wherein the computed row filter value for the target row is a portion of the computed hash value; in response to determining that the target row has overflowed, storing an overflow filter value for the target row in a page filter of a page, wherein the overflow filter value is the portion of the computed hash value; and in response to determining that the computed row filter value matches a stored row filter value for a row in a collision chain and the hash key value matches a stored hash key value for the row in the collision chain, retrieving the row from the collision chain. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product, comprising:
-
a non-transitory computer readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising; computer readable program code, when executed by a processor of a computer, configured to perform; computing a hash value using a hash key value for a target row and computing a row filter value for the target row, wherein the computed row filter value for the target row is a portion of the computed hash value; in response to determining that the target row has overflowed, storing an overflow filter value for the target row in a page filter of a page, wherein the overflow filter value is the portion of the computed hash value; and in response to determining that the computed row filter value for the target row matches a stored row filter value for a row in a collision chain and the hash key value matches a stored hash key value for the row in the collision chain, retrieving the row from the collision chain. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer system, comprising:
-
a processor; and a storage device coupled to the processor, wherein the storage device has stored thereon a program, and wherein the processor is configured to execute instructions of the program to perform operations, wherein the operations comprise; computing a hash value using a hash key value for a target row and computing a row filter value for the target row, wherein the computed row filter value for the target row is a portion of the computed hash value; in response to determining that the target row has overflowed, storing an overflow filter value for the target row in a page filter of a page, wherein the overflow filter value is the portion of the computed hash value; and in response to determining that the computed row filter value for the target row matches a stored row filter value for a row in a collision chain and the hash key value matches a stored hash key value for the row in the collision chain, retrieving the row from the collision chain. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification