Package com.tangosol.util
Interface QueryMap.Entry<K,V>
- Type Parameters:
K
- the type of the Map entry keysV
- the type of the Map entry values
- All Superinterfaces:
Map.Entry<K,
V>
- All Known Subinterfaces:
BinaryEntry<K,
,V> InvocableMap.Entry<K,
,V> MapTrigger.Entry<K,
V>
- All Known Implementing Classes:
AbstractKeyBasedMap.EntrySet.Entry
,BackingMapBinaryEntry
,BinaryMap.Entry
,ConverterCollections.ConverterMapEvent.ConverterMapEventBinaryEntry
,InvocableMapHelper.RoutingBinaryEntry
,InvocableMapHelper.RoutingMapTriggerEntry
,InvocableMapHelper.SimpleEntry
,ObservableSplittingBackingCache.EntrySet.Entry
,OpenHashMap.EntrySet.Entry
,ReadWriteBackingMap.Entry
,SerializationCache.EntrySet.Entry
,SimpleElement.AttributeMap.Entry
,SimpleMapEntry
A QueryMap Entry exposes additional index-related operation that the
basic Map Entry does not.
- Since:
- Coherence 3.2
-
Method Summary
Modifier and TypeMethodDescription<T,
E> E extract
(ValueExtractor<T, E> extractor) Extract a value out of the Entry's key or value.default <E> E
extractFromKey
(ValueExtractor<? super K, E> extractor) Extract a value out of the Entry's key.default <E> E
extractFromValue
(ValueExtractor<? super V, E> extractor) Extract a value out of the Entry's value.
-
Method Details
-
extract
Extract a value out of the Entry's key or value. Calling this method is semantically equivalent to extractor.extract(entry.getValue()), but this method may be significantly less expensive. For example, the resultant value may be obtained from a forward index, avoiding a potential object de-serialization.- Type Parameters:
T
- the type of the value to extract fromE
- the type of value that will be extracted- Parameters:
extractor
- a ValueExtractor to apply to the Entry's key or value- Returns:
- the extracted value
-
extractFromKey
Extract a value out of the Entry's key. Calling this method is semantically equivalent to extractor.extract(entry.getKey()), but this method may be significantly less expensive. For example, the resultant value may be obtained from a forward index, avoiding a potential object de-serialization.- Type Parameters:
E
- the type of value that will be extracted- Parameters:
extractor
- a ValueExtractor to apply to the Entry's key- Returns:
- the extracted value
-
extractFromValue
Extract a value out of the Entry's value. Calling this method is semantically equivalent to extractor.extract(entry.getValue()), but this method may be significantly less expensive. For example, the resultant value may be obtained from a forward index, avoiding a potential object de-serialization.- Type Parameters:
E
- the type of value that will be extracted- Parameters:
extractor
- a ValueExtractor to apply to the Entry's value- Returns:
- the extracted value
-