Oracle Coherence for C++ API
Release 3.7.1.0
E22845-01
#include <coherence/util/processor/ConditionalPutAll.hpp>
Inherits AbstractProcessor, and PortableObject.
ConditionalPutAll is an EntryProcessor that performs a InvocableMap::Entry::setValue Entry.setValue} operation for multiple entries that satisfy the specified condition.
Public Types |
||||
| typedef spec::Handle | Handle | |||
| ConditionalPutAll Handle definition. | ||||
| typedef spec::View | View | |||
| ConditionalPutAll View definition. | ||||
| typedef spec::Holder | Holder | |||
| ConditionalPutAll Holder definition. | ||||
Public Member Functions |
||||
| virtual Object::Holder | process (InvocableMap::Entry::Handle hEntry) const | |||
Process a Map::Entry object.
|
||||
| virtual Map::View | processAll (Set::View vsetEntries) const | |||
| Process a Set of InvocableMap::Entry objects.
This method is semantically equivalent to: Map::Handle hMapResults = HashMap::create(); for (Iterator::Handle hIter = vSetEntries->iterator(); iter->hasNext; ) { InvocableMap::Entry::Handle hEntry = cast<InvocableMap::Entry::Handle>(hIter->next()); hMapResults->put(hEntry->getKey(), process(hEntry)); } return hMapResults;
|
||||
| virtual void | readExternal (PofReader::Handle hIn) | |||
| virtual void | writeExternal (PofWriter::Handle hOut) const | |||
| virtual bool | equals (Object::View v) const | |||
| virtual size32_t | hashCode () const | |||
| Return a hash code value for the Object.
This method is supported for the benefit of hash-based containers. The general contract of
The default implementation is identity based.
|
||||
Protected Member Functions |
||||
| ConditionalPutAll () | ||||
| Construct a ConditionalPutAll. | ||||
| ConditionalPutAll (Filter::View vFilter, Map::View vMap) | ||||
| Construct a ConditionalPutAll processor that updates an entry with a new value if and only if the filter applied to the entry evaluates to true. | ||||
Protected Attributes |
||||
| MemberView< Filter > | m_vFilter | |||
| The underlying filter. | ||||
| MemberView< Map > | m_vMap | |||
| Specifies the map of new values. | ||||
| ConditionalPutAll | ( | Filter::View | vFilter, | |
| Map::View | vMap | |||
| ) | [protected] |
Construct a ConditionalPutAll processor that updates an entry with a new value if and only if the filter applied to the entry evaluates to true.
The new value is extracted from the specified map based on the entry's key.
| vFilter | the filter to evaluate all supplied entries | |
| vMap | a map of values to update entries with |
The documentation for this class was generated from the following file: