Show / Hide Table of Contents

Class EntryExtractor

The EntryExtractor is a base abstract class for special purpose custom IValueExtractor implementations.

Inheritance
object
AbstractExtractor
EntryExtractor
Implements
IValueExtractor
IQueryCacheComparer
IComparer
IPortableObject
Inherited Members
AbstractExtractor.Target
AbstractExtractor.Extract(object)
AbstractExtractor.Compare(object, object)
AbstractExtractor.CompareEntries(IQueryCacheEntry, IQueryCacheEntry)
AbstractExtractor.ExtractFromEntry(ICacheEntry)
AbstractExtractor.ExtractOriginalFromEntry(CacheEntry)
AbstractExtractor.VALUE
AbstractExtractor.KEY
AbstractExtractor.m_target
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Tangosol.Util.Extractor
Assembly: Coherence.dll
Syntax
public abstract class EntryExtractor : AbstractExtractor, IValueExtractor, IQueryCacheComparer, IComparer, IPortableObject
Remarks

It allows them to extract a desired value using all available information on the corresponding ICacheEntry object and is intended to be used in advanced custom scenarios, when application code needs to look at both key and value at the same time or can make some very specific assumptions regarding to the implementation details of the underlying Entry object. As of Coherence 3.5, the same behavior can be achieved by subclasses of the AbstractExtractor by overriding the ExtractFromEntry(ICacheEntry).

Constructors

EntryExtractor()

Default constructor (for backward compability)

Declaration
public EntryExtractor()

EntryExtractor(int)

Construct an EntryExtractor based on the entry extraction target.

Declaration
public EntryExtractor(int target)
Parameters
Type Name Description
int target

One of the VALUE or KEY values.

Methods

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.

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

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