Package com.yahoo.search.query.profile
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(boolean allowContent, QueryProfileType type, com.yahoo.search.query.profile.QueryProfileVisitor visitor, DimensionBinding dimensionBinding) Accepts a visitor to the values of thisclone()
int
compareTo
(QueryProfileVariant other) Implements the sort order of this which is based on specificity where dimensions to the left are more significant.void
freeze()
void
inherit
(QueryProfile profile) Returns the live reference to the inherited profiles of this.isOverridable
(String key) boolean
matches
(DimensionValues givenDimensionValues) void
setOverridable
(String key, boolean overridable) toString()
values()
Returns the live reference to the values of this.
-
Constructor Details
-
QueryProfileVariant
-
-
Method Details
-
getDimensionValues
-
values
Returns the live reference to the values of this. This may be modified if this is not frozen. -
inherited
Returns the live reference to the inherited profiles of this. This may be modified if this is not frozen. -
set
-
setOverridable
-
isOverridable
-
inherit
-
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<QueryProfileVariant>
-
matches
-
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
-
toString
-