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
public static interface QueryMap.Entry<K,V> extends Map.Entry<K,V>
A QueryMap Entry exposes additional index-related operation that the basic Map Entry does not.- Since:
- Coherence 3.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T,E>
Eextract(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 Detail
-
extract
<T,E> E extract(ValueExtractor<T,E> extractor)
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
default <E> E extractFromKey(ValueExtractor<? super K,E> extractor)
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
default <E> E extractFromValue(ValueExtractor<? super V,E> extractor)
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
-
-