#include <coherence/util/ConverterCollections.hpp>
Inherits ConverterCollections::ConverterMap, and QueryMap.
Public Types | ||||||||||
typedef spec::Handle | Handle | |||||||||
ConverterQueryMap Handle definition. | ||||||||||
typedef spec::View | View | |||||||||
ConverterQueryMap View definition. | ||||||||||
typedef spec::Holder | Holder | |||||||||
ConverterQueryMap Holder definition. | ||||||||||
Public Member Functions | ||||||||||
virtual Set::View | keySet (Filter::View vFilter) const | |||||||||
Return a set of the keys contained in this map for entries that satisfy the criteria expressed by the filter. Unlike the Map#keySet() method, the set returned by this method may not be backed by the map, so changes to the set may not reflected in the map, and vice-versa.
| ||||||||||
virtual Set::View | entrySet (Filter::View vFilter) const | |||||||||
Return a set of the entries contained in this map that satisfy the criteria expressed by the filter. Each element in the returned set is a Map::Entry. Unlike the Map::entrySet() method, the set returned by this method may not be backed by the map, so changes to the set may not be reflected in the map, and vice-versa.
| ||||||||||
virtual Set::View | entrySet (Filter::View vFilter, Comparator::View vComparator) const | |||||||||
Return a set of the entries contained in this map that satisfy the criteria expressed by the filter. Each element in the returned set is a Map::Entry. It is further guaranteed that its iterator will traverse the set in such a way that the entry values come up in ascending order, sorted by the specified Comparator or according to the natural ordering (see Comparable). Unlike the Map::entrySet() method, the set returned by this method may not be backed by the map, so changes to the set may not be reflected in the map, and vice-versa.
| ||||||||||
virtual void | addIndex (ValueExtractor::View vExtractor, bool fOrdered, Comparator::View vComparator) | |||||||||
Add an index to this QueryMap.
This allows to correlate values stored in this indexed Map (or attributes of those values) to the corresponding keys in the indexed Map and increase the performance of This method is only intended as a hint to the cache implementation, and as such it may be ignored by the cache if indexes are not supported or if the desired index (or a similar index) already exists. It is expected that an application will call this method to suggest an index even if the index may already exist, just so that the application is certain that index has been suggested. For example in a distributed environment, each server will likely suggest the same set of indexes when it starts, and there is no downside to the application blindly requesting those indexes regardless of whether another server has already requested the same indexes.
| ||||||||||
virtual void | removeIndex (ValueExtractor::View vExtractor) | |||||||||
Remove an index from this QueryMap.
| ||||||||||
virtual QueryMap::View | getQueryMap () const | |||||||||
Return the underlying InvocableMap. | ||||||||||
virtual QueryMap::Handle | getQueryMap () | |||||||||
Return the underlying CacheMap. | ||||||||||
Protected Member Functions | ||||||||||
ConverterQueryMap (QueryMap::Handle hMapDelegate, EntryConverter::View vConvUp, EntryConverter::View vConvDown) | ||||||||||
Create a ConverterQueryMap which delegates to the specified QueryMap. | ||||||||||
ConverterQueryMap (QueryMap::View vMapDelegate, EntryConverter::View vConvUp, EntryConverter::View vConvDown) | ||||||||||
Create a ConverterQueryMap which delegates to the s pecified QueryMap. |
ConverterQueryMap | ( | QueryMap::Handle | hMapDelegate, | |
EntryConverter::View | vConvUp, | |||
EntryConverter::View | vConvDown | |||
) | [protected] |
Create a ConverterQueryMap which delegates to the specified QueryMap.
hMap | the specified InvocableMap | |
vConvUp | the EntryConverter from the underlying Map | |
vConvDown | the EntryConverter to the underlying Map |
ConverterQueryMap | ( | QueryMap::View | vMapDelegate, | |
EntryConverter::View | vConvUp, | |||
EntryConverter::View | vConvDown | |||
) | [protected] |
Create a ConverterQueryMap which delegates to the s pecified QueryMap.
vMap | the specified InvocableMap | |
vConvUp | the EntryConverter from the underlying Map | |
vConvDown | the EntryConverter to the underlying Map |
virtual QueryMap::View getQueryMap | ( | ) | const [virtual] |
virtual QueryMap::Handle getQueryMap | ( | ) | [virtual] |
Return the underlying CacheMap.