Flattens an arbitrary query into DNF - that is, into a list of query alternatives implicitly joined by logical "or", where each of alternatives consists of a list of query clauses implicitly joined by "and".
Retrieves the list of indexes declared for the record type associated with a query.
Retrieves the list of indexes declared for the record type associated with a query. If the record type doesn't declare any indexes, then returns None.
the query
the list of indexes, or an empty list.
Verifies that the indexes expected for a query actually exist in the mongo database.
Verifies that the indexes expected for a query actually exist in the mongo database. Signals an error if the indexes don't fulfull the expectations. ({@see #throwErrors}) This version of validaateIndexExpectations is intended for use in cases where the indexes are not explicitly declared in the class, but the caller knows what set of indexes are actually available.
the query being validated.
a list of the indexes
true if the required indexes are found, false otherwise.
Verifies that the indexes expected for a query actually exist in the mongo database.
Verifies that the indexes expected for a query actually exist in the mongo database.
Logs an error via QueryLogger#logIndexMismatch
if there is no
matching index. Clients may choose to signal errors by overriding
logIndexMismatch.
the query being validated.
true if the required indexes are found, false otherwise.
Verifies that the index expected by a query both exists, and will be used by MongoDB to execute that query.
Verifies that the index expected by a query both exists, and will be used by MongoDB to execute that query. (Due to vagaries of the MongoDB implementation, sometimes a conceptually usable index won't be found.)
the query
the list of indexes that exist in the database
Verifies that the index expected by a query both exists, and will be used by MongoDB to execute that query.
Verifies that the index expected by a query both exists, and will be used by MongoDB to execute that query. (Due to vagaries of the MongoDB implementation, sometimes a conceptually usable index won't be found.)
the query
A utility object which provides the capability to verify if the set of indexes that actually exist for a MongoDB collection match the indexes that are expected by a query.