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

Public Member Functions

 AndPredicateImpl (QueryDomainTypeImpl<?> dobj, PredicateImpl left, PredicateImpl right)
Predicate and (Predicate predicate)
Predicate or (Predicate predicate)
Predicate not ()
void markParameters ()
void unmarkParameters ()
void filterCmpValue (QueryExecutionContext context, ScanOperation op)
void operationEqual (QueryExecutionContext context, Operation op)
CandidateIndexImpl getBestCandidateIndex (QueryExecutionContext context)
- Public Member Functions inherited from com.mysql.clusterj.core.query.PredicateImpl
 PredicateImpl (QueryDomainTypeImpl<?> dobj)
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 operationEqualFor (QueryExecutionContext context, Operation op, String indexName)
void objectSetValuesFor (QueryExecutionContext context, Object row, String indexName)
void filterCmpValue (QueryExecutionContext context, ScanOperation op, ScanFilter filter)
void assertIdenticalDomainObject (PredicateImpl other, String venue)

Protected Member Functions

int getNumberOfConditionsInPredicate ()
- Protected Member Functions inherited from com.mysql.clusterj.core.query.PredicateImpl
CandidateIndexImpl getBestCandidateIndexFor (QueryExecutionContext context, PredicateImpl...predicates)

Additional Inherited Members

- Protected Attributes inherited from com.mysql.clusterj.core.query.PredicateImpl
QueryDomainTypeImpl<?> dobj

Detailed Description

Definition at line 30 of file AndPredicateImpl.java.

Member Function Documentation

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

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

Parameters
predicatethe other predicate
Returns
a new Predicate combining both Predicates

Reimplemented from com.mysql.clusterj.core.query.PredicateImpl.

Definition at line 42 of file AndPredicateImpl.java.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Create a filter for the operation. Set the conditions into the new filter, one for each predicate.

Parameters
contextthe query execution context with the parameter values
opthe operation

Reimplemented from com.mysql.clusterj.core.query.PredicateImpl.

Definition at line 94 of file AndPredicateImpl.java.

Here is the call graph for this function:

CandidateIndexImpl com.mysql.clusterj.core.query.AndPredicateImpl.getBestCandidateIndex ( QueryExecutionContext  context)
inline

Get the best index for the operation. Delegate to the method in the superclass, passing the array of predicates.

Returns
the best index

Reimplemented from com.mysql.clusterj.core.query.PredicateImpl.

Definition at line 129 of file AndPredicateImpl.java.

Here is the call graph for this function:

int com.mysql.clusterj.core.query.AndPredicateImpl.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. For AND predicates, there is one condition for each predicate included in the AND. AndPredicateImpl overrides this method.

Returns
the number of conditions

Reimplemented from com.mysql.clusterj.core.query.PredicateImpl.

Definition at line 144 of file AndPredicateImpl.java.

void com.mysql.clusterj.core.query.AndPredicateImpl.markParameters ( )
inlinevirtual

Mark all parameters as being required.

Implements com.mysql.clusterj.core.query.PredicateImpl.

Definition at line 75 of file AndPredicateImpl.java.

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

Negate this Predicate.

Returns
this predicate

Reimplemented from com.mysql.clusterj.core.query.PredicateImpl.

Definition at line 69 of file AndPredicateImpl.java.

Here is the call graph for this function:

void com.mysql.clusterj.core.query.AndPredicateImpl.operationEqual ( QueryExecutionContext  context,
Operation  op 
)
inline

Set the keys into the operation for each predicate. Each predicate must be an equal predicate for a primary or unique key.

Reimplemented from com.mysql.clusterj.core.query.PredicateImpl.

Definition at line 112 of file AndPredicateImpl.java.

Here is the call graph for this function:

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

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

Parameters
predicatethe other predicate
Returns
a new Predicate combining both Predicates

Reimplemented from com.mysql.clusterj.core.query.PredicateImpl.

Definition at line 64 of file AndPredicateImpl.java.

Here is the call graph for this function:

void com.mysql.clusterj.core.query.AndPredicateImpl.unmarkParameters ( )
inlinevirtual

Unmark all parameters as being required.

Implements com.mysql.clusterj.core.query.PredicateImpl.

Definition at line 82 of file AndPredicateImpl.java.


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