Class OrSpacePredicate
java.lang.Object
com.gigaspaces.internal.serialization.AbstractExternalizable
com.gigaspaces.internal.query.predicate.AbstractSpacePredicate
com.gigaspaces.internal.query.predicate.composite.CompositeSpacePredicate
com.gigaspaces.internal.query.predicate.composite.BinaryCompositeSpacePredicate
com.gigaspaces.internal.query.predicate.composite.OrSpacePredicate
- All Implemented Interfaces:
ISpacePredicate,SmartExternalizable,Externalizable,Serializable
An implementation of a logical binary OR condition: This predicate returns true if and only if
either left or right operands return true.
- Since:
- 7.1
- Author:
- Niv Ingberg
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Externalizable.OrSpacePredicate(ISpacePredicate leftPredicate, ISpacePredicate rightPredicate) Creates a binary predicate using the specified predicates. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanexecute(Object target, ISpacePredicate leftOperand, ISpacePredicate rightOperand) protected StringMethods inherited from class com.gigaspaces.internal.query.predicate.composite.BinaryCompositeSpacePredicate
equals, execute, getLeftOperand, getRightOperand, readExternalImpl, toString, writeExternalImplMethods inherited from class com.gigaspaces.internal.query.predicate.AbstractSpacePredicate
preparePredicate, requiresCacheManagerForExecution, setCacheManagerForExecutionMethods inherited from class com.gigaspaces.internal.serialization.AbstractExternalizable
readExternal, writeExternalMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.io.Externalizable
readExternal, writeExternalMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
OrSpacePredicate
public OrSpacePredicate()Default constructor for Externalizable. -
OrSpacePredicate
Creates a binary predicate using the specified predicates.- Parameters:
leftPredicate- Left predicate of the binary predicate.rightPredicate- Right predicate of the binary predicate.
-
-
Method Details
-
execute
- Specified by:
executein classBinaryCompositeSpacePredicate
-
getOperatorName
- Specified by:
getOperatorNamein classBinaryCompositeSpacePredicate
-