Interface VeniceResponseMap<K,V>
-
- All Superinterfaces:
java.util.Map<K,V>
- All Known Implementing Classes:
VeniceResponseMapImpl
public interface VeniceResponseMap<K,V> extends java.util.Map<K,V>
Venice customized map, which could contains either a full response or a partial response. TODO: we could add more methods, such as get the total result cnt including valid entries and non-existing entries, or response quality in the future if necessary.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
isFullResponse
boolean isFullResponse()
Whether the result is a full response or not.- Returns:
-
getNonExistingKeys
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.- Returns:
-
getTotalEntryCount
int getTotalEntryCount()
Return the total number of entries, including non-existing keys.
-
-