Class BinaryCompositeSpacePredicate
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
- All Implemented Interfaces:
ISpacePredicate,SmartExternalizable,Externalizable,Serializable
- Direct Known Subclasses:
AndSpacePredicate,OrSpacePredicate,XorSpacePredicate
A common basic implementation for binary composite space predicate implementations.
- Since:
- 7.1
- Author:
- Niv Ingberg
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for Externalizable.protectedBinaryCompositeSpacePredicate(ISpacePredicate leftOperand, ISpacePredicate rightOperand) Creates a binary predicate using the specified operands. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanExecutes this predicate on the specified target.protected abstract booleanexecute(Object target, ISpacePredicate leftOperand, ISpacePredicate rightOperand) Gets the left operand of this binary predicate.protected abstract StringGets the right operand of this binary predicate.protected voidtoString()protected voidMethods 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
-
BinaryCompositeSpacePredicate
protected BinaryCompositeSpacePredicate()Default constructor for Externalizable. -
BinaryCompositeSpacePredicate
Creates a binary predicate using the specified operands.- Parameters:
leftOperand- Left operand of the binary predicate.rightOperand- Right operand of the binary predicate.
-
-
Method Details
-
getLeftOperand
Gets the left operand of this binary predicate.- Returns:
- The left operand.
-
getRightOperand
Gets the right operand of this binary predicate.- Returns:
- The right operand.
-
execute
Description copied from interface:ISpacePredicateExecutes this predicate on the specified target.- Specified by:
executein interfaceISpacePredicate- Specified by:
executein classAbstractSpacePredicate- Returns:
- True if the specified target matches the predicate, false otherwise.
-
execute
protected abstract boolean execute(Object target, ISpacePredicate leftOperand, ISpacePredicate rightOperand) -
toString
-
getOperatorName
-
equals
-
readExternalImpl
- Overrides:
readExternalImplin classAbstractExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternalImpl
- Overrides:
writeExternalImplin classAbstractExternalizable- Throws:
IOException
-