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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • 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.
      • 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 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.