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>
,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
-
-
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
-
-
-
-
Method Detail
-
isFullResponse
public boolean isFullResponse()
Description copied from interface:VeniceResponseMap
Whether the result is a full response or not.- Specified by:
isFullResponse
in interfaceVeniceResponseMap<K,V>
- Returns:
-
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 interfaceVeniceResponseMap<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 interfaceVeniceResponseMap<K,V>
-
-