Class ComparableScalarSpacePredicate
java.lang.Object
com.gigaspaces.internal.serialization.AbstractExternalizable
com.gigaspaces.internal.query.predicate.AbstractSpacePredicate
com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate
com.gigaspaces.internal.query.predicate.comparison.ComparableScalarSpacePredicate
- All Implemented Interfaces:
ISpacePredicate, SmartExternalizable, Externalizable, Serializable
- Direct Known Subclasses:
GreaterEqualsSpacePredicate, GreaterSpacePredicate, LessEqualsSpacePredicate, LessSpacePredicate
A common basic implementation for comparable scalar comparison predicate implementations.
- Since:
- 7.1
- Author:
- Niv ingberg
- See Also:
-
Field Summary
Fields inherited from class ScalarSpacePredicate
_convertedValueWrapper, _expectedValue, functionCallDescription -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for Externalizable.protectedComparableScalarSpacePredicate(Comparable<?> expectedValue) Creates a comparable scalar predicate using the specified expected value.protectedComparableScalarSpacePredicate(Comparable<?> expectedValue, Comparator<?> comparator) Creates a comparable scalar predicate using the specified expected value and comparator. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleancompare(int compareResult) booleanGets the comparator associated with this predicate.protected booleanprotected voidprotected voidMethods inherited from class ScalarSpacePredicate
execute, getExpectedValue, getOperatorName, getPreparedExpectedValue, toStringMethods 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
-
ComparableScalarSpacePredicate
protected ComparableScalarSpacePredicate()Default constructor for Externalizable. -
ComparableScalarSpacePredicate
Creates a comparable scalar predicate using the specified expected value.- Parameters:
expectedValue- Expected value.
-
ComparableScalarSpacePredicate
Creates a comparable scalar predicate using the specified expected value and comparator.- Parameters:
expectedValue- Expected value.comparator- Comparator to use while comparing.
-
-
Method Details
-
getComparator
Gets the comparator associated with this predicate.- Returns:
- The comparator associated with this predicate.
-
match
- Specified by:
matchin classScalarSpacePredicate
-
compare
protected abstract boolean compare(int compareResult) -
equals
- Overrides:
equalsin classScalarSpacePredicate
-
readExternalImpl
- Overrides:
readExternalImplin classScalarSpacePredicate- Throws:
IOExceptionClassNotFoundException
-
writeExternalImpl
- Overrides:
writeExternalImplin classScalarSpacePredicate- Throws:
IOException
-