Interface QueryMap.Entry<K,V>

Type Parameters:
K - the type of the Map entry keys
V - 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
Enclosing interface:
QueryMap<K,V>

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 Details

    • 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 from
      E - 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