|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.util.filter.AbstractQueryRecorderFilter
com.tangosol.util.filter.ExtractorFilter
com.tangosol.util.filter.ValueChangeEventFilter
public class ValueChangeEventFilter
Filter which evaluates the content of a MapEvent values based on the specified value extractor. This filter evaluates to true only for update events that change the value of an extracted attribute.
Example: a filter that evaluates to true if there is an update to an Employee object that changes a value of the LastName property.
new ValueChangeEventFilter("LastName");
MapEventFilter| Field Summary |
|---|
| Fields inherited from class com.tangosol.util.filter.ExtractorFilter |
|---|
EVAL_COST, m_extractor |
| Constructor Summary | |
|---|---|
ValueChangeEventFilter()Default constructor (necessary for the ExternalizableLite interface). |
|
ValueChangeEventFilter(java.lang.String sMethod)Construct a ValueChangeEventFilter that evaluates MapEvent values based on the specified method name. |
|
ValueChangeEventFilter(ValueExtractor extractor)Construct a ValueChangeEventFilter that evaluates MapEvent values based on the specified extractor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)Compare the ValueChangeEventFilter with another object to determine equality. |
boolean |
evaluate(java.lang.Object o)Apply the test to the object. |
protected boolean |
evaluateExtracted(java.lang.Object oExtracted)Evaluate the specified extracted value. |
int |
hashCode()Determine a hash value for the ValueChangeEventFilter object according to the general Object.hashCode() contract. |
java.lang.String |
toString()Return a human-readable description for this Filter. |
| Methods inherited from class com.tangosol.util.filter.ExtractorFilter |
|---|
evaluateEntry, extract, getValueExtractor, readExternal, readExternal, writeExternal, writeExternal |
| Methods inherited from class com.tangosol.util.filter.AbstractQueryRecorderFilter |
|---|
explain, explain, trace, trace, trace, trace |
| Methods inherited from class com.tangosol.util.BitHelper |
|---|
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString |
| Constructor Detail |
|---|
public ValueChangeEventFilter()
public ValueChangeEventFilter(ValueExtractor extractor)
extractor - ValueExtractor to extract MapEvent valuespublic ValueChangeEventFilter(java.lang.String sMethod)
sMethod - the name of the method to invoke via reflection| Method Detail |
|---|
public boolean evaluate(java.lang.Object o)
evaluate in interface Filterevaluate in class ExtractorFiltero - the object to testprotected boolean evaluateExtracted(java.lang.Object oExtracted)
evaluateExtracted in class ExtractorFilteroExtracted - an extracted value to evaluatepublic boolean equals(java.lang.Object o)
public int hashCode()
Object.hashCode() contract.public java.lang.String toString()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||