Class VeniceResponseMapImpl<K,​V>

  • All Implemented Interfaces:
    VeniceResponseMap<K,​V>, java.io.Serializable, java.lang.Cloneable, java.util.Map<K,​V>

    public class VeniceResponseMapImpl<K,​V>
    extends java.util.HashMap<K,​V>
    implements VeniceResponseMap<K,​V>
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      VeniceResponseMapImpl​(java.util.Map<K,​V> validEntries, java.util.Queue<K> nonExistingKeyList, boolean fullResponse)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<K> getNonExistingKeys()
      Retrieve all the non-existing keys known so far, and if the current response is a full response, this will contain all the missing keys in the request.
      int getTotalEntryCount()
      Return the total number of entries, including non-existing keys.
      boolean isFullResponse()
      Whether the result is a full response or not.
      • Methods inherited from class java.util.HashMap

        clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
    • Constructor Detail

      • VeniceResponseMapImpl

        public VeniceResponseMapImpl​(java.util.Map<K,​V> validEntries,
                                     java.util.Queue<K> nonExistingKeyList,
                                     boolean fullResponse)
    • Method Detail

      • getNonExistingKeys

        public java.util.Set<K> getNonExistingKeys()
        Description copied from interface: VeniceResponseMap
        Retrieve all the non-existing keys known so far, and if the current response is a full response, this will contain all the missing keys in the request.
        Specified by:
        getNonExistingKeys in interface VeniceResponseMap<K,​V>
        Returns: