Class UnaryCompositeSpacePredicate
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.UnaryCompositeSpacePredicate
- All Implemented Interfaces:
ISpacePredicate,SmartExternalizable,Externalizable,Serializable
- Direct Known Subclasses:
NotSpacePredicate
A common basic implementation for unary composite space predicate implementations.
- Since:
- 7.1
- Author:
- Niv Ingberg
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for Externalizable.protectedCreates an unary predicate using the specified operands. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanExecutes this predicate on the specified target.protected abstract booleanexecute(Object target, ISpacePredicate operand) Executes the operand predicate on the target.Gets the operand of this unary predicate.protected abstract StringGets this operator's name, to be used in toString().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
-
UnaryCompositeSpacePredicate
protected UnaryCompositeSpacePredicate()Default constructor for Externalizable. -
UnaryCompositeSpacePredicate
Creates an unary predicate using the specified operands.- Parameters:
operand- Operand for unary predicate.
-
-
Method Details
-
getOperand
Gets the operand of this unary predicate.- Returns:
- the operand of this unary predicate.
-
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
Executes the operand predicate on the target.- Parameters:
target- Target object for predicate execution.operand- Predicate to execute.
-
toString
-
getOperatorName
Gets this operator's name, to be used in toString().- Returns:
- This operator's name.
-
equals
-
readExternalImpl
- Overrides:
readExternalImplin classAbstractExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternalImpl
- Overrides:
writeExternalImplin classAbstractExternalizable- Throws:
IOException
-