|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-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.ComparisonFilter
public abstract class ComparisonFilter
Filter which compares the result of a method invocation with a value.
Field Summary | |
---|---|
protected java.lang.Object |
m_oValue The value to compare to. |
Fields inherited from class com.tangosol.util.filter.ExtractorFilter |
---|
EVAL_COST, m_extractor |
Constructor Summary | |
---|---|
ComparisonFilter() Default constructor (necessary for the ExternalizableLite interface). |
|
ComparisonFilter(java.lang.String sMethod, java.lang.Object oValue) Construct a ComparisonFilter. |
|
ComparisonFilter(ValueExtractor extractor, java.lang.Object oValue) Construct a ComparisonFilter. |
Method Summary | |
---|---|
protected int |
calculateMatchEffectiveness(java.util.Map mapIndexes, java.util.Set setKeys) Helper method to calculate effectiveness for ComparisonFilters that need no more than a single index match in order to retrieve all necessary keys to perform the applyIndex() operation. |
protected int |
calculateRangeEffectiveness(java.util.Map mapIndexes, java.util.Set setKeys) Helper method to calculate effectiveness for ComparisonFilters that need a range of values from an index in order to retrieve all necessary keys to perform the applyIndex() operation. |
boolean |
equals(java.lang.Object o) Compare the ComparisonFilter with another object to determine equality. |
java.lang.Object |
getValue() Get the object to compare the reflection result with. |
int |
hashCode() Determine a hash value for the ComparisonFilter object according to the general Object.hashCode() contract. |
void |
readExternal(java.io.DataInput in) Restore the contents of this object by loading the object's state from the passed DataInput object. |
void |
readExternal(PofReader in) Restore the contents of a user type instance by reading its state using the specified PofReader object. |
java.lang.String |
toString() Return a human-readable description for this Filter. |
protected java.lang.String |
toStringValue() Return the string representation of the value. |
void |
writeExternal(java.io.DataOutput out) Save the contents of this object by storing the object's state into the passed DataOutput object. |
void |
writeExternal(PofWriter out) Save the contents of a POF user type instance by writing its state using the specified PofWriter object. |
Methods inherited from class com.tangosol.util.filter.ExtractorFilter |
---|
applyIndex, calculateEffectiveness, calculateIteratorEffectiveness, evaluate, evaluateEntry, evaluateExtracted, extract, getValueExtractor |
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, toBytes, toBytes, toBytes, toBytes, toInt, toInt, toLong, toLong |
Field Detail |
---|
protected java.lang.Object m_oValue
Constructor Detail |
---|
public ComparisonFilter()
public ComparisonFilter(ValueExtractor extractor, java.lang.Object oValue)
extractor
- the ComparisonFilter to use by this filteroValue
- the object to compare the result withpublic ComparisonFilter(java.lang.String sMethod, java.lang.Object oValue)
sMethod
- the name of the method to invoke via reflectionoValue
- the object to compare the result withMethod Detail |
---|
public java.lang.Object getValue()
protected int calculateMatchEffectiveness(java.util.Map mapIndexes, java.util.Set setKeys)
mapIndexes
- the available MapIndex objects keyed by the related ValueExtractor; read-onlysetKeys
- the set of keys that will be filtered; read-onlyprotected int calculateRangeEffectiveness(java.util.Map mapIndexes, java.util.Set setKeys)
mapIndexes
- the available MapIndex objects keyed by the related ValueExtractor; read-onlysetKeys
- the set of keys that will be filtered; read-onlyprotected java.lang.String toStringValue()
public boolean equals(java.lang.Object o)
public int hashCode()
Object.hashCode()
contract.public java.lang.String toString()
public void readExternal(java.io.DataInput in) throws java.io.IOException
readExternal
in interface ExternalizableLite
readExternal
in class ExtractorFilter
in
- the DataInput stream to read data from in order to restore the state of this objectjava.io.IOException
- if an I/O exception occursjava.io.NotActiveException
- if the object is not in its initial state, and therefore cannot be deserialized intopublic void writeExternal(java.io.DataOutput out) throws java.io.IOException
writeExternal
in interface ExternalizableLite
writeExternal
in class ExtractorFilter
out
- the DataOutput stream to write the state of this object tojava.io.IOException
- if an I/O exception occurspublic void readExternal(PofReader in) throws java.io.IOException
readExternal
in interface PortableObject
readExternal
in class ExtractorFilter
in
- the PofReader from which to read the object's statejava.io.IOException
- if an I/O error occurspublic void writeExternal(PofWriter out) throws java.io.IOException
writeExternal
in interface PortableObject
writeExternal
in class ExtractorFilter
out
- the PofWriter to which to write the object's statejava.io.IOException
- if an I/O error occurs
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |