Class DimensionalMap<VALUE>

java.lang.Object
com.yahoo.search.query.profile.compiled.DimensionalMap<VALUE>

public class DimensionalMap<VALUE> extends Object
A map which may return different values depending on the values given in a context supplied with the key on all operations.

Dimensional maps are immutable and created through a DimensionalMap.Builder

Author:
bratseth
  • Method Details

    • get

      public VALUE get(com.yahoo.processing.request.CompoundName key, Map<String,String> context)
      Returns the value for this key matching a context, or null if none
    • entrySet

      public Set<Map.Entry<com.yahoo.processing.request.CompoundName,DimensionalValue<VALUE>>> entrySet()
      Returns the set of dimensional entries across all contexts.
    • isEmpty

      public boolean isEmpty()
      Returns true if this is empty for all contexts.