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) |
preparePredicate
readExternal, writeExternal
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enabledSmartExternalizableWithReference
readExternal, writeExternal
protected 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)
ISpacePredicate
execute
in interface ISpacePredicate
execute
in class AbstractSpacePredicate
protected abstract boolean execute(Object target, ISpacePredicate[] operands)
protected void readExternalImpl(ObjectInput in) throws IOException, ClassNotFoundException
readExternalImpl
in class AbstractExternalizable
IOException
ClassNotFoundException
protected void writeExternalImpl(ObjectOutput out) throws IOException
writeExternalImpl
in class AbstractExternalizable
IOException
public boolean requiresCacheManagerForExecution()
requiresCacheManagerForExecution
in interface ISpacePredicate
requiresCacheManagerForExecution
in class AbstractSpacePredicate
public void setCacheManagerForExecution(CacheManager cacheManager)
setCacheManagerForExecution
in interface ISpacePredicate
setCacheManagerForExecution
in class AbstractSpacePredicate
Copyright © GigaSpaces.