diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-11 15:07:35 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-11 15:07:35 -0300 |
| commit | 4cb8841196d0625dfa3825aa326f071cd27c7b8b (patch) | |
| tree | 1682a647d4463397c119183369ae6f750d5fdcff /src/mongo/db/query/index_bounds_builder.h | |
| parent | aa03c6362cbaa767638e6eed9b031d86dd2643d1 (diff) | |
| parent | 8f0827553e09872941945a093b647a4211a9db7f (diff) | |
Update upstream source from tag 'upstream/6.0.0'master
Update to upstream version '6.0.0'
with Debian dir 5604a80ec1c96ca76f25f40d78e6ef855abec322
Diffstat (limited to 'src/mongo/db/query/index_bounds_builder.h')
| -rw-r--r-- | src/mongo/db/query/index_bounds_builder.h | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/src/mongo/db/query/index_bounds_builder.h b/src/mongo/db/query/index_bounds_builder.h index d1067caa561..b48228328f5 100644 --- a/src/mongo/db/query/index_bounds_builder.h +++ b/src/mongo/db/query/index_bounds_builder.h @@ -67,28 +67,16 @@ public: * increasing tightness. These values are used when we need to do comparison between two * BoundsTightness values. Such comparisons can answer questions such as "Does predicate * X have tighter or looser bounds than predicate Y?". - * - * These enum values are ordered from loosest to tightest. */ enum BoundsTightness { // Index bounds are inexact, and a fetch is required. INEXACT_FETCH = 0, - // Index bounds are inexact, and a fetch may be required depending on the projection. - // For example, a count $in query on null + a regex can be covered, but a find query with - // the same filter and no projection cannot. - INEXACT_MAYBE_COVERED = 1, - - // Index bounds are exact, but a fetch may be required depending on the projection. - // For example, a find query on null may be covered, depending on which fields we project - // out. - EXACT_MAYBE_COVERED = 2, - - // Index bounds are inexact, but no fetch is required. - INEXACT_COVERED = 3, + // Index bounds are inexact, but no fetch is required + INEXACT_COVERED = 1, // Index bounds are exact. - EXACT = 4 + EXACT = 2 }; /** @@ -313,11 +301,6 @@ private: OrderedIntervalList* oilOut, BoundsTightness* tightnessOut, interval_evaluation_tree::Builder* ietBuilder); - - /** - * Helper method for merging interval tightness for $in expressions. - */ - static void _mergeTightness(const BoundsTightness& tightness, BoundsTightness& tightnessOut); }; } // namespace mongo |
