Class EntryExtractor
The EntryExtractor is a base abstract class for special purpose custom IValueExtractor implementations.
Inherited Members
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 |
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. |