|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
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.extractor.AbstractExtractor
com.tangosol.util.extractor.AbstractCompositeExtractor
com.tangosol.util.extractor.ChainedExtractor
public class ChainedExtractor
Composite ValueExtractor implementation based on an array of extractors. The extractors in the array are applied sequentially left-to-right, so a result of a previous extractor serves as a target object for a next one.
Field Summary |
---|
Fields inherited from class com.tangosol.util.extractor.AbstractCompositeExtractor |
---|
m_aExtractor |
Fields inherited from class com.tangosol.util.extractor.AbstractExtractor |
---|
KEY, m_nTarget, VALUE |
Constructor Summary | |
---|---|
ChainedExtractor() Default constructor (necessary for the ExternalizableLite interface). |
|
ChainedExtractor(java.lang.String sName) Construct a ChainedExtractor for a specified method name sequence. |
|
ChainedExtractor(ValueExtractor[] aExtractor) Construct a ChainedExtractor based on a specified ValueExractor array. |
|
ChainedExtractor(ValueExtractor extractor1, ValueExtractor extractor2) Construct a ChainedExtractor based on two extractors. |
Method Summary | |
---|---|
static ValueExtractor[] |
createExtractors(java.lang.String sName) Parse a dot-delimited sequence of method names and instantiate a corresponding array of ReflectionExtractor objects. |
java.lang.Object |
extract(java.lang.Object oTarget) Extract the value from the passed object. |
java.lang.Object |
extractFromEntry(java.util.Map.Entry entry) Extract the value from the passed entry. |
java.lang.Object |
extractOriginalFromEntry(MapTrigger.Entry entry) Extract the value from the "original value" of the passed Entry object. |
Methods inherited from class com.tangosol.util.extractor.AbstractCompositeExtractor |
---|
equals, getExtractors, hashCode, readExternal, readExternal, toString, writeExternal, writeExternal |
Methods inherited from class com.tangosol.util.extractor.AbstractExtractor |
---|
compare, compareEntries |
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 ChainedExtractor()
public ChainedExtractor(ValueExtractor[] aExtractor)
aExtractor
- the ValueExtractor arraypublic ChainedExtractor(ValueExtractor extractor1, ValueExtractor extractor2)
extractor1
- the ValueExtractorextractor2
- the ValueExtractorpublic ChainedExtractor(java.lang.String sName)
sName
- a dot-delimited sequence of method names which results in a ChainedExtractor that is based on an array of corresponding ReflectionExtractor
objectsMethod Detail |
---|
public java.lang.Object extract(java.lang.Object oTarget)
extract
in interface ValueExtractor
extract
in class AbstractExtractor
oTarget
- an Object to retrieve the value frompublic java.lang.Object extractFromEntry(java.util.Map.Entry entry)
extractFromEntry
in class AbstractExtractor
entry
- an Entry object to extract a desired value frompublic java.lang.Object extractOriginalFromEntry(MapTrigger.Entry entry)
AbstractExtractor
AbstractExtractor.extractFromEntry(java.util.Map.Entry)
method.extractOriginalFromEntry
in class AbstractExtractor
entry
- an Entry object whose original value should be used to extract the desired value frompublic static ValueExtractor[] createExtractors(java.lang.String sName)
ReflectionExtractor
objects.sName
- a dot-delimited sequence of method namesReflectionExtractor
objects
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |