public abstract class MultipleCompositeSpacePredicate extends CompositeSpacePredicate
| Modifier and Type | Field and Description |
|---|---|
protected CacheManager |
_cacheManager |
| Constructor and Description |
|---|
MultipleCompositeSpacePredicate()
Default 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOperand(ISpacePredicate operand)
Adds an operand at the end of the current operands list.
|
boolean |
equals(Object obj) |
boolean |
execute(Object target)
Executes this predicate on the specified target.
|
protected abstract boolean |
execute(Object target,
ISpacePredicate[] operands) |
int |
getNumOfOperands()
Gets the number of operands in this composite predicate.
|
ISpacePredicate |
getOperand(int index)
Gets the operand at the specified index.
|
protected void |
readExternalImpl(ObjectInput in) |
boolean |
requiresCacheManagerForExecution() |
void |
setCacheManagerForExecution(CacheManager cacheManager) |
void |
setOperand(int index,
ISpacePredicate operand)
Sets the operand at the specified index.
|
protected void |
writeExternalImpl(ObjectOutput out) |
preparePredicatereadExternal, writeExternalclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenabledSmartExternalizableWithReferencereadExternal, writeExternalprotected transient CacheManager _cacheManager
public MultipleCompositeSpacePredicate()
public MultipleCompositeSpacePredicate(List<ISpacePredicate> operands)
public MultipleCompositeSpacePredicate(ISpacePredicate... operands)
public int getNumOfOperands()
public ISpacePredicate getOperand(int index)
index - Index of operand to get.public void setOperand(int index,
ISpacePredicate operand)
index - Index of operand to set.operand - new operand.public void addOperand(ISpacePredicate operand)
operand - Operand to add.public boolean execute(Object target)
ISpacePredicateexecute in interface ISpacePredicateexecute in class AbstractSpacePredicateprotected abstract boolean execute(Object target, ISpacePredicate[] operands)
protected void readExternalImpl(ObjectInput in) throws IOException, ClassNotFoundException
readExternalImpl in class AbstractExternalizableIOExceptionClassNotFoundExceptionprotected void writeExternalImpl(ObjectOutput out) throws IOException
writeExternalImpl in class AbstractExternalizableIOExceptionpublic boolean requiresCacheManagerForExecution()
requiresCacheManagerForExecution in interface ISpacePredicaterequiresCacheManagerForExecution in class AbstractSpacePredicatepublic void setCacheManagerForExecution(CacheManager cacheManager)
setCacheManagerForExecution in interface ISpacePredicatesetCacheManagerForExecution in class AbstractSpacePredicateCopyright © GigaSpaces.