Interface VeniceResponseMap<K,V>
- All Superinterfaces:
Map<K,
V>
- All Known Implementing Classes:
VeniceResponseMapImpl
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.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve 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
Return the total number of entries, including non-existing keys.boolean
Whether the result is a full response or not.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
-
Method Details
-
isFullResponse
boolean isFullResponse()Whether the result is a full response or not.- Returns:
-
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.
-