Class QueryProfileVariant

java.lang.Object
com.yahoo.search.query.profile.QueryProfileVariant
All Implemented Interfaces:
Cloneable, Comparable<QueryProfileVariant>

public class QueryProfileVariant extends Object implements Cloneable, Comparable<QueryProfileVariant>
A variant of a query profile
Author:
bratseth
  • Constructor Details

  • Method Details

    • getDimensionValues

      public DimensionValues getDimensionValues()
    • values

      public Map<String,Object> values()
      Returns the live reference to the values of this. This may be modified if this is not frozen.
    • inherited

      public List<QueryProfile> inherited()
      Returns the live reference to the inherited profiles of this. This may be modified if this is not frozen.
    • set

      public Object set(String key, Object newValue)
    • setOverridable

      public void setOverridable(String key, boolean overridable)
    • isOverridable

      public Boolean isOverridable(String key)
    • inherit

      public void inherit(QueryProfile profile)
    • compareTo

      public int compareTo(QueryProfileVariant other)
      Implements the sort order of this which is based on specificity where dimensions to the left are more significant.

      Note: This ordering is not consistent with equals - it returns 0 when the same dimensions are set, regardless of what they are set to.

      Specified by:
      compareTo in interface Comparable<QueryProfileVariant>
    • matches

      public boolean matches(DimensionValues givenDimensionValues)
    • accept

      public void accept(boolean allowContent, QueryProfileType type, com.yahoo.search.query.profile.QueryProfileVisitor visitor, DimensionBinding dimensionBinding)
      Accepts a visitor to the values of this
    • freeze

      public void freeze()
    • clone

      public QueryProfileVariant clone()
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object