Class GreaterSpacePredicate
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
com.gigaspaces.internal.query.predicate.comparison.GreaterSpacePredicate
- All Implemented Interfaces:
ISpacePredicate, SmartExternalizable, Externalizable, Serializable
An implementation of greater than comparison: This predicate returns true if and only if the
predicate's argument is greater than the expected value. Comparison is performed using the
compareTo method.
- Since:
- 7.1
- Author:
- Niv ingberg
- See Also:
-
Field Summary
Fields inherited from class ScalarSpacePredicate
_convertedValueWrapper, _expectedValue, functionCallDescription -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Externalizable.GreaterSpacePredicate(Comparable<?> expectedValue) Creates a greater predicate using the specified expected value.GreaterSpacePredicate(Comparable<?> expectedValue, Comparator<?> comparator) Creates a greater predicate using the specified expected value and comparator. -
Method Summary
Methods inherited from class ComparableScalarSpacePredicate
equals, getComparator, match, readExternalImpl, writeExternalImplMethods inherited from class ScalarSpacePredicate
execute, getExpectedValue, 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
-
GreaterSpacePredicate
public GreaterSpacePredicate()Default constructor for Externalizable. -
GreaterSpacePredicate
Creates a greater predicate using the specified expected value.- Parameters:
expectedValue- Expected value.
-
GreaterSpacePredicate
Creates a greater predicate using the specified expected value and comparator.- Parameters:
expectedValue- Expected value.comparator- Comparator to use while comparing.
-
-
Method Details
-
compare
protected boolean compare(int compareResult) - Specified by:
comparein classComparableScalarSpacePredicate
-
getOperatorName
- Specified by:
getOperatorNamein classScalarSpacePredicate
-