Class VeniceResponseMapImpl<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
com.linkedin.venice.client.store.streaming.VeniceResponseMapImpl<K,V>
All Implemented Interfaces:
VeniceResponseMap<K,V>, Serializable, Cloneable, Map<K,V>

public class VeniceResponseMapImpl<K,V> extends HashMap<K,V> implements VeniceResponseMap<K,V>
See Also:
  • Constructor Details

    • VeniceResponseMapImpl

      public VeniceResponseMapImpl(Map<K,V> validEntries, Queue<K> nonExistingKeyList, boolean fullResponse)
  • Method Details

    • isFullResponse

      public boolean isFullResponse()
      Description copied from interface: VeniceResponseMap
      Whether the result is a full response or not.
      Specified by:
      isFullResponse in interface VeniceResponseMap<K,V>
      Returns:
    • getNonExistingKeys

      public 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:
    • getTotalEntryCount

      public int getTotalEntryCount()
      Description copied from interface: VeniceResponseMap
      Return the total number of entries, including non-existing keys.
      Specified by:
      getTotalEntryCount in interface VeniceResponseMap<K,V>