Class InSpacePredicate
java.lang.Object
com.gigaspaces.internal.serialization.AbstractExternalizable
com.gigaspaces.internal.query.predicate.AbstractSpacePredicate
com.gigaspaces.internal.query.predicate.comparison.InSpacePredicate
- All Implemented Interfaces:
ISpacePredicate, SmartExternalizable, Externalizable, Serializable
Represents an In predicate. This predicate returns true if and only if the predicate's argument
equals to any of the expected values.
- Since:
- 7.1
- Author:
- Niv Ingberg
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Externalizable.InSpacePredicate(Object... values) Creates an In predicate using the specified values.InSpacePredicate(Set<?> inValues) Creates an In predicate using the specified values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanExecutes this predicate on the specified target.Set<?> intReturns the number of expected values.protected voidprotected voidMethods inherited from class AbstractSpacePredicate
preparePredicate, requiresCacheManagerForExecution, setCacheManagerForExecutionMethods inherited from class AbstractExternalizable
readExternal, writeExternalMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Externalizable
readExternal, writeExternalMethods inherited from interface SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
InSpacePredicate
public InSpacePredicate()Default constructor for Externalizable. -
InSpacePredicate
Creates an In predicate using the specified values.- Parameters:
values- Values to test.
-
InSpacePredicate
Creates an In predicate using the specified values.- Parameters:
inValues- Values to test.
-
-
Method Details
-
getNumOfExpectedValues
public int getNumOfExpectedValues()Returns the number of expected values. -
getExpectedValues
-
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.
-
readExternalImpl
- Overrides:
readExternalImplin classAbstractExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternalImpl
- Overrides:
writeExternalImplin classAbstractExternalizable- Throws:
IOException
-
getInValues
-