PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ gserialized_gist_consistent_leaf()

static bool gserialized_gist_consistent_leaf ( GIDX *  key,
GIDX *  query,
StrategyNumber  strategy 
)
inlinestatic

Definition at line 932 of file gserialized_gist_nd.c.

References FALSE, gidx_contains(), gidx_equals(), and gidx_overlaps().

Referenced by gserialized_gist_consistent().

933 {
934  bool retval;
935 
936  POSTGIS_DEBUGF(4, "[GIST] leaf consistent, strategy [%d], count[%i]",
937  strategy, geog_counter_leaf++);
938 
939  switch (strategy)
940  {
941  case RTOverlapStrategyNumber:
942  retval = (bool) gidx_overlaps(key, query);
943  break;
944  case RTSameStrategyNumber:
945  retval = (bool) gidx_equals(key, query);
946  break;
947  case RTContainsStrategyNumber:
948  case RTOldContainsStrategyNumber:
949  retval = (bool) gidx_contains(key, query);
950  break;
951  case RTContainedByStrategyNumber:
952  case RTOldContainedByStrategyNumber:
953  retval = (bool) gidx_contains(query, key);
954  break;
955  default:
956  retval = FALSE;
957  }
958 
959  return (retval);
960 }
static bool gidx_equals(GIDX *a, GIDX *b)
static bool gidx_overlaps(GIDX *a, GIDX *b)
#define FALSE
Definition: dbfopen.c:168
static bool gidx_contains(GIDX *a, GIDX *b)
Here is the call graph for this function:
Here is the caller graph for this function: