Show / Hide Table of Contents

Class ChainedExtractor

Composite IValueExtractor implementation based on an array of extractors.

Inheritance
object
AbstractExtractor
AbstractCompositeExtractor
ChainedExtractor
Implements
IValueExtractor
IQueryCacheComparer
IComparer
IPortableObject
Inherited Members
AbstractCompositeExtractor.Extractors
AbstractCompositeExtractor.ReadExternal(IPofReader)
AbstractCompositeExtractor.WriteExternal(IPofWriter)
AbstractCompositeExtractor.Equals(object)
AbstractCompositeExtractor.GetHashCode()
AbstractCompositeExtractor.ToString()
AbstractCompositeExtractor.m_extractors
AbstractExtractor.Target
AbstractExtractor.Compare(object, object)
AbstractExtractor.CompareEntries(IQueryCacheEntry, IQueryCacheEntry)
AbstractExtractor.ExtractOriginalFromEntry(CacheEntry)
AbstractExtractor.VALUE
AbstractExtractor.KEY
AbstractExtractor.m_target
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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; null is an acceptable value.

Overrides
AbstractExtractor.Extract(object)
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
AbstractExtractor.ExtractFromEntry(ICacheEntry)
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.

Implements

IValueExtractor
IQueryCacheComparer
IComparer
IPortableObject
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.