PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ gserialized_gist_consistent_leaf()

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

Definition at line 1187 of file gserialized_gist_nd.c.

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

Referenced by gserialized_gist_consistent().

1188 {
1189  bool retval;
1190 
1191  POSTGIS_DEBUGF(4, "[GIST] leaf consistent, strategy [%d], count[%i]",
1192  strategy, geog_counter_leaf++);
1193 
1194  switch (strategy)
1195  {
1196  case RTOverlapStrategyNumber:
1197  retval = (bool) gidx_overlaps(key, query);
1198  break;
1199  case RTSameStrategyNumber:
1200  retval = (bool) gidx_equals(key, query);
1201  break;
1202  case RTContainsStrategyNumber:
1203  case RTOldContainsStrategyNumber:
1204  retval = (bool) gidx_contains(key, query);
1205  break;
1206  case RTContainedByStrategyNumber:
1207  case RTOldContainedByStrategyNumber:
1208  retval = (bool) gidx_contains(query, key);
1209  break;
1210  default:
1211  retval = FALSE;
1212  }
1213 
1214  return (retval);
1215 }
bool gidx_contains(GIDX *a, GIDX *b)
static bool gidx_equals(GIDX *a, GIDX *b)
static bool gidx_overlaps(GIDX *a, GIDX *b)
#define FALSE
Definition: dbfopen.c:168
Here is the call graph for this function:
Here is the caller graph for this function: