MySQL 5.6.14 Source Code Document
|
Classes | |
class | CandidateColumnImpl |
Public Member Functions | |
CandidateIndexImpl (String className, Index storeIndex, boolean unique, AbstractDomainFieldHandlerImpl[] fields) | |
String | toString () |
void | markLowerBound (int fieldNumber, PredicateImpl predicate, boolean strict) |
void | markUpperBound (int fieldNumber, PredicateImpl predicate, boolean strict) |
void | markEqualBound (int fieldNumber, PredicateImpl predicate) |
void | markInBound (int fieldNumber, InPredicateImpl predicate) |
ScanType | getScanType () |
boolean | supportsConditionsOfLength (int numberOfConditions) |
Index | getStoreIndex () |
boolean | isMultiRange () |
Static Public Member Functions | |
static CandidateIndexImpl | getIndexForNullWhereClause () |
Protected Member Functions | |
CandidateIndexImpl () |
This class is responsible for deciding whether an index can be used for a specific query. An instance of this class is created to evaluate a query and to decide whether the index can be used in executing the query. An inner class represents each candidateColumn in the index.
An instance of this class is created for each index for each query, and an instance of the candidate column for each column of the index. During execution of the query, the query terms are used to mark the candidate columns and associate candidate columns with each query term. Each query term might be associated with multiple candidate columns, one for each index containing the column referenced by the query term.
Definition at line 49 of file CandidateIndexImpl.java.
|
inlineprotected |
The CandidateIndexImpl used in cases of no where clause.
Definition at line 111 of file CandidateIndexImpl.java.
|
inlinestatic |
The accessor for the no where clause candidate index.
Definition at line 106 of file CandidateIndexImpl.java.
|
inline |
Determine whether this index supports exactly the number of conditions. For ordered indexes, any number of conditions are supported via filters. For hash indexes, only the number of columns in the index are supported.
numberOfConditions | the number of conditions in the query predicate |
Definition at line 502 of file CandidateIndexImpl.java.