Class ChainedExtractor
Composite IValueExtractor implementation based on an array of extractors.
Inherited Members
Namespace: Tangosol.Util.Extractor
Assembly: Coherence.dll
Syntax
public class ChainedExtractor : AbstractCompositeExtractor, IValueExtractor, IQueryCacheComparer, IComparer, IPortableObject
Remarks
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.
Constructors
ChainedExtractor()
Default constructor.
Declaration
public ChainedExtractor()
ChainedExtractor(string)
Construct a ChainedExtractor for a specified member name sequence.
Declaration
public ChainedExtractor(string member)
Parameters
Type | Name | Description |
---|---|---|
string | member | A dot-delimited sequence of member names which results in a ChainedExtractor that is based on an array of corresponding ReflectionExtractor objects. |
ChainedExtractor(IValueExtractor, IValueExtractor)
Construct a ChainedExtractor based on two extractors.
Declaration
public ChainedExtractor(IValueExtractor extractor1, IValueExtractor extractor2)
Parameters
Type | Name | Description |
---|---|---|
IValueExtractor | extractor1 | The IValueExtractor. |
IValueExtractor | extractor2 | The IValueExtractor. |
ChainedExtractor(IValueExtractor[])
Construct a ChainedExtractor based on a specified IValueExtractor array.
Declaration
public ChainedExtractor(IValueExtractor[] extractors)
Parameters
Type | Name | Description |
---|---|---|
IValueExtractor[] | extractors | The IValueExtractor array. |
Methods
Extract(object)
Extract the value from the passed object.
Declaration
public override object Extract(object target)
Parameters
Type | Name | Description |
---|---|---|
object | target | An object to retrieve the value from. |
Returns
Type | Description |
---|---|
object | The extracted value as an object; |
Overrides
Remarks
The underlying extractors are applied sequentially, so a result
of a previous extractor serves as a target object for a next one.
A value of null
prevents any further extractions and is
returned immediately.
ExtractFromEntry(ICacheEntry)
Extract the value from the passed entry.
Declaration
public override object ExtractFromEntry(ICacheEntry entry)
Parameters
Type | Name | Description |
---|---|---|
ICacheEntry | entry | An Entry object to extract a desired value from |
Returns
Type | Description |
---|---|
object | The extracted value |
Overrides
Remarks
The underlying extractors are applied sequentially, so a result of a previous extractor serves as a target object for a next one. A value of
null
prevents any further extractions and
is returned immediately.