Class ScalarSpacePredicate
java.lang.Object
com.gigaspaces.internal.serialization.AbstractExternalizable
com.gigaspaces.internal.query.predicate.AbstractSpacePredicate
com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate
- All Implemented Interfaces:
ISpacePredicate, SmartExternalizable, Externalizable, Serializable
- Direct Known Subclasses:
ComparableScalarSpacePredicate, ContainsPredicate, EqualsSpacePredicate, NotEqualsSpacePredicate, NotRegexSpacePredicate, RegexSpacePredicate, RelationPredicate
A common basic implementation for scalar comparison predicate implementations.
- Since:
- 7.1
- Author:
- Niv ingberg
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConvertedObjectWrapperprotected Objectprotected FunctionCallDescription -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for Externalizable.protectedScalarSpacePredicate(Object expectedValue, FunctionCallDescription functionCallDescription) Creates a scalar predicate using the specified expected value -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanExecutes this predicate on the specified target.Gets the expected value.protected abstract Stringprotected ObjectgetPreparedExpectedValue(Object target) protected abstract booleanprotected voidtoString()protected voidMethods 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
-
Field Details
-
_expectedValue
-
functionCallDescription
-
_convertedValueWrapper
-
-
Constructor Details
-
ScalarSpacePredicate
protected ScalarSpacePredicate()Default constructor for Externalizable. -
ScalarSpacePredicate
protected ScalarSpacePredicate(Object expectedValue, FunctionCallDescription functionCallDescription) Creates a scalar predicate using the specified expected value- Parameters:
expectedValue- Expected value.
-
-
Method Details
-
getExpectedValue
-
getPreparedExpectedValue
-
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.
-
match
-
toString
-
getOperatorName
-
equals
-
readExternalImpl
- Overrides:
readExternalImplin classAbstractExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternalImpl
- Overrides:
writeExternalImplin classAbstractExternalizable- Throws:
IOException
-