MobilityDB  1.0

◆ tbox_index_consistent_leaf()

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

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