Class DimensionalMap<VALUE>
- java.lang.Object
-
- com.yahoo.search.query.profile.compiled.DimensionalMap<VALUE>
-
public class DimensionalMap<VALUE> extends java.lang.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DimensionalMap.Builder<VALUE>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.util.Map.Entry<com.yahoo.processing.request.CompoundName,DimensionalValue<VALUE>>>
entrySet()
Returns the set of dimensional entries across all contexts.VALUE
get(com.yahoo.processing.request.CompoundName key, java.util.Map<java.lang.String,java.lang.String> context)
Returns the value for this key matching a context, or null if noneboolean
isEmpty()
Returns true if this is empty for all contexts.
-
-
-
Method Detail
-
get
public VALUE get(com.yahoo.processing.request.CompoundName key, java.util.Map<java.lang.String,java.lang.String> context)
Returns the value for this key matching a context, or null if none
-
entrySet
public java.util.Set<java.util.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.
-
-