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

◆ verify_search()

static void verify_search ( const char *  name,
const RTree rtree,
RTreeSearchOp  op,
const void *  query,
const char *  boxes,
size_t  bboxsize,
MeosArray ids,
bool(*)(const void *, const void *)  predicate 
)
static

Generic test harness: compare R-tree search results against a brute-force scan using the given predicate.

Parameters
[in]nameLabel for the test (e.g., "FLOATSPAN overlaps")
[in]rtreeThe R-tree to search
[in]opThe search operation (overlaps, contains, contained by)
[in]queryThe query bounding box
[in]boxesArray of stored bounding boxes
[in]bboxsizeSize of each bounding box in bytes
[in]idsReusable MeosArray for collecting results
[in]predicateBrute-force predicate matching the search operation