Class ContainsItemPredicate
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.ContainsPredicate
com.gigaspaces.internal.query.predicate.comparison.ContainsItemPredicate
- All Implemented Interfaces:
ISpacePredicate, SmartExternalizable, Externalizable, Serializable
a contains predicate cascading from a single item
- Since:
- 9.6
- Author:
- Yechiel Fefer
- See Also:
-
Field Summary
Fields inherited from class ContainsPredicate
_containsIndexes, _fieldPath, _propertyInfo, _spacePredicate, _templateMatchCode, _tokensFields inherited from class ScalarSpacePredicate
_convertedValueWrapper, _expectedValue, functionCallDescription -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Externalizable.ContainsItemPredicate(Object expectedValue, String relativePath, short templateMatchCode) ContainsItemPredicate(Object expectedValue, String relativePath, FunctionCallDescription functionCallDescription, short templateMatchCode) ContainsItemPredicate(Object expectedValue, String relativePath, FunctionCallDescription functionCallDescription, short templateMatchCode, String relation, String typeName, String fullPath) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIterate through the the field's path tokens and when reached to a collection, iterate through its items for property matching (collection[*].property = ?) or call match for regular contains (collection[*] = ?).protected Stringprotected voidprotected voidMethods inherited from class ContainsPredicate
executePredicate, getContainsIndexes, getFieldPath, getOperatorName, getPreparedExpectedValue, getPropertyInfo, getTokens, initialize, match, performMatching, setCacheManagerForExecutionMethods inherited from class ScalarSpacePredicate
equals, getExpectedValue, toStringMethods inherited from class AbstractSpacePredicate
preparePredicate, requiresCacheManagerForExecutionMethods 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
-
ContainsItemPredicate
public ContainsItemPredicate()Default constructor for Externalizable. -
ContainsItemPredicate
-
ContainsItemPredicate
public ContainsItemPredicate(Object expectedValue, String relativePath, FunctionCallDescription functionCallDescription, short templateMatchCode) -
ContainsItemPredicate
-
-
Method Details
-
execute
Description copied from class:ContainsPredicateIterate through the the field's path tokens and when reached to a collection, iterate through its items for property matching (collection[*].property = ?) or call match for regular contains (collection[*] = ?). The target object should be of ServerEntry type which is passed from the relevant Range object.- Specified by:
executein interfaceISpacePredicate- Overrides:
executein classContainsPredicate- Returns:
- True if the specified target matches the predicate, false otherwise.
-
getFullPath
-
getContainsPath
- Overrides:
getContainsPathin classContainsPredicate
-
readExternalImpl
- Overrides:
readExternalImplin classContainsPredicate- Throws:
IOExceptionClassNotFoundException
-
writeExternalImpl
- Overrides:
writeExternalImplin classContainsPredicate- Throws:
IOException
-