PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ gserialized_gist_consistent_leaf()

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

Definition at line 1121 of file gserialized_gist_nd.c.

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

Referenced by gserialized_gist_consistent().

1122 {
1123  bool retval;
1124 
1125  POSTGIS_DEBUGF(4, "[GIST] leaf consistent, strategy [%d], count[%i]",
1126  strategy, geog_counter_leaf++);
1127 
1128  switch (strategy)
1129  {
1130  case RTOverlapStrategyNumber:
1131  retval = (bool) gidx_overlaps(key, query);
1132  break;
1133  case RTSameStrategyNumber:
1134  retval = (bool) gidx_equals(key, query);
1135  break;
1136  case RTContainsStrategyNumber:
1137  case RTOldContainsStrategyNumber:
1138  retval = (bool) gidx_contains(key, query);
1139  break;
1140  case RTContainedByStrategyNumber:
1141  case RTOldContainedByStrategyNumber:
1142  retval = (bool) gidx_contains(query, key);
1143  break;
1144  default:
1145  retval = FALSE;
1146  }
1147 
1148  return (retval);
1149 }
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: