Class GreaterEqualsSpacePredicate
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.GreaterEqualsSpacePredicate
- All Implemented Interfaces:
ISpacePredicate, SmartExternalizable, Externalizable, Serializable
An implementation of greater than or equals to comparison: This predicate returns true if and
only if the predicate's argument is greater than or equals to 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.GreaterEqualsSpacePredicate(Comparable<?> expectedValue) Creates a greater-equals predicate using the specified expected value.GreaterEqualsSpacePredicate(Comparable<?> expectedValue, Comparator<?> comparator) Creates a greater-equals 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
-
GreaterEqualsSpacePredicate
public GreaterEqualsSpacePredicate()Default constructor for Externalizable. -
GreaterEqualsSpacePredicate
Creates a greater-equals predicate using the specified expected value.- Parameters:
expectedValue- Expected value.
-
GreaterEqualsSpacePredicate
Creates a greater-equals 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
-