Class PofUpdater
POF-based IValueUpdater implementation.
Inherited Members
Namespace: Tangosol.Util.Extractor
Assembly: Coherence.dll
Syntax
[Serializable]
public class PofUpdater : IValueUpdater, IPortableObject
Constructors
PofUpdater()
Default constructor.
Declaration
public PofUpdater()
PofUpdater(int)
Constructs a PofUpdater based on a property index.
Declaration
public PofUpdater(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | Property index. |
Remarks
This constructor is equivalent to:
PofExtractor extractor =
new PofUpdater(new SimplePofPath(index));
PofUpdater(IPofNavigator)
Constructs a PofUpdater based on a POF navigator.
Declaration
public PofUpdater(IPofNavigator navigator)
Parameters
Type | Name | Description |
---|---|---|
IPofNavigator | navigator | POF navigator. |
Methods
Equals(object)
Compare the PofUpdater with another object to determine equality.
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
object | o | Object to compare with |
Returns
Type | Description |
---|---|
bool | true iff this PofUpdater and the passed object are equivalent |
Overrides
GetHashCode()
Determine a hash value for the PofUpdater object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | An integer hash value for this PofUpdater object |
Overrides
ReadExternal(IPofReader)
Restore the contents of a user type instance by reading its state using the specified IPofReader object.
Declaration
public 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 PofUpdater.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | String description of the PofUpdater |
Overrides
Update(object, object)
Update the passed target object using the specified value.
Declaration
public void Update(object oTarget, object oValue)
Parameters
Type | Name | Description |
---|---|---|
object | oTarget | The object to update. |
object | oValue | The new value to update the target's property with. |
Remarks
This method will always throw a NotSupportedException if called directly by the .NET client application, as its execution is only meaningful within the cluster.
It is expected that this extractor will only be used against POF-encoded binary entries within a remote partitioned cache.Exceptions
Type | Condition |
---|---|
NotSupportedException | Always, as it is expected that this extractor will only be executed within the cluster. |
WriteExternal(IPofWriter)
Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.
Declaration
public 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. |