|
◆ keyval_skiplist_common()
int keyval_skiplist_common |
( |
SkipList * |
list, |
|
|
void ** |
keys, |
|
|
void ** |
values, |
|
|
int |
count, |
|
|
int * |
lower, |
|
|
int * |
upper, |
|
|
int |
update[SKIPLIST_MAXLEVEL] |
|
) |
| |
Output the skiplist in graphviz dot format for visualisation and debugging purposes.
Determine the segment of the list that overlaps with the new set of key-value pairs - Parameters
-
[in] | list | Skiplist |
[in] | keys | Array of keys, may be NULL when the comparison is done with the values |
[in] | values | Array of values |
[in] | count | Number of elements in the arrays |
[out] | lower | Array index of the start of the segment |
[out] | upper | Array index of the end of the segment |
[out] | update | Array of indices keeping the levels of the elements to insert |
- Returns
- Number of elements in the list that will be merged with the new values, on error return -1
|