PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gserialized_gist_consistent_leaf()

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

Definition at line 1188 of file gserialized_gist_nd.c.

1189 {
1190  bool retval;
1191 
1192  POSTGIS_DEBUGF(4, "[GIST] leaf consistent, strategy [%d], count[%i]",
1193  strategy, geog_counter_leaf++);
1194 
1195  switch (strategy)
1196  {
1197  case RTOverlapStrategyNumber:
1198  retval = (bool) gidx_overlaps(key, query);
1199  break;
1200  case RTSameStrategyNumber:
1201  retval = (bool) gidx_equals(key, query);
1202  break;
1203  case RTContainsStrategyNumber:
1204  case RTOldContainsStrategyNumber:
1205  retval = (bool) gidx_contains(key, query);
1206  break;
1207  case RTContainedByStrategyNumber:
1208  case RTOldContainedByStrategyNumber:
1209  retval = (bool) gidx_contains(query, key);
1210  break;
1211  default:
1212  retval = false;
1213  }
1214 
1215  return (retval);
1216 }
bool gidx_contains(GIDX *a, GIDX *b)
static bool gidx_equals(GIDX *a, GIDX *b)
static bool gidx_overlaps(GIDX *a, GIDX *b)

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

Referenced by gserialized_gist_consistent().

Here is the call graph for this function:
Here is the caller graph for this function: