Interface VeniceResponseMap<K,V>

All Superinterfaces:
Map<K,V>
All Known Implementing Classes:
VeniceResponseMapImpl

public interface VeniceResponseMap<K,V> extends 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 Details

    • isFullResponse

      boolean isFullResponse()
      Whether the result is a full response or not.
      Returns:
    • getNonExistingKeys

      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.