MobilityDB 1.1

◆ tbox_index_consistent_leaf()

bool tbox_index_consistent_leaf ( const TBox key,
const TBox query,
StrategyNumber  strategy 
)

R-tree GiST index for temporal integers and temporal floats.

These functions are based on those in the file gistproc.c.

Leaf-level consistency for temporal numbers.

Since temporal boxes do not distinguish between inclusive and exclusive bounds, it is necessary to generalize the tests, e.g.,

  • left : (box1->xmax < box2->xmin) => (box1->xmax <= box2->xmin) e.g., to take into account left([a,b],(b,c])
  • right : (box1->xmin > box2->xmax) => (box1->xmin >= box2->xmax) e.g., to take into account right((b,c],[a,b]) and similarly for before and after
Parameters
[in]keyElement in the index
[in]queryValue being looked up in the index
[in]strategyOperator of the operator class being applied
Note
This function is used for both GiST and SP-GiST indexes