Package com.yahoo.search.query.profile
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
clone
(String fieldName, List<QueryProfileVariant> clonedVariants) Clone by filling in the value from the given variantsint
Implements the sort order of this which is based on specificity where dimensions to the left are more significant.Returns the dimension values for which this value should be used.getValue()
Returns the value to use for this set of dimension valuesboolean
matches
(DimensionValues givenDimensionValues) void
Sets the value to use for this set of dimension valuestoString()
-
Constructor Details
-
FieldValue
-
-
Method Details
-
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
Returns the value to use for this set of dimension values -
setValue
Sets the value to use for this set of dimension values -
matches
-
compareTo
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 interfaceComparable<QueryProfileVariants.FieldValue>
-
clone
public QueryProfileVariants.FieldValue clone(String fieldName, List<QueryProfileVariant> clonedVariants) Clone by filling in the value from the given variants -
clone
-
toString
-