Class QueryProfileVariants.FieldValue

java.lang.Object
com.yahoo.search.query.profile.QueryProfileVariants.FieldValue
All Implemented Interfaces:
Cloneable, Comparable<QueryProfileVariants.FieldValue>
Enclosing class:
QueryProfileVariants

public static class QueryProfileVariants.FieldValue extends Object implements Comparable<QueryProfileVariants.FieldValue>, Cloneable
  • Constructor Details

  • Method Details

    • getDimensionValues

      public DimensionValues getDimensionValues()
      Returns the dimension values for which this value should be used. The dimension array is always of the exact size of the dimensions specified by the owning QueryProfileVariants, and the values appear in the order defined. "Wildcard" dimensions are represented by a null.
    • getValue

      public Object getValue()
      Returns the value to use for this set of dimension values
    • setValue

      public void setValue(Object value)
      Sets the value to use for this set of dimension values
    • matches

      public boolean matches(DimensionValues givenDimensionValues)
    • compareTo

      public int compareTo(QueryProfileVariants.FieldValue 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<QueryProfileVariants.FieldValue>
    • clone

      public QueryProfileVariants.FieldValue clone(String fieldName, List<QueryProfileVariant> clonedVariants)
      Clone by filling in the value from the given variants
    • clone

      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object