Class XorSpacePredicate
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.XorSpacePredicate
- All Implemented Interfaces:
ISpacePredicate, SmartExternalizable, Externalizable, Serializable
An implementation of a logical binary XOR condition: This predicate returns true if and only if
left or right operands return true, but not both.
- Since:
- 7.1
- Author:
- Niv Ingberg
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Externalizable.XorSpacePredicate(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 BinaryCompositeSpacePredicate
equals, execute, getLeftOperand, getRightOperand, readExternalImpl, toString, writeExternalImplMethods inherited from class AbstractSpacePredicate
preparePredicate, requiresCacheManagerForExecution, setCacheManagerForExecutionMethods inherited from class AbstractExternalizable
readExternal, writeExternalMethods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Externalizable
readExternal, writeExternalMethods inherited from interface SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
XorSpacePredicate
public XorSpacePredicate()Default constructor for Externalizable. -
XorSpacePredicate
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
-