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

◆ stbox_index_leaf_consistent()

bool stbox_index_leaf_consistent ( const STBox key,
const STBox query,
StrategyNumber  strategy 
)

Basic routines for indexing temporal numbers.

Basic routines for indexing temporal numbers.

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

  • before : (box1->tmax < box2->tmin) => (box1->tmax <= box2->tmin) e.g., to take into account before([a,b],(b,c])
  • after : (box1->tmin > box2->tmax) => (box1->tmin >= box2->tmax) e.g., to take into account after((b,c],[a,b])
    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