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.PredicateImpl Class Reference
Inheritance diagram for com.mysql.clusterj.core.query.PredicateImpl:
Collaboration diagram for com.mysql.clusterj.core.query.PredicateImpl:

Classes

enum  ScanType

Public Member Functions

 PredicateImpl (QueryDomainTypeImpl<?> dobj)
Predicate or (Predicate other)
Predicate and (Predicate other)
Predicate not ()
void operationSetBounds (QueryExecutionContext context, IndexScanOperation op, boolean lastColumn)
void operationSetLowerBound (QueryExecutionContext context, IndexScanOperation op, boolean lastColumn)
void operationSetUpperBound (QueryExecutionContext context, IndexScanOperation op, boolean lastColumn)
void operationEqual (QueryExecutionContext context, Operation op)
void operationEqualFor (QueryExecutionContext context, Operation op, String indexName)
void objectSetValuesFor (QueryExecutionContext context, Object row, String indexName)
void filterCmpValue (QueryExecutionContext context, ScanOperation op)
void filterCmpValue (QueryExecutionContext context, ScanOperation op, ScanFilter filter)
void assertIdenticalDomainObject (PredicateImpl other, String venue)
abstract void markParameters ()
abstract void unmarkParameters ()
CandidateIndexImpl getBestCandidateIndex (QueryExecutionContext context)

Protected Member Functions

CandidateIndexImpl getBestCandidateIndexFor (QueryExecutionContext context, PredicateImpl...predicates)
int getNumberOfConditionsInPredicate ()

Protected Attributes

QueryDomainTypeImpl<?> dobj

Detailed Description

Definition at line 37 of file PredicateImpl.java.

Member Function Documentation

Predicate com.mysql.clusterj.core.query.PredicateImpl.and ( Predicate  predicate)
inline

Combine this Predicate with another, using the "and" semantic.

Parameters
predicatethe other predicate
Returns
a new Predicate combining both Predicates

Implements com.mysql.clusterj.query.Predicate.

Reimplemented in com.mysql.clusterj.core.query.AndPredicateImpl.

Definition at line 67 of file PredicateImpl.java.

Here is the call graph for this function:

void com.mysql.clusterj.core.query.PredicateImpl.filterCmpValue ( QueryExecutionContext  context,
ScanOperation  op 
)
inline

Create a filter for the operation. Set the condition into the new filter.

Parameters
contextthe query execution context with the parameter values
opthe operation

Reimplemented in com.mysql.clusterj.core.query.InPredicateImpl, com.mysql.clusterj.core.query.BetweenPredicateImpl, com.mysql.clusterj.core.query.AndPredicateImpl, com.mysql.clusterj.core.query.OrPredicateImpl, and com.mysql.clusterj.core.query.NotPredicateImpl.

Definition at line 129 of file PredicateImpl.java.

Here is the call graph for this function:

Here is the caller graph for this function:

CandidateIndexImpl com.mysql.clusterj.core.query.PredicateImpl.getBestCandidateIndexFor ( QueryExecutionContext  context,
PredicateImpl...  predicates 
)
inlineprotected

Get the best candidate index for the query, considering all indices defined and all predicates in the query.

Parameters
predicatesthe predicates
Returns
the best index for the query

Definition at line 189 of file PredicateImpl.java.

Here is the call graph for this function:

Here is the caller graph for this function:

int com.mysql.clusterj.core.query.PredicateImpl.getNumberOfConditionsInPredicate ( )
inlineprotected

Get the number of conditions in the top level predicate. This is used to determine whether a hash index can be used. If there are exactly the number of conditions as index columns, then the hash index might be used. By default (for equal, greaterThan, lessThan, greaterEqual, lessEqual) there is one condition. AndPredicateImpl overrides this method.

Returns
the number of conditions

Reimplemented in com.mysql.clusterj.core.query.AndPredicateImpl.

Definition at line 233 of file PredicateImpl.java.

Here is the caller graph for this function:

Predicate com.mysql.clusterj.core.query.PredicateImpl.not ( )
inline

Negate this Predicate.

Returns
this predicate

Implements com.mysql.clusterj.query.Predicate.

Reimplemented in com.mysql.clusterj.core.query.AndPredicateImpl.

Definition at line 79 of file PredicateImpl.java.

Predicate com.mysql.clusterj.core.query.PredicateImpl.or ( Predicate  predicate)
inline

Combine this Predicate with another, using the "or" semantic.

Parameters
predicatethe other predicate
Returns
a new Predicate combining both Predicates

Implements com.mysql.clusterj.query.Predicate.

Reimplemented in com.mysql.clusterj.core.query.AndPredicateImpl, and com.mysql.clusterj.core.query.OrPredicateImpl.

Definition at line 60 of file PredicateImpl.java.

Member Data Documentation

QueryDomainTypeImpl<?> com.mysql.clusterj.core.query.PredicateImpl.dobj
protected

My domain object.

Definition at line 46 of file PredicateImpl.java.


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