Class DimensionalValue<VALUE>


  • public class DimensionalValue<VALUE>
    extends java.lang.Object
    Contains the values a given key in a DimensionalMap may take for different dimensional contexts.
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      DimensionalValue​(com.yahoo.search.query.profile.compiled.DimensionalValue.Value<VALUE> value)
      Create a set of variants which is a single value regardless of dimensions
      DimensionalValue​(java.util.List<com.yahoo.search.query.profile.compiled.DimensionalValue.Value<VALUE>> valueVariants)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      VALUE get​(java.util.Map<java.lang.String,​java.lang.String> context)
      Returns the value matching this context, or null if none
      boolean isEmpty()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DimensionalValue

        public DimensionalValue​(com.yahoo.search.query.profile.compiled.DimensionalValue.Value<VALUE> value)
        Create a set of variants which is a single value regardless of dimensions
      • DimensionalValue

        public DimensionalValue​(java.util.List<com.yahoo.search.query.profile.compiled.DimensionalValue.Value<VALUE>> valueVariants)
    • Method Detail

      • get

        public VALUE get​(java.util.Map<java.lang.String,​java.lang.String> context)
        Returns the value matching this context, or null if none
      • isEmpty

        public boolean isEmpty()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object