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

◆ tbox_index_leaf_consistent()

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

Leaf consistency for temporal numbers.

Basic routines for indexing temporal values.

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