Show / Hide Table of Contents

Class ExtractorProcessor

ExtractorProcessor is an IEntryProcessor implementations that extracts a value from an object cached in an IInvocableCache.

Inheritance
object
AbstractProcessor
ExtractorProcessor
Implements
IEntryProcessor
IPortableObject
Inherited Members
AbstractProcessor.ProcessAll(ICollection)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Tangosol.Util.Processor
Assembly: Coherence.dll
Syntax
public class ExtractorProcessor : AbstractProcessor, IEntryProcessor, IPortableObject
Remarks

A common usage pattern is:

cache.Invoke(key, new ExtractorProcessor(extractor));

which is functionally equivalent to the following operation:

extractor.Extract(cache[key]);

Constructors

ExtractorProcessor()

Default constructor.

Declaration
public ExtractorProcessor()

ExtractorProcessor(string)

Construct an ExtractorProcessor for a given member name.

Declaration
public ExtractorProcessor(string member)
Parameters
Type Name Description
string member

A member name to make a ReflectionExtractor for; this parameter can also be a dot-delimited sequence of member names which would result in an ExtractorProcessor based on the ChainedExtractor that is based on an array of corresponding ReflectionExtractor objects.

ExtractorProcessor(IValueExtractor)

Construct an ExtractorProcessor based on the specified IValueExtractor.

Declaration
public ExtractorProcessor(IValueExtractor extractor)
Parameters
Type Name Description
IValueExtractor extractor

An IValueExtractor object; passing null is equivalent to using the IdentityExtractor.

Fields

m_extractor

The underlying value extractor.

Declaration
protected IValueExtractor m_extractor
Field Value
Type Description
IValueExtractor

Methods

Equals(object)

Compare the PropertyProcessor with another object to determine equality.

Declaration
public override bool Equals(object o)
Parameters
Type Name Description
object o

The object to compare with.

Returns
Type Description
bool

true iff this PropertyProcessor and the passed object are equivalent PropertyProcessor.

Overrides
object.Equals(object)

GetHashCode()

Determine a hash value for the PropertyProcessor object according to the general GetHashCode() contract.

Declaration
public override int GetHashCode()
Returns
Type Description
int

An integer hash value for this PropertyProcessor object.

Overrides
object.GetHashCode()

Process(IInvocableCacheEntry)

Process an IInvocableCacheEntry.

Declaration
public override object Process(IInvocableCacheEntry entry)
Parameters
Type Name Description
IInvocableCacheEntry entry

The IInvocableCacheEntry to process.

Returns
Type Description
object

The result of the processing, if any.

Overrides
AbstractProcessor.Process(IInvocableCacheEntry)

ReadExternal(IPofReader)

Restore the contents of a user type instance by reading its state using the specified IPofReader object.

Declaration
public virtual void ReadExternal(IPofReader reader)
Parameters
Type Name Description
IPofReader reader

The IPofReader from which to read the object's state.

Exceptions
Type Condition
IOException

If an I/O error occurs.

ToString()

Return a human-readable description for this PropertyProcessor.

Declaration
public override string ToString()
Returns
Type Description
string

A String description of the PropertyProcessor.

Overrides
object.ToString()

WriteExternal(IPofWriter)

Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.

Declaration
public virtual void WriteExternal(IPofWriter writer)
Parameters
Type Name Description
IPofWriter writer

The IPofWriter to which to write the object's state.

Exceptions
Type Condition
IOException

If an I/O error occurs.

Implements

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