MobilityDB 1.3
Loading...
Searching...
No Matches

◆ 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]listSkiplist
[in]keysArray of keys, may be NULL when the comparison is done with the values
[in]valuesArray of values
[in]countNumber of elements in the arrays
[out]lowerArray index of the start of the segment
[out]upperArray index of the end of the segment
[out]updateArray 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