|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.ConverterCollections.ConverterMapEvent.ConverterMapEventEntry
protected class ConverterCollections.ConverterMapEvent.ConverterMapEventEntry
ConverterMapEventEntry provides both the Map Entry and the BinaryEntry interface to the information encapsulated inside the ConvertMapEvent.
Field Summary | |
---|---|
protected boolean |
m_fNewValue Determines whether this entry represents the old or new value. |
Constructor Summary | |
---|---|
ConverterCollections.ConverterMapEvent.ConverterMapEventEntry(boolean fNewValue) Constructor. |
Method Summary | |
---|---|
Object |
extract(ValueExtractor extractor) Depending upon the type of the ValueExtractor route the call to the appropriate extract method. |
Map |
getBackingMap() Obtain a reference to the backing map that this Entry corresponds to. |
Binary |
getBinaryKey() Return a raw binary key for this entry. |
Binary |
getBinaryValue() Return a raw binary value for this entry. |
BackingMapManagerContext |
getContext() Return the context this entry operates within. |
Object |
getKey() Return the key corresponding to this entry. |
Binary |
getOriginalBinaryValue() Return a raw original binary value for this entry. |
Object |
getOriginalValue() Return an original value for this entry. |
Serializer |
getSerializer() Return a Serializer that is used to serialize/deserialize this entry. |
Object |
getValue() Return the value corresponding to this entry. |
boolean |
isPresent() Determine if this Entry exists in the Map. |
void |
remove(boolean fSynthetic) Remove this Entry from the Map if it is present in the Map. |
Object |
setValue(Object oValue) Store the value corresponding to this entry. |
void |
setValue(Object oValue, boolean fSynthetic) Store the value corresponding to this entry. |
void |
update(ValueUpdater updater, Object oValue) Update the Entry's value. |
void |
updateBinaryValue(Binary binValue) Update the binary value for this entry. |
Methods inherited from interface java.util.Map.Entry |
---|
equals, hashCode |
Field Detail |
---|
protected boolean m_fNewValue
Constructor Detail |
---|
public ConverterCollections.ConverterMapEvent.ConverterMapEventEntry(boolean fNewValue)
fNewValue
- specifies whether the value represented by this entry is the new or the old valueMethod Detail |
---|
public Object getKey()
InvocableMap.Entry.isPresent()
, and to create the entry for the key, use InvocableMap.Entry.setValue(java.lang.Object)
.getKey
in interface InvocableMap.Entry
getKey
in interface Map.Entry
public Object getValue()
InvocableMap.Entry.isPresent()
. <p/> Note: any modifications to the value retrieved using this method are not guaranteed to persist unless followed by a InvocableMap.Entry.setValue(java.lang.Object)
or InvocableMap.Entry.update(com.tangosol.util.ValueUpdater, java.lang.Object)
call.getValue
in interface InvocableMap.Entry
getValue
in interface Map.Entry
public Object setValue(Object oValue)
setValue
in interface InvocableMap.Entry
setValue
in interface Map.Entry
oValue
- the new value for this Entrypublic boolean isPresent()
InvocableMap.Entry.setValue(java.lang.Object)
or InvocableMap.Entry.setValue(java.lang.Object)
. If the Entry is present, it can be destroyed by calling InvocableMap.Entry.remove(boolean)
.isPresent
in interface InvocableMap.Entry
public void remove(boolean fSynthetic)
Map.remove(java.lang.Object)
as well as synthetic operations such as eviction. If the containing Map does not differentiate between the two, then this method will always be identical to InvocableMap.this.remove(getKey()).remove
in interface InvocableMap.Entry
fSynthetic
- pass true only if the removal from the Map should be treated as a synthetic eventpublic void setValue(Object oValue, boolean fSynthetic)
setValue
, this form does not return the previous value, and as a result may be significantly less expensive (in terms of cost of execution) for certain Map implementations.setValue
in interface InvocableMap.Entry
oValue
- the new value for this EntryfSynthetic
- pass true only if the insertion into or modification of the Map should be treated as a synthetic eventpublic void update(ValueUpdater updater, Object oValue)
Object oTarget = entry.getValue(); updater.update(oTarget, oValue); entry.setValue(oTarget, false);The benefit of using this method is that it may allow the Entry implementation to significantly optimize the operation, such as for purposes of delta updates and backup maintenance.
update
in interface InvocableMap.Entry
updater
- a ValueUpdater used to modify the Entry's valueoValue
- the new value for this Entrypublic Object extract(ValueExtractor extractor)
extract
in interface QueryMap.Entry
extractor
- the ValueExtractor to pass this Entry or value.public Binary getBinaryKey()
getBinaryKey
in interface BinaryEntry
public Binary getBinaryValue()
getBinaryValue
in interface BinaryEntry
public BackingMapManagerContext getContext()
getContext
in interface BinaryEntry
public Serializer getSerializer()
Serializer
that is used to serialize/deserialize this entry.getSerializer
in interface BinaryEntry
Serializer
that is used to serialize/deserialize this entrypublic void updateBinaryValue(Binary binValue)
setValue(getContext().getValueFromInternalConverter().convert(binValue));Passing null value is functionally equivalent to removing the entry.
remove(false);
updateBinaryValue
in interface BinaryEntry
binValue
- a raw binary value to for this entry or nullpublic Object getOriginalValue()
getOriginalValue
in interface BinaryEntry
public Binary getOriginalBinaryValue()
getOriginalBinaryValue
in interface BinaryEntry
public Map getBackingMap()
getBackingMap
in interface BinaryEntry
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |