MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.clusterj.core.query.CandidateIndexImpl Class Reference
Collaboration diagram for com.mysql.clusterj.core.query.CandidateIndexImpl:

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 ()

Detailed Description

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.

Constructor & Destructor Documentation

com.mysql.clusterj.core.query.CandidateIndexImpl.CandidateIndexImpl ( )
inlineprotected

The CandidateIndexImpl used in cases of no where clause.

Definition at line 111 of file CandidateIndexImpl.java.

Member Function Documentation

static CandidateIndexImpl com.mysql.clusterj.core.query.CandidateIndexImpl.getIndexForNullWhereClause ( )
inlinestatic

The accessor for the no where clause candidate index.

Definition at line 106 of file CandidateIndexImpl.java.

Here is the caller graph for this function:

boolean com.mysql.clusterj.core.query.CandidateIndexImpl.supportsConditionsOfLength ( int  numberOfConditions)
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.

Parameters
numberOfConditionsthe number of conditions in the query predicate
Returns
if this index supports exactly the number of conditions

Definition at line 502 of file CandidateIndexImpl.java.


The documentation for this class was generated from the following file: