Class MultipleCompositeSpacePredicate
java.lang.Object
com.gigaspaces.internal.serialization.AbstractExternalizable
com.gigaspaces.internal.query.predicate.AbstractSpacePredicate
com.gigaspaces.internal.query.predicate.composite.CompositeSpacePredicate
com.gigaspaces.internal.query.predicate.composite.MultipleCompositeSpacePredicate
- All Implemented Interfaces:
ISpacePredicate,SmartExternalizable,Externalizable,Serializable
- Direct Known Subclasses:
AllSpacePredicate,AnySpacePredicate
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Externalizable.MultipleCompositeSpacePredicate(ISpacePredicate... operands) Creates a multiple composite space predicate using the specified operands.MultipleCompositeSpacePredicate(List<ISpacePredicate> operands) Creates a multiple composite space predicate using the specified operands. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOperand(ISpacePredicate operand) Adds an operand at the end of the current operands list.booleanbooleanExecutes this predicate on the specified target.protected abstract booleanexecute(Object target, ISpacePredicate[] operands) intGets the number of operands in this composite predicate.getOperand(int index) Gets the operand at the specified index.protected voidbooleanvoidsetCacheManagerForExecution(CacheManager cacheManager) voidsetOperand(int index, ISpacePredicate operand) Sets the operand at the specified index.protected voidMethods inherited from class com.gigaspaces.internal.query.predicate.AbstractSpacePredicate
preparePredicateMethods inherited from class com.gigaspaces.internal.serialization.AbstractExternalizable
readExternal, writeExternalMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.Externalizable
readExternal, writeExternalMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Field Details
-
_cacheManager
-
-
Constructor Details
-
MultipleCompositeSpacePredicate
public MultipleCompositeSpacePredicate()Default constructor for Externalizable. -
MultipleCompositeSpacePredicate
Creates a multiple composite space predicate using the specified operands. -
MultipleCompositeSpacePredicate
Creates a multiple composite space predicate using the specified operands.
-
-
Method Details
-
getNumOfOperands
public int getNumOfOperands()Gets the number of operands in this composite predicate. -
getOperand
Gets the operand at the specified index.- Parameters:
index- Index of operand to get.- Returns:
- Operand at specified index.
-
setOperand
Sets the operand at the specified index.- Parameters:
index- Index of operand to set.operand- new operand.
-
addOperand
Adds an operand at the end of the current operands list.- Parameters:
operand- Operand to add.
-
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.
-
execute
-
equals
-
readExternalImpl
- Overrides:
readExternalImplin classAbstractExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternalImpl
- Overrides:
writeExternalImplin classAbstractExternalizable- Throws:
IOException
-
requiresCacheManagerForExecution
public boolean requiresCacheManagerForExecution()- Specified by:
requiresCacheManagerForExecutionin interfaceISpacePredicate- Overrides:
requiresCacheManagerForExecutionin classAbstractSpacePredicate
-
setCacheManagerForExecution
- Specified by:
setCacheManagerForExecutionin interfaceISpacePredicate- Overrides:
setCacheManagerForExecutionin classAbstractSpacePredicate
-